106 lines
5.0 MiB
106 lines
5.0 MiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-libs"],{"0050":function(e,t,n){"use strict";(function(t){function n(e){return e instanceof t?t.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function i(e){if(e=e||{},e.circles)return r(e);const t=new Map;if(t.set(Date,e=>new Date(e)),t.set(Map,(e,t)=>new Map(o(Array.from(e),t))),t.set(Set,(e,t)=>new Set(o(Array.from(e),t))),e.constructorHandlers)for(const n of e.constructorHandlers)t.set(n[0],n[1]);let i=null;return e.proto?a:s;function o(e,r){const o=Object.keys(e),s=new Array(o.length);for(let a=0;a<o.length;a++){const l=o[a],c=e[l];"object"!==typeof c||null===c?s[l]=c:c.constructor!==Object&&(i=t.get(c.constructor))?s[l]=i(c,r):ArrayBuffer.isView(c)?s[l]=n(c):s[l]=r(c)}return s}function s(e){if("object"!==typeof e||null===e)return e;if(Array.isArray(e))return o(e,s);if(e.constructor!==Object&&(i=t.get(e.constructor)))return i(e,s);const r={};for(const o in e){if(!1===Object.hasOwnProperty.call(e,o))continue;const a=e[o];"object"!==typeof a||null===a?r[o]=a:a.constructor!==Object&&(i=t.get(a.constructor))?r[o]=i(a,s):ArrayBuffer.isView(a)?r[o]=n(a):r[o]=s(a)}return r}function a(e){if("object"!==typeof e||null===e)return e;if(Array.isArray(e))return o(e,a);if(e.constructor!==Object&&(i=t.get(e.constructor)))return i(e,a);const r={};for(const o in e){const s=e[o];"object"!==typeof s||null===s?r[o]=s:s.constructor!==Object&&(i=t.get(s.constructor))?r[o]=i(s,a):ArrayBuffer.isView(s)?r[o]=n(s):r[o]=a(s)}return r}}function r(e){const t=[],i=[],r=new Map;if(r.set(Date,e=>new Date(e)),r.set(Map,(e,t)=>new Map(s(Array.from(e),t))),r.set(Set,(e,t)=>new Set(s(Array.from(e),t))),e.constructorHandlers)for(const n of e.constructorHandlers)r.set(n[0],n[1]);let o=null;return e.proto?l:a;function s(e,s){const a=Object.keys(e),l=new Array(a.length);for(let c=0;c<a.length;c++){const u=a[c],h=e[u];if("object"!==typeof h||null===h)l[u]=h;else if(h.constructor!==Object&&(o=r.get(h.constructor)))l[u]=o(h,s);else if(ArrayBuffer.isView(h))l[u]=n(h);else{const e=t.indexOf(h);l[u]=-1!==e?i[e]:s(h)}}return l}function a(e){if("object"!==typeof e||null===e)return e;if(Array.isArray(e))return s(e,a);if(e.constructor!==Object&&(o=r.get(e.constructor)))return o(e,a);const l={};t.push(e),i.push(l);for(const s in e){if(!1===Object.hasOwnProperty.call(e,s))continue;const c=e[s];if("object"!==typeof c||null===c)l[s]=c;else if(c.constructor!==Object&&(o=r.get(c.constructor)))l[s]=o(c,a);else if(ArrayBuffer.isView(c))l[s]=n(c);else{const e=t.indexOf(c);l[s]=-1!==e?i[e]:a(c)}}return t.pop(),i.pop(),l}function l(e){if("object"!==typeof e||null===e)return e;if(Array.isArray(e))return s(e,l);if(e.constructor!==Object&&(o=r.get(e.constructor)))return o(e,l);const a={};t.push(e),i.push(a);for(const s in e){const c=e[s];if("object"!==typeof c||null===c)a[s]=c;else if(c.constructor!==Object&&(o=r.get(c.constructor)))a[s]=o(c,l);else if(ArrayBuffer.isView(c))a[s]=n(c);else{const e=t.indexOf(c);a[s]=-1!==e?i[e]:l(c)}}return t.pop(),i.pop(),a}}e.exports=i}).call(this,n("1c35").Buffer)},"00a3":function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c}));var i=n("11f7"),r=n("e757"),o=n("5d28"),s=n("a666"),a=n("30db");function l(e,t){let n=new o["a"](t);return n.preventDefault(),{leftButton:n.leftButton,buttons:n.buttons,posx:n.posx,posy:n.posy}}class c{constructor(){this._hooks=new s["b"],this._mouseMoveEventMerger=null,this._mouseMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(e,t){if(!this.isMonitoring())return;this._hooks.clear(),this._mouseMoveEventMerger=null,this._mouseMoveCallback=null;const n=this._onStopCallback;this._onStopCallback=null,e&&n&&n(t)}isMonitoring(){return!!this._mouseMoveEventMerger}startMonitoring(e,t,n,s,l){if(this.isMonitoring())return;this._mouseMoveEventMerger=n,this._mouseMoveCallback=s,this._onStopCallback=l;const c=r["a"].getSameOriginWindowChain(),u=a["c"]?"pointermove":"mousemove",h="mouseup",d=c.map(e=>e.window.document),f=i["F"](e);f&&d.unshift(f);for(const r of d)this._hooks.add(i["l"](r,u,e=>{e.buttons===t?this._mouseMoveCallback(e):this.stopMonitoring(!0)},(e,t)=>this._mouseMoveEventMerger(e,t))),this._hooks.add(i["i"](r,h,e=>this.stopMonitoring(!0)));if(r["a"].hasDifferentOriginAncestor()){let e=c[c.length-1];this._hooks.add(i["i"](e.window.document,"mouseout",e=>{let t=new o["a"](e);"html"===t.target.tagName.toLowerCase()&&this.stopMonitoring(!0)})),this._hooks.add(i["i"](e.window.document,"mouseover",e=>{let t=new o["a"](e);"html"===t.target.tagName.toLowerCase()&&this.stopMonitoring(!0)})),this._hooks.add(i["i"](e.window.document.body,"mouseleave",e=>{this.stopMonitoring(!0)}))}}}},"00b4":function(e,t,n){"use strict";n("ac1f");var i=n("23e7"),r=n("c65b"),o=n("1626"),s=n("825a"),a=n("577e"),l=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),c=/./.test;i({target:"RegExp",proto:!0,forced:!l},{test:function(e){var t=s(this),n=a(e),i=t.exec;if(!o(i))return r(c,t,n);var l=r(i,t,n);return null!==l&&(s(l),!0)}})},"00ce":function(e,t,n){"use strict";var i,r=n("a645"),o=n("417f7"),s=n("dc99"),a=n("1409"),l=n("67ee"),c=n("0d25"),u=n("67d9"),h=Function,d=function(e){try{return h('"use strict"; return ('+e+").constructor;")()}catch(t){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(j){f=null}var p=function(){throw new c},g=f?function(){try{return p}catch(e){try{return f(arguments,"callee").get}catch(t){return p}}}():p,m=n("5156")(),v=n("0a36")(),b=Object.getPrototypeOf||(v?function(e){return e.__proto__}:null),y={},_="undefined"!==typeof Uint8Array&&b?b(Uint8Array):i,w={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":m&&b?b([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"===typeof Atomics?i:Atomics,"%BigInt%":"undefined"===typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"===typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":h,"%GeneratorFunction%":y,"%Int8Array%":"undefined"===typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":m&&b?b(b([][Symbol.iterator]())):i,"%JSON%":"object"===typeof JSON?JSON:i,"%Map%":"undefined"===typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&m&&b?b((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?i:Promise,"%Proxy%":"undefined"===typeof Proxy?i:Proxy,"%RangeError%":s,"%ReferenceError%":a,"%Reflect%":"undefined"===typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&m&&b?b((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":m&&b?b(""[Symbol.iterator]()):i,"%Symbol%":m?Symbol:i,"%SyntaxError%":l,"%ThrowTypeError%":g,"%TypedArray%":_,"%TypeError%":c,"%Uint8Array%":"undefined"===typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?i:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"===typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?i:WeakSet};if(b)try{null.error}catch(j){var C=b(b(j));w["%Error.prototype%"]=C}var S=function e(t){var n;if("%AsyncFunction%"===t)n=d("async function () {}");else if("%GeneratorFunction%"===t)n=d("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=d("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&b&&(n=b(r.prototype))}return w[t]=n,n},x={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=n("0f7c"),k=n("9671"),L=O.call(Function.call,Array.prototype.concat),E=O.call(Function.apply,Array.prototype.splice),D=O.call(Function.call,String.prototype.replace),I=O.call(Function.call,String.prototype.slice),M=O.call(Function.call,RegExp.prototype.exec),T=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,N=function(e){var t=I(e,0,1),n=I(e,-1);if("%"===t&&"%"!==n)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var i=[];return D(e,T,(function(e,t,n,r){i[i.length]=n?D(r,A,"$1"):t||e})),i},P=function(e,t){var n,i=e;if(k(x,i)&&(n=x[i],i="%"+n[0]+"%"),k(w,i)){var r=w[i];if(r===y&&(r=S(i)),"undefined"===typeof r&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:r}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===M(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=N(e),i=n.length>0?n[0]:"",r=P("%"+i+"%",t),o=r.name,s=r.value,a=!1,u=r.alias;u&&(i=u[0],E(n,L([0,1],u)));for(var h=1,d=!0;h<n.length;h+=1){var p=n[h],g=I(p,0,1),m=I(p,-1);if(('"'===g||"'"===g||"`"===g||'"'===m||"'"===m||"`"===m)&&g!==m)throw new l("property names with quotes must have matching quotes");if("constructor"!==p&&d||(a=!0),i+="."+p,o="%"+i+"%",k(w,o))s=w[o];else if(null!=s){if(!(p in s)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(f&&h+1>=n.length){var v=f(s,p);d=!!v,s=d&&"get"in v&&!("originalValue"in v.get)?v.get:s[p]}else d=k(s,p),s=s[p];d&&!a&&(w[o]=s)}}return s}},"00ee":function(e,t,n){var i=n("b622"),r=i("toStringTag"),o={};o[r]="z",e.exports="[object z]"===String(o)},"015d":function(e,t,n){"use strict";(function(t){function n(e,n){var o=this,a=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return a||l?(n?n(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(s,this,e)):t.nextTick(s,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!n&&e?o._writableState?o._writableState.errorEmitted?t.nextTick(r,o):(o._writableState.errorEmitted=!0,t.nextTick(i,o,e)):t.nextTick(i,o,e):n?(t.nextTick(r,o),n(e)):t.nextTick(r,o)})),this)}function i(e,t){s(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(e,t){e.emit("error",t)}function a(e,t){var n=e._readableState,i=e._writableState;n&&n.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:n,undestroy:o,errorOrDestroy:a}}).call(this,n("4362"))},"01b0":function(e,t,n){},"01b4":function(e,t){var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=n},"0292":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return n.e("chunk-2d0a3577").then(n.bind(null,"0287"))}})},"030c":function(e,t,n){"use strict";(function(t){var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var r=n("3bd2"),o=n("1beb");n("3fb5")(c,r);for(var s=i(o.prototype),a=0;a<s.length;a++){var l=s[a];c.prototype[l]||(c.prototype[l]=o.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);r.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||t.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,n("4362"))},"035d":function(e,t,n){t=e.exports=n("85f8"),t.Stream=t,t.Readable=t,t.Writable=n("13a8"),t.Duplex=n("be3f"),t.Transform=n("3ca2"),t.PassThrough=n("7058"),t.finished=n("d9e1"),t.pipeline=n("652a")},"0366":function(e,t,n){var i=n("e330"),r=n("59ed"),o=n("40d5"),s=i(i.bind);e.exports=function(e,t){return r(e),void 0===t?e:o?s(e,t):function(){return e.apply(t,arguments)}}},"037e":function(e,t,n){},"03d6":function(e,t,n){var i=n("9c0e"),r=n("6ca1"),o=n("39ad")(!1),s=n("5a94")("IE_PROTO");e.exports=function(e,t){var n,a=r(e),l=0,c=[];for(n in a)n!=s&&i(a,n)&&c.push(n);while(t.length>l)i(a,n=t[l++])&&(~o(c,n)||c.push(n));return c}},"03d9":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return a})),n.d(t,"f",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return u})),n.d(t,"g",(function(){return h}));var i,r,o,s,a,l,c,u,h,d=n("dff7");(function(e){e.noSelection=d["a"]("noSelection","No selection"),e.singleSelectionRange=d["a"]("singleSelectionRange","Line {0}, Column {1} ({2} selected)"),e.singleSelection=d["a"]("singleSelection","Line {0}, Column {1}"),e.multiSelectionRange=d["a"]("multiSelectionRange","{0} selections ({1} characters selected)"),e.multiSelection=d["a"]("multiSelection","{0} selections"),e.emergencyConfOn=d["a"]("emergencyConfOn","Now changing the setting `accessibilitySupport` to 'on'."),e.openingDocs=d["a"]("openingDocs","Now opening the Editor Accessibility documentation page."),e.readonlyDiffEditor=d["a"]("readonlyDiffEditor"," in a read-only pane of a diff editor."),e.editableDiffEditor=d["a"]("editableDiffEditor"," in a pane of a diff editor."),e.readonlyEditor=d["a"]("readonlyEditor"," in a read-only code editor"),e.editableEditor=d["a"]("editableEditor"," in a code editor"),e.changeConfigToOnMac=d["a"]("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."),e.changeConfigToOnWinLinux=d["a"]("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now."),e.auto_on=d["a"]("auto_on","The editor is configured to be optimized for usage with a Screen Reader."),e.auto_off=d["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."),e.tabFocusModeOnMsg=d["a"]("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),e.tabFocusModeOnMsgNoKb=d["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."),e.tabFocusModeOffMsg=d["a"]("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),e.tabFocusModeOffMsgNoKb=d["a"]("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding."),e.openDocMac=d["a"]("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."),e.openDocWinLinux=d["a"]("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility."),e.outroMsg=d["a"]("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),e.showAccessibilityHelpAction=d["a"]("showAccessibilityHelpAction","Show Accessibility Help")})(i||(i={})),function(e){e.inspectTokensAction=d["a"]("inspectTokens","Developer: Inspect Tokens")}(r||(r={})),function(e){e.gotoLineActionLabel=d["a"]("gotoLineActionLabel","Go to Line/Column...")}(o||(o={})),function(e){e.helpQuickAccessActionLabel=d["a"]("helpQuickAccess","Show all Quick Access Providers")}(s||(s={})),function(e){e.quickCommandActionLabel=d["a"]("quickCommandActionLabel","Command Palette"),e.quickCommandHelp=d["a"]("quickCommandActionHelp","Show And Run Commands")}(a||(a={})),function(e){e.quickOutlineActionLabel=d["a"]("quickOutlineActionLabel","Go to Symbol..."),e.quickOutlineByCategoryActionLabel=d["a"]("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")}(l||(l={})),function(e){e.editorViewAccessibleLabel=d["a"]("editorViewAccessibleLabel","Editor content"),e.accessibilityHelpMessage=d["a"]("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")}(c||(c={})),function(e){e.toggleHighContrast=d["a"]("toggleHighContrast","Toggle High Contrast Theme")}(u||(u={})),function(e){e.bulkEditServiceSummary=d["a"]("bulkEditServiceSummary","Made {0} edits in {1} files")}(h||(h={}))},"03e8":function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return m}));var i,r=n("0a0f"),o=n("308f"),s=n("a666"),a=n("ef8e"),l=n("5fe7"),c=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};(function(e){e[e["None"]=0]="None",e[e["Initialized"]=1]="Initialized",e[e["Closed"]=2]="Closed"})(i||(i={}));class u extends s["a"]{constructor(e,t=Object.create(null)){super(),this.database=e,this.options=t,this._onDidChangeStorage=this._register(new o["b"]),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=i.None,this.cache=new Map,this.flushDelayer=new l["f"](u.DEFAULT_FLUSH_DELAY),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal(e=>this.onDidChangeItemsExternal(e)))}onDidChangeItemsExternal(e){var t,n;null===(t=e.changed)||void 0===t||t.forEach((e,t)=>this.accept(t,e)),null===(n=e.deleted)||void 0===n||n.forEach(e=>this.accept(e,void 0))}accept(e,t){if(this.state===i.Closed)return;let n=!1;if(Object(a["m"])(t))n=this.cache.delete(e);else{const i=this.cache.get(e);i!==t&&(this.cache.set(e,t),n=!0)}n&&this._onDidChangeStorage.fire(e)}get(e,t){const n=this.cache.get(e);return Object(a["m"])(n)?t:n}getBoolean(e,t){const n=this.get(e);return Object(a["m"])(n)?t:"true"===n}getNumber(e,t){const n=this.get(e);return Object(a["m"])(n)?t:parseInt(n,10)}set(e,t){return c(this,void 0,void 0,(function*(){if(this.state===i.Closed)return;if(Object(a["m"])(t))return this.delete(e);const n=String(t),r=this.cache.get(e);return r!==n?(this.cache.set(e,n),this.pendingInserts.set(e,n),this.pendingDeletes.delete(e),this._onDidChangeStorage.fire(e),this.flushDelayer.trigger(()=>this.flushPending())):void 0}))}delete(e){return c(this,void 0,void 0,(function*(){if(this.state===i.Closed)return;const t=this.cache.delete(e);return t?(this.pendingDeletes.has(e)||this.pendingDeletes.add(e),this.pendingInserts.delete(e),this._onDidChangeStorage.fire(e),this.flushDelayer.trigger(()=>this.flushPending())):void 0}))}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}flushPending(){return c(this,void 0,void 0,(function*(){if(!this.hasPending)return;const e={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(e).finally(()=>{var e;if(!this.hasPending)while(this.whenFlushedCallbacks.length)null===(e=this.whenFlushedCallbacks.pop())||void 0===e||e()})}))}dispose(){this.flushDelayer.dispose(),super.dispose()}}u.DEFAULT_FLUSH_DELAY=100;class h{constructor(){this.onDidChangeItemsExternal=o["c"].None,this.items=new Map}updateItems(e){return c(this,void 0,void 0,(function*(){e.insert&&e.insert.forEach((e,t)=>this.items.set(t,e)),e.delete&&e.delete.forEach(e=>this.items.delete(e))}))}}const d="__$__targetStorageMarker",f=Object(r["c"])("storageService");var p;(function(e){e[e["NONE"]=0]="NONE",e[e["SHUTDOWN"]=1]="SHUTDOWN"})(p||(p={}));class g extends s["a"]{constructor(e={flushInterval:g.DEFAULT_FLUSH_INTERVAL}){super(),this.options=e,this._onDidChangeValue=this._register(new o["e"]),this._onDidChangeTarget=this._register(new o["e"]),this._onWillSaveState=this._register(new o["b"]),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._globalKeyTargets=void 0}emitDidChangeValue(e,t){t===d?(0===e?this._globalKeyTargets=void 0:1===e&&(this._workspaceKeyTargets=void 0),this._onDidChangeTarget.fire({scope:e})):this._onDidChangeValue.fire({scope:e,key:t,target:this.getKeyTargets(e)[t]})}get(e,t,n){var i;return null===(i=this.getStorage(t))||void 0===i?void 0:i.get(e,n)}getBoolean(e,t,n){var i;return null===(i=this.getStorage(t))||void 0===i?void 0:i.getBoolean(e,n)}getNumber(e,t,n){var i;return null===(i=this.getStorage(t))||void 0===i?void 0:i.getNumber(e,n)}store(e,t,n,i){Object(a["m"])(t)?this.remove(e,n):this.withPausedEmitters(()=>{var r;this.updateKeyTarget(e,n,i),null===(r=this.getStorage(n))||void 0===r||r.set(e,t)})}remove(e,t){this.withPausedEmitters(()=>{var n;this.updateKeyTarget(e,t,void 0),null===(n=this.getStorage(t))||void 0===n||n.delete(e)})}withPausedEmitters(e){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{e()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(e,t,n){var i,r;const o=this.getKeyTargets(t);"number"===typeof n?o[e]!==n&&(o[e]=n,null===(i=this.getStorage(t))||void 0===i||i.set(d,JSON.stringify(o))):"number"===typeof o[e]&&(delete o[e],null===(r=this.getStorage(t))||void 0===r||r.set(d,JSON.stringify(o)))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get globalKeyTargets(){return this._globalKeyTargets||(this._globalKeyTargets=this.loadKeyTargets(0)),this._globalKeyTargets}getKeyTargets(e){return 0===e?this.globalKeyTargets:this.workspaceKeyTargets}loadKeyTargets(e){const t=this.get(d,e);if(t)try{return JSON.parse(t)}catch(n){}return Object.create(null)}}g.DEFAULT_FLUSH_INTERVAL=6e4;class m extends g{constructor(){super(),this.globalStorage=this._register(new u(new h)),this.workspaceStorage=this._register(new u(new h)),this._register(this.workspaceStorage.onDidChangeStorage(e=>this.emitDidChangeValue(1,e))),this._register(this.globalStorage.onDidChangeStorage(e=>this.emitDidChangeValue(0,e)))}getStorage(e){return 0===e?this.globalStorage:this.workspaceStorage}}},"042d":function(e,t,n){},"0447":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["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("chunk-2d0d0645").then(n.bind(null,"687d"))}})},"045b":function(e,t,n){"use strict";function i(e,t){let n=e.getCount(),i=e.findTokenIndexAtOffset(t),o=e.getLanguageId(i),s=i;while(s+1<n&&e.getLanguageId(s+1)===o)s++;let a=i;while(a>0&&e.getLanguageId(a-1)===o)a--;return new r(e,o,a,s+1,e.getStartOffset(a),e.getEndOffset(s))}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));class r{constructor(e,t,n,i,r,o){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=i,this.firstCharOffset=r,this._lastCharOffset=o}getLineContent(){const e=this._actual.getLineContent();return e.substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){const t=this._actual.getLineContent();return t.substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function o(e){return 0!==(7&e)}},"04d1":function(e,t,n){var i=n("342f"),r=i.match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},"04f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=32,r=7;function o(e){var t=0;while(e>=i)t|=1&e,e>>=1;return e+t}function s(e,t,n,i){var r=t+1;if(r===n)return 1;if(i(e[r++],e[t])<0){while(r<n&&i(e[r],e[r-1])<0)r++;a(e,t,r)}else while(r<n&&i(e[r],e[r-1])>=0)r++;return r-t}function a(e,t,n){n--;while(t<n){var i=e[t];e[t++]=e[n],e[n--]=i}}function l(e,t,n,i,r){for(i===t&&i++;i<n;i++){var o,s=e[i],a=t,l=i;while(a<l)o=a+l>>>1,r(s,e[o])<0?l=o:a=o+1;var c=i-a;switch(c){case 3:e[a+3]=e[a+2];case 2:e[a+2]=e[a+1];case 1:e[a+1]=e[a];break;default:while(c>0)e[a+c]=e[a+c-1],c--}e[a]=s}}function c(e,t,n,i,r,o){var s=0,a=0,l=1;if(o(e,t[n+r])>0){a=i-r;while(l<a&&o(e,t[n+r+l])>0)s=l,l=1+(l<<1),l<=0&&(l=a);l>a&&(l=a),s+=r,l+=r}else{a=r+1;while(l<a&&o(e,t[n+r-l])<=0)s=l,l=1+(l<<1),l<=0&&(l=a);l>a&&(l=a);var c=s;s=r-l,l=r-c}s++;while(s<l){var u=s+(l-s>>>1);o(e,t[n+u])>0?s=u+1:l=u}return l}function u(e,t,n,i,r,o){var s=0,a=0,l=1;if(o(e,t[n+r])<0){a=r+1;while(l<a&&o(e,t[n+r-l])<0)s=l,l=1+(l<<1),l<=0&&(l=a);l>a&&(l=a);var c=s;s=r-l,l=r-c}else{a=i-r;while(l<a&&o(e,t[n+r+l])>=0)s=l,l=1+(l<<1),l<=0&&(l=a);l>a&&(l=a),s+=r,l+=r}s++;while(s<l){var u=s+(l-s>>>1);o(e,t[n+u])<0?l=u:s=u+1}return l}function h(e,t){var n,i,o=r,s=0,a=[];function l(e,t){n[s]=e,i[s]=t,s+=1}function h(){while(s>1){var e=s-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;f(e)}}function d(){while(s>1){var e=s-2;e>0&&i[e-1]<i[e+1]&&e--,f(e)}}function f(r){var o=n[r],a=i[r],l=n[r+1],h=i[r+1];i[r]=a+h,r===s-3&&(n[r+1]=n[r+2],i[r+1]=i[r+2]),s--;var d=u(e[l],e,o,a,0,t);o+=d,a-=d,0!==a&&(h=c(e[o+a-1],e,l,h,h-1,t),0!==h&&(a<=h?p(o,a,l,h):g(o,a,l,h)))}function p(n,i,s,l){var h=0;for(h=0;h<i;h++)a[h]=e[n+h];var d=0,f=s,p=n;if(e[p++]=e[f++],0!==--l)if(1!==i){var g,m,v,b=o;while(1){g=0,m=0,v=!1;do{if(t(e[f],a[d])<0){if(e[p++]=e[f++],m++,g=0,0===--l){v=!0;break}}else if(e[p++]=a[d++],g++,m=0,1===--i){v=!0;break}}while((g|m)<b);if(v)break;do{if(g=u(e[f],a,d,i,0,t),0!==g){for(h=0;h<g;h++)e[p+h]=a[d+h];if(p+=g,d+=g,i-=g,i<=1){v=!0;break}}if(e[p++]=e[f++],0===--l){v=!0;break}if(m=c(a[d],e,f,l,0,t),0!==m){for(h=0;h<m;h++)e[p+h]=e[f+h];if(p+=m,f+=m,l-=m,0===l){v=!0;break}}if(e[p++]=a[d++],1===--i){v=!0;break}b--}while(g>=r||m>=r);if(v)break;b<0&&(b=0),b+=2}if(o=b,o<1&&(o=1),1===i){for(h=0;h<l;h++)e[p+h]=e[f+h];e[p+l]=a[d]}else{if(0===i)throw new Error;for(h=0;h<i;h++)e[p+h]=a[d+h]}}else{for(h=0;h<l;h++)e[p+h]=e[f+h];e[p+l]=a[d]}else for(h=0;h<i;h++)e[p+h]=a[d+h]}function g(n,i,s,l){var h=0;for(h=0;h<l;h++)a[h]=e[s+h];var d=n+i-1,f=l-1,p=s+l-1,g=0,m=0;if(e[p--]=e[d--],0!==--i)if(1!==l){var v=o;while(1){var b=0,y=0,_=!1;do{if(t(a[f],e[d])<0){if(e[p--]=e[d--],b++,y=0,0===--i){_=!0;break}}else if(e[p--]=a[f--],y++,b=0,1===--l){_=!0;break}}while((b|y)<v);if(_)break;do{if(b=i-u(a[f],e,n,i,i-1,t),0!==b){for(p-=b,d-=b,i-=b,m=p+1,g=d+1,h=b-1;h>=0;h--)e[m+h]=e[g+h];if(0===i){_=!0;break}}if(e[p--]=a[f--],1===--l){_=!0;break}if(y=l-c(e[d],a,0,l,l-1,t),0!==y){for(p-=y,f-=y,l-=y,m=p+1,g=f+1,h=0;h<y;h++)e[m+h]=a[g+h];if(l<=1){_=!0;break}}if(e[p--]=e[d--],0===--i){_=!0;break}v--}while(b>=r||y>=r);if(_)break;v<0&&(v=0),v+=2}if(o=v,o<1&&(o=1),1===l){for(p-=i,d-=i,m=p+1,g=d+1,h=i-1;h>=0;h--)e[m+h]=e[g+h];e[p]=a[f]}else{if(0===l)throw new Error;for(g=p-(l-1),h=0;h<l;h++)e[g+h]=a[h]}}else{for(p-=i,d-=i,m=p+1,g=d+1,h=i-1;h>=0;h--)e[m+h]=e[g+h];e[p]=a[f]}else for(g=p-(l-1),h=0;h<l;h++)e[g+h]=a[h]}return n=[],i=[],{mergeRuns:h,forceMergeRuns:d,pushRun:l}}function d(e,t,n,r){n||(n=0),r||(r=e.length);var a=r-n;if(!(a<2)){var c=0;if(a<i)return c=s(e,n,r,t),void l(e,n,r,n+c,t);var u=h(e,t),d=o(a);do{if(c=s(e,n,r,t),c<d){var f=a;f>d&&(f=d),l(e,n,n+f,n+c,t),c=f}u.pushRun(n,c),u.mergeRuns(),a-=c,n+=c}while(0!==a);u.forceMergeRuns()}}},"04f7":function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return b}));var i=n("07fd"),r=n("e0d3"),o=n("6d8b"),s=n("2b17"),a=n("b7d9"),l=n("edae"),c=n("ec6f"),u=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Object(a["d"])(e,t)},e}();function h(e,t){var n=new u,r=e.data,a=n.sourceFormat=e.sourceFormat,c=e.startIndex,h="";e.seriesLayoutBy!==i["a"]&&Object(l["c"])(h);var m=[],v={},b=e.dimensionsDefine;if(b)Object(o["each"])(b,(function(e,t){var n=e.name,i={index:t,name:n,displayName:e.displayName};if(m.push(i),null!=n){var r="";Object(o["hasOwn"])(v,n)&&Object(l["c"])(r),v[n]=i}}));else for(var y=0;y<e.dimensionsDetectedCount;y++)m.push({index:y});var _=Object(s["c"])(a,i["a"]);t.__isBuiltIn&&(n.getRawDataItem=function(e){return _(r,c,m,e)},n.getRawData=Object(o["bind"])(d,null,e)),n.cloneRawData=Object(o["bind"])(f,null,e);var w=Object(s["b"])(a,i["a"]);n.count=Object(o["bind"])(w,null,r,c,m);var C=Object(s["d"])(a);n.retrieveValue=function(e,t){var n=_(r,c,m,e);return S(n,t)};var S=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=m[t];return n?C(e,t,n.name):void 0}};return n.getDimensionInfo=Object(o["bind"])(p,null,m,v),n.cloneAllDimensionInfo=Object(o["bind"])(g,null,m),n}function d(e){var t=e.sourceFormat;if(!_(t)){var n="";0,Object(l["c"])(n)}return e.data}function f(e){var t=e.sourceFormat,n=e.data;if(!_(t)){var r="";0,Object(l["c"])(r)}if(t===i["c"]){for(var s=[],a=0,c=n.length;a<c;a++)s.push(n[a].slice());return s}if(t===i["e"]){for(s=[],a=0,c=n.length;a<c;a++)s.push(Object(o["extend"])({},n[a]));return s}}function p(e,t,n){if(null!=n)return Object(o["isNumber"])(n)||!isNaN(n)&&!Object(o["hasOwn"])(t,n)?e[n]:Object(o["hasOwn"])(t,n)?t[n]:void 0}function g(e){return Object(o["clone"])(e)}var m=Object(o["createHashMap"])();function v(e){e=Object(o["clone"])(e);var t=e.type,n="";t||Object(l["c"])(n);var i=t.split(":");2!==i.length&&Object(l["c"])(n);var r=!1;"echarts"===i[0]&&(t=i[1],r=!0),e.__isBuiltIn=r,m.set(t,e)}function b(e,t,n){var i=Object(r["r"])(e),o=i.length,s="";o||Object(l["c"])(s);for(var a=0,c=o;a<c;a++){var u=i[a];t=y(u,t,n,1===o?null:a),a!==c-1&&(t.length=Math.max(t.length,1))}return t}function y(e,t,n,s){var a="";t.length||Object(l["c"])(a),Object(o["isObject"])(e)||Object(l["c"])(a);var u=e.type,d=m.get(u);d||Object(l["c"])(a);var f=Object(o["map"])(t,(function(e){return h(e,d)})),p=Object(r["r"])(d.transform({upstream:f[0],upstreamList:f,config:Object(o["clone"])(e.config)}));return Object(o["map"])(p,(function(e,n){var r="";Object(o["isObject"])(e)||Object(l["c"])(r),e.data||Object(l["c"])(r);var s,a=Object(c["d"])(e.data);_(a)||Object(l["c"])(r);var u=t[0];if(u&&0===n&&!e.dimensions){var h=u.startIndex;h&&(e.data=u.data.slice(0,h).concat(e.data)),s={seriesLayoutBy:i["a"],sourceHeader:h,dimensions:u.metaRawOption.dimensions}}else s={seriesLayoutBy:i["a"],sourceHeader:0,dimensions:e.dimensions};return Object(c["b"])(e.data,s,null)}))}function _(e){return e===i["c"]||e===i["e"]}},"04f8":function(e,t,n){var i=n("2d00"),r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},"04fb":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=i(n("7037")),o=i(n("970b"));n("0ca1");var s=i(n("9886")),a=n("5557"),l=n("a736"),c=function e(t){if((0,o["default"])(this,e),!t)return console.error("Charts Missing parameters!"),!1;var n=t.clientWidth,i=t.clientHeight,r=document.createElement("canvas");r.setAttribute("width",n),r.setAttribute("height",i),t.appendChild(r);var a={container:t,canvas:r,render:new s["default"](r),option:null};Object.assign(this,a)};t["default"]=c,c.prototype.setOption=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e||"object"!==(0,r["default"])(e))return console.error("setOption Missing parameters!"),!1;t&&this.render.graphs.forEach((function(e){return e.animationEnd()}));var n=(0,a.deepClone)(e,!0);(0,l.mergeColor)(this,n),(0,l.grid)(this,n),(0,l.axis)(this,n),(0,l.radarAxis)(this,n),(0,l.title)(this,n),(0,l.bar)(this,n),(0,l.line)(this,n),(0,l.pie)(this,n),(0,l.radar)(this,n),(0,l.gauge)(this,n),(0,l.legend)(this,n),this.option=e,this.render.launchAnimation()},c.prototype.resize=function(){var e=this.container,t=this.canvas,n=this.render,i=this.option,r=e.clientWidth,o=e.clientHeight;t.setAttribute("width",r),t.setAttribute("height",o),n.area=[r,o],this.setOption(i)}},"050c":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bezierCurveToPolyline",{enumerable:!0,get:function(){return r.bezierCurveToPolyline}}),Object.defineProperty(t,"getBezierCurveLength",{enumerable:!0,get:function(){return r.getBezierCurveLength}}),Object.defineProperty(t,"polylineToBezierCurve",{enumerable:!0,get:function(){return o["default"]}}),t["default"]=void 0;var r=n("2db9"),o=i(n("ae10")),s={bezierCurveToPolyline:r.bezierCurveToPolyline,getBezierCurveLength:r.getBezierCurveLength,polylineToBezierCurve:o["default"]};t["default"]=s},"051b":function(e,t,n){var i=n("1a14"),r=n("10db");e.exports=n("0bad")?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},"0542":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return n.e("chunk-2d216f3b").then(n.bind(null,"c53f"))}})},"057f":function(e,t,n){var i=n("c6b6"),r=n("fc6a"),o=n("241c").f,s=n("4dae"),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return o(e)}catch(t){return s(a)}};e.exports.f=function(e){return a&&"Window"==i(e)?l(e):o(r(e))}},"05ee":function(e,t,n){"use strict";const i=n(0),r=n("34eb")("mqttjs:tcp");function o(e,t){t.port=t.port||1883,t.hostname=t.hostname||t.host||"localhost";const n=t.port,o=t.hostname;return r("port %d and host %s",n,o),i.createConnection(n,o)}e.exports=o},"05f5":function(e,t,n){var i=n("7a41"),r=n("ef08").document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},"0632":function(e,t,n){},"0655":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("8728"),r=1e-8;function o(e,t){return Math.abs(e-t)<r}function s(e,t,n){var r=0,s=e[0];if(!s)return!1;for(var a=1;a<e.length;a++){var l=e[a];r+=Object(i["a"])(s[0],s[1],l[0],l[1],t,n),s=l}var c=e[0];return o(s[0],c[0])&&o(s[1],c[1])||(r+=Object(i["a"])(s[0],s[1],c[0],c[1],t,n)),0!==r}},"0676":function(e,t,n){function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n("d9e2"),e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},"0680":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.axis=v;var r=i(n("7037")),o=i(n("278c")),s=i(n("9523")),a=i(n("448a")),l=n("18ad"),c=n("9d85"),u=n("becb"),h=n("5557");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,s["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p={xAxisConfig:c.xAxisConfig,yAxisConfig:c.yAxisConfig},g=(Math.min,Math.max,Math.abs),m=Math.pow;function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.xAxis,i=t.yAxis,r=t.series,o=[];n&&i&&r&&(o=b(n,i),o=y(o),o=o.filter((function(e){var t=e.show;return t})),o=_(o),o=w(o,r),o=N(o),o=P(o,e),o=j(o,e),o=F(o,e),o=B(o,e)),(0,l.doUpdate)({chart:e,series:o,key:"axisLine",getGraphConfig:W}),(0,l.doUpdate)({chart:e,series:o,key:"axisTick",getGraphConfig:H}),(0,l.doUpdate)({chart:e,series:o,key:"axisLabel",getGraphConfig:$}),(0,l.doUpdate)({chart:e,series:o,key:"axisName",getGraphConfig:X}),(0,l.doUpdate)({chart:e,series:o,key:"splitLine",getGraphConfig:te}),e.axisData=o}function b(e,t){var n,i,r=[],o=[];e instanceof Array?(n=r).push.apply(n,(0,a["default"])(e)):r.push(e);t instanceof Array?(i=o).push.apply(i,(0,a["default"])(t)):o.push(t);return r.splice(2),o.splice(2),r=r.map((function(e,t){return f(f({},e),{},{index:t,axis:"x"})})),o=o.map((function(e,t){return f(f({},e),{},{index:t,axis:"y"})})),[].concat((0,a["default"])(r),(0,a["default"])(o))}function y(e){var t=e.filter((function(e){var t=e.axis;return"x"===t})),n=e.filter((function(e){var t=e.axis;return"y"===t}));return t=t.map((function(e){return(0,u.deepMerge)((0,h.deepClone)(c.xAxisConfig),e)})),n=n.map((function(e){return(0,u.deepMerge)((0,h.deepClone)(c.yAxisConfig),e)})),[].concat((0,a["default"])(t),(0,a["default"])(n))}function _(e){var t=e.filter((function(e){var t=e.data;return"value"===t})),n=e.filter((function(e){var t=e.data;return"value"!==t}));return t.forEach((function(e){"boolean"!==typeof e.boundaryGap&&(e.boundaryGap=!1)})),n.forEach((function(e){"boolean"!==typeof e.boundaryGap&&(e.boundaryGap=!0)})),[].concat((0,a["default"])(t),(0,a["default"])(n))}function w(e,t){var n=e.filter((function(e){var t=e.data;return"value"===t})),i=e.filter((function(e){var t=e.data;return t instanceof Array}));return n=C(n,t),i=T(i),[].concat((0,a["default"])(n),(0,a["default"])(i))}function C(e,t){return e.map((function(e){var n=S(e,t),i=k(e,n),r=(0,o["default"])(i,2),s=r[0],a=r[1],l=A(s,a,e),c=e.axisLabel.formatter,u=[];return u=s<0&&a>0?D(s,a,l):I(s,a,l),u=u.map((function(e){return parseFloat(e.toFixed(2))})),f(f({},e),{},{maxValue:u.slice(-1)[0],minValue:u[0],label:M(u,c)})}))}function S(e,t){if(t=t.filter((function(e){var t=e.show,n=e.type;return!1!==t&&"pie"!==n})),0===t.length)return[0,0];var n=e.index,i=e.axis;t=O(t);var r=i+"Axis",o=t.filter((function(e){return e[r]===n}));return o.length||(o=t),x(o)}function x(e){if(e){var t=Math.min.apply(Math,(0,a["default"])(e.map((function(e){var t=e.data;return Math.min.apply(Math,(0,a["default"])((0,u.filterNonNumber)(t)))})))),n=Math.max.apply(Math,(0,a["default"])(e.map((function(e){var t=e.data;return Math.max.apply(Math,(0,a["default"])((0,u.filterNonNumber)(t)))}))));return[t,n]}}function O(e){var t=(0,h.deepClone)(e,!0);return e.forEach((function(n,i){var r=(0,u.mergeSameStackData)(n,e);t[i].data=r})),t}function k(e,t){var n=e.min,i=e.max,s=e.axis,a=(0,o["default"])(t,2),l=a[0],c=a[1],u=(0,r["default"])(n),h=(0,r["default"])(i);if(E(n)||(n=p[s+"AxisConfig"].min,u="string"),E(i)||(i=p[s+"AxisConfig"].max,h="string"),"string"===u){n=parseInt(l-g(l*parseFloat(n)/100));var d=L(n);n=parseFloat((n/d-.1).toFixed(1))*d}if("string"===h){i=parseInt(c+g(c*parseFloat(i)/100));var f=L(i);i=parseFloat((i/f+.1).toFixed(1))*f}return[n,i]}function L(e){var t=g(e).toString(),n=t.length,i=t.replace(/0*$/g,"").indexOf("0"),r=n-1;return-1!==i&&(r-=i),m(10,r)}function E(e){var t=(0,r["default"])(e),n="string"===t&&/^\d+%$/.test(e),i="number"===t;return n||i}function D(e,t,n){var i=[],r=[],o=0,s=0;do{i.push(o-=n)}while(o>e);do{r.push(s+=n)}while(s<t);return[].concat((0,a["default"])(i.reverse()),[0],(0,a["default"])(r))}function I(e,t,n){var i=[e],r=e;do{i.push(r+=n)}while(r<t);return i}function M(e,t){return t?("string"===typeof t&&(e=e.map((function(e){return t.replace("{value}",e)}))),"function"===typeof t&&(e=e.map((function(e,n){return t({value:e,index:n})}))),e):e}function T(e){return e.map((function(e){var t=e.data,n=e.axisLabel.formatter;return f(f({},e),{},{label:M(t,n)})}))}function A(e,t,n){var i=n.interval,r=n.minInterval,o=n.maxInterval,s=n.splitNumber,a=n.axis,l=p[a+"AxisConfig"];if("number"!==typeof i&&(i=l.interval),"number"!==typeof r&&(r=l.minInterval),"number"!==typeof o&&(o=l.maxInterval),"number"!==typeof s&&(s=l.splitNumber),"number"===typeof i)return i;var c=parseInt((t-e)/(s-1));return c.toString().length>1&&(c=parseInt(c.toString().replace(/\d$/,"0"))),0===c&&(c=1),"number"===typeof r&&c<r?r:"number"===typeof o&&c>o?o:c}function N(e){var t=e.filter((function(e){var t=e.axis;return"x"===t})),n=e.filter((function(e){var t=e.axis;return"y"===t}));return t[0]&&!t[0].position&&(t[0].position=c.xAxisConfig.position),t[1]&&!t[1].position&&(t[1].position="bottom"===t[0].position?"top":"bottom"),n[0]&&!n[0].position&&(n[0].position=c.yAxisConfig.position),n[1]&&!n[1].position&&(n[1].position="left"===n[0].position?"right":"left"),[].concat((0,a["default"])(t),(0,a["default"])(n))}function P(e,t){var n=t.gridArea,i=n.x,r=n.y,o=n.w,s=n.h;return e=e.map((function(e){var t=e.position,n=[];return"left"===t?n=[[i,r],[i,r+s]].reverse():"right"===t?n=[[i+o,r],[i+o,r+s]].reverse():"top"===t?n=[[i,r],[i+o,r]]:"bottom"===t&&(n=[[i,r+s],[i+o,r+s]]),f(f({},e),{},{linePosition:n})})),e}function j(e,t){return e.map((function(e){var t=e.axis,n=e.linePosition,i=e.position,r=e.label,s=e.boundaryGap;"boolean"!==typeof s&&(s=p[t+"AxisConfig"].boundaryGap);var a=r.length,l=(0,o["default"])(n,2),c=(0,o["default"])(l[0],2),u=c[0],h=c[1],d=(0,o["default"])(l[1],2),g=d[0],m=d[1],v="x"===t?g-u:m-h,b=v/(s?a:a-1),y=new Array(a).fill(0).map((function(e,n){return"x"===t?[u+b*(s?n+.5:n),h]:[u,h+b*(s?n+.5:n)]})),_=R(t,s,i,y,b);return f(f({},e),{},{tickPosition:y,tickLinePosition:_,tickGap:b})}))}function R(e,t,n,i,r){var s="x"===e?1:0,a=5;"x"===e&&"top"===n&&(a=-5),"y"===e&&"left"===n&&(a=-5);var l=i.map((function(e){var t=(0,h.deepClone)(e);return t[s]+=a,[(0,h.deepClone)(e),t]}));return t?(s="x"===e?0:1,a=r/2,l.forEach((function(e){var t=(0,o["default"])(e,2),n=t[0],i=t[1];n[s]+=a,i[s]+=a})),l):l}function F(e,t){return e.map((function(e){var t=e.nameGap,n=e.nameLocation,i=e.position,r=e.linePosition,s=(0,o["default"])(r,2),l=s[0],c=s[1],u=(0,a["default"])(l);"end"===n&&(u=(0,a["default"])(c)),"center"===n&&(u[0]=(l[0]+c[0])/2,u[1]=(l[1]+c[1])/2);var h=0;"top"===i&&"center"===n&&(h=1),"bottom"===i&&"center"===n&&(h=1),"left"===i&&"center"!==n&&(h=1),"right"===i&&"center"!==n&&(h=1);var d=t;return"top"===i&&"end"!==n&&(d*=-1),"left"===i&&"start"!==n&&(d*=-1),"bottom"===i&&"start"===n&&(d*=-1),"right"===i&&"end"===n&&(d*=-1),u[h]+=d,f(f({},e),{},{namePosition:u})}))}function B(e,t){var n=t.gridArea,i=n.w,r=n.h;return e.map((function(e){var t=e.tickLinePosition,n=e.position,s=e.boundaryGap,l=0,c=i;"top"!==n&&"bottom"!==n||(l=1),"top"!==n&&"bottom"!==n||(c=r),"right"!==n&&"bottom"!==n||(c*=-1);var u=t.map((function(e){var t=(0,o["default"])(e,1),n=t[0],i=(0,a["default"])(n);return i[l]+=c,[(0,a["default"])(n),i]}));return s||u.shift(),f(f({},e),{},{splitLinePosition:u})}))}function W(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel;return[{name:"polyline",index:i,visible:e.axisLine.show,animationCurve:t,animationFrame:n,shape:V(e),style:z(e)}]}function V(e){var t=e.linePosition;return{points:t}}function z(e){return e.axisLine.style}function H(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=U(e),o=q(e);return r.map((function(r){return{name:"polyline",index:i,visible:e.axisTick.show,animationCurve:t,animationFrame:n,shape:r,style:o}}))}function U(e){var t=e.tickLinePosition;return t.map((function(e){return{points:e}}))}function q(e){return e.axisTick.style}function $(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=K(e),o=Y(e,r);return r.map((function(r,s){return{name:"text",index:i,visible:e.axisLabel.show,animationCurve:t,animationFrame:n,shape:r,style:o[s],setGraphCenter:function(){}}}))}function K(e){var t=e.label,n=e.tickPosition,i=e.position;return n.map((function(e,n){return{position:G(e,i),content:t[n].toString()}}))}function G(e,t){var n=0,i=10;return"top"!==t&&"bottom"!==t||(n=1),"top"!==t&&"left"!==t||(i=-10),e=(0,h.deepClone)(e),e[n]+=i,e}function Y(e,t){var n=e.position,i=e.axisLabel.style,r=Z(n);i=(0,u.deepMerge)(r,i);var o=t.map((function(e){var t=e.position;return f(f({},i),{},{graphCenter:t})}));return o}function Z(e){return"left"===e?{textAlign:"right",textBaseline:"middle"}:"right"===e?{textAlign:"left",textBaseline:"middle"}:"top"===e?{textAlign:"center",textBaseline:"bottom"}:"bottom"===e?{textAlign:"center",textBaseline:"top"}:void 0}function X(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel;return[{name:"text",index:i,animationCurve:t,animationFrame:n,shape:Q(e),style:J(e)}]}function Q(e){var t=e.name,n=e.namePosition;return{content:t,position:n}}function J(e){var t=e.nameLocation,n=e.position,i=e.nameTextStyle,r=ee(n,t);return(0,u.deepMerge)(r,i)}function ee(e,t){return"top"===e&&"start"===t||"bottom"===e&&"start"===t||"left"===e&&"center"===t?{textAlign:"right",textBaseline:"middle"}:"top"===e&&"end"===t||"bottom"===e&&"end"===t||"right"===e&&"center"===t?{textAlign:"left",textBaseline:"middle"}:"top"===e&&"center"===t||"left"===e&&"end"===t||"right"===e&&"end"===t?{textAlign:"center",textBaseline:"bottom"}:"bottom"===e&&"center"===t||"left"===e&&"start"===t||"right"===e&&"start"===t?{textAlign:"center",textBaseline:"top"}:void 0}function te(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=ne(e),o=ie(e);return r.map((function(r){return{name:"polyline",index:i,visible:e.splitLine.show,animationCurve:t,animationFrame:n,shape:r,style:o}}))}function ne(e){var t=e.splitLinePosition;return t.map((function(e){return{points:e}}))}function ie(e){return e.splitLine.style}},"06ad":function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var i={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i))},elasticOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-i.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*i.bounceIn(2*e):.5*i.bounceOut(2*e-1)+.5}},r=i,o=n("6d8b"),s=n("b362"),a=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||o["noop"],this.ondestroy=e.ondestroy||o["noop"],this.onrestart=e.onrestart||o["noop"],e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,i=e-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,s=o?o(r):r;if(this.onframe(s),1===r){if(!this.loop)return!0;var a=i%n;this._startTime=e-a,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Object(o["isFunction"])(e)?e:r[e]||Object(s["a"])(e)},e}(),l=a,c=n("41ef"),u=n("7a29"),h=Array.prototype.slice;function d(e,t,n){return(t-e)*n+e}function f(e,t,n,i){for(var r=t.length,o=0;o<r;o++)e[o]=d(t[o],n[o],i);return e}function p(e,t,n,i){for(var r=t.length,o=r&&t[0].length,s=0;s<r;s++){e[s]||(e[s]=[]);for(var a=0;a<o;a++)e[s][a]=d(t[s][a],n[s][a],i)}return e}function g(e,t,n,i){for(var r=t.length,o=0;o<r;o++)e[o]=t[o]+n[o]*i;return e}function m(e,t,n,i){for(var r=t.length,o=r&&t[0].length,s=0;s<r;s++){e[s]||(e[s]=[]);for(var a=0;a<o;a++)e[s][a]=t[s][a]+n[s][a]*i}return e}function v(e,t){for(var n=e.length,i=t.length,r=n>i?t:e,o=Math.min(n,i),s=r[o-1]||{color:[0,0,0,0],offset:0},a=o;a<Math.max(n,i);a++)r.push({offset:s.offset,color:s.color.slice()})}function b(e,t,n){var i=e,r=t;if(i.push&&r.push){var o=i.length,s=r.length;if(o!==s){var a=o>s;if(a)i.length=s;else for(var l=o;l<s;l++)i.push(1===n?r[l]:h.call(r[l]))}var c=i[0]&&i[0].length;for(l=0;l<i.length;l++)if(1===n)isNaN(i[l])&&(i[l]=r[l]);else for(var u=0;u<c;u++)isNaN(i[l][u])&&(i[l][u]=r[l][u])}}function y(e){if(Object(o["isArrayLike"])(e)){var t=e.length;if(Object(o["isArrayLike"])(e[0])){for(var n=[],i=0;i<t;i++)n.push(h.call(e[i]));return n}return h.call(e)}return e}function _(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function w(e){return Object(o["isArrayLike"])(e&&e[0])?2:1}var C=0,S=1,x=2,O=3,k=4,L=5,E=6;function D(e){return e===k||e===L}function I(e){return e===S||e===x}var M=[0,0,0,0],T=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var i=this.keyframes,a=i.length,l=!1,h=E,d=t;if(Object(o["isArrayLike"])(t)){var f=w(t);h=f,(1===f&&!Object(o["isNumber"])(t[0])||2===f&&!Object(o["isNumber"])(t[0][0]))&&(l=!0)}else if(Object(o["isNumber"])(t)&&!Object(o["eqNaN"])(t))h=C;else if(Object(o["isString"])(t))if(isNaN(+t)){var p=c["parse"](t);p&&(d=p,h=O)}else h=C;else if(Object(o["isGradientObject"])(t)){var g=Object(o["extend"])({},d);g.colorStops=Object(o["map"])(t.colorStops,(function(e){return{offset:e.offset,color:c["parse"](e.color)}})),Object(u["m"])(t)?h=k:Object(u["o"])(t)&&(h=L),d=g}0===a?this.valType=h:h===this.valType&&h!==E||(l=!0),this.discrete=this.discrete||l;var m={time:e,value:d,rawValue:t,percent:0};return n&&(m.easing=n,m.easingFunc=Object(o["isFunction"])(n)?n:r[n]||Object(s["a"])(n)),i.push(m),m},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var i=this.valType,r=n.length,o=n[r-1],s=this.discrete,a=I(i),l=D(i),c=0;c<r;c++){var u=n[c],h=u.value,d=o.value;u.percent=u.time/e,s||(a&&c!==r-1?b(h,d,i):l&&v(h.colorStops,d.colorStops))}if(!s&&i!==L&&t&&this.needsAnimate()&&t.needsAnimate()&&i===t.valType&&!t._finished){this._additiveTrack=t;var f=n[0].value;for(c=0;c<r;c++)i===C?n[c].additiveValue=n[c].value-f:i===O?n[c].additiveValue=g([],n[c].value,f,-1):I(i)&&(n[c].additiveValue=i===S?g([],n[c].value,f,-1):m([],n[c].value,f,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,s=null!=this._additiveTrack,a=s?"additiveValue":"value",l=this.valType,c=this.keyframes,u=c.length,h=this.propName,g=l===O,m=this._lastFr,v=Math.min;if(1===u)i=r=c[0];else{if(t<0)n=0;else if(t<this._lastFrP){var b=v(m+1,u-1);for(n=b;n>=0;n--)if(c[n].percent<=t)break;n=v(n,u-2)}else{for(n=m;n<u;n++)if(c[n].percent>t)break;n=v(n-1,u-2)}r=c[n+1],i=c[n]}if(i&&r){this._lastFr=n,this._lastFrP=t;var y=r.percent-i.percent,w=0===y?1:v((t-i.percent)/y,1);r.easingFunc&&(w=r.easingFunc(w));var C=s?this._additiveValue:g?M:e[h];if(!I(l)&&!g||C||(C=this._additiveValue=[]),this.discrete)e[h]=w<1?i.rawValue:r.rawValue;else if(I(l))l===S?f(C,i[a],r[a],w):p(C,i[a],r[a],w);else if(D(l)){var x=i[a],L=r[a],E=l===k;e[h]={type:E?"linear":"radial",x:d(x.x,L.x,w),y:d(x.y,L.y,w),colorStops:Object(o["map"])(x.colorStops,(function(e,t){var n=L.colorStops[t];return{offset:d(e.offset,n.offset,w),color:_(f([],e.color,n.color,w))}})),global:L.global},E?(e[h].x2=d(x.x2,L.x2,w),e[h].y2=d(x.y2,L.y2,w)):e[h].r=d(x.r,L.r,w)}else if(g)f(C,i[a],r[a],w),s||(e[h]=_(C));else{var T=d(i[a],r[a],w);s?this._additiveValue=T:e[h]=T}s&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;t===C?e[n]=e[n]+i:t===O?(c["parse"](e[n],M),g(M,M,i,1),e[n]=_(M)):t===S?g(e[n],e[n],i,1):t===x&&m(e[n],e[n],i,1)},e}(),A=function(){function e(e,t,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i?Object(o["logError"])("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Object(o["keys"])(t),n)},e.prototype.whenWithKeys=function(e,t,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var s=n[o],a=r[s];if(!a){a=r[s]=new T(s);var l=void 0,c=this._getAdditiveTrack(s);if(c){var u=c.keyframes,h=u[u.length-1];l=h&&h.value,c.valType===O&&l&&(l=_(l))}else l=this._target[s];if(null==l)continue;e>0&&a.addKeyframe(0,y(l),i),this._trackKeys.push(s)}a.addKeyframe(e,y(t[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(e);r&&(t=r)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],s=this._tracks[o],a=this._getAdditiveTrack(o),c=s.keyframes,u=c.length;if(s.prepare(i,a),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=c[u-1];h&&(t._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new l({life:i,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var i=t._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(t._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(t._target,e);var s=t._onframeCbs;if(s)for(o=0;o<s.length;o++)s[o](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return Object(o["map"])(this._trackKeys,(function(t){return e._tracks[t]}))},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<e.length;r++){var o=n[e[r]];o&&!o.isFinished()&&(t?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var s=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var i=0;i<t.length;i++){var r=t[i],o=this._tracks[r];if(o&&!o.isFinished()){var s=o.keyframes,a=s[n?0:s.length-1];a&&(e[r]=y(a.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||Object(o["keys"])(e);for(var n=0;n<t.length;n++){var i=t[n],r=this._tracks[i];if(r){var s=r.keyframes;if(s.length>1){var a=s.pop();r.addKeyframe(a.time,e[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},e}();t["b"]=A},"06c5":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("a630"),n("fb6a"),n("b0c0"),n("d3b7"),n("ac1f"),n("00b4"),n("25f0"),n("3ca3");var i=n("6b75");function r(e,t){if(e){if("string"==typeof e)return Object(i["a"])(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(i["a"])(e,t):void 0}}},"06cf":function(e,t,n){var i=n("83ab"),r=n("c65b"),o=n("d1e7"),s=n("5c6c"),a=n("fc6a"),l=n("a04b"),c=n("1a2d"),u=n("0cfb"),h=Object.getOwnPropertyDescriptor;t.f=i?h:function(e,t){if(e=a(e),t=l(t),u)try{return h(e,t)}catch(n){}if(c(e,t))return s(!r(o.f,e,t),e[t])}},"072d":function(e,t,n){"use strict";var i=n("0bad"),r=n("9876"),o=n("fed5"),s=n("1917"),a=n("0983"),l=n("9fbb"),c=Object.assign;e.exports=!c||n("4b8b")((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=i}))?function(e,t){var n=a(e),c=arguments.length,u=1,h=o.f,d=s.f;while(c>u){var f,p=l(arguments[u++]),g=h?r(p).concat(h(p)):r(p),m=g.length,v=0;while(m>v)f=g[v++],i&&!d.call(p,f)||(n[f]=p[f])}return n}:c},"07fa":function(e,t,n){var i=n("50c4");e.exports=function(e){return i(e.length)}},"07fd":function(e,t,n){"use strict";n.d(t,"i",(function(){return r})),n.d(t,"f",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"g",(function(){return c})),n.d(t,"h",(function(){return u})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return d}));var i=n("6d8b"),r=Object(i["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),o="original",s="arrayRows",a="objectRows",l="keyedColumns",c="typedArray",u="unknown",h="column",d="row"},"0829":function(e,t,n){},"0836":function(e,t,n){},"083a":function(e,t,n){"use strict";var i=n("0d51"),r=TypeError;e.exports=function(e,t){if(!delete e[t])throw r("Cannot delete property "+i(t)+" of "+i(e))}},"0910":function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return _}));var i=n("dff7"),r=n("308f"),o=n("89cd"),s=n("ef8e"),a=n("dd1b");const l={Configuration:"base.contributions.configuration"},c={properties:{},patternProperties:{}},u={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},g="vscode://schemas/settings/resourceLanguage",m=o["a"].as(a["a"].JSONContribution);class v{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new r["b"],this._onDidUpdateConfiguration=new r["b"],this.defaultValues={},this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:i["a"]("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},m.registerSchema(g,this.resourceLanguageSettingsSchema)}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){const n=[];e.forEach(e=>{n.push(...this.validateAndRegisterProperties(e,t,e.extensionInfo)),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}),m.registerSchema(g,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(n)}registerOverrideIdentifiers(e){for(const t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}validateAndRegisterProperties(e,t=!0,n,i=3){var r;i=s["m"](e.scope)?i:e.scope;let o=[],a=e.properties;if(a)for(let c in a){if(t&&S(c)){delete a[c];continue}const e=a[c];this.updatePropertyDefaultValue(c,e),y.test(c)?e.scope=void 0:(e.scope=s["m"](e.scope)?i:e.scope,e.restricted=s["m"](e.restricted)?!!(null===(r=null===n||void 0===n?void 0:n.restrictedConfigurations)||void 0===r?void 0:r.includes(c)):e.restricted),!a[c].hasOwnProperty("included")||a[c].included?(this.configurationProperties[c]=a[c],!a[c].deprecationMessage&&a[c].markdownDeprecationMessage&&(a[c].deprecationMessage=a[c].markdownDeprecationMessage),o.push(c)):(this.excludedConfigurationProperties[c]=a[c],delete a[c])}let l=e.allOf;if(l)for(let s of l)o.push(...this.validateAndRegisterProperties(s,t,n,i));return o}getConfigurationProperties(){return this.configurationProperties}registerJSONConfiguration(e){const t=e=>{let n=e.properties;if(n)for(const t in n)this.updateSchema(t,n[t]);let i=e.allOf;i&&i.forEach(t)};t(e)}updateSchema(e,t){switch(c.properties[e]=t,t.scope){case 1:u.properties[e]=t;break;case 2:h.properties[e]=t;break;case 6:d.properties[e]=t;break;case 3:f.properties[e]=t;break;case 4:p.properties[e]=t;break;case 5:p.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t;break}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const t=`[${e}]`,n={type:"object",description:i["a"]("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:i["a"]("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:g};this.updatePropertyDefaultValue(t,n),c.properties[t]=n,u.properties[t]=n,h.properties[t]=n,d.properties[t]=n,f.properties[t]=n,p.properties[t]=n}this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){let n=this.defaultValues[e];s["l"](n)&&(n=t.default),s["l"](n)&&(n=w(t.type)),t.default=n}}const b="\\[.*\\]$",y=new RegExp(b);function _(e){return e.substring(1,e.length-1)}function w(e){const t=Array.isArray(e)?e[0]:e;switch(t){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}const C=new v;function S(e){return e.trim()?y.test(e)?i["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]?i["a"]("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):null:i["a"]("config.property.empty","Cannot register an empty property")}o["a"].add(l.Configuration,C)},"0924":function(e,t,n){"use strict";function i(e,t,n){switch(n){case"color":var i=e.getItemVisual(t,"style");return i[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:0}}function r(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:0}}function o(e,t,n,i){switch(n){case"color":var r=e.ensureUniqueItemVisual(t,"style");r[e.getVisual("drawType")]=i,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,i);break;default:0}}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o}))},"0983":function(e,t,n){var i=n("c901");e.exports=function(e){return Object(i(e))}},"099d":function(e,t,n){"use strict";function i(e){return e<0?0:e>255?255:0|e}function r(e){return e<0?0:e>4294967295?4294967295:0|e}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}))},"09d1":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return n.e("chunk-2d226775").then(n.bind(null,"e97b"))}})},"09db":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("d3f4"),r=n("6a89");class o{static _handleEolEdits(e,t){let n=void 0,i=[];for(let r of t)"number"===typeof r.eol&&(n=r.eol),r.range&&"string"===typeof r.text&&i.push(r);return"number"===typeof n&&e.hasModel()&&e.getModel().pushEOL(n),i}static _isFullModelReplaceEdit(e,t){if(!e.hasModel())return!1;const n=e.getModel(),i=n.validateRange(t.range),r=n.getFullModelRange();return r.equalsRange(i)}static execute(e,t,n){n&&e.pushUndoStop();const s=o._handleEolEdits(e,t);1===s.length&&o._isFullModelReplaceEdit(e,s[0])?e.executeEdits("formatEditsCommand",s.map(e=>i["a"].replace(r["a"].lift(e.range),e.text))):e.executeEdits("formatEditsCommand",s.map(e=>i["a"].replaceMove(r["a"].lift(e.range),e.text))),n&&e.pushUndoStop()}}},"0a06":function(e,t,n){"use strict";var i=n("c532"),r=n("30b5"),o=n("f6b4"),s=n("5270"),a=n("4a7b"),l=n("848b"),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=a(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var r,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!i){var u=[s,void 0];Array.prototype.unshift.apply(u,n),u=u.concat(o),r=Promise.resolve(e);while(u.length)r=r.then(u.shift(),u.shift());return r}var h=e;while(n.length){var d=n.shift(),f=n.shift();try{h=d(h)}catch(p){f(p);break}}try{r=s(h)}catch(p){return Promise.reject(p)}while(o.length)r=r.then(o.shift(),o.shift());return r},u.prototype.getUri=function(e){return e=a(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,i){return this.request(a(i||{},{method:e,url:t,data:n}))}})),e.exports=u},"0a0f":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return a})),function(e){function t(t){return t[e.DI_DEPENDENCIES]||[]}e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=t}(i||(i={}));const r=s("instantiationService");function o(e,t,n,r){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n,optional:r}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n,optional:r}],t[i.DI_TARGET]=t)}function s(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);const t=function(e,n,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");o(t,e,i,!1)};return t.toString=()=>e,i.serviceIds.set(e,t),t}function a(e){return function(t,n,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");o(e,t,i,!0)}}},"0a31":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("0f70"),r=n("30db");const o={clipboard:{writeText:r["g"]||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:r["g"]||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:(()=>r["g"]||i["i"]?0:navigator.keyboard||i["h"]?1:2)(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}},"0a33":function(e,t,n){},"0a36":function(e,t,n){"use strict";var i={__proto__:null,foo:{}},r=Object;e.exports=function(){return{__proto__:i}.foo===i.foo&&!(i instanceof r)}},"0a89":function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l}));var i=n("3742"),r=n("7061"),o=n("6a89");const s=!1;class a{constructor(e,t,n,i,r){this.value=e,this.selectionStart=t,this.selectionEnd=n,this.selectionStartPosition=i,this.selectionEndPosition=r}toString(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"}static readFromTextArea(e){return new a(e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),null,null)}collapseSelection(){return new a(this.value,this.value.length,this.value.length,null,null)}writeToTextArea(e,t,n){s&&console.log("writeToTextArea "+e+": "+this.toString()),t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)}deduceEditorPosition(e){if(e<=this.selectionStart){const t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){const t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}const t=this.value.substring(this.selectionStart,e);if(-1===t.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,t,1);const n=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,n,-1)}_finishDeduceEditorPosition(e,t,n){let i=0,r=-1;while(-1!==(r=t.indexOf("\n",r+1)))i++;return[e,n*t.length,i]}static selectedText(e){return new a(e,0,e.length,null,null)}static deduceInput(e,t,n){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};s&&(console.log("------------------------deduceInput"),console.log("PREVIOUS STATE: "+e.toString()),console.log("CURRENT STATE: "+t.toString()));let r=e.value,o=e.selectionStart,a=e.selectionEnd,l=t.value,c=t.selectionStart,u=t.selectionEnd;const h=r.substring(a),d=l.substring(u),f=i["e"](h,d);l=l.substring(0,l.length-f),r=r.substring(0,r.length-f);const p=r.substring(0,o),g=l.substring(0,c),m=i["d"](p,g);if(l=l.substring(m),r=r.substring(m),c-=m,o-=m,u-=m,a-=m,s&&(console.log("AFTER DIFFING PREVIOUS STATE: <"+r+">, selectionStart: "+o+", selectionEnd: "+a),console.log("AFTER DIFFING CURRENT STATE: <"+l+">, selectionStart: "+c+", selectionEnd: "+u)),n&&c===u&&r.length>0){let e=null;if(c===l.length?l.startsWith(r)&&(e=l.substring(r.length)):l.endsWith(r)&&(e=l.substring(0,l.length-r.length)),null!==e&&e.length>0&&(/\uFE0F/.test(e)||i["k"](e)))return{text:e,replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0}}if(c===u){if(r===l&&0===o&&a===r.length&&c===l.length&&-1===l.indexOf("\n")&&i["l"](l))return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};const e=p.length-m;return s&&console.log("REMOVE PREVIOUS: "+(p.length-m)+" chars"),{text:l,replacePrevCharCnt:e,replaceNextCharCnt:0,positionDelta:0}}const v=a-o;return{text:l,replacePrevCharCnt:v,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(e,t){if(!e)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(s&&(console.log("------------------------deduceAndroidCompositionInput"),console.log("PREVIOUS STATE: "+e.toString()),console.log("CURRENT STATE: "+t.toString())),e.value===t.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:t.selectionEnd-e.selectionEnd};const n=Math.min(i["d"](e.value,t.value),e.selectionEnd),r=Math.min(i["e"](e.value,t.value),e.value.length-e.selectionEnd),o=e.value.substring(n,e.value.length-r),a=t.value.substring(n,t.value.length-r),l=e.selectionStart-n,c=e.selectionEnd-n,u=t.selectionStart-n,h=t.selectionEnd-n;return s&&(console.log("AFTER DIFFING PREVIOUS STATE: <"+o+">, selectionStart: "+l+", selectionEnd: "+c),console.log("AFTER DIFFING CURRENT STATE: <"+a+">, selectionStart: "+u+", selectionEnd: "+h)),{text:a,replacePrevCharCnt:c,replaceNextCharCnt:o.length-c,positionDelta:h-a.length}}}a.EMPTY=new a("",0,0,null,null);class l{static _getPageOfLine(e,t){return Math.floor((e-1)/t)}static _getRangeForPage(e,t){const n=e*t,i=n+1,r=n+t;return new o["a"](i,1,r+1,1)}static fromEditorSelection(e,t,n,i,s){const c=l._getPageOfLine(n.startLineNumber,i),u=l._getRangeForPage(c,i),h=l._getPageOfLine(n.endLineNumber,i),d=l._getRangeForPage(h,i),f=u.intersectRanges(new o["a"](1,1,n.startLineNumber,n.startColumn));let p=t.getValueInRange(f,1);const g=t.getLineCount(),m=t.getLineMaxColumn(g),v=d.intersectRanges(new o["a"](n.endLineNumber,n.endColumn,g,m));let b,y=t.getValueInRange(v,1);if(c===h||c+1===h)b=t.getValueInRange(n,1);else{const e=u.intersectRanges(n),i=d.intersectRanges(n);b=t.getValueInRange(e,1)+String.fromCharCode(8230)+t.getValueInRange(i,1)}if(s){const e=500;p.length>e&&(p=p.substring(p.length-e,p.length)),y.length>e&&(y=y.substring(0,e)),b.length>2*e&&(b=b.substring(0,e)+String.fromCharCode(8230)+b.substring(b.length-e,b.length))}return new a(p+b+y,p.length,p.length+b.length,new r["a"](n.startLineNumber,n.startColumn),new r["a"](n.endLineNumber,n.endColumn))}}},"0ab8":function(e,t,n){"use strict";var i=n("33f9");n.o(i,"Emitter")&&n.d(t,"Emitter",(function(){return i["Emitter"]})),n.o(i,"MarkerSeverity")&&n.d(t,"MarkerSeverity",(function(){return i["MarkerSeverity"]})),n.o(i,"Range")&&n.d(t,"Range",(function(){return i["Range"]})),n.o(i,"Uri")&&n.d(t,"Uri",(function(){return i["Uri"]})),n.o(i,"editor")&&n.d(t,"editor",(function(){return i["editor"]})),n.o(i,"languages")&&n.d(t,"languages",(function(){return i["languages"]}))},"0ae2":function(e,t,n){var i=n("9876"),r=n("fed5"),o=n("1917");e.exports=function(e){var t=i(e),n=r.f;if(n){var s,a=n(e),l=o.f,c=0;while(a.length>c)l.call(e,s=a[c++])&&t.push(s)}return t}},"0b11":function(e,t,n){"use strict";n.r(t);var i=n("b2cc"),r=n("0b54");Object(i["l"])(r["f"].ID,r["f"]),Object(i["j"])(r["e"]),Object(i["j"])(r["g"]),Object(i["j"])(r["h"]),Object(i["j"])(r["d"]),Object(i["j"])(r["a"]),Object(i["j"])(r["c"]),Object(i["k"])(new r["b"])},"0b16":function(e,t,n){"use strict";var i=n("1985");function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["<",">",'"',"`"," ","\r","\n","\t"],c=["{","}","|","\\","^","`"].concat(l),u=["'"].concat(c),h=["%","/","?",";","#"].concat(u),d=["/","?","#"],f=255,p=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n("184d");function _(e,t,n){if(e&&"object"===typeof e&&e instanceof r)return e;var i=new r;return i.parse(e,t,n),i}function w(e){return"string"===typeof e&&(e=_(e)),e instanceof r?e.format():r.prototype.format.call(e)}function C(e,t){return _(e,!1,!0).resolve(t)}function S(e,t){return e?_(e,!1,!0).resolveObject(t):t}r.prototype.parse=function(e,t,n){if("string"!==typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),s=-1!==r&&r<e.indexOf("#")?"?":"#",l=e.split(s),c=/\\/g;l[0]=l[0].replace(c,"/"),e=l.join(s);var _=e;if(_=_.trim(),!n&&1===e.split("#").length){var w=a.exec(_);if(w)return this.path=_,this.href=_,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var C=o.exec(_);if(C){C=C[0];var S=C.toLowerCase();this.protocol=S,_=_.substr(C.length)}if(n||C||_.match(/^\/\/[^@/]+@[^@/]+/)){var x="//"===_.substr(0,2);!x||C&&v[C]||(_=_.substr(2),this.slashes=!0)}if(!v[C]&&(x||C&&!b[C])){for(var O,k,L=-1,E=0;E<d.length;E++){var D=_.indexOf(d[E]);-1!==D&&(-1===L||D<L)&&(L=D)}k=-1===L?_.lastIndexOf("@"):_.lastIndexOf("@",L),-1!==k&&(O=_.slice(0,k),_=_.slice(k+1),this.auth=decodeURIComponent(O)),L=-1;for(E=0;E<h.length;E++){D=_.indexOf(h[E]);-1!==D&&(-1===L||D<L)&&(L=D)}-1===L&&(L=_.length),this.host=_.slice(0,L),_=_.slice(L),this.parseHost(),this.hostname=this.hostname||"";var I="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!I)for(var M=this.hostname.split(/\./),T=(E=0,M.length);E<T;E++){var A=M[E];if(A&&!A.match(p)){for(var N="",P=0,j=A.length;P<j;P++)A.charCodeAt(P)>127?N+="x":N+=A[P];if(!N.match(p)){var R=M.slice(0,E),F=M.slice(E+1),B=A.match(g);B&&(R.push(B[1]),F.unshift(B[2])),F.length&&(_="/"+F.join(".")+_),this.hostname=R.join(".");break}}}this.hostname.length>f?this.hostname="":this.hostname=this.hostname.toLowerCase(),I||(this.hostname=i.toASCII(this.hostname));var W=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+W,this.href+=this.host,I&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==_[0]&&(_="/"+_))}if(!m[S])for(E=0,T=u.length;E<T;E++){var z=u[E];if(-1!==_.indexOf(z)){var H=encodeURIComponent(z);H===z&&(H=escape(z)),_=_.split(z).join(H)}}var U=_.indexOf("#");-1!==U&&(this.hash=_.substr(U),_=_.slice(0,U));var q=_.indexOf("?");if(-1!==q?(this.search=_.substr(q),this.query=_.substr(q+1),t&&(this.query=y.parse(this.query)),_=_.slice(0,q)):t&&(this.search="",this.query={}),_&&(this.pathname=_),b[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){W=this.pathname||"";var $=this.search||"";this.path=W+$}return this.href=this.format(),this},r.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",i=this.hash||"",r=!1,o="";this.host?r=e+this.host:this.hostname&&(r=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(r+=":"+this.port)),this.query&&"object"===typeof this.query&&Object.keys(this.query).length&&(o=y.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||b[t])&&!1!==r?(r="//"+(r||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):r||(r=""),i&&"#"!==i.charAt(0)&&(i="#"+i),s&&"?"!==s.charAt(0)&&(s="?"+s),n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})),s=s.replace("#","%23"),t+r+n+s+i},r.prototype.resolve=function(e){return this.resolveObject(_(e,!1,!0)).format()},r.prototype.resolveObject=function(e){if("string"===typeof e){var t=new r;t.parse(e,!1,!0),e=t}for(var n=new r,i=Object.keys(this),o=0;o<i.length;o++){var s=i[o];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),l=0;l<a.length;l++){var c=a[l];"protocol"!==c&&(n[c]=e[c])}return b[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!b[e.protocol]){for(var u=Object.keys(e),h=0;h<u.length;h++){var d=u[h];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||v[e.protocol])n.pathname=e.pathname;else{var f=(e.pathname||"").split("/");while(f.length&&!(e.host=f.shift()));e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),n.pathname=f.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var p=n.pathname||"",g=n.search||"";n.path=p+g}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var m=n.pathname&&"/"===n.pathname.charAt(0),y=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=y||m||n.host&&e.pathname,w=_,C=n.pathname&&n.pathname.split("/")||[],S=(f=e.pathname&&e.pathname.split("/")||[],n.protocol&&!b[n.protocol]);if(S&&(n.hostname="",n.port=null,n.host&&(""===C[0]?C[0]=n.host:C.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),_=_&&(""===f[0]||""===C[0])),y)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,C=f;else if(f.length)C||(C=[]),C.pop(),C=C.concat(f),n.search=e.search,n.query=e.query;else if(null!=e.search){if(S){n.host=C.shift(),n.hostname=n.host;var x=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");x&&(n.auth=x.shift(),n.hostname=x.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!C.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var O=C.slice(-1)[0],k=(n.host||e.host||C.length>1)&&("."===O||".."===O)||""===O,L=0,E=C.length;E>=0;E--)O=C[E],"."===O?C.splice(E,1):".."===O?(C.splice(E,1),L++):L&&(C.splice(E,1),L--);if(!_&&!w)for(;L--;L)C.unshift("..");!_||""===C[0]||C[0]&&"/"===C[0].charAt(0)||C.unshift(""),k&&"/"!==C.join("/").substr(-1)&&C.push("");var D=""===C[0]||C[0]&&"/"===C[0].charAt(0);if(S){n.hostname=D?"":C.length?C.shift():"",n.host=n.hostname;x=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");x&&(n.auth=x.shift(),n.hostname=x.shift(),n.host=n.hostname)}return _=_||n.host&&C.length,_&&!D&&C.unshift(""),C.length>0?n.pathname=C.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=_,t.resolve=C,t.resolveObject=S,t.format=w,t.Url=r},"0b3c":function(e,t,n){"use strict";var i=n("33f9");n.o(i,"Emitter")&&n.d(t,"Emitter",(function(){return i["Emitter"]})),n.o(i,"MarkerSeverity")&&n.d(t,"MarkerSeverity",(function(){return i["MarkerSeverity"]})),n.o(i,"Range")&&n.d(t,"Range",(function(){return i["Range"]})),n.o(i,"Uri")&&n.d(t,"Uri",(function(){return i["Uri"]})),n.o(i,"editor")&&n.d(t,"editor",(function(){return i["editor"]})),n.o(i,"languages")&&n.d(t,"languages",(function(){return i["languages"]}))},"0b42":function(e,t,n){var i=n("e8b5"),r=n("68ee"),o=n("861d"),s=n("b622"),a=s("species"),l=Array;e.exports=function(e){var t;return i(e)&&(t=e.constructor,r(t)&&(t===l||i(t.prototype))?t=void 0:o(t)&&(t=t[a],null===t&&(t=void 0))),void 0===t?l:t}},"0b43":function(e,t,n){var i=n("04f8");e.exports=i&&!!Symbol["for"]&&!!Symbol.keyFor},"0b54":function(e,t,n){"use strict";n.d(t,"f",(function(){return ge})),n.d(t,"e",(function(){return ye})),n.d(t,"b",(function(){return _e})),n.d(t,"g",(function(){return we})),n.d(t,"h",(function(){return Ce})),n.d(t,"d",(function(){return Se})),n.d(t,"c",(function(){return xe})),n.d(t,"a",(function(){return Oe}));var i=n("2504");class r{constructor(e){this.executor=e,this._didRun=!1}getValue(){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}get rawValue(){return this._value}}var o=n("a666"),s=n("3742"),a=n("b2cc"),l=n("c7f5"),c=n("c101"),u=n("8495"),h=n("fdcc"),d=n("351f"),f=n("0a0f"),p=n("11f7"),g=n("f070"),m=n("7061"),v=n("b707"),b=n("9e56"),y=n("533b"),_=n("6dec"),w=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},C=function(e,t){return function(n,i){t(n,i,e)}},S=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class x extends g["a"]{constructor(e,t){super(e.command?e.command.id:e.title,O(e.title),void 0,!e.disabled,t),this.action=e}}function O(e){return e.replace(/\r\n|\r|\n/g," ")}let k=class extends o["a"]{constructor(e,t,n,i){super(),this._editor=e,this._delegate=t,this._contextMenuService=n,this._visible=!1,this._showingActions=this._register(new o["d"]),this._keybindingResolver=new L({getKeybindings:()=>i.getKeybindings()})}get isVisible(){return this._visible}show(e,t,n,i){return S(this,void 0,void 0,(function*(){const r=i.includeDisabledActions?t.allActions:t.validActions;if(!r.length)return void(this._visible=!1);if(!this._editor.getDomNode())throw this._visible=!1,Object(h["a"])();this._visible=!0,this._showingActions.value=t;const o=this.getMenuActions(e,r,t.documentation),s=m["a"].isIPosition(n)?this._toCoords(n):n||{x:0,y:0},a=this._keybindingResolver.getResolver(),l=this._editor.getOption(113);this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:()=>s,getActions:()=>o,onHide:()=>{this._visible=!1,this._editor.focus()},autoSelectFirstItem:!0,getKeyBinding:e=>e instanceof x?a(e.action):void 0})}))}getMenuActions(e,t,n){var i,r;const o=e=>new x(e.action,()=>this._delegate.onSelectCodeAction(e)),s=t.map(o),a=[...n],l=this._editor.getModel();if(l&&s.length)for(const c of v["a"].all(l))c._getAdditionalMenuItems&&a.push(...c._getAdditionalMenuItems({trigger:e.type,only:null===(r=null===(i=e.filter)||void 0===i?void 0:i.include)||void 0===r?void 0:r.value},t.map(e=>e.action)));return a.length&&s.push(new g["d"],...a.map(e=>o(new u["a"]({title:e.title,command:e},void 0)))),s}_toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();const t=this._editor.getScrolledVisiblePosition(e),n=Object(p["D"])(this._editor.getDomNode()),i=n.left+t.left,r=n.top+t.top+t.height;return{x:i,y:r}}};k=w([C(2,y["a"]),C(3,_["a"])],k);class L{constructor(e){this._keybindingProvider=e}getResolver(){const e=new r(()=>this._keybindingProvider.getKeybindings().filter(e=>L.codeActionCommands.indexOf(e.command)>=0).filter(e=>e.resolvedKeybinding).map(e=>{let t=e.commandArgs;return e.command===u["e"]?t={kind:b["b"].SourceOrganizeImports.value}:e.command===u["c"]&&(t={kind:b["b"].SourceFixAll.value}),Object.assign({resolvedKeybinding:e.resolvedKeybinding},b["a"].fromUser(t,{kind:b["b"].None,apply:"never"}))}));return t=>{if(t.kind){const n=this.bestKeybindingForCodeAction(t,e.getValue());return null===n||void 0===n?void 0:n.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;const n=new b["b"](e.kind);return t.filter(e=>e.kind.contains(n)).filter(t=>!t.preferred||e.isPreferred).reduceRight((e,t)=>e?e.kind.contains(t.kind)?t:e:t,void 0)}}L.codeActionCommands=[u["f"],u["b"],u["g"],u["e"],u["c"]];var E,D=n("00a3"),I=n("308f"),M=(n("30d5"),n("b57f")),T=n("dff7"),A=n("b7d0"),N=n("303e"),P=n("a60f"),j=n("561a"),R=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},F=function(e,t){return function(n,i){t(n,i,e)}};(function(e){e.Hidden={type:0};class t{constructor(e,t,n,i){this.actions=e,this.trigger=t,this.editorPosition=n,this.widgetPosition=i,this.type=1}}e.Showing=t})(E||(E={}));let B=class e extends o["a"]{constructor(e,t,n,i){super(),this._editor=e,this._quickFixActionId=t,this._preferredFixActionId=n,this._keybindingService=i,this._onClick=this._register(new I["b"]),this.onClick=this._onClick.event,this._state=E.Hidden,this._domNode=document.createElement("div"),this._domNode.className=j["b"].lightBulb.classNames,this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(e=>{const t=this._editor.getModel();(1!==this.state.type||!t||this.state.editorPosition.lineNumber>=t.getLineCount())&&this.hide()})),P["b"].ignoreTarget(this._domNode),this._register(p["n"](this._domNode,e=>{if(1!==this.state.type)return;this._editor.focus(),e.preventDefault();const{top:t,height:n}=p["D"](this._domNode),i=this._editor.getOption(57);let r=Math.floor(i/3);null!==this.state.widgetPosition.position&&this.state.widgetPosition.position.lineNumber<this.state.editorPosition.lineNumber&&(r+=i),this._onClick.fire({x:e.posx,y:t+n+r,actions:this.state.actions,trigger:this.state.trigger})})),this._register(p["i"](this._domNode,"mouseenter",e=>{if(1!==(1&e.buttons))return;this.hide();const t=new D["a"];t.startMonitoring(e.target,e.buttons,D["b"],()=>{},()=>{t.dispose()})})),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(55)&&!this._editor.getOption(55).enabled&&this.hide()})),this._updateLightBulbTitleAndIcon(),this._register(this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitleAndIcon,this))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return 1===this._state.type?this._state.widgetPosition:null}update(t,n,i){if(t.validActions.length<=0)return this.hide();const r=this._editor.getOptions();if(!r.get(55).enabled)return this.hide();const o=this._editor.getModel();if(!o)return this.hide();const{lineNumber:s,column:a}=o.validatePosition(i),l=o.getOptions().tabSize,c=r.get(41),u=o.getLineContent(s),h=M["b"].computeIndentLevel(u,l),d=c.spaceWidth*h>22,f=e=>e>2&&this._editor.getTopForLineNumber(e)===this._editor.getTopForLineNumber(e-1);let p=s;if(!d)if(s>1&&!f(s-1))p-=1;else if(f(s+1)){if(a*c.spaceWidth<22)return this.hide()}else p+=1;this.state=new E.Showing(t,n,i,{position:{lineNumber:p,column:1},preference:e._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state=E.Hidden,this._editor.layoutContentWidget(this)}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(1===this.state.type&&this.state.actions.hasAutoFix){this._domNode.classList.remove(...j["b"].lightBulb.classNamesArray),this._domNode.classList.add(...j["b"].lightbulbAutofix.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(e)return void(this.title=T["a"]("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",e.getLabel()))}this._domNode.classList.remove(...j["b"].lightbulbAutofix.classNamesArray),this._domNode.classList.add(...j["b"].lightBulb.classNamesArray);const e=this._keybindingService.lookupKeybinding(this._quickFixActionId);this.title=e?T["a"]("quickFixWithKb","Show Fixes ({0})",e.getLabel()):T["a"]("quickFix","Show Fixes")}set title(e){this._domNode.title=e}};B._posPref=[0],B=R([F(3,_["a"])],B),Object(A["f"])((e,t)=>{var n;const i=null===(n=e.getColor(N["r"]))||void 0===n?void 0:n.transparent(.7),r=e.getColor(N["Q"]);r&&t.addRule(`\n\t\t.monaco-editor .contentWidgets ${j["b"].lightBulb.cssSelector} {\n\t\t\tcolor: ${r};\n\t\t\tbackground-color: ${i};\n\t\t}`);const o=e.getColor(N["P"]);o&&t.addRule(`\n\t\t.monaco-editor .contentWidgets ${j["b"].lightbulbAutofix.cssSelector} {\n\t\t\tcolor: ${o};\n\t\t\tbackground-color: ${i};\n\t\t}`)});var W,V=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},z=function(e,t){return function(n,i){t(n,i,e)}},H=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))},U=function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n},q=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};let $=class extends o["a"]{constructor(e,t,n,i,s){super(),this._editor=e,this.delegate=i,this._activeCodeActions=this._register(new o["d"]),W.set(this,!1),this._codeActionWidget=new r(()=>this._register(s.createInstance(k,this._editor,{onSelectCodeAction:e=>H(this,void 0,void 0,(function*(){this.delegate.applyCodeAction(e,!0)}))}))),this._lightBulbWidget=new r(()=>{const e=this._register(s.createInstance(B,this._editor,t,n));return this._register(e.onClick(e=>this.showCodeActionList(e.trigger,e.actions,e,{includeDisabledActions:!1}))),e})}dispose(){U(this,W,!0,"f"),super.dispose()}update(e){var t,n,i;return H(this,void 0,void 0,(function*(){if(1!==e.type)return void(null===(t=this._lightBulbWidget.rawValue)||void 0===t||t.hide());let r;try{r=yield e.actions}catch(o){return void Object(h["e"])(o)}if(!q(this,W,"f"))if(this._lightBulbWidget.getValue().update(r,e.trigger,e.position),1===e.trigger.type){if(null===(n=e.trigger.filter)||void 0===n?void 0:n.include){const t=this.tryGetValidActionToApply(e.trigger,r);if(t){try{yield this.delegate.applyCodeAction(t,!1)}finally{r.dispose()}return}if(e.trigger.context){const t=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,r);if(t&&t.action.disabled)return d["a"].get(this._editor).showMessage(t.action.disabled,e.trigger.context.position),void r.dispose()}}const t=!!(null===(i=e.trigger.filter)||void 0===i?void 0:i.include);if(e.trigger.context&&(!r.allActions.length||!t&&!r.validActions.length))return d["a"].get(this._editor).showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=r,void r.dispose();this._activeCodeActions.value=r,this._codeActionWidget.getValue().show(e.trigger,r,e.position,{includeDisabledActions:t})}else this._codeActionWidget.getValue().isVisible?r.dispose():this._activeCodeActions.value=r}))}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length)return"first"===e.autoApply&&0===t.validActions.length||"ifSingle"===e.autoApply&&1===t.allActions.length?t.allActions.find(({action:e})=>e.disabled):void 0}tryGetValidActionToApply(e,t){if(t.validActions.length)return"first"===e.autoApply&&t.validActions.length>0||"ifSingle"===e.autoApply&&1===t.validActions.length?t.validActions[0]:void 0}showCodeActionList(e,t,n,i){return H(this,void 0,void 0,(function*(){this._codeActionWidget.getValue().show(e,t,n,i)}))}};W=new WeakMap,$=V([z(4,f["a"])],$);var K,G=n("9e74"),Y=n("4fc3"),Z=n("b400"),X=n("b0cd"),Q=n("b539"),J=n("5d75"),ee=n("5fe7"),te=n("82c9"),ne=n("6a89"),ie=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)},re=function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n};const oe=new Y["c"]("supportedCodeAction","");class se extends o["a"]{constructor(e,t,n,i=250){super(),this._editor=e,this._markerService=t,this._signalChange=n,this._delay=i,this._autoTriggerTimer=this._register(new ee["g"]),this._register(this._markerService.onMarkerChanged(e=>this._onMarkerChanges(e))),this._register(this._editor.onDidChangeCursorPosition(()=>this._onCursorChange()))}trigger(e){const t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);return this._createEventAndSignalChange(e,t)}_onMarkerChanges(e){const t=this._editor.getModel();t&&e.some(e=>Object(te["f"])(e,t.uri))&&this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2})},this._delay)}_onCursorChange(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2})},this._delay)}_getRangeOfMarker(e){const t=this._editor.getModel();if(t)for(const n of this._markerService.read({resource:t.uri})){const i=t.validateRange(n);if(ne["a"].intersectRanges(i,e))return ne["a"].lift(i)}}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),n=this._editor.getSelection();if(n.isEmpty()&&2===e.type){const{lineNumber:e,column:i}=n.getPosition(),r=t.getLineContent(e);if(0===r.length)return;if(1===i){if(/\s/.test(r[0]))return}else if(i===t.getLineMaxColumn(e)){if(/\s/.test(r[r.length-1]))return}else if(/\s/.test(r[i-2])&&/\s/.test(r[i-1]))return}return n}_createEventAndSignalChange(e,t){const n=this._editor.getModel();if(!t||!n)return void this._signalChange(void 0);const i=this._getRangeOfMarker(t),r=i?i.getStartPosition():t.getStartPosition(),o={trigger:e,selection:t,position:r};return this._signalChange(o),o}}var ae;(function(e){e.Empty={type:0};class t{constructor(e,t,n,i){this.trigger=e,this.rangeOrSelection=t,this.position=n,this._cancellablePromise=i,this.type=1,this.actions=i.catch(e=>{if(Object(h["d"])(e))return le;throw e})}cancel(){this._cancellablePromise.cancel()}}e.Triggered=t})(ae||(ae={}));const le={allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1};class ce extends o["a"]{constructor(e,t,n,i){super(),this._editor=e,this._markerService=t,this._progressService=i,this._codeActionOracle=this._register(new o["d"]),this._state=ae.Empty,this._onDidChangeState=this._register(new I["b"]),this.onDidChangeState=this._onDidChangeState.event,K.set(this,!1),this._supportedCodeActions=oe.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(v["a"].onDidChange(()=>this._update())),this._update()}dispose(){ie(this,K,"f")||(re(this,K,!0,"f"),super.dispose(),this.setState(ae.Empty,!0))}_update(){if(ie(this,K,"f"))return;this._codeActionOracle.value=void 0,this.setState(ae.Empty);const e=this._editor.getModel();if(e&&v["a"].has(e)&&!this._editor.getOption(79)){const t=[];for(const n of v["a"].all(e))Array.isArray(n.providedCodeActionKinds)&&t.push(...n.providedCodeActionKinds);this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new se(this._editor,this._markerService,t=>{var n;if(!t)return void this.setState(ae.Empty);const i=Object(ee["h"])(n=>Object(u["d"])(e,t.selection,t.trigger,Q["b"].None,n));1===t.trigger.type&&(null===(n=this._progressService)||void 0===n||n.showWhile(i,250)),this.setState(new ae.Triggered(t.trigger,t.selection,t.position,i))},void 0),this._codeActionOracle.value.trigger({type:2})}else this._supportedCodeActions.reset()}trigger(e){this._codeActionOracle.value&&this._codeActionOracle.value.trigger(e)}setState(e,t){e!==this._state&&(1===this._state.type&&this._state.cancel(),this._state=e,t||ie(this,K,"f")||this._onDidChangeState.fire(e))}}K=new WeakMap;var ue=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},he=function(e,t){return function(n,i){t(n,i,e)}},de=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function fe(e){return Y["a"].regex(oe.keys()[0],new RegExp("(\\s|^)"+Object(s["u"])(e.value)+"\\b"))}const pe={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:T["a"]("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:T["a"]("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[T["a"]("args.schema.apply.first","Always apply the first returned code action."),T["a"]("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),T["a"]("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:T["a"]("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};let ge=class e extends o["a"]{constructor(e,t,n,i,o){super(),this._instantiationService=o,this._editor=e,this._model=this._register(new ce(this._editor,t,n,i)),this._register(this._model.onDidChangeState(e=>this.update(e))),this._ui=new r(()=>this._register(new $(e,ye.Id,Oe.Id,{applyCodeAction:(e,t)=>de(this,void 0,void 0,(function*(){try{yield this._applyCodeAction(e)}finally{t&&this._trigger({type:2,filter:{}})}}))},this._instantiationService)))}static get(t){return t.getContribution(e.ID)}update(e){this._ui.getValue().update(e)}showCodeActions(e,t,n){return this._ui.getValue().showCodeActionList(e,t,n,{includeDisabledActions:!1})}manualTriggerAtCurrentPosition(e,t,n){if(!this._editor.hasModel())return;d["a"].get(this._editor).closeMessage();const i=this._editor.getPosition();this._trigger({type:1,filter:t,autoApply:n,context:{notAvailableMessage:e,position:i}})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e){return this._instantiationService.invokeFunction(me,e,this._editor)}};function me(e,t,n){return de(this,void 0,void 0,(function*(){const r=e.get(l["a"]),o=e.get(G["b"]),s=e.get(J["a"]),a=e.get(X["a"]);if(s.publicLog2("codeAction.applyCodeAction",{codeActionTitle:t.action.title,codeActionKind:t.action.kind,codeActionIsPreferred:!!t.action.isPreferred}),yield t.resolve(i["a"].None),t.action.edit&&(yield r.apply(l["b"].convert(t.action.edit),{editor:n,label:t.action.title})),t.action.command)try{yield o.executeCommand(t.action.command.id,...t.action.command.arguments||[])}catch(c){const e=ve(c);a.error("string"===typeof e?e:T["a"]("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}))}function ve(e){return"string"===typeof e?e:e instanceof Error&&"string"===typeof e.message?e.message:void 0}function be(e,t,n,i){if(e.hasModel()){const r=ge.get(e);r&&r.manualTriggerAtCurrentPosition(t,n,i)}}ge.ID="editor.contrib.quickFixController",ge=ue([he(1,Z["b"]),he(2,Y["b"]),he(3,Q["a"]),he(4,f["a"])],ge);class ye extends a["b"]{constructor(){super({id:ye.Id,label:T["a"]("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:Y["a"].and(c["a"].writable,c["a"].hasCodeActionsProvider),kbOpts:{kbExpr:c["a"].editorTextFocus,primary:2132,weight:100}})}run(e,t){return be(t,T["a"]("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0)}}ye.Id="editor.action.quickFix";class _e extends a["c"]{constructor(){super({id:u["b"],precondition:Y["a"].and(c["a"].writable,c["a"].hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:pe}]}})}runEditorCommand(e,t,n){const i=b["a"].fromUser(n,{kind:b["b"].Empty,apply:"ifSingle"});return be(t,"string"===typeof(null===n||void 0===n?void 0:n.kind)?i.preferred?T["a"]("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",n.kind):T["a"]("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",n.kind):i.preferred?T["a"]("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):T["a"]("editor.action.codeAction.noneMessage","No code actions available"),{include:i.kind,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)}}class we extends a["b"]{constructor(){super({id:u["f"],label:T["a"]("refactor.label","Refactor..."),alias:"Refactor...",precondition:Y["a"].and(c["a"].writable,c["a"].hasCodeActionsProvider),kbOpts:{kbExpr:c["a"].editorTextFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:Y["a"].and(c["a"].writable,fe(b["b"].Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:pe}]}})}run(e,t,n){const i=b["a"].fromUser(n,{kind:b["b"].Refactor,apply:"never"});return be(t,"string"===typeof(null===n||void 0===n?void 0:n.kind)?i.preferred?T["a"]("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",n.kind):T["a"]("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",n.kind):i.preferred?T["a"]("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):T["a"]("editor.action.refactor.noneMessage","No refactorings available"),{include:b["b"].Refactor.contains(i.kind)?i.kind:b["b"].None,onlyIncludePreferredActions:i.preferred},i.apply)}}class Ce extends a["b"]{constructor(){super({id:u["g"],label:T["a"]("source.label","Source Action..."),alias:"Source Action...",precondition:Y["a"].and(c["a"].writable,c["a"].hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:Y["a"].and(c["a"].writable,fe(b["b"].Source))},description:{description:"Source Action...",args:[{name:"args",schema:pe}]}})}run(e,t,n){const i=b["a"].fromUser(n,{kind:b["b"].Source,apply:"never"});return be(t,"string"===typeof(null===n||void 0===n?void 0:n.kind)?i.preferred?T["a"]("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",n.kind):T["a"]("editor.action.source.noneMessage.kind","No source actions for '{0}' available",n.kind):i.preferred?T["a"]("editor.action.source.noneMessage.preferred","No preferred source actions available"):T["a"]("editor.action.source.noneMessage","No source actions available"),{include:b["b"].Source.contains(i.kind)?i.kind:b["b"].None,includeSourceActions:!0,onlyIncludePreferredActions:i.preferred},i.apply)}}class Se extends a["b"]{constructor(){super({id:u["e"],label:T["a"]("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:Y["a"].and(c["a"].writable,fe(b["b"].SourceOrganizeImports)),kbOpts:{kbExpr:c["a"].editorTextFocus,primary:1581,weight:100}})}run(e,t){return be(t,T["a"]("editor.action.organize.noneMessage","No organize imports action available"),{include:b["b"].SourceOrganizeImports,includeSourceActions:!0},"ifSingle")}}class xe extends a["b"]{constructor(){super({id:u["c"],label:T["a"]("fixAll.label","Fix All"),alias:"Fix All",precondition:Y["a"].and(c["a"].writable,fe(b["b"].SourceFixAll))})}run(e,t){return be(t,T["a"]("fixAll.noneMessage","No fix all action available"),{include:b["b"].SourceFixAll,includeSourceActions:!0},"ifSingle")}}class Oe extends a["b"]{constructor(){super({id:Oe.Id,label:T["a"]("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:Y["a"].and(c["a"].writable,fe(b["b"].QuickFix)),kbOpts:{kbExpr:c["a"].editorTextFocus,primary:1620,mac:{primary:2644},weight:100}})}run(e,t){return be(t,T["a"]("editor.action.autoFix.noneMessage","No auto fixes available"),{include:b["b"].QuickFix,onlyIncludePreferredActions:!0},"ifSingle")}}Oe.Id="editor.action.autoFix"},"0b99":function(e,t,n){"use strict";var i=n("19fa")(!0);n("393a")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})}))},"0baa":function(e,t,n){},"0bad":function(e,t,n){e.exports=!n("4b8b")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"0bfb":function(e,t,n){"use strict";function i(e){const t=this;let n,i=!1;return function(){return i||(i=!0,n=e.apply(t,arguments)),n}}n.d(t,"a",(function(){return i}))},"0c47":function(e,t,n){var i=n("da84"),r=n("d44e");r(i.JSON,"JSON",!0)},"0ca1":function(e,t,n){"use strict";var i=n("4ea4"),r=i(n("9523")),o=i(n("448a")),s=n("9886"),a=n("b06d"),l=n("5557"),c=n("a870"),u=n("becb");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,r["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={shape:{rx:0,ry:0,ir:0,or:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(e){var t=e.shape,n=["rx","ry","ir","or","startAngle","endAngle"];return!n.find((function(e){return"number"!==typeof t[e]}))||(console.error("Pie shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape;n.beginPath();var r=i.rx,s=i.ry,a=i.ir,c=i.or,u=i.startAngle,h=i.endAngle,d=i.clockWise;r=parseInt(r)+.5,s=parseInt(s)+.5,n.arc(r,s,a>0?a:0,u,h,!d);var f=(0,l.getCircleRadianPoint)(r,s,c,h).map((function(e){return parseInt(e)+.5})),p=(0,l.getCircleRadianPoint)(r,s,a,u).map((function(e){return parseInt(e)+.5}));n.lineTo.apply(n,(0,o["default"])(f)),n.arc(r,s,c>0?c:0,h,u,d),n.lineTo.apply(n,(0,o["default"])(p)),n.closePath(),n.stroke(),n.fill()}},p={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,gradientStartAngle:null,gradientEndAngle:null},validator:function(e){var t=e.shape,n=["rx","ry","r","startAngle","endAngle"];return!n.find((function(e){return"number"!==typeof t[e]}))||(console.error("AgArc shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape,r=t.style,o=r.gradient;o=o.map((function(e){return(0,c.getColorFromRgbValue)(e)})),1===o.length&&(o=[o[0],o[0]]);var s=o.length-1,a=i.gradientStartAngle,h=i.gradientEndAngle,d=i.startAngle,f=i.endAngle,p=i.r,g=i.rx,m=i.ry;null===a&&(a=d),null===h&&(h=f);var v=(h-a)/s;v===2*Math.PI&&(v=2*Math.PI-.001);for(var b=0;b<s;b++){n.beginPath();var y=(0,l.getCircleRadianPoint)(g,m,p,d+v*b),_=(0,l.getCircleRadianPoint)(g,m,p,d+v*(b+1)),w=(0,u.getLinearGradientColor)(n,y,_,[o[b],o[b+1]]),C=d+v*b,S=d+v*(b+1),x=!1;if(S>f&&(S=f,x=!0),n.arc(g,m,p,C,S),n.strokeStyle=w,n.stroke(),x)break}}},g={shape:{number:[],content:"",position:[0,0],toFixed:0,rowGap:0,formatter:null},validator:function(e){var t=e.shape,n=t.number,i=t.content,r=t.position;return n instanceof Array&&"string"===typeof i&&r instanceof Array||(console.error("NumberText shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape,r=i.number,o=i.content,s=i.toFixed,l=i.rowGap,c=i.formatter,u=o.split("{nt}"),h="";u.forEach((function(e,t){var n=r[t];"number"!==typeof n&&(n=""),"number"===typeof n&&(n=n.toFixed(s),"function"===typeof c&&(n=c(n))),h+=e+(n||"")})),a.text.draw({ctx:n},{shape:d(d({},i),{},{content:h,rowGap:l})})}},m={shape:{x:0,y:0,w:0,h:0},validator:function(e){var t=e.shape,n=t.x,i=t.y,r=t.w,o=t.h;return"number"===typeof n&&"number"===typeof i&&"number"===typeof r&&"number"===typeof o||(console.error("lineIcon shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape;n.beginPath();var r=i.x,o=i.y,s=i.w,a=i.h,l=a/2;n.strokeStyle=n.fillStyle,n.moveTo(r,o+l),n.lineTo(r+s,o+l),n.lineWidth=1,n.stroke(),n.beginPath();var c=l-10;c<=0&&(c=3),n.arc(r+s/2,o+l,c,0,2*Math.PI),n.lineWidth=5,n.stroke(),n.fillStyle="#fff",n.fill()},hoverCheck:function(e,t){var n=t.shape,i=n.x,r=n.y,o=n.w,s=n.h;return(0,l.checkPointIsInRect)(e,i,r,o,s)},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.x,o=n.y,s=n.w,a=n.h;i.graphCenter=[r+s/2,o+a/2]}};(0,s.extendNewGraph)("pie",f),(0,s.extendNewGraph)("agArc",p),(0,s.extendNewGraph)("numberText",g),(0,s.extendNewGraph)("lineIcon",m)},"0cb2":function(e,t,n){var i=n("e330"),r=n("7b0b"),o=Math.floor,s=i("".charAt),a=i("".replace),l=i("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,i,h,d){var f=n+e.length,p=i.length,g=u;return void 0!==h&&(h=r(h),g=c),a(d,g,(function(r,a){var c;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,f);case"<":c=h[l(a,1,-1)];break;default:var u=+a;if(0===u)return r;if(u>p){var d=o(u/10);return 0===d?r:d<=p?void 0===i[d-1]?s(a,1):i[d-1]+s(a,1):r}c=i[u-1]}return void 0===c?"":c}))}},"0cd4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.radarAxisConfig=void 0;var i={show:!0,center:["50%","50%"],radius:"65%",startAngle:-Math.PI/2,splitNum:5,polygon:!1,axisLabel:{show:!0,labelGap:15,color:[],style:{fill:"#333"}},axisLine:{show:!0,color:[],style:{stroke:"#999",lineWidth:1}},splitLine:{show:!0,color:[],style:{stroke:"#d4d4d4",lineWidth:1}},splitArea:{show:!1,color:["#f5f5f5","#e6e6e6"],style:{}},rLevel:-10,animationCurve:"easeOutCubic",animationFrane:50};t.radarAxisConfig=i},"0cfb":function(e,t,n){var i=n("83ab"),r=n("d039"),o=n("cc12");e.exports=!i&&!r((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d25":function(e,t,n){"use strict";e.exports=TypeError},"0d26":function(e,t,n){var i=n("e330"),r=Error,o=i("".replace),s=function(e){return String(r(e).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(s);e.exports=function(e,t){if(l&&"string"==typeof e&&!r.prepareStackTrace)while(t--)e=o(e,a,"");return e}},"0d30":function(e,t,n){},"0d51":function(e,t){var n=String;e.exports=function(e){try{return n(e)}catch(t){return"Object"}}},"0da8":function(e,t,n){"use strict";var i=n("9ab4"),r=n("19eb"),o=n("9850"),s=n("6d8b"),a=Object(s["defaults"])({x:0,y:0},r["b"]),l={style:Object(s["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},r["a"].style)};function c(e){return!!(e&&"string"!==typeof e&&e.width&&e.height)}var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i["a"])(t,e),t.prototype.createStyle=function(e){return Object(s["createObject"])(a,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var i=c(t.image)?t.image:this.__image;if(!i)return 0;var r="width"===e?"height":"width",o=t[r];return null==o?i[e]:i[e]/i[r]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return l},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new o["a"](e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(r["c"]);u.prototype.type="image",t["a"]=u},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e15":function(e,t,n){var i=n("597f");e.exports=function(e,t,n){return void 0===n?i(e,t,!1):i(e,n,!1!==t)}},"0e8b":function(e,t,n){"use strict";(function(t,i){var r;e.exports=D,D.ReadableState=E;n("faa1").EventEmitter;var o=function(e,t){return e.listeners(t).length},s=n("b98b"),a=n("1c35").Buffer,l=("undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function c(e){return a.from(e)}function u(e){return a.isBuffer(e)||e instanceof l}var h,d=n(4);h=d&&d.debuglog?d.debuglog("stream"):function(){};var f,p,g,m=n("e937"),v=n("f482"),b=n("86c6"),y=b.getHighWaterMark,_=n("9bfc").codes,w=_.ERR_INVALID_ARG_TYPE,C=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,x=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n("3fb5")(D,s);var O=v.errorOrDestroy,k=["error","close","destroy","pause","resume"];function L(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function E(e,t,i){r=r||n("a493"),e=e||{},"boolean"!==typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",i),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n("aa22").StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function D(e){if(r=r||n("a493"),!(this instanceof D))return new D(e);var t=this instanceof r;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function I(e,t,n,i,r){h("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,j(e,s);else if(r||(o=T(s,t)),o)O(e,o);else if(s.objectMode||t&&t.length>0)if("string"===typeof t||s.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=c(t)),i)s.endEmitted?O(e,new x):M(e,s,t,!0);else if(s.ended)O(e,new C);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?M(e,s,t,!1):B(e,s)):M(e,s,t,!1)}else i||(s.reading=!1,B(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function M(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&R(e)),B(e,t)}function T(e,t){var n;return u(t)||"string"===typeof t||void 0===t||e.objectMode||(n=new w("chunk",["string","Buffer","Uint8Array"],t)),n}Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),D.prototype.destroy=v.destroy,D.prototype._undestroy=v.undestroy,D.prototype._destroy=function(e,t){t(e)},D.prototype.push=function(e,t){var n,i=this._readableState;return i.objectMode?n=!0:"string"===typeof e&&(t=t||i.defaultEncoding,t!==i.encoding&&(e=a.from(e,t),t=""),n=!0),I(this,e,t,!1,n)},D.prototype.unshift=function(e){return I(this,e,null,!0,!1)},D.prototype.isPaused=function(){return!1===this._readableState.flowing},D.prototype.setEncoding=function(e){f||(f=n("aa22").StringDecoder);var t=new f(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;var i=this._readableState.buffer.head,r="";while(null!==i)r+=t.write(i.data),i=i.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var A=1073741824;function N(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function P(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=N(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e,t){if(h("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?R(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,F(e)))}}function R(e){var t=e._readableState;h("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(F,e))}function F(e){var t=e._readableState;h("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,$(e)}function B(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(W,e,t))}function W(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length)){var n=t.length;if(h("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function V(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,$(e))}}function z(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function H(e){h("readable nexttick read 0"),e.read(0)}function U(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(q,e,t))}function q(e,t){h("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),$(e),t.flowing&&!t.reading&&e.read(0)}function $(e){var t=e._readableState;h("flow",t.flowing);while(t.flowing&&null!==e.read());}function K(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function G(e){var t=e._readableState;h("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(Y,t,e))}function Y(e,t){if(h("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function Z(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}D.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?G(this):R(this),null;if(e=P(e,t),0===e&&t.ended)return 0===t.length&&G(this),null;var i,r=t.needReadable;return h("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&(r=!0,h("length less than watermark",r)),t.ended||t.reading?(r=!1,h("reading or ended",r)):r&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=P(n,t))),i=e>0?K(e,t):null,null===i?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&G(this)),null!==i&&this.emit("data",i),i},D.prototype._read=function(e){O(this,new S("_read()"))},D.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,h("pipe count=%d opts=%j",r.pipesCount,t);var s=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr,a=s?c:b;function l(e,t){h("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function c(){h("onend"),e.end()}r.endEmitted?i.nextTick(a):n.once("end",a),e.on("unpipe",l);var u=V(n);e.on("drain",u);var d=!1;function f(){h("cleanup"),e.removeListener("close",m),e.removeListener("finish",v),e.removeListener("drain",u),e.removeListener("error",g),e.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",p),d=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u()}function p(t){h("ondata");var i=e.write(t);h("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==Z(r.pipes,e))&&!d&&(h("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function g(t){h("onerror",t),b(),e.removeListener("error",g),0===o(e,"error")&&O(e,t)}function m(){e.removeListener("finish",v),b()}function v(){h("onfinish"),e.removeListener("close",m),b()}function b(){h("unpipe"),n.unpipe(e)}return n.on("data",p),L(e,"error",g),e.once("close",m),e.once("finish",v),e.emit("pipe",n),r.flowing||(h("pipe resume"),n.resume()),e},D.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<r;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=Z(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},D.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,h("on readable",r.length,r.reading),r.length?R(this):r.reading||i.nextTick(H,this))),n},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(z,this),n},D.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(z,this),t},D.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!e.readableListening,U(this,e)),e.paused=!1,this},D.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},D.prototype.wrap=function(e){var t=this,n=this._readableState,i=!1;for(var r in e.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(r){if(h("wrapped data"),n.decoder&&(r=n.decoder.write(r)),(!n.objectMode||null!==r&&void 0!==r)&&(n.objectMode||r&&r.length)){var o=t.push(r);o||(i=!0,e.pause())}})),e)void 0===this[r]&&"function"===typeof e[r]&&(this[r]=function(t){return function(){return e[t].apply(e,arguments)}}(r));for(var o=0;o<k.length;o++)e.on(k[o],this.emit.bind(this,k[o]));return this._read=function(t){h("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"===typeof Symbol&&(D.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=n("782c")),p(this)}),Object.defineProperty(D.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(D.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(D.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),D._fromList=K,Object.defineProperty(D.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(D.from=function(e,t){return void 0===g&&(g=n("a50f")),g(D,e,t)})}).call(this,n("c8ba"),n("4362"))},"0ef9":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return n.e("chunk-2d221814").then(n.bind(null,"cb43"))}})},"0f70":function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"l",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"g",(function(){return h})),n.d(t,"j",(function(){return d})),n.d(t,"f",(function(){return f})),n.d(t,"h",(function(){return p})),n.d(t,"k",(function(){return g})),n.d(t,"e",(function(){return m})),n.d(t,"i",(function(){return v}));var i=n("308f");class r{constructor(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new i["b"],this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=1}getZoomLevel(){return this._zoomLevel}getTimeSinceLastZoomLevelChanged(){return Date.now()-this._lastZoomLevelChangeTime}getZoomFactor(){return this._zoomFactor}getPixelRatio(){let e=document.createElement("canvas").getContext("2d"),t=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n}}function o(){return r.INSTANCE.getZoomLevel()}function s(){return r.INSTANCE.getTimeSinceLastZoomLevelChanged()}function a(e){return r.INSTANCE.onDidChangeZoomLevel(e)}function l(){return r.INSTANCE.getZoomFactor()}function c(){return r.INSTANCE.getPixelRatio()}r.INSTANCE=new r;const u=navigator.userAgent,h=u.indexOf("Firefox")>=0,d=u.indexOf("AppleWebKit")>=0,f=u.indexOf("Chrome")>=0,p=!f&&u.indexOf("Safari")>=0,g=!f&&!p&&d,m=u.indexOf("Android")>=0,v=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},"0f7c":function(e,t,n){"use strict";var i=n("688e");e.exports=Function.prototype.bind||i},"0f99":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"f",(function(){return h})),n.d(t,"e",(function(){return d})),n.d(t,"b",(function(){return f}));var i=n("e0d3"),r=n("6d8b"),o=n("07fd"),s={Must:1,Might:2,Not:3},a=Object(i["o"])();function l(e){a(e).datasetMap=Object(r["createHashMap"])()}function c(e,t,n){var i={},o=h(t);if(!o||!e)return i;var s,l,c=[],u=[],d=t.ecModel,f=a(d).datasetMap,p=o.uid+"_"+n.seriesLayoutBy;e=e.slice(),Object(r["each"])(e,(function(t,n){var o=Object(r["isObject"])(t)?t:e[n]={name:t};"ordinal"===o.type&&null==s&&(s=n,l=v(o)),i[o.name]=[]}));var g=f.get(p)||f.set(p,{categoryWayDim:l,valueWayDim:0});function m(e,t,n){for(var i=0;i<n;i++)e.push(t+i)}function v(e){var t=e.dimsDef;return t?t.length:1}return Object(r["each"])(e,(function(e,t){var n=e.name,r=v(e);if(null==s){var o=g.valueWayDim;m(i[n],o,r),m(u,o,r),g.valueWayDim+=r}else if(s===t)m(i[n],0,r),m(c,0,r);else{o=g.categoryWayDim;m(i[n],o,r),m(u,o,r),g.categoryWayDim+=r}})),c.length&&(i.itemName=c),u.length&&(i.seriesName=u),i}function u(e,t,n){var i={},a=h(e);if(!a)return i;var l,c=t.sourceFormat,u=t.dimensionsDefine;c!==o["e"]&&c!==o["d"]||Object(r["each"])(u,(function(e,t){"name"===(Object(r["isObject"])(e)?e.name:e)&&(l=t)}));var d=function(){for(var e={},i={},r=[],o=0,a=Math.min(5,n);o<a;o++){var h=p(t.data,c,t.seriesLayoutBy,u,t.startIndex,o);r.push(h);var d=h===s.Not;if(d&&null==e.v&&o!==l&&(e.v=o),(null==e.n||e.n===e.v||!d&&r[e.n]===s.Not)&&(e.n=o),f(e)&&r[e.n]!==s.Not)return e;d||(h===s.Might&&null==i.v&&o!==l&&(i.v=o),null!=i.n&&i.n!==i.v||(i.n=o))}function f(e){return null!=e.v&&null!=e.n}return f(e)?e:f(i)?i:null}();if(d){i.value=[d.v];var f=null!=l?l:d.n;i.itemName=[f],i.seriesName=[f]}return i}function h(e){var t=e.get("data",!0);if(!t)return Object(i["v"])(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},i["b"]).models[0]}function d(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?Object(i["v"])(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},i["b"]).models:[]}function f(e,t){return p(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function p(e,t,n,a,l,c){var u,h,d,f=5;if(Object(r["isTypedArray"])(e))return s.Not;if(a){var p=a[c];Object(r["isObject"])(p)?(h=p.name,d=p.type):Object(r["isString"])(p)&&(h=p)}if(null!=d)return"ordinal"===d?s.Must:s.Not;if(t===o["c"]){var g=e;if(n===o["b"]){for(var m=g[c],v=0;v<(m||[]).length&&v<f;v++)if(null!=(u=x(m[l+v])))return u}else for(v=0;v<g.length&&v<f;v++){var b=g[l+v];if(b&&null!=(u=x(b[c])))return u}}else if(t===o["e"]){var y=e;if(!h)return s.Not;for(v=0;v<y.length&&v<f;v++){var _=y[v];if(_&&null!=(u=x(_[h])))return u}}else if(t===o["d"]){var w=e;if(!h)return s.Not;m=w[h];if(!m||Object(r["isTypedArray"])(m))return s.Not;for(v=0;v<m.length&&v<f;v++)if(null!=(u=x(m[v])))return u}else if(t===o["f"]){var C=e;for(v=0;v<C.length&&v<f;v++){_=C[v];var S=Object(i["h"])(_);if(!Object(r["isArray"])(S))return s.Not;if(null!=(u=x(S[c])))return u}}function x(e){var t=Object(r["isString"])(e);return null!=e&&Number.isFinite(Number(e))&&""!==e?t?s.Might:s.Not:t&&"-"!==e?s.Must:void 0}return s.Not}},"107c":function(e,t,n){var i=n("d039"),r=n("da84"),o=r.RegExp;e.exports=i((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},1080:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return y}));var i=n("3742"),r=n("7ab3"),o=n("6a89");class s{constructor(e,t,n,i,r,o){this._richEditBracketBrand=void 0,this.languageIdentifier=e,this.index=t,this.open=n,this.close=i,this.forwardRegex=r,this.reversedRegex=o,this._openSet=s._toSet(this.open),this._closeSet=s._toSet(this.close)}isOpen(e){return this._openSet.has(e)}isClose(e){return this._closeSet.has(e)}static _toSet(e){const t=new Set;for(const n of e)t.add(n);return t}}function a(e){const t=e.length;e=e.map(e=>[e[0].toLowerCase(),e[1].toLowerCase()]);const n=[];for(let s=0;s<t;s++)n[s]=s;const i=(e,t)=>{const[n,i]=e,[r,o]=t;return n===r||n===o||i===r||i===o},r=(e,i)=>{const r=Math.min(e,i),o=Math.max(e,i);for(let s=0;s<t;s++)n[s]===o&&(n[s]=r)};for(let s=0;s<t;s++){const o=e[s];for(let a=s+1;a<t;a++){const t=e[a];i(o,t)&&r(n[s],n[a])}}const o=[];for(let s=0;s<t;s++){let i=[],r=[];for(let o=0;o<t;o++)if(n[o]===s){const[t,n]=e[o];i.push(t),r.push(n)}i.length>0&&o.push({open:i,close:r})}return o}class l{constructor(e,t){this._richEditBracketsBrand=void 0;const n=a(t);this.brackets=n.map((t,i)=>new s(e,i,t.open,t.close,d(t.open,t.close,n,i),f(t.open,t.close,n,i))),this.forwardRegex=p(this.brackets),this.reversedRegex=g(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const i of this.brackets){for(const e of i.open)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,e.length);for(const e of i.close)this.textIsBracket[e]=i,this.textIsOpenBracket[e]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,e.length)}}}function c(e,t,n,i){for(let r=0,o=t.length;r<o;r++){if(r===n)continue;const o=t[r];for(const t of o.open)t.indexOf(e)>=0&&i.push(t);for(const t of o.close)t.indexOf(e)>=0&&i.push(t)}}function u(e,t){return e.length-t.length}function h(e){if(e.length<=1)return e;const t=[],n=new Set;for(const i of e)n.has(i)||(t.push(i),n.add(i));return t}function d(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let o=0,s=r.length;o<s;o++)c(r[o],n,i,r);return r=h(r),r.sort(u),r.reverse(),v(r)}function f(e,t,n,i){let r=[];r=r.concat(e),r=r.concat(t);for(let o=0,s=r.length;o<s;o++)c(r[o],n,i,r);return r=h(r),r.sort(u),r.reverse(),v(r.map(b))}function p(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=h(t),v(t)}function g(e){let t=[];for(const n of e){for(const e of n.open)t.push(e);for(const e of n.close)t.push(e)}return t=h(t),v(t.map(b))}function m(e){const t=/^[\w ]+$/.test(e);return e=i["u"](e),t?`\\b${e}\\b`:e}function v(e){let t=`(${e.map(m).join(")|(")})`;return i["q"](t,!0)}const b=function(){function e(e){if(r["d"]){const t=new Uint16Array(e.length);let n=0;for(let i=e.length-1;i>=0;i--)t[n++]=e.charCodeAt(i);return r["c"]().decode(t)}{let t=[],n=0;for(let i=e.length-1;i>=0;i--)t[n++]=e.charAt(i);return t.join("")}}let t=null,n=null;return function(i){return t!==i&&(t=i,n=e(t)),n}}();class y{static _findPrevBracketInText(e,t,n,i){let r=n.match(e);if(!r)return null;let s=n.length-(r.index||0),a=r[0].length,l=i+s;return new o["a"](t,l-a+1,t,l+1)}static findPrevBracketInRange(e,t,n,i,r){const o=b(n),s=o.substring(n.length-r,n.length-i);return this._findPrevBracketInText(e,t,s,i)}static findNextBracketInText(e,t,n,i){let r=n.match(e);if(!r)return null;let s=r.index||0,a=r[0].length;if(0===a)return null;let l=i+s;return new o["a"](t,l+1,t,l+1+a)}static findNextBracketInRange(e,t,n,i,r){const o=n.substring(i,r);return this.findNextBracketInText(e,t,o,i)}}},1097:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return m}));var i=n("561a"),r=n("7e93"),o=n("3742");const s="$(",a=new RegExp(`\\$\\(${i["a"].iconNameExpression}(?:${i["a"].iconModifierExpression})?\\)`,"g"),l=new RegExp("(\\\\)?"+a.source,"g");function c(e){return e.replace(l,(e,t)=>t?e:"\\"+e)}const u=new RegExp("\\\\"+a.source,"g");function h(e){return e.replace(u,e=>"\\"+e)}const d=new RegExp(`(\\s)?(\\\\)?${a.source}(\\s)?`,"g");function f(e){return-1===e.indexOf(s)?e:e.replace(d,(e,t,n,i)=>n?e:t||i||"")}function p(e){const t=e.indexOf(s);return-1===t?{text:e}:g(e,t)}function g(e,t){const n=[];let i="";function r(e){if(e){i+=e;for(const t of e)n.push(u)}}let o,a,l=-1,c="",u=0,h=t;const d=e.length;r(e.substr(0,t));while(h<d){if(o=e[h],a=e[h+1],o===s[0]&&a===s[1])l=h,r(c),c=s,h++;else if(")"===o&&-1!==l){const e=h-l+1;u+=e,l=-1,c=""}else-1!==l?/^[a-z0-9\-]$/i.test(o)?c+=o:(r(c),l=-1,c=""):r(o);h++}return r(c),{text:i,iconOffsets:n}}function m(e,t,n=!1){const{text:i,iconOffsets:s}=t;if(!s||0===s.length)return Object(r["g"])(e,i,n);const a=Object(o["K"])(i," "),l=i.length-a.length,c=Object(r["g"])(e,a,n);if(c)for(const r of c){const e=s[r.start+l]+l;r.start+=e,r.end+=e}return c}},1098:function(e,t,n){"use strict";t.__esModule=!0;var i=n("17ed"),r=l(i),o=n("f893"),s=l(o),a="function"===typeof s.default&&"symbol"===typeof r.default?function(e){return typeof e}:function(e){return e&&"function"===typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};function l(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof s.default&&"symbol"===a(r.default)?function(e){return"undefined"===typeof e?"undefined":a(e)}:function(e){return e&&"function"===typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"===typeof e?"undefined":a(e)}},"10db":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"10eb":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return n.e("chunk-2d22ca58").then(n.bind(null,"f3b7"))}})},"10f4":function(e,t,n){},1148:function(e,t,n){"use strict";var i=n("5926"),r=n("577e"),o=n("1d80"),s=RangeError;e.exports=function(e){var t=r(o(this)),n="",a=i(e);if(a<0||a==1/0)throw s("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},1165:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n("0a0f");n("4035");const r=Object(i["c"])("contextService");class o{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}},"11b0":function(e,t,n){function i(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("d3b7"),n("3ca3"),n("ddb0"),e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},"11b09":function(e,t,n){},"11f7":function(e,t,n){"use strict";n.d(t,"t",(function(){return f})),n.d(t,"N",(function(){return p})),n.d(t,"i",(function(){return m})),n.d(t,"o",(function(){return y})),n.d(t,"n",(function(){return _})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return C})),n.d(t,"j",(function(){return S})),n.d(t,"k",(function(){return x})),n.d(t,"T",(function(){return O})),n.d(t,"V",(function(){return k})),n.d(t,"l",(function(){return A})),n.d(t,"A",(function(){return N})),n.d(t,"z",(function(){return P})),n.d(t,"b",(function(){return R})),n.d(t,"G",(function(){return F})),n.d(t,"X",(function(){return B})),n.d(t,"D",(function(){return W})),n.d(t,"f",(function(){return V})),n.d(t,"I",(function(){return z})),n.d(t,"C",(function(){return H})),n.d(t,"B",(function(){return U})),n.d(t,"H",(function(){return q})),n.d(t,"L",(function(){return $})),n.d(t,"x",(function(){return K})),n.d(t,"J",(function(){return G})),n.d(t,"O",(function(){return Z})),n.d(t,"F",(function(){return X})),n.d(t,"y",(function(){return Q})),n.d(t,"w",(function(){return J})),n.d(t,"v",(function(){return ie})),n.d(t,"Q",(function(){return re})),n.d(t,"M",(function(){return oe})),n.d(t,"d",(function(){return se})),n.d(t,"c",(function(){return ae})),n.d(t,"U",(function(){return le})),n.d(t,"S",(function(){return ce})),n.d(t,"Y",(function(){return he})),n.d(t,"q",(function(){return de})),n.d(t,"P",(function(){return fe})),n.d(t,"R",(function(){return pe})),n.d(t,"a",(function(){return be})),n.d(t,"W",(function(){return ye})),n.d(t,"K",(function(){return _e})),n.d(t,"E",(function(){return we})),n.d(t,"u",(function(){return Ce})),n.d(t,"Z",(function(){return Se})),n.d(t,"p",(function(){return xe})),n.d(t,"s",(function(){return Oe})),n.d(t,"r",(function(){return ke})),n.d(t,"e",(function(){return Le})),n.d(t,"m",(function(){return Ee}));var i=n("0f70"),r=n("b835"),o=n("5d28"),s=n("5fe7"),a=n("fdcc"),l=n("308f"),c=n("a666"),u=n("30db"),h=n("b589"),d=n("0a31");function f(e){while(e.firstChild)e.firstChild.remove()}function p(e){var t;return null!==(t=null===e||void 0===e?void 0:e.isConnected)&&void 0!==t&&t}class g{constructor(e,t,n,i){this._node=e,this._type=t,this._handler=n,this._options=i||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function m(e,t,n,i){return new g(e,t,n,i)}function v(e){return function(t){return e(new o["a"](t))}}function b(e){return function(t){return e(new r["a"](t))}}let y=function(e,t,n,i){let r=n;return"click"===t||"mousedown"===t?r=v(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(r=b(n)),m(e,t,r,i)},_=function(e,t,n){let i=v(t);return w(e,i,n)};function w(e,t,n){return m(e,u["c"]&&d["a"].pointerEvents?se.POINTER_DOWN:se.MOUSE_DOWN,t,n)}function C(e,t,n){return m(e,u["c"]&&d["a"].pointerEvents?se.POINTER_UP:se.MOUSE_UP,t,n)}function S(e,t){return m(e,"mouseout",n=>{let i=n.relatedTarget;while(i&&i!==e)i=i.parentNode;i!==e&&t(n)})}function x(e,t){return m(e,"pointerout",n=>{let i=n.relatedTarget;while(i&&i!==e)i=i.parentNode;i!==e&&t(n)})}let O,k,L=null;function E(e){if(!L){const e=e=>setTimeout(()=>e((new Date).getTime()),0);L=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||e}return L.call(self,e)}class D{constructor(e,t=0){this._runner=e,this.priority=t,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(e){Object(a["e"])(e)}}static sort(e,t){return t.priority-e.priority}}(function(){let e=[],t=null,n=!1,i=!1,r=()=>{n=!1,t=e,e=[],i=!0;while(t.length>0){t.sort(D.sort);let e=t.shift();e.execute()}i=!1};k=(t,i=0)=>{let o=new D(t,i);return e.push(o),n||(n=!0,E(r)),o},O=(e,n)=>{if(i){let i=new D(e,n);return t.push(i),i}return k(e,n)}})();const I=8,M=function(e,t){return t};class T extends c["a"]{constructor(e,t,n,i=M,r=I){super();let o=null,a=0,l=this._register(new s["g"]),c=()=>{a=(new Date).getTime(),n(o),o=null};this._register(m(e,t,e=>{o=i(o,e);let t=(new Date).getTime()-a;t>=r?(l.cancel(),c()):l.setIfNotSet(c,r-t)}))}}function A(e,t,n,i,r){return new T(e,t,n,i,r)}function N(e){return document.defaultView.getComputedStyle(e,null)}function P(e){if(e!==document.body)return new R(e.clientWidth,e.clientHeight);if(u["c"]&&window.visualViewport)return new R(window.visualViewport.width,window.visualViewport.height);if(window.innerWidth&&window.innerHeight)return new R(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new R(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new R(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}class j{static convertToPixels(e,t){return parseFloat(t)||0}static getDimension(e,t,n){let i=N(e),r="0";return i&&(r=i.getPropertyValue?i.getPropertyValue(t):i.getAttribute(n)),j.convertToPixels(e,r)}static getBorderLeftWidth(e){return j.getDimension(e,"border-left-width","borderLeftWidth")}static getBorderRightWidth(e){return j.getDimension(e,"border-right-width","borderRightWidth")}static getBorderTopWidth(e){return j.getDimension(e,"border-top-width","borderTopWidth")}static getBorderBottomWidth(e){return j.getDimension(e,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(e){return j.getDimension(e,"padding-left","paddingLeft")}static getPaddingRight(e){return j.getDimension(e,"padding-right","paddingRight")}static getPaddingTop(e){return j.getDimension(e,"padding-top","paddingTop")}static getPaddingBottom(e){return j.getDimension(e,"padding-bottom","paddingBottom")}static getMarginLeft(e){return j.getDimension(e,"margin-left","marginLeft")}static getMarginTop(e){return j.getDimension(e,"margin-top","marginTop")}static getMarginRight(e){return j.getDimension(e,"margin-right","marginRight")}static getMarginBottom(e){return j.getDimension(e,"margin-bottom","marginBottom")}}class R{constructor(e,t){this.width=e,this.height=t}with(e=this.width,t=this.height){return e!==this.width||t!==this.height?new R(e,t):this}static is(e){return"object"===typeof e&&"number"===typeof e.height&&"number"===typeof e.width}static lift(e){return e instanceof R?e:new R(e.width,e.height)}static equals(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)}}function F(e){let t=e.offsetParent,n=e.offsetTop,i=e.offsetLeft;while(null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement){n-=e.scrollTop;const r=Y(e)?null:N(e);r&&(i-="rtl"!==r.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=j.getBorderLeftWidth(e),n+=j.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}}function B(e,t,n){"number"===typeof t&&(e.style.width=t+"px"),"number"===typeof n&&(e.style.height=n+"px")}function W(e){let t=e.getBoundingClientRect();return{left:t.left+V.scrollX,top:t.top+V.scrollY,width:t.width,height:t.height}}const V=new class{get scrollX(){return"number"===typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft}get scrollY(){return"number"===typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop}};function z(e){let t=j.getMarginLeft(e)+j.getMarginRight(e);return e.offsetWidth+t}function H(e){let t=j.getBorderLeftWidth(e)+j.getBorderRightWidth(e),n=j.getPaddingLeft(e)+j.getPaddingRight(e);return e.offsetWidth-t-n}function U(e){let t=j.getBorderTopWidth(e)+j.getBorderBottomWidth(e),n=j.getPaddingTop(e)+j.getPaddingBottom(e);return e.offsetHeight-t-n}function q(e){let t=j.getMarginTop(e)+j.getMarginBottom(e);return e.offsetHeight+t}function $(e,t){while(e){if(e===t)return!0;e=e.parentNode}return!1}function K(e,t,n){while(e&&e.nodeType===e.ELEMENT_NODE){if(e.classList.contains(t))return e;if(n)if("string"===typeof n){if(e.classList.contains(n))return null}else if(e===n)return null;e=e.parentNode}return null}function G(e,t,n){return!!K(e,t,n)}function Y(e){return e&&!!e.host&&!!e.mode}function Z(e){return!!X(e)}function X(e){while(e.parentNode){if(e===document.body)return null;e=e.parentNode}return Y(e)?e:null}function Q(){let e=document.activeElement;while(null===e||void 0===e?void 0:e.shadowRoot)e=e.shadowRoot.activeElement;return e}function J(e=document.getElementsByTagName("head")[0]){let t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}let ee=null;function te(){return ee||(ee=J()),ee}function ne(e){var t,n;return(null===(t=null===e||void 0===e?void 0:e.sheet)||void 0===t?void 0:t.rules)?e.sheet.rules:(null===(n=null===e||void 0===e?void 0:e.sheet)||void 0===n?void 0:n.cssRules)?e.sheet.cssRules:[]}function ie(e,t,n=te()){n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)}function re(e,t=te()){if(!t)return;let n=ne(t),i=[];for(let r=0;r<n.length;r++){let t=n[r];-1!==t.selectorText.indexOf(e)&&i.push(r)}for(let r=i.length-1;r>=0;r--)t.sheet.deleteRule(i[r])}function oe(e){return"object"===typeof HTMLElement?e instanceof HTMLElement:e&&"object"===typeof e&&1===e.nodeType&&"string"===typeof e.nodeName}const se={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",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["j"]?"webkitAnimationStart":"animationstart",ANIMATION_END:i["j"]?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:i["j"]?"webkitAnimationIteration":"animationiteration"},ae={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};function le(e){let t=[];for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function ce(e,t){for(let n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode}class ue extends c["a"]{constructor(e){super(),this._onDidFocus=this._register(new l["b"]),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new l["b"]),this.onDidBlur=this._onDidBlur.event;let t=$(document.activeElement,e),n=!1;const i=()=>{n=!1,t||(t=!0,this._onDidFocus.fire())},r=()=>{t&&(n=!0,window.setTimeout(()=>{n&&(n=!1,t=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{let n=$(document.activeElement,e);n!==t&&(t?r():i())},this._register(m(e,se.FOCUS,i,!0)),this._register(m(e,se.BLUR,r,!0))}}function he(e){return new ue(e)}function de(e,...t){if(e.append(...t),1===t.length&&"string"!==typeof t[0])return t[0]}function fe(e,t){return e.insertBefore(t,e.firstChild),t}function pe(e,...t){e.innerText="",de(e,...t)}const ge=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var me;function ve(e,t,n,...i){let r=ge.exec(t);if(!r)throw new Error("Bad use of emmet");n=Object.assign({},n||{});let o,s=r[1]||"div";return o=e!==me.HTML?document.createElementNS(e,s):document.createElement(s),r[3]&&(o.id=r[3]),r[4]&&(o.className=r[4].replace(/\./g," ").trim()),Object.keys(n).forEach(e=>{const t=n[e];"undefined"!==typeof t&&(/^on\w+$/.test(e)?o[e]=t:"selected"===e?t&&o.setAttribute(e,"true"):o.setAttribute(e,t))}),o.append(...i),o}function be(e,t,...n){return ve(me.HTML,e,t,...n)}function ye(...e){for(let t of e)t.style.display="",t.removeAttribute("aria-hidden")}function _e(...e){for(let t of e)t.style.display="none",t.setAttribute("aria-hidden","true")}function we(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function Ce(e){const t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio}function Se(e){window.open(e,"_blank","noopener")}function xe(e){const t=()=>{e(),n=k(t)};let n=k(t);return Object(c["i"])(()=>n.dispose())}function Oe(e){return e?`url('${h["a"].asBrowserUri(e).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function ke(e){return`'${e.replace(/'/g,"%27")}'`}(function(e){e["HTML"]="http://www.w3.org/1999/xhtml",e["SVG"]="http://www.w3.org/2000/svg"})(me||(me={})),be.SVG=function(e,t,...n){return ve(me.SVG,e,t,...n)},h["b"].setPreferredWebSchema(/^https:/.test(window.location.href)?"https":"http");class Le extends l["b"]{constructor(){super(),this._subscriptions=new c["b"],this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(m(window,"keydown",e=>{if(e.defaultPrevented)return;const t=new r["a"](e);if(6!==t.keyCode||!e.repeat){if(e.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(e.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(e.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(e.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else{if(6===t.keyCode)return;this._keyStatus.lastKeyPressed=void 0}this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=e,this.fire(this._keyStatus))}},!0)),this._subscriptions.add(m(window,"keyup",e=>{e.defaultPrevented||(!e.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!e.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!e.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!e.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=e.altKey,this._keyStatus.ctrlKey=e.ctrlKey,this._keyStatus.metaKey=e.metaKey,this._keyStatus.shiftKey=e.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=e,this.fire(this._keyStatus)))},!0)),this._subscriptions.add(m(document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(m(document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),this._subscriptions.add(m(document.body,"mousemove",e=>{e.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),this._subscriptions.add(m(window,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return Le.instance||(Le.instance=new Le),Le.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}function Ee(e,t){const n=window.matchMedia(e);"function"===typeof n.addEventListener?n.addEventListener("change",t):n.addListener(t)}},1276:function(e,t,n){"use strict";var i=n("2ba4"),r=n("c65b"),o=n("e330"),s=n("d784"),a=n("825a"),l=n("7234"),c=n("44e7"),u=n("1d80"),h=n("4840"),d=n("8aa5"),f=n("50c4"),p=n("577e"),g=n("dc4a"),m=n("4dae"),v=n("14c3"),b=n("9263"),y=n("9f7f"),_=n("d039"),w=y.UNSUPPORTED_Y,C=4294967295,S=Math.min,x=[].push,O=o(/./.exec),k=o(x),L=o("".slice),E=!_((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));s("split",(function(e,t,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=p(u(this)),s=void 0===n?C:n>>>0;if(0===s)return[];if(void 0===e)return[o];if(!c(e))return r(t,o,e,s);var a,l,h,d=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,v=new RegExp(e.source,f+"g");while(a=r(b,v,o)){if(l=v.lastIndex,l>g&&(k(d,L(o,g,a.index)),a.length>1&&a.index<o.length&&i(x,d,m(a,1)),h=a[0].length,g=l,d.length>=s))break;v.lastIndex===a.index&&v.lastIndex++}return g===o.length?!h&&O(v,"")||k(d,""):k(d,L(o,g)),d.length>s?m(d,0,s):d}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t,[function(t,n){var i=u(this),s=l(t)?void 0:g(t,e);return s?r(s,t,i,n):r(o,p(i),t,n)},function(e,i){var r=a(this),s=p(e),l=n(o,r,s,i,o!==t);if(l.done)return l.value;var c=h(r,RegExp),u=r.unicode,g=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(w?"g":"y"),m=new c(w?"^(?:"+r.source+")":r,g),b=void 0===i?C:i>>>0;if(0===b)return[];if(0===s.length)return null===v(m,s)?[s]:[];var y=0,_=0,x=[];while(_<s.length){m.lastIndex=w?0:_;var O,E=v(m,w?L(s,_):s);if(null===E||(O=S(f(m.lastIndex+(w?_:0)),s.length))===y)_=d(s,_,u);else{if(k(x,L(s,y,_)),x.length===b)return x;for(var D=1;D<=E.length-1;D++)if(k(x,E[D]),x.length===b)return x;_=y=O}}return k(x,L(s,y)),x}]}),!E,w)},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"131a":function(e,t,n){var i=n("23e7"),r=n("d2bb");i({target:"Object",stat:!0},{setPrototypeOf:r})},"133b":function(e,t,n){},1389:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:function(){return n.e("chunk-2d0aab07").then(n.bind(null,"11a2"))}})},"13a8":function(e,t,n){"use strict";(function(t,i){function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){q(t,e)}}var o;e.exports=E,E.WritableState=L;var s={deprecate:n("b7d1")},a=n("9ede"),l=n("1c35").Buffer,c=("undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function u(e){return l.from(e)}function h(e){return l.isBuffer(e)||e instanceof c}var d,f=n("edb3"),p=n("31b5"),g=p.getHighWaterMark,m=n("fbd7").codes,v=m.ERR_INVALID_ARG_TYPE,b=m.ERR_METHOD_NOT_IMPLEMENTED,y=m.ERR_MULTIPLE_CALLBACK,_=m.ERR_STREAM_CANNOT_PIPE,w=m.ERR_STREAM_DESTROYED,C=m.ERR_STREAM_NULL_VALUES,S=m.ERR_STREAM_WRITE_AFTER_END,x=m.ERR_UNKNOWN_ENCODING,O=f.errorOrDestroy;function k(){}function L(e,t,i){o=o||n("be3f"),e=e||{},"boolean"!==typeof i&&(i=t instanceof o),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=g(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){j(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function E(e){o=o||n("be3f");var t=this instanceof o;if(!t&&!d.call(E,this))return new E(e);this._writableState=new L(e,this,t),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),a.call(this)}function D(e,t){var n=new S;O(e,n),i.nextTick(t,n)}function I(e,t,n,r){var o;return null===n?o=new C:"string"===typeof n||t.objectMode||(o=new v("chunk",["string","Buffer"],n)),!o||(O(e,o),i.nextTick(r,o),!1)}function M(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=l.from(t,n)),t}function T(e,t,n,i,r,o){if(!n){var s=M(t,i,r);i!==s&&(n=!0,r="buffer",i=s)}var a=t.objectMode?1:i.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:r,isBuf:n,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,a,i,r,o);return l}function A(e,t,n,i,r,o,s){t.writelen=i,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new w("write")):n?e._writev(r,t.onwrite):e._write(r,o,t.onwrite),t.sync=!1}function N(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(H,e,t),e._writableState.errorEmitted=!0,O(e,r)):(o(r),e._writableState.errorEmitted=!0,O(e,r),H(e,t))}function P(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function j(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if("function"!==typeof o)throw new y;if(P(n),t)N(e,n,r,t,o);else{var s=W(n)||e.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||B(e,n),r?i.nextTick(R,e,n,s,o):R(e,n,s,o)}}function R(e,t,n,i){n||F(e,t),t.pendingcb--,i(),H(e,t)}function F(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function B(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,o=new Array(i),s=t.corkedRequestsFree;s.entry=n;var a=0,l=!0;while(n)o[a]=n,n.isBuf||(l=!1),n=n.next,a+=1;o.allBuffers=l,A(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{while(n){var c=n.chunk,u=n.encoding,h=n.callback,d=t.objectMode?1:c.length;if(A(e,t,!1,d,c,u,h),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function W(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function V(e,t){e._final((function(n){t.pendingcb--,n&&O(e,n),t.prefinished=!0,e.emit("prefinish"),H(e,t)}))}function z(e,t){t.prefinished||t.finalCalled||("function"!==typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(V,e,t)))}function H(e,t){var n=W(t);if(n&&(z(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}function U(e,t,n){t.ending=!0,H(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function q(e,t,n){var i=e.entry;e.entry=null;while(i){var r=i.callback;t.pendingcb--,r(n),i=i.next}t.corkedRequestsFree.next=e}n("3fb5")(E,a),L.prototype.getBuffer=function(){var e=this.bufferedRequest,t=[];while(e)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(L.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===E&&(e&&e._writableState instanceof L)}})):d=function(e){return e instanceof this},E.prototype.pipe=function(){O(this,new _)},E.prototype.write=function(e,t,n){var i=this._writableState,r=!1,o=!i.objectMode&&h(e);return o&&!l.isBuffer(e)&&(e=u(e)),"function"===typeof t&&(n=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),"function"!==typeof n&&(n=k),i.ending?D(this,n):(o||I(this,i,e,n))&&(i.pendingcb++,r=T(this,i,o,e,t,n)),r},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||B(this,e))},E.prototype.setDefaultEncoding=function(e){if("string"===typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,n){n(new b("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,n){var i=this._writableState;return"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||U(this,i,n),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this,n("c8ba"),n("4362"))},"13d2":function(e,t,n){var i=n("d039"),r=n("1626"),o=n("1a2d"),s=n("83ab"),a=n("5e77").CONFIGURABLE,l=n("8925"),c=n("69f3"),u=c.enforce,h=c.get,d=Object.defineProperty,f=s&&!i((function(){return 8!==d((function(){}),"length",{value:8}).length})),p=String(String).split("String"),g=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||a&&e.name!==t)&&(s?d(e,"name",{value:t,configurable:!0}):e.name=t),f&&n&&o(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?s&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(r){}var i=u(e);return o(i,"source")||(i.source=p.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return r(this)&&h(this).source||l(this)}),"toString")},"13d5":function(e,t,n){"use strict";var i=n("23e7"),r=n("d58f").left,o=n("a640"),s=n("2d00"),a=n("605d"),l=o("reduce"),c=!a&&s>79&&s<83;i({target:"Array",proto:!0,forced:!l||c},{reduce:function(e){var t=arguments.length;return r(this,e,t,t>1?arguments[1]:void 0)}})},"13e8":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return n.e("chunk-2d209408").then(n.bind(null,"a7ea"))}})},1409:function(e,t,n){"use strict";e.exports=ReferenceError},1468:function(e,t){var n=1e3,i=60*n,r=60*i,o=24*r,s=7*o,a=365.25*o;function l(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var l=parseFloat(t[1]),c=(t[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return l*a;case"weeks":case"week":case"w":return l*s;case"days":case"day":case"d":return l*o;case"hours":case"hour":case"hrs":case"hr":case"h":return l*r;case"minutes":case"minute":case"mins":case"min":case"m":return l*i;case"seconds":case"second":case"secs":case"sec":case"s":return l*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function c(e){var t=Math.abs(e);return t>=o?Math.round(e/o)+"d":t>=r?Math.round(e/r)+"h":t>=i?Math.round(e/i)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}function u(e){var t=Math.abs(e);return t>=o?h(e,t,o,"day"):t>=r?h(e,t,r,"hour"):t>=i?h(e,t,i,"minute"):t>=n?h(e,t,n,"second"):e+" ms"}function h(e,t,n,i){var r=t>=1.5*n;return Math.round(e/n)+" "+i+(r?"s":"")}e.exports=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return l(e);if("number"===n&&isFinite(e))return t.long?u(e):c(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},"14c3":function(e,t,n){var i=n("c65b"),r=n("825a"),o=n("1626"),s=n("c6b6"),a=n("9263"),l=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var c=i(n,e,t);return null!==c&&r(c),c}if("RegExp"===s(e))return i(a,e,t);throw l("RegExp#exec called on incompatible receiver")}},"14d9":function(e,t,n){"use strict";var i=n("23e7"),r=n("7b0b"),o=n("07fa"),s=n("3a34"),a=n("3511"),l=n("d039"),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}();i({target:"Array",proto:!0,arity:1,forced:c||u},{push:function(e){var t=r(this),n=o(t),i=arguments.length;a(n+i);for(var l=0;l<i;l++)t[n]=arguments[l],n++;return s(t,n),n}})},"14e1":function(e,t,n){},"14e5":function(e,t,n){"use strict";var i=n("23e7"),r=n("c65b"),o=n("59ed"),s=n("f069"),a=n("e667"),l=n("2266"),c=n("5eed");i({target:"Promise",stat:!0,forced:c},{all:function(e){var t=this,n=s.f(t),i=n.resolve,c=n.reject,u=a((function(){var n=o(t.resolve),s=[],a=0,u=1;l(e,(function(e){var o=a++,l=!1;u++,r(n,t,e).then((function(e){l||(l=!0,s[o]=e,--u||i(s))}),c)})),--u||i(s)}));return u.error&&c(u.value),n.promise}})},1569:function(e,t,n){"use strict";function i(e,t){if(!e)throw new Error(t?`Assertion failed (${t})`:"Assertion Failed")}n.d(t,"a",(function(){return i}))},"159b":function(e,t,n){var i=n("da84"),r=n("fdbc"),o=n("785a"),s=n("17c2"),a=n("9112"),l=function(e){if(e&&e.forEach!==s)try{a(e,"forEach",s)}catch(t){e.forEach=s}};for(var c in r)r[c]&&l(i[c]&&i[c].prototype);l(o)},1609:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},1626:function(e,t,n){var i=n("8ea1"),r=i.all;e.exports=i.IS_HTMLDDA?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},1665:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));var i=n("dff7"),r=n("4fc3"),o=n("30db");const s=new r["c"]("isWindows",o["j"],Object(i["a"])("isWindows","Whether the operating system is Windows")),a="inputFocus"},1687:function(e,t,n){"use strict";function i(){return[1,0,0,1,0,0]}function r(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function s(e,t,n){var i=t[0]*n[0]+t[2]*n[1],r=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],s=t[1]*n[2]+t[3]*n[3],a=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=r,e[2]=o,e[3]=s,e[4]=a,e[5]=l,e}function a(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function l(e,t,n,i){void 0===i&&(i=[0,0]);var r=t[0],o=t[2],s=t[4],a=t[1],l=t[3],c=t[5],u=Math.sin(n),h=Math.cos(n);return e[0]=r*h+a*u,e[1]=-r*u+a*h,e[2]=o*h+l*u,e[3]=-o*u+h*l,e[4]=h*(s-i[0])+u*(c-i[1])+i[0],e[5]=h*(c-i[1])-u*(s-i[0])+i[1],e}function c(e,t,n){var i=n[0],r=n[1];return e[0]=t[0]*i,e[1]=t[1]*r,e[2]=t[2]*i,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*r,e}function u(e,t){var n=t[0],i=t[2],r=t[4],o=t[1],s=t[3],a=t[5],l=n*s-o*i;return l?(l=1/l,e[0]=s*l,e[1]=-o*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*a-s*r)*l,e[5]=(o*r-n*a)*l,e):null}function h(e){var t=i();return o(t,e),t}n.r(t),n.d(t,"create",(function(){return i})),n.d(t,"identity",(function(){return r})),n.d(t,"copy",(function(){return o})),n.d(t,"mul",(function(){return s})),n.d(t,"translate",(function(){return a})),n.d(t,"rotate",(function(){return l})),n.d(t,"scale",(function(){return c})),n.d(t,"invert",(function(){return u})),n.d(t,"clone",(function(){return h}))},1696:function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var i=42;for(t in e[t]=i,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==i||!0!==o.enumerable)return!1}return!0}},"16f5":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return n.e("chunk-2d0bb267").then(n.bind(null,"39f1"))}})},1754:function(e,t,n){},"17c2":function(e,t,n){"use strict";var i=n("b727").forEach,r=n("a640"),o=r("forEach");e.exports=o?[].forEach:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}},"17ed":function(e,t,n){e.exports={default:n("511f"),__esModule:!0}},1830:function(e,t,n){"use strict";var i=n("6d8b"),r=n("b682"),o=n("b1d4"),s=n("2f45"),a=n("e0d3"),l=n("1f39"),c=function(){function e(e){this.coordSysDims=[],this.axisMap=Object(i["createHashMap"])(),this.categoryAxisMap=Object(i["createHashMap"])(),this.coordSysName=e}return e}();function u(e){var t=e.get("coordinateSystem"),n=new c(t),i=h[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}var h={cartesian2d:function(e,t,n,i){var r=e.getReferringComponents("xAxis",a["b"]).models[0],o=e.getReferringComponents("yAxis",a["b"]).models[0];t.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),d(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),d(o)&&(i.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,i){var r=e.getReferringComponents("singleAxis",a["b"]).models[0];t.coordSysDims=["single"],n.set("single",r),d(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var r=e.getReferringComponents("polar",a["b"]).models[0],o=r.findAxisModel("radiusAxis"),s=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",s),d(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),d(s)&&(i.set("angle",s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var o=e.ecModel,s=o.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=s.dimensions.slice();Object(i["each"])(s.parallelAxisIndex,(function(e,i){var s=o.getComponent("parallelAxis",e),l=a[i];n.set(l,s),d(s)&&(r.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=i))}))}};function d(e){return"category"===e.get("type")}var f=n("ec6f"),p=n("ee1a"),g=n("0f99"),m=n("07fd");function v(e,t){var n,r=e.get("coordinateSystem"),o=l["a"].get(r);return t&&t.coordSysDims&&(n=i["map"](t.coordSysDims,(function(e){var n={name:e},i=t.axisMap.get(e);if(i){var r=i.get("type");n.type=Object(s["a"])(r)}return n}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}function b(e,t,n){var r,o;return n&&i["each"](e,(function(e,i){var s=e.coordDim,a=n.categoryAxisMap.get(s);a&&(null==r&&(r=i),e.ordinalMeta=a.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(o=!0)})),o||null==r||(e[r].otherDims.itemName=0),r}function y(e,t,n){n=n||{};var s,a=t.getSourceManager(),l=!1;e?(l=!0,s=Object(f["c"])(e)):(s=a.getSource(),l=s.sourceFormat===m["f"]);var c=u(t),h=v(t,c),d=n.useEncodeDefaulter,y=i["isFunction"](d)?d:d?i["curry"](g["c"],h,t):null,w={coordDimensions:h,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:y,canOmitUnusedDimensions:!l},C=Object(o["b"])(s,w),S=b(C.dimensions,n.createInvertedIndices,c),x=l?null:a.getSharedDataStore(C),O=Object(p["a"])(t,{schema:C,store:x}),k=new r["a"](C,t);k.setCalculationInfo(O);var L=null!=S&&_(s)?function(e,t,n,i){return i===S?n:this.defaultDimValueGetter(e,t,n,i)}:null;return k.hasItemOption=!1,k.initData(l?s:x,null,L),k}function _(e){if(e.sourceFormat===m["f"]){var t=w(e.data||[]);return!i["isArray"](Object(a["h"])(t))}}function w(e){var t=0;while(t<e.length&&null==e[t])t++;return e[t]}t["a"]=y},1836:function(e,t,n){var i=n("6ca1"),r=n("6438").f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return r(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==o.call(e)?a(e):r(i(e))}},"184d":function(e,t,n){"use strict";var i=n("f177"),r=n("2500"),o=n("bbc7");e.exports={formats:o,parse:r,stringify:i}},1898:function(e,t,n){"use strict";n.d(t,"b",(function(){return N})),n.d(t,"c",(function(){return P})),n.d(t,"a",(function(){return j}));n("7aad");var i=n("11f7"),r=n("6653"),o=n("5d28"),s=n("00a3"),a=n("1b7d"),l=n("5fe7");const c=11;class u extends a["a"]{constructor(e){super(),this._onActivate=e.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=e.bgWidth+"px",this.bgDomNode.style.height=e.bgHeight+"px","undefined"!==typeof e.top&&(this.bgDomNode.style.top="0px"),"undefined"!==typeof e.left&&(this.bgDomNode.style.left="0px"),"undefined"!==typeof e.bottom&&(this.bgDomNode.style.bottom="0px"),"undefined"!==typeof e.right&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=e.className,this.domNode.classList.add(...e.icon.classNamesArray),this.domNode.style.position="absolute",this.domNode.style.width=c+"px",this.domNode.style.height=c+"px","undefined"!==typeof e.top&&(this.domNode.style.top=e.top+"px"),"undefined"!==typeof e.left&&(this.domNode.style.left=e.left+"px"),"undefined"!==typeof e.bottom&&(this.domNode.style.bottom=e.bottom+"px"),"undefined"!==typeof e.right&&(this.domNode.style.right=e.right+"px"),this._mouseMoveMonitor=this._register(new s["a"]),this.onmousedown(this.bgDomNode,e=>this._arrowMouseDown(e)),this.onmousedown(this.domNode,e=>this._arrowMouseDown(e)),this._mousedownRepeatTimer=this._register(new l["c"]),this._mousedownScheduleRepeatTimer=this._register(new l["g"])}_arrowMouseDown(e){const t=()=>{this._mousedownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(t,200),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,s["b"],e=>{},()=>{this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancel()}),e.preventDefault()}}var h=n("a666");class d extends h["a"]{constructor(e,t,n){super(),this._visibility=e,this._visibleClassName=t,this._invisibleClassName=n,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new l["g"])}setVisibility(e){this._visibility!==e&&(this._visibility=e,this._updateShouldBeVisible())}setShouldBeVisible(e){this._rawShouldBeVisible=e,this._updateShouldBeVisible()}_applyVisibilitySetting(){return 2!==this._visibility&&(3===this._visibility||this._rawShouldBeVisible)}_updateShouldBeVisible(){const e=this._applyVisibilitySetting();this._shouldBeVisible!==e&&(this._shouldBeVisible=e,this.ensureVisibility())}setIsNeeded(e){this._isNeeded!==e&&(this._isNeeded=e,this.ensureVisibility())}setDomNode(e){this._domNode=e,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){this._isNeeded?this._shouldBeVisible?this._reveal():this._hide(!0):this._hide(!1)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{this._domNode&&this._domNode.setClassName(this._visibleClassName)},0))}_hide(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")))}}var f=n("30db");const p=140;class g extends a["a"]{constructor(e){super(),this._lazyRender=e.lazyRender,this._host=e.host,this._scrollable=e.scrollable,this._scrollByPage=e.scrollByPage,this._scrollbarState=e.scrollbarState,this._visibilityController=this._register(new d(e.visibility,"visible scrollbar "+e.extraScrollbarClassName,"invisible scrollbar "+e.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._mouseMoveMonitor=this._register(new s["a"]),this._shouldRender=!0,this.domNode=Object(r["b"])(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this.onmousedown(this.domNode.domNode,e=>this._domNodeMouseDown(e))}_createArrow(e){const t=this._register(new u(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)}_createSlider(e,t,n,i){this.slider=Object(r["b"])(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),"number"===typeof n&&this.slider.setWidth(n),"number"===typeof i&&this.slider.setHeight(i),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,e=>{e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{}))}),this.onclick(this.slider.domNode,e=>{e.leftButton&&e.stopPropagation()})}_onElementSize(e){return this._scrollbarState.setVisibleSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(e){return this._scrollbarState.setScrollSize(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(e){return this._scrollbarState.setScrollPosition(e)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodeMouseDown(e){e.target===this.domNode.domNode&&this._onMouseDown(e)}delegateMouseDown(e){const t=this.domNode.domNode.getClientRects()[0].top,n=t+this._scrollbarState.getSliderPosition(),i=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),r=this._sliderMousePosition(e);n<=r&&r<=i?e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{})):this._onMouseDown(e)}_onMouseDown(e){let 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{const r=i["D"](this.domNode.domNode);t=e.posx-r.left,n=e.posy-r.top}const r=this._mouseDownRelativePosition(t,n);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(r):this._scrollbarState.getDesiredScrollPositionFromOffset(r)),e.leftButton&&(e.preventDefault(),this._sliderMouseDown(e,()=>{}))}_sliderMouseDown(e,t){const n=this._sliderMousePosition(e),i=this._sliderOrthogonalMousePosition(e),r=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(e.target,e.buttons,s["b"],e=>{const t=this._sliderOrthogonalMousePosition(e),o=Math.abs(t-i);if(f["j"]&&o>p)return void this._setDesiredScrollPositionNow(r.getScrollPosition());const s=this._sliderMousePosition(e),a=s-n;this._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(a))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd(),t()}),this._host.onDragStart()}_setDesiredScrollPositionNow(e){const t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)}updateScrollbarSize(e){this._updateScrollbarSize(e),this._scrollbarState.setScrollbarSize(e),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}const m=20;class v{constructor(e,t,n,i,r,o){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(e),this._visibleSize=i,this._scrollSize=r,this._scrollPosition=o,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new v(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(e){const t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)}setScrollSize(e){const t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)}setScrollPosition(e){const t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)}setScrollbarSize(e){this._scrollbarSize=Math.round(e)}setOppositeScrollbarSize(e){this._oppositeScrollbarSize=Math.round(e)}static _computeValues(e,t,n,i,r){const o=Math.max(0,n-e),s=Math.max(0,o-2*t),a=i>0&&i>n;if(!a)return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};const l=Math.round(Math.max(m,Math.floor(n*s/i))),c=(s-l)/(i-n),u=r*c;return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(l),computedSliderRatio:c,computedSliderPosition:Math.round(u)}}_refreshComputedValues(){const e=v._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}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(e){if(!this._computedIsNeeded)return 0;const t=e-this._arrowSize;let n=this._scrollPosition;return t<this._computedSliderPosition?n-=this._visibleSize:n+=this._visibleSize,n}getDesiredScrollPositionFromDelta(e){if(!this._computedIsNeeded)return 0;const t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)}}var b=n("561a");const y=Object(b["e"])("scrollbar-button-left",b["b"].triangleLeft),_=Object(b["e"])("scrollbar-button-right",b["b"].triangleRight);class w extends g{constructor(e,t,n){const i=e.getScrollDimensions(),r=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:n,scrollbarState:new v(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,scrollByPage:t.scrollByPage}),t.horizontalHasArrows){const e=(t.arrowSize-c)/2,n=(t.horizontalScrollbarSize-c)/2;this._createArrow({className:"scra",icon:y,top:n,left:e,bottom:void 0,right:void 0,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new o["b"](null,1,0))}),this._createArrow({className:"scra",icon:_,top:n,left:void 0,bottom:void 0,right:e,bgWidth:t.arrowSize,bgHeight:t.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new o["b"](null,-1,0))})}this._createSlider(Math.floor((t.horizontalScrollbarSize-t.horizontalSliderSize)/2),0,void 0,t.horizontalSliderSize)}_updateSlider(e,t){this.slider.setWidth(e),this.slider.setLeft(t)}_renderDomNode(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(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}_mouseDownRelativePosition(e,t){return e}_sliderMousePosition(e){return e.posx}_sliderOrthogonalMousePosition(e){return e.posy}_updateScrollbarSize(e){this.slider.setHeight(e)}writeScrollPosition(e,t){e.scrollLeft=t}updateOptions(e){this.updateScrollbarSize(2===e.horizontal?0:e.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._visibilityController.setVisibility(e.horizontal),this._scrollByPage=e.scrollByPage}}const C=Object(b["e"])("scrollbar-button-up",b["b"].triangleUp),S=Object(b["e"])("scrollbar-button-down",b["b"].triangleDown);class x extends g{constructor(e,t,n){const i=e.getScrollDimensions(),r=e.getCurrentScrollPosition();if(super({lazyRender:t.lazyRender,host:n,scrollbarState:new v(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,scrollByPage:t.scrollByPage}),t.verticalHasArrows){const e=(t.arrowSize-c)/2,n=(t.verticalScrollbarSize-c)/2;this._createArrow({className:"scra",icon:C,top:e,left:n,bottom:void 0,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new o["b"](null,0,1))}),this._createArrow({className:"scra",icon:S,top:void 0,left:n,bottom:e,right:void 0,bgWidth:t.verticalScrollbarSize,bgHeight:t.arrowSize,onActivate:()=>this._host.onMouseWheel(new o["b"](null,0,-1))})}this._createSlider(0,Math.floor((t.verticalScrollbarSize-t.verticalSliderSize)/2),t.verticalSliderSize,void 0)}_updateSlider(e,t){this.slider.setHeight(e),this.slider.setTop(t)}_renderDomNode(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(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}_mouseDownRelativePosition(e,t){return t}_sliderMousePosition(e){return e.posy}_sliderOrthogonalMousePosition(e){return e.posx}_updateScrollbarSize(e){this.slider.setWidth(e)}writeScrollPosition(e,t){e.scrollTop=t}updateOptions(e){this.updateScrollbarSize(2===e.vertical?0:e.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(e.vertical),this._scrollByPage=e.scrollByPage}}var O=n("308f"),k=n("42e3"),L=n("0f70");const E=500,D=50,I=!0;class M{constructor(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0}}class T{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(-1===this._front&&-1===this._rear)return!1;let e=1,t=0,n=1,i=this._rear;do{const r=i===this._front?e:Math.pow(2,-n);if(e-=r,t+=this._memory[i].score*r,i===this._front)break;i=(this._capacity+i-1)%this._capacity,n++}while(1);return t<=.5}accept(e,t,n){const i=new M(e,t,n);i.score=this._computeScore(i),-1===this._front&&-1===this._rear?(this._memory[0]=i,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=i)}_computeScore(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;let t=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return this._isAlmostInt(e.deltaX)&&this._isAlmostInt(e.deltaY)||(t+=.25),Math.min(Math.max(t,0),1)}_isAlmostInt(e){const t=Math.abs(Math.round(e)-e);return t<.01}}T.INSTANCE=new T;class A extends a["a"]{constructor(e,t,n){super(),this._onScroll=this._register(new O["b"]),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new O["b"]),e.style.overflow="hidden",this._options=R(t),this._scrollable=n,this._register(this._scrollable.onScroll(e=>{this._onWillScroll.fire(e),this._onDidScroll(e),this._onScroll.fire(e)}));const i={onMouseWheel:e=>this._onMouseWheel(e),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new x(this._scrollable,this._options,i)),this._horizontalScrollbar=this._register(new w(this._scrollable,this._options,i)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(e),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=Object(r["b"])(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=Object(r["b"])(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=Object(r["b"])(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,e=>this._onMouseOver(e)),this.onnonbubblingmouseout(this._listenOnDomNode,e=>this._onMouseOut(e)),this._hideTimeout=this._register(new l["g"]),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=Object(h["f"])(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarMouseDown(e){this._verticalScrollbar.delegateMouseDown(e)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(e){this._scrollable.setScrollDimensions(e,!1)}updateClassName(e){this._options.className=e,f["f"]&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(e){"undefined"!==typeof e.handleMouseWheel&&(this._options.handleMouseWheel=e.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),"undefined"!==typeof e.mouseWheelScrollSensitivity&&(this._options.mouseWheelScrollSensitivity=e.mouseWheelScrollSensitivity),"undefined"!==typeof e.fastScrollSensitivity&&(this._options.fastScrollSensitivity=e.fastScrollSensitivity),"undefined"!==typeof e.scrollPredominantAxis&&(this._options.scrollPredominantAxis=e.scrollPredominantAxis),"undefined"!==typeof e.horizontal&&(this._options.horizontal=e.horizontal),"undefined"!==typeof e.vertical&&(this._options.vertical=e.vertical),"undefined"!==typeof e.horizontalScrollbarSize&&(this._options.horizontalScrollbarSize=e.horizontalScrollbarSize),"undefined"!==typeof e.verticalScrollbarSize&&(this._options.verticalScrollbarSize=e.verticalScrollbarSize),"undefined"!==typeof e.scrollByPage&&(this._options.scrollByPage=e.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}_setListeningToMouseWheel(e){const t=this._mouseWheelToDispose.length>0;if(t!==e&&(this._mouseWheelToDispose=Object(h["f"])(this._mouseWheelToDispose),e)){const e=e=>{this._onMouseWheel(new o["b"](e))};this._mouseWheelToDispose.push(i["i"](this._listenOnDomNode,i["d"].MOUSE_WHEEL,e,{passive:!1}))}}_onMouseWheel(e){const t=T.INSTANCE;if(I){const n=window.devicePixelRatio/Object(L["c"])();f["j"]||f["d"]?t.accept(Date.now(),e.deltaX/n,e.deltaY/n):t.accept(Date.now(),e.deltaX,e.deltaY)}let n=!1;if(e.deltaY||e.deltaX){let i=e.deltaY*this._options.mouseWheelScrollSensitivity,r=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(Math.abs(i)>=Math.abs(r)?r=0:i=0),this._options.flipAxes&&([i,r]=[r,i]);const o=!f["f"]&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!o||r||(r=i,i=0),e.browserEvent&&e.browserEvent.altKey&&(r*=this._options.fastScrollSensitivity,i*=this._options.fastScrollSensitivity);const s=this._scrollable.getFutureScrollPosition();let a={};if(i){const e=s.scrollTop-D*i;this._verticalScrollbar.writeScrollPosition(a,e)}if(r){const e=s.scrollLeft-D*r;this._horizontalScrollbar.writeScrollPosition(a,e)}if(a=this._scrollable.validateScrollPosition(a),s.scrollLeft!==a.scrollLeft||s.scrollTop!==a.scrollTop){const e=I&&this._options.mouseWheelSmoothScroll&&t.isPhysicalMouseWheel();e?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),n=!0}}let i=n;!i&&this._options.alwaysConsumeMouseWheel&&(i=!0),!i&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(i=!0),i&&(e.preventDefault(),e.stopPropagation())}_onDidScroll(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()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,n=e.scrollLeft>0,i=n?" left":"",r=t?" top":"",o=n||t?" top-left-corner":"";this._leftShadowDomNode.setClassName("shadow"+i),this._topShadowDomNode.setClassName("shadow"+r),this._topLeftShadowDomNode.setClassName(`shadow${o}${r}${i}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseOut(e){this._mouseIsOver=!1,this._hide()}_onMouseOver(e){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet(()=>this._hide(),E)}}class N extends A{constructor(e,t){t=t||{},t.mouseWheelSmoothScroll=!1;const n=new k["a"](0,e=>i["V"](e));super(e,t,n),this._register(n)}setScrollPosition(e){this._scrollable.setScrollPositionNow(e)}}class P extends A{constructor(e,t,n){super(e,t,n)}setScrollPosition(e){e.reuseAnimation?this._scrollable.setScrollPositionSmooth(e,e.reuseAnimation):this._scrollable.setScrollPositionNow(e)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class j extends N{constructor(e,t){super(e,t),this._element=e,this.onScroll(e=>{e.scrollTopChanged&&(this._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(this._element.scrollLeft=e.scrollLeft)}),this.scanDomNode()}scanDomNode(){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})}}function R(e){const t={lazyRender:"undefined"!==typeof e.lazyRender&&e.lazyRender,className:"undefined"!==typeof e.className?e.className:"",useShadows:"undefined"===typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"===typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!==typeof e.flipAxes&&e.flipAxes,consumeMouseWheelIfScrollbarIsNeeded:"undefined"!==typeof e.consumeMouseWheelIfScrollbarIsNeeded&&e.consumeMouseWheelIfScrollbarIsNeeded,alwaysConsumeMouseWheel:"undefined"!==typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!==typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!==typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:"undefined"!==typeof e.fastScrollSensitivity?e.fastScrollSensitivity:5,scrollPredominantAxis:"undefined"===typeof e.scrollPredominantAxis||e.scrollPredominantAxis,mouseWheelSmoothScroll:"undefined"===typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!==typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!==typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!==typeof e.horizontal?e.horizontal:1,horizontalScrollbarSize:"undefined"!==typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!==typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!==typeof e.vertical?e.vertical:1,verticalScrollbarSize:"undefined"!==typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!==typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:0,scrollByPage:"undefined"!==typeof e.scrollByPage&&e.scrollByPage};return t.horizontalSliderSize="undefined"!==typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!==typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,f["f"]&&(t.className+=" mac"),t}},"18ad":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.doUpdate=f,t.Updater=void 0;var r=i(n("448a")),o=i(n("7037")),s=i(n("970b")),a=function e(t,n){(0,s["default"])(this,e);var i=t.chart,r=t.key,o=t.getGraphConfig;"function"===typeof o?(i[r]||(this.graphs=i[r]=[]),Object.assign(this,t),this.update(n)):console.warn("Updater need function getGraphConfig!")};function l(e,t){var n=e.graphs,i=e.chart.render,r=n.length,o=t.length;if(r>o){var s=n.splice(o);s.forEach((function(e){return e.forEach((function(e){return i.delGraph(e)}))}))}}function c(e,t,n,i){var r=i.getGraphConfig,o=i.chart.render,s=i.beforeChange,a=r(t,i);u(e,a,o),e.forEach((function(e,t){var n=a[t];"function"===typeof s&&s(e,n),d(e,n)}))}function u(e,t,n){var i=e.length,o=t.length;if(o>i){var s=e.slice(-1)[0],a=o-i,l=new Array(a).fill(0).map((function(e){return n.clone(s)}));e.push.apply(e,(0,r["default"])(l))}else if(o<i){var c=e.splice(o);c.forEach((function(e){return n.delGraph(e)}))}}function h(e,t,n,i){var r=i.getGraphConfig,o=i.getStartGraphConfig,s=i.chart,a=s.render,l=null;"function"===typeof o&&(l=o(t,i));var c=r(t,i);if(c.length){l?(e[n]=l.map((function(e){return a.add(e)})),e[n].forEach((function(e,t){var n=c[t];d(e,n)}))):e[n]=c.map((function(e){return a.add(e)}));var u=i.afterAddGraph;"function"===typeof u&&u(e[n])}}function d(e,t){var n=Object.keys(t);n.forEach((function(n){"shape"===n||"style"===n?e.animation(n,t[n],!0):e[n]=t[n]}))}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.chart,n=e.series,i=e.key,r=e.getGraphConfig,o=e.getStartGraphConfig,s=e.beforeChange,l=e.beforeUpdate,c=e.afterAddGraph;t[i]?t[i].update(n):t[i]=new a({chart:t,key:i,getGraphConfig:r,getStartGraphConfig:o,beforeChange:s,beforeUpdate:l,afterAddGraph:c},n)}t.Updater=a,a.prototype.update=function(e){var t=this,n=this.graphs,i=this.beforeUpdate;if(l(this,e),e.length){var r=(0,o["default"])(i);e.forEach((function(e,o){"function"===r&&i(n,e,o,t);var s=n[o];s?c(s,e,o,t):h(n,e,o,t)}))}}},"18c0":function(e,t,n){"use strict";var i=n("9ab4"),r=n("e0d8"),o=n("8e43"),s=n("944e"),a=n("6d8b"),l=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new o["a"]({})),Object(a["isArray"])(i)&&(i=new o["a"]({categories:Object(a["map"])(i,(function(e){return Object(a["isObject"])(e)?e.value:e}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return Object(i["a"])(t,e),t.prototype.parse=function(e){return null==e?NaN:Object(a["isString"])(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),s["a"](e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),s["f"](e,this._extent)},t.prototype.scale=function(e){return e=Math.round(s["g"](e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){var e=[],t=this._extent,n=t[0];while(n<=t[1])e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,s=Math.min(o,t.length);r<s;++r){var a=t[r];n[r]=a,i[a]=r}for(var l=0;r<o;++r){while(null!=i[l])l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(r["a"]);r["a"].registerClass(l),t["a"]=l},1917:function(e,t){t.f={}.propertyIsEnumerable},"191f":function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return g}));var i=n("fdcc"),r=n("3742"),o=n("2c29"),s=n("ccde"),a=n("6a89"),l=n("8025");class c{constructor(e,t,n){this._range=e,this._charBeforeSelection=t,this._charAfterSelection=n}getEditOperations(e,t){t.addTrackedEditOperation(new a["a"](this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),t.addTrackedEditOperation(new a["a"](this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)}computeCursorState(e,t){let n=t.getInverseEditOperations(),i=n[0].range,r=n[1].range;return new l["a"](i.endLineNumber,i.endColumn,r.endLineNumber,r.endColumn-this._charAfterSelection.length)}}var u=n("2e5d"),h=n("e6ff"),d=n("2837"),f=n("70cb");class p{static indent(e,t,n){if(null===t||null===n)return[];let i=[];for(let r=0,o=n.length;r<o;r++)i[r]=new s["a"](n[r],{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent});return i}static outdent(e,t,n){let i=[];for(let r=0,o=n.length;r<o;r++)i[r]=new s["a"](n[r],{isUnshift:!0,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent});return i}static shiftIndent(e,t,n){return n=n||1,s["a"].shiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)}static unshiftIndent(e,t,n){return n=n||1,s["a"].unshiftIndent(t,t.length+n,e.tabSize,e.indentSize,e.insertSpaces)}static _distributedPaste(e,t,n,i){let r=[];for(let s=0,a=n.length;s<a;s++)r[s]=new o["a"](n[s],i[s]);return new u["e"](0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _simplePaste(e,t,n,i,r){let s=[];for(let l=0,c=n.length;l<c;l++){const e=n[l];let t=e.getPosition();if(r&&!e.isEmpty()&&(r=!1),r&&i.indexOf("\n")!==i.length-1&&(r=!1),r){let n=new a["a"](t.lineNumber,1,t.lineNumber,1);s[l]=new o["b"](n,i,e,!0)}else s[l]=new o["a"](e,i)}return new u["e"](0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _distributePasteToCursors(e,t,n,i,o){if(i)return null;if(1===t.length)return null;if(o&&o.length===t.length)return o;if("spread"===e.multiCursorPaste){10===n.charCodeAt(n.length-1)&&(n=n.substr(0,n.length-1)),13===n.charCodeAt(n.length-1)&&(n=n.substr(0,n.length-1));let e=r["R"](n);if(e.length===t.length)return e}return null}static paste(e,t,n,i,r,o){const s=this._distributePasteToCursors(e,n,i,r,o);return s?(n=n.sort(a["a"].compareRangesUsingStarts),this._distributedPaste(e,t,n,s)):this._simplePaste(e,t,n,i,r)}static _goodIndentForLine(e,t,n){let i=null,o="";const s=f["a"].getInheritIndentForLine(e.autoIndent,t,n,!1);if(s)i=s.action,o=s.indentation;else if(n>1){let i;for(i=n-1;i>=1;i--){const e=t.getLineContent(i),n=r["J"](e);if(n>=0)break}if(i<1)return null;const s=t.getLineMaxColumn(i),l=f["a"].getEnterAction(e.autoIndent,t,new a["a"](i,s,i,s));l&&(o=l.indentation+l.appendText)}return i&&(i===d["b"].Indent&&(o=p.shiftIndent(e,o)),i===d["b"].Outdent&&(o=p.unshiftIndent(e,o)),o=e.normalizeIndentation(o)),o||null}static _replaceJumpToNextIndent(e,t,n,i){let r="",s=n.getStartPosition();if(e.insertSpaces){let n=u["a"].visibleColumnFromColumn2(e,t,s),i=e.indentSize,o=i-n%i;for(let e=0;e<o;e++)r+=" "}else r="\t";return new o["a"](n,r,i)}static tab(e,t,n){let i=[];for(let r=0,l=n.length;r<l;r++){const l=n[r];if(l.isEmpty()){let n=t.getLineContent(l.startLineNumber);if(/^\s*$/.test(n)&&t.isCheapToTokenize(l.startLineNumber)){let s=this._goodIndentForLine(e,t,l.startLineNumber);s=s||"\t";let c=e.normalizeIndentation(s);if(!n.startsWith(c)){i[r]=new o["a"](new a["a"](l.startLineNumber,1,l.startLineNumber,n.length+1),c,!0);continue}}i[r]=this._replaceJumpToNextIndent(e,t,l,!0)}else{if(l.startLineNumber===l.endLineNumber){let n=t.getLineMaxColumn(l.startLineNumber);if(1!==l.startColumn||l.endColumn!==n){i[r]=this._replaceJumpToNextIndent(e,t,l,!1);continue}}i[r]=new s["a"](l,{isUnshift:!1,tabSize:e.tabSize,indentSize:e.indentSize,insertSpaces:e.insertSpaces,useTabStops:e.useTabStops,autoIndent:e.autoIndent})}}return i}static compositionType(e,t,n,i,r,o,s,a){const l=i.map(e=>this._compositionType(n,e,r,o,s,a));return new u["e"](4,l,{shouldPushStackElementBefore:v(e,4),shouldPushStackElementAfter:!1})}static _compositionType(e,t,n,i,r,s){if(!t.isEmpty())return null;const l=t.getPosition(),c=Math.max(1,l.column-i),u=Math.min(e.getLineMaxColumn(l.lineNumber),l.column+r),h=new a["a"](l.lineNumber,c,l.lineNumber,u),d=e.getValueInRange(h);return d===n&&0===s?null:new o["d"](h,n,0,s)}static _typeCommand(e,t,n){return n?new o["e"](e,t,!0):new o["a"](e,t,!0)}static _enter(e,t,n,i){if(0===e.autoIndent)return p._typeCommand(i,"\n",n);if(!t.isCheapToTokenize(i.getStartPosition().lineNumber)||1===e.autoIndent){let o=t.getLineContent(i.startLineNumber),s=r["y"](o).substring(0,i.startColumn-1);return p._typeCommand(i,"\n"+e.normalizeIndentation(s),n)}const s=f["a"].getEnterAction(e.autoIndent,t,i);if(s){if(s.indentAction===d["b"].None)return p._typeCommand(i,"\n"+e.normalizeIndentation(s.indentation+s.appendText),n);if(s.indentAction===d["b"].Indent)return p._typeCommand(i,"\n"+e.normalizeIndentation(s.indentation+s.appendText),n);if(s.indentAction===d["b"].IndentOutdent){const t=e.normalizeIndentation(s.indentation),r=e.normalizeIndentation(s.indentation+s.appendText),a="\n"+r+"\n"+t;return n?new o["e"](i,a,!0):new o["d"](i,a,-1,r.length-t.length,!0)}if(s.indentAction===d["b"].Outdent){const t=p.unshiftIndent(e,s.indentation);return p._typeCommand(i,"\n"+e.normalizeIndentation(t+s.appendText),n)}}const a=t.getLineContent(i.startLineNumber),l=r["y"](a).substring(0,i.startColumn-1);if(e.autoIndent>=4){const s=f["a"].getIndentForEnter(e.autoIndent,t,i,{unshiftIndent:t=>p.unshiftIndent(e,t),shiftIndent:t=>p.shiftIndent(e,t),normalizeIndentation:t=>e.normalizeIndentation(t)});if(s){let a=u["a"].visibleColumnFromColumn2(e,t,i.getEndPosition());const l=i.endColumn,c=t.getLineContent(i.endLineNumber),h=r["v"](c);if(i=h>=0?i.setEndPosition(i.endLineNumber,Math.max(i.endColumn,h+1)):i.setEndPosition(i.endLineNumber,t.getLineMaxColumn(i.endLineNumber)),n)return new o["e"](i,"\n"+e.normalizeIndentation(s.afterEnter),!0);{let t=0;return l<=h+1&&(e.insertSpaces||(a=Math.ceil(a/e.indentSize)),t=Math.min(a+1-e.normalizeIndentation(s.afterEnter).length-1,0)),new o["d"](i,"\n"+e.normalizeIndentation(s.afterEnter),0,t,!0)}}}return p._typeCommand(i,"\n"+e.normalizeIndentation(l),n)}static _isAutoIndentType(e,t,n){if(e.autoIndent<4)return!1;for(let i=0,r=n.length;i<r;i++)if(!t.isCheapToTokenize(n[i].getEndPosition().lineNumber))return!1;return!0}static _runAutoIndentType(e,t,n,i){const r=f["a"].getIndentationAtPosition(t,n.startLineNumber,n.startColumn),o=f["a"].getIndentActionForType(e.autoIndent,t,n,i,{shiftIndent:t=>p.shiftIndent(e,t),unshiftIndent:t=>p.unshiftIndent(e,t)});if(null===o)return null;if(o!==e.normalizeIndentation(r)){const r=t.getLineFirstNonWhitespaceColumn(n.startLineNumber);return 0===r?p._typeCommand(new a["a"](n.startLineNumber,1,n.endLineNumber,n.endColumn),e.normalizeIndentation(o)+i,!1):p._typeCommand(new a["a"](n.startLineNumber,1,n.endLineNumber,n.endColumn),e.normalizeIndentation(o)+t.getLineContent(n.startLineNumber).substring(r-1,n.startColumn-1)+i,!1)}return null}static _isAutoClosingOvertype(e,t,n,i,r){if("never"===e.autoClosingOvertype)return!1;if(!e.autoClosingPairs.autoClosingPairsCloseSingleChar.has(r))return!1;for(let o=0,s=n.length;o<s;o++){const s=n[o];if(!s.isEmpty())return!1;const a=s.getPosition(),l=t.getLineContent(a.lineNumber),c=l.charAt(a.column-1);if(c!==r)return!1;const h=Object(u["g"])(r),d=a.column>2?l.charCodeAt(a.column-2):0;if(92===d&&h)return!1;if("auto"===e.autoClosingOvertype){let e=!1;for(let t=0,n=i.length;t<n;t++){const n=i[t];if(a.lineNumber===n.startLineNumber&&a.column===n.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingOvertype(e,t,n,i,r){let s=[];for(let l=0,c=i.length;l<c;l++){const e=i[l],t=e.getPosition(),n=new a["a"](t.lineNumber,t.column,t.lineNumber,t.column+1);s[l]=new o["a"](n,r)}return new u["e"](4,s,{shouldPushStackElementBefore:v(e,4),shouldPushStackElementAfter:!1})}static _isBeforeClosingBrace(e,t){const n=t.charAt(0),i=e.autoClosingPairs.autoClosingPairsOpenByStart.get(n)||[],r=e.autoClosingPairs.autoClosingPairsCloseByStart.get(n)||[],o=i.some(e=>t.startsWith(e.open)),s=r.some(e=>t.startsWith(e.close));return!o&&s}static _findAutoClosingPairOpen(e,t,n,i){const r=e.autoClosingPairs.autoClosingPairsOpenByEnd.get(i);if(!r)return null;let o=null;for(const s of r)if(null===o||s.open.length>o.open.length){let e=!0;for(const r of n){const n=t.getValueInRange(new a["a"](r.lineNumber,r.column-s.open.length+1,r.lineNumber,r.column));if(n+i!==s.open){e=!1;break}}e&&(o=s)}return o}static _findSubAutoClosingPairClose(e,t){if(t.open.length<=1)return"";const n=t.close.charAt(t.close.length-1),i=e.autoClosingPairs.autoClosingPairsCloseByEnd.get(n)||[];let r=null;for(const o of i)o.open!==t.open&&t.open.includes(o.open)&&t.close.endsWith(o.close)&&(!r||o.open.length>r.open.length)&&(r=o);return r?r.close:""}static _getAutoClosingPairClose(e,t,n,r,o){const s=Object(u["g"])(r),a=s?e.autoClosingQuotes:e.autoClosingBrackets;if("never"===a)return null;const l=this._findAutoClosingPairOpen(e,t,n.map(e=>e.getPosition()),r);if(!l)return null;const c=this._findSubAutoClosingPairClose(e,l);let d=!0;const g=s?e.shouldAutoCloseBefore.quote:e.shouldAutoCloseBefore.bracket;for(let u=0,v=n.length;u<v;u++){const r=n[u];if(!r.isEmpty())return null;const v=r.getPosition(),b=t.getLineContent(v.lineNumber),y=b.substring(v.column-1);if(y.startsWith(c)||(d=!1),b.length>v.column-1){const t=b.charAt(v.column-1),n=p._isBeforeClosingBrace(e,y);if(!n&&!g(t))return null}if(!t.isCheapToTokenize(v.lineNumber))return null;if(1===l.open.length&&s&&"always"!==a){const t=Object(h["a"])(e.wordSeparators);if(o&&v.column>1&&0===t.get(b.charCodeAt(v.column-2)))return null;if(!o&&v.column>2&&0===t.get(b.charCodeAt(v.column-3)))return null}t.forceTokenization(v.lineNumber);const _=t.getLineTokens(v.lineNumber);let w=!1;try{w=f["a"].shouldAutoClosePair(l,_,o?v.column:v.column-1)}catch(m){Object(i["e"])(m)}if(!w)return null}return d?l.close.substring(0,l.close.length-c.length):l.close}static _runAutoClosingOpenCharType(e,t,n,i,r,o,s){let a=[];for(let l=0,c=i.length;l<c;l++){const e=i[l];a[l]=new g(e,r,o,s)}return new u["e"](4,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}static _shouldSurroundChar(e,t){return Object(u["g"])(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround}static _isSurroundSelectionType(e,t,n,i){if(!p._shouldSurroundChar(e,i)||!e.surroundingPairs.hasOwnProperty(i))return!1;const r=Object(u["g"])(i);for(let o=0,s=n.length;o<s;o++){const e=n[o];if(e.isEmpty())return!1;let i=!0;for(let n=e.startLineNumber;n<=e.endLineNumber;n++){const r=t.getLineContent(n),o=n===e.startLineNumber?e.startColumn-1:0,s=n===e.endLineNumber?e.endColumn-1:r.length,a=r.substring(o,s);if(/[^ \t]/.test(a)){i=!1;break}}if(i)return!1;if(r&&e.startLineNumber===e.endLineNumber&&e.startColumn+1===e.endColumn){const n=t.getValueInRange(e);if(Object(u["g"])(n))return!1}}return!0}static _runSurroundSelectionType(e,t,n,i,r){let o=[];for(let s=0,a=i.length;s<a;s++){const e=i[s],n=t.surroundingPairs[r];o[s]=new c(e,r,n)}return new u["e"](0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _isTypeInterceptorElectricChar(e,t,n){return!(1!==n.length||!t.isCheapToTokenize(n[0].getEndPosition().lineNumber))}static _typeInterceptorElectricChar(e,t,n,s,l){if(!t.electricChars.hasOwnProperty(l)||!s.isEmpty())return null;let c=s.getPosition();n.forceTokenization(c.lineNumber);let h,d=n.getLineTokens(c.lineNumber);try{h=f["a"].onElectricCharacter(l,d,c.column)}catch(p){return Object(i["e"])(p),null}if(!h)return null;if(h.matchOpenBracket){let i=(d.getLineContent()+l).lastIndexOf(h.matchOpenBracket)+1,s=n.findMatchingBracketUp(h.matchOpenBracket,{lineNumber:c.lineNumber,column:i});if(s){if(s.startLineNumber===c.lineNumber)return null;let i=n.getLineContent(s.startLineNumber),h=r["y"](i),d=t.normalizeIndentation(h),f=n.getLineContent(c.lineNumber),p=n.getLineFirstNonWhitespaceColumn(c.lineNumber)||c.column,g=f.substring(p-1,c.column-1),v=d+g+l,b=new a["a"](c.lineNumber,1,c.lineNumber,c.column);const y=new o["a"](b,v);return new u["e"](m(v,e),[y],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null}static compositionEndWithInterceptors(e,t,n,i,r,s){if(!i||l["a"].selectionsArrEqual(i,r))return null;let c=null;for(const o of r){if(!o.isEmpty())return null;const e=o.getPosition(),t=n.getValueInRange(new a["a"](e.lineNumber,e.column-1,e.lineNumber,e.column));if(null===c)c=t;else if(c!==t)return null}if(!c)return null;if(this._isAutoClosingOvertype(t,n,r,s,c)){const e=r.map(e=>new o["a"](new a["a"](e.positionLineNumber,e.positionColumn,e.positionLineNumber,e.positionColumn+1),"",!1));return new u["e"](4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const h=this._getAutoClosingPairClose(t,n,r,c,!1);return null!==h?this._runAutoClosingOpenCharType(e,t,n,r,c,!1,h):null}static typeWithInterceptors(e,t,n,i,r,s,a){if(!e&&"\n"===a){let e=[];for(let t=0,o=r.length;t<o;t++)e[t]=p._enter(n,i,!1,r[t]);return new u["e"](4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!e&&this._isAutoIndentType(n,i,r)){let e=[],t=!1;for(let o=0,s=r.length;o<s;o++)if(e[o]=this._runAutoIndentType(n,i,r[o],a),!e[o]){t=!0;break}if(!t)return new u["e"](4,e,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!e&&this._isAutoClosingOvertype(n,i,r,s,a))return this._runAutoClosingOvertype(t,n,i,r,a);if(!e){const e=this._getAutoClosingPairClose(n,i,r,a,!0);if(e)return this._runAutoClosingOpenCharType(t,n,i,r,a,!0,e)}if(this._isSurroundSelectionType(n,i,r,a))return this._runSurroundSelectionType(t,n,i,r,a);if(!e&&this._isTypeInterceptorElectricChar(n,i,r)){const e=this._typeInterceptorElectricChar(t,n,i,r[0],a);if(e)return e}let l=[];for(let u=0,h=r.length;u<h;u++)l[u]=new o["a"](r[u],a);const c=m(a,t);return new u["e"](c,l,{shouldPushStackElementBefore:v(t,c),shouldPushStackElementAfter:!1})}static typeWithoutInterceptors(e,t,n,i,r){let s=[];for(let l=0,c=i.length;l<c;l++)s[l]=new o["a"](i[l],r);const a=m(r,e);return new u["e"](a,s,{shouldPushStackElementBefore:v(e,a),shouldPushStackElementAfter:!1})}static lineInsertBefore(e,t,n){if(null===t||null===n)return[];let i=[];for(let r=0,s=n.length;r<s;r++){let s=n[r].positionLineNumber;if(1===s)i[r]=new o["e"](new a["a"](1,1,1,1),"\n");else{s--;let n=t.getLineMaxColumn(s);i[r]=this._enter(e,t,!1,new a["a"](s,n,s,n))}}return i}static lineInsertAfter(e,t,n){if(null===t||null===n)return[];let i=[];for(let r=0,o=n.length;r<o;r++){const o=n[r].positionLineNumber;let s=t.getLineMaxColumn(o);i[r]=this._enter(e,t,!1,new a["a"](o,s,o,s))}return i}static lineBreakInsert(e,t,n){let i=[];for(let r=0,o=n.length;r<o;r++)i[r]=this._enter(e,t,!0,n[r]);return i}}class g extends o["d"]{constructor(e,t,n,i){super(e,(n?t:"")+i,0,-i.length),this._openCharacter=t,this._closeCharacter=i,this.closeCharacterRange=null,this.enclosingRange=null}computeCursorState(e,t){let n=t.getInverseEditOperations(),i=n[0].range;return this.closeCharacterRange=new a["a"](i.startLineNumber,i.endColumn-this._closeCharacter.length,i.endLineNumber,i.endColumn),this.enclosingRange=new a["a"](i.startLineNumber,i.endColumn-this._openCharacter.length-this._closeCharacter.length,i.endLineNumber,i.endColumn),super.computeCursorState(e,t)}}function m(e,t){return" "===e?5===t||6===t?6:5:4}function v(e,t){return!(!y(e)||y(t))||5!==e&&b(e)!==b(t)}function b(e){return 6===e||5===e?"space":e}function y(e){return 4===e||5===e||6===e}},1985:function(e,t,n){(function(e,i){var r;/*! https://mths.be/punycode v1.4.1 by @mathias */(function(o){t&&t.nodeType,e&&e.nodeType;var s="object"==typeof i&&i;s.global!==s&&s.window!==s&&s.self;var a,l=2147483647,c=36,u=1,h=26,d=38,f=700,p=72,g=128,m="-",v=/^xn--/,b=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=c-u,C=Math.floor,S=String.fromCharCode;function x(e){throw new RangeError(_[e])}function O(e,t){var n=e.length,i=[];while(n--)i[n]=t(e[n]);return i}function k(e,t){var n=e.split("@"),i="";n.length>1&&(i=n[0]+"@",e=n[1]),e=e.replace(y,".");var r=e.split("."),o=O(r,t).join(".");return i+o}function L(e){var t,n,i=[],r=0,o=e.length;while(r<o)t=e.charCodeAt(r++),t>=55296&&t<=56319&&r<o?(n=e.charCodeAt(r++),56320==(64512&n)?i.push(((1023&t)<<10)+(1023&n)+65536):(i.push(t),r--)):i.push(t);return i}function E(e){return O(e,(function(e){var t="";return e>65535&&(e-=65536,t+=S(e>>>10&1023|55296),e=56320|1023&e),t+=S(e),t})).join("")}function D(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:c}function I(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function M(e,t,n){var i=0;for(e=n?C(e/f):e>>1,e+=C(e/t);e>w*h>>1;i+=c)e=C(e/w);return C(i+(w+1)*e/(e+d))}function T(e){var t,n,i,r,o,s,a,d,f,v,b=[],y=e.length,_=0,w=g,S=p;for(n=e.lastIndexOf(m),n<0&&(n=0),i=0;i<n;++i)e.charCodeAt(i)>=128&&x("not-basic"),b.push(e.charCodeAt(i));for(r=n>0?n+1:0;r<y;){for(o=_,s=1,a=c;;a+=c){if(r>=y&&x("invalid-input"),d=D(e.charCodeAt(r++)),(d>=c||d>C((l-_)/s))&&x("overflow"),_+=d*s,f=a<=S?u:a>=S+h?h:a-S,d<f)break;v=c-f,s>C(l/v)&&x("overflow"),s*=v}t=b.length+1,S=M(_-o,t,0==o),C(_/t)>l-w&&x("overflow"),w+=C(_/t),_%=t,b.splice(_++,0,w)}return E(b)}function A(e){var t,n,i,r,o,s,a,d,f,v,b,y,_,w,O,k=[];for(e=L(e),y=e.length,t=g,n=0,o=p,s=0;s<y;++s)b=e[s],b<128&&k.push(S(b));i=r=k.length,r&&k.push(m);while(i<y){for(a=l,s=0;s<y;++s)b=e[s],b>=t&&b<a&&(a=b);for(_=i+1,a-t>C((l-n)/_)&&x("overflow"),n+=(a-t)*_,t=a,s=0;s<y;++s)if(b=e[s],b<t&&++n>l&&x("overflow"),b==t){for(d=n,f=c;;f+=c){if(v=f<=o?u:f>=o+h?h:f-o,d<v)break;O=d-v,w=c-v,k.push(S(I(v+O%w,0))),d=C(O/w)}k.push(S(I(d,0))),o=M(n,_,i==r),n=0,++i}++n,++t}return k.join("")}function N(e){return k(e,(function(e){return v.test(e)?T(e.slice(4).toLowerCase()):e}))}function P(e){return k(e,(function(e){return b.test(e)?"xn--"+A(e):e}))}a={version:"1.4.1",ucs2:{decode:L,encode:E},decode:T,encode:A,toASCII:P,toUnicode:N},r=function(){return a}.call(t,n,t,e),void 0===r||(e.exports=r)})()}).call(this,n("62e4")(e),n("c8ba"))},"199a":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return n.e("chunk-2d0aeb45").then(n.bind(null,"0aca"))}})},"19aa":function(e,t,n){var i=n("3a9b"),r=TypeError;e.exports=function(e,t){if(i(t,e))return e;throw r("Incorrect invocation")}},"19bd":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return n.e("chunk-2d2214b3").then(n.bind(null,"ca76"))}})},"19eb":function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u}));var i=n("9ab4"),r=n("d5b7"),o=n("9850"),s=n("6d8b"),a=n("4bc4"),l="__zr_style_"+Math.round(10*Math.random()),c={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},u={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};c[l]=!0;var h=["z","z2","invisible"],d=["invisible"],f=function(e){function t(t){return e.call(this,t)||this}return Object(i["a"])(t,e),t.prototype._init=function(t){for(var n=Object(s["keys"])(t),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(t[r]):e.prototype.attrKV.call(this,r,t[r])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&m(this,e,t)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent){var s=this.parent;while(s){if(s.ignore)return!1;s=s.parent}}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();return i.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,s=i.shadowOffsetX||0,a=i.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new o["a"](0,0,0,0)),t?o["a"].applyTransform(e,n,t):e.copy(n),(r||s||a)&&(e.width+=2*r+Math.abs(s),e.height+=2*r+Math.abs(a),e.x=Math.min(e.x,e.x+s-r),e.y=Math.min(e.y,e.y+a-r));var l=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-l),e.y=Math.floor(e.y-l),e.width=Math.ceil(e.width+1+2*l),e.height=Math.ceil(e.height+1+2*l))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new o["a"](0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"===typeof e?this.style[e]=t:Object(s["extend"])(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=a["c"],this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&a["c"])},t.prototype.styleUpdated=function(){this.__dirty&=~a["c"]},t.prototype.createStyle=function(e){return Object(s["createObject"])(c,e)},t.prototype.useStyle=function(e){e[l]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[l]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,h)},t.prototype._applyStateObj=function(t,n,i,r,o,a){e.prototype._applyStateObj.call(this,t,n,i,r,o,a);var l,c=!(n&&r);if(n&&n.style?o?r?l=n.style:(l=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(l,n.style)):c&&(l=i.style),l)if(o){var u=this.style;if(this.style=this.createStyle(c?{}:u),c)for(var f=Object(s["keys"])(u),p=0;p<f.length;p++){var g=f[p];g in l&&(l[g]=l[g],this.style[g]=u[g])}var m=Object(s["keys"])(l);for(p=0;p<m.length;p++){g=m[p];this.style[g]=this.style[g]}this._transitionState(t,{style:l},a,this.getAnimationStyleProps())}else this.useStyle(l);var v=this.__inHover?d:h;for(p=0;p<v.length;p++){g=v[p];n&&null!=n[g]?this[g]=n[g]:c&&null!=i[g]&&(this[g]=i[g])}},t.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),r=0;r<t.length;r++){var o=t[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,t){return Object(s["extend"])(e,t),e},t.prototype.getAnimationStyleProps=function(){return u},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=a["a"]|a["c"]}(),t}(r["a"]),p=new o["a"](0,0,0,0),g=new o["a"](0,0,0,0);function m(e,t,n){return p.copy(e.getBoundingRect()),e.transform&&p.applyTransform(e.transform),g.width=t,g.height=n,!p.intersect(g)}t["c"]=f},"19fa":function(e,t,n){var i=n("fc5e"),r=n("c901");e.exports=function(e){return function(t,n){var o,s,a=String(r(t)),l=i(n),c=a.length;return l<0||l>=c?e?"":void 0:(o=a.charCodeAt(l),o<55296||o>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):o:e?a.slice(l,l+2):s-56320+(o-55296<<10)+65536)}}},"1a14":function(e,t,n){var i=n("77e9"),r=n("faf5"),o=n("3397"),s=Object.defineProperty;t.f=n("0bad")?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),r)try{return s(e,t,n)}catch(a){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"1a2d":function(e,t,n){var i=n("e330"),r=n("7b0b"),o=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(r(e),t)}},"1aa7":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:function(){return n.e("chunk-2d0b1fd5").then(n.bind(null,"21cc"))}})},"1af3":function(e,t,n){"use strict";n.r(t);var i=n("dff7"),r=n("6a89"),o=n("8025"),s=n("c101"),a=n("b2cc"),l=n("a40b");class c{constructor(e,t,n){this._editRange=e,this._originalSelection=t,this._text=n}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){const n=t.getInverseEditOperations(),i=n[0].range;return this._originalSelection.isEmpty()?new o["a"](i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn),i.endLineNumber,Math.min(this._originalSelection.positionColumn,i.endColumn)):new o["a"](i.endLineNumber,i.endColumn-this._text.length,i.endLineNumber,i.endColumn)}}var u=n("bc04"),h=n("b7d0"),d=n("918c"),f=n("b57f"),p=n("5fe7"),g=n("fdcc"),m=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},v=function(e,t){return function(n,i){t(n,i,e)}};let b=class e{constructor(e,t){this.decorationIds=[],this.editor=e,this.editorWorkerService=t}static get(t){return t.getContribution(e.ID)}dispose(){}run(t,n){this.currentRequest&&this.currentRequest.cancel();const i=this.editor.getSelection(),s=this.editor.getModel();if(!s||!i)return;let a=i;if(a.startLineNumber!==a.endLineNumber)return;const l=new u["a"](this.editor,5),h=s.uri;return this.editorWorkerService.canNavigateValueSet(h)?(this.currentRequest=Object(p["h"])(e=>this.editorWorkerService.navigateValueSet(h,a,n)),this.currentRequest.then(n=>{if(!n||!n.range||!n.value)return;if(!l.validate(this.editor))return;let i=r["a"].lift(n.range),s=n.range,u=n.value.length-(a.endColumn-a.startColumn);s={startLineNumber:s.startLineNumber,startColumn:s.startColumn,endLineNumber:s.endLineNumber,endColumn:s.startColumn+n.value.length},u>1&&(a=new o["a"](a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn+u-1));const h=new c(i,a,n.value);this.editor.pushUndoStop(),this.editor.executeCommand(t,h),this.editor.pushUndoStop(),this.decorationIds=this.editor.deltaDecorations(this.decorationIds,[{range:s,options:e.DECORATION}]),this.decorationRemover&&this.decorationRemover.cancel(),this.decorationRemover=Object(p["n"])(350),this.decorationRemover.then(()=>this.decorationIds=this.editor.deltaDecorations(this.decorationIds,[])).catch(g["e"])}).catch(g["e"])):Promise.resolve(void 0)}};b.ID="editor.contrib.inPlaceReplaceController",b.DECORATION=f["a"].register({description:"in-place-replace",className:"valueSetReplacement"}),b=m([v(1,l["a"])],b);class y extends a["b"]{constructor(){super({id:"editor.action.inPlaceReplace.up",label:i["a"]("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:3154,weight:100}})}run(e,t){const n=b.get(t);return n?n.run(this.id,!0):Promise.resolve(void 0)}}class _ extends a["b"]{constructor(){super({id:"editor.action.inPlaceReplace.down",label:i["a"]("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:3156,weight:100}})}run(e,t){const n=b.get(t);return n?n.run(this.id,!1):Promise.resolve(void 0)}}Object(a["l"])(b.ID,b),Object(a["j"])(y),Object(a["j"])(_),Object(h["f"])((e,t)=>{const n=e.getColor(d["d"]);n&&t.addRule(`.monaco-editor.vs .valueSetReplacement { outline: solid 2px ${n}; }`)})},"1b0e":function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));class i{constructor(e,t,n,i){this.originalStart=e,this.originalLength=t,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var r=n("eda7");class o{constructor(e){this.source=e}getElements(){const e=this.source,t=new Int32Array(e.length);for(let n=0,i=e.length;n<i;n++)t[n]=e.charCodeAt(n);return t}}function s(e,t,n){return new u(new o(e),new o(t)).ComputeDiff(n).changes}class a{static Assert(e,t){if(!e)throw new Error(t)}}class l{static Copy(e,t,n,i,r){for(let o=0;o<r;o++)n[i+o]=e[t+o]}static Copy2(e,t,n,i,r){for(let o=0;o<r;o++)n[i+o]=e[t+o]}}class c{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new i(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++}AddModifiedElement(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class u{constructor(e,t,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=t;const[i,r,o]=u._getElements(e),[s,a,l]=u._getElements(t);this._hasStrings=o&&l,this._originalStringElements=i,this._originalElementsOrHash=r,this._modifiedStringElements=s,this._modifiedElementsOrHash=a,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const t=e.getElements();if(u._isStringArray(t)){const e=new Int32Array(t.length);for(let n=0,i=t.length;n<i;n++)e[n]=Object(r["c"])(t[n],0);return[t,e,!0]}return t instanceof Int32Array?[[],t,!1]:[[],new Int32Array(t),!1]}ElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._modifiedStringElements[t])}ElementsAreStrictEqual(e,t){if(!this.ElementsAreEqual(e,t))return!1;const n=u._getStrictElement(this._originalSequence,e),i=u._getStrictElement(this._modifiedSequence,t);return n===i}static _getStrictElement(e,t){return"function"===typeof e.getStrictElement?e.getStrictElement(t):null}OriginalElementsAreEqual(e,t){return this._originalElementsOrHash[e]===this._originalElementsOrHash[t]&&(!this._hasStrings||this._originalStringElements[e]===this._originalStringElements[t])}ModifiedElementsAreEqual(e,t){return this._modifiedElementsOrHash[e]===this._modifiedElementsOrHash[t]&&(!this._hasStrings||this._modifiedStringElements[e]===this._modifiedStringElements[t])}ComputeDiff(e){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,e)}_ComputeDiff(e,t,n,i,r){const o=[!1];let s=this.ComputeDiffRecursive(e,t,n,i,o);return r&&(s=this.PrettifyChanges(s)),{quitEarly:o[0],changes:s}}ComputeDiffRecursive(e,t,n,r,o){o[0]=!1;while(e<=t&&n<=r&&this.ElementsAreEqual(e,n))e++,n++;while(t>=e&&r>=n&&this.ElementsAreEqual(t,r))t--,r--;if(e>t||n>r){let o;return n<=r?(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),o=[new i(e,0,n,r-n+1)]):e<=t?(a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),o=[new i(e,t-e+1,n,0)]):(a.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),o=[]),o}const s=[0],l=[0],c=this.ComputeRecursionPoint(e,t,n,r,s,l,o),u=s[0],h=l[0];if(null!==c)return c;if(!o[0]){const s=this.ComputeDiffRecursive(e,u,n,h,o);let a=[];return a=o[0]?[new i(u+1,t-(u+1)+1,h+1,r-(h+1)+1)]:this.ComputeDiffRecursive(u+1,t,h+1,r,o),this.ConcatenateChanges(s,a)}return[new i(e,t-e+1,n,r-n+1)]}WALKTRACE(e,t,n,r,o,s,a,l,u,h,d,f,p,g,m,v,b,y){let _=null,w=null,C=new c,S=t,x=n,O=p[0]-v[0]-r,k=-1073741824,L=this.m_forwardHistory.length-1;do{const t=O+e;t===S||t<x&&u[t-1]<u[t+1]?(d=u[t+1],g=d-O-r,d<k&&C.MarkNextChange(),k=d,C.AddModifiedElement(d+1,g),O=t+1-e):(d=u[t-1]+1,g=d-O-r,d<k&&C.MarkNextChange(),k=d-1,C.AddOriginalElement(d,g+1),O=t-1-e),L>=0&&(u=this.m_forwardHistory[L],e=u[0],S=1,x=u.length-1)}while(--L>=-1);if(_=C.getReverseChanges(),y[0]){let e=p[0]+1,t=v[0]+1;if(null!==_&&_.length>0){const n=_[_.length-1];e=Math.max(e,n.getOriginalEnd()),t=Math.max(t,n.getModifiedEnd())}w=[new i(e,f-e+1,t,m-t+1)]}else{C=new c,S=s,x=a,O=p[0]-v[0]-l,k=1073741824,L=b?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=O+o;e===S||e<x&&h[e-1]>=h[e+1]?(d=h[e+1]-1,g=d-O-l,d>k&&C.MarkNextChange(),k=d+1,C.AddOriginalElement(d+1,g+1),O=e+1-o):(d=h[e-1],g=d-O-l,d>k&&C.MarkNextChange(),k=d,C.AddModifiedElement(d+1,g+1),O=e-1-o),L>=0&&(h=this.m_reverseHistory[L],o=h[0],S=1,x=h.length-1)}while(--L>=-1);w=C.getChanges()}return this.ConcatenateChanges(_,w)}ComputeRecursionPoint(e,t,n,r,o,s,a){let c=0,u=0,h=0,d=0,f=0,p=0;e--,n--,o[0]=0,s[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=t-e+(r-n),m=g+1,v=new Int32Array(m),b=new Int32Array(m),y=r-n,_=t-e,w=e-n,C=t-r,S=_-y,x=S%2===0;v[y]=e,b[_]=t,a[0]=!1;for(let O=1;O<=g/2+1;O++){let g=0,S=0;h=this.ClipDiagonalBound(y-O,O,y,m),d=this.ClipDiagonalBound(y+O,O,y,m);for(let e=h;e<=d;e+=2){c=e===h||e<d&&v[e-1]<v[e+1]?v[e+1]:v[e-1]+1,u=c-(e-y)-w;const n=c;while(c<t&&u<r&&this.ElementsAreEqual(c+1,u+1))c++,u++;if(v[e]=c,c+u>g+S&&(g=c,S=u),!x&&Math.abs(e-_)<=O-1&&c>=b[e])return o[0]=c,s[0]=u,n<=b[e]&&O<=1448?this.WALKTRACE(y,h,d,w,_,f,p,C,v,b,c,t,o,u,r,s,x,a):null}const k=(g-e+(S-n)-O)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(g,k))return a[0]=!0,o[0]=g,s[0]=S,k>0&&O<=1448?this.WALKTRACE(y,h,d,w,_,f,p,C,v,b,c,t,o,u,r,s,x,a):(e++,n++,[new i(e,t-e+1,n,r-n+1)]);f=this.ClipDiagonalBound(_-O,O,_,m),p=this.ClipDiagonalBound(_+O,O,_,m);for(let i=f;i<=p;i+=2){c=i===f||i<p&&b[i-1]>=b[i+1]?b[i+1]-1:b[i-1],u=c-(i-_)-C;const l=c;while(c>e&&u>n&&this.ElementsAreEqual(c,u))c--,u--;if(b[i]=c,x&&Math.abs(i-y)<=O&&c<=v[i])return o[0]=c,s[0]=u,l>=v[i]&&O<=1448?this.WALKTRACE(y,h,d,w,_,f,p,C,v,b,c,t,o,u,r,s,x,a):null}if(O<=1447){let e=new Int32Array(d-h+2);e[0]=y-h+1,l.Copy2(v,h,e,1,d-h+1),this.m_forwardHistory.push(e),e=new Int32Array(p-f+2),e[0]=_-f+1,l.Copy2(b,f,e,1,p-f+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(y,h,d,w,_,f,p,C,v,b,c,t,o,u,r,s,x,a)}PrettifyChanges(e){for(let t=0;t<e.length;t++){const n=e[t],i=t<e.length-1?e[t+1].originalStart:this._originalElementsOrHash.length,r=t<e.length-1?e[t+1].modifiedStart:this._modifiedElementsOrHash.length,o=n.originalLength>0,s=n.modifiedLength>0;while(n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<r&&(!o||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!s||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength))){const e=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart),t=this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength);if(t&&!e)break;n.originalStart++,n.modifiedStart++}let a=[null];t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],a)&&(e[t]=a[0],e.splice(t+1,1),t--)}for(let t=e.length-1;t>=0;t--){const n=e[t];let i=0,r=0;if(t>0){const n=e[t-1];i=n.originalStart+n.originalLength,r=n.modifiedStart+n.modifiedLength}const o=n.originalLength>0,s=n.modifiedLength>0;let a=0,l=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let e=1;;e++){const t=n.originalStart-e,c=n.modifiedStart-e;if(t<i||c<r)break;if(o&&!this.OriginalElementsAreEqual(t,t+n.originalLength))break;if(s&&!this.ModifiedElementsAreEqual(c,c+n.modifiedLength))break;const u=t===i&&c===r,h=(u?5:0)+this._boundaryScore(t,n.originalLength,c,n.modifiedLength);h>l&&(l=h,a=e)}n.originalStart-=a,n.modifiedStart-=a;const c=[null];t>0&&this.ChangesOverlap(e[t-1],e[t],c)&&(e[t-1]=c[0],e.splice(t,1),t++)}if(this._hasStrings)for(let t=1,n=e.length;t<n;t++){const n=e[t-1],i=e[t],r=i.originalStart-n.originalStart-n.originalLength,o=n.originalStart,s=i.originalStart+i.originalLength,a=s-o,l=n.modifiedStart,c=i.modifiedStart+i.modifiedLength,u=c-l;if(r<5&&a<20&&u<20){const e=this._findBetterContiguousSequence(o,a,l,u,r);if(e){const[t,o]=e;t===n.originalStart+n.originalLength&&o===n.modifiedStart+n.modifiedLength||(n.originalLength=t-n.originalStart,n.modifiedLength=o-n.modifiedStart,i.originalStart=t+r,i.modifiedStart=o+r,i.originalLength=s-i.originalStart,i.modifiedLength=c-i.modifiedStart)}}}return e}_findBetterContiguousSequence(e,t,n,i,r){if(t<r||i<r)return null;const o=e+t-r+1,s=n+i-r+1;let a=0,l=0,c=0;for(let u=e;u<o;u++)for(let e=n;e<s;e++){const t=this._contiguousSequenceScore(u,e,r);t>0&&t>a&&(a=t,l=u,c=e)}return a>0?[l,c]:null}_contiguousSequenceScore(e,t,n){let i=0;for(let r=0;r<n;r++){if(!this.ElementsAreEqual(e+r,t+r))return 0;i+=this._originalStringElements[e+r].length}return i}_OriginalIsBoundary(e){return e<=0||e>=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){const n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,t,n,i){const r=this._OriginalRegionIsBoundary(e,t)?1:0,o=this._ModifiedRegionIsBoundary(n,i)?1:0;return r+o}ConcatenateChanges(e,t){let n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){const i=new Array(e.length+t.length-1);return l.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],l.Copy(t,1,i,e.length,t.length-1),i}{const n=new Array(e.length+t.length);return l.Copy(e,0,n,0,e.length),l.Copy(t,0,n,e.length,t.length),n}}ChangesOverlap(e,t,n){if(a.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),a.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){const r=e.originalStart;let o=e.originalLength;const s=e.modifiedStart;let a=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(o=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i(r,o,s,a),!0}return n[0]=null,!1}ClipDiagonalBound(e,t,n,i){if(e>=0&&e<i)return e;const r=n,o=i-n-1,s=t%2===0;if(e<0){const e=r%2===0;return s===e?0:1}{const e=o%2===0;return s===e?i-1:i-2}}}},"1b69":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n("0a0f");const r=Object(i["c"])("modelService");function o(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},"1b7d":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("11f7"),r=n("b835"),o=n("5d28"),s=n("a666"),a=n("a60f");class l extends s["a"]{onclick(e,t){this._register(i["i"](e,i["d"].CLICK,e=>t(new o["a"](e))))}onmousedown(e,t){this._register(i["i"](e,i["d"].MOUSE_DOWN,e=>t(new o["a"](e))))}onmouseover(e,t){this._register(i["i"](e,i["d"].MOUSE_OVER,e=>t(new o["a"](e))))}onnonbubblingmouseout(e,t){this._register(i["j"](e,e=>t(new o["a"](e))))}onkeydown(e,t){this._register(i["i"](e,i["d"].KEY_DOWN,e=>t(new r["a"](e))))}onkeyup(e,t){this._register(i["i"](e,i["d"].KEY_UP,e=>t(new r["a"](e))))}oninput(e,t){this._register(i["i"](e,i["d"].INPUT,t))}onblur(e,t){this._register(i["i"](e,i["d"].BLUR,t))}onfocus(e,t){this._register(i["i"](e,i["d"].FOCUS,t))}ignoreGesture(e){a["b"].ignoreTarget(e)}}},"1b8d":function(e,t){function n(e){return e.replace(/\n\r?\s*/g,"")}e.exports=function(e){for(var t="",i=0;i<arguments.length;i++)t+=n(e[i])+(arguments[i+1]||"");return t}},"1bd1":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:function(){return n.e("chunk-2d0c86e3").then(n.bind(null,"559f"))}})},"1be4":function(e,t,n){var i=n("d066");e.exports=i("document","documentElement")},"1be7":function(e,t,n){"use strict";n.d(t,"B",(function(){return Mt})),n.d(t,"d",(function(){return Tt})),n.d(t,"a",(function(){return Yt})),n.d(t,"l",(function(){return Un})),n.d(t,"b",(function(){return qn})),n.d(t,"f",(function(){return $n})),n.d(t,"e",(function(){return Kn})),n.d(t,"g",(function(){return Gn})),n.d(t,"i",(function(){return Yn})),n.d(t,"j",(function(){return Zn})),n.d(t,"w",(function(){return Xn})),n.d(t,"u",(function(){return Qn})),n.d(t,"v",(function(){return Jn})),n.d(t,"s",(function(){return ei})),n.d(t,"t",(function(){return ti})),n.d(t,"y",(function(){return ni})),n.d(t,"m",(function(){return ii})),n.d(t,"n",(function(){return ri})),n.d(t,"h",(function(){return oi})),n.d(t,"q",(function(){return St["e"]})),n.d(t,"o",(function(){return si})),n.d(t,"z",(function(){return ai})),n.d(t,"p",(function(){return ui})),n.d(t,"A",(function(){return hi})),n.d(t,"r",(function(){return di})),n.d(t,"k",(function(){return fi})),n.d(t,"x",(function(){return pi})),n.d(t,"c",(function(){return gi}));var i=n("9ab4"),r=n("697e7"),o=n("6d8b"),s=n("22d1"),a=n("04f6"),l=n("6fd3"),c=n("e0d3"),u=n("4319"),h=n("6cb7"),d="";"undefined"!==typeof navigator&&(d=navigator.platform||"");var f,p,g,m="rgba(0, 0, 0, 0.2)",v={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:m,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:m,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:m,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:m,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:m,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:m,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:d.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},b=n("0f99"),y=n("2f1f"),_=n("4041"),w=n("edae"),C="\0_ec_inner",S=1;var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i["a"])(t,e),t.prototype.init=function(e,t,n,i,r,o){i=i||{},this.option=null,this._theme=new u["a"](i),this._locale=new u["a"](r),this._optionManager=o},t.prototype.setOption=function(e,t,n){var i=D(t);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,t){return this._resetOption(e,D(t))},t.prototype._resetOption=function(e,t){var n=!1,i=this._optionManager;if(!e||"recreate"===e){var r=i.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(r,t)):g(this,r),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,t))}if(!e||"recreate"===e||"media"===e){var a=i.getMediaOption(this);a.length&&Object(o["each"])(a,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,i=this._componentsMap,r=this._componentsCount,s=[],a=Object(o["createHashMap"])(),l=t&&t.replaceMergeMainTypeMap;function u(t){var s=Object(y["a"])(this,t,c["r"](e[t])),a=i.get(t),u=a?l&&l.get(t)?"replaceMerge":"normalMerge":"replaceAll",d=c["q"](a,s,u);c["x"](d,t,h["a"]),n[t]=null,i.set(t,null),r.set(t,0);var p,g=[],m=[],v=0;Object(o["each"])(d,(function(e,n){var i=e.existing,r=e.newOption;if(r){var s="series"===t,a=h["a"].getClass(t,e.keyInfo.subType,!s);if(!a)return;if("tooltip"===t){if(p)return void 0;p=!0}if(i&&i.constructor===a)i.name=e.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var l=Object(o["extend"])({componentIndex:n},e.keyInfo);i=new a(r,this,this,l),Object(o["extend"])(i,l),e.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(g.push(i.option),m.push(i),v++):(g.push(void 0),m.push(void 0))}),this),n[t]=g,i.set(t,m),r.set(t,v),"series"===t&&f(this)}Object(b["g"])(this),Object(o["each"])(e,(function(e,t){null!=e&&(h["a"].hasClass(t)?t&&(s.push(t),a.set(t,!0)):n[t]=null==n[t]?Object(o["clone"])(e):Object(o["merge"])(n[t],e,!0))})),l&&l.each((function(e,t){h["a"].hasClass(t)&&!a.get(t)&&(s.push(t),a.set(t,!0))})),h["a"].topologicalTravel(s,h["a"].getAllClassMainTypes(),u,this),this._seriesIndices||f(this)},t.prototype.getOption=function(){var e=Object(o["clone"])(this.option);return Object(o["each"])(e,(function(t,n){if(h["a"].hasClass(n)){for(var i=c["r"](t),r=i.length,o=!1,s=r-1;s>=0;s--)i[s]&&!c["l"](i[s])?o=!0:(i[s]=null,!o&&r--);i.length=r,e[n]=i}})),delete e[C],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var i=n[t||0];if(i)return i;if(null==t)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,i=e.index,r=e.id,s=e.name,a=this._componentsMap.get(t);return a&&a.length?(null!=i?(n=[],Object(o["each"])(c["r"](i),(function(e){a[e]&&n.push(a[e])}))):n=null!=r?L("id",r,a):null!=s?L("name",s,a):Object(o["filter"])(a,(function(e){return!!e})),E(n,e)):[]},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,i=s(t),r=i?this.queryComponents(i):Object(o["filter"])(this._componentsMap.get(n),(function(e){return!!e}));return a(E(r,e));function s(e){var t=n+"Index",i=n+"Id",r=n+"Name";return!e||null==e[t]&&null==e[i]&&null==e[r]?null:{mainType:n,index:e[t],id:e[i],name:e[r]}}function a(t){return e.filter?Object(o["filter"])(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var i=this._componentsMap;if(Object(o["isFunction"])(e)){var r=t,s=e;i.each((function(e,t){for(var n=0;e&&n<e.length;n++){var i=e[n];i&&s.call(r,t,i,i.componentIndex)}}))}else for(var a=Object(o["isString"])(e)?i.get(e):Object(o["isObject"])(e)?this.findComponents(e):null,l=0;a&&l<a.length;l++){var c=a[l];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=c["e"](e,null);return Object(o["filter"])(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Object(o["filter"])(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return Object(o["filter"])(this._componentsMap.get("series"),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){p(this),Object(o["each"])(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];e.call(t,i,n)}),this)},t.prototype.eachRawSeries=function(e,t){Object(o["each"])(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){p(this),Object(o["each"])(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===e&&t.call(n,r,i)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return Object(o["each"])(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return p(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){p(this);var n=[];Object(o["each"])(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];e.call(t,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(o["createHashMap"])(n)},t.prototype.restoreData=function(e){f(this);var t=this._componentsMap,n=[];t.each((function(e,t){h["a"].hasClass(t)&&n.push(t)})),h["a"].topologicalTravel(n,h["a"].getAllClassMainTypes(),(function(n){Object(o["each"])(t.get(n),(function(t){!t||"series"===n&&O(t,e)||t.restoreData()}))}))},t.internalField=function(){f=function(e){var t=e._seriesIndices=[];Object(o["each"])(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=Object(o["createHashMap"])(t)},p=function(e){0},g=function(e,t){e.option={},e.option[C]=S,e._componentsMap=Object(o["createHashMap"])({series:[]}),e._componentsCount=Object(o["createHashMap"])();var n=t.aria;Object(o["isObject"])(n)&&null==n.enabled&&(n.enabled=!0),k(t,e._theme.option),Object(o["merge"])(t,v,!1),e._mergeOption(t,null)}}(),t}(u["a"]);function O(e,t){if(t){var n=t.seriesIndex,i=t.seriesId,r=t.seriesName;return null!=n&&e.componentIndex!==n||null!=i&&e.id!==i||null!=r&&e.name!==r}}function k(e,t){var n=e.color&&!e.colorLayer;Object(o["each"])(t,(function(t,i){"colorLayer"===i&&n||h["a"].hasClass(i)||("object"===typeof t?e[i]=e[i]?Object(o["merge"])(e[i],t,!1):Object(o["clone"])(t):null==e[i]&&(e[i]=t))}))}function L(e,t,n){if(Object(o["isArray"])(t)){var i=Object(o["createHashMap"])();return Object(o["each"])(t,(function(e){if(null!=e){var t=c["e"](e,null);null!=t&&i.set(e,!0)}})),Object(o["filter"])(n,(function(t){return t&&i.get(t[e])}))}var r=c["e"](t,null);return Object(o["filter"])(n,(function(t){return t&&null!=r&&t[e]===r}))}function E(e,t){return t.hasOwnProperty("subType")?Object(o["filter"])(e,(function(e){return e&&e.subType===t.subType})):e}function D(e){var t=Object(o["createHashMap"])();return e&&Object(o["each"])(c["r"](e.replaceMerge),(function(e){t.set(e,!0)})),{replaceMergeMainTypeMap:t}}Object(o["mixin"])(x,_["a"]);var I=x,M=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],T=function(){function e(e){o["each"](M,(function(t){this[t]=o["bind"](e[t],e)}),this)}return e}(),A=T,N=n("1f39"),P=/^(min|max)?(.+)$/,j=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(Object(o["each"])(Object(c["r"])(e.series),(function(e){e&&e.data&&Object(o["isTypedArray"])(e.data)&&Object(o["setAsPrimitive"])(e.data)})),Object(o["each"])(Object(c["r"])(e.dataset),(function(e){e&&e.source&&Object(o["isTypedArray"])(e.source)&&Object(o["setAsPrimitive"])(e.source)}))),e=Object(o["clone"])(e);var i=this._optionBackup,r=R(e,t,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Object(o["clone"])(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=Object(o["clone"])(n[i.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,s=[],a=[];if(!i.length&&!r)return a;for(var l=0,c=i.length;l<c;l++)F(i[l].query,t,n)&&s.push(l);return!s.length&&r&&(s=[-1]),s.length&&!W(s,this._currentMediaIndices)&&(a=Object(o["map"])(s,(function(e){return Object(o["clone"])(-1===e?r.option:i[e].option)}))),this._currentMediaIndices=s,a},e}();function R(e,t,n){var i,r,s=[],a=e.baseOption,l=e.timeline,c=e.options,u=e.media,h=!!e.media,d=!!(c||l||a&&a.timeline);function f(e){Object(o["each"])(t,(function(t){t(e,n)}))}return a?(r=a,r.timeline||(r.timeline=l)):((d||h)&&(e.options=e.media=null),r=e),h&&Object(o["isArray"])(u)&&Object(o["each"])(u,(function(e){e&&e.option&&(e.query?s.push(e):i||(i=e))})),f(r),Object(o["each"])(c,(function(e){return f(e)})),Object(o["each"])(s,(function(e){return f(e.option)})),{baseOption:r,timelineOptions:c||[],mediaDefault:i,mediaList:s}}function F(e,t,n){var i={width:t,height:n,aspectratio:t/n},r=!0;return Object(o["each"])(e,(function(e,t){var n=t.match(P);if(n&&n[1]&&n[2]){var o=n[1],s=n[2].toLowerCase();B(i[s],e,o)||(r=!1)}})),r}function B(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t}function W(e,t){return e.join(",")===t.join(",")}var V=j,z=o["each"],H=o["isObject"],U=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function q(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=U.length;n<i;n++){var r=U[n],s=t.normal,a=t.emphasis;s&&s[r]&&(e[r]=e[r]||{},e[r].normal?o["merge"](e[r].normal,s[r]):e[r].normal=s[r],s[r]=null),a&&a[r]&&(e[r]=e[r]||{},e[r].emphasis?o["merge"](e[r].emphasis,a[r]):e[r].emphasis=a[r],a[r]=null)}}function $(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,r=e[t].emphasis;i&&(n?(e[t].normal=e[t].emphasis=null,o["defaults"](e[t],i)):e[t]=i),r&&(e.emphasis=e.emphasis||{},e.emphasis[t]=r,r.focus&&(e.emphasis.focus=r.focus),r.blurScope&&(e.emphasis.blurScope=r.blurScope))}}function K(e){$(e,"itemStyle"),$(e,"lineStyle"),$(e,"areaStyle"),$(e,"label"),$(e,"labelLine"),$(e,"upperLabel"),$(e,"edgeLabel")}function G(e,t){var n=H(e)&&e[t],i=H(n)&&n.textStyle;if(i){0;for(var r=0,o=c["c"].length;r<o;r++){var s=c["c"][r];i.hasOwnProperty(s)&&(n[s]=i[s])}}}function Y(e){e&&(K(e),G(e,"label"),e.emphasis&&G(e.emphasis,"label"))}function Z(e){if(H(e)){q(e),K(e),G(e,"label"),G(e,"upperLabel"),G(e,"edgeLabel"),e.emphasis&&(G(e.emphasis,"label"),G(e.emphasis,"upperLabel"),G(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(q(t),Y(t));var n=e.markLine;n&&(q(n),Y(n));var i=e.markArea;i&&Y(i);var r=e.data;if("graph"===e.type){r=r||e.nodes;var s=e.links||e.edges;if(s&&!o["isTypedArray"](s))for(var a=0;a<s.length;a++)Y(s[a]);o["each"](e.categories,(function(e){K(e)}))}if(r&&!o["isTypedArray"](r))for(a=0;a<r.length;a++)Y(r[a]);if(t=e.markPoint,t&&t.data){var l=t.data;for(a=0;a<l.length;a++)Y(l[a])}if(n=e.markLine,n&&n.data){var c=n.data;for(a=0;a<c.length;a++)o["isArray"](c[a])?(Y(c[a][0]),Y(c[a][1])):Y(c[a])}"gauge"===e.type?(G(e,"axisLabel"),G(e,"title"),G(e,"detail")):"treemap"===e.type?($(e.breadcrumb,"itemStyle"),o["each"](e.levels,(function(e){K(e)}))):"tree"===e.type&&K(e.leaves)}}function X(e){return o["isArray"](e)?e:e?[e]:[]}function Q(e){return(o["isArray"](e)?e[0]:e)||{}}function J(e,t){z(X(e.series),(function(e){H(e)&&Z(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),z(n,(function(t){z(X(e[t]),(function(e){e&&(G(e,"axisLabel"),G(e.axisPointer,"label"))}))})),z(X(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;G(t,"axisLabel"),G(t&&t.axisPointer,"label")})),z(X(e.calendar),(function(e){$(e,"itemStyle"),G(e,"dayLabel"),G(e,"monthLabel"),G(e,"yearLabel")})),z(X(e.radar),(function(e){G(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)})),z(X(e.geo),(function(e){H(e)&&(Y(e),z(X(e.regions),(function(e){Y(e)})))})),z(X(e.timeline),(function(e){Y(e),$(e,"label"),$(e,"itemStyle"),$(e,"controlStyle",!0);var t=e.data;o["isArray"](t)&&o["each"](t,(function(e){o["isObject"](e)&&($(e,"label"),$(e,"itemStyle"))}))})),z(X(e.toolbox),(function(e){$(e,"iconStyle"),z(e.feature,(function(e){$(e,"iconStyle")}))})),G(Q(e.axisPointer),"label"),G(Q(e.tooltip).axisPointer,"label")}function ee(e,t){for(var n=t.split(","),i=e,r=0;r<n.length;r++)if(i=i&&i[n[r]],null==i)break;return i}function te(e,t,n,i){for(var r,o=t.split(","),s=e,a=0;a<o.length-1;a++)r=o[a],null==s[r]&&(s[r]={}),s=s[r];(i||null==s[o[a]])&&(s[o[a]]=n)}function ne(e){e&&Object(o["each"])(ie,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var ie=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],re=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],oe=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function se(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<oe.length;n++){var i=oe[n][1],r=oe[n][0];null!=t[i]&&(t[r]=t[i])}}function ae(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function le(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function ce(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}function ue(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&ue(e[n].children,t)}function he(e,t){J(e,t),e.series=Object(c["r"])(e.series),Object(o["each"])(e.series,(function(e){if(Object(o["isObject"])(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){null!=e.clockWise&&(e.clockwise=e.clockWise),ae(e.label);var n=e.data;if(n&&!Object(o["isTypedArray"])(n))for(var i=0;i<n.length;i++)ae(n[i]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var r=ee(e,"pointer.color");null!=r&&te(e,"itemStyle.color",r)}else if("bar"===t){se(e),se(e.backgroundStyle),se(e.emphasis);n=e.data;if(n&&!Object(o["isTypedArray"])(n))for(i=0;i<n.length;i++)"object"===typeof n[i]&&(se(n[i]),se(n[i]&&n[i].emphasis))}else if("sunburst"===t){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),le(e),ue(e.data,le)}else"graph"===t||"sankey"===t?ce(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Object(o["defaults"])(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),ne(e)}})),e.dataRange&&(e.visualMap=e.dataRange),Object(o["each"])(re,(function(t){var n=e[t];n&&(Object(o["isArray"])(n)||(n=[n]),Object(o["each"])(n,(function(e){ne(e)})))}))}var de=n("3842");function fe(e){var t=Object(o["createHashMap"])();e.eachSeries((function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),r=e.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),t.each(pe)}function pe(e){Object(o["each"])(e,(function(t,n){var i=[],r=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],s=t.data,a=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";s.modify(o,(function(o,c,u){var h,d,f=s.get(t.stackedDimension,u);if(isNaN(f))return r;a?d=s.getRawIndex(u):h=s.get(t.stackedByDimension,u);for(var p=NaN,g=n-1;g>=0;g--){var m=e[g];if(a||(d=m.data.rawIndexOf(m.stackedByDimension,h)),d>=0){var v=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&f>=0&&v>0||"samesign"===l&&f<=0&&v<0){f=Object(de["b"])(f,v),p=v;break}}}return i[0]=f,i[1]=p,i}))}))}var ge=n("4f85"),me=n("b12f"),ve=n("e887"),be=n("c7a2"),ye=n("0da8"),_e=n("deca"),we=n("cbe5"),Ce=n("861c"),Se=n("7d6c"),xe=n("88b3"),Oe=n("282b"),ke=n("551f"),Le=n("3901"),Ee=Object(c["o"])(),De={itemStyle:Object(Oe["a"])(ke["a"],!0),lineStyle:Object(Oe["a"])(Le["a"],!0)},Ie={lineStyle:"stroke",itemStyle:"fill"};function Me(e,t){var n=e.visualStyleMapper||De[t];return n||(console.warn("Unknown style type '"+t+"'."),De.itemStyle)}function Te(e,t){var n=e.visualDrawType||Ie[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Ae={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=e.getModel(i),s=Me(e,i),a=s(r),l=r.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var c=Te(e,i),u=a[c],h=Object(o["isFunction"])(u)?u:null,d="auto"===a.fill||"auto"===a.stroke;if(!a[c]||h||d){var f=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[c]||(a[c]=f,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(o["isFunction"])(a.fill)?f:a.fill,a.stroke="auto"===a.stroke||Object(o["isFunction"])(a.stroke)?f:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",c),!t.isSeriesFiltered(e)&&h)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var i=e.getDataParams(n),r=Object(o["extend"])({},a);r[c]=h(i),t.setItemVisual(n,"style",r)}}}},Ne=new u["a"],Pe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=Me(e,i),s=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[i]){Ne.option=n[i];var a=r(Ne),l=e.ensureUniqueItemVisual(t,"style");Object(o["extend"])(l,a),Ne.option.decal&&(e.setItemVisual(t,"decal",Ne.option.decal),Ne.option.decal.dirty=!0),s in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},je={performRawSeries:!0,overallReset:function(e){var t=Object(o["createHashMap"])();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,r=t.get(i);r||(r={},t.set(i,r)),Ee(e).scope=r}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),i={},r=t.getData(),o=Ee(t).scope,s=t.visualStyleAccessPath||"itemStyle",a=Te(t,s);r.each((function(e){var t=r.getRawIndex(e);i[t]=e})),n.each((function(e){var s=i[e],l=r.getItemVisual(s,"colorFromPalette");if(l){var c=r.ensureUniqueItemVisual(s,"style"),u=n.getName(e)||e+"",h=n.count();c[a]=t.getColorFromPalette(u,o,h)}}))}}))}},Re=n("2dc5"),Fe=n("76a5"),Be=n("8d32"),We=Math.PI;function Ve(e,t){t=t||{},o["defaults"](t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Re["a"],i=new be["a"]({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var r,s=new Fe["a"]({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new be["a"]({style:{fill:"none"},textContent:s,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&(r=new Be["a"]({shape:{startAngle:-We/2,endAngle:-We/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*We/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*We/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=s.getBoundingRect().width,o=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*o-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:o),c=e.getHeight()/2;t.showSpinner&&r.setShape({cx:l,cy:c}),a.setShape({x:l-o,y:c-o,width:2*o,height:2*o}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var ze=n("9fbc"),He=n("8918"),Ue=function(){function e(e,t,n,i){this._stageTaskMap=Object(o["createHashMap"])(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,r=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=r?n.step:null,s=i&&i.modDataCount,a=null!=s?Math.ceil(s/o):null;return{step:o,modBy:a,modDataCount:s}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData(),r=i.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,s=e.get("large")&&r>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:a,large:s}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Object(o["createHashMap"])();e.eachSeries((function(e){var i=e.getProgressive(),r=e.uid;n.set(r,{id:r,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Object(o["each"])(this._allHandlers,(function(i){var r=e.get(i.uid)||e.set(i.uid,{}),s="";Object(o["assert"])(!(i.reset&&i.overallReset),s),i.reset&&this._createSeriesStageTask(i,r,t,n),i.overallReset&&this._createOverallStageTask(i,r,t,n)}),this)},e.prototype.prepareView=function(e,t,n,i){var r=e.renderTask,o=r.context;o.model=t,o.ecModel=n,o.api=i,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,i){i=i||{};var r=!1,s=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}Object(o["each"])(e,(function(e,o){if(!i.visualType||i.visualType===e.visualType){var l=s._stageTaskMap.get(e.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var h,d=u.agentStubMap;d.each((function(e){a(i,e)&&(e.dirty(),h=!0)})),h&&u.dirty(),s.updatePayload(u,n);var f=s.getPerformArgs(u,i.block);d.each((function(e){e.perform(f)})),u.perform(f)&&(r=!0)}else c&&c.each((function(o,l){a(i,o)&&o.dirty();var c=s.getPerformArgs(o,i.block);c.skip=!e.performRawSeries&&t.isSeriesFiltered(o.context.model),s.updatePayload(o,n),o.perform(c)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,i){var r=this,s=t.seriesTaskMap,a=t.seriesTaskMap=Object(o["createHashMap"])(),l=e.seriesType,c=e.getTargetSeries;function u(t){var o=t.uid,l=a.set(o,s&&s.get(o)||Object(ze["a"])({plan:Ye,reset:Ze,count:Je}));l.context={model:t,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):l?n.eachRawSeriesByType(l,u):c&&c(n,i).each(u)},e.prototype._createOverallStageTask=function(e,t,n,i){var r=this,s=t.overallTask=t.overallTask||Object(ze["a"])({reset:qe});s.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:r};var a=s.agentStubMap,l=s.agentStubMap=Object(o["createHashMap"])(),c=e.seriesType,u=e.getTargetSeries,h=!0,d=!1,f="";function p(e){var t=e.uid,n=l.set(t,a&&a.get(t)||(d=!0,Object(ze["a"])({reset:$e,onDirty:Ge})));n.context={model:e,overallProgress:h},n.agent=s,n.__block=h,r._pipe(e,n)}Object(o["assert"])(!e.createOnAllSeries,f),c?n.eachRawSeriesByType(c,p):u?u(n,i).each(p):(h=!1,Object(o["each"])(n.getSeries(),p)),d&&s.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},e.wrapStageHandler=function(e,t){return Object(o["isFunction"])(e)&&(e={overallReset:e,seriesType:et(e)}),e.uid=Object(He["c"])("stageHandler"),t&&(e.visualType=t),e},e}();function qe(e){e.overallReset(e.ecModel,e.api,e.payload)}function $e(e){return e.overallProgress&&Ke}function Ke(){this.agent.dirty(),this.getDownstream().dirty()}function Ge(){this.agent&&this.agent.dirty()}function Ye(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Ze(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Object(c["r"])(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Object(o["map"])(t,(function(e,t){return Qe(t)})):Xe}var Xe=Qe(0);function Qe(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var o=t.start;o<t.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(t,i)}}function Je(e){return e.data.count()}function et(e){tt=null;try{e(nt,it)}catch(t){}return tt}var tt,nt={},it={};function rt(e,t){for(var n in t.prototype)e[n]=o["noop"]}rt(nt,I),rt(it,A),nt.eachSeriesByType=nt.eachRawSeriesByType=function(e){tt=e},nt.eachComponent=function(e){"series"===e.mainType&&e.subType&&(tt=e.subType)};var ot=Ue,st=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],at={color:st,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],st]},lt="#B9B8CE",ct="#100C2A",ut=function(){return{axisLine:{lineStyle:{color:lt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},ht=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],dt={darkMode:!0,color:ht,backgroundColor:ct,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:lt}},textStyle:{color:lt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:lt}},dataZoom:{borderColor:"#71708A",textStyle:{color:lt},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:lt}},timeline:{lineStyle:{color:lt},label:{color:lt},controlStyle:{color:lt,borderColor:lt}},calendar:{itemStyle:{color:ct},dayLabel:{color:lt},monthLabel:{color:lt},yearLabel:{color:lt}},timeAxis:ut(),logAxis:ut(),valueAxis:ut(),categoryAxis:ut(),line:{symbol:"circle"},graph:{color:ht},gauge:{title:{color:lt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:lt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};dt.categoryAxis.splitLine.show=!1;var ft=dt,pt=n("625e"),gt=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},i={};if(o["isString"](e)){var r=Object(pt["f"])(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var s=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};o["each"](e,(function(e,r){for(var o=!1,l=0;l<s.length;l++){var c=s[l],u=r.lastIndexOf(c);if(u>0&&u===r.length-c.length){var h=r.slice(0,u);"data"!==h&&(t.mainType=h,t[c.toLowerCase()]=e,o=!0)}}a.hasOwnProperty(r)&&(n[r]=e,o=!0),o||(i[r]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var a=t.cptQuery,l=t.dataQuery;return c(a,o,"mainType")&&c(a,o,"subType")&&c(a,o,"index","componentIndex")&&c(a,o,"name")&&c(a,o,"id")&&c(l,r,"name")&&c(l,r,"dataIndex")&&c(l,r,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,i,r));function c(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),mt=["symbol","symbolSize","symbolRotate","symbolOffset"],vt=mt.concat(["symbolKeepAspect"]),bt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var i={},r={},s=!1,a=0;a<mt.length;a++){var l=mt[a],c=e.get(l);Object(o["isFunction"])(c)?(s=!0,r[l]=c):i[l]=c}if(i.symbol=i.symbol||e.defaultSymbol,n.setVisual(Object(o["extend"])({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),!t.isSeriesFiltered(e)){var u=Object(o["keys"])(r);return{dataEach:s?h:null}}}function h(t,n){for(var i=e.getRawValue(n),o=e.getDataParams(n),s=0;s<u.length;s++){var a=u[s];t.setItemVisual(n,a,r[a](i,o))}}}},yt={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e)){var n=e.getData();return{dataEach:n.hasItemOption?i:null}}function i(e,t){for(var n=e.getItemModel(t),i=0;i<vt.length;i++){var r=vt[i],o=n.getShallow(r,!0);null!=o&&e.setItemVisual(t,r,o)}}}},_t=n("0924"),wt=n("f3bb"),Ct=n("04f7"),St=n("ef59"),xt=n("fadd"),Ot=n("b3c1");function kt(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(e){var n=i.getItemVisual(e,"decal");if(n){var r=i.ensureUniqueItemVisual(e,"style");r.decal=Object(Ot["a"])(n,t)}}));var r=i.getVisual("decal");if(r){var o=i.getVisual("style");o.decal=Object(Ot["a"])(r,t)}}}))}var Lt=new l["a"],Et=Lt,Dt=n("726e"),It=n("58c9"),Mt="5.5.1",Tt={zrender:"5.6.0"},At=1,Nt=800,Pt=900,jt=1e3,Rt=2e3,Ft=5e3,Bt=1e3,Wt=1100,Vt=2e3,zt=3e3,Ht=4e3,Ut=4500,qt=4600,$t=5e3,Kt=6e3,Gt=7e3,Yt={PROCESSOR:{FILTER:jt,SERIES_FILTER:Nt,STATISTIC:Ft},VISUAL:{LAYOUT:Bt,PROGRESSIVE_LAYOUT:Wt,GLOBAL:Vt,CHART:zt,POST_CHART_LAYOUT:qt,COMPONENT:Ht,BRUSH:$t,CHART_ITEM:Ut,ARIA:Kt,DECAL:Gt}},Zt="__flagInMainProcess",Xt="__pendingUpdate",Qt="__needsUpdateStatus",Jt=/^[a-zA-Z0-9_]+$/,en="__connectUpdateStatus",tn=0,nn=1,rn=2;function on(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return an(this,e,t);Mn(this.id)}}function sn(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return an(this,e,t)}}function an(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),l["a"].prototype[t].apply(e,n)}var ln,cn,un,hn,dn,fn,pn,gn,mn,vn,bn,yn,_n,wn,Cn,Sn,xn,On,kn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i["a"])(t,e),t}(l["a"]),Ln=kn.prototype;Ln.on=sn("on"),Ln.off=sn("off");var En=function(e){function t(t,n,i){var s=e.call(this,new gt)||this;s._chartsViews=[],s._chartsMap={},s._componentsViews=[],s._componentsMap={},s._pendingActions=[],i=i||{},Object(o["isString"])(n)&&(n=Rn[n]),s._dom=t;var l="canvas",c="auto",u=!1;i.ssr&&r["registerSSRDataGetter"]((function(e){var t=Object(Ce["a"])(e),n=t.dataIndex;if(null!=n){var i=Object(o["createHashMap"])();return i.set("series_index",t.seriesIndex),i.set("data_index",n),t.ssrType&&i.set("ssr_type",t.ssrType),i}}));var h=s._zr=r["init"](t,{renderer:i.renderer||l,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Object(o["retrieve2"])(i.useDirtyRect,u),useCoarsePointer:Object(o["retrieve2"])(i.useCoarsePointer,c),pointerSize:i.pointerSize});s._ssr=i.ssr,s._throttledZrFlush=Object(xe["c"])(Object(o["bind"])(h.flush,h),17),n=Object(o["clone"])(n),n&&he(n,!0),s._theme=n,s._locale=Object(St["b"])(i.locale||St["a"]),s._coordSysMgr=new N["a"];var d=s._api=Cn(s);function f(e,t){return e.__prio-t.__prio}return Object(a["a"])(jn,f),Object(a["a"])(Nn,f),s._scheduler=new ot(s,d,Nn,jn),s._messageCenter=new kn,s._initEvents(),s.resize=Object(o["bind"])(s.resize,s),h.animation.on("frame",s._onframe,s),vn(h,s),bn(h,s),Object(o["setAsPrimitive"])(s),s}return Object(i["a"])(t,e),t.prototype._onframe=function(){if(!this._disposed){On(this);var e=this._scheduler;if(this[Xt]){var t=this[Xt].silent;this[Zt]=!0;try{ln(this),hn.update.call(this,null,this[Xt].updateParams)}catch(s){throw this[Zt]=!1,this[Xt]=null,s}this._zr.flush(),this[Zt]=!1,this[Xt]=null,gn.call(this,t),mn.call(this,t)}else if(e.unfinished){var n=At,i=this._model,r=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),fn(this,i),e.performVisualTasks(i),wn(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[Zt])if(this._disposed)Mn(this.id);else{var i,r,s;if(Object(o["isObject"])(t)&&(n=t.lazyUpdate,i=t.silent,r=t.replaceMerge,s=t.transition,t=t.notMerge),this[Zt]=!0,!this._model||t){var a=new V(this._api),l=this._theme,c=this._model=new I;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,l,this._locale,a)}this._model.setOption(e,{replaceMerge:r},Pn);var u={seriesTransition:s,optionChanged:!0};if(n)this[Xt]={silent:i,updateParams:u},this[Zt]=!1,this.getZr().wakeUp();else{try{ln(this),hn.update.call(this,null,u)}catch(h){throw this[Xt]=null,this[Zt]=!1,h}this._ssr||this._zr.flush(),this[Xt]=null,this[Zt]=!1,gn.call(this,i),mn.call(this,i)}}},t.prototype.setTheme=function(){Object(w["a"])("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||s["a"].hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(s["a"].svgSupported){var e=this._zr,t=e.storage.getDisplayList();return Object(o["each"])(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,i=[],r=this;Object(o["each"])(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var s="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Object(o["each"])(i,(function(e){e.group.ignore=!1})),s}Mn(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,i=Math.min,s=Math.max,a=1/0;if(Wn[n]){var l=a,c=a,u=-a,h=-a,d=[],f=e&&e.pixelRatio||this.getDevicePixelRatio();Object(o["each"])(Bn,(function(r,a){if(r.group===n){var f=t?r.getZr().painter.getSvgDom().innerHTML:r.renderToCanvas(Object(o["clone"])(e)),p=r.getDom().getBoundingClientRect();l=i(p.left,l),c=i(p.top,c),u=s(p.right,u),h=s(p.bottom,h),d.push({dom:f,left:p.left,top:p.top})}})),l*=f,c*=f,u*=f,h*=f;var p=u-l,g=h-c,m=Dt["d"].createCanvas(),v=r["init"](m,{renderer:t?"svg":"canvas"});if(v.resize({width:p,height:g}),t){var b="";return Object(o["each"])(d,(function(e){var t=e.left-l,n=e.top-c;b+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),v.painter.getSvgRoot().innerHTML=b,e.connectedBackgroundColor&&v.painter.setBackgroundColor(e.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return e.connectedBackgroundColor&&v.add(new be["a"]({shape:{x:0,y:0,width:p,height:g},style:{fill:e.connectedBackgroundColor}})),Object(o["each"])(d,(function(e){var t=new ye["a"]({style:{x:e.left*f-l,y:e.top*f-c,image:e.dom}});v.add(t)})),v.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}Mn(this.id)},t.prototype.convertToPixel=function(e,t){return dn(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return dn(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,i=this._model,r=c["s"](i,e);return Object(o["each"])(r,(function(e,i){i.indexOf("Models")>=0&&Object(o["each"])(e,(function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(t);else if("seriesModels"===i){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}else 0}),this)}),this),!!n}Mn(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,i=c["s"](n,e,{defaultMainType:"series"}),r=i.seriesModel;var o=r.getData(),s=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=s?Object(_t["a"])(o,s,t):Object(_t["b"])(o,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;Object(o["each"])(In,(function(t){var n=function(n){var i,r=e.getModel(),s=n.target,a="globalout"===t;if(a?i={}:s&&Object(xt["a"])(s,(function(e){var t=Object(Ce["a"])(e);if(t&&null!=t.dataIndex){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return i=n&&n.getDataParams(t.dataIndex,t.dataType,s)||{},!0}if(t.eventData)return i=Object(o["extend"])({},t.eventData),!0}),!0),i){var l=i.componentType,c=i.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",c=i.seriesIndex);var u=l&&null!=c&&r.getComponent(l,c),h=u&&e["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,i.event=n,i.type=t,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:i,model:u,view:h},e.trigger(t,i)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),Object(o["each"])(An,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),Object(o["each"])(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),Object(wt["b"])(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?Mn(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)Mn(this.id);else{this._disposed=!0;var e=this.getDom();e&&c["w"](this.getDom(),Hn,"");var t=this,n=t._api,i=t._model;Object(o["each"])(t._componentsViews,(function(e){e.dispose(i,n)})),Object(o["each"])(t._chartsViews,(function(e){e.dispose(i,n)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Bn[t.id]}},t.prototype.resize=function(e){if(!this[Zt])if(this._disposed)Mn(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[Xt]&&(null==i&&(i=this[Xt].silent),n=!0,this[Xt]=null),this[Zt]=!0;try{n&&ln(this),hn.update.call(this,{type:"resize",animation:Object(o["extend"])({duration:0},e&&e.animation)})}catch(r){throw this[Zt]=!1,r}this[Zt]=!1,gn.call(this,i),mn.call(this,i)}}},t.prototype.showLoading=function(e,t){if(this._disposed)Mn(this.id);else if(Object(o["isObject"])(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Fn[e]){var n=Fn[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){this._disposed?Mn(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Object(o["extend"])({},e);return t.type=An[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)Mn(this.id);else if(Object(o["isObject"])(t)||(t={silent:!!t}),Tn[e.type]&&this._model)if(this[Zt])this._pendingActions.push(e);else{var n=t.silent;pn.call(this,e,n);var i=t.flush;i?this._zr.flush():!1!==i&&s["a"].browser.weChat&&this._throttledZrFlush(),gn.call(this,n),mn.call(this,n)}},t.prototype.updateLabelLayout=function(){Et.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)Mn(this.id);else{var t=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(t);0,i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){var t=[],n=[],i=!1;if(e.eachComponent((function(e,r){var o=r.get("zlevel")||0,s=r.get("z")||0,a=r.getZLevelKey();i=i||!!a,("series"===e?n:t).push({zlevel:o,z:s,idx:r.componentIndex,type:e,key:a})})),i){var r,s,l=t.concat(n);Object(a["a"])(l,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),Object(o["each"])(l,(function(t){var n=e.getComponent(t.type,t.idx),i=t.zlevel,o=t.key;null!=r&&(i=Math.max(r,i)),o?(i===r&&o!==s&&i++,s=o):s&&(i===r&&i++,s=""),r=i,n.setZLevel(i)}))}}function n(e){for(var t=[],n=e.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&t.push(r)}e.selected&&e.states.select&&t.push("select"),e.hoverState===Se["e"]&&e.states.emphasis?t.push("emphasis"):e.hoverState===Se["d"]&&e.states.blur&&t.push("blur"),e.useStates(t)}function r(e,t){var n=e._zr,i=n.storage,r=0;i.traverse((function(e){e.isGroup||r++})),r>t.get("hoverLayerThreshold")&&!s["a"].node&&!s["a"].worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}function l(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}function u(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered((function(e){return h(e,n,i,-1/0),!0}))}}function h(e,t,n,i){var r=e.getTextContent(),o=e.getTextGuideLine(),s=e.isGroup;if(s)for(var a=e.childrenRef(),l=0;l<a.length;l++)i=Math.max(h(a[l],t,n,i),i);else e.z=t,e.zlevel=n,i=Math.max(e.z2,i);if(r&&(r.z=t,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),o){var c=e.textGuideLineConfig;o.z=t,o.zlevel=n,isFinite(i)&&(o.z2=i+(c&&c.showAbove?1:-1))}return i}function d(e,t){t.eachRendered((function(e){if(!_e["d"](e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function f(e,t){var i=e.getModel("stateAnimation"),r=e.isAnimationEnabled(),o=i.get("duration"),s=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if(_e["d"](e))return;if(e instanceof we["b"]&&Object(Se["E"])(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(r){e.stateTransition=s;var i=e.getTextContent(),o=e.getTextGuideLine();i&&(i.stateTransition=s),o&&(o.stateTransition=s)}e.__dirty&&n(e)}}))}ln=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),cn(e,!0),cn(e,!1),t.plan()},cn=function(e,t){for(var n=e._model,i=e._scheduler,r=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,s=e._zr,a=e._api,l=0;l<r.length;l++)r[l].__alive=!1;function c(e){var l=e.__requireNewView;e.__requireNewView=!1;var c="_ec_"+e.id+"_"+e.type,u=!l&&o[c];if(!u){var h=Object(pt["f"])(e.type),d=t?me["a"].getClass(h.main,h.sub):ve["a"].getClass(h.sub);0,u=new d,u.init(n,a),o[c]=u,r.push(u),s.add(u.group)}e.__viewId=u.__id=c,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&i.prepareView(u,e,n,a)}t?n.eachComponent((function(e,t){"series"!==e&&c(t)})):n.eachSeries(c);for(l=0;l<r.length;){var u=r[l];u.__alive?l++:(!t&&u.renderTask.dispose(),s.remove(u.group),u.dispose(n,a),r.splice(l,1),o[u.__id]===u&&delete o[u.__id],u.__id=u.group.__ecComponentInfo=null)}},un=function(e,t,n,i,r){var s=e._model;if(s.setUpdatePayload(n),i){var a={};a[i+"Id"]=n[i+"Id"],a[i+"Index"]=n[i+"Index"],a[i+"Name"]=n[i+"Name"];var l={mainType:i,query:a};r&&(l.subType=r);var u,h=n.excludeSeriesId;null!=h&&(u=Object(o["createHashMap"])(),Object(o["each"])(c["r"](h),(function(e){var t=c["e"](e,null);null!=t&&u.set(t,!0)}))),s&&s.eachComponent(l,(function(t){var i=u&&null!=u.get(t.id);if(!i)if(Object(Se["z"])(n))if(t instanceof ge["b"])n.type!==Se["c"]||n.notBlur||t.get(["emphasis","disabled"])||Object(Se["m"])(t,n,e._api);else{var r=Object(Se["t"])(t.mainType,t.componentIndex,n.name,e._api),s=r.focusSelf,a=r.dispatchers;n.type===Se["c"]&&s&&!n.notBlur&&Object(Se["l"])(t.mainType,t.componentIndex,e._api),a&&Object(o["each"])(a,(function(e){n.type===Se["c"]?Object(Se["r"])(e):Object(Se["C"])(e)}))}else Object(Se["A"])(n)&&t instanceof ge["b"]&&(Object(Se["K"])(t,n,e._api),Object(Se["L"])(t),xn(e))}),e),s&&s.eachComponent(l,(function(t){var n=u&&null!=u.get(t.id);n||d(e["series"===i?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else Object(o["each"])([].concat(e._componentsViews).concat(e._chartsViews),d);function d(i){i&&i.__alive&&i[t]&&i[t](i.__model,s,e._api,n)}},hn={prepareAndUpdate:function(e){ln(this),hn.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var i=this._model,r=this._api,o=this._zr,s=this._coordSysMgr,a=this._scheduler;if(i){i.setUpdatePayload(t),a.restoreData(i,t),a.performSeriesTasks(i),s.create(i,r),a.performDataProcessorTasks(i,t),fn(this,i),s.update(i,r),e(i),a.performVisualTasks(i,t),yn(this,i,r,t,n);var l=i.get("backgroundColor")||"transparent",c=i.get("darkMode");o.setBackgroundColor(l),null!=c&&"auto"!==c&&o.setDarkMode(c),Et.trigger("afterupdate",i,r)}},updateTransform:function(t){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(t);var s=[];i.eachComponent((function(e,o){if("series"!==e){var a=n.getViewOfComponentModel(o);if(a&&a.__alive)if(a.updateTransform){var l=a.updateTransform(o,i,r,t);l&&l.update&&s.push(a)}else s.push(a)}}));var a=Object(o["createHashMap"])();i.eachSeries((function(e){var o=n._chartsMap[e.__viewId];if(o.updateTransform){var s=o.updateTransform(e,i,r,t);s&&s.update&&a.set(e.uid,1)}else a.set(e.uid,1)})),e(i),this._scheduler.performVisualTasks(i,t,{setDirty:!0,dirtyMap:a}),wn(this,i,r,t,{},a),Et.trigger("afterupdate",i,r)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),ve["a"].markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),yn(this,n,this._api,t,{}),Et.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,i=this._model;i&&(i.setUpdatePayload(t),i.eachSeries((function(e){e.getData().clearAllVisual()})),ve["a"].markUpdateMethod(t,"updateVisual"),e(i),this._scheduler.performVisualTasks(i,t,{visualType:"visual",setDirty:!0}),i.eachComponent((function(e,r){if("series"!==e){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,t)}})),i.eachSeries((function(e){var r=n._chartsMap[e.__viewId];r.updateVisual(e,i,n._api,t)})),Et.trigger("afterupdate",i,this._api))},updateLayout:function(e){hn.update.call(this,e)}},dn=function(e,t,n,i){if(e._disposed)Mn(e.id);else{for(var r,o=e._model,s=e._coordSysMgr.getCoordinateSystems(),a=c["s"](o,n),l=0;l<s.length;l++){var u=s[l];if(u[t]&&null!=(r=u[t](o,a,i)))return r}0}},fn=function(e,t){var n=e._chartsMap,i=e._scheduler;t.eachSeries((function(e){i.updateStreamModes(e,n[e.__viewId])}))},pn=function(e,t){var n=this,i=this.getModel(),r=e.type,s=e.escapeConnect,a=Tn[r],l=a.actionInfo,u=(l.update||"update").split(":"),h=u.pop(),d=null!=u[0]&&Object(pt["f"])(u[0]);this[Zt]=!0;var f=[e],p=!1;e.batch&&(p=!0,f=Object(o["map"])(e.batch,(function(t){return t=Object(o["defaults"])(Object(o["extend"])({},t),e),t.batch=null,t})));var g,m=[],v=Object(Se["A"])(e),b=Object(Se["z"])(e);if(b&&Object(Se["k"])(this._api),Object(o["each"])(f,(function(t){if(g=a.action(t,n._model,n._api),g=g||Object(o["extend"])({},t),g.type=l.event||g.type,m.push(g),b){var i=c["t"](e),r=i.queryOptionMap,s=i.mainTypeSpecified,u=s?r.keys()[0]:"series";un(n,h,t,u),xn(n)}else v?(un(n,h,t,"series"),xn(n)):d&&un(n,h,t,d.main,d.sub)})),"none"!==h&&!b&&!v&&!d)try{this[Xt]?(ln(this),hn.update.call(this,e),this[Xt]=null):hn[h].call(this,e)}catch(w){throw this[Zt]=!1,w}if(g=p?{type:l.event||r,escapeConnect:s,batch:m}:m[0],this[Zt]=!1,!t){var y=this._messageCenter;if(y.trigger(g.type,g),v){var _={type:"selectchanged",escapeConnect:s,selected:Object(Se["u"])(i),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};y.trigger(_.type,_)}}},gn=function(e){var t=this._pendingActions;while(t.length){var n=t.shift();pn.call(this,n,e)}},mn=function(e){!e&&this.trigger("updated")},vn=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t[Xt]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},bn=function(e,t){e.on("mouseover",(function(e){var n=e.target,i=Object(xt["a"])(n,Se["y"]);i&&(Object(Se["x"])(i,e,t._api),xn(t))})).on("mouseout",(function(e){var n=e.target,i=Object(xt["a"])(n,Se["y"]);i&&(Object(Se["w"])(i,e,t._api),xn(t))})).on("click",(function(e){var n=e.target,i=Object(xt["a"])(n,(function(e){return null!=Object(Ce["a"])(e).dataIndex}),!0);if(i){var r=i.selected?"unselect":"select",o=Object(Ce["a"])(i);t._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},yn=function(e,n,i,r,s){t(n),_n(e,n,i,r,s),Object(o["each"])(e._chartsViews,(function(e){e.__alive=!1})),wn(e,n,i,r,s),Object(o["each"])(e._chartsViews,(function(e){e.__alive||e.remove(n,i)}))},_n=function(e,t,n,i,r,s){Object(o["each"])(s||e._componentsViews,(function(e){var r=e.__model;d(r,e),e.render(r,t,n,i),u(r,e),f(r,e)}))},wn=function(e,t,n,i,s,a){var c=e._scheduler;s=Object(o["extend"])(s||{},{updatedSeries:t.getSeries()}),Et.trigger("series:beforeupdate",t,n,s);var h=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var r=n.renderTask;c.updatePayload(r,i),d(t,n),a&&a.get(t.uid)&&r.dirty(),r.perform(c.getPerformArgs(r))&&(h=!0),n.group.silent=!!t.get("silent"),l(t,n),Object(Se["L"])(t)})),c.unfinished=h||c.unfinished,Et.trigger("series:layoutlabels",t,n,s),Et.trigger("series:transition",t,n,s),t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];u(t,n),f(t,n)})),r(e,t),Et.trigger("series:afterupdate",t,n,s)},xn=function(e){e[Qt]=!0,e.getZr().wakeUp()},On=function(e){e[Qt]&&(e.getZr().storage.traverse((function(e){_e["d"](e)||n(e)})),e[Qt]=!1)},Cn=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){while(t){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Object(Se["r"])(t,n),xn(e)},n.prototype.leaveEmphasis=function(t,n){Object(Se["C"])(t,n),xn(e)},n.prototype.enterBlur=function(t){Object(Se["q"])(t),xn(e)},n.prototype.leaveBlur=function(t){Object(Se["B"])(t),xn(e)},n.prototype.enterSelect=function(t){Object(Se["s"])(t),xn(e)},n.prototype.leaveSelect=function(t){Object(Se["D"])(t),xn(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(A))(e)},Sn=function(e){function t(e,t){for(var n=0;n<e.length;n++){var i=e[n];i[en]=t}}Object(o["each"])(An,(function(n,i){e._messageCenter.on(i,(function(n){if(Wn[e.group]&&e[en]!==tn){if(n&&n.escapeConnect)return;var i=e.makeActionFromEvent(n),r=[];Object(o["each"])(Bn,(function(t){t!==e&&t.group===e.group&&r.push(t)})),t(r,tn),Object(o["each"])(r,(function(e){e[en]!==nn&&e.dispatchAction(i)})),t(r,rn)}}))}))}}(),t}(l["a"]),Dn=En.prototype;Dn.on=on("on"),Dn.off=on("off"),Dn.one=function(e,t,n){var i=this;function r(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];t&&t.apply&&t.apply(this,n),i.off(e,r)}Object(w["a"])("ECharts#one is deprecated."),this.on.call(this,e,r,n)};var In=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Mn(e){0}var Tn={},An={},Nn=[],Pn=[],jn=[],Rn={},Fn={},Bn={},Wn={},Vn=+new Date-0,zn=+new Date-0,Hn="_echarts_instance_";function Un(e,t,n){var i=!(n&&n.ssr);if(i){0;var r=Yn(e);if(r)return r;0}var o=new En(e,t,n);return o.id="ec_"+Vn++,Bn[o.id]=o,i&&c["w"](e,Hn,o.id),Sn(o),Et.trigger("afterinit",o),o}function qn(e){if(Object(o["isArray"])(e)){var t=e;e=null,Object(o["each"])(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+zn++,Object(o["each"])(t,(function(t){t.group=e}))}return Wn[e]=!0,e}function $n(e){Wn[e]=!1}var Kn=$n;function Gn(e){Object(o["isString"])(e)?e=Bn[e]:e instanceof En||(e=Yn(e)),e instanceof En&&!e.isDisposed()&&e.dispose()}function Yn(e){return Bn[c["g"](e,Hn)]}function Zn(e){return Bn[e]}function Xn(e,t){Rn[e]=t}function Qn(e){Object(o["indexOf"])(Pn,e)<0&&Pn.push(e)}function Jn(e,t){ci(Nn,e,t,Rt)}function ei(e){ni("afterinit",e)}function ti(e){ni("afterupdate",e)}function ni(e,t){Et.on(e,t)}function ii(e,t,n){Object(o["isFunction"])(t)&&(n=t,t="");var i=Object(o["isObject"])(e)?e.type:[e,e={event:t}][0];e.event=(e.event||i).toLowerCase(),t=e.event,An[t]||(Object(o["assert"])(Jt.test(i)&&Jt.test(t)),Tn[i]||(Tn[i]={action:n,actionInfo:e}),An[t]=i)}function ri(e,t){N["a"].register(e,t)}function oi(e){var t=N["a"].get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function si(e,t){ci(jn,e,t,Bt,"layout")}function ai(e,t){ci(jn,e,t,zt,"visual")}var li=[];function ci(e,t,n,i,r){if((Object(o["isFunction"])(t)||Object(o["isObject"])(t))&&(n=t,t=i),!(Object(o["indexOf"])(li,n)>=0)){li.push(n);var s=ot.wrapStageHandler(n,r);s.__prio=t,s.__raw=n,e.push(s)}}function ui(e,t){Fn[e]=t}function hi(e){Object(Dt["e"])({createCanvas:e})}function di(e,t,n){var i=Object(It["a"])("registerMap");i&&i(e,t,n)}function fi(e){var t=Object(It["a"])("getMap");return t&&t(e)}var pi=Ct["b"];ai(Vt,Ae),ai(Ut,Pe),ai(Ut,je),ai(Vt,bt),ai(Ut,yt),ai(Gt,kt),Qn(he),Jn(Pt,fe),ui("default",Ve),ii({type:Se["c"],event:Se["c"],update:Se["c"]},o["noop"]),ii({type:Se["b"],event:Se["b"],update:Se["b"]},o["noop"]),ii({type:Se["f"],event:Se["f"],update:Se["f"]},o["noop"]),ii({type:Se["i"],event:Se["i"],update:Se["i"]},o["noop"]),ii({type:Se["h"],event:Se["h"],update:Se["h"]},o["noop"]),Xn("light",at),Xn("dark",ft);var gi={}},"1beb":function(e,t,n){"use strict";(function(t,i){function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){q(t,e)}}var o;e.exports=E,E.WritableState=L;var s={deprecate:n("b7d1")},a=n("946b"),l=n("1c35").Buffer,c=("undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function u(e){return l.from(e)}function h(e){return l.isBuffer(e)||e instanceof c}var d,f=n("015d"),p=n("75d2"),g=p.getHighWaterMark,m=n("e142").codes,v=m.ERR_INVALID_ARG_TYPE,b=m.ERR_METHOD_NOT_IMPLEMENTED,y=m.ERR_MULTIPLE_CALLBACK,_=m.ERR_STREAM_CANNOT_PIPE,w=m.ERR_STREAM_DESTROYED,C=m.ERR_STREAM_NULL_VALUES,S=m.ERR_STREAM_WRITE_AFTER_END,x=m.ERR_UNKNOWN_ENCODING,O=f.errorOrDestroy;function k(){}function L(e,t,i){o=o||n("030c"),e=e||{},"boolean"!==typeof i&&(i=t instanceof o),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=g(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){j(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function E(e){o=o||n("030c");var t=this instanceof o;if(!t&&!d.call(E,this))return new E(e);this._writableState=new L(e,this,t),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),a.call(this)}function D(e,t){var n=new S;O(e,n),i.nextTick(t,n)}function I(e,t,n,r){var o;return null===n?o=new C:"string"===typeof n||t.objectMode||(o=new v("chunk",["string","Buffer"],n)),!o||(O(e,o),i.nextTick(r,o),!1)}function M(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=l.from(t,n)),t}function T(e,t,n,i,r,o){if(!n){var s=M(t,i,r);i!==s&&(n=!0,r="buffer",i=s)}var a=t.objectMode?1:i.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:r,isBuf:n,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,a,i,r,o);return l}function A(e,t,n,i,r,o,s){t.writelen=i,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new w("write")):n?e._writev(r,t.onwrite):e._write(r,o,t.onwrite),t.sync=!1}function N(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(H,e,t),e._writableState.errorEmitted=!0,O(e,r)):(o(r),e._writableState.errorEmitted=!0,O(e,r),H(e,t))}function P(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function j(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if("function"!==typeof o)throw new y;if(P(n),t)N(e,n,r,t,o);else{var s=W(n)||e.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||B(e,n),r?i.nextTick(R,e,n,s,o):R(e,n,s,o)}}function R(e,t,n,i){n||F(e,t),t.pendingcb--,i(),H(e,t)}function F(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function B(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,o=new Array(i),s=t.corkedRequestsFree;s.entry=n;var a=0,l=!0;while(n)o[a]=n,n.isBuf||(l=!1),n=n.next,a+=1;o.allBuffers=l,A(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{while(n){var c=n.chunk,u=n.encoding,h=n.callback,d=t.objectMode?1:c.length;if(A(e,t,!1,d,c,u,h),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function W(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function V(e,t){e._final((function(n){t.pendingcb--,n&&O(e,n),t.prefinished=!0,e.emit("prefinish"),H(e,t)}))}function z(e,t){t.prefinished||t.finalCalled||("function"!==typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(V,e,t)))}function H(e,t){var n=W(t);if(n&&(z(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}function U(e,t,n){t.ending=!0,H(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function q(e,t,n){var i=e.entry;e.entry=null;while(i){var r=i.callback;t.pendingcb--,r(n),i=i.next}t.corkedRequestsFree.next=e}n("3fb5")(E,a),L.prototype.getBuffer=function(){var e=this.bufferedRequest,t=[];while(e)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(L.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===E&&(e&&e._writableState instanceof L)}})):d=function(e){return e instanceof this},E.prototype.pipe=function(){O(this,new _)},E.prototype.write=function(e,t,n){var i=this._writableState,r=!1,o=!i.objectMode&&h(e);return o&&!l.isBuffer(e)&&(e=u(e)),"function"===typeof t&&(n=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),"function"!==typeof n&&(n=k),i.ending?D(this,n):(o||I(this,i,e,n))&&(i.pendingcb++,r=T(this,i,o,e,t,n)),r},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||B(this,e))},E.prototype.setDefaultEncoding=function(e){if("string"===typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,n){n(new b("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,n){var i=this._writableState;return"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||U(this,i,n),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this,n("c8ba"),n("4362"))},"1c35":function(e,t,n){"use strict";(function(e){
|
||
/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <http://feross.org>
|
||
* @license MIT
|
||
*/
|
||
var i=n("1fb5"),r=n("9152"),o=n("bf74");function s(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,i){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?m(e,t,n,i):"string"===typeof t?p(e,t,n):v(e,t)}function h(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t,n,i){return h(t),t<=0?l(e,t):void 0!==n?"string"===typeof i?l(e,t).fill(n,i):l(e,t).fill(n):l(e,t)}function f(e,t){if(h(t),e=l(e,t<0?0:0|b(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|_(t,n);e=l(e,i);var r=e.write(t,n);return r!==i&&(e=e.slice(0,r)),e}function g(e,t){var n=t.length<0?0:0|b(t.length);e=l(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function m(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=g(e,t),e}function v(e,t){if(c.isBuffer(t)){var n=0|b(t.length);return e=l(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?l(e,0):g(e,t);if("Buffer"===t.type&&o(t.data))return g(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function b(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),c.alloc(+e)}function _(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(i)return Z(e).length;t=(""+t).toLowerCase(),i=!0}}function w(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return M(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function C(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function S(e,t,n,i,r){if(0===e.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:x(e,t,n,i,r);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):x(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function x(e,t,n,i,r){var o,s=1,a=e.length,l=t.length;if(void 0!==i&&(i=String(i).toLowerCase(),"ucs2"===i||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(r){var u=-1;for(o=n;o<a;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(n+l>a&&(n=a-l),o=n;o>=0;o--){for(var h=!0,d=0;d<l;d++)if(c(e,o+d)!==c(t,d)){h=!1;break}if(h)return o}return-1}function O(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i),i>r&&(i=r)):i=r;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function k(e,t,n,i){return ee(Z(t,e.length-n),e,n,i)}function L(e,t,n,i){return ee(X(t),e,n,i)}function E(e,t,n,i){return L(e,t,n,i)}function D(e,t,n,i){return ee(J(t),e,n,i)}function I(e,t,n,i){return ee(Q(t,e.length-n),e,n,i)}function M(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);var i=[],r=t;while(r<n){var o,s,a,l,c=e[r],u=null,h=c>239?4:c>223?3:c>191?2:1;if(r+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:o=e[r+1],128===(192&o)&&(l=(31&c)<<6|63&o,l>127&&(u=l));break;case 3:o=e[r+1],s=e[r+2],128===(192&o)&&128===(192&s)&&(l=(15&c)<<12|(63&o)<<6|63&s,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:o=e[r+1],s=e[r+2],a=e[r+3],128===(192&o)&&128===(192&s)&&128===(192&a)&&(l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=h}return N(i)}t.Buffer=c,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:s(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return d(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,o=Math.min(n,i);r<o;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=c.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var s=e[n];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,r),r+=s.length}return i},c.byteLength=_,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)C(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)C(this,t,t+3),C(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)C(this,t,t+7),C(this,t+1,t+6),C(this,t+2,t+5),C(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):w.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,i,r){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,r>>>=0,this===e)return 0;for(var o=r-i,s=n-t,a=Math.min(o,s),l=this.slice(i,r),u=e.slice(t,n),h=0;h<a;++h)if(l[h]!==u[h]){o=l[h],s=u[h];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)},c.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return O(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":return L(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return D(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function N(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var n="",i=0;while(i<t)n+=String.fromCharCode.apply(String,e.slice(i,i+=A));return n}function P(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function j(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function R(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=t;o<n;++o)r+=Y(e[o]);return r}function F(e,t,n){for(var i=e.slice(t,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function B(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function W(e,t,n,i,r,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<o)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function V(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r<o;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function z(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r<o;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function H(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,i,o){return o||H(e,t,n,4,34028234663852886e22,-34028234663852886e22),r.write(e,t,n,i,23,4),n+4}function q(e,t,n,i,o){return o||H(e,t,n,8,17976931348623157e292,-17976931348623157e292),r.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){var n,i=this.length;if(e=~~e,t=void 0===t?i:~~t,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),t<0?(t+=i,t<0&&(t=0)):t>i&&(t=i),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=c.prototype;else{var r=t-e;n=new c(r,void 0);for(var o=0;o<r;++o)n[o]=this[o+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var i=this[e],r=1,o=0;while(++o<t&&(r*=256))i+=this[e+o]*r;return i},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var i=this[e+--t],r=1;while(t>0&&(r*=256))i+=this[e+--t]*r;return i},c.prototype.readUInt8=function(e,t){return t||B(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||B(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||B(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var i=this[e],r=1,o=0;while(++o<t&&(r*=256))i+=this[e+o]*r;return r*=128,i>=r&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var i=t,r=1,o=this[e+--i];while(i>0&&(r*=256))o+=this[e+--i]*r;return r*=128,o>=r&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||B(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||B(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||B(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||B(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||B(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||B(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;W(this,e,t,n,r,0)}var o=1,s=0;this[t]=255&e;while(++s<n&&(o*=256))this[t+s]=e/o&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t|=0,n|=0,!i){var r=Math.pow(2,8*n)-1;W(this,e,t,n,r,0)}var o=n-1,s=1;this[t+o]=255&e;while(--o>=0&&(s*=256))this[t+o]=e/s&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||W(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||W(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||W(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||W(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):z(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||W(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);W(this,e,t,n,r-1,-r)}var o=0,s=1,a=0;this[t]=255&e;while(++o<n&&(s*=256))e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);W(this,e,t,n,r-1,-r)}var o=n-1,s=1,a=0;this[t+o]=255&e;while(--o>=0&&(s*=256))e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||W(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||W(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||W(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||W(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):z(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||W(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return q(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return q(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,o=i-n;if(this===e&&n<t&&t<i)for(r=o-1;r>=0;--r)e[r+t]=this[r+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},c.prototype.fill=function(e,t,n,i){if("string"===typeof e){if("string"===typeof t?(i=t,t=0,n=this.length):"string"===typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=c.isBuffer(e)?e:Z(new c(e,i).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var $=/[^+\/0-9A-Za-z-_]/g;function K(e){if(e=G(e).replace($,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function G(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Y(e){return e<16?"0"+e.toString(16):e.toString(16)}function Z(e,t){var n;t=t||1/0;for(var i=e.length,r=null,o=[],s=0;s<i;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function X(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function Q(e,t){for(var n,i,r,o=[],s=0;s<e.length;++s){if((t-=2)<0)break;n=e.charCodeAt(s),i=n>>8,r=n%256,o.push(r),o.push(i)}return o}function J(e){return i.toByteArray(K(e))}function ee(e,t,n,i){for(var r=0;r<i;++r){if(r+n>=t.length||r>=e.length)break;t[r+n]=e[r]}return r}function te(e){return e!==e}}).call(this,n("c8ba"))},"1c59":function(e,t,n){"use strict";var i=n("6d61"),r=n("6566");i("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r)},"1c7e":function(e,t,n){var i=n("b622"),r=i("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(l){}return n}},"1cdc":function(e,t,n){var i=n("342f");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},"1d80":function(e,t,n){var i=n("7234"),r=TypeError;e.exports=function(e){if(i(e))throw r("Can't call method on "+e);return e}},"1da1":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("d3b7");function i(e,t,n,i,r,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var s=e.apply(t,n);function a(e){i(s,r,o,a,l,"next",e)}function l(e){i(s,r,o,a,l,"throw",e)}a(void 0)}))}}},"1dac":function(e,t,n){},"1ddc":function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return v}));var i=n("0f70"),r=n("308f"),o=n("a666"),s=n("30db");class a{constructor(e,t){this.chr=e,this.type=t,this.width=0}fulfill(e){this.width=e}}class l{constructor(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const 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);const 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);const i=document.createElement("div");i.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),i.style.fontWeight=this._bareFontInfo.fontWeight,i.style.fontSize=this._bareFontInfo.fontSize+"px",i.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,i.style.lineHeight=this._bareFontInfo.lineHeight+"px",i.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",i.style.fontStyle="italic",e.appendChild(i);const r=[];for(const o of this._requests){let e;0===o.type&&(e=t),2===o.type&&(e=n),1===o.type&&(e=i),e.appendChild(document.createElement("br"));const s=document.createElement("span");l._render(s,o),e.appendChild(s),r.push(s)}this._container=e,this._testElements=r}static _render(e,t){if(" "===t.chr){let t=" ";for(let e=0;e<8;e++)t+=t;e.innerText=t}else{let n=t.chr;for(let e=0;e<8;e++)n+=n;e.textContent=n}}_readFromDomElements(){for(let e=0,t=this._requests.length;e<t;e++){const t=this._requests[e],n=this._testElements[e];t.fulfill(n.offsetWidth/256)}}}function c(e,t){const n=new l(e,t);n.read()}var u=n("a37f"),h=n("8830"),d=n("fd49"),f=n("fb71");class p{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const t=e.getId();return!!this._values[t]}get(e){const t=e.getId();return this._values[t]}put(e,t){const n=e.getId();this._keys[n]=e,this._values[n]=t}remove(e){const t=e.getId();delete this._keys[t],delete this._values[t]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}function g(){m.INSTANCE.clearCache()}class m extends o["a"]{constructor(){super(),this._onDidChange=this._register(new r["b"]),this.onDidChange=this._onDidChange.event,this._cache=new p,this._evictUntrustedReadingsTimeout=-1}dispose(){-1!==this._evictUntrustedReadingsTimeout&&(clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearCache(){this._cache=new p,this._onDidChange.fire()}_writeToCache(e,t){this._cache.put(e,t),t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const e=this._cache.getValues();let t=!1;for(const n of e)n.isTrusted||(t=!0,this._cache.remove(n));t&&this._onDidChange.fire()}readConfiguration(e){if(!this._cache.has(e)){let t=m._actualReadConfiguration(e);(t.typicalHalfwidthCharacterWidth<=2||t.typicalFullwidthCharacterWidth<=2||t.spaceWidth<=2||t.maxDigitWidth<=2)&&(t=new f["b"]({zoomLevel:i["d"](),pixelRatio:i["a"](),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),wsmiddotWidth:Math.max(t.wsmiddotWidth,5),maxDigitWidth:Math.max(t.maxDigitWidth,5)},!1)),this._writeToCache(e,t)}return this._cache.get(e)}static createRequest(e,t,n,i){const r=new a(e,t);return n.push(r),i&&i.push(r),r}static _actualReadConfiguration(e){const t=[],n=[],r=this.createRequest("n",0,t,n),o=this.createRequest("m",0,t,null),s=this.createRequest(" ",0,t,n),a=this.createRequest("0",0,t,n),l=this.createRequest("1",0,t,n),u=this.createRequest("2",0,t,n),h=this.createRequest("3",0,t,n),p=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),b=this.createRequest("8",0,t,n),y=this.createRequest("9",0,t,n),_=this.createRequest("→",0,t,n),w=this.createRequest("→",0,t,null),C=this.createRequest("·",0,t,n),S=this.createRequest(String.fromCharCode(11825),0,t,null);this.createRequest("|",0,t,n),this.createRequest("/",0,t,n),this.createRequest("-",0,t,n),this.createRequest("_",0,t,n),this.createRequest("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),c(e,t);const x=Math.max(a.width,l.width,u.width,h.width,p.width,g.width,m.width,v.width,b.width,y.width);let O=e.fontFeatureSettings===d["e"].OFF;const k=n[0].width;for(let i=1,c=n.length;O&&i<c;i++){const e=k-n[i].width;if(e<-.001||e>.001){O=!1;break}}let L=!0;O&&w.width!==k&&(L=!1),w.width>_.width&&(L=!1);const E=i["b"]()>2e3;return new f["b"]({zoomLevel:i["d"](),pixelRatio:i["a"](),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:O,typicalHalfwidthCharacterWidth:r.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:L,spaceWidth:s.width,middotWidth:C.width,wsmiddotWidth:S.width,maxDigitWidth:x},E)}}m.INSTANCE=new m;class v extends h["a"]{constructor(e,t,n=null,r){super(e,t),this.accessibilityService=r,this._elementSizeObserver=this._register(new u["a"](n,t.dimension,()=>this._recomputeOptions())),this._register(m.INSTANCE.onDidChange(()=>this._recomputeOptions())),this._validatedOptions.get(10)&&this._elementSizeObserver.startObserving(),this._register(i["l"](e=>this._recomputeOptions())),this._register(this.accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions())),this._recomputeOptions()}static applyFontInfoSlow(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"}static applyFontInfo(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)}observeReferenceElement(e){this._elementSizeObserver.observe(e)}updatePixelRatio(){this._recomputeOptions()}static _getExtraEditorClassName(){let e="";return i["h"]||i["k"]||(e+="no-user-select "),i["h"]&&(e+="no-minimap-shadow "),s["f"]&&(e+="mac "),e}_getEnvConfiguration(){return{extraEditorClassName:v._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:i["j"]||i["g"],pixelRatio:i["a"](),zoomLevel:i["d"](),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}}readConfiguration(e){return m.INSTANCE.readConfiguration(e)}}},"1dde":function(e,t,n){var i=n("d039"),r=n("b622"),o=n("2d00"),s=r("species");e.exports=function(e){return o>=51||!i((function(){var t=[],n=t.constructor={};return n[s]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1e03":function(e,t,n){},"1e4c":function(e,t,n){},"1e4d":function(e,t,n){"use strict";function i(){if(!(this instanceof i))return new i;this.nextId=Math.max(1,Math.floor(65535*Math.random()))}i.prototype.allocate=function(){const e=this.nextId++;return 65536===this.nextId&&(this.nextId=1),e},i.prototype.getLastAllocated=function(){return 1===this.nextId?65535:this.nextId-1},i.prototype.register=function(e){return!0},i.prototype.deallocate=function(e){},i.prototype.clear=function(){},e.exports=i},"1e93":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"f",(function(){return h})),n.d(t,"d",(function(){return d})),n.d(t,"g",(function(){return f}));var i=n("3742");const r="undefined"!==typeof e,o="undefined"!==typeof TextDecoder;let s;class a{constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}static wrap(t){return r&&!e.isBuffer(t)&&(t=e.from(t.buffer,t.byteOffset,t.byteLength)),new a(t)}toString(){return r?this.buffer.toString():o?(s||(s=new TextDecoder),s.decode(this.buffer)):i["r"](this.buffer)}}function l(e,t){return e[t+0]<<0>>>0|e[t+1]<<8>>>0}function c(e,t,n){e[n+0]=255&t,t>>>=8,e[n+1]=255&t}function u(e,t){return e[t]*Math.pow(2,24)+e[t+1]*Math.pow(2,16)+e[t+2]*Math.pow(2,8)+e[t+3]}function h(e,t,n){e[n+3]=t,t>>>=8,e[n+2]=t,t>>>=8,e[n+1]=t,t>>>=8,e[n]=t}function d(e,t){return e[t]}function f(e,t,n){e[n]=t}}).call(this,n("1c35").Buffer)},"1f26":function(e,t,n){},"1f39":function(e,t,n){"use strict";var i=n("6d8b"),r={},o=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];i["each"](r,(function(i,r){var o=i.create(e,t);n=n.concat(o||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){i["each"](this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){r[e]=t},e.get=function(e){return r[e]},e}();t["a"]=o},"1f55":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.gauge=g;var r=i(n("9523")),o=i(n("7037")),s=i(n("278c")),a=i(n("448a")),l=n("18ad"),c=n("cc6d"),u=n("5557"),h=n("becb"),d=n("a870");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,r["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.series;n||(n=[]);var i=(0,h.initNeedSeries)(n,c.gaugeConfig,"gauge");i=m(i,e),i=v(i,e),i=b(i,e),i=y(i,e),i=_(i,e),i=w(i,e),i=C(i,e),i=S(i,e),i=x(i,e),i=O(i,e),(0,l.doUpdate)({chart:e,series:i,key:"gaugeAxisTick",getGraphConfig:L}),(0,l.doUpdate)({chart:e,series:i,key:"gaugeAxisLabel",getGraphConfig:I}),(0,l.doUpdate)({chart:e,series:i,key:"gaugeBackgroundArc",getGraphConfig:A,getStartGraphConfig:j}),(0,l.doUpdate)({chart:e,series:i,key:"gaugeArc",getGraphConfig:R,getStartGraphConfig:W,beforeChange:V}),(0,l.doUpdate)({chart:e,series:i,key:"gaugePointer",getGraphConfig:z,getStartGraphConfig:$}),(0,l.doUpdate)({chart:e,series:i,key:"gaugeDetails",getGraphConfig:K})}function m(e,t){var n=t.render.area;return e.forEach((function(e){var t=e.center;t=t.map((function(e,t){return"number"===typeof e?e:parseInt(e)/100*n[t]})),e.center=t})),e}function v(e,t){var n=t.render.area,i=Math.min.apply(Math,(0,a["default"])(n))/2;return e.forEach((function(e){var t=e.radius;"number"!==typeof t&&(t=parseInt(t)/100*i),e.radius=t})),e}function b(e,t){var n=t.render.area,i=Math.min.apply(Math,(0,a["default"])(n))/2;return e.forEach((function(e){var t=e.radius,n=e.data,r=e.arcLineWidth;n.forEach((function(e){var n=e.radius,o=e.lineWidth;n||(n=t),"number"!==typeof n&&(n=parseInt(n)/100*i),e.radius=n,o||(o=r),e.lineWidth=o}))})),e}function y(e,t){return e.forEach((function(e){var t=e.startAngle,n=e.endAngle,i=e.data,r=e.min,o=e.max,s=n-t,a=o-r;i.forEach((function(e){var n=e.value,i=Math.abs((n-r)/a*s);e.startAngle=t,e.endAngle=t+i}))})),e}function _(e,t){return e.forEach((function(e){var t=e.data;t.forEach((function(e){var t=e.color,n=e.gradient;n&&n.length||(n=t),n instanceof Array||(n=[n]),e.gradient=n}))})),e}function w(e,t){return e.forEach((function(e){var t=e.startAngle,n=e.endAngle,i=e.splitNum,r=e.center,o=e.radius,s=e.arcLineWidth,l=e.axisTick,c=l.tickLength,h=l.style.lineWidth,d=n-t,f=o-s/2,p=f-c,g=d/(i-1),m=2*Math.PI*o*d/(2*Math.PI),v=Math.ceil(h/2)/m*d;e.tickAngles=[],e.tickInnerRadius=[],e.tickPosition=new Array(i).fill(0).map((function(n,o){var s=t+g*o;return 0===o&&(s+=v),o===i-1&&(s-=v),e.tickAngles[o]=s,e.tickInnerRadius[o]=p,[u.getCircleRadianPoint.apply(void 0,(0,a["default"])(r).concat([f,s])),u.getCircleRadianPoint.apply(void 0,(0,a["default"])(r).concat([p,s]))]}))})),e}function C(e,t){return e.forEach((function(e){var t=e.center,n=e.tickInnerRadius,i=e.tickAngles,r=e.axisLabel.labelGap,o=i.map((function(e,o){return u.getCircleRadianPoint.apply(void 0,(0,a["default"])(t).concat([n[o]-r,i[o]]))})),l=o.map((function(e){var n=(0,s["default"])(e,2),i=n[0],r=n[1];return{textAlign:i>t[0]?"right":"left",textBaseline:r>t[1]?"bottom":"top"}}));e.labelPosition=o,e.labelAlign=l})),e}function S(e,t){return e.forEach((function(e){var t=e.axisLabel,n=e.min,i=e.max,r=e.splitNum,s=t.data,a=t.formatter,l=(i-n)/(r-1),c=new Array(r).fill(0).map((function(e,t){return parseInt(n+l*t)})),u=(0,o["default"])(a);s=(0,h.deepMerge)(c,s).map((function(e,t){var n=e;return"string"===u&&(n=a.replace("{value}",e)),"function"===u&&(n=a({value:e,index:t})),n})),t.data=s})),e}function x(e,t){return e.forEach((function(e){var t=e.data,n=e.details,i=e.center,r=n.position,o=n.offset,s=t.map((function(e){var t=e.startAngle,n=e.endAngle,s=e.radius,l=null;return"center"===r?l=i:"start"===r?l=u.getCircleRadianPoint.apply(void 0,(0,a["default"])(i).concat([s,t])):"end"===r&&(l=u.getCircleRadianPoint.apply(void 0,(0,a["default"])(i).concat([s,n]))),k(l,o)}));e.detailsPosition=s})),e}function O(e,t){return e.forEach((function(e){var t=e.data,n=e.details,i=n.formatter,r=(0,o["default"])(i),s=t.map((function(e){var t=e.value;return"string"===r&&(t=i.replace("{value}","{nt}"),t=t.replace("{name}",e.name)),"function"===r&&(t=i(e)),t.toString()}));e.detailsContent=s})),e}function k(e,t){var n=(0,s["default"])(e,2),i=n[0],r=n[1],o=(0,s["default"])(t,2),a=o[0],l=o[1];return[i+a,r+l]}function L(e){var t=e.tickPosition,n=e.animationCurve,i=e.animationFrame,r=e.rLevel;return t.map((function(t,o){return{name:"polyline",index:r,visible:e.axisTick.show,animationCurve:n,animationFrame:i,shape:E(e,o),style:D(e,o)}}))}function E(e,t){var n=e.tickPosition;return{points:n[t]}}function D(e,t){var n=e.axisTick.style;return n}function I(e){var t=e.labelPosition,n=e.animationCurve,i=e.animationFrame,r=e.rLevel;return t.map((function(t,o){return{name:"text",index:r,visible:e.axisLabel.show,animationCurve:n,animationFrame:i,shape:M(e,o),style:T(e,o)}}))}function M(e,t){var n=e.labelPosition,i=e.axisLabel.data;return{content:i[t].toString(),position:n[t]}}function T(e,t){var n=e.labelAlign,i=e.axisLabel,r=i.style;return(0,h.deepMerge)(p({},n[t]),r)}function A(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel;return[{name:"arc",index:i,visible:e.backgroundArc.show,animationCurve:t,animationFrame:n,shape:N(e),style:P(e)}]}function N(e){var t=e.startAngle,n=e.endAngle,i=e.center,r=e.radius;return{rx:i[0],ry:i[1],r:r,startAngle:t,endAngle:n}}function P(e){var t=e.backgroundArc,n=e.arcLineWidth,i=t.style;return(0,h.deepMerge)({lineWidth:n},i)}function j(e){var t=A(e)[0],n=p({},t.shape);return n.endAngle=t.shape.startAngle,t.shape=n,[t]}function R(e){var t=e.data,n=e.animationCurve,i=e.animationFrame,r=e.rLevel;return t.map((function(t,o){return{name:"agArc",index:r,animationCurve:n,animationFrame:i,shape:F(e,o),style:B(e,o)}}))}function F(e,t){var n=e.data,i=e.center,r=e.endAngle,o=n[t],s=o.radius,a=o.startAngle,l=o.endAngle,c=o.localGradient;return c&&(r=l),{rx:i[0],ry:i[1],r:s,startAngle:a,endAngle:l,gradientEndAngle:r}}function B(e,t){var n=e.data,i=e.dataItemStyle,r=n[t],o=r.lineWidth,s=r.gradient;return s=s.map((function(e){return(0,d.getRgbaValue)(e)})),(0,h.deepMerge)({lineWidth:o,gradient:s},i)}function W(e){var t=R(e);return t.map((function(e){var t=p({},e.shape);t.endAngle=e.shape.startAngle,e.shape=t})),t}function V(e,t){var n=e.style.gradient,i=n.length,r=t.style.gradient.length;if(i>r)n.splice(r);else{var o=n.slice(-1)[0];n.push.apply(n,(0,a["default"])(new Array(r-i).fill(0).map((function(e){return(0,a["default"])(o)}))))}}function z(e){var t=e.animationCurve,n=e.animationFrame,i=e.center,r=e.rLevel;return[{name:"polyline",index:r,visible:e.pointer.show,animationCurve:t,animationFrame:n,shape:H(e),style:U(e),setGraphCenter:function(e,t){t.style.graphCenter=i}}]}function H(e){var t=e.center;return{points:q(t),close:!0}}function U(e){var t=e.startAngle,n=e.endAngle,i=e.min,r=e.max,o=e.data,s=e.pointer,a=e.center,l=s.valueIndex,c=s.style,u=o[l]?o[l].value:0,d=(u-i)/(r-i)*(n-t)+t+Math.PI/2;return(0,h.deepMerge)({rotate:(0,h.radianToAngle)(d),scale:[1,1],graphCenter:a},c)}function q(e){var t=(0,s["default"])(e,2),n=t[0],i=t[1],r=[n,i-40],o=[n+5,i],a=[n,i+10],l=[n-5,i];return[r,o,a,l]}function $(e){var t=e.startAngle,n=z(e)[0];return n.style.rotate=(0,h.radianToAngle)(t+Math.PI/2),[n]}function K(e){var t=e.detailsPosition,n=e.animationCurve,i=e.animationFrame,r=e.rLevel,o=e.details.show;return t.map((function(t,s){return{name:"numberText",index:r,visible:o,animationCurve:n,animationFrame:i,shape:G(e,s),style:Y(e,s)}}))}function G(e,t){var n=e.detailsPosition,i=e.detailsContent,r=e.data,o=e.details,s=n[t],a=i[t],l=r[t].value,c=o.valueToFixed;return{number:[l],content:a,position:s,toFixed:c}}function Y(e,t){var n=e.details,i=e.data,r=n.style,o=i[t].color;return(0,h.deepMerge)({fill:o},r)}},"1f68":function(e,t,n){"use strict";var i=n("83ab"),r=n("edd0"),o=n("861d"),s=n("7b0b"),a=n("1d80"),l=Object.getPrototypeOf,c=Object.setPrototypeOf,u=Object.prototype,h="__proto__";if(i&&l&&c&&!(h in u))try{r(u,h,{configurable:!0,get:function(){return l(s(this))},set:function(e){var t=a(this);(o(e)||null===e)&&o(t)&&c(t,e)}})}catch(d){}},"1f84":function(e,t,n){"use strict";n.r(t),n.d(t,"GotoDefinitionAtPositionEditorContribution",(function(){return O}));n("eb68");var i=n("dff7"),r=n("5fe7"),o=n("fdcc"),s=n("78bc"),a=n("5818"),l=n("6a89"),c=n("b707"),u=n("b2cc"),h=n("bd13"),d=n("a666"),f=n("b78f"),p=n("b7d0"),g=n("303e"),m=n("bc04"),v=n("f187"),b=n("6816"),y=n("7061"),_=n("ef8e"),w=n("88d4"),C=n("4fc3"),S=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},x=function(e,t){return function(n,i){t(n,i,e)}};let O=class e{constructor(e,t,n){this.textModelResolverService=t,this.modeService=n,this.toUnhook=new d["b"],this.toUnhookForKeyboard=new d["b"],this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e;let i=new b["a"](e);this.toUnhook.add(i),this.toUnhook.add(i.onMouseMoveOrRelevantKeyDown(([e,t])=>{this.startFindDefinitionFromMouse(e,Object(_["o"])(t))})),this.toUnhook.add(i.onExecute(e=>{this.isEnabled(e)&&this.gotoDefinition(e.target.position,e.hasSideBySideModifier).then(()=>{this.removeLinkDecorations()},e=>{this.removeLinkDecorations(),Object(o["e"])(e)})})),this.toUnhook.add(i.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(t){return t.getContribution(e.ID)}startFindDefinitionFromCursor(e){return this.startFindDefinition(e).then(()=>{this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(e=>{e&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(9===e.target.type&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t))return this.currentWordAtPosition=null,void this.removeLinkDecorations();const n=e.target.position;this.startFindDefinition(n)}startFindDefinition(e){var t;this.toUnhookForKeyboard.clear();const n=e?null===(t=this.editor.getModel())||void 0===t?void 0:t.getWordAtPosition(e):null;if(!n)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===n.startColumn&&this.currentWordAtPosition.endColumn===n.endColumn&&this.currentWordAtPosition.word===n.word)return Promise.resolve(0);this.currentWordAtPosition=n;let a=new m["a"](this.editor,15);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(r["h"])(t=>this.findDefinition(e,t)),this.previousPromise.then(t=>{if(t&&t.length&&a.validate(this.editor))if(t.length>1)this.addDecoration(new l["a"](e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),(new s["a"]).appendText(i["a"]("multipleResults","Click to show {0} definitions.",t.length)));else{let i=t[0];if(!i.uri)return;this.textModelResolverService.createModelReference(i.uri).then(t=>{if(!t.object||!t.object.textEditorModel)return void t.dispose();const{object:{textEditorModel:r}}=t,{startLineNumber:o}=i.range;if(o<1||o>r.getLineCount())return void t.dispose();const a=this.getPreviewValue(r,o,i);let c;c=i.originSelectionRange?l["a"].lift(i.originSelectionRange):new l["a"](e.lineNumber,n.startColumn,e.lineNumber,n.endColumn);const u=this.modeService.getModeIdByFilepathOrFirstLine(r.uri);this.addDecoration(c,(new s["a"]).appendCodeblock(u||"",a)),t.dispose()})}else this.removeLinkDecorations()}).then(void 0,o["e"])}getPreviewValue(t,n,i){let r=i.targetSelectionRange?i.range:this.getPreviewRangeBasedOnBrackets(t,n);const o=r.endLineNumber-r.startLineNumber;o>=e.MAX_SOURCE_PREVIEW_LINES&&(r=this.getPreviewRangeBasedOnIndentation(t,n));const s=this.stripIndentationFromPreviewRange(t,n,r);return s}stripIndentationFromPreviewRange(e,t,n){const i=e.getLineFirstNonWhitespaceColumn(t);let r=i;for(let s=t+1;s<n.endLineNumber;s++){const t=e.getLineFirstNonWhitespaceColumn(s);r=Math.min(r,t)}const o=e.getValueInRange(n).replace(new RegExp(`^\\s{${r-1}}`,"gm"),"").trim();return o}getPreviewRangeBasedOnIndentation(t,n){const i=t.getLineFirstNonWhitespaceColumn(n),r=Math.min(t.getLineCount(),n+e.MAX_SOURCE_PREVIEW_LINES);let o=n+1;for(;o<r;o++){let e=t.getLineFirstNonWhitespaceColumn(o);if(i===e)break}return new l["a"](n,1,o+1,1)}getPreviewRangeBasedOnBrackets(t,n){const i=Math.min(t.getLineCount(),n+e.MAX_SOURCE_PREVIEW_LINES),r=[];let o=!0,s=t.findNextBracket(new y["a"](n,1));while(null!==s){if(0===r.length)r.push(s);else{const e=r[r.length-1];if(e.open[0]===s.open[0]&&e.isOpen&&!s.isOpen?r.pop():r.push(s),0===r.length){if(!o)return new l["a"](n,1,s.range.endLineNumber+1,1);o=!1}}const e=t.getLineMaxColumn(n);let a=s.range.endLineNumber,c=s.range.endColumn;if(e===s.range.endColumn&&(a++,c=1),a>i)return new l["a"](n,1,i+1,1);s=t.findNextBracket(new y["a"](a,c))}return new l["a"](n,1,i+1,1)}addDecoration(e,t){const n={range:e,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:t}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[n])}removeLinkDecorations(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))}isEnabled(e,t){return this.editor.hasModel()&&e.isNoneOrSingleMouseDown&&6===e.target.type&&(e.hasTriggerModifier||!!t&&t.keyCodeIsTriggerKey)&&c["f"].has(this.editor.getModel())}findDefinition(e,t){const n=this.editor.getModel();return n?Object(h["b"])(n,e,t):Promise.resolve(null)}gotoDefinition(e,t){return this.editor.setPosition(e),this.editor.invokeWithinContext(e=>{const n=!t&&this.editor.getOption(76)&&!this.isInPeekEditor(e),i=new v["DefinitionAction"]({openToSide:t,openInPeek:n,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0});return i.run(e,this.editor)})}isInPeekEditor(e){const t=e.get(C["b"]);return w["b"].inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose()}};O.ID="editor.contrib.gotodefinitionatposition",O.MAX_SOURCE_PREVIEW_LINES=8,O=S([x(1,f["a"]),x(2,a["a"])],O),Object(u["l"])(O.ID,O),Object(p["f"])((e,t)=>{const n=e.getColor(g["q"]);n&&t.addRule(`.monaco-editor .goto-definition-link { color: ${n} !important; }`)})},"1fa1":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return n.e("chunk-2d0e57ec").then(n.bind(null,"9571"))}})},"1fad":function(e,t,n){const i=n("51e9"),r=n("faa1"),o=n("a7c9"),s=n("b289"),a=n("34eb")("mqtt-packet:parser");class l extends r{constructor(){super(),this.parser=this.constructor.parser}static parser(e){return this instanceof l?(this.settings=e||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):(new l).parser(e)}_resetState(){a("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new o,this.error=null,this._list=i(),this._stateCounter=0}parse(e){this.error&&this._resetState(),this._list.append(e),a("parse: current state: %s",this._states[this._stateCounter]);while((-1!==this.packet.length||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error)this._stateCounter++,a("parse: state complete. _stateCounter is now: %d",this._stateCounter),a("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return a("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){const e=this._list.readUInt8(0);return this.packet.cmd=s.types[e>>s.CMD_SHIFT],this.packet.retain=0!==(e&s.RETAIN_MASK),this.packet.qos=e>>s.QOS_SHIFT&s.QOS_MASK,this.packet.dup=0!==(e&s.DUP_MASK),a("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0}_parseLength(){const e=this._parseVarByteNum(!0);return e&&(this.packet.length=e.value,this._list.consume(e.bytes)),a("_parseLength %d",e.value),!!e}_parsePayload(){a("_parsePayload: payload %O",this._list);let e=!1;if(0===this.packet.length||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}e=!0}return a("_parsePayload complete result: %s",e),e}_parseConnect(){let e,t,n,i;a("_parseConnect");const r={},o=this.packet,l=this._parseString();if(null===l)return this._emitError(new Error("Cannot parse protocolId"));if("MQTT"!==l&&"MQIsdp"!==l)return this._emitError(new Error("Invalid protocolId"));if(o.protocolId=l,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(o.protocolVersion=this._list.readUInt8(this._pos),o.protocolVersion>=128&&(o.bridgeMode=!0,o.protocolVersion=o.protocolVersion-128),3!==o.protocolVersion&&4!==o.protocolVersion&&5!==o.protocolVersion)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(r.username=this._list.readUInt8(this._pos)&s.USERNAME_MASK,r.password=this._list.readUInt8(this._pos)&s.PASSWORD_MASK,r.will=this._list.readUInt8(this._pos)&s.WILL_FLAG_MASK,r.will&&(o.will={},o.will.retain=0!==(this._list.readUInt8(this._pos)&s.WILL_RETAIN_MASK),o.will.qos=(this._list.readUInt8(this._pos)&s.WILL_QOS_MASK)>>s.WILL_QOS_SHIFT),o.clean=0!==(this._list.readUInt8(this._pos)&s.CLEAN_SESSION_MASK),this._pos++,o.keepalive=this._parseNum(),-1===o.keepalive)return this._emitError(new Error("Packet too short"));if(5===o.protocolVersion){const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(o.properties=e)}const c=this._parseString();if(null===c)return this._emitError(new Error("Packet too short"));if(o.clientId=c,a("_parseConnect: packet.clientId: %s",o.clientId),r.will){if(5===o.protocolVersion){const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(o.will.properties=e)}if(e=this._parseString(),null===e)return this._emitError(new Error("Cannot parse will topic"));if(o.will.topic=e,a("_parseConnect: packet.will.topic: %s",o.will.topic),t=this._parseBuffer(),null===t)return this._emitError(new Error("Cannot parse will payload"));o.will.payload=t,a("_parseConnect: packet.will.paylaod: %s",o.will.payload)}if(r.username){if(i=this._parseString(),null===i)return this._emitError(new Error("Cannot parse username"));o.username=i,a("_parseConnect: packet.username: %s",o.username)}if(r.password){if(n=this._parseBuffer(),null===n)return this._emitError(new Error("Cannot parse password"));o.password=n}return this.settings=o,a("_parseConnect: complete"),o}_parseConnack(){a("_parseConnack");const e=this.packet;if(this._list.length<1)return null;if(e.sessionPresent=!!(this._list.readUInt8(this._pos++)&s.SESSIONPRESENT_MASK),5===this.settings.protocolVersion)this._list.length>=2?e.reasonCode=this._list.readUInt8(this._pos++):e.reasonCode=0;else{if(this._list.length<2)return null;e.returnCode=this._list.readUInt8(this._pos++)}if(-1===e.returnCode||-1===e.reasonCode)return this._emitError(new Error("Cannot parse return code"));if(5===this.settings.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}a("_parseConnack: complete")}_parsePublish(){a("_parsePublish");const e=this.packet;if(e.topic=this._parseString(),null===e.topic)return this._emitError(new Error("Cannot parse topic"));if(!(e.qos>0)||this._parseMessageId()){if(5===this.settings.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}e.payload=this._list.slice(this._pos,e.length),a("_parsePublish: payload from buffer list: %o",e.payload)}}_parseSubscribe(){a("_parseSubscribe");const e=this.packet;let t,n,i,r,o,l,c;if(1!==e.qos)return this._emitError(new Error("Wrong subscribe header"));if(e.subscriptions=[],this._parseMessageId()){if(5===this.settings.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}while(this._pos<e.length){if(t=this._parseString(),null===t)return this._emitError(new Error("Cannot parse topic"));if(this._pos>=e.length)return this._emitError(new Error("Malformed Subscribe Payload"));n=this._parseByte(),i=n&s.SUBSCRIBE_OPTIONS_QOS_MASK,l=0!==(n>>s.SUBSCRIBE_OPTIONS_NL_SHIFT&s.SUBSCRIBE_OPTIONS_NL_MASK),o=0!==(n>>s.SUBSCRIBE_OPTIONS_RAP_SHIFT&s.SUBSCRIBE_OPTIONS_RAP_MASK),r=n>>s.SUBSCRIBE_OPTIONS_RH_SHIFT&s.SUBSCRIBE_OPTIONS_RH_MASK,c={topic:t,qos:i},5===this.settings.protocolVersion?(c.nl=l,c.rap=o,c.rh=r):this.settings.bridgeMode&&(c.rh=0,c.rap=!0,c.nl=!0),a("_parseSubscribe: push subscription `%s` to subscription",c),e.subscriptions.push(c)}}}_parseSuback(){a("_parseSuback");const e=this.packet;if(this.packet.granted=[],this._parseMessageId()){if(5===this.settings.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}while(this._pos<this.packet.length)this.packet.granted.push(this._list.readUInt8(this._pos++))}}_parseUnsubscribe(){a("_parseUnsubscribe");const e=this.packet;if(e.unsubscriptions=[],this._parseMessageId()){if(5===this.settings.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}while(this._pos<e.length){const t=this._parseString();if(null===t)return this._emitError(new Error("Cannot parse topic"));a("_parseUnsubscribe: push topic `%s` to unsubscriptions",t),e.unsubscriptions.push(t)}}}_parseUnsuback(){a("_parseUnsuback");const e=this.packet;if(!this._parseMessageId())return this._emitError(new Error("Cannot parse messageId"));if(5===this.settings.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t),e.granted=[];while(this._pos<this.packet.length)this.packet.granted.push(this._list.readUInt8(this._pos++))}}_parseConfirmation(){a("_parseConfirmation: packet.cmd: `%s`",this.packet.cmd);const e=this.packet;if(this._parseMessageId(),5===this.settings.protocolVersion&&(e.length>2?(e.reasonCode=this._parseByte(),a("_parseConfirmation: packet.reasonCode `%d`",e.reasonCode)):e.reasonCode=0,e.length>3)){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}return!0}_parseDisconnect(){const e=this.packet;if(a("_parseDisconnect"),5===this.settings.protocolVersion){this._list.length>0?e.reasonCode=this._parseByte():e.reasonCode=0;const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}return a("_parseDisconnect result: true"),!0}_parseAuth(){a("_parseAuth");const e=this.packet;if(5!==this.settings.protocolVersion)return this._emitError(new Error("Not supported auth packet for this version MQTT"));e.reasonCode=this._parseByte();const t=this._parseProperties();return Object.getOwnPropertyNames(t).length&&(e.properties=t),a("_parseAuth: result: true"),!0}_parseMessageId(){const e=this.packet;return e.messageId=this._parseNum(),null===e.messageId?(this._emitError(new Error("Cannot parse messageId")),!1):(a("_parseMessageId: packet.messageId %d",e.messageId),!0)}_parseString(e){const t=this._parseNum(),n=t+this._pos;if(-1===t||n>this._list.length||n>this.packet.length)return null;const i=this._list.toString("utf8",this._pos,n);return this._pos+=t,a("_parseString: result: %s",i),i}_parseStringPair(){return a("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){const e=this._parseNum(),t=e+this._pos;if(-1===e||t>this._list.length||t>this.packet.length)return null;const n=this._list.slice(this._pos,t);return this._pos+=e,a("_parseBuffer: result: %o",n),n}_parseNum(){if(this._list.length-this._pos<2)return-1;const e=this._list.readUInt16BE(this._pos);return this._pos+=2,a("_parseNum: result: %s",e),e}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;const e=this._list.readUInt32BE(this._pos);return this._pos+=4,a("_parse4ByteNum: result: %s",e),e}_parseVarByteNum(e){a("_parseVarByteNum");const t=4;let n,i=0,r=1,o=0,l=!1;const c=this._pos?this._pos:0;while(i<t&&c+i<this._list.length){if(n=this._list.readUInt8(c+i++),o+=r*(n&s.VARBYTEINT_MASK),r*=128,0===(n&s.VARBYTEINT_FIN_MASK)){l=!0;break}if(this._list.length<=i)break}return!l&&i===t&&this._list.length>=i&&this._emitError(new Error("Invalid variable byte integer")),c&&(this._pos+=i),l=!!l&&(e?{bytes:i,value:o}:o),a("_parseVarByteNum: result: %o",l),l}_parseByte(){let e;return this._pos<this._list.length&&(e=this._list.readUInt8(this._pos),this._pos++),a("_parseByte: result: %o",e),e}_parseByType(e){switch(a("_parseByType: type: %s",e),e){case"byte":return 0!==this._parseByte();case"int8":return this._parseByte();case"int16":return this._parseNum();case"int32":return this._parse4ByteNum();case"var":return this._parseVarByteNum();case"string":return this._parseString();case"pair":return this._parseStringPair();case"binary":return this._parseBuffer()}}_parseProperties(){a("_parseProperties");const e=this._parseVarByteNum(),t=this._pos,n=t+e,i={};while(this._pos<n){const e=this._parseByte();if(!e)return this._emitError(new Error("Cannot parse property code type")),!1;const t=s.propertiesCodes[e];if(!t)return this._emitError(new Error("Unknown property")),!1;if("userProperties"!==t)i[t]?(Array.isArray(i[t])||(i[t]=[i[t]]),i[t].push(this._parseByType(s.propertiesTypes[t]))):i[t]=this._parseByType(s.propertiesTypes[t]);else{i[t]||(i[t]=Object.create(null));const e=this._parseByType(s.propertiesTypes[t]);if(i[t][e.name])if(Array.isArray(i[t][e.name]))i[t][e.name].push(e.value);else{const n=i[t][e.name];i[t][e.name]=[n],i[t][e.name].push(e.value)}else i[t][e.name]=e.value}}return i}_newPacket(){return a("_newPacket"),this.packet&&(this._list.consume(this.packet.length),a("_newPacket: parser emit packet: packet.cmd: %s, packet.payload: %s, packet.length: %d",this.packet.cmd,this.packet.payload,this.packet.length),this.emit("packet",this.packet)),a("_newPacket: new packet"),this.packet=new o,this._pos=0,!0}_emitError(e){a("_emitError"),this.error=e,this.emit("error",e)}}e.exports=l},"1fb5":function(e,t,n){"use strict";t.byteLength=u,t.toByteArray=d,t.fromByteArray=g;for(var i=[],r=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)i[a]=s[a],r[s.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function u(e){var t=c(e),n=t[0],i=t[1];return 3*(n+i)/4-i}function h(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,i=c(e),s=i[0],a=i[1],l=new o(h(e,s,a)),u=0,d=a>0?s-4:s;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function f(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}function p(e,t,n){for(var i,r=[],o=t;o<n;o+=3)i=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),r.push(f(i));return r.join("")}function g(e){for(var t,n=e.length,r=n%3,o=[],s=16383,a=0,l=n-r;a<l;a+=s)o.push(p(e,a,a+s>l?l:a+s));return 1===r?(t=e[n-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"1fe0":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("3352"),r=n("b7d0"),o=n("918c"),s=n("a666"),a=n("b055"),l=n("ef8e"),c=n("0bfb");class u{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var n;const i=new s["b"];e.canAcceptInBackground=!!(null===(n=this.options)||void 0===n?void 0:n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;const r=i.add(new s["d"]);return r.value=this.doProvide(e,t),i.add(this.onDidActiveTextEditorControlChange(()=>{r.value=void 0,r.value=this.doProvide(e,t)})),i}doProvide(e,t){const n=new s["b"],i=this.activeTextEditorControl;if(i&&this.canProvideWithTextEditor(i)){const r={editor:i},o=Object(a["a"])(i);if(o){let e=Object(l["o"])(i.saveViewState());n.add(o.onDidChangeCursorPosition(()=>{e=Object(l["o"])(i.saveViewState())})),r.restoreViewState=()=>{e&&i===this.activeTextEditorControl&&i.restoreViewState(e)},n.add(Object(c["a"])(t.onCancellationRequested)(()=>{var e;return null===(e=r.restoreViewState)||void 0===e?void 0:e.call(r)}))}n.add(Object(s["i"])(()=>this.clearDecorations(i))),n.add(this.provideWithTextEditor(r,e,t))}else n.add(this.provideWithoutTextEditor(e,t));return n}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus()}getModel(e){var t;return Object(a["c"])(e)?null===(t=e.getModel())||void 0===t?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(e=>{const n=[];this.rangeHighlightDecorationId&&(n.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),n.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const s=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:Object(r["g"])(o["u"]),position:i["d"].Full}}}],[a,l]=e.deltaDecorations(n,s);this.rangeHighlightDecorationId={rangeHighlightId:a,overviewRulerDecorationId:l}})}clearDecorations(e){const t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(e=>{e.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}},2023:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}()},"204e":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.bar=p;var r=i(n("7037")),o=i(n("9523")),s=i(n("278c")),a=i(n("448a")),l=n("18ad"),c=n("9d85"),u=n("5557"),h=n("becb");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,o["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.xAxis,i=t.yAxis,r=t.series,o=[];n&&i&&r&&(o=(0,h.initNeedSeries)(r,c.barConfig,"bar"),o=g(o,e),o=m(o,e),o=k(o,e)),(0,l.doUpdate)({chart:e,series:o.slice(-1),key:"backgroundBar",getGraphConfig:A}),o.reverse(),(0,l.doUpdate)({chart:e,series:o,key:"bar",getGraphConfig:R,getStartGraphConfig:q,beforeUpdate:Y}),(0,l.doUpdate)({chart:e,series:o,key:"barLabel",getGraphConfig:Z})}function g(e,t){var n=t.axisData;return e.forEach((function(e){var t=e.xAxisIndex,i=e.yAxisIndex;"number"!==typeof t&&(t=0),"number"!==typeof i&&(i=0);var r=n.find((function(e){var n=e.axis,i=e.index;return"".concat(n).concat(i)==="x".concat(t)})),o=n.find((function(e){var t=e.axis,n=e.index;return"".concat(t).concat(n)==="y".concat(i)})),s=[r,o],a=s.findIndex((function(e){var t=e.data;return"value"===t}));e.valueAxis=s[a],e.labelAxis=s[1-a]})),e}function m(e,t){var n=b(e);return n.forEach((function(e){v(e),_(e),w(e,t),C(e),O(e)})),e}function v(e){var t=y(e);t=t.map((function(e){return{stack:e,index:-1}}));var n=0;e.forEach((function(e){var i=e.stack;if(i){var r=t.find((function(e){var t=e.stack;return t===i}));-1===r.index&&(r.index=n,n++),e.barIndex=r.index}else e.barIndex=n,n++}))}function b(e){var t=e.map((function(e){var t=e.labelAxis,n=t.axis,i=t.index;return n+i}));return t=(0,a["default"])(new Set(t)),t.map((function(t){return e.filter((function(e){var n=e.labelAxis,i=n.axis,r=n.index;return i+r===t}))}))}function y(e){var t=[];return e.forEach((function(e){var n=e.stack;n&&t.push(n)})),(0,a["default"])(new Set(t))}function _(e){var t=(0,a["default"])(new Set(e.map((function(e){var t=e.barIndex;return t})))).length;e.forEach((function(e){return e.barNum=t}))}function w(e){var t=e.slice(-1)[0],n=t.barCategoryGap,i=t.labelAxis.tickGap,r=0;r="number"===typeof n?n:(1-parseInt(n)/100)*i,e.forEach((function(e){return e.barCategoryWidth=r}))}function C(e){var t=e.slice(-1)[0],n=t.barCategoryWidth,i=t.barWidth,r=t.barGap,o=t.barNum,a=[];"number"===typeof i||"auto"!==i?a=S(n,i,r,o):"auto"===i&&(a=x(n,i,r,o));var l=a,c=(0,s["default"])(l,2),u=c[0],h=c[1];e.forEach((function(e){e.barWidth=u,e.barGap=h}))}function S(e,t,n){var i=0,r=0;return i="number"===typeof t?t:parseInt(t)/100*e,r="number"===typeof n?n:parseInt(n)/100*i,[i,r]}function x(e,t,n,i){var r=0,o=0,s=e/i;if("number"===typeof n)o=n,r=s-o;else{var a=10+parseInt(n)/10;0===a?(r=2*s,o=-r):(r=s/a*10,o=s-r)}return[r,o]}function O(e){var t=e.slice(-1)[0],n=t.barGap,i=t.barWidth,r=t.barNum,o=(n+i)*r-n;e.forEach((function(e){return e.barAllWidthAndGap=o}))}function k(e,t){return e=E(e),e=L(e),e=I(e),e=M(e),e}function L(e){return e.map((function(e){var t=e.labelAxis,n=e.barAllWidthAndGap,i=e.barGap,r=e.barWidth,o=e.barIndex,s=t.tickGap,a=t.tickPosition,l=t.axis,c="x"===l?0:1,u=a.map((function(e,t){var l=a[t][c]-s/2,u=l+(s-n)/2;return u+(o+.5)*r+o*i}));return f(f({},e),{},{barLabelAxisPos:u})}))}function E(e){return e.map((function(t){var n=(0,h.mergeSameStackData)(t,e);n=D(t,n);var i=t.valueAxis,r=i.axis,o=i.minValue,s=i.maxValue,a=i.linePosition,l=T(o,s,o<0?0:o,a,r),c=n.map((function(e){return T(o,s,e,a,r)})),u=c.map((function(e){return[l,e]}));return f(f({},t),{},{barValueAxisPos:u})}))}function D(e,t){var n=e.data;return t.map((function(e,t){return"number"===typeof n[t]?e:null})).filter((function(e){return null!==e}))}function I(e){return e.map((function(e){var t=e.barLabelAxisPos,n=e.data;return n.forEach((function(e,n){"number"!==typeof e&&(t[n]=null)})),f(f({},e),{},{barLabelAxisPos:t.filter((function(e){return null!==e}))})}))}function M(e){return e.forEach((function(e){var t=e.data,n=e.barLabelAxisPos,i=e.barValueAxisPos,r=t.filter((function(e){return"number"===typeof e})).length,o=n.length;o>r&&(n.splice(r),i.splice(r))})),e}function T(e,t,n,i,r){if("number"!==typeof n)return null;var o=t-e,s="x"===r?0:1,a=i[1][s]-i[0][s],l=(n-e)/o;0===o&&(l=0);var c=l*a;return c+i[0][s]}function A(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=N(e),o=j(e);return r.map((function(r){return{name:"rect",index:i,visible:e.backgroundBar.show,animationCurve:t,animationFrame:n,shape:r,style:o}}))}function N(e){var t=e.labelAxis,n=e.valueAxis,i=t.tickPosition,r=n.axis,o=n.linePosition,s=P(e),a=s/2,l="x"===r?0:1,c=i.map((function(e){return e[1-l]})),u=[o[0][l],o[1][l]],h=u[0],d=u[1];return c.map((function(e){return"x"===r?{x:h,y:e-a,w:d-h,h:s}:{x:e-a,y:d,w:s,h:h-d}}))}function P(e){var t=e.barAllWidthAndGap,n=e.barCategoryWidth,i=e.backgroundBar,r=i.width;return"number"===typeof r?r:"auto"===r?t:parseInt(r)/100*n}function j(e){return e.backgroundBar.style}function R(e){var t=e.barLabelAxisPos,n=e.animationCurve,i=e.animationFrame,r=e.rLevel,o=F(e);return t.map((function(t,s){return{name:o,index:r,animationCurve:n,animationFrame:i,shape:B(e,s),style:H(e,s)}}))}function F(e){var t=e.shapeType;return"leftEchelon"===t||"rightEchelon"===t?"polyline":"rect"}function B(e,t){var n=e.shapeType;return"leftEchelon"===n?W(e,t):"rightEchelon"===n?V(e,t):z(e,t)}function W(e,t){var n=e.barValueAxisPos,i=e.barLabelAxisPos,r=e.barWidth,o=e.echelonOffset,a=(0,s["default"])(n[t],2),l=a[0],c=a[1],u=i[t],h=r/2,d=e.valueAxis.axis,f=[];return"x"===d?(f[0]=[c,u-h],f[1]=[c,u+h],f[2]=[l,u+h],f[3]=[l+o,u-h],c-l<o&&f.splice(3,1)):(f[0]=[u-h,c],f[1]=[u+h,c],f[2]=[u+h,l],f[3]=[u-h,l-o],l-c<o&&f.splice(3,1)),{points:f,close:!0}}function V(e,t){var n=e.barValueAxisPos,i=e.barLabelAxisPos,r=e.barWidth,o=e.echelonOffset,a=(0,s["default"])(n[t],2),l=a[0],c=a[1],u=i[t],h=r/2,d=e.valueAxis.axis,f=[];return"x"===d?(f[0]=[c,u+h],f[1]=[c,u-h],f[2]=[l,u-h],f[3]=[l+o,u+h],c-l<o&&f.splice(2,1)):(f[0]=[u+h,c],f[1]=[u-h,c],f[2]=[u-h,l],f[3]=[u+h,l-o],l-c<o&&f.splice(2,1)),{points:f,close:!0}}function z(e,t){var n=e.barValueAxisPos,i=e.barLabelAxisPos,r=e.barWidth,o=(0,s["default"])(n[t],2),a=o[0],l=o[1],c=i[t],u=e.valueAxis.axis,h={};return"x"===u?(h.x=a,h.y=c-r/2,h.w=l-a,h.h=r):(h.x=c-r/2,h.y=l,h.w=r,h.h=a-l),h}function H(e,t){var n=e.barStyle,i=e.gradient,r=e.color,o=e.independentColor,s=e.independentColors,a=[n.fill||r],l=(0,h.deepMerge)(a,i.color);if(o){var c=s[t%s.length];l=c instanceof Array?c:[c]}1===l.length&&l.push(l[0]);var u=U(e,t);return(0,h.deepMerge)({gradientColor:l,gradientParams:u,gradientType:"linear",gradientWith:"fill"},n)}function U(e,t){var n=e.barValueAxisPos,i=e.barLabelAxisPos,r=e.data,o=e.valueAxis,a=o.linePosition,l=o.axis,c=(0,s["default"])(n[t],2),u=c[0],h=c[1],d=i[t],f=r[t],p=(0,s["default"])(a,2),g=p[0],m=p[1],v="x"===l?0:1,b=h;return e.gradient.local||(b=f<0?g[v]:m[v]),"y"===l?[d,b,d,u]:[b,d,u,d]}function q(e){var t=R(e),n=e.shapeType;return t.forEach((function(t){var i=t.shape;i="leftEchelon"===n?$(i,e):"rightEchelon"===n?K(i,e):G(i,e),t.shape=i})),t}function $(e,t){var n=t.valueAxis.axis;e=(0,u.deepClone)(e);var i=e,r=i.points,o="x"===n?0:1,s=r[2][o];return r.forEach((function(e){return e[o]=s})),e}function K(e,t){var n=t.valueAxis.axis;e=(0,u.deepClone)(e);var i=e,r=i.points,o="x"===n?0:1,s=r[2][o];return r.forEach((function(e){return e[o]=s})),e}function G(e,t){var n=t.valueAxis.axis,i=e.x,r=e.y,o=e.w,s=e.h;return"x"===n?o=0:(r+=s,s=0),{x:i,y:r,w:o,h:s}}function Y(e,t,n,i){var r=i.chart.render,o=F(t);e[n]&&e[n][0].name!==o&&(e[n].forEach((function(e){return r.delGraph(e)})),e[n]=null)}function Z(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=X(e),o=te(e);return r.map((function(r){return{name:"text",index:i,visible:e.label.show,animationCurve:t,animationFrame:n,shape:r,style:o}}))}function X(e){var t=Q(e),n=J(e);return n.map((function(e,n){return{position:e,content:t[n]}}))}function Q(e){var t=e.data,n=e.label,i=n.formatter;if(t=t.filter((function(e){return"number"===typeof e})).map((function(e){return e.toString()})),!i)return t;var o=(0,r["default"])(i);return"string"===o?t.map((function(e){return i.replace("{value}",e)})):"function"===o?t.map((function(e,t){return i({value:e,index:t})})):t}function J(e){var t=e.label,n=e.barValueAxisPos,i=e.barLabelAxisPos,r=t.position,o=t.offset,a=e.valueAxis.axis;return n.map((function(e,t){var n=(0,s["default"])(e,2),l=n[0],c=n[1],u=i[t],h=[c,u];return"bottom"===r&&(h=[l,u]),"center"===r&&(h=[(l+c)/2,u]),"y"===a&&h.reverse(),ee(h,o)}))}function ee(e,t){var n=(0,s["default"])(e,2),i=n[0],r=n[1],o=(0,s["default"])(t,2),a=o[0],l=o[1];return[i+a,r+l]}function te(e){var t=e.color,n=e.label.style,i=e.gradient.color;return i.length&&(t=i[0]),n=(0,h.deepMerge)({fill:t},n),n}},"20c8":function(e,t,n){"use strict";n.d(t,"b",(function(){return O}));var i=n("401b"),r=n("9850"),o=n("2cf4"),s=n("e263"),a=n("4a3f"),l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},c=[],u=[],h=[],d=[],f=[],p=[],g=Math.min,m=Math.max,v=Math.cos,b=Math.sin,y=Math.abs,_=Math.PI,w=2*_,C="undefined"!==typeof Float32Array,S=[];function x(e){var t=Math.round(e/_*1e8)/1e8;return t%2*_}function O(e,t){var n=x(e[0]);n<0&&(n+=w);var i=n-e[0],r=e[1];r+=i,!t&&r-n>=w?r=n+w:t&&n-r>=w?r=n-w:!t&&n>r?r=n+(w-x(n-r)):t&&n<r&&(r=n-(w-x(r-n))),e[0]=n,e[1]=r}var k=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n=n||0,n>0&&(this._ux=y(n/o["e"]/e)||0,this._uy=y(n/o["e"]/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(l.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=y(e-this._xi),i=y(t-this._yi),r=n>this._ux||i>this._uy;if(this.addData(l.L,e,t),this._ctx&&r&&this._ctx.lineTo(e,t),r)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,i,r,o){return this._drawPendingPt(),this.addData(l.C,e,t,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,r,o),this._xi=r,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(l.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(e,t,n,i,r,o){this._drawPendingPt(),S[0]=i,S[1]=r,O(S,o),i=S[0],r=S[1];var s=r-i;return this.addData(l.A,e,t,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,r,o),this._xi=v(r)*n+e,this._yi=b(r)*n+t,this},e.prototype.arcTo=function(e,t,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,r),this},e.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(l.R,e,t,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(l.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!C||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,i=this._len,r=0;r<t;r++)n+=e[r].len();C&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<t;r++)for(var o=e[r].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(e,t,n,i,r,o,s,a,l){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var u=0;u<arguments.length;u++)c[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,C&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){h[0]=h[1]=f[0]=f[1]=Number.MAX_VALUE,d[0]=d[1]=p[0]=p[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,o=0,a=0,c=0;for(e=0;e<this._len;){var u=t[e++],g=1===e;switch(g&&(n=t[e],o=t[e+1],a=n,c=o),u){case l.M:n=a=t[e++],o=c=t[e++],f[0]=a,f[1]=c,p[0]=a,p[1]=c;break;case l.L:Object(s["c"])(n,o,t[e],t[e+1],f,p),n=t[e++],o=t[e++];break;case l.C:Object(s["b"])(n,o,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],f,p),n=t[e++],o=t[e++];break;case l.Q:Object(s["e"])(n,o,t[e++],t[e++],t[e],t[e+1],f,p),n=t[e++],o=t[e++];break;case l.A:var m=t[e++],y=t[e++],_=t[e++],w=t[e++],C=t[e++],S=t[e++]+C;e+=1;var x=!t[e++];g&&(a=v(C)*_+m,c=b(C)*w+y),Object(s["a"])(m,y,_,w,C,S,x,f,p),n=v(S)*_+m,o=b(S)*w+y;break;case l.R:a=n=t[e++],c=o=t[e++];var O=t[e++],k=t[e++];Object(s["c"])(a,c,a+O,c+k,f,p);break;case l.Z:n=a,o=c;break}i["min"](h,h,f),i["max"](d,d,p)}return 0===e&&(h[0]=h[1]=d[0]=d[1]=0),new r["a"](h[0],h[1],d[0]-h[0],d[1]-h[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,i=this._uy,r=0,o=0,s=0,c=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,h=0,d=0,f=0;f<t;){var p=e[f++],_=1===f;_&&(r=e[f],o=e[f+1],s=r,c=o);var C=-1;switch(p){case l.M:r=s=e[f++],o=c=e[f++];break;case l.L:var S=e[f++],x=e[f++],O=S-r,k=x-o;(y(O)>n||y(k)>i||f===t-1)&&(C=Math.sqrt(O*O+k*k),r=S,o=x);break;case l.C:var L=e[f++],E=e[f++],D=(S=e[f++],x=e[f++],e[f++]),I=e[f++];C=Object(a["d"])(r,o,L,E,S,x,D,I,10),r=D,o=I;break;case l.Q:L=e[f++],E=e[f++],S=e[f++],x=e[f++];C=Object(a["k"])(r,o,L,E,S,x,10),r=S,o=x;break;case l.A:var M=e[f++],T=e[f++],A=e[f++],N=e[f++],P=e[f++],j=e[f++],R=j+P;f+=1,_&&(s=v(P)*A+M,c=b(P)*N+T),C=m(A,N)*g(w,Math.abs(j)),r=v(R)*A+M,o=b(R)*N+T;break;case l.R:s=r=e[f++],c=o=e[f++];var F=e[f++],B=e[f++];C=2*F+2*B;break;case l.Z:O=s-r,k=c-o;C=Math.sqrt(O*O+k*k),r=s,o=c;break}C>=0&&(u[d++]=C,h+=C)}return this._pathLen=h,h},e.prototype.rebuildPath=function(e,t){var n,i,r,o,s,h,d,f,p,_,w,C=this.data,S=this._ux,x=this._uy,O=this._len,k=t<1,L=0,E=0,D=0;if(!k||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,f=this._pathLen,p=t*f,p))e:for(var I=0;I<O;){var M=C[I++],T=1===I;switch(T&&(r=C[I],o=C[I+1],n=r,i=o),M!==l.L&&D>0&&(e.lineTo(_,w),D=0),M){case l.M:n=r=C[I++],i=o=C[I++],e.moveTo(r,o);break;case l.L:s=C[I++],h=C[I++];var A=y(s-r),N=y(h-o);if(A>S||N>x){if(k){var P=d[E++];if(L+P>p){var j=(p-L)/P;e.lineTo(r*(1-j)+s*j,o*(1-j)+h*j);break e}L+=P}e.lineTo(s,h),r=s,o=h,D=0}else{var R=A*A+N*N;R>D&&(_=s,w=h,D=R)}break;case l.C:var F=C[I++],B=C[I++],W=C[I++],V=C[I++],z=C[I++],H=C[I++];if(k){P=d[E++];if(L+P>p){j=(p-L)/P;Object(a["g"])(r,F,W,z,j,c),Object(a["g"])(o,B,V,H,j,u),e.bezierCurveTo(c[1],u[1],c[2],u[2],c[3],u[3]);break e}L+=P}e.bezierCurveTo(F,B,W,V,z,H),r=z,o=H;break;case l.Q:F=C[I++],B=C[I++],W=C[I++],V=C[I++];if(k){P=d[E++];if(L+P>p){j=(p-L)/P;Object(a["n"])(r,F,W,j,c),Object(a["n"])(o,B,V,j,u),e.quadraticCurveTo(c[1],u[1],c[2],u[2]);break e}L+=P}e.quadraticCurveTo(F,B,W,V),r=W,o=V;break;case l.A:var U=C[I++],q=C[I++],$=C[I++],K=C[I++],G=C[I++],Y=C[I++],Z=C[I++],X=!C[I++],Q=$>K?$:K,J=y($-K)>.001,ee=G+Y,te=!1;if(k){P=d[E++];L+P>p&&(ee=G+Y*(p-L)/P,te=!0),L+=P}if(J&&e.ellipse?e.ellipse(U,q,$,K,Z,G,ee,X):e.arc(U,q,Q,G,ee,X),te)break e;T&&(n=v(G)*$+U,i=b(G)*K+q),r=v(ee)*$+U,o=b(ee)*K+q;break;case l.R:n=r=C[I],i=o=C[I+1],s=C[I++],h=C[I++];var ne=C[I++],ie=C[I++];if(k){P=d[E++];if(L+P>p){var re=p-L;e.moveTo(s,h),e.lineTo(s+g(re,ne),h),re-=ne,re>0&&e.lineTo(s+ne,h+g(re,ie)),re-=ie,re>0&&e.lineTo(s+m(ne-re,0),h+ie),re-=ne,re>0&&e.lineTo(s,h+m(ie-re,0));break e}L+=P}e.rect(s,h,ne,ie);break;case l.Z:if(k){P=d[E++];if(L+P>p){j=(p-L)/P;e.lineTo(r*(1-j)+n*j,o*(1-j)+i*j);break e}L+=P}e.closePath(),r=n,o=i}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=l,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();t["a"]=k},"216a":function(e,t,n){"use strict";var i=n("9ab4"),r=n("3842"),o=n("f876"),s=n("944e"),a=n("89e3"),l=n("e0d8"),c=n("6d8b"),u=function(e,t,n,i){while(n<i){var r=n+i>>>1;e[r][1]<t?n=r+1:i=r}return n},h=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return Object(i["a"])(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return Object(o["h"])(e.value,o["i"][Object(o["l"])(Object(o["m"])(this._minLevelUnit))]||o["i"].second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale");return Object(o["r"])(e,t,n,r,i)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var i=this.getSetting("useUTC"),r=_(this._minLevelUnit,this._approxInterval,i,t);return n=n.concat(r),n.push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=o["a"],t[1]+=o["a"]),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-o["a"]}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=d.length,s=Math.min(u(d,this._approxInterval,0,o),o-1);this._interval=d[s][1],this._minLevelUnit=d[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return Object(c["isNumber"])(e)?e:+r["p"](e)},t.prototype.contain=function(e){return s["a"](this.parse(e),this._extent)},t.prototype.normalize=function(e){return s["f"](this.parse(e),this._extent)},t.prototype.scale=function(e){return s["g"](e,this._extent)},t.type="time",t}(a["a"]),d=[["second",o["d"]],["minute",o["c"]],["hour",o["b"]],["quarter-day",6*o["b"]],["half-day",12*o["b"]],["day",1.2*o["a"]],["half-week",3.5*o["a"]],["week",7*o["a"]],["month",31*o["a"]],["quarter",95*o["a"]],["half-year",o["e"]/2],["year",o["e"]]];function f(e,t,n,i){var s=r["p"](t),a=r["p"](n),l=function(e){return Object(o["n"])(s,e,i)===Object(o["n"])(a,e,i)},c=function(){return l("year")},u=function(){return c()&&l("month")},h=function(){return u()&&l("day")},d=function(){return h()&&l("hour")},f=function(){return d()&&l("minute")},p=function(){return f()&&l("second")},g=function(){return p()&&l("millisecond")};switch(e){case"year":return c();case"month":return u();case"day":return h();case"hour":return d();case"minute":return f();case"second":return p();case"millisecond":return g()}}function p(e,t){return e/=o["a"],e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function g(e){var t=30*o["a"];return e/=t,e>6?6:e>3?3:e>2?2:1}function m(e){return e/=o["b"],e>12?12:e>6?6:e>3.5?4:e>2?2:1}function v(e,t){return e/=t?o["c"]:o["d"],e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function b(e){return r["n"](e,!0)}function y(e,t,n){var i=new Date(e);switch(Object(o["m"])(t)){case"year":case"month":i[Object(o["x"])(n)](0);case"day":i[Object(o["g"])(n)](1);case"hour":i[Object(o["p"])(n)](0);case"minute":i[Object(o["v"])(n)](0);case"second":i[Object(o["A"])(n)](0),i[Object(o["t"])(n)](0)}return i.getTime()}function _(e,t,n,i){var r=1e4,s=o["B"],a=0;function l(e,t,n,r,o,s,a){var l=new Date(t),c=t,u=l[r]();while(c<n&&c<=i[1])a.push({value:c}),u+=e,l[o](u),c=l.getTime();a.push({value:c,notAdd:!0})}function u(e,r,s){var a=[],c=!r.length;if(!f(Object(o["m"])(e),i[0],i[1],n)){c&&(r=[{value:y(new Date(i[0]),e,n)},{value:i[1]}]);for(var u=0;u<r.length-1;u++){var h=r[u].value,d=r[u+1].value;if(h!==d){var _=void 0,w=void 0,C=void 0,S=!1;switch(e){case"year":_=Math.max(1,Math.round(t/o["a"]/365)),w=Object(o["j"])(n),C=Object(o["k"])(n);break;case"half-year":case"quarter":case"month":_=g(t),w=Object(o["w"])(n),C=Object(o["x"])(n);break;case"week":case"half-week":case"day":_=p(t,31),w=Object(o["f"])(n),C=Object(o["g"])(n),S=!0;break;case"half-day":case"quarter-day":case"hour":_=m(t),w=Object(o["o"])(n),C=Object(o["p"])(n);break;case"minute":_=v(t,!0),w=Object(o["u"])(n),C=Object(o["v"])(n);break;case"second":_=v(t,!1),w=Object(o["z"])(n),C=Object(o["A"])(n);break;case"millisecond":_=b(t),w=Object(o["s"])(n),C=Object(o["t"])(n);break}l(_,h,d,w,C,S,a),"year"===e&&s.length>1&&0===u&&s.unshift({value:s[0].value-_})}}for(u=0;u<a.length;u++)s.push(a[u]);return a}}for(var h=[],d=[],_=0,w=0,C=0;C<s.length&&a++<r;++C){var S=Object(o["m"])(s[C]);if(Object(o["q"])(s[C])){u(s[C],h[h.length-1]||[],d);var x=s[C+1]?Object(o["m"])(s[C+1]):null;if(S!==x){if(d.length){w=_,d.sort((function(e,t){return e.value-t.value}));for(var O=[],k=0;k<d.length;++k){var L=d[k].value;0!==k&&d[k-1].value===L||(O.push(d[k]),L>=i[0]&&L<=i[1]&&_++)}var E=(i[1]-i[0])/t;if(_>1.5*E&&w>E/1.5)break;if(h.push(O),_>E||e===s[C])break}d=[]}}}var D=Object(c["filter"])(Object(c["map"])(h,(function(e){return Object(c["filter"])(e,(function(e){return e.value>=i[0]&&e.value<=i[1]&&!e.notAdd}))})),(function(e){return e.length>0})),I=[],M=D.length-1;for(C=0;C<D.length;++C)for(var T=D[C],A=0;A<T.length;++A)I.push({value:T[A].value,level:M-C});I.sort((function(e,t){return e.value-t.value}));var N=[];for(C=0;C<I.length;++C)0!==C&&I[C].value===I[C-1].value||N.push(I[C]);return N}l["a"].registerClass(h),t["a"]=h},"217c":function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return b})),n.d(t,"e",(function(){return O})),n.d(t,"d",(function(){return k})),n.d(t,"a",(function(){return L}));var i=n("65ed"),r=n("eda2"),o=n("6d8b"),s=n("b7d9"),a=n("3842"),l="line-height:1";function c(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,o=e.fontWeight||"400",s=e.color||"#464646",a=e.fontSize||14,l=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+Object(i["a"])(r+"")+"px;color:"+Object(i["a"])(n)+";font-weight:"+Object(i["a"])(o+""),valueStyle:"font-size:"+Object(i["a"])(a+"")+"px;color:"+Object(i["a"])(s)+";font-weight:"+Object(i["a"])(l+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:o},valueStyle:{fontSize:a,fill:s,fontWeight:l}}}var u=[0,10,20,30],h=["","\n","\n\n","\n\n\n"];function d(e,t){return t.type=e,t}function f(e){return"section"===e.type}function p(e){return f(e)?m:v}function g(e){if(f(e)){var t=0,n=e.blocks.length,i=n>1||n>0&&!e.noHeader;return Object(o["each"])(e.blocks,(function(e){var n=g(e);n>=t&&(t=n+ +(i&&(!n||f(e)&&!e.noHeader)))})),t}return 0}function m(e,t,n,a){var u=t.noHeader,h=y(g(t)),d=[],f=t.blocks||[];Object(o["assert"])(!f||Object(o["isArray"])(f)),f=f||[];var m=e.orderMode;if(t.sortBlocks&&m){f=f.slice();var v={valueAsc:"asc",valueDesc:"desc"};if(Object(o["hasOwn"])(v,m)){var b=new s["a"](v[m],null);f.sort((function(e,t){return b.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===m&&f.reverse()}Object(o["each"])(f,(function(n,i){var r=t.valueFormatter,s=p(n)(r?Object(o["extend"])(Object(o["extend"])({},e),{valueFormatter:r}):e,n,i>0?h.html:0,a);null!=s&&d.push(s)}));var w="richText"===e.renderMode?d.join(h.richText):_(d.join(""),u?n:h.html);if(u)return w;var C=Object(r["h"])(t.header,"ordinal",e.useUTC),x=c(a,e.renderMode).nameStyle;return"richText"===e.renderMode?S(e,C,x)+h.richText+w:_('<div style="'+x+";"+l+';">'+Object(i["a"])(C)+"</div>"+w,n)}function v(e,t,n,i){var s=e.renderMode,a=t.noName,l=t.noValue,u=!t.markerType,h=t.name,d=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(e){return e=Object(o["isArray"])(e)?e:[e],Object(o["map"])(e,(function(e,t){return Object(r["h"])(e,Object(o["isArray"])(m)?m[t]:m,d)}))};if(!a||!l){var p=u?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",s),g=a?"":Object(r["h"])(h,"ordinal",d),m=t.valueType,v=l?[]:f(t.value,t.dataIndex),b=!u||!a,y=!u&&a,O=c(i,s),k=O.nameStyle,L=O.valueStyle;return"richText"===s?(u?"":p)+(a?"":S(e,g,k))+(l?"":x(e,v,b,y,L)):_((u?"":p)+(a?"":w(g,!u,k))+(l?"":C(v,b,y,L)),n)}}function b(e,t,n,i,r,o){if(e){var s=p(e),a={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter};return s(a,e,0,o)}}function y(e){return{html:u[e],richText:h[e]}}function _(e,t){var n='<div style="clear:both"></div>',i="margin: "+t+"px 0 0";return'<div style="'+i+";"+l+';">'+e+n+"</div>"}function w(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+Object(i["a"])(e)+"</span>"}function C(e,t,n,r){var s=n?"10px":"20px",a=t?"float:right;margin-left:"+s:"";return e=Object(o["isArray"])(e)?e:[e],'<span style="'+a+";"+r+'">'+Object(o["map"])(e,(function(e){return Object(i["a"])(e)})).join(" ")+"</span>"}function S(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function x(e,t,n,i,r){var s=[r],a=i?10:20;return n&&s.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Object(o["isArray"])(t)?t.join(" "):t,s)}function O(e,t){var n=e.getData().getItemVisual(t,"style"),i=n[e.visualDrawType];return Object(r["c"])(i)}function k(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var L=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Object(a["j"])()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var i="richText"===n?this._generateStyleName():null,s=Object(r["g"])({color:t,type:e,renderMode:n,markerId:i});return Object(o["isString"])(s)?s:(this.richTextStyles[i]=s.style,s.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Object(o["isArray"])(t)?Object(o["each"])(t,(function(e){return Object(o["extend"])(n,e)})):Object(o["extend"])(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},e}()},"21a1":function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function e(e,t){return t={exports:{}},e(t,t.exports),t.exports}var n=e((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,i){var r=i&&!0===i.clone;return r&&e(n)?o(t(n),n,i):n}function i(t,i,r){var s=t.slice();return i.forEach((function(i,a){"undefined"===typeof s[a]?s[a]=n(i,r):e(i)?s[a]=o(t[a],i,r):-1===t.indexOf(i)&&s.push(n(i,r))})),s}function r(t,i,r){var s={};return e(t)&&Object.keys(t).forEach((function(e){s[e]=n(t[e],r)})),Object.keys(i).forEach((function(a){e(i[a])&&t[a]?s[a]=o(t[a],i[a],r):s[a]=n(i[a],r)})),s}function o(e,t,o){var s=Array.isArray(t),a=o||{arrayMerge:i},l=a.arrayMerge||i;return s?Array.isArray(e)?l(e,t,o):n(t,o):r(e,t,o)}return o.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return o(e,n,t)}))},o}))}));function i(e){return e=e||Object.create(null),{on:function(t,n){(e[t]||(e[t]=[])).push(n)},off:function(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit:function(t,n){(e[t]||[]).map((function(e){e(n)})),(e["*"]||[]).map((function(e){e(t,n)}))}}}var r=e((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),o=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,""");return t+'="'+n+'"'})).join(" ")},s=r.svg,a=r.xlink,l={};l[s.name]=s.uri,l[a.name]=a.uri;var c,u=function(e,t){void 0===e&&(e="");var i=n(l,t||{}),r=o(i);return"<svg "+r+">"+e+"</svg>"},h=r.svg,d=r.xlink,f={attrs:(c={style:["position: absolute","width: 0","height: 0"].join("; "),"aria-hidden":"true"},c[h.name]=h.uri,c[d.name]=d.uri,c)},p=function(e){this.config=n(f,e||{}),this.symbols=[]};p.prototype.add=function(e){var t=this,n=t.symbols,i=this.find(e.id);return i?(n[n.indexOf(i)]=e,!1):(n.push(e),!0)},p.prototype.remove=function(e){var t=this,n=t.symbols,i=this.find(e);return!!i&&(n.splice(n.indexOf(i),1),i.destroy(),!0)},p.prototype.find=function(e){return this.symbols.filter((function(t){return t.id===e}))[0]||null},p.prototype.has=function(e){return null!==this.find(e)},p.prototype.stringify=function(){var e=this.config,t=e.attrs,n=this.symbols.map((function(e){return e.stringify()})).join("");return u(n,t)},p.prototype.toString=function(){return this.stringify()},p.prototype.destroy=function(){this.symbols.forEach((function(e){return e.destroy()}))};var g=function(e){var t=e.id,n=e.viewBox,i=e.content;this.id=t,this.viewBox=n,this.content=i};g.prototype.stringify=function(){return this.content},g.prototype.toString=function(){return this.stringify()},g.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var m=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n},v=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return m(u(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,n),t}(g),b={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},y=function(e){return Array.prototype.slice.call(e,0)},_={isChrome:function(){return/chrome/i.test(navigator.userAgent)},isFirefox:function(){return/firefox/i.test(navigator.userAgent)},isIE:function(){return/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)},isEdge:function(){return/edge/i.test(navigator.userAgent)}},w=function(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(e,!1,!1,t),window.dispatchEvent(n)},C=function(e){var t=[];return y(e.querySelectorAll("style")).forEach((function(e){e.textContent+="",t.push(e)})),t},S=function(e){return(e||window.location.href).split("#")[0]},x=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",(function(t,n,i){w(e,{oldUrl:i,newUrl:n})}))}])},O="linearGradient, radialGradient, pattern, mask, clipPath",k=function(e,t){return void 0===t&&(t=O),y(e.querySelectorAll("symbol")).forEach((function(e){y(e.querySelectorAll(t)).forEach((function(t){e.parentNode.insertBefore(t,e)}))})),e};function L(e,t){var n=y(e).reduce((function(e,n){if(!n.attributes)return e;var i=y(n.attributes),r=t?i.filter(t):i;return e.concat(r)}),[]);return n}var E=r.xlink.uri,D="xlink:href",I=/[{}|\\\^\[\]`"<>]/g;function M(e){return e.replace(I,(function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()}))}function T(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function A(e,t,n){return y(e).forEach((function(e){var i=e.getAttribute(D);if(i&&0===i.indexOf(t)){var r=i.replace(t,n);e.setAttributeNS(E,D,r)}})),e}var N,P=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],j=P.map((function(e){return"["+e+"]"})).join(","),R=function(e,t,n,i){var r=M(n),o=M(i),s=e.querySelectorAll(j),a=L(s,(function(e){var t=e.localName,n=e.value;return-1!==P.indexOf(t)&&-1!==n.indexOf("url("+r)}));a.forEach((function(e){return e.value=e.value.replace(new RegExp(T(r),"g"),o)})),A(t,r,o)},F={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},B=function(e){function t(t){var r=this;void 0===t&&(t={}),e.call(this,n(b,t));var o=i();this._emitter=o,this.node=null;var s=this,a=s.config;if(a.autoConfigure&&this._autoConfigure(t),a.syncUrlsWithBaseTag){var l=document.getElementsByTagName("base")[0].getAttribute("href");o.on(F.MOUNT,(function(){return r.updateUrls("#",l)}))}var c=this._handleLocationChange.bind(this);this._handleLocationChange=c,a.listenLocationChangeEvent&&window.addEventListener(a.locationChangeEvent,c),a.locationChangeAngularEmitter&&x(a.locationChangeEvent),o.on(F.MOUNT,(function(e){a.moveGradientsOutsideSymbol&&k(e)})),o.on(F.SYMBOL_MOUNT,(function(e){a.moveGradientsOutsideSymbol&&k(e.parentNode),(_.isIE()||_.isEdge())&&C(e)}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},t.prototype._autoConfigure=function(e){var t=this,n=t.config;"undefined"===typeof e.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof e.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="undefined"!==typeof window.angular),"undefined"===typeof e.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=_.isFirefox())},t.prototype._handleLocationChange=function(e){var t=e.detail,n=t.oldUrl,i=t.newUrl;this.updateUrls(n,i)},t.prototype.add=function(t){var n=this,i=e.prototype.add.call(this,t);return this.isMounted&&i&&(t.mount(n.node),this._emitter.emit(F.SYMBOL_MOUNT,t.node)),i},t.prototype.attach=function(e){var t=this,n=this;if(n.isMounted)return n.node;var i="string"===typeof e?document.querySelector(e):e;return n.node=i,this.symbols.forEach((function(e){e.mount(n.node),t._emitter.emit(F.SYMBOL_MOUNT,e.node)})),y(i.querySelectorAll("symbol")).forEach((function(e){var t=v.createFromExistingNode(e);t.node=e,n.add(t)})),this._emitter.emit(F.MOUNT,i),i},t.prototype.destroy=function(){var e=this,t=e.config,n=e.symbols,i=e._emitter;n.forEach((function(e){return e.destroy()})),i.off("*"),window.removeEventListener(t.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},t.prototype.mount=function(e,t){void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1);var n=this;if(n.isMounted)return n.node;var i="string"===typeof e?document.querySelector(e):e,r=n.render();return this.node=r,t&&i.childNodes[0]?i.insertBefore(r,i.childNodes[0]):i.appendChild(r),this._emitter.emit(F.MOUNT,r),r},t.prototype.render=function(){return m(this.stringify())},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},t.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return R(this.node,n,S(e)+"#",S(t)+"#"),!0},Object.defineProperties(t.prototype,r),t}(p),W=e((function(e){
|
||
/*!
|
||
* domready (c) Dustin Diaz 2014 - License MIT
|
||
*/
|
||
!function(t,n){e.exports=n()}(0,(function(){var e,t=[],n=document,i=n.documentElement.doScroll,r="DOMContentLoaded",o=(i?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return o||n.addEventListener(r,e=function(){n.removeEventListener(r,e),o=1;while(e=t.shift())e()}),function(e){o?setTimeout(e,0):t.push(e)}}))})),V="__SVG_SPRITE_NODE__",z="__SVG_SPRITE__",H=!!window[z];H?N=window[z]:(N=new B({attrs:{id:V,"aria-hidden":"true"}}),window[z]=N);var U=function(){var e=document.getElementById(V);e?N.attach(e):N.mount(document.body,!0)};document.body?U():W(U);var q=N;return q}))}).call(this,n("c8ba"))},"21a6":function(e,t,n){(function(n){var i,r,o;(function(n,s){r=[],i=s,o="function"===typeof i?i.apply(t,r):i,void 0===o||(e.exports=o)})(0,(function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function i(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){l(i.response,t,n)},i.onerror=function(){console.error("could not download file")},i.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(i){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var s="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=s.saveAs||("object"!=typeof window||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,t,n){var a=s.URL||s.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?o(l):r(l.href)?i(e,t,n):o(l,l.target="_blank")):(l.href=a.createObjectURL(e),setTimeout((function(){a.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,s){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,s),n);else if(r(e))i(e,n,s);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){o(a)}))}}:function(e,t,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof e)return i(e,t,n);var o="application/octet-stream"===e.type,l=/constructor/i.test(s.HTMLElement)||s.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&l||a)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location=e,r=null},u.readAsDataURL(e)}else{var h=s.URL||s.webkitURL,d=h.createObjectURL(e);r?r.location=d:location.href=d,r=null,setTimeout((function(){h.revokeObjectURL(d)}),4e4)}});s.saveAs=l.saveAs=l,e.exports=l}))}).call(this,n("c8ba"))},"222a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pieConfig=void 0;var i={show:!0,name:"",radius:"50%",center:["50%","50%"],startAngle:-Math.PI/2,roseType:!1,roseSort:!0,roseIncrement:"auto",data:[],insideLabel:{show:!1,formatter:"{percent}%",style:{fontSize:10,fill:"#fff",textAlign:"center",textBaseline:"middle"}},outsideLabel:{show:!0,formatter:"{name}",style:{fontSize:11},labelLineBendGap:"20%",labelLineEndLength:50,labelLineStyle:{lineWidth:1}},pieStyle:{},percentToFixed:0,rLevel:10,animationDelayGap:60,animationCurve:"easeOutCubic",startAnimationCurve:"easeOutBack",animationFrame:50};t.pieConfig=i},2236:function(e,t,n){var i=n("5a43");function r(e){if(Array.isArray(e))return i(e)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},2266:function(e,t,n){var i=n("0366"),r=n("c65b"),o=n("825a"),s=n("0d51"),a=n("e95a"),l=n("07fa"),c=n("3a9b"),u=n("9a1f"),h=n("35a1"),d=n("2a62"),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,n){var m,v,b,y,_,w,C,S=n&&n.that,x=!(!n||!n.AS_ENTRIES),O=!(!n||!n.IS_RECORD),k=!(!n||!n.IS_ITERATOR),L=!(!n||!n.INTERRUPTED),E=i(t,S),D=function(e){return m&&d(m,"normal",e),new p(!0,e)},I=function(e){return x?(o(e),L?E(e[0],e[1],D):E(e[0],e[1])):L?E(e,D):E(e)};if(O)m=e.iterator;else if(k)m=e;else{if(v=h(e),!v)throw f(s(e)+" is not iterable");if(a(v)){for(b=0,y=l(e);y>b;b++)if(_=I(e[b]),_&&c(g,_))return _;return new p(!1)}m=u(e,v)}w=O?e.next:m.next;while(!(C=r(w,m)).done){try{_=I(C.value)}catch(M){d(m,"throw",M)}if("object"==typeof _&&_&&c(g,_))return _}return new p(!1)}},"22b4":function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var i=n("1be7"),r=n("b12f"),o=n("e887"),s=n("6cb7"),a=n("4f85"),l=n("6d8b"),c=n("58c9"),u=n("697e7"),h=[],d={registerPreprocessor:i["u"],registerProcessor:i["v"],registerPostInit:i["s"],registerPostUpdate:i["t"],registerUpdateLifecycle:i["y"],registerAction:i["m"],registerCoordinateSystem:i["n"],registerLayout:i["o"],registerVisual:i["z"],registerTransform:i["x"],registerLoading:i["p"],registerMap:i["r"],registerImpl:c["b"],PRIORITY:i["a"],ComponentModel:s["a"],ComponentView:r["a"],SeriesModel:a["b"],ChartView:o["a"],registerComponentModel:function(e){s["a"].registerClass(e)},registerComponentView:function(e){r["a"].registerClass(e)},registerSeriesModel:function(e){a["b"].registerClass(e)},registerChartView:function(e){o["a"].registerClass(e)},registerSubTypeDefaulter:function(e,t){s["a"].registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Object(u["registerPainter"])(e,t)}};function f(e){Object(l["isArray"])(e)?Object(l["each"])(e,(function(e){f(e)})):Object(l["indexOf"])(h,e)>=0||(h.push(e),Object(l["isFunction"])(e)&&(e={install:e}),e.install(d))}},"22d1":function(e,t,n){"use strict";var i=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),r=function(){function e(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return e}(),o=new r;function s(e,t){var n=t.browser,i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),s=/micromessenger/i.test(e);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),s&&(n.weChat=!0),t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!==typeof document;var a=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in a||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in a)&&!("OTransition"in a),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(o.node=!0,o.svgSupported=!0):s(navigator.userAgent,o),t["a"]=o},2306:function(e,t,n){"use strict";n.r(t),n.d(t,"extendShape",(function(){return P})),n.d(t,"extendPath",(function(){return R})),n.d(t,"registerShape",(function(){return F})),n.d(t,"getShapeClass",(function(){return B})),n.d(t,"makePath",(function(){return W})),n.d(t,"makeImage",(function(){return V})),n.d(t,"mergePath",(function(){return H})),n.d(t,"resizePath",(function(){return U})),n.d(t,"subPixelOptimizeLine",(function(){return q})),n.d(t,"subPixelOptimizeRect",(function(){return $})),n.d(t,"subPixelOptimize",(function(){return K})),n.d(t,"getTransform",(function(){return G})),n.d(t,"applyTransform",(function(){return Y})),n.d(t,"transformDirection",(function(){return Z})),n.d(t,"groupTransition",(function(){return J})),n.d(t,"clipPointsByRect",(function(){return ee})),n.d(t,"clipRectByRect",(function(){return te})),n.d(t,"createIcon",(function(){return ne})),n.d(t,"linePolygonIntersect",(function(){return ie})),n.d(t,"lineLineIntersect",(function(){return re})),n.d(t,"setTooltipConfig",(function(){return ae})),n.d(t,"traverseElements",(function(){return ce}));var i=n("342d"),r=n("1687"),o=n("401b"),s=n("cbe5");n.d(t,"Path",(function(){return s["b"]}));var a=n("8582"),l=n("0da8");n.d(t,"Image",(function(){return l["a"]}));var c=n("2dc5");n.d(t,"Group",(function(){return c["a"]}));var u=n("76a5");n.d(t,"Text",(function(){return u["a"]}));var h=n("d9fc");n.d(t,"Circle",(function(){return h["a"]}));var d=n("ae69");n.d(t,"Ellipse",(function(){return d["a"]}));var f=n("4aa2");n.d(t,"Sector",(function(){return f["a"]}));var p=n("4573");n.d(t,"Ring",(function(){return p["a"]}));var g=n("87b1");n.d(t,"Polygon",(function(){return g["a"]}));var m=n("d498");n.d(t,"Polyline",(function(){return m["a"]}));var v=n("c7a2");n.d(t,"Rect",(function(){return v["a"]}));var b=n("cb11");n.d(t,"Line",(function(){return b["a"]}));var y=n("ac0f");n.d(t,"BezierCurve",(function(){return y["a"]}));var _=n("8d32");n.d(t,"Arc",(function(){return _["a"]}));var w=n("d4c6");n.d(t,"CompoundPath",(function(){return w["a"]}));var C=n("48a9");n.d(t,"LinearGradient",(function(){return C["a"]}));var S=n("dded");n.d(t,"RadialGradient",(function(){return S["a"]}));var x=n("9850");n.d(t,"BoundingRect",(function(){return x["a"]}));var O=n("ca80");n.d(t,"OrientedBoundingRect",(function(){return O["a"]}));var k=n("dce8");n.d(t,"Point",(function(){return k["a"]}));var L=n("392f");n.d(t,"IncrementalDisplayable",(function(){return L["a"]}));var E=n("9cf9"),D=n("6d8b"),I=n("861c"),M=n("deca");n.d(t,"updateProps",(function(){return M["h"]})),n.d(t,"initProps",(function(){return M["c"]})),n.d(t,"removeElement",(function(){return M["e"]})),n.d(t,"removeElementWithFadeOut",(function(){return M["f"]})),n.d(t,"isElementRemoved",(function(){return M["d"]}));var T=Math.max,A=Math.min,N={};function P(e){return s["b"].extend(e)}var j=i["c"];function R(e,t){return j(e,t)}function F(e,t){N[e]=t}function B(e){if(N.hasOwnProperty(e))return N[e]}function W(e,t,n,r){var o=i["b"](e,t);return n&&("center"===r&&(n=z(n,o.getBoundingRect())),U(o,n)),o}function V(e,t,n){var i=new l["a"]({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var r={width:e.width,height:e.height};i.setStyle(z(t,r))}}});return i}function z(e,t){var n,i=t.width/t.height,r=e.height*i;r<=e.width?n=e.height:(r=e.width,n=r/i);var o=e.x+e.width/2,s=e.y+e.height/2;return{x:o-r/2,y:s-n/2,width:r,height:n}}var H=i["d"];function U(e,t){if(e.applyTransform){var n=e.getBoundingRect(),i=n.calculateTransform(t);e.applyTransform(i)}}function q(e,t){return E["b"](e,e,{lineWidth:t}),e}function $(e){return E["c"](e.shape,e.shape,e.style),e}var K=E["a"];function G(e,t){var n=r["identity"]([]);while(e&&e!==t)r["mul"](n,e.getLocalTransform(),n),e=e.parent;return n}function Y(e,t,n){return t&&!Object(D["isArrayLike"])(t)&&(t=a["c"].getLocalTransform(t)),n&&(t=r["invert"]([],t)),o["applyTransform"]([],e,t)}function Z(e,t,n){var i=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),r=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-i:"right"===e?i:0,"top"===e?-r:"bottom"===e?r:0];return o=Y(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function X(e){return!e.isGroup}function Q(e){return null!=e.shape}function J(e,t,n){if(e&&t){var i=r(e);t.traverse((function(e){if(X(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),Object(M["h"])(e,r,n,Object(I["a"])(e).dataIndex)}}}))}function r(e){var t={};return e.traverse((function(e){X(e)&&e.anid&&(t[e.anid]=e)})),t}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Q(e)&&(t.shape=Object(D["extend"])({},e.shape)),t}}function ee(e,t){return Object(D["map"])(e,(function(e){var n=e[0];n=T(n,t.x),n=A(n,t.x+t.width);var i=e[1];return i=T(i,t.y),i=A(i,t.y+t.height),[n,i]}))}function te(e,t){var n=T(e.x,t.x),i=A(e.x+e.width,t.x+t.width),r=T(e.y,t.y),o=A(e.y+e.height,t.y+t.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function ne(e,t,n){var i=Object(D["extend"])({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),Object(D["defaults"])(r,n),new l["a"](i)):W(e.replace("path://",""),i,n,"center")}function ie(e,t,n,i,r){for(var o=0,s=r[r.length-1];o<r.length;o++){var a=r[o];if(re(e,t,n,i,a[0],a[1],s[0],s[1]))return!0;s=a}}function re(e,t,n,i,r,o,s,a){var l=n-e,c=i-t,u=s-r,h=a-o,d=oe(u,h,l,c);if(se(d))return!1;var f=e-r,p=t-o,g=oe(f,p,l,c)/d;if(g<0||g>1)return!1;var m=oe(f,p,u,h)/d;return!(m<0||m>1)}function oe(e,t,n,i){return e*i-n*t}function se(e){return e<=1e-6&&e>=-1e-6}function ae(e){var t=e.itemTooltipOption,n=e.componentModel,i=e.itemName,r=Object(D["isString"])(t)?{formatter:t}:t,o=n.mainType,s=n.componentIndex,a={componentType:o,name:i,$vars:["name"]};a[o+"Index"]=s;var l=e.formatterParamsExtra;l&&Object(D["each"])(Object(D["keys"])(l),(function(e){Object(D["hasOwn"])(a,e)||(a[e]=l[e],a.$vars.push(e))}));var c=Object(I["a"])(e.el);c.componentMainType=o,c.componentIndex=s,c.tooltipConfig={name:i,option:Object(D["defaults"])({content:i,encodeHTMLContent:!0,formatterParams:a},r)}}function le(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function ce(e,t){if(e)if(Object(D["isArray"])(e))for(var n=0;n<e.length;n++)le(e[n],t);else le(e,t)}F("circle",h["a"]),F("ellipse",d["a"]),F("sector",f["a"]),F("ring",p["a"]),F("polygon",g["a"]),F("polyline",m["a"]),F("rect",v["a"]),F("line",b["a"]),F("bezierCurve",y["a"]),F("arc",_["a"])},2355:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return c}));var i=n("ca80"),r=n("9850");function o(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var o=r.label,s=o.getComputedTransform(),a=o.getBoundingRect(),l=!s||s[1]<1e-5&&s[2]<1e-5,c=o.style.margin||0,u=a.clone();u.applyTransform(s),u.x-=c/2,u.y-=c/2,u.width+=c,u.height+=c;var h=l?new i["a"](a,s):null;t.push({label:o,labelLine:r.labelLine,rect:u,localRect:a,obb:h,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:l,transform:s})}}return t}function s(e,t,n,i,r,o){var s=e.length;if(!(s<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var a,l=0,c=!1,u=[],h=0,d=0;d<s;d++){var f=e[d],p=f.rect;a=p[t]-l,a<0&&(p[t]-=a,f.label[t]-=a,c=!0);var g=Math.max(-a,0);u.push(g),h+=g,l=p[t]+p[n]}h>0&&o&&C(-h/s,0,s);var m,v,b=e[0],y=e[s-1];return _(),m<0&&S(-m,.8),v<0&&S(v,.8),_(),w(m,v,1),w(v,m,-1),_(),m<0&&x(-m),v<0&&x(v),c}function _(){m=b.rect[t]-i,v=r-y.rect[t]-y.rect[n]}function w(e,t,n){if(e<0){var i=Math.min(t,-e);if(i>0){C(i*n,0,s);var r=i+e;r<0&&S(-r*n,1)}else S(-e*n,1)}}function C(n,i,r){0!==n&&(c=!0);for(var o=i;o<r;o++){var s=e[o],a=s.rect;a[t]+=n,s.label[t]+=n}}function S(i,r){for(var o=[],a=0,l=1;l<s;l++){var c=e[l-1].rect,u=Math.max(e[l].rect[t]-c[t]-c[n],0);o.push(u),a+=u}if(a){var h=Math.min(Math.abs(i)/a,r);if(i>0)for(l=0;l<s-1;l++){var d=o[l]*h;C(d,0,l+1)}else for(l=s-1;l>0;l--){d=o[l-1]*h;C(-d,l,s)}}}function x(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(s-1)),i=0;i<s-1;i++)if(t>0?C(n,0,i+1):C(-n,s-i-1,s),e-=n,e<=0)return}}function a(e,t,n,i){return s(e,"x","width",t,n,i)}function l(e,t,n,i){return s(e,"y","height",t,n,i)}function c(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new r["a"](0,0,0,0);function o(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var s=0;s<e.length;s++){var a=e[s],l=a.axisAligned,c=a.localRect,u=a.transform,h=a.label,d=a.labelLine;n.copy(a.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=a.obb,p=!1,g=0;g<t.length;g++){var m=t[g];if(n.intersect(m.rect)){if(l&&m.axisAligned){p=!0;break}if(m.obb||(m.obb=new i["a"](m.localRect,m.transform)),f||(f=new i["a"](c,u)),f.intersect(m.obb)){p=!0;break}}}p?(o(h),d&&o(d)):(h.attr("ignore",a.defaultAttr.ignore),d&&d.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}},"23cb":function(e,t,n){var i=n("5926"),r=Math.max,o=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):o(n,t)}},"23dc":function(e,t,n){var i=n("d44e");i(Math,"Math",!0)},"23e7":function(e,t,n){var i=n("da84"),r=n("06cf").f,o=n("9112"),s=n("cb2d"),a=n("6374"),l=n("e893"),c=n("94ca");e.exports=function(e,t){var n,u,h,d,f,p,g=e.target,m=e.global,v=e.stat;if(u=m?i:v?i[g]||a(g,{}):(i[g]||{}).prototype,u)for(h in t){if(f=t[h],e.dontCallGetSet?(p=r(u,h),d=p&&p.value):d=u[h],n=c(m?h:g+(v?".":"#")+h,e.forced),!n&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),s(u,h,f,e)}}},"23ec":function(e,t,n){"use strict";n.r(t);var i=n("5fe7"),r=n("a666"),o=n("b2cc"),s=n("b707"),a=n("1b69"),l=n("252f"),c=n("b7d0"),u=n("fbba"),h=n("d1a7"),d=n("74ce"),f=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},p=function(e,t){return function(n,i){t(n,i,e)}};let g=class extends r["a"]{constructor(e,t,n,r){super(),this._modelService=t,this._themeService=n,this._configurationService=r,this._editor=e,this._tokenizeViewport=new i["e"](()=>this._tokenizeViewportNow(),100),this._outstandingRequests=[],this._register(this._editor.onDidScrollChange(()=>{this._tokenizeViewport.schedule()})),this._register(this._editor.onDidChangeModel(()=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(this._editor.onDidChangeModelContent(e=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(s["k"].onDidChange(()=>{this._cancelAll(),this._tokenizeViewport.schedule()})),this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(h["b"])&&(this._cancelAll(),this._tokenizeViewport.schedule())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),this._tokenizeViewport.schedule()}))}_cancelAll(){for(const e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,n=this._outstandingRequests.length;t<n;t++)if(this._outstandingRequests[t]===e)return void this._outstandingRequests.splice(t,1)}_tokenizeViewportNow(){if(!this._editor.hasModel())return;const e=this._editor.getModel();if(e.hasCompleteSemanticTokens())return;if(!Object(h["c"])(e,this._themeService,this._configurationService))return void(e.hasSomeSemanticTokens()&&e.setSemanticTokens(null,!1));const t=Object(d["a"])(e);if(!t)return void(e.hasSomeSemanticTokens()&&e.setSemanticTokens(null,!1));const n=this._modelService.getSemanticTokensProviderStyling(t),i=this._editor.getVisibleRangesPlusViewportAboveBelow();this._outstandingRequests=this._outstandingRequests.concat(i.map(i=>this._requestRange(e,i,t,n)))}_requestRange(e,t,n,r){const o=e.getVersionId(),s=Object(i["h"])(i=>Promise.resolve(n.provideDocumentRangeSemanticTokens(e,t,i)));return s.then(n=>{n&&!e.isDisposed()&&e.getVersionId()===o&&e.setPartialSemanticTokens(t,Object(l["b"])(n,r,e.getLanguageIdentifier()))}).then(()=>this._removeOutstandingRequest(s),()=>this._removeOutstandingRequest(s)),s}};g.ID="editor.contrib.viewportSemanticTokens",g=f([p(1,a["a"]),p(2,c["b"]),p(3,u["a"])],g),Object(o["l"])(g.ID,g)},"23f2":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return n.e("chunk-2d221a34").then(n.bind(null,"cacc"))}})},"241c":function(e,t,n){var i=n("ca84"),r=n("7839"),o=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},2444:function(e,t,n){"use strict";(function(t){var i=n("c532"),r=n("c8af"),o=n("387f"),s={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function l(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}function c(e,t,n){if(i.isString(e))try{return(t||JSON.parse)(e),i.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}var u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:l(),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)||t&&"application/json"===t["Content-Type"]?(a(t,"application/json"),c(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,s=!n&&"json"===this.responseType;if(s||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(s){if("SyntaxError"===a.name)throw o(a,this,"E_JSON_PARSE");throw a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){u.headers[e]=i.merge(s)})),e.exports=u}).call(this,n("4362"))},2500:function(e,t,n){"use strict";var i=n("a29f"),r=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:i.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t){return e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",h=function(e,t){var n={__proto__:null},h=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;h=h.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var d,f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=h.split(t.delimiter,f),g=-1,m=t.charset;if(t.charsetSentinel)for(d=0;d<p.length;++d)0===p[d].indexOf("utf8=")&&(p[d]===u?m="utf-8":p[d]===c&&(m="iso-8859-1"),g=d,d=p.length);for(d=0;d<p.length;++d)if(d!==g){var v,b,y=p[d],_=y.indexOf("]="),w=-1===_?y.indexOf("="):_+1;-1===w?(v=t.decoder(y,s.decoder,m,"key"),b=t.strictNullHandling?null:""):(v=t.decoder(y.slice(0,w),s.decoder,m,"key"),b=i.maybeMap(l(y.slice(w+1),t),(function(e){return t.decoder(e,s.decoder,m,"value")}))),b&&t.interpretNumericEntities&&"iso-8859-1"===m&&(b=a(b)),y.indexOf("[]=")>-1&&(b=o(b)?[b]:b);var C=r.call(n,v);C&&"combine"===t.duplicates?n[v]=i.combine(n[v],b):C&&"last"!==t.duplicates||(n[v]=b)}return n},d=function(e,t,n,i){for(var r=i?t:l(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if("[]"===a&&n.parseArrays)s=n.allowEmptyArrays&&(""===r||n.strictNullHandling&&null===r)?[]:[].concat(r);else{s=n.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,h=parseInt(u,10);n.parseArrays||""!==u?!isNaN(h)&&a!==u&&String(h)===u&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(s=[],s[h]=r):"__proto__"!==u&&(s[u]=r):s={0:r}}r=s}return r},f=function(e,t,n,i){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=n.depth>0&&s.exec(o),c=l?o.slice(0,l.index):o,u=[];if(c){if(!n.plainObjects&&r.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}var h=0;while(n.depth>0&&null!==(l=a.exec(o))&&h<n.depth){if(h+=1,!n.plainObjects&&r.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(l[1])}if(l){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");u.push("["+o.slice(l.index)+"]")}return d(u,t,n,i)}},p=function(e){if(!e)return s;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.decodeDotInKeys&&"boolean"!==typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&"undefined"!==typeof e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t="undefined"===typeof e.charset?s.charset:e.charset,n="undefined"===typeof e.duplicates?s.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");var r="undefined"===typeof e.allowDots?!0===e.decodeDotInKeys||s.allowDots:!!e.allowDots;return{allowDots:r,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:s.comma,decodeDotInKeys:"boolean"===typeof e.decodeDotInKeys?e.decodeDotInKeys:s.decodeDotInKeys,decoder:"function"===typeof e.decoder?e.decoder:s.decoder,delimiter:"string"===typeof e.delimiter||i.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:s.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:s.plainObjects,strictDepth:"boolean"===typeof e.strictDepth?!!e.strictDepth:s.strictDepth,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}};e.exports=function(e,t){var n=p(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var r="string"===typeof e?h(e,n):e,o=n.plainObjects?Object.create(null):{},s=Object.keys(r),a=0;a<s.length;++a){var l=s[a],c=f(l,r[l],n,"string"===typeof e);o=i.merge(o,c,n)}return!0===n.allowSparse?o:i.compact(o)}},2504:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var i=n("308f");const r=Object.freeze((function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}}));var o;(function(e){function t(t){return t===e.None||t===e.Cancelled||(t instanceof s||!(!t||"object"!==typeof t)&&("boolean"===typeof t.isCancellationRequested&&"function"===typeof t.onCancellationRequested))}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i["c"].None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})})(o||(o={}));class s{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?r:(this._emitter||(this._emitter=new i["b"]),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token instanceof s&&this._token.cancel():this._token=o.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof s&&this._token.dispose():this._token=o.None}}},2527:function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},"252f":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a}));var i=n("b707"),r=n("d3d7"),o=n("4111");class s{constructor(e,t,n){this._legend=e,this._themeService=t,this._logService=n,this._hashTable=new c,this._hasWarnedOverlappingTokens=!1}getMetadata(e,t,n){const o=this._hashTable.get(e,t,n.id);let s;if(o)s=o.metadata,this._logService.getLevel()===r["c"].Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${e} / ${t}: foreground ${i["E"].getForeground(s)}, fontStyle ${i["E"].getFontStyle(s).toString(2)}`);else{let o=this._legend.tokenTypes[e];const a=[];if(o){let e=t;for(let t=0;e>0&&t<this._legend.tokenModifiers.length;t++)1&e&&a.push(this._legend.tokenModifiers[t]),e>>=1;e>0&&this._logService.getLevel()===r["c"].Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${t.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),a.push("not-in-legend"));const i=this._themeService.getColorTheme().getTokenStyleMetadata(o,a,n.language);if("undefined"===typeof i)s=2147483647;else{if(s=0,"undefined"!==typeof i.italic){const e=(i.italic?1:0)<<11;s|=1|e}if("undefined"!==typeof i.bold){const e=(i.bold?2:0)<<11;s|=2|e}if("undefined"!==typeof i.underline){const e=(i.underline?4:0)<<11;s|=4|e}if(i.foreground){const e=i.foreground<<14;s|=8|e}0===s&&(s=2147483647)}}else this._logService.getLevel()===r["c"].Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${e} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),s=2147483647,o="not-in-legend";this._hashTable.add(e,t,n.id,s),this._logService.getLevel()===r["c"].Trace&&this._logService.trace(`SemanticTokensProviderStyling ${e} (${o}) / ${t} (${a.join(" ")}): foreground ${i["E"].getForeground(s)}, fontStyle ${i["E"].getFontStyle(s).toString(2)}`)}return s}warnOverlappingSemanticTokens(e,t){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,console.warn(`Overlapping semantic tokens detected at lineNumber ${e}, column ${t}`))}}function a(e,t,n){const i=e.data,r=e.data.length/5|0,s=Math.max(Math.ceil(r/1024),400),a=[];let l=0,c=1,u=0;while(l<r){const e=l;let h=Math.min(e+s,r);if(h<r){let t=h;while(t-1>e&&0===i[5*t])t--;if(t-1===e){let e=h;while(e+1<r&&0===i[5*e])e++;h=e}else h=t}let d=new Uint32Array(4*(h-e)),f=0,p=0,g=0,m=0,v=0;while(l<h){const e=5*l,r=i[e],o=i[e+1],s=c+r,a=0===r?u+o:o,h=i[e+2],b=i[e+3],y=i[e+4],_=t.getMetadata(b,y,n);2147483647!==_&&(0===p&&(p=s),g===s&&v>a&&(t.warnOverlappingSemanticTokens(s,a+1),m<a?d[f-4+2]=a:f-=4),d[f]=s-p,d[f+1]=a,d[f+2]=a+h,d[f+3]=_,f+=4,g=s,m=a,v=a+h),c=s,u=a,l++}f!==d.length&&(d=d.subarray(0,f));const b=new o["a"](p,new o["c"](d));a.push(b)}return a}class l{constructor(e,t,n,i){this.tokenTypeIndex=e,this.tokenModifierSet=t,this.languageId=n,this.metadata=i,this.next=null}}class c{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=c._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<c._SIZES.length?2/3*this._currentLength:0),this._elements=[],c._nullOutEntries(this._elements,this._currentLength)}static _nullOutEntries(e,t){for(let n=0;n<t;n++)e[n]=null}_hash2(e,t){return(e<<5)-e+t|0}_hashFunc(e,t,n){return this._hash2(this._hash2(e,t),n)%this._currentLength}get(e,t,n){const i=this._hashFunc(e,t,n);let r=this._elements[i];while(r){if(r.tokenTypeIndex===e&&r.tokenModifierSet===t&&r.languageId===n)return r;r=r.next}return null}add(e,t,n,i){if(this._elementsCount++,0!==this._growCount&&this._elementsCount>=this._growCount){const e=this._elements;this._currentLengthIndex++,this._currentLength=c._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1<c._SIZES.length?2/3*this._currentLength:0),this._elements=[],c._nullOutEntries(this._elements,this._currentLength);for(const t of e){let e=t;while(e){const t=e.next;e.next=null,this._add(e),e=t}}}this._add(new l(e,t,n,i))}_add(e){const t=this._hashFunc(e.tokenTypeIndex,e.tokenModifierSet,e.languageId);e.next=this._elements[t],this._elements[t]=e}}c._SIZES=[3,7,13,31,61,127,251,509,1021,2039,4093,8191,16381,32749,65521,131071,262139,524287,1048573,2097143]},"252fe":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.line=m;var r=i(n("7037")),o=i(n("278c")),s=i(n("448a")),a=i(n("9523")),l=n("18ad"),c=n("9d85"),u=i(n("050c")),h=n("becb");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,a["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=u["default"].polylineToBezierCurve,g=u["default"].getBezierCurveLength;function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.xAxis,i=t.yAxis,r=t.series,o=[];n&&i&&r&&(o=(0,h.initNeedSeries)(r,c.lineConfig,"line"),o=v(o,e)),(0,l.doUpdate)({chart:e,series:o,key:"lineArea",getGraphConfig:C,getStartGraphConfig:L,beforeUpdate:E,beforeChange:D}),(0,l.doUpdate)({chart:e,series:o,key:"line",getGraphConfig:I,getStartGraphConfig:N,beforeUpdate:E,beforeChange:D}),(0,l.doUpdate)({chart:e,series:o,key:"linePoint",getGraphConfig:P,getStartGraphConfig:F}),(0,l.doUpdate)({chart:e,series:o,key:"lineLabel",getGraphConfig:B})}function v(e,t){var n=t.axisData;return e.map((function(t){var i=(0,h.mergeSameStackData)(t,e);i=b(t,i);var r=y(t,n),o=_(i,r),s=w(r);return f(f({},t),{},{linePosition:o.filter((function(e){return e})),lineFillBottomPos:s})}))}function b(e,t){var n=e.data;return t.map((function(e,t){return"number"===typeof n[t]?e:null}))}function y(e,t){var n=e.xAxisIndex,i=e.yAxisIndex,r=t.find((function(e){var t=e.axis,i=e.index;return"x"===t&&i===n})),o=t.find((function(e){var t=e.axis,n=e.index;return"y"===t&&n===i}));return[r,o]}function _(e,t){var n=t.findIndex((function(e){var t=e.data;return"value"===t})),i=t[n],r=t[1-n],o=i.linePosition,s=i.axis,a=r.tickPosition,l=a.length,c="x"===s?0:1,u=o[0][c],h=o[1][c],d=h-u,f=i.maxValue,p=i.minValue,g=f-p,m=new Array(l).fill(0).map((function(t,n){var i=e[n];if("number"!==typeof i)return null;var r=(i-p)/g;return 0===g&&(r=0),r*d+u}));return m.map((function(e,t){if(t>=l||"number"!==typeof e)return null;var n=[e,a[t][1-c]];return 0===c||n.reverse(),n}))}function w(e){var t=e.find((function(e){var t=e.data;return"value"===t})),n=t.axis,i=t.linePosition,r=t.minValue,o=t.maxValue,s="x"===n?0:1,a=i[0][s];if(r<0&&o>0){var l=o-r,c=Math.abs(i[0][s]-i[1][s]),u=Math.abs(r)/l*c;"y"===n&&(u*=-1),a+=u}return{changeIndex:s,changeValue:a}}function C(e){var t=e.animationCurve,n=e.animationFrame,i=e.lineFillBottomPos,r=e.rLevel;return[{name:M(e),index:r,animationCurve:t,animationFrame:n,visible:e.lineArea.show,lineFillBottomPos:i,shape:S(e),style:x(e),drawed:k}]}function S(e){var t=e.linePosition;return{points:t}}function x(e){var t=e.lineArea,n=e.color,i=t.gradient,r=t.style,o=[r.fill||n],s=(0,h.deepMerge)(o,i);1===s.length&&s.push(s[0]);var a=O(e);return r=f(f({},r),{},{stroke:"rgba(0, 0, 0, 0)"}),(0,h.deepMerge)({gradientColor:s,gradientParams:a,gradientType:"linear",gradientWith:"fill"},r)}function O(e){var t=e.lineFillBottomPos,n=e.linePosition,i=t.changeIndex,r=t.changeValue,o=n.map((function(e){return e[i]})),a=Math.max.apply(Math,(0,s["default"])(o)),l=Math.min.apply(Math,(0,s["default"])(o)),c=a;return 1===i&&(c=l),1===i?[0,c,0,r]:[c,0,r,0]}function k(e,t){var n=e.lineFillBottomPos,i=e.shape,r=t.ctx,o=i.points,a=n.changeIndex,l=n.changeValue,c=(0,s["default"])(o[o.length-1]),u=(0,s["default"])(o[0]);c[a]=l,u[a]=l,r.lineTo.apply(r,(0,s["default"])(c)),r.lineTo.apply(r,(0,s["default"])(u)),r.closePath(),r.fill()}function L(e){var t=C(e)[0],n=f({},t.style);return n.opacity=0,t.style=n,[t]}function E(e,t,n,i){var r=e[n];if(r){var o=M(t),s=i.chart.render,a=r[0].name,l=o!==a;l&&(r.forEach((function(e){return s.delGraph(e)})),e[n]=null)}}function D(e,t){var n=t.shape.points,i=e.shape.points,r=i.length,o=n.length;if(o>r){var a=i.slice(-1)[0],l=new Array(o-r).fill(0).map((function(e){return(0,s["default"])(a)}));i.push.apply(i,(0,s["default"])(l))}else o<r&&i.splice(o)}function I(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel;return[{name:M(e),index:i+1,animationCurve:t,animationFrame:n,shape:S(e),style:T(e)}]}function M(e){var t=e.smooth;return t?"smoothline":"polyline"}function T(e){var t=e.lineStyle,n=e.color,i=e.smooth,r=e.linePosition,o=A(r,i);return(0,h.deepMerge)({stroke:n,lineDash:[o,0]},t)}function A(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return(0,h.getPolylineLength)(e);var n=p(e);return g(n)}function N(e){var t=e.lineStyle.lineDash,n=I(e)[0],i=n.style.lineDash;return i=t?[0,0]:(0,s["default"])(i).reverse(),n.style.lineDash=i,[n]}function P(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=j(e),o=R(e);return r.map((function(r){return{name:"circle",index:i+2,visible:e.linePoint.show,animationCurve:t,animationFrame:n,shape:r,style:o}}))}function j(e){var t=e.linePosition,n=e.linePoint.radius;return t.map((function(e){var t=(0,o["default"])(e,2),i=t[0],r=t[1];return{r:n,rx:i,ry:r}}))}function R(e){var t=e.color,n=e.linePoint.style;return(0,h.deepMerge)({stroke:t},n)}function F(e){var t=P(e);return t.forEach((function(e){e.shape.r=.1})),t}function B(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel,r=W(e),o=q(e);return r.map((function(r,s){return{name:"text",index:i+3,visible:e.label.show,animationCurve:t,animationFrame:n,shape:r,style:o}}))}function W(e){var t=U(e),n=V(e);return t.map((function(e,t){return{content:e,position:n[t]}}))}function V(e){var t=e.linePosition,n=e.lineFillBottomPos,i=e.label,r=i.position,o=i.offset,a=n.changeIndex,l=n.changeValue;return t.map((function(e){if("bottom"===r&&(e=(0,s["default"])(e),e[a]=l),"center"===r){var t=(0,s["default"])(e);t[a]=l,e=H(e,t)}return z(e,o)}))}function z(e,t){var n=(0,o["default"])(e,2),i=n[0],r=n[1],s=(0,o["default"])(t,2),a=s[0],l=s[1];return[i+a,r+l]}function H(e,t){var n=(0,o["default"])(e,2),i=n[0],r=n[1],s=(0,o["default"])(t,2),a=s[0],l=s[1];return[(i+a)/2,(r+l)/2]}function U(e){var t=e.data,n=e.label.formatter;if(t=t.filter((function(e){return"number"===typeof e})).map((function(e){return e.toString()})),!n)return t;var i=(0,r["default"])(n);return"string"===i?t.map((function(e){return n.replace("{value}",e)})):"function"===i?t.map((function(e,t){return n({value:e,index:t})})):t}function q(e){var t=e.color,n=e.label.style;return(0,h.deepMerge)({fill:t},n)}},2532:function(e,t,n){"use strict";var i=n("23e7"),r=n("e330"),o=n("5a34"),s=n("1d80"),a=n("577e"),l=n("ab13"),c=r("".indexOf);i({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(a(s(this)),a(o(e)),arguments.length>1?arguments[1]:void 0)}})},2554:function(e,t,n){"use strict";var i=function(e){return r(e)&&!o(e)};function r(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||l(e)}var s="function"===typeof Symbol&&Symbol.for,a=s?Symbol.for("react.element"):60103;function l(e){return e.$$typeof===a}function c(e){return Array.isArray(e)?[]:{}}function u(e,t){return!1!==t.clone&&t.isMergeableObject(e)?b(c(e),e,t):e}function h(e,t,n){return e.concat(t).map((function(e){return u(e,n)}))}function d(e,t){if(!t.customMerge)return b;var n=t.customMerge(e);return"function"===typeof n?n:b}function f(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}function p(e){return Object.keys(e).concat(f(e))}function g(e,t){try{return t in e}catch(n){return!1}}function m(e,t){return g(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function v(e,t,n){var i={};return n.isMergeableObject(e)&&p(e).forEach((function(t){i[t]=u(e[t],n)})),p(t).forEach((function(r){m(e,r)||(g(e,r)&&n.isMergeableObject(t[r])?i[r]=d(r,n)(e[r],t[r],n):i[r]=u(t[r],n))})),i}function b(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||h,n.isMergeableObject=n.isMergeableObject||i,n.cloneUnlessOtherwiseSpecified=u;var r=Array.isArray(t),o=Array.isArray(e),s=r===o;return s?r?n.arrayMerge(e,t,n):v(e,t,n):u(t,n)}b.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return b(e,n,t)}),{})};var y=b;e.exports=y},"258a":function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){function t(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function i(){return n}function*r(e){yield e}function o(e){return e||n}function s(e){return!e||!0===e[Symbol.iterator]().next().done}function a(e){return e[Symbol.iterator]().next().value}function l(e,t){for(const n of e)if(t(n))return!0;return!1}function c(e,t){for(const n of e)if(t(n))return n}function*u(e,t){for(const n of e)t(n)&&(yield n)}function*h(e,t){let n=0;for(const i of e)yield t(i,n++)}function*d(...e){for(const t of e)for(const e of t)yield e}function*f(e){for(const t of e)for(const e of t)yield e}function p(e,t,n){let i=n;for(const r of e)i=t(i,r);return i}function*g(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]}function m(t,n=Number.POSITIVE_INFINITY){const i=[];if(0===n)return[i,t];const r=t[Symbol.iterator]();for(let o=0;o<n;o++){const t=r.next();if(t.done)return[i,e.empty()];i.push(t.value)}return[i,{[Symbol.iterator](){return r}}]}function v(e,t,n=((e,t)=>e===t)){const i=e[Symbol.iterator](),r=t[Symbol.iterator]();while(1){const e=i.next(),t=r.next();if(e.done!==t.done)return!1;if(e.done)return!0;if(!n(e.value,t.value))return!1}}e.empty=i,e.single=r,e.from=o,e.isEmpty=s,e.first=a,e.some=l,e.find=c,e.filter=u,e.map=h,e.concat=d,e.concatNested=f,e.reduce=p,e.slice=g,e.consume=m,e.equals=v}(i||(i={}))},"25f0":function(e,t,n){"use strict";var i=n("5e77").PROPER,r=n("cb2d"),o=n("825a"),s=n("577e"),a=n("d039"),l=n("90d8"),c="toString",u=RegExp.prototype,h=u[c],d=a((function(){return"/a/b"!=h.call({source:"a",flags:"b"})})),f=i&&h.name!=c;(d||f)&&r(RegExp.prototype,c,(function(){var e=o(this),t=s(e.source),n=s(l(e));return"/"+t+"/"+n}),{unsafe:!0})},2626:function(e,t,n){"use strict";var i=n("d066"),r=n("9bf2"),o=n("b622"),s=n("83ab"),a=o("species");e.exports=function(e){var t=i(e),n=r.f;s&&t&&!t[a]&&n(t,a,{configurable:!0,get:function(){return this}})}},2652:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return n.e("chunk-2d0d2f22").then(n.bind(null,"5b54"))}})},"26dd":function(e,t,n){"use strict";var i=n("6f4f"),r=n("10db"),o=n("92f0"),s={};n("051b")(s,n("cc15")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(s,{next:r(1,n)}),o(e,t+" Iterator")}},2714:function(e,t,n){(function(t){var i="function"===typeof Map&&Map.prototype,r=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=i&&r&&"function"===typeof r.get?r.get:null,s=i&&Map.prototype.forEach,a="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=a&&l&&"function"===typeof l.get?l.get:null,u=a&&Set.prototype.forEach,h="function"===typeof WeakMap&&WeakMap.prototype,d=h?WeakMap.prototype.has:null,f="function"===typeof WeakSet&&WeakSet.prototype,p=f?WeakSet.prototype.has:null,g="function"===typeof WeakRef&&WeakRef.prototype,m=g?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,b=Object.prototype.toString,y=Function.prototype.toString,_=String.prototype.match,w=String.prototype.slice,C=String.prototype.replace,S=String.prototype.toUpperCase,x=String.prototype.toLowerCase,O=RegExp.prototype.test,k=Array.prototype.concat,L=Array.prototype.join,E=Array.prototype.slice,D=Math.floor,I="function"===typeof BigInt?BigInt.prototype.valueOf:null,M=Object.getOwnPropertySymbols,T="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"===typeof Symbol&&"object"===typeof Symbol.iterator,N="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A||"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,j=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||O.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var i=e<0?-D(-e):D(e);if(i!==e){var r=String(i),o=w.call(t,r.length+1);return C.call(r,n,"$&_")+"."+C.call(C.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return C.call(t,n,"$&_")}var F=n(6),B=F.custom,W=Z(B)?B:null;function V(e,t,n){var i="double"===(n.quoteStyle||t)?'"':"'";return i+e+i}function z(e){return C.call(String(e),/"/g,""")}function H(e){return"[object Array]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function U(e){return"[object Date]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function q(e){return"[object RegExp]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function $(e){return"[object Error]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function K(e){return"[object String]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function G(e){return"[object Number]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function Y(e){return"[object Boolean]"===ee(e)&&(!N||!("object"===typeof e&&N in e))}function Z(e){if(A)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!T)return!1;try{return T.call(e),!0}catch(t){}return!1}function X(e){if(!e||"object"!==typeof e||!I)return!1;try{return I.call(e),!0}catch(t){}return!1}e.exports=function e(n,i,r,a){var l=i||{};if(J(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(J(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!J(l,"customInspect")||l.customInspect;if("boolean"!==typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(J(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(J(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=l.numericSeparator;if("undefined"===typeof n)return"undefined";if(null===n)return"null";if("boolean"===typeof n)return n?"true":"false";if("string"===typeof n)return ce(n,l);if("number"===typeof n){if(0===n)return 1/0/n>0?"0":"-0";var f=String(n);return d?R(n,f):f}if("bigint"===typeof n){var p=String(n)+"n";return d?R(n,p):p}var g="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof r&&(r=0),r>=g&&g>0&&"object"===typeof n)return H(n)?"[Array]":"[Object]";var m=ge(l,r);if("undefined"===typeof a)a=[];else if(ne(a,n)>=0)return"[Circular]";function b(t,n,i){if(n&&(a=E.call(a),a.push(n)),i){var o={depth:l.depth};return J(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,r+1,a)}return e(t,l,r+1,a)}if("function"===typeof n&&!q(n)){var y=te(n),_=ve(n,b);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(_.length>0?" { "+L.call(_,", ")+" }":"")}if(Z(n)){var S=A?C.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(n);return"object"!==typeof n||A?S:he(S)}if(le(n)){for(var O="<"+x.call(String(n.nodeName)),D=n.attributes||[],M=0;M<D.length;M++)O+=" "+D[M].name+"="+V(z(D[M].value),"double",l);return O+=">",n.childNodes&&n.childNodes.length&&(O+="..."),O+="</"+x.call(String(n.nodeName))+">",O}if(H(n)){if(0===n.length)return"[]";var B=ve(n,b);return m&&!pe(B)?"["+me(B,m)+"]":"[ "+L.call(B,", ")+" ]"}if($(n)){var Q=ve(n,b);return"cause"in Error.prototype||!("cause"in n)||P.call(n,"cause")?0===Q.length?"["+String(n)+"]":"{ ["+String(n)+"] "+L.call(Q,", ")+" }":"{ ["+String(n)+"] "+L.call(k.call("[cause]: "+b(n.cause),Q),", ")+" }"}if("object"===typeof n&&h){if(W&&"function"===typeof n[W]&&F)return F(n,{depth:g-r});if("symbol"!==h&&"function"===typeof n.inspect)return n.inspect()}if(ie(n)){var ue=[];return s&&s.call(n,(function(e,t){ue.push(b(t,n,!0)+" => "+b(e,n))})),fe("Map",o.call(n),ue,m)}if(se(n)){var be=[];return u&&u.call(n,(function(e){be.push(b(e,n))})),fe("Set",c.call(n),be,m)}if(re(n))return de("WeakMap");if(ae(n))return de("WeakSet");if(oe(n))return de("WeakRef");if(G(n))return he(b(Number(n)));if(X(n))return he(b(I.call(n)));if(Y(n))return he(v.call(n));if(K(n))return he(b(String(n)));if("undefined"!==typeof window&&n===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&n===globalThis||"undefined"!==typeof t&&n===t)return"{ [object globalThis] }";if(!U(n)&&!q(n)){var ye=ve(n,b),_e=j?j(n)===Object.prototype:n instanceof Object||n.constructor===Object,we=n instanceof Object?"":"null prototype",Ce=!_e&&N&&Object(n)===n&&N in n?w.call(ee(n),8,-1):we?"Object":"",Se=_e||"function"!==typeof n.constructor?"":n.constructor.name?n.constructor.name+" ":"",xe=Se+(Ce||we?"["+L.call(k.call([],Ce||[],we||[]),": ")+"] ":"");return 0===ye.length?xe+"{}":m?xe+"{"+me(ye,m)+"}":xe+"{ "+L.call(ye,", ")+" }"}return String(n)};var Q=Object.prototype.hasOwnProperty||function(e){return e in this};function J(e,t){return Q.call(e,t)}function ee(e){return b.call(e)}function te(e){if(e.name)return e.name;var t=_.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ne(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}function ie(e){if(!o||!e||"object"!==typeof e)return!1;try{o.call(e);try{c.call(e)}catch(t){return!0}return e instanceof Map}catch(n){}return!1}function re(e){if(!d||!e||"object"!==typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(t){return!0}return e instanceof WeakMap}catch(n){}return!1}function oe(e){if(!m||!e||"object"!==typeof e)return!1;try{return m.call(e),!0}catch(t){}return!1}function se(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}function ae(e){if(!p||!e||"object"!==typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(t){return!0}return e instanceof WeakSet}catch(n){}return!1}function le(e){return!(!e||"object"!==typeof e)&&("undefined"!==typeof HTMLElement&&e instanceof HTMLElement||"string"===typeof e.nodeName&&"function"===typeof e.getAttribute)}function ce(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,i="... "+n+" more character"+(n>1?"s":"");return ce(w.call(e,0,t.maxStringLength),t)+i}var r=C.call(C.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ue);return V(r,"single",t)}function ue(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+S.call(t.toString(16))}function he(e){return"Object("+e+")"}function de(e){return e+" { ? }"}function fe(e,t,n,i){var r=i?me(n,i):L.call(n,", ");return e+" ("+t+") {"+r+"}"}function pe(e){for(var t=0;t<e.length;t++)if(ne(e[t],"\n")>=0)return!1;return!0}function ge(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=L.call(Array(e.indent+1)," ")}return{base:n,prev:L.call(Array(t+1),n)}}function me(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+L.call(e,","+n)+"\n"+t.prev}function ve(e,t){var n=H(e),i=[];if(n){i.length=e.length;for(var r=0;r<e.length;r++)i[r]=J(e,r)?t(e[r],e):""}var o,s="function"===typeof M?M(e):[];if(A){o={};for(var a=0;a<s.length;a++)o["$"+s[a]]=s[a]}for(var l in e)J(e,l)&&(n&&String(Number(l))===l&&l<e.length||A&&o["$"+l]instanceof Symbol||(O.call(/[^\w$]/,l)?i.push(t(l,e)+": "+t(e[l],e)):i.push(l+": "+t(e[l],e))));if("function"===typeof M)for(var c=0;c<s.length;c++)P.call(e,s[c])&&i.push("["+t(s[c])+"]: "+t(e[s[c]],e));return i}}).call(this,n("c8ba"))},"278c":function(e,t,n){var i=n("c135"),r=n("9b42"),o=n("6613"),s=n("c240");function a(e,t){return i(e)||r(e,t)||o(e,t)||s()}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},"27e6":function(e,t,n){},"282b":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("6d8b");function r(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,o){for(var s={},a=0;a<e.length;a++){var l=e[a][1];if(!(r&&i["indexOf"](r,l)>=0||o&&i["indexOf"](o,l)<0)){var c=n.getShallow(l,t);null!=c&&(s[e[a][0]]=c)}}return s}}},2837:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),function(e){e[e["None"]=0]="None",e[e["Indent"]=1]="Indent",e[e["IndentOutdent"]=2]="IndentOutdent",e[e["Outdent"]=3]="Outdent"}(i||(i={}));class r{constructor(e){if(this._standardAutoClosingPairConditionalBrand=void 0,this.open=e.open,this.close=e.close,this._standardTokenMask=0,Array.isArray(e.notIn))for(let t=0,n=e.notIn.length;t<n;t++){const n=e.notIn[t];switch(n){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4;break}}}isOK(e){return 0===(this._standardTokenMask&e)}}class o{constructor(e){this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map;for(const t of e)s(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),s(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),s(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),s(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&s(this.autoClosingPairsCloseSingleChar,t.close,t)}}function s(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}},2848:function(e,t,n){},2877:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):r&&(l=a?function(){r.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:c}}n.d(t,"a",(function(){return i}))},2909:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("6b75");function r(e){if(Array.isArray(e))return Object(i["a"])(e)}n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("d3b7"),n("3ca3"),n("ddb0");function o(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var s=n("06c5");n("d9e2");function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return r(e)||o(e)||Object(s["a"])(e)||a()}},2935:function(e,t,n){"use strict";n.r(t);var i=n("dff7"),r=n("b2cc"),o=n("c101"),s=n("6a89"),a=n("8025");class l{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const n=this._selection.startLineNumber,i=this._selection.startColumn,r=this._selection.endColumn;if((!this._isMovingLeft||1!==i)&&(this._isMovingLeft||r!==e.getLineMaxColumn(n)))if(this._isMovingLeft){const o=new s["a"](n,i-1,n,i),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new s["a"](n,r,n,r),a)}else{const o=new s["a"](n,r,n,r+1),a=e.getValueInRange(o);t.addEditOperation(o,null),t.addEditOperation(new s["a"](n,i,n,i),a)}}computeCursorState(e,t){return this._isMovingLeft?new a["a"](this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new a["a"](this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}class c extends r["b"]{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let n=[],i=t.getSelections();for(const r of i)n.push(new l(r,this.left));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class u extends c{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:i["a"]("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:o["a"].writable})}}class h extends c{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:i["a"]("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:o["a"].writable})}}Object(r["j"])(u),Object(r["j"])(h)},"29a1":function(e,t,n){},"29a2":function(e,t,n){"use strict";function i(e,t,n){var i=this;this._callback=e,this._args=n,this._interval=setInterval(e,t,this._args),this.reschedule=function(e){e||(e=i._interval),i._interval&&clearInterval(i._interval),i._interval=setInterval(i._callback,e,i._args)},this.clear=function(){i._interval&&(clearInterval(i._interval),i._interval=void 0)},this.destroy=function(){i._interval&&clearInterval(i._interval),i._callback=void 0,i._interval=void 0,i._args=void 0}}function r(){if("function"!==typeof arguments[0])throw new Error("callback needed");if("number"!==typeof arguments[1])throw new Error("interval needed");var e;if(arguments.length>0){e=new Array(arguments.length-2);for(var t=0;t<e.length;t++)e[t]=arguments[t+2]}return new i(arguments[0],arguments[1],e)}e.exports=r},"2a04":function(e,t,n){},"2a28":function(e,t,n){"use strict";e.exports=n("0050")()},"2a62":function(e,t,n){var i=n("c65b"),r=n("825a"),o=n("dc4a");e.exports=function(e,t,n){var s,a;r(e);try{if(s=o(e,"return"),!s){if("throw"===t)throw n;return n}s=i(s,e)}catch(l){a=!0,s=l}if("throw"===t)throw n;if(a)throw s;return r(s),n}},"2aa9":function(e,t,n){"use strict";var i=n("00ce"),r=i("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(o){r=null}e.exports=r},"2ab7":function(e,t,n){},"2b17":function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return b})),n.d(t,"d",(function(){return w})),n.d(t,"e",(function(){return S}));var i,r,o,s,a,l=n("6d8b"),c=n("e0d3"),u=n("ec6f"),h=n("07fd"),d=function(){function e(e,t){var n=Object(u["e"])(e)?e:Object(u["c"])(e);this._source=n;var i=this._data=n.data;n.sourceFormat===h["g"]&&(this._offset=0,this._dimSize=t,this._data=i),a(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;a=function(e,r,o){var a=o.sourceFormat,c=o.seriesLayoutBy,u=o.startIndex,d=o.dimensionsDefine,f=s[C(a,c)];if(Object(l["extend"])(e,f),a===h["g"])e.getItem=t,e.count=i,e.fillStorage=n;else{var p=g(a,c);e.getItem=Object(l["bind"])(p,null,r,u,d);var m=b(a,c);e.count=Object(l["bind"])(m,null,r,u,d)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,i=this._dimSize,r=i*e,o=0;o<i;o++)t[o]=n[r+o];return t},n=function(e,t,n,i){for(var r=this._data,o=this._dimSize,s=0;s<o;s++){for(var a=i[s],l=null==a[0]?1/0:a[0],c=null==a[1]?-1/0:a[1],u=t-e,h=n[s],d=0;d<u;d++){var f=r[d*o+s];h[e+d]=f,f<l&&(l=f),f>c&&(c=f)}a[0]=l,a[1]=c}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}e={},e[h["c"]+"_"+h["a"]]={pure:!0,appendData:r},e[h["c"]+"_"+h["b"]]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[h["e"]]={pure:!0,appendData:r},e[h["d"]]={pure:!0,appendData:function(e){var t=this._data;Object(l["each"])(e,(function(e,n){for(var i=t[n]||(t[n]=[]),r=0;r<(e||[]).length;r++)i.push(e[r])}))}},e[h["f"]]={appendData:r},e[h["g"]]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},s=e}(),e}(),f=function(e,t,n,i){return e[i]},p=(i={},i[h["c"]+"_"+h["a"]]=function(e,t,n,i){return e[i+t]},i[h["c"]+"_"+h["b"]]=function(e,t,n,i,r){i+=t;for(var o=r||[],s=e,a=0;a<s.length;a++){var l=s[a];o[a]=l?l[i]:null}return o},i[h["e"]]=f,i[h["d"]]=function(e,t,n,i,r){for(var o=r||[],s=0;s<n.length;s++){var a=n[s].name;0;var l=e[a];o[s]=l?l[i]:null}return o},i[h["f"]]=f,i);function g(e,t){var n=p[C(e,t)];return n}var m=function(e,t,n){return e.length},v=(r={},r[h["c"]+"_"+h["a"]]=function(e,t,n){return Math.max(0,e.length-t)},r[h["c"]+"_"+h["b"]]=function(e,t,n){var i=e[0];return i?Math.max(0,i.length-t):0},r[h["e"]]=m,r[h["d"]]=function(e,t,n){var i=n[0].name;var r=e[i];return r?r.length:0},r[h["f"]]=m,r);function b(e,t){var n=v[C(e,t)];return n}var y=function(e,t,n){return e[t]},_=(o={},o[h["c"]]=y,o[h["e"]]=function(e,t,n){return e[n]},o[h["d"]]=y,o[h["f"]]=function(e,t,n){var i=Object(c["h"])(e);return i instanceof Array?i[t]:i},o[h["g"]]=y,o);function w(e){var t=_[e];return t}function C(e,t){return e===h["c"]?e+"_"+t:e}function S(e,t,n){if(e){var i=e.getRawDataItem(t);if(null!=i){var r=e.getStore(),o=r.getSource().sourceFormat;if(null!=n){var s=e.getDimensionIndex(n),a=r.getDimensionProperty(s);return w(o)(i,s,a)}var l=i;return o===h["f"]&&(l=Object(c["h"])(i)),l}}}},"2b8c":function(e,t,n){var i=n("be09"),r=e.exports={WebVTT:n("d02c"),VTTCue:n("b03c"),VTTRegion:n("f97d")};i.vttjs=r,i.WebVTT=r.WebVTT;var o=r.VTTCue,s=r.VTTRegion,a=i.VTTCue,l=i.VTTRegion;r.shim=function(){i.VTTCue=o,i.VTTRegion=s},r.restore=function(){i.VTTCue=a,i.VTTRegion=l},i.VTTCue||r.shim()},"2ba4":function(e,t,n){var i=n("40d5"),r=Function.prototype,o=r.apply,s=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?s.bind(o):function(){return s.apply(o,arguments)})},"2c29":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return l}));var i=n("8025");class r{constructor(e,t,n=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=n}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){let n=t.getInverseEditOperations(),r=n[0].range;return new i["a"](r.endLineNumber,r.endColumn,r.endLineNumber,r.endColumn)}}class o{constructor(e,t){this._range=e,this._text=t}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){const n=t.getInverseEditOperations(),r=n[0].range;return new i["a"](r.startLineNumber,r.startColumn,r.endLineNumber,r.endColumn)}}class s{constructor(e,t,n=!1){this._range=e,this._text=t,this.insertsAutoWhitespace=n}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){let n=t.getInverseEditOperations(),r=n[0].range;return new i["a"](r.startLineNumber,r.startColumn,r.startLineNumber,r.startColumn)}}class a{constructor(e,t,n,i,r=!1){this._range=e,this._text=t,this._columnDeltaOffset=i,this._lineNumberDeltaOffset=n,this.insertsAutoWhitespace=r}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text)}computeCursorState(e,t){let n=t.getInverseEditOperations(),r=n[0].range;return new i["a"](r.endLineNumber+this._lineNumberDeltaOffset,r.endColumn+this._columnDeltaOffset,r.endLineNumber+this._lineNumberDeltaOffset,r.endColumn+this._columnDeltaOffset)}}class l{constructor(e,t,n,i=!1){this._range=e,this._text=t,this._initialSelection=n,this._forceMoveMarkers=i,this._selectionId=null}getEditOperations(e,t){t.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=t.trackSelection(this._initialSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}},"2c3e":function(e,t,n){var i=n("83ab"),r=n("9f7f").MISSED_STICKY,o=n("c6b6"),s=n("edd0"),a=n("69f3").get,l=RegExp.prototype,c=TypeError;i&&r&&s(l,"sticky",{configurable:!0,get:function(){if(this!==l){if("RegExp"===o(this))return!!a(this).sticky;throw c("Incompatible receiver, RegExp required")}}})},"2ca0":function(e,t,n){"use strict";var i=n("23e7"),r=n("e330"),o=n("06cf").f,s=n("50c4"),a=n("577e"),l=n("5a34"),c=n("1d80"),u=n("ab13"),h=n("c430"),d=r("".startsWith),f=r("".slice),p=Math.min,g=u("startsWith"),m=!h&&!g&&!!function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}();i({target:"String",proto:!0,forced:!m&&!g},{startsWith:function(e){var t=a(c(this));l(e);var n=s(p(arguments.length>1?arguments[1]:void 0,t.length)),i=a(e);return d?d(t,i,n):f(t,n,n+i.length)===i}})},"2cd0":function(e,t,n){"use strict";n("33f9"),n("09d1"),n("db7a"),n("38e9"),n("962f"),n("d1c2"),n("91d3"),n("0292"),n("8eb6"),n("82a1"),n("a771"),n("13e8"),n("f41d"),n("f5ba"),n("4af6"),n("a8f5"),n("9d48"),n("23f2"),n("2dec"),n("d282"),n("f9ad"),n("77db"),n("8457"),n("cd01"),n("93b9"),n("7257"),n("daaa"),n("0ef9"),n("16f5"),n("38f6"),n("66f1"),n("1aa7"),n("2e5e"),n("4058"),n("6640"),n("fdc0"),n("c583"),n("8d5c"),n("ea53"),n("abca"),n("b12b"),n("a0a2"),n("1fa1"),n("cb70"),n("2652"),n("8f6a"),n("c286"),n("88b6"),n("4da7"),n("32cc"),n("6a38"),n("4220"),n("a48d"),n("c8aa"),n("8a3f"),n("5d08"),n("19bd"),n("1bd1"),n("c663"),n("73d3"),n("333a"),n("199a"),n("d65c"),n("e8cb"),n("c3d4"),n("b9f8"),n("2d19"),n("d2ce"),n("0542"),n("9f5f"),n("10eb"),n("9eb0"),n("0447"),n("1389")},"2cf4":function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return c}));var i=n("22d1"),r=1;i["a"].hasGlobalWindow&&(r=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var o=r,s=.4,a="#333",l="#ccc",c="#eee"},"2cf49":function(e,t,n){var i,r,o,s,a=n("da84"),l=n("2ba4"),c=n("0366"),u=n("1626"),h=n("1a2d"),d=n("d039"),f=n("1be4"),p=n("f36a"),g=n("cc12"),m=n("d6d6"),v=n("1cdc"),b=n("605d"),y=a.setImmediate,_=a.clearImmediate,w=a.process,C=a.Dispatch,S=a.Function,x=a.MessageChannel,O=a.String,k=0,L={},E="onreadystatechange";try{i=a.location}catch(A){}var D=function(e){if(h(L,e)){var t=L[e];delete L[e],t()}},I=function(e){return function(){D(e)}},M=function(e){D(e.data)},T=function(e){a.postMessage(O(e),i.protocol+"//"+i.host)};y&&_||(y=function(e){m(arguments.length,1);var t=u(e)?e:S(e),n=p(arguments,1);return L[++k]=function(){l(t,void 0,n)},r(k),k},_=function(e){delete L[e]},b?r=function(e){w.nextTick(I(e))}:C&&C.now?r=function(e){C.now(I(e))}:x&&!v?(o=new x,s=o.port2,o.port1.onmessage=M,r=c(s.postMessage,s)):a.addEventListener&&u(a.postMessage)&&!a.importScripts&&i&&"file:"!==i.protocol&&!d(T)?(r=T,a.addEventListener("message",M,!1)):r=E in g("script")?function(e){f.appendChild(g("script"))[E]=function(){f.removeChild(this),D(e)}}:function(e){setTimeout(I(e),0)}),e.exports={set:y,clear:_}},"2d00":function(e,t,n){var i,r,o=n("da84"),s=n("342f"),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(i=u.split("."),r=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&s&&(i=s.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),e.exports=r},"2d19":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return n.e("chunk-2d21dcd2").then(n.bind(null,"d39f"))}})},"2d47":function(e,t,n){"use strict";n.r(t),n.d(t,"DeleteWordPartLeft",(function(){return c})),n.d(t,"DeleteWordPartRight",(function(){return u})),n.d(t,"WordPartLeftCommand",(function(){return h})),n.d(t,"CursorWordPartLeft",(function(){return d})),n.d(t,"CursorWordPartLeftSelect",(function(){return f})),n.d(t,"WordPartRightCommand",(function(){return p})),n.d(t,"CursorWordPartRight",(function(){return g})),n.d(t,"CursorWordPartRightSelect",(function(){return m}));var i=n("b2cc"),r=n("d48d"),o=n("6a89"),s=n("c101"),a=n("b3b2"),l=n("9e74");class c extends a["DeleteWordCommand"]{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){let n=r["b"].deleteWordPartLeft(e);return n||new o["a"](1,1,1,1)}}class u extends a["DeleteWordCommand"]{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:s["a"].writable,kbOpts:{kbExpr:s["a"].textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){let n=r["b"].deleteWordPartRight(e);if(n)return n;const i=e.model.getLineCount(),s=e.model.getLineMaxColumn(i);return new o["a"](i,s,i,s)}}class h extends a["MoveWordCommand"]{_move(e,t,n,i){return r["b"].moveWordPartLeft(e,t,n)}}class d extends h{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:s["a"].textInputFocus,primary:0,mac:{primary:783},weight:100}})}}l["a"].registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");class f extends h{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:s["a"].textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}l["a"].registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class p extends a["MoveWordCommand"]{_move(e,t,n,i){return r["b"].moveWordPartRight(e,t,n)}}class g extends p{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:s["a"].textInputFocus,primary:0,mac:{primary:785},weight:100}})}}class m extends p{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:s["a"].textInputFocus,primary:0,mac:{primary:1809},weight:100}})}}Object(i["k"])(new c),Object(i["k"])(new u),Object(i["k"])(new d),Object(i["k"])(new f),Object(i["k"])(new g),Object(i["k"])(new m)},"2d83":function(e,t,n){"use strict";var i=n("387f");e.exports=function(e,t,n,r,o){var s=new Error(e);return i(s,t,n,r,o)}},"2db9":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.bezierCurveToPolyline=y,t.getBezierCurveLength=_,t["default"]=void 0;var r=i(n("278c")),o=i(n("448a")),s=Math.sqrt,a=Math.pow,l=Math.ceil,c=Math.abs,u=50;function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=e.length-1,i=e[0],r=e[n][2],s=e.slice(1),a=s.map((function(e,t){var n=0===t?i:s[t-1][2];return d.apply(void 0,[n].concat((0,o["default"])(e)))})),l=new Array(n).fill(u),c=m(a,l),h=b(c,a,s,t);return h.segmentPoints.push(r),h}function d(e,t,n,i){return function(r){var o=1-r,s=a(o,3),l=a(o,2),c=a(r,3),u=a(r,2);return[e[0]*s+3*t[0]*r*l+3*n[0]*u*o+i[0]*c,e[1]*s+3*t[1]*r*l+3*n[1]*u*o+i[1]*c]}}function f(e,t){var n=(0,r["default"])(e,2),i=n[0],o=n[1],l=(0,r["default"])(t,2),c=l[0],u=l[1];return s(a(i-c,2)+a(o-u,2))}function p(e){return e.reduce((function(e,t){return e+t}),0)}function g(e){return e.map((function(e,t){return new Array(e.length-1).fill(0).map((function(t,n){return f(e[n],e[n+1])}))}))}function m(e,t){return e.map((function(e,n){var i=1/t[n];return new Array(t[n]).fill("").map((function(t,n){return e(n*i)}))}))}function v(e,t){return e.map((function(e){return e.map((function(e){return c(e-t)}))})).map((function(e){return p(e)})).reduce((function(e,t){return e+t}),0)}function b(e,t,n,i){var r=4,o=1,s=function(){var s=e.reduce((function(e,t){return e+t.length}),0);e.forEach((function(e,t){return e.push(n[t][2])}));var a=g(e),c=a.reduce((function(e,t){return e+t.length}),0),u=a.map((function(e){return p(e)})),h=p(u),d=h/c,f=v(a,d);if(f<=i)return"break";s=l(d/i*s*1.1);var b=u.map((function(e){return l(e/h*s)}));e=m(t,b),s=e.reduce((function(e,t){return e+t.length}),0);var y=JSON.parse(JSON.stringify(e));y.forEach((function(e,t){return e.push(n[t][2])})),a=g(y),c=a.reduce((function(e,t){return e+t.length}),0),u=a.map((function(e){return p(e)})),h=p(u),d=h/c;var _=1/s/10;t.forEach((function(t,n){for(var i=b[n],o=new Array(i).fill("").map((function(e,t){return t/b[n]})),s=0;s<r;s++)for(var a=g([e[n]])[0],l=a.map((function(e){return e-d})),c=0,u=0;u<i;u++){if(0===u)return;c+=l[u-1],o[u]-=_*c,o[u]>1&&(o[u]=1),o[u]<0&&(o[u]=0),e[n][u]=t(o[u])}})),r*=4,o++};do{var a=s();if("break"===a)break}while(r<=1025);return e=e.reduce((function(e,t){return e.concat(t)}),[]),{segmentPoints:e,cycles:o,rounds:r}}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!e)return console.error("bezierCurveToPolyline: Missing parameters!"),!1;if(!(e instanceof Array))return console.error("bezierCurveToPolyline: Parameter bezierCurve must be an array!"),!1;if("number"!==typeof t)return console.error("bezierCurveToPolyline: Parameter precision must be a number!"),!1;var n=h(e,t),i=n.segmentPoints;return i}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!e)return console.error("getBezierCurveLength: Missing parameters!"),!1;if(!(e instanceof Array))return console.error("getBezierCurveLength: Parameter bezierCurve must be an array!"),!1;if("number"!==typeof t)return console.error("getBezierCurveLength: Parameter precision must be a number!"),!1;var n=h(e,t),i=n.segmentPoints,r=g([i])[0],o=p(r);return o}var w=y;t["default"]=w},"2dc5":function(e,t,n){"use strict";var i=n("9ab4"),r=n("6d8b"),o=n("d5b7"),s=n("9850"),a=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return Object(i["a"])(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,i=n.indexOf(t);i>=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=r["indexOf"](this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,i=n[t];if(e&&e!==this&&e.parent!==this&&e!==i){n[t]=e,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,i=r["indexOf"](n,e);return i<0||(n.splice(i,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var i=e[n];t&&i.removeSelfFromZr(t),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];e.call(t,r,i)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=e.call(t,i);i.isGroup&&!r&&i.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new s["a"](0,0,0,0),n=e||this._children,i=[],r=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var l=a.getBoundingRect(),c=a.getLocalTransform(i);c?(s["a"].applyTransform(t,l,c),r=r||t.clone(),r.union(t)):(r=r||l.clone(),r.union(l))}}return r||t},t}(o["a"]);a.prototype.type="group",t["a"]=a},"2de5":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var i=n("099d");class r{constructor(e,t){this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}class o{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=Object(i["a"])(e);const n=this.values,r=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+o),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,t){return e=Object(i["a"])(e),t=Object(i["a"])(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=Object(i["a"])(e),t=Object(i["a"])(t);const n=this.values,r=this.prefixSum;if(e>=n.length)return!1;let o=n.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=Object(i["a"])(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let 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]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,n=this.values.length-1,i=0,o=0,s=0;while(t<=n)if(i=t+(n-t)/2|0,o=this.prefixSum[i],s=o-this.values[i],e<s)n=i-1;else{if(!(e>=o))break;t=i+1}return new r(i,e-s)}}},"2dec":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return n.e("chunk-2d0e542a").then(n.bind(null,"9470"))}})},"2e4b":function(e,t,n){"use strict";n.r(t),n.d(t,"StandaloneCommandsQuickAccessProvider",(function(){return $})),n.d(t,"GotoLineAction",(function(){return K}));var i,r=n("89cd"),o=n("2f1e"),s=n("03d9"),a=n("5717"),l=n("dff7"),c=n("2504"),u=n("a666"),h=n("5fe7"),d=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function f(e){const t=e;return Array.isArray(t.items)}function p(e){const t=e;return!!t.picks&&t.additionalPicks instanceof Promise}(function(e){e[e["NO_ACTION"]=0]="NO_ACTION",e[e["CLOSE_PICKER"]=1]="CLOSE_PICKER",e[e["REFRESH_PICKER"]=2]="REFRESH_PICKER",e[e["REMOVE_ITEM"]=3]="REMOVE_ITEM"})(i||(i={}));class g extends u["a"]{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t){var n;const r=new u["b"];e.canAcceptInBackground=!!(null===(n=this.options)||void 0===n?void 0:n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let o=void 0;const s=r.add(new u["d"]),a=()=>d(this,void 0,void 0,(function*(){const n=s.value=new u["b"];null===o||void 0===o||o.dispose(!0),e.busy=!1,o=new c["b"](t);const i=o.token,r=e.value.substr(this.prefix.length).trim(),a=this._getPicks(r,n,i),l=(t,n)=>{var i;let o,s=void 0;if(f(t)?(o=t.items,s=t.active):o=t,0===o.length){if(n)return!1;r.length>0&&(null===(i=this.options)||void 0===i?void 0:i.noResultsPick)&&(o=[this.options.noResultsPick])}return e.items=o,s&&(e.activeItems=[s]),!0};if(null===a);else if(p(a)){let t=!1,n=!1;yield Promise.all([(()=>d(this,void 0,void 0,(function*(){yield Object(h["n"])(g.FAST_PICKS_RACE_DELAY),i.isCancellationRequested||n||(t=l(a.picks,!0))})))(),(()=>d(this,void 0,void 0,(function*(){e.busy=!0;try{const r=yield a.additionalPicks;if(i.isCancellationRequested)return;let o,s,c=void 0;f(a.picks)?(o=a.picks.items,c=a.picks.active):o=a.picks;let u=void 0;if(f(r)?(s=r.items,u=r.active):s=r,s.length>0||!t){let t=void 0;if(!c&&!u){const n=e.activeItems[0];n&&-1!==o.indexOf(n)&&(t=n)}l({items:[...o,...s],active:c||u||t})}}finally{i.isCancellationRequested||(e.busy=!1),n=!0}})))()])}else if(a instanceof Promise){e.busy=!0;try{const t=yield a;if(i.isCancellationRequested)return;l(t)}finally{i.isCancellationRequested||(e.busy=!1)}}else l(a)}));return r.add(e.onDidChangeValue(()=>a())),a(),r.add(e.onDidAccept(t=>{const[n]=e.selectedItems;"function"===typeof(null===n||void 0===n?void 0:n.accept)&&(t.inBackground||e.hide(),n.accept(e.keyMods,t))})),r.add(e.onDidTriggerItemButton(({button:n,item:r})=>d(this,void 0,void 0,(function*(){var o,s;if("function"===typeof r.trigger){const l=null!==(s=null===(o=r.buttons)||void 0===o?void 0:o.indexOf(n))&&void 0!==s?s:-1;if(l>=0){const n=r.trigger(l,e.keyMods),o="number"===typeof n?n:yield n;if(t.isCancellationRequested)return;switch(o){case i.NO_ACTION:break;case i.CLOSE_PICKER:e.hide();break;case i.REFRESH_PICKER:a();break;case i.REMOVE_ITEM:const t=e.items.indexOf(r);if(-1!==t){const n=e.items.slice();n.splice(t,1),e.items=n}break}}}})))),r}}g.FAST_PICKS_RACE_DELAY=200;var m=n("7e93"),v=n("ef8e"),b=n("4035"),y=n("03e8"),_=n("fbba"),w=n("0a0f"),C=n("6dec"),S=n("9e74"),x=n("5d75"),O=n("fdcc"),k=n("eafb"),L=n("4b76"),E=n("e8e3");function D(e,t){return t&&(e.stack||e.stacktrace)?l["a"]("stackTrace.format","{0}: {1}",M(e),I(e.stack)||I(e.stacktrace)):M(e)}function I(e){return Array.isArray(e)?e.join("\n"):e}function M(e){return"string"===typeof e.code&&"number"===typeof e.errno&&"string"===typeof e.syscall?l["a"]("nodeExceptionMessage","A system error occurred ({0})",e.message):e.message||l["a"]("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function T(e=null,t=!1){if(!e)return l["a"]("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(e)){const n=E["e"](e),i=T(n[0],t);return n.length>1?l["a"]("error.moreErrors","{0} ({1} errors in total)",i,n.length):i}if(v["k"](e))return e;if(e.detail){const n=e.detail;if(n.error)return D(n.error,t);if(n.exception)return D(n.exception,t)}return e.stack?D(e,t):e.message?e.message:l["a"]("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var A=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},N=function(e,t){return function(n,i){t(n,i,e)}},P=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let j=class e extends g{constructor(t,n,i,r,o,s){super(e.PREFIX,t),this.instantiationService=n,this.keybindingService=i,this.commandService=r,this.telemetryService=o,this.dialogService=s,this.commandsHistory=this._register(this.instantiationService.createInstance(R)),this.options=t}_getPicks(t,n,i){return P(this,void 0,void 0,(function*(){const r=yield this.getCommandPicks(n,i);if(i.isCancellationRequested)return[];const o=[];for(const n of r){const i=Object(v["o"])(e.WORD_FILTER(t,n.label)),r=n.commandAlias?Object(v["o"])(e.WORD_FILTER(t,n.commandAlias)):void 0;i||r?(n.highlights={label:i,detail:this.options.showAlias?r:void 0},o.push(n)):t===n.commandId&&o.push(n)}const s=new Map;for(const e of o){const t=s.get(e.label);t?(e.description=e.commandId,t.description=t.commandId):s.set(e.label,e)}o.sort((e,t)=>{const n=this.commandsHistory.peek(e.commandId),i=this.commandsHistory.peek(t.commandId);return n&&i?n>i?-1:1:n?-1:i?1:e.label.localeCompare(t.label)});const a=[];let c=!1;for(let e=0;e<o.length;e++){const t=o[e],n=this.keybindingService.lookupKeybinding(t.commandId),i=n?Object(l["a"])("commandPickAriaLabelWithKeybinding","{0}, {1}",t.label,n.getAriaLabel()):t.label;0===e&&this.commandsHistory.peek(t.commandId)&&(a.push({type:"separator",label:Object(l["a"])("recentlyUsed","recently used")}),c=!0),0!==e&&c&&!this.commandsHistory.peek(t.commandId)&&(a.push({type:"separator",label:Object(l["a"])("morecCommands","other commands")}),c=!1),a.push(Object.assign(Object.assign({},t),{ariaLabel:i,detail:this.options.showAlias&&t.commandAlias!==t.label?t.commandAlias:void 0,keybinding:n,accept:()=>P(this,void 0,void 0,(function*(){this.commandsHistory.push(t.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:t.commandId,from:"quick open"});try{yield this.commandService.executeCommand(t.commandId)}catch(e){Object(O["d"])(e)||this.dialogService.show(L["a"].Error,Object(l["a"])("canNotRun","Command '{0}' resulted in an error ({1})",t.label,T(e)))}}))}))}return a}))}};j.PREFIX=">",j.WORD_FILTER=Object(m["j"])(m["h"],m["i"],m["f"]),j=A([N(1,w["a"]),N(2,C["a"]),N(3,S["b"]),N(4,x["a"]),N(5,k["a"])],j);let R=class e extends u["a"]{constructor(e,t){super(),this.storageService=e,this.configurationService=t,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(()=>this.updateConfiguration()))}updateConfiguration(){this.configuredCommandsHistoryLength=e.getConfiguredCommandHistoryLength(this.configurationService),e.cache&&e.cache.limit!==this.configuredCommandsHistoryLength&&(e.cache.limit=this.configuredCommandsHistoryLength,e.saveState(this.storageService))}load(){const t=this.storageService.get(e.PREF_KEY_CACHE,0);let n;if(t)try{n=JSON.parse(t)}catch(r){}const i=e.cache=new b["a"](this.configuredCommandsHistoryLength,1);if(n){let e;e=n.usesLRU?n.entries:n.entries.sort((e,t)=>e.value-t.value),e.forEach(e=>i.set(e.key,e.value))}e.counter=this.storageService.getNumber(e.PREF_KEY_COUNTER,0,e.counter)}push(t){e.cache&&(e.cache.set(t,e.counter++),e.saveState(this.storageService))}peek(t){var n;return null===(n=e.cache)||void 0===n?void 0:n.peek(t)}static saveState(t){if(!e.cache)return;const n={usesLRU:!0,entries:[]};e.cache.forEach((e,t)=>n.entries.push({key:t,value:e})),t.store(e.PREF_KEY_CACHE,JSON.stringify(n),0,0),t.store(e.PREF_KEY_COUNTER,e.counter,0,0)}static getConfiguredCommandHistoryLength(t){var n,i;const r=t.getValue(),o=null===(i=null===(n=r.workbench)||void 0===n?void 0:n.commandPalette)||void 0===i?void 0:i.history;return"number"===typeof o?o:e.DEFAULT_COMMANDS_HISTORY_LENGTH}};R.DEFAULT_COMMANDS_HISTORY_LENGTH=50,R.PREF_KEY_CACHE="commandPalette.mru.cache",R.PREF_KEY_COUNTER="commandPalette.mru.counter",R.counter=1,R=A([N(0,y["a"]),N(1,_["a"])],R);var F=n("1097");class B extends j{constructor(e,t,n,i,r,o){super(e,t,n,i,r,o)}getCodeEditorCommandPicks(){const e=this.activeTextEditorControl;if(!e)return[];const t=[];for(const n of e.getSupportedActions())t.push({commandId:n.id,commandAlias:n.alias,label:Object(F["e"])(n.label)||n.id});return t}}var W=n("b2cc"),V=n("c101"),z=n("66bd"),H=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},U=function(e,t){return function(n,i){t(n,i,e)}},q=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let $=class extends B{constructor(e,t,n,i,r,o){super({showAlias:!1},e,n,i,r,o),this.codeEditorService=t}get activeTextEditorControl(){return Object(v["o"])(this.codeEditorService.getFocusedCodeEditor())}getCommandPicks(){return q(this,void 0,void 0,(function*(){return this.getCodeEditorCommandPicks()}))}};$=H([U(0,w["a"]),U(1,a["a"]),U(2,C["a"]),U(3,S["b"]),U(4,x["a"]),U(5,k["a"])],$),r["a"].as(o["b"].Quickaccess).registerQuickAccessProvider({ctor:$,prefix:$.PREFIX,helpEntries:[{description:s["d"].quickCommandHelp,needsEditor:!0}]});class K extends W["b"]{constructor(){super({id:"editor.action.quickCommand",label:s["d"].quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:V["a"].focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(z["a"]).quickAccess.show($.PREFIX)}}Object(W["j"])(K)},"2e5d":function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return y})),n.d(t,"a",(function(){return _})),n.d(t,"g",(function(){return w}));var i=n("fdcc"),r=n("3742"),o=n("7061"),s=n("6a89"),a=n("8025"),l=n("b57f"),c=n("70cb");const u=()=>!0,h=()=>!1,d=e=>" "===e||"\t"===e;class f{constructor(e,t,n){this._cursorMoveConfigurationBrand=void 0,this._languageIdentifier=e;const i=n.options,r=i.get(129);this.readOnly=i.get(79),this.tabSize=t.tabSize,this.indentSize=t.indentSize,this.insertSpaces=t.insertSpaces,this.stickyTabStops=i.get(103),this.lineHeight=i.get(57),this.pageSize=Math.max(1,Math.floor(r.height/this.lineHeight)-2),this.useTabStops=i.get(114),this.wordSeparators=i.get(115),this.emptySelectionClipboard=i.get(30),this.copyWithSyntaxHighlighting=i.get(19),this.multiCursorMergeOverlapping=i.get(67),this.multiCursorPaste=i.get(69),this.autoClosingBrackets=i.get(5),this.autoClosingQuotes=i.get(8),this.autoClosingDelete=i.get(6),this.autoClosingOvertype=i.get(7),this.autoSurround=i.get(11),this.autoIndent=i.get(9),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:f._getShouldAutoClose(e,this.autoClosingQuotes),bracket:f._getShouldAutoClose(e,this.autoClosingBrackets)},this.autoClosingPairs=c["a"].getAutoClosingPairs(e.id);let o=f._getSurroundingPairs(e);if(o)for(const s of o)this.surroundingPairs[s.open]=s.close}static shouldRecreate(e){return e.hasChanged(129)||e.hasChanged(115)||e.hasChanged(30)||e.hasChanged(67)||e.hasChanged(69)||e.hasChanged(5)||e.hasChanged(8)||e.hasChanged(6)||e.hasChanged(7)||e.hasChanged(11)||e.hasChanged(114)||e.hasChanged(57)||e.hasChanged(79)}get electricChars(){if(!this._electricChars){this._electricChars={};let e=f._getElectricCharacters(this._languageIdentifier);if(e)for(const t of e)this._electricChars[t]=!0}return this._electricChars}normalizeIndentation(e){return l["b"].normalizeIndentation(e,this.indentSize,this.insertSpaces)}static _getElectricCharacters(e){try{return c["a"].getElectricCharacters(e.id)}catch(t){return Object(i["e"])(t),null}}static _getShouldAutoClose(e,t){switch(t){case"beforeWhitespace":return d;case"languageDefined":return f._getLanguageDefinedShouldAutoClose(e);case"always":return u;case"never":return h}}static _getLanguageDefinedShouldAutoClose(e){try{const t=c["a"].getAutoCloseBeforeSet(e.id);return e=>-1!==t.indexOf(e)}catch(t){return Object(i["e"])(t),h}}static _getSurroundingPairs(e){try{return c["a"].getSurroundingPairs(e.id)}catch(t){return Object(i["e"])(t),null}}}class p{constructor(e,t,n,i){this._singleCursorStateBrand=void 0,this.selectionStart=e,this.selectionStartLeftoverVisibleColumns=t,this.position=n,this.leftoverVisibleColumns=i,this.selection=p._computeSelection(this.selectionStart,this.position)}equals(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)}hasSelection(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()}move(e,t,n,i){return e?new p(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new o["a"](t,n),i):new p(new s["a"](t,n,t,n),i,new o["a"](t,n),i)}static _computeSelection(e,t){let n,i,r,o;return e.isEmpty()?(n=e.startLineNumber,i=e.startColumn,r=t.lineNumber,o=t.column):t.isBeforeOrEqual(e.getStartPosition())?(n=e.endLineNumber,i=e.endColumn,r=t.lineNumber,o=t.column):(n=e.startLineNumber,i=e.startColumn,r=t.lineNumber,o=t.column),new a["a"](n,i,r,o)}}class g{constructor(e,t,n,i){this._cursorContextBrand=void 0,this.model=e,this.viewModel=t,this.coordinatesConverter=n,this.cursorConfig=i}}class m{constructor(e){this.modelState=e,this.viewState=null}}class v{constructor(e){this.modelState=null,this.viewState=e}}class b{constructor(e,t){this._cursorStateBrand=void 0,this.modelState=e,this.viewState=t}static fromModelState(e){return new m(e)}static fromViewState(e){return new v(e)}static fromModelSelection(e){const t=e.selectionStartLineNumber,n=e.selectionStartColumn,i=e.positionLineNumber,r=e.positionColumn,a=new p(new s["a"](t,n,t,n),0,new o["a"](i,r),0);return b.fromModelState(a)}static fromModelSelections(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=this.fromModelSelection(e[n]);return t}equals(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)}}class y{constructor(e,t,n){this._editOperationResultBrand=void 0,this.type=e,this.commands=t,this.shouldPushStackElementBefore=n.shouldPushStackElementBefore,this.shouldPushStackElementAfter=n.shouldPushStackElementAfter}}class _{static visibleColumnFromColumn(e,t,n){const i=e.length,o=t-1<i?t-1:i;let s=0,a=0;while(a<o){const t=r["A"](e,o,a);if(a+=t>=65536?2:1,9===t)s=_.nextRenderTabStop(s,n);else{let n=r["x"](t);while(a<o){const t=r["A"](e,o,a),i=r["x"](t);if(r["c"](n,i))break;a+=t>=65536?2:1,n=i}r["E"](t)||r["C"](t)?s+=2:s+=1}}return s}static visibleColumnsByColumns(e,t){const n=e.length;let i=new Array;i.push(-1);let o=0,s=0;while(s<n){const a=r["A"](e,n,s);if(s+=a>=65536?2:1,i.push(o),a>=65536&&i.push(o),9===a)o=_.nextRenderTabStop(o,t);else{let t=r["x"](a);while(s<n){const l=r["A"](e,n,s),c=r["x"](l);if(r["c"](t,c))break;s+=l>=65536?2:1,i.push(o),a>=65536&&i.push(o),t=c}r["E"](a)||r["C"](a)?o+=2:o+=1}}return i.push(o),i}static visibleColumnFromColumn2(e,t,n){return this.visibleColumnFromColumn(t.getLineContent(n.lineNumber),n.column,e.tabSize)}static columnFromVisibleColumn(e,t,n){if(t<=0)return 1;const i=e.length;let o=0,s=1,a=0;while(a<i){const l=r["A"](e,i,a);let c;if(a+=l>=65536?2:1,9===l)c=_.nextRenderTabStop(o,n);else{let t=r["x"](l);while(a<i){const n=r["A"](e,i,a),o=r["x"](n);if(r["c"](t,o))break;a+=n>=65536?2:1,t=o}c=r["E"](l)||r["C"](l)?o+2:o+1}const u=a+1;if(c>=t){const e=t-o,n=c-t;return n<e?u:s}o=c,s=u}return i+1}static columnFromVisibleColumn2(e,t,n,i){let r=this.columnFromVisibleColumn(t.getLineContent(n),i,e.tabSize),o=t.getLineMinColumn(n);if(r<o)return o;let s=t.getLineMaxColumn(n);return r>s?s:r}static nextRenderTabStop(e,t){return e+t-e%t}static nextIndentTabStop(e,t){return e+t-e%t}static prevRenderTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}static prevIndentTabStop(e,t){return Math.max(0,e-1-(e-1)%t)}}function w(e){return"'"===e||'"'===e||"`"===e}},"2e5e":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:function(){return n.e("chunk-2d0c4a95").then(n.bind(null,"3c7f"))}})},"2e66":function(e,t,n){"use strict";n.r(t),n.d(t,"GhostTextController",(function(){return Ce})),n.d(t,"ActiveGhostTextController",(function(){return xe})),n.d(t,"commitInlineSuggestionAction",(function(){return ke})),n.d(t,"ShowNextInlineSuggestionAction",(function(){return Le})),n.d(t,"ShowPreviousInlineSuggestionAction",(function(){return Ee})),n.d(t,"TriggerInlineSuggestionAction",(function(){return De}));var i,r=n("a666"),o=n("b2cc"),s=n("c101"),a=(n("aa80"),n("11f7")),l=n("6a89"),c=n("5717"),u=n("3742"),h=n("6da2"),d=n("fd49"),f=n("7ab3"),p=n("1ddc"),g=n("e1b5"),m=n("7061"),v=n("b7d0"),b=n("918c"),y=n("ceb8"),_=n("2e5d"),w=n("7416"),C=n("4fc3"),S=n("0a0f"),x=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},O=function(e,t){return function(n,i){t(n,i,e)}};const k=null===(i=window.trustedTypes)||void 0===i?void 0:i.createPolicy("editorGhostText",{createHTML:e=>e});let L=class extends r["a"]{constructor(e,t,n){super(),this.editor=e,this.model=t,this.instantiationService=n,this.disposed=!1,this.partsWidget=this._register(this.instantiationService.createInstance(E,this.editor)),this.additionalLinesWidget=this._register(new I(this.editor)),this.viewMoreContentWidget=void 0,this._register(this.editor.onDidChangeConfiguration(e=>{(e.hasChanged(27)||e.hasChanged(104)||e.hasChanged(87)||e.hasChanged(81)||e.hasChanged(42)||e.hasChanged(41)||e.hasChanged(57))&&this.update()})),this._register(Object(r["i"])(()=>{var e;this.disposed=!0,this.update(),null===(e=this.viewMoreContentWidget)||void 0===e||e.dispose(),this.viewMoreContentWidget=void 0})),this._register(t.onDidChange(()=>{this.update()})),this.update()}shouldShowHoverAtViewZone(e){return this.additionalLinesWidget.viewZoneId===e}update(){var e;const t=this.model.ghostText;if(!this.editor.hasModel()||!t||this.disposed)return this.partsWidget.clear(),void this.additionalLinesWidget.clear();const n=new Array,i=new Array;function r(e,t){if(i.length>0){const n=i[i.length-1];t&&n.decorations.push(new w["a"](n.content.length+1,n.content.length+1+e[0].length,t,0)),n.content+=e[0],e=e.slice(1)}for(const n of e)i.push({content:n,decorations:t?[new w["a"](1,n.length+1,t,0)]:[]})}const o=this.editor.getModel().getLineContent(t.lineNumber);this.editor.getModel().getLineTokens(t.lineNumber);let s=void 0,a=0;for(const l of t.parts){let e=l.lines;void 0===s?(n.push({column:l.column,text:e[0]}),e=e.slice(1)):r([o.substring(a,l.column-1)],void 0),e.length>0&&(r(e,"ghost-text"),void 0===s&&l.column<=o.length&&(s=l.column)),a=l.column-1}void 0!==s&&r([o.substring(a)],void 0),this.partsWidget.setParts(t.lineNumber,n,void 0!==s?{column:s,length:o.length+1-s}:void 0),this.additionalLinesWidget.updateLines(t.lineNumber,i,t.additionalReservedLineCount),t.parts.some(e=>e.lines.length<0)?this.viewMoreContentWidget=this.renderViewMoreLines(new m["a"](t.lineNumber,this.editor.getModel().getLineMaxColumn(t.lineNumber)),"",0):(null===(e=this.viewMoreContentWidget)||void 0===e||e.dispose(),this.viewMoreContentWidget=void 0)}renderViewMoreLines(e,t,n){const i=this.editor.getOption(41),o=document.createElement("div");o.className="suggest-preview-additional-widget",p["a"].applyFontInfoSlow(o,i);const s=document.createElement("span");s.className="content-spacer",s.append(t),o.append(s);const l=document.createElement("span");l.className="content-newline suggest-preview-text",l.append("⏎ "),o.append(l);const c=new r["b"],u=document.createElement("div");return u.className="button suggest-preview-text",u.append(`+${n} lines…`),c.add(a["o"](u,"mousedown",e=>{var t;null===(t=this.model)||void 0===t||t.setExpanded(!0),e.preventDefault(),this.editor.focus()})),o.append(u),new N(this.editor,e,o,c)}};L=x([O(2,S["a"])],L);let E=class{constructor(e,t,n,i){this.editor=e,this.codeEditorService=t,this.themeService=n,this.contextKeyService=i,this.decorationIds=[],this.disposableStore=new r["b"]}dispose(){this.clear(),this.disposableStore.dispose()}clear(){this.editor.deltaDecorations(this.decorationIds,[]),this.disposableStore.clear()}setParts(e,t,n){this.disposableStore.clear();const i=this.themeService.getColorTheme(),r=i.getColor(b["r"]);let o=void 0,s=void 0;r&&(o=String(r.rgba.a),s=y["a"].Format.CSS.format(D(r)));const a=i.getColor(b["q"]);let c=void 0;a&&(c="2px dashed "+a);const u=this.editor.getModel();if(!u)return;const{tabSize:h}=u.getOptions(),d=u.getLineContent(e)||"";let f=0,p="";const g=new Array;n&&g.push({range:l["a"].fromPositions(new m["a"](e,n.column),new m["a"](e,n.column+n.length)),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});const v=this.contextKeyService.getContextKeyValue("config.editor.useInjectedText"),_=void 0===v||!!v;this.decorationIds=this.editor.deltaDecorations(this.decorationIds,t.map(t=>{p+=d.substring(f,t.column-1),f=t.column-1;const n=_?t.text:this.renderSingleLineText(t.text,p,h,!1),i=this.disposableStore.add(A(this.codeEditorService,"ghost-text","0-ghost-text-",{after:{contentText:n,opacity:o,color:s,border:c}}));return{range:l["a"].fromPositions(new m["a"](e,t.column)),options:_?{description:"ghost-text",after:{content:n,inlineClassName:"ghost-text-decoration"}}:Object.assign({},i.resolve())}}).concat(g))}renderSingleLineText(e,t,n,i){const r=t+e,o=_["a"].visibleColumnsByColumns(r,n);let s="",a=t.length+1;for(const l of e){if("\t"===l){const e=o[a+1]-o[a];if(i){s+="→";for(let t=1;t<e;t++)s+=" "}else for(let t=0;t<e;t++)s+=" "}else s+=" "===l?i?"·":" ":l;a+=1}return s}};function D(e){const{r:t,b:n,g:i}=e.rgba;return new y["a"](new y["c"](t,i,n,255))}E=x([O(1,c["a"]),O(2,v["b"]),O(3,C["b"])],E);class I{constructor(e){this.editor=e,this._viewZoneId=void 0}get viewZoneId(){return this._viewZoneId}dispose(){this.clear()}clear(){this.editor.changeViewZones(e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)})}updateLines(e,t,n){const i=this.editor.getModel();if(!i)return;const{tabSize:r}=i.getOptions();this.editor.changeViewZones(i=>{this._viewZoneId&&(i.removeZone(this._viewZoneId),this._viewZoneId=void 0);const o=Math.max(t.length,n);if(o>0){const n=document.createElement("div");M(n,r,t,this.editor.getOptions()),this._viewZoneId=i.addZone({afterLineNumber:e,heightInLines:o,domNode:n})}})}}function M(e,t,n,i){const r=i.get(27),o=i.get(104),s="none",a=i.get(81),l=i.get(42),c=i.get(41),m=i.get(57),v=Object(f["a"])(1e4);v.appendASCIIString('<div class="suggest-preview-text">');for(let f=0,p=n.length;f<p;f++){const e=n[f],i=e.content;v.appendASCIIString('<div class="view-line'),v.appendASCIIString('" style="top:'),v.appendASCIIString(String(f*m)),v.appendASCIIString('px;width:1000000px;">');const p=u["B"](i),b=u["m"](i),y=g["a"].createEmpty(i);Object(h["d"])(new h["c"](c.isMonospace&&!r,c.canUseHalfwidthRightwardsArrow,i,!1,p,b,0,y,e.decorations,t,0,c.spaceWidth,c.middotWidth,c.wsmiddotWidth,o,s,a,l!==d["e"].OFF,null),v),v.appendASCIIString("</div>")}v.appendASCIIString("</div>"),p["a"].applyFontInfoSlow(e,c);const b=v.build(),y=k?k.createHTML(b):b;e.innerHTML=y}let T=0;function A(e,t,n,i){const r=n+T++;return e.registerDecorationType(t,r,i),{dispose(){e.removeDecorationType(r)},resolve(){return e.resolveDecorationOptions(r,!0)}}}class N extends r["a"]{constructor(e,t,n,i){super(),this.editor=e,this.position=t,this.domNode=n,this.allowEditorOverflow=!1,this.suppressMouseDown=!1,this._register(i),this._register(Object(r["i"])(()=>{this.editor.removeContentWidget(this)})),this.editor.addContentWidget(this)}getId(){return"editor.widget.viewMoreLinesWidget"}getDomNode(){return this.domNode}getPosition(){return{position:this.position,preference:[0]}}}Object(v["f"])((e,t)=>{const n=e.getColor(b["r"]);if(n){const e=String(n.rgba.a),i=y["a"].Format.CSS.format(D(n));t.addRule(`.monaco-editor .ghost-text-decoration { opacity: ${e}; color: ${i}; }`),t.addRule(`.monaco-editor .suggest-preview-text .ghost-text { opacity: ${e}; color: ${i}; }`)}const i=e.getColor(b["q"]);i&&t.addRule(`.monaco-editor .suggest-preview-text .ghost-text { border: 2px dashed ${i}; }`)});var P=n("dff7"),j=n("5fe7"),R=n("2504"),F=n("fdcc"),B=n("308f"),W=n("b707"),V=n("d3f4"),z=n("9e74"),H=n("d585"),U=n("1b0e");class q{constructor(e,t,n=0){this.lineNumber=e,this.parts=t,this.additionalReservedLineCount=n}static equals(e,t){return e===t||!!e&&!!t&&e.equals(t)}equals(e){return this.lineNumber===e.lineNumber&&this.parts.length===e.parts.length&&this.parts.every((t,n)=>t.equals(e.parts[n]))}}class ${constructor(e,t){this.column=e,this.lines=t}equals(e){return this.column===e.column&&this.lines.length===e.lines.length&&this.lines.every((t,n)=>t===e.lines[n])}}class K extends r["a"]{constructor(e){super(),this.editor=e,this._expanded=void 0,this.onDidChangeEmitter=new B["b"],this.onDidChange=this.onDidChangeEmitter.event,this._register(e.onDidChangeConfiguration(e=>{e.hasChanged(105)&&void 0===this._expanded&&this.onDidChangeEmitter.fire()}))}get expanded(){return void 0===this._expanded||this._expanded}setExpanded(e){this._expanded=!0,this.onDidChangeEmitter.fire()}}var G=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Y=function(e,t){return function(n,i){t(n,i,e)}},Z=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let X=class extends r["a"]{constructor(e,t){super(),this.editor=e,this.commandService=t,this.onDidChangeEmitter=new B["b"],this.onDidChange=this.onDidChangeEmitter.event,this.completionSession=this._register(new r["d"]),this.active=!1,this._register(t.onDidExecuteCommand(t=>{const n=new Set([o["i"].id,o["g"].id,H["CoreEditingCommands"].Tab.id,H["CoreEditingCommands"].DeleteLeft.id,H["CoreEditingCommands"].DeleteRight.id]);n.has(t.commandId)&&e.hasTextFocus()&&this.handleUserInput()})),this._register(this.editor.onDidType(e=>{this.handleUserInput()})),this._register(this.editor.onDidChangeCursorPosition(e=>{this.session&&!this.session.isValid&&this.hide()}))}handleUserInput(){this.session&&!this.session.isValid&&this.hide(),setTimeout(()=>{this.startSessionIfTriggered()},0)}get session(){return this.completionSession.value}get ghostText(){var e;return null===(e=this.session)||void 0===e?void 0:e.ghostText}get minReservedLineCount(){return this.session?this.session.minReservedLineCount:0}get expanded(){return!!this.session&&this.session.expanded}setExpanded(e){var t;null===(t=this.session)||void 0===t||t.setExpanded(e)}setActive(e){var t;this.active=e,e&&(null===(t=this.session)||void 0===t||t.scheduleAutomaticUpdate())}startSessionIfTriggered(){const e=this.editor.getOption(53);e.enabled&&(this.session&&this.session.isValid||this.trigger())}trigger(){this.completionSession.value||(this.completionSession.value=new Q(this.editor,this.editor.getPosition(),()=>this.active,this.commandService),this.completionSession.value.takeOwnership(this.completionSession.value.onDidChange(()=>{this.onDidChangeEmitter.fire()})))}hide(){this.completionSession.clear(),this.onDidChangeEmitter.fire()}commitCurrentSuggestion(){var e;null===(e=this.session)||void 0===e||e.commitCurrentCompletion()}showNext(){var e;null===(e=this.session)||void 0===e||e.showNextInlineCompletion()}showPrevious(){var e;null===(e=this.session)||void 0===e||e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return Z(this,void 0,void 0,(function*(){const t=yield null===(e=this.session)||void 0===e?void 0:e.hasMultipleInlineCompletions();return void 0!==t&&t}))}};X=G([Y(1,z["b"])],X);class Q extends K{constructor(e,t,n,i){super(e),this.triggerPosition=t,this.shouldUpdate=n,this.commandService=i,this.minReservedLineCount=0,this.updateOperation=this._register(new r["d"]),this.cache=this._register(new r["d"]),this.updateSoon=this._register(new j["e"](()=>this.update(W["s"].Automatic),50)),this.textModel=this.editor.getModel(),this.currentlySelectedCompletionId=void 0;let o=void 0;this._register(this.onDidChange(()=>{const e=this.currentCompletion;if(e&&e.sourceInlineCompletion!==o){o=e.sourceInlineCompletion;const t=e.sourceProvider;t.handleItemDidShow&&t.handleItemDidShow(e.sourceInlineCompletions,o)}})),this._register(this.editor.onDidChangeCursorPosition(e=>{this.cache.value&&this.onDidChangeEmitter.fire()})),this._register(this.editor.onDidChangeModelContent(e=>{if(this.cache.value){let e=!1;for(const t of this.cache.value.completions){const n=this.textModel.getDecorationRange(t.decorationId);n?t.synchronizedRange.equalsRange(n)||(e=!0,t.synchronizedRange=n):Object(F["e"])(new Error("Decoration has no range"))}e&&this.onDidChangeEmitter.fire()}this.scheduleAutomaticUpdate()})),this._register(W["t"].onDidChange(()=>{this.updateSoon.schedule()})),this.scheduleAutomaticUpdate()}fixAndGetIndexOfCurrentSelection(){if(!this.currentlySelectedCompletionId||!this.cache.value)return 0;if(0===this.cache.value.completions.length)return 0;const e=this.cache.value.completions.findIndex(e=>e.semanticId===this.currentlySelectedCompletionId);return-1===e?(this.currentlySelectedCompletionId=void 0,0):e}get currentCachedCompletion(){if(this.cache.value)return this.cache.value.completions[this.fixAndGetIndexOfCurrentSelection()]}showNextInlineCompletion(){var e;return Z(this,void 0,void 0,(function*(){yield this.ensureUpdateWithExplicitContext();const t=(null===(e=this.cache.value)||void 0===e?void 0:e.completions)||[];if(t.length>0){const e=(this.fixAndGetIndexOfCurrentSelection()+1)%t.length;this.currentlySelectedCompletionId=t[e].semanticId}else this.currentlySelectedCompletionId=void 0;this.onDidChangeEmitter.fire()}))}showPreviousInlineCompletion(){var e;return Z(this,void 0,void 0,(function*(){yield this.ensureUpdateWithExplicitContext();const t=(null===(e=this.cache.value)||void 0===e?void 0:e.completions)||[];if(t.length>0){const e=(this.fixAndGetIndexOfCurrentSelection()+t.length-1)%t.length;this.currentlySelectedCompletionId=t[e].semanticId}else this.currentlySelectedCompletionId=void 0;this.onDidChangeEmitter.fire()}))}ensureUpdateWithExplicitContext(){var e;return Z(this,void 0,void 0,(function*(){this.updateOperation.value?this.updateOperation.value.triggerKind===W["s"].Explicit?yield this.updateOperation.value.promise:yield this.update(W["s"].Explicit):(null===(e=this.cache.value)||void 0===e?void 0:e.triggerKind)!==W["s"].Explicit&&(yield this.update(W["s"].Explicit))}))}hasMultipleInlineCompletions(){var e;return Z(this,void 0,void 0,(function*(){return yield this.ensureUpdateWithExplicitContext(),((null===(e=this.cache.value)||void 0===e?void 0:e.completions.length)||0)>1}))}get ghostText(){const e=this.currentCompletion,t=this.editor.getOptions().get(53).mode;return e?ne(e,this.editor.getModel(),t,this.editor.getPosition()):void 0}get currentCompletion(){const e=this.currentCachedCompletion;if(e)return{text:e.inlineCompletion.text,range:e.synchronizedRange,command:e.inlineCompletion.command,sourceProvider:e.inlineCompletion.sourceProvider,sourceInlineCompletions:e.inlineCompletion.sourceInlineCompletions,sourceInlineCompletion:e.inlineCompletion.sourceInlineCompletion}}get isValid(){return this.editor.getPosition().lineNumber===this.triggerPosition.lineNumber}scheduleAutomaticUpdate(){this.updateOperation.clear(),this.updateSoon.schedule()}update(e){return Z(this,void 0,void 0,(function*(){if(!this.shouldUpdate())return;const t=this.editor.getPosition(),n=Object(j["h"])(n=>Z(this,void 0,void 0,(function*(){let i;try{i=yield ae(t,this.editor.getModel(),{triggerKind:e},n)}catch(r){return void Object(F["e"])(r)}n.isCancellationRequested||(this.cache.value=new ee(this.editor,i,()=>this.onDidChangeEmitter.fire(),e),this.onDidChangeEmitter.fire())}))),i=new J(n,e);this.updateOperation.value=i,yield n,this.updateOperation.value===i&&this.updateOperation.clear()}))}takeOwnership(e){this._register(e)}commitCurrentCompletion(){if(!this.ghostText)return;const e=this.currentCompletion;e&&this.commit(e)}commit(e){const t=this.cache.clearAndLeak();this.editor.executeEdits("inlineSuggestion.accept",[V["a"].replaceMove(e.range,e.text)]),e.command?this.commandService.executeCommand(e.command.id,...e.command.arguments||[]).finally(()=>{null===t||void 0===t||t.dispose()}).then(void 0,F["f"]):null===t||void 0===t||t.dispose(),this.onDidChangeEmitter.fire()}}class J{constructor(e,t){this.promise=e,this.triggerKind=t}dispose(){this.promise.cancel()}}class ee extends r["a"]{constructor(e,t,n,i){super(),this.triggerKind=i;const o=e.deltaDecorations([],t.items.map(e=>({range:e.range,options:{description:"inline-completion-tracking-range"}})));this._register(Object(r["i"])(()=>{e.deltaDecorations(o,[])})),this.completions=t.items.map((e,t)=>new te(e,o[t])),this._register(e.onDidChangeModelContent(()=>{let t=!1;const i=e.getModel();for(const e of this.completions){const n=i.getDecorationRange(e.decorationId);n?e.synchronizedRange.equalsRange(n)||(t=!0,e.synchronizedRange=n):Object(F["e"])(new Error("Decoration has no range"))}t&&n()})),this._register(t)}}class te{constructor(e,t){this.inlineCompletion=e,this.decorationId=t,this.semanticId=JSON.stringify({text:this.inlineCompletion.text,startLine:this.inlineCompletion.range.startLineNumber,startColumn:this.inlineCompletion.range.startColumn,command:this.inlineCompletion.command}),this.synchronizedRange=e.range}}function ne(e,t,n,i){if(e.range.startLineNumber!==e.range.endLineNumber)return;const r=t.getValueInRange(e.range),o=re(r,e.text),s=e.range.startLineNumber,a=new Array;if("prefix"===n){const e=o.filter(e=>0===e.originalLength);if(e.length>1||1===e.length&&e[0].originalStart!==r.length)return}for(const l of o){const o=e.range.startColumn+l.originalStart+l.originalLength;if("subwordSmart"===n&&i&&i.lineNumber===e.range.startLineNumber&&o<i.column)return;if(l.originalLength>0){const e=r.substr(l.originalStart,l.originalLength),n=t.getLineFirstNonWhitespaceColumn(s);if(!/^(\t| )*$/.test(e)||!(0===n||o<=n))return}if(0===l.modifiedLength)continue;const c=e.text.substr(l.modifiedStart,l.modifiedLength),h=u["R"](c);a.push(new $(o,h))}return new q(s,a,0)}let ie=void 0;function re(e,t){if((null===ie||void 0===ie?void 0:ie.originalValue)===e&&(null===ie||void 0===ie?void 0:ie.newValue)===t)return null===ie||void 0===ie?void 0:ie.changes;{const n=oe(e,t);return ie={originalValue:e,newValue:t,changes:n},n}}function oe(e,t){function n(e){let t=0;for(let n=0,i=e.length;n<i;n++){const i=e.charCodeAt(n);i>t&&(t=i)}return t}const i=Math.max(n(e),n(t));function r(e){if(e<0)throw new Error("unexpected");return i+e+1}function o(e){let t=0,n=0;const i=new Int32Array(e.length);for(let o=0,s=e.length;o<s;o++){const s=100*n+t;"("===e[o]?(i[o]=r(2*s),t++):")"===e[o]?(i[o]=r(2*s+1),1===t&&n++,t=Math.max(t-1,0)):i[o]=e.charCodeAt(o)}return i}const s=o(e),a=o(t);return new U["a"]({getElements:()=>s},{getElements:()=>a}).ComputeDiff(!1).changes}function se(e,t){const n=t.getWordAtPosition(e),i=t.getLineMaxColumn(e.lineNumber);return n?new l["a"](e.lineNumber,n.startColumn,e.lineNumber,i):l["a"].fromPositions(e,e.with(void 0,i))}function ae(e,t,n,i=R["a"].None){return Z(this,void 0,void 0,(function*(){const r=se(e,t),o=W["t"].all(t),s=yield Promise.all(o.map(r=>Z(this,void 0,void 0,(function*(){const o=yield r.provideInlineCompletions(t,e,n,i);return{completions:o,provider:r,dispose:()=>{o&&r.freeInlineCompletions(o)}}})))),a=new Map;for(const e of s){const t=e.completions;if(t)for(const n of t.items.map(n=>({text:n.text,range:n.range?l["a"].lift(n.range):r,command:n.command,sourceProvider:e.provider,sourceInlineCompletions:t,sourceInlineCompletion:n})))n.range.startLineNumber===n.range.endLineNumber&&a.set(JSON.stringify({text:n.text,range:n.range}),n)}return{items:[...a.values()],dispose:()=>{for(const e of s)e.dispose()}}}))}var le=n("b800"),ce=n("59a4"),ue=n("7a9e");class he extends K{constructor(e){super(e),this.isSuggestWidgetVisible=!1,this.currentGhostText=void 0,this._isActive=!1,this.isShiftKeyPressed=!1,this.minReservedLineCount=0,this.setInactiveDelayed=this._register(new j["e"](()=>{this.isSuggestWidgetVisible||this.isActive&&(this._isActive=!1,this.onDidChangeEmitter.fire())},100));const t=ue["SuggestController"].get(this.editor);if(t){let e=!1;const n=()=>{e||(e=!0,this._register(t.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this._isActive=!0,this.updateFromSuggestion()})),this._register(t.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.setInactiveDelayed.schedule(),this.minReservedLineCount=0,this.updateFromSuggestion()})),this._register(t.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this._isActive=!0,this.updateFromSuggestion()})))};this._register(B["c"].once(t.model.onDidTrigger)(e=>{n()}))}this.updateFromSuggestion(),this._register(this.editor.onDidChangeCursorPosition(e=>{this.isSuggestionPreviewEnabled()&&this.update()})),this._register(Object(r["i"])(()=>{const e=ue["SuggestController"].get(this.editor);e&&e.stopForceRenderingAbove()})),this._register(e.onKeyDown(e=>{e.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.updateFromSuggestion())})),this._register(e.onKeyUp(e=>{e.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.updateFromSuggestion())}))}get isActive(){return this._isActive}setExpanded(e){super.setExpanded(e),this.updateFromSuggestion()}isSuggestionPreviewEnabled(){const e=this.editor.getOption(105);return e.preview}updateFromSuggestion(){const e=ue["SuggestController"].get(this.editor);if(!e)return void this.setCurrentInlineCompletion(void 0);if(!this.isSuggestWidgetVisible)return void this.setCurrentInlineCompletion(void 0);const t=e.widget.value.getFocusedItem();t?this.setCurrentInlineCompletion(de(e,this.editor.getPosition(),t,this.isShiftKeyPressed)):this.setCurrentInlineCompletion(void 0)}setCurrentInlineCompletion(e){this.currentCompletion=e,this.update()}update(){const e=this.currentCompletion,t=this.editor.getOptions().get(105).previewMode;this.setGhostText(e?ne(e,this.editor.getModel(),t,this.editor.getPosition())||new q(e.range.endLineNumber,[],this.minReservedLineCount):void 0)}setGhostText(e){if(q.equals(this.currentGhostText,e))return;this.currentGhostText=e,this.currentGhostText&&this.expanded&&(this.minReservedLineCount=Math.max(this.minReservedLineCount,...this.currentGhostText.parts.map(e=>e.lines.length-1)));const t=ue["SuggestController"].get(this.editor);t&&(this.minReservedLineCount>=1&&this.isSuggestionPreviewEnabled()?t.forceRenderingAbove():t.stopForceRenderingAbove()),this.onDidChangeEmitter.fire()}get ghostText(){return this.isSuggestionPreviewEnabled()?this.currentGhostText:void 0}}function de(e,t,n,i){const r=n.item;if(Array.isArray(r.completion.additionalTextEdits))return{text:"",range:l["a"].fromPositions(t,t)};let{insertText:o}=r.completion;if(4&r.completion.insertTextRules){const n=(new le["c"]).parse(o),i=e.editor.getModel();ce["a"].adjustWhitespace(i,t,n,!0,!0),o=n.toString()}const s=e.getOverwriteInfo(r,i);return{text:o,range:l["a"].fromPositions(t.delta(0,-s.overwriteBefore),t.delta(0,Math.max(s.overwriteAfter,0)))}}function fe(e,t){return{object:e,dispose:()=>null===t||void 0===t?void 0:t.dispose()}}var pe=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ge=function(e,t){return function(n,i){t(n,i,e)}},me=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class ve extends r["a"]{constructor(){super(...arguments),this.onDidChangeEmitter=new B["b"],this.onDidChange=this.onDidChangeEmitter.event,this.hasCachedGhostText=!1,this.currentModelRef=this._register(new r["d"])}get targetModel(){var e;return null===(e=this.currentModelRef.value)||void 0===e?void 0:e.object}setTargetModel(e){var t;(null===(t=this.currentModelRef.value)||void 0===t?void 0:t.object)!==e&&(this.currentModelRef.clear(),this.currentModelRef.value=e?fe(e,e.onDidChange(()=>{this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire()})):void 0,this.hasCachedGhostText=!1,this.onDidChangeEmitter.fire())}get ghostText(){var e,t;return this.hasCachedGhostText||(this.cachedGhostText=null===(t=null===(e=this.currentModelRef.value)||void 0===e?void 0:e.object)||void 0===t?void 0:t.ghostText,this.hasCachedGhostText=!0),this.cachedGhostText}setExpanded(e){var t;null===(t=this.targetModel)||void 0===t||t.setExpanded(e)}get expanded(){return!!this.targetModel&&this.targetModel.expanded}get minReservedLineCount(){return this.targetModel?this.targetModel.minReservedLineCount:0}}let be=class extends ve{constructor(e,t){super(),this.editor=e,this.commandService=t,this.suggestWidgetAdapterModel=this._register(new he(this.editor)),this.inlineCompletionsModel=this._register(new X(this.editor,this.commandService)),this._register(this.suggestWidgetAdapterModel.onDidChange(()=>{this.updateModel()})),this.updateModel()}get activeInlineCompletionsModel(){if(this.targetModel===this.inlineCompletionsModel)return this.inlineCompletionsModel}updateModel(){this.setTargetModel(this.suggestWidgetAdapterModel.isActive?this.suggestWidgetAdapterModel:this.inlineCompletionsModel),this.inlineCompletionsModel.setActive(this.targetModel===this.inlineCompletionsModel)}shouldShowHoverAt(e){var t;const n=null===(t=this.activeInlineCompletionsModel)||void 0===t?void 0:t.ghostText;return!!n&&n.parts.some(t=>e.containsPosition(new m["a"](n.lineNumber,t.column)))}triggerInlineCompletion(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.trigger()}commitInlineCompletion(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.commitCurrentSuggestion()}hideInlineCompletion(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.hide()}showNextInlineCompletion(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.showNext()}showPreviousInlineCompletion(){var e;null===(e=this.activeInlineCompletionsModel)||void 0===e||e.showPrevious()}hasMultipleInlineCompletions(){var e;return me(this,void 0,void 0,(function*(){const t=yield null===(e=this.activeInlineCompletionsModel)||void 0===e?void 0:e.hasMultipleInlineCompletions();return void 0!==t&&t}))}};be=pe([ge(1,z["b"])],be);var ye=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},_e=function(e,t){return function(n,i){t(n,i,e)}},we=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let Ce=class e extends r["a"]{constructor(e,t){super(),this.editor=e,this.instantiationService=t,this.triggeredExplicitly=!1,this.activeController=this._register(new r["d"]),this._register(this.editor.onDidChangeModel(()=>{this.updateModelController()})),this._register(this.editor.onDidChangeConfiguration(e=>{e.hasChanged(105)&&this.updateModelController(),e.hasChanged(53)&&this.updateModelController()})),this.updateModelController()}static get(t){return t.getContribution(e.ID)}get activeModel(){var e;return null===(e=this.activeController.value)||void 0===e?void 0:e.model}updateModelController(){const e=this.editor.getOption(105),t=this.editor.getOption(53);this.activeController.value=void 0,this.activeController.value=this.editor.hasModel()&&(e.preview||t.enabled||this.triggeredExplicitly)?this.instantiationService.createInstance(xe,this.editor):void 0}shouldShowHoverAt(e){var t;return(null===(t=this.activeModel)||void 0===t?void 0:t.shouldShowHoverAt(e))||!1}shouldShowHoverAtViewZone(e){var t,n;return(null===(n=null===(t=this.activeController.value)||void 0===t?void 0:t.widget)||void 0===n?void 0:n.shouldShowHoverAtViewZone(e))||!1}trigger(){var e;this.triggeredExplicitly=!0,this.activeController.value||this.updateModelController(),null===(e=this.activeModel)||void 0===e||e.triggerInlineCompletion()}commit(){var e;null===(e=this.activeModel)||void 0===e||e.commitInlineCompletion()}hide(){var e;null===(e=this.activeModel)||void 0===e||e.hideInlineCompletion()}showNextInlineCompletion(){var e;null===(e=this.activeModel)||void 0===e||e.showNextInlineCompletion()}showPreviousInlineCompletion(){var e;null===(e=this.activeModel)||void 0===e||e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return we(this,void 0,void 0,(function*(){const t=yield null===(e=this.activeModel)||void 0===e?void 0:e.hasMultipleInlineCompletions();return void 0!==t&&t}))}};Ce.inlineSuggestionVisible=new C["c"]("inlineSuggestionVisible",!1,P["a"]("inlineSuggestionVisible","Whether an inline suggestion is visible")),Ce.inlineSuggestionHasIndentation=new C["c"]("inlineSuggestionHasIndentation",!1,P["a"]("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace")),Ce.ID="editor.contrib.ghostTextController",Ce=ye([_e(1,S["a"])],Ce);class Se{constructor(e){this.contextKeyService=e,this.inlineCompletionVisible=Ce.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=Ce.inlineSuggestionHasIndentation.bindTo(this.contextKeyService)}}let xe=class extends r["a"]{constructor(e,t,n){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=n,this.contextKeys=new Se(this.contextKeyService),this.model=this._register(this.instantiationService.createInstance(be,this.editor)),this.widget=this._register(this.instantiationService.createInstance(L,this.editor,this.model)),this._register(Object(r["i"])(()=>{this.contextKeys.inlineCompletionVisible.set(!1),this.contextKeys.inlineCompletionSuggestsIndentation.set(!1)})),this._register(this.model.onDidChange(()=>{this.updateContextKeys()})),this.updateContextKeys()}updateContextKeys(){var e;this.contextKeys.inlineCompletionVisible.set(void 0!==(null===(e=this.model.activeInlineCompletionsModel)||void 0===e?void 0:e.ghostText));const t=this.model.inlineCompletionsModel.ghostText;if(t&&t.parts.length>0){const{column:e,lines:n}=t.parts[0],i=n[0].startsWith(" ")||n[0].startsWith("\t"),r=this.editor.getModel().getLineIndentColumn(t.lineNumber),o=e<=r;this.contextKeys.inlineCompletionSuggestsIndentation.set(!!this.model.activeInlineCompletionsModel&&i&&o)}else this.contextKeys.inlineCompletionSuggestsIndentation.set(!1)}};xe=ye([_e(1,S["a"]),_e(2,C["b"])],xe);const Oe=o["c"].bindToContribution(Ce.get),ke=new Oe({id:"editor.action.inlineSuggest.commit",precondition:C["a"].and(Ce.inlineSuggestionVisible,Ce.inlineSuggestionHasIndentation.toNegated(),s["a"].tabMovesFocus.toNegated()),kbOpts:{weight:200,primary:2},handler(e){e.commit(),e.editor.focus()}});Object(o["k"])(ke),Object(o["k"])(new Oe({id:"editor.action.inlineSuggest.hide",precondition:Ce.inlineSuggestionVisible,kbOpts:{weight:100,primary:9},handler(e){e.hide()}}));class Le extends o["b"]{constructor(){super({id:Le.ID,label:P["a"]("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:C["a"].and(s["a"].writable,Ce.inlineSuggestionVisible),kbOpts:{weight:100,primary:601}})}run(e,t){return we(this,void 0,void 0,(function*(){const e=Ce.get(t);e&&(e.showNextInlineCompletion(),t.focus())}))}}Le.ID="editor.action.inlineSuggest.showNext";class Ee extends o["b"]{constructor(){super({id:Ee.ID,label:P["a"]("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:C["a"].and(s["a"].writable,Ce.inlineSuggestionVisible),kbOpts:{weight:100,primary:599}})}run(e,t){return we(this,void 0,void 0,(function*(){const e=Ce.get(t);e&&(e.showPreviousInlineCompletion(),t.focus())}))}}Ee.ID="editor.action.inlineSuggest.showPrevious";class De extends o["b"]{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:P["a"]("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:s["a"].writable})}run(e,t){return we(this,void 0,void 0,(function*(){const e=Ce.get(t);e&&e.trigger()}))}}Object(o["l"])(Ce.ID,Ce),Object(o["j"])(De),Object(o["j"])(Le),Object(o["j"])(Ee)},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2f1e":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var i,r=n("89cd"),o=n("e8e3"),s=n("a666");(function(e){e[e["PRESERVE"]=0]="PRESERVE",e[e["LAST"]=1]="LAST"})(i||(i={}));const a={Quickaccess:"workbench.contributions.quickaccess"};class l{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(e){return 0===e.prefix.length?this.defaultProvider=e:this.providers.push(e),this.providers.sort((e,t)=>t.prefix.length-e.prefix.length),Object(s["i"])(()=>{this.providers.splice(this.providers.indexOf(e),1),this.defaultProvider===e&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return Object(o["e"])([this.defaultProvider,...this.providers])}getQuickAccessProvider(e){const t=e&&this.providers.find(t=>e.startsWith(t.prefix))||void 0;return t||this.defaultProvider}}r["a"].add(a.Quickaccess,new l)},"2f1f":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var i=n("6d8b"),r=Object(i["createHashMap"])();function o(e,t){Object(i["assert"])(null==r.get(e)&&t),r.set(e,t)}function s(e,t,n){var i=r.get(t);if(!i)return n;var o=i(e);return o?n.concat(o):n}},"2f45":function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var i=n("6d8b"),r=n("07fd"),o=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function s(e,t){var n={},s=n.encode={},l=Object(i["createHashMap"])(),u=[],h=[],d={};Object(i["each"])(e.dimensions,(function(t){var n=e.getDimensionInfo(t),i=n.coordDim;if(i){0;var o=n.coordDimIndex;a(s,i)[o]=t,n.isExtraCoord||(l.set(i,1),c(n.type)&&(u[0]=t),a(d,i)[o]=e.getDimensionIndex(n.name)),n.defaultTooltip&&h.push(t)}r["i"].each((function(e,t){var i=a(s,t),r=n.otherDims[t];null!=r&&!1!==r&&(i[r]=n.name)}))}));var f=[],p={};l.each((function(e,t){var n=s[t];p[t]=n[0],f=f.concat(n)})),n.dataDimsOnCoord=f,n.dataDimIndicesOnCoord=Object(i["map"])(f,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=p;var g=s.label;g&&g.length&&(u=g.slice());var m=s.tooltip;return m&&m.length?h=m.slice():h.length||(h=u.slice()),s.defaultedLabel=u,s.defaultedTooltip=h,n.userOutput=new o(d,t),n}function a(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function l(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function c(e){return!("ordinal"===e||"time"===e)}},"2f62":function(e,t,n){"use strict";(function(e){
|
||
/*!
|
||
* vuex v3.6.2
|
||
* (c) 2021 Evan You
|
||
* @license MIT
|
||
*/
|
||
function i(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,"b",(function(){return P})),n.d(t,"c",(function(){return A}));var r="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},o=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function s(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function a(e,t){return e.filter(t)[0]}function l(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=a(t,(function(t){return t.original===e}));if(n)return n.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(n){i[n]=l(e[n],t)})),i}function c(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function u(e){return null!==e&&"object"===typeof e}function h(e){return e&&"function"===typeof e.then}function d(e,t){return function(){return e(t)}}var f=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},f.prototype.addChild=function(e,t){this._children[e]=t},f.prototype.removeChild=function(e){delete this._children[e]},f.prototype.getChild=function(e){return this._children[e]},f.prototype.hasChild=function(e){return e in this._children},f.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},f.prototype.forEachChild=function(e){c(this._children,e)},f.prototype.forEachGetter=function(e){this._rawModule.getters&&c(this._rawModule.getters,e)},f.prototype.forEachAction=function(e){this._rawModule.actions&&c(this._rawModule.actions,e)},f.prototype.forEachMutation=function(e){this._rawModule.mutations&&c(this._rawModule.mutations,e)},Object.defineProperties(f.prototype,p);var g=function(e){this.register([],e,!1)};function m(e,t,n){if(t.update(n),n.modules)for(var i in n.modules){if(!t.getChild(i))return void 0;m(e.concat(i),t.getChild(i),n.modules[i])}}g.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},g.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},g.prototype.update=function(e){m([],this.root,e)},g.prototype.register=function(e,t,n){var i=this;void 0===n&&(n=!0);var r=new f(t,n);if(0===e.length)this.root=r;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],r)}t.modules&&c(t.modules,(function(t,r){i.register(e.concat(r),t,n)}))},g.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],i=t.getChild(n);i&&i.runtime&&t.removeChild(n)},g.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var v;var b=function(e){var t=this;void 0===e&&(e={}),!v&&"undefined"!==typeof window&&window.Vue&&T(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new g(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new v,this._makeLocalGettersCache=Object.create(null);var r=this,o=this,a=o.dispatch,l=o.commit;this.dispatch=function(e,t){return a.call(r,e,t)},this.commit=function(e,t,n){return l.call(r,e,t,n)},this.strict=i;var c=this._modules.root.state;S(this,c,[],this._modules.root),C(this,c),n.forEach((function(e){return e(t)}));var u=void 0!==e.devtools?e.devtools:v.config.devtools;u&&s(this)},y={state:{configurable:!0}};function _(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function w(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;S(e,n,[],e._modules.root,!0),C(e,n,t)}function C(e,t,n){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,o={};c(r,(function(t,n){o[n]=d(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=v.config.silent;v.config.silent=!0,e._vm=new v({data:{$$state:t},computed:o}),v.config.silent=s,e.strict&&D(e),i&&(n&&e._withCommit((function(){i._data.$$state=null})),v.nextTick((function(){return i.$destroy()})))}function S(e,t,n,i,r){var o=!n.length,s=e._modules.getNamespace(n);if(i.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=i),!o&&!r){var a=I(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){v.set(a,l,i.state)}))}var c=i.context=x(e,s,n);i.forEachMutation((function(t,n){var i=s+n;k(e,i,t,c)})),i.forEachAction((function(t,n){var i=t.root?n:s+n,r=t.handler||t;L(e,i,r,c)})),i.forEachGetter((function(t,n){var i=s+n;E(e,i,t,c)})),i.forEachChild((function(i,o){S(e,t,n.concat(o),i,r)}))}function x(e,t,n){var i=""===t,r={dispatch:i?e.dispatch:function(n,i,r){var o=M(n,i,r),s=o.payload,a=o.options,l=o.type;return a&&a.root||(l=t+l),e.dispatch(l,s)},commit:i?e.commit:function(n,i,r){var o=M(n,i,r),s=o.payload,a=o.options,l=o.type;a&&a.root||(l=t+l),e.commit(l,s,a)}};return Object.defineProperties(r,{getters:{get:i?function(){return e.getters}:function(){return O(e,t)}},state:{get:function(){return I(e.state,n)}}}),r}function O(e,t){if(!e._makeLocalGettersCache[t]){var n={},i=t.length;Object.keys(e.getters).forEach((function(r){if(r.slice(0,i)===t){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return e.getters[r]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function k(e,t,n,i){var r=e._mutations[t]||(e._mutations[t]=[]);r.push((function(t){n.call(e,i.state,t)}))}function L(e,t,n,i){var r=e._actions[t]||(e._actions[t]=[]);r.push((function(t){var r=n.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},t);return h(r)||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}function E(e,t,n,i){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(i.state,i.getters,e.state,e.getters)})}function D(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function I(e,t){return t.reduce((function(e,t){return e[t]}),e)}function M(e,t,n){return u(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function T(e){v&&e===v||(v=e,i(v))}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(e){0},b.prototype.commit=function(e,t,n){var i=this,r=M(e,t,n),o=r.type,s=r.payload,a=(r.options,{type:o,payload:s}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){return e(a,i.state)})))},b.prototype.dispatch=function(e,t){var n=this,i=M(e,t),r=i.type,o=i.payload,s={type:r,payload:o},a=this._actions[r];if(a){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,n.state)}))}catch(c){0}var l=a.length>1?Promise.all(a.map((function(e){return e(o)}))):a[0](o);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,n.state)}))}catch(c){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,n.state,e)}))}catch(c){0}t(e)}))}))}},b.prototype.subscribe=function(e,t){return _(e,this._subscribers,t)},b.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return _(n,this._actionSubscribers,t)},b.prototype.watch=function(e,t,n){var i=this;return this._watcherVM.$watch((function(){return e(i.state,i.getters)}),t,n)},b.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},b.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),S(this,this.state,e,this._modules.get(e),n.preserveState),C(this,this.state)},b.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=I(t.state,e.slice(0,-1));v.delete(n,e[e.length-1])})),w(this)},b.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},b.prototype.hotUpdate=function(e){this._modules.update(e),w(this,!0)},b.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(b.prototype,y);var A=W((function(e,t){var n={};return F(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var i=V(this.$store,"mapState",e);if(!i)return;t=i.context.state,n=i.context.getters}return"function"===typeof r?r.call(this,t,n):t[r]},n[i].vuex=!0})),n})),N=W((function(e,t){var n={};return F(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.commit;if(e){var o=V(this.$store,"mapMutations",e);if(!o)return;i=o.context.commit}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),P=W((function(e,t){var n={};return F(t).forEach((function(t){var i=t.key,r=t.val;r=e+r,n[i]=function(){if(!e||V(this.$store,"mapGetters",e))return this.$store.getters[r]},n[i].vuex=!0})),n})),j=W((function(e,t){var n={};return F(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.dispatch;if(e){var o=V(this.$store,"mapActions",e);if(!o)return;i=o.context.dispatch}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),R=function(e){return{mapState:A.bind(null,e),mapGetters:P.bind(null,e),mapMutations:N.bind(null,e),mapActions:j.bind(null,e)}};function F(e){return B(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function B(e){return Array.isArray(e)||u(e)}function W(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function V(e,t,n){var i=e._modulesNamespaceMap[n];return i}function z(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var i=e.transformer;void 0===i&&(i=function(e){return e});var r=e.mutationTransformer;void 0===r&&(r=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var a=e.logMutations;void 0===a&&(a=!0);var c=e.logActions;void 0===c&&(c=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var h=l(e.state);"undefined"!==typeof u&&(a&&e.subscribe((function(e,o){var s=l(o);if(n(e,h,s)){var a=q(),c=r(e),d="mutation "+e.type+a;H(u,d,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",i(h)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",i(s)),U(u)}h=s})),c&&e.subscribeAction((function(e,n){if(o(e,n)){var i=q(),r=s(e),a="action "+e.type+i;H(u,a,t),u.log("%c action","color: #03A9F4; font-weight: bold",r),U(u)}})))}}function H(e,t,n){var i=n?e.groupCollapsed:e.group;try{i.call(e,t)}catch(r){e.log(t)}}function U(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function q(){var e=new Date;return" @ "+K(e.getHours(),2)+":"+K(e.getMinutes(),2)+":"+K(e.getSeconds(),2)+"."+K(e.getMilliseconds(),3)}function $(e,t){return new Array(t+1).join(e)}function K(e,t){return $("0",t-e.toString().length)+e}var G={Store:b,install:T,version:"3.6.2",mapState:A,mapMutations:N,mapGetters:P,mapActions:j,createNamespacedHelpers:R,createLogger:z};t["a"]=G}).call(this,n("c8ba"))},"2f9a":function(e,t){e.exports=function(){}},"2fae":function(e,t,n){"use strict";function i(e){var t=this;if(t instanceof i||(t=new i),t.tail=null,t.head=null,t.length=0,e&&"function"===typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}function r(e,t,n){var i=t===e.head?new a(n,null,t,e):new a(n,t,t.next,e);return null===i.next&&(e.tail=i),null===i.prev&&(e.head=i),e.length++,i}function o(e,t){e.tail=new a(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function s(e,t){e.head=new a(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function a(e,t,n,i){if(!(this instanceof a))return new a(e,t,n,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=i,i.Node=a,i.create=i,i.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},i.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},i.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},i.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},i.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)s(this,arguments[e]);return this.length},i.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},i.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},i.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,i=0;null!==n;i++)e.call(t,n.value,i,this),n=n.next},i.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,i=this.length-1;null!==n;i--)e.call(t,n.value,i,this),n=n.prev},i.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},i.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},i.prototype.map=function(e,t){t=t||this;for(var n=new i,r=this.head;null!==r;)n.push(e.call(t,r.value,this)),r=r.next;return n},i.prototype.mapReverse=function(e,t){t=t||this;for(var n=new i,r=this.tail;null!==r;)n.push(e.call(t,r.value,this)),r=r.prev;return n},i.prototype.reduce=function(e,t){var n,i=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");i=this.head.next,n=this.head.value}for(var r=0;null!==i;r++)n=e(n,i.value,r),i=i.next;return n},i.prototype.reduceReverse=function(e,t){var n,i=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");i=this.tail.prev,n=this.tail.value}for(var r=this.length-1;null!==i;r--)n=e(n,i.value,r),i=i.prev;return n},i.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},i.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},i.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new i;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;for(;null!==o&&r<t;r++,o=o.next)n.push(o.value);return n},i.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var n=new i;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,o=this.tail;null!==o&&r>t;r--)o=o.prev;for(;null!==o&&r>e;r--,o=o.prev)n.push(o.value);return n},i.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;var s=[];for(i=0;o&&i<t;i++)s.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(i=0;i<n.length;i++)o=r(this,o,n[i]);return s},i.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var i=n.prev;n.prev=n.next,n.next=i}return this.head=t,this.tail=e,this};try{n("aff9")(i)}catch(l){}},"301c":function(e,t,n){n("e198")("asyncIterator")},"303e":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"wc",(function(){return f})),n.d(t,"eb",(function(){return p})),n.d(t,"cb",(function(){return g})),n.d(t,"fb",(function(){return m})),n.d(t,"db",(function(){return v})),n.d(t,"h",(function(){return b})),n.d(t,"b",(function(){return y})),n.d(t,"Jc",(function(){return _})),n.d(t,"Ic",(function(){return w})),n.d(t,"Hc",(function(){return C})),n.d(t,"Mc",(function(){return S})),n.d(t,"jb",(function(){return x})),n.d(t,"lb",(function(){return O})),n.d(t,"kb",(function(){return k})),n.d(t,"hb",(function(){return L})),n.d(t,"gb",(function(){return E})),n.d(t,"ib",(function(){return D})),n.d(t,"pb",(function(){return I})),n.d(t,"rb",(function(){return M})),n.d(t,"qb",(function(){return T})),n.d(t,"sb",(function(){return A})),n.d(t,"ub",(function(){return N})),n.d(t,"tb",(function(){return P})),n.d(t,"mb",(function(){return j})),n.d(t,"ob",(function(){return R})),n.d(t,"nb",(function(){return F})),n.d(t,"f",(function(){return V})),n.d(t,"e",(function(){return z})),n.d(t,"g",(function(){return H})),n.d(t,"c",(function(){return U})),n.d(t,"d",(function(){return q})),n.d(t,"yc",(function(){return $})),n.d(t,"Ac",(function(){return K})),n.d(t,"Bc",(function(){return G})),n.d(t,"zc",(function(){return Y})),n.d(t,"pc",(function(){return Z})),n.d(t,"s",(function(){return X})),n.d(t,"u",(function(){return Q})),n.d(t,"t",(function(){return J})),n.d(t,"V",(function(){return ee})),n.d(t,"X",(function(){return te})),n.d(t,"W",(function(){return ne})),n.d(t,"K",(function(){return ie})),n.d(t,"M",(function(){return re})),n.d(t,"L",(function(){return oe})),n.d(t,"D",(function(){return se})),n.d(t,"C",(function(){return ae})),n.d(t,"r",(function(){return le})),n.d(t,"B",(function(){return ce})),n.d(t,"Y",(function(){return ue})),n.d(t,"ab",(function(){return he})),n.d(t,"Z",(function(){return de})),n.d(t,"bb",(function(){return fe})),n.d(t,"qc",(function(){return pe})),n.d(t,"rc",(function(){return ge})),n.d(t,"vc",(function(){return me})),n.d(t,"lc",(function(){return ve})),n.d(t,"kc",(function(){return be})),n.d(t,"vb",(function(){return ye})),n.d(t,"yb",(function(){return _e})),n.d(t,"wb",(function(){return we})),n.d(t,"xb",(function(){return Ce})),n.d(t,"R",(function(){return Se})),n.d(t,"S",(function(){return xe})),n.d(t,"J",(function(){return Oe})),n.d(t,"T",(function(){return ke})),n.d(t,"U",(function(){return Le})),n.d(t,"v",(function(){return Ee})),n.d(t,"x",(function(){return De})),n.d(t,"z",(function(){return Ie})),n.d(t,"w",(function(){return Me})),n.d(t,"y",(function(){return Te})),n.d(t,"A",(function(){return Ae})),n.d(t,"H",(function(){return Ne})),n.d(t,"E",(function(){return Pe})),n.d(t,"G",(function(){return je})),n.d(t,"F",(function(){return Re})),n.d(t,"I",(function(){return Fe})),n.d(t,"q",(function(){return Be})),n.d(t,"O",(function(){return We})),n.d(t,"N",(function(){return Ve})),n.d(t,"Q",(function(){return ze})),n.d(t,"P",(function(){return He})),n.d(t,"i",(function(){return Ue})),n.d(t,"j",(function(){return qe})),n.d(t,"m",(function(){return $e})),n.d(t,"o",(function(){return Ke})),n.d(t,"n",(function(){return Ge})),n.d(t,"p",(function(){return Ye})),n.d(t,"k",(function(){return Ze})),n.d(t,"l",(function(){return Xe})),n.d(t,"Gb",(function(){return Qe})),n.d(t,"Hb",(function(){return Je})),n.d(t,"Jb",(function(){return et})),n.d(t,"zb",(function(){return tt})),n.d(t,"Ab",(function(){return nt})),n.d(t,"Bb",(function(){return it})),n.d(t,"Pb",(function(){return rt})),n.d(t,"Qb",(function(){return ot})),n.d(t,"Rb",(function(){return st})),n.d(t,"Nb",(function(){return at})),n.d(t,"Ob",(function(){return lt})),n.d(t,"Lb",(function(){return ct})),n.d(t,"Mb",(function(){return ut})),n.d(t,"Cb",(function(){return ht})),n.d(t,"Kb",(function(){return dt})),n.d(t,"Ib",(function(){return ft})),n.d(t,"Db",(function(){return pt})),n.d(t,"Fb",(function(){return gt})),n.d(t,"Eb",(function(){return mt})),n.d(t,"Lc",(function(){return vt})),n.d(t,"Gc",(function(){return bt})),n.d(t,"tc",(function(){return _t})),n.d(t,"uc",(function(){return wt})),n.d(t,"sc",(function(){return Ct})),n.d(t,"Tb",(function(){return St})),n.d(t,"Ub",(function(){return xt})),n.d(t,"Sb",(function(){return Ot})),n.d(t,"Xb",(function(){return kt})),n.d(t,"Vb",(function(){return Lt})),n.d(t,"Wb",(function(){return Et})),n.d(t,"Yb",(function(){return Dt})),n.d(t,"Ec",(function(){return It})),n.d(t,"Fc",(function(){return Mt})),n.d(t,"Cc",(function(){return Tt})),n.d(t,"Dc",(function(){return At})),n.d(t,"ic",(function(){return Nt})),n.d(t,"jc",(function(){return Pt})),n.d(t,"bc",(function(){return jt})),n.d(t,"cc",(function(){return Rt})),n.d(t,"ac",(function(){return Ft})),n.d(t,"gc",(function(){return Bt})),n.d(t,"Zb",(function(){return Wt})),n.d(t,"ec",(function(){return Vt})),n.d(t,"fc",(function(){return zt})),n.d(t,"dc",(function(){return Ht})),n.d(t,"mc",(function(){return Ut})),n.d(t,"oc",(function(){return qt})),n.d(t,"nc",(function(){return $t})),n.d(t,"Kc",(function(){return Zt})),n.d(t,"hc",(function(){return Xt})),n.d(t,"xc",(function(){return en}));var i=n("89cd"),r=n("ceb8"),o=n("308f"),s=n("dff7"),a=n("dd1b"),l=n("5fe7"),c=n("ef8e");const u={ColorContribution:"base.contributions.colors"};class h{constructor(){this._onDidChangeSchema=new o["b"],this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(e,t,n,i=!1,r){let o={id:e,description:n,defaults:t,needsTransparency:i,deprecationMessage:r};this.colorsById[e]=o;let s={type:"string",description:n,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return r&&(s.deprecationMessage=r),this.colorSchema.properties[e]=s,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e}resolveDefaultColor(e,t){const n=this.colorsById[e];if(n&&n.defaults){const e=n.defaults[t.type];return en(e,t)}}getColorSchema(){return this.colorSchema}toString(){let e=(e,t)=>{let n=-1===e.indexOf(".")?0:1,i=-1===t.indexOf(".")?0:1;return n!==i?n-i:e.localeCompare(t)};return Object.keys(this.colorsById).sort(e).map(e=>`- \`${e}\`: ${this.colorsById[e].description}`).join("\n")}}const d=new h;function f(e,t,n,i,r){return d.registerColor(e,t,n,i,r)}i["a"].add(u.ColorContribution,d);const p=f("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},s["a"]("foreground","Overall foreground color. This color is only used if not overridden by a component.")),g=f("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},s["a"]("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),m=f("icon.foreground",{dark:"#C5C5C5",light:"#424242",hc:"#FFFFFF"},s["a"]("iconForeground","The default color for icons in the workbench.")),v=f("focusBorder",{dark:"#007FD4",light:"#0090F1",hc:"#F38518"},s["a"]("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),b=f("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},s["a"]("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),y=f("contrastActiveBorder",{light:null,dark:null,hc:v},s["a"]("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),_=f("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},s["a"]("textLinkForeground","Foreground color for links in text.")),w=f("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},s["a"]("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),C=f("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:r["a"].black},s["a"]("textCodeBlockBackground","Background color for code blocks in text.")),S=f("widget.shadow",{dark:Zt(r["a"].black,.36),light:Zt(r["a"].black,.16),hc:null},s["a"]("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),x=f("input.background",{dark:"#3C3C3C",light:r["a"].white,hc:r["a"].black},s["a"]("inputBoxBackground","Input box background.")),O=f("input.foreground",{dark:p,light:p,hc:p},s["a"]("inputBoxForeground","Input box foreground.")),k=f("input.border",{dark:null,light:null,hc:b},s["a"]("inputBoxBorder","Input box border.")),L=f("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:b},s["a"]("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),E=f("inputOption.activeBackground",{dark:Zt(v,.4),light:Zt(v,.2),hc:r["a"].transparent},s["a"]("inputOption.activeBackground","Background color of activated options in input fields.")),D=f("inputOption.activeForeground",{dark:r["a"].white,light:r["a"].black,hc:null},s["a"]("inputOption.activeForeground","Foreground color of activated options in input fields.")),I=f("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:r["a"].black},s["a"]("inputValidationInfoBackground","Input validation background color for information severity.")),M=f("inputValidation.infoForeground",{dark:null,light:null,hc:null},s["a"]("inputValidationInfoForeground","Input validation foreground color for information severity.")),T=f("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:b},s["a"]("inputValidationInfoBorder","Input validation border color for information severity.")),A=f("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:r["a"].black},s["a"]("inputValidationWarningBackground","Input validation background color for warning severity.")),N=f("inputValidation.warningForeground",{dark:null,light:null,hc:null},s["a"]("inputValidationWarningForeground","Input validation foreground color for warning severity.")),P=f("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:b},s["a"]("inputValidationWarningBorder","Input validation border color for warning severity.")),j=f("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:r["a"].black},s["a"]("inputValidationErrorBackground","Input validation background color for error severity.")),R=f("inputValidation.errorForeground",{dark:null,light:null,hc:null},s["a"]("inputValidationErrorForeground","Input validation foreground color for error severity.")),F=f("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:b},s["a"]("inputValidationErrorBorder","Input validation border color for error severity.")),B=f("dropdown.background",{dark:"#3C3C3C",light:r["a"].white,hc:r["a"].black},s["a"]("dropdownBackground","Dropdown background.")),W=f("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:r["a"].white},s["a"]("dropdownForeground","Dropdown foreground.")),V=f("button.foreground",{dark:r["a"].white,light:r["a"].white,hc:r["a"].white},s["a"]("buttonForeground","Button foreground color.")),z=f("button.background",{dark:"#0E639C",light:"#007ACC",hc:null},s["a"]("buttonBackground","Button background color.")),H=f("button.hoverBackground",{dark:Yt(z,.2),light:Gt(z,.2),hc:null},s["a"]("buttonHoverBackground","Button background color when hovering.")),U=f("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:r["a"].black},s["a"]("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),q=f("badge.foreground",{dark:r["a"].white,light:"#333",hc:r["a"].white},s["a"]("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),$=f("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},s["a"]("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),K=f("scrollbarSlider.background",{dark:r["a"].fromHex("#797979").transparent(.4),light:r["a"].fromHex("#646464").transparent(.4),hc:Zt(b,.6)},s["a"]("scrollbarSliderBackground","Scrollbar slider background color.")),G=f("scrollbarSlider.hoverBackground",{dark:r["a"].fromHex("#646464").transparent(.7),light:r["a"].fromHex("#646464").transparent(.7),hc:Zt(b,.8)},s["a"]("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),Y=f("scrollbarSlider.activeBackground",{dark:r["a"].fromHex("#BFBFBF").transparent(.4),light:r["a"].fromHex("#000000").transparent(.6),hc:b},s["a"]("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),Z=f("progressBar.background",{dark:r["a"].fromHex("#0E70C0"),light:r["a"].fromHex("#0E70C0"),hc:b},s["a"]("progressBarBackground","Background color of the progress bar that can show for long running operations.")),X=f("editorError.background",{dark:null,light:null,hc:null},s["a"]("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),Q=f("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},s["a"]("editorError.foreground","Foreground color of error squigglies in the editor.")),J=f("editorError.border",{dark:null,light:null,hc:r["a"].fromHex("#E47777").transparent(.8)},s["a"]("errorBorder","Border color of error boxes in the editor.")),ee=f("editorWarning.background",{dark:null,light:null,hc:null},s["a"]("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),te=f("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hc:null},s["a"]("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),ne=f("editorWarning.border",{dark:null,light:null,hc:r["a"].fromHex("#FFCC00").transparent(.8)},s["a"]("warningBorder","Border color of warning boxes in the editor.")),ie=f("editorInfo.background",{dark:null,light:null,hc:null},s["a"]("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),re=f("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},s["a"]("editorInfo.foreground","Foreground color of info squigglies in the editor.")),oe=f("editorInfo.border",{dark:null,light:null,hc:r["a"].fromHex("#75BEFF").transparent(.8)},s["a"]("infoBorder","Border color of info boxes in the editor.")),se=f("editorHint.foreground",{dark:r["a"].fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},s["a"]("editorHint.foreground","Foreground color of hint squigglies in the editor.")),ae=f("editorHint.border",{dark:null,light:null,hc:r["a"].fromHex("#eeeeee").transparent(.8)},s["a"]("hintBorder","Border color of hint boxes in the editor.")),le=f("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:r["a"].black},s["a"]("editorBackground","Editor background color.")),ce=f("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:r["a"].white},s["a"]("editorForeground","Editor default foreground color.")),ue=f("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},s["a"]("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),he=f("editorWidget.foreground",{dark:p,light:p,hc:p},s["a"]("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),de=f("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:b},s["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.")),fe=f("editorWidget.resizeBorder",{light:null,dark:null,hc:null},s["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.")),pe=f("quickInput.background",{dark:ue,light:ue,hc:ue},s["a"]("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),ge=f("quickInput.foreground",{dark:he,light:he,hc:he},s["a"]("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),me=f("quickInputTitle.background",{dark:new r["a"](new r["c"](255,255,255,.105)),light:new r["a"](new r["c"](0,0,0,.06)),hc:"#000000"},s["a"]("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),ve=f("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:r["a"].white},s["a"]("pickerGroupForeground","Quick picker color for grouping labels.")),be=f("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:r["a"].white},s["a"]("pickerGroupBorder","Quick picker color for grouping borders.")),ye=f("keybindingLabel.background",{dark:new r["a"](new r["c"](128,128,128,.17)),light:new r["a"](new r["c"](221,221,221,.4)),hc:r["a"].transparent},s["a"]("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),_e=f("keybindingLabel.foreground",{dark:r["a"].fromHex("#CCCCCC"),light:r["a"].fromHex("#555555"),hc:r["a"].white},s["a"]("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),we=f("keybindingLabel.border",{dark:new r["a"](new r["c"](51,51,51,.6)),light:new r["a"](new r["c"](204,204,204,.4)),hc:new r["a"](new r["c"](111,195,223))},s["a"]("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),Ce=f("keybindingLabel.bottomBorder",{dark:new r["a"](new r["c"](68,68,68,.6)),light:new r["a"](new r["c"](187,187,187,.4)),hc:new r["a"](new r["c"](111,195,223))},s["a"]("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),Se=f("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},s["a"]("editorSelectionBackground","Color of the editor selection.")),xe=f("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},s["a"]("editorSelectionForeground","Color of the selected text for high contrast.")),Oe=f("editor.inactiveSelectionBackground",{light:Zt(Se,.5),dark:Zt(Se,.5),hc:Zt(Se,.5)},s["a"]("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),ke=f("editor.selectionHighlightBackground",{light:Jt(Se,le,.3,.6),dark:Jt(Se,le,.3,.6),hc:null},s["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),Le=f("editor.selectionHighlightBorder",{light:null,dark:null,hc:y},s["a"]("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),Ee=f("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},s["a"]("editorFindMatch","Color of the current search match.")),De=f("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},s["a"]("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),Ie=f("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},s["a"]("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Me=f("editor.findMatchBorder",{light:null,dark:null,hc:y},s["a"]("editorFindMatchBorder","Border color of the current search match.")),Te=f("editor.findMatchHighlightBorder",{light:null,dark:null,hc:y},s["a"]("findMatchHighlightBorder","Border color of the other search matches.")),Ae=f("editor.findRangeHighlightBorder",{dark:null,light:null,hc:Zt(y,.4)},s["a"]("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Ne=f("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},s["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),Pe=f("editorHoverWidget.background",{light:ue,dark:ue,hc:ue},s["a"]("hoverBackground","Background color of the editor hover.")),je=f("editorHoverWidget.foreground",{light:he,dark:he,hc:he},s["a"]("hoverForeground","Foreground color of the editor hover.")),Re=f("editorHoverWidget.border",{light:de,dark:de,hc:de},s["a"]("hoverBorder","Border color of the editor hover.")),Fe=f("editorHoverWidget.statusBarBackground",{dark:Yt(Pe,.2),light:Gt(Pe,.05),hc:ue},s["a"]("statusBarBackground","Background color of the editor hover status bar.")),Be=f("editorLink.activeForeground",{dark:"#4E94CE",light:r["a"].blue,hc:r["a"].cyan},s["a"]("activeLinkForeground","Color of active links.")),We=f("editorInlayHint.foreground",{dark:Zt(q,.8),light:Zt(q,.8),hc:q},s["a"]("editorInlayHintForeground","Foreground color of inline hints")),Ve=f("editorInlayHint.background",{dark:Zt(U,.6),light:Zt(U,.3),hc:U},s["a"]("editorInlayHintBackground","Background color of inline hints")),ze=f("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},s["a"]("editorLightBulbForeground","The color used for the lightbulb actions icon.")),He=f("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},s["a"]("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),Ue=new r["a"](new r["c"](155,185,85,.2)),qe=new r["a"](new r["c"](255,0,0,.2)),$e=f("diffEditor.insertedTextBackground",{dark:Ue,light:Ue,hc:null},s["a"]("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Ke=f("diffEditor.removedTextBackground",{dark:qe,light:qe,hc:null},s["a"]("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Ge=f("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},s["a"]("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Ye=f("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},s["a"]("diffEditorRemovedOutline","Outline color for text that got removed.")),Ze=f("diffEditor.border",{dark:null,light:null,hc:b},s["a"]("diffEditorBorder","Border color between the two text editors.")),Xe=f("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hc:null},s["a"]("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),Qe=f("list.focusBackground",{dark:null,light:null,hc:null},s["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.")),Je=f("list.focusForeground",{dark:null,light:null,hc:null},s["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.")),et=f("list.focusOutline",{dark:v,light:v,hc:y},s["a"]("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),tt=f("list.activeSelectionBackground",{dark:"#094771",light:"#0060C0",hc:null},s["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.")),nt=f("list.activeSelectionForeground",{dark:r["a"].white,light:r["a"].white,hc:null},s["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.")),it=f("list.activeSelectionIconForeground",{dark:null,light:null,hc:null},s["a"]("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),rt=f("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},s["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.")),ot=f("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},s["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.")),st=f("list.inactiveSelectionIconForeground",{dark:null,light:null,hc:null},s["a"]("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),at=f("list.inactiveFocusBackground",{dark:null,light:null,hc:null},s["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.")),lt=f("list.inactiveFocusOutline",{dark:null,light:null,hc:null},s["a"]("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),ct=f("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},s["a"]("listHoverBackground","List/Tree background when hovering over items using the mouse.")),ut=f("list.hoverForeground",{dark:null,light:null,hc:null},s["a"]("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),ht=f("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},s["a"]("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),dt=f("list.highlightForeground",{dark:"#18A3FF",light:"#0066BF",hc:v},s["a"]("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),ft=f("list.focusHighlightForeground",{dark:dt,light:Qt(tt,dt,"#9DDDFF"),hc:dt},s["a"]("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),pt=f("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:r["a"].black},s["a"]("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),gt=f("listFilterWidget.outline",{dark:r["a"].transparent,light:r["a"].transparent,hc:"#f38518"},s["a"]("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),mt=f("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:b},s["a"]("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),vt=f("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},s["a"]("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),bt=f("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hc:null},s["a"]("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),yt=f("quickInput.list.focusBackground",{dark:null,light:null,hc:null},"",void 0,s["a"]("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),_t=f("quickInputList.focusForeground",{dark:nt,light:nt,hc:nt},s["a"]("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),wt=f("quickInputList.focusIconForeground",{dark:it,light:it,hc:it},s["a"]("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),Ct=f("quickInputList.focusBackground",{dark:Xt(yt,tt),light:Xt(yt,tt),hc:null},s["a"]("quickInput.listFocusBackground","Quick picker background color for the focused item.")),St=f("menu.border",{dark:null,light:null,hc:b},s["a"]("menuBorder","Border color of menus.")),xt=f("menu.foreground",{dark:W,light:p,hc:W},s["a"]("menuForeground","Foreground color of menu items.")),Ot=f("menu.background",{dark:B,light:B,hc:B},s["a"]("menuBackground","Background color of menu items.")),kt=f("menu.selectionForeground",{dark:nt,light:nt,hc:nt},s["a"]("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Lt=f("menu.selectionBackground",{dark:tt,light:tt,hc:tt},s["a"]("menuSelectionBackground","Background color of the selected menu item in menus.")),Et=f("menu.selectionBorder",{dark:null,light:null,hc:y},s["a"]("menuSelectionBorder","Border color of the selected menu item in menus.")),Dt=f("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:b},s["a"]("menuSeparatorBackground","Color of a separator menu item in menus.")),It=f("editor.snippetTabstopHighlightBackground",{dark:new r["a"](new r["c"](124,124,124,.3)),light:new r["a"](new r["c"](10,50,100,.2)),hc:new r["a"](new r["c"](124,124,124,.3))},s["a"]("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Mt=f("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},s["a"]("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Tt=f("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},s["a"]("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),At=f("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new r["a"](new r["c"](10,50,100,.5)),hc:"#525252"},s["a"]("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),Nt=f("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},s["a"]("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Pt=f("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},s["a"]("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),jt=f("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},s["a"]("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),Rt=f("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},s["a"]("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),Ft=f("minimap.errorHighlight",{dark:new r["a"](new r["c"](255,18,18,.7)),light:new r["a"](new r["c"](255,18,18,.7)),hc:new r["a"](new r["c"](255,50,50,1))},s["a"]("minimapError","Minimap marker color for errors.")),Bt=f("minimap.warningHighlight",{dark:te,light:te,hc:ne},s["a"]("overviewRuleWarning","Minimap marker color for warnings.")),Wt=f("minimap.background",{dark:null,light:null,hc:null},s["a"]("minimapBackground","Minimap background color.")),Vt=f("minimapSlider.background",{light:Zt(K,.5),dark:Zt(K,.5),hc:Zt(K,.5)},s["a"]("minimapSliderBackground","Minimap slider background color.")),zt=f("minimapSlider.hoverBackground",{light:Zt(G,.5),dark:Zt(G,.5),hc:Zt(G,.5)},s["a"]("minimapSliderHoverBackground","Minimap slider background color when hovering.")),Ht=f("minimapSlider.activeBackground",{light:Zt(Y,.5),dark:Zt(Y,.5),hc:Zt(Y,.5)},s["a"]("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),Ut=f("problemsErrorIcon.foreground",{dark:Q,light:Q,hc:Q},s["a"]("problemsErrorIconForeground","The color used for the problems error icon.")),qt=f("problemsWarningIcon.foreground",{dark:te,light:te,hc:te},s["a"]("problemsWarningIconForeground","The color used for the problems warning icon.")),$t=f("problemsInfoIcon.foreground",{dark:re,light:re,hc:re},s["a"]("problemsInfoIconForeground","The color used for the problems info icon."));function Kt(e,t){var n,i,o;switch(e.op){case 0:return null===(n=en(e.value,t))||void 0===n?void 0:n.darken(e.factor);case 1:return null===(i=en(e.value,t))||void 0===i?void 0:i.lighten(e.factor);case 2:return null===(o=en(e.value,t))||void 0===o?void 0:o.transparent(e.factor);case 3:for(const n of e.values){const e=en(n,t);if(e)return e}return;case 5:return en(t.defines(e.if)?e.then:e.else,t);case 4:const s=en(e.value,t);if(!s)return;const a=en(e.background,t);return a?s.isDarkerThan(a)?r["a"].getLighterColor(s,a,e.factor).transparent(e.transparency):r["a"].getDarkerColor(s,a,e.factor).transparent(e.transparency):s.transparent(e.factor*e.transparency);default:throw Object(c["b"])(e)}}function Gt(e,t){return{op:0,value:e,factor:t}}function Yt(e,t){return{op:1,value:e,factor:t}}function Zt(e,t){return{op:2,value:e,factor:t}}function Xt(...e){return{op:3,values:e}}function Qt(e,t,n){return{op:5,if:e,then:t,else:n}}function Jt(e,t,n,i){return{op:4,value:e,background:t,factor:n,transparency:i}}function en(e,t){if(null!==e)return"string"===typeof e?"#"===e[0]?r["a"].fromHex(e):t.getColor(e):e instanceof r["a"]?e:"object"===typeof e?Kt(e,t):void 0}const tn="vscode://schemas/workbench-colors";let nn=i["a"].as(a["a"].JSONContribution);nn.registerSchema(tn,d.getColorSchema());const rn=new l["e"](()=>nn.notifySchemaChanged(tn),200);d.onDidChangeSchema(()=>{rn.isScheduled()||rn.schedule()})},"308f":function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return d})),n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"f",(function(){return g}));var i,r=n("fdcc"),o=n("a666"),s=n("db88"),a=n("e58e");(function(e){function t(e){return(t,n=null,i)=>{let r,o=!1;return r=e(e=>{if(!o)return r?r.dispose():o=!0,t.call(n,e)},null,i),o&&r.dispose(),r}}function n(e,t){return c((n,i=null,r)=>e(e=>n.call(i,t(e)),null,r))}function i(e,t){return c((n,i=null,r)=>e(e=>{t(e),n.call(i,e)},null,r))}function r(e,t){return c((n,i=null,r)=>e(e=>t(e)&&n.call(i,e),null,r))}function s(e){return e}function a(...e){return(t,n=null,i)=>Object(o["e"])(...e.map(e=>e(e=>t.call(n,e),null,i)))}function l(e,t,i){let r=i;return n(e,e=>(r=t(r,e),r))}function c(e){let t;const n=new h({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function u(e,t,n=100,i=!1,r){let o,s=void 0,a=void 0,l=0;const c=new h({leakWarningThreshold:r,onFirstListenerAdd(){o=e(e=>{l++,s=t(s,e),i&&!a&&(c.fire(s),s=void 0),clearTimeout(a),a=setTimeout(()=>{const e=s;s=void 0,a=void 0,(!i||l>1)&&c.fire(e),l=0},n)})},onLastListenerRemove(){o.dispose()}});return c.event}function d(e,t=((e,t)=>e===t)){let n,i=!0;return r(e,e=>{const r=i||!t(e,n);return i=!1,n=e,r})}function f(t,n){return[e.filter(t,n),e.filter(t,e=>!n(e))]}function p(e,t=!1,n=[]){let i=n.slice(),r=e(e=>{i?i.push(e):s.fire(e)});const o=()=>{i&&i.forEach(e=>s.fire(e)),i=null},s=new h({onFirstListenerAdd(){r||(r=e(e=>s.fire(e)))},onFirstListenerDidAdd(){i&&(t?setTimeout(o):o())},onLastListenerRemove(){r&&r.dispose(),r=null}});return s.event}e.None=()=>o["a"].None,e.once=t,e.map=n,e.forEach=i,e.filter=r,e.signal=s,e.any=a,e.reduce=l,e.debounce=u,e.latch=d,e.split=f,e.buffer=p;class g{constructor(e){this.event=e}map(e){return new g(n(this.event,e))}forEach(e){return new g(i(this.event,e))}filter(e){return new g(r(this.event,e))}reduce(e,t){return new g(l(this.event,e,t))}latch(){return new g(d(this.event))}debounce(e,t=100,n=!1,i){return new g(u(this.event,e,t,n,i))}on(e,t,n){return this.event(e,t,n)}once(e,n,i){return t(this.event)(e,n,i)}}function m(e){return new g(e)}function v(e,t,n=(e=>e)){const i=(...e)=>s.fire(n(...e)),r=()=>e.on(t,i),o=()=>e.removeListener(t,i),s=new h({onFirstListenerAdd:r,onLastListenerRemove:o});return s.event}function b(e,t,n=(e=>e)){const i=(...e)=>s.fire(n(...e)),r=()=>e.addEventListener(t,i),o=()=>e.removeEventListener(t,i),s=new h({onFirstListenerAdd:r,onLastListenerRemove:o});return s.event}function y(e){return new Promise(n=>t(e)(n))}e.chain=m,e.fromNodeEventEmitter=v,e.fromDOMEventEmitter=b,e.toPromise=y})(i||(i={}));class l{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${l._idPool++}`}start(e){this._stopWatch=new a["a"](!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}l._idPool=0;let c=-1;class u{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e){let t=c;if("number"===typeof this.customThreshold&&(t=this.customThreshold),t<=0||e<t)return;this._stacks||(this._stacks=new Map);const n=(new Error).stack.split("\n").slice(3).join("\n"),i=this._stacks.get(n)||0;if(this._stacks.set(n,i+1),this._warnCountdown-=1,this._warnCountdown<=0){let n;this._warnCountdown=.5*t;let i=0;for(const[e,t]of this._stacks)(!n||i<t)&&(n=e,i=t);console.warn(`[${this.name}] potential listener LEAK detected, having ${e} listeners already. MOST frequent listener (${i}):`),console.warn(n)}return()=>{const e=this._stacks.get(n)||0;this._stacks.set(n,e-1)}}}class h{constructor(e){var t;this._disposed=!1,this._options=e,this._leakageMon=c>0?new u(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=(null===(t=this._options)||void 0===t?void 0:t._profName)?new l(this._options._profName):void 0}get event(){return this._event||(this._event=(e,t,n)=>{var i;this._listeners||(this._listeners=new s["a"]);const r=this._listeners.isEmpty();r&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const a=this._listeners.push(t?[e,t]:e);r&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);const l=null===(i=this._leakageMon)||void 0===i?void 0:i.check(this._listeners.size),c=Object(o["i"])(()=>{if(l&&l(),!this._disposed&&(a(),this._options&&this._options.onLastListenerRemove)){const e=this._listeners&&!this._listeners.isEmpty();e||this._options.onLastListenerRemove(this)}});return n instanceof o["b"]?n.add(c):Array.isArray(n)&&n.push(c),c}),this._event}fire(e){var t,n;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new s["a"]);for(let t of this._listeners)this._deliveryQueue.push([t,e]);null===(t=this._perfMon)||void 0===t||t.start(this._deliveryQueue.size);while(this._deliveryQueue.size>0){const[e,t]=this._deliveryQueue.shift();try{"function"===typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(i){Object(r["e"])(i)}}null===(n=this._perfMon)||void 0===n||n.stop()}}dispose(){var e,t,n,i,r;this._disposed||(this._disposed=!0,null===(e=this._listeners)||void 0===e||e.clear(),null===(t=this._deliveryQueue)||void 0===t||t.clear(),null===(i=null===(n=this._options)||void 0===n?void 0:n.onLastListenerRemove)||void 0===i||i.call(n),null===(r=this._leakageMon)||void 0===r||r.dispose())}}class d extends h{constructor(e){super(e),this._isPaused=0,this._eventQueue=new s["a"],this._mergeFn=null===e||void 0===e?void 0:e.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}else while(!this._isPaused&&0!==this._eventQueue.size)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class f extends d{constructor(e){var t;super(e),this._delay=null!==(t=e.delay)&&void 0!==t?t:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class p{constructor(){this.buffers=[]}wrapEvent(e){return(t,n,i)=>e(e=>{const i=this.buffers[this.buffers.length-1];i?i.push(()=>t.call(n,e)):t.call(n,e)},void 0,i)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach(e=>e()),n}}class g{constructor(){this.listening=!1,this.inputEvent=i.None,this.inputEventListener=o["a"].None,this.emitter=new h({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},"30b5":function(e,t,n){"use strict";var i=n("c532");function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var s=[];i.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))})))})),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"30d5":function(e,t,n){},"30db":function(e,t,n){"use strict";(function(e,i){var r;n.d(t,"b",(function(){return v})),n.d(t,"h",(function(){return C})),n.d(t,"j",(function(){return x})),n.d(t,"f",(function(){return O})),n.d(t,"d",(function(){return k})),n.d(t,"g",(function(){return L})),n.d(t,"i",(function(){return E})),n.d(t,"c",(function(){return D})),n.d(t,"l",(function(){return I})),n.d(t,"k",(function(){return M})),n.d(t,"a",(function(){return T})),n.d(t,"e",(function(){return P}));const o="en";let s=!1,a=!1,l=!1,c=!1,u=!1,h=!1,d=!1,f=void 0,p=o,g=void 0,m=void 0;const v="object"===typeof self?self:"object"===typeof e?e:{};let b=void 0;"undefined"!==typeof v.vscode&&"undefined"!==typeof v.vscode.process?b=v.vscode.process:"undefined"!==typeof i&&(b=i);const y="string"===typeof(null===(r=null===b||void 0===b?void 0:b.versions)||void 0===r?void 0:r.electron)&&"renderer"===b.type,_=y&&(null===b||void 0===b?void 0:b.sandboxed),w=(()=>{if(_)return"bypassHeatCheck";const e=null===b||void 0===b?void 0:b.env["VSCODE_BROWSER_CODE_LOADING"];return"string"===typeof e?"none"===e||"code"===e||"bypassHeatCheck"===e||"bypassHeatCheckAndEagerCompile"===e?e:"bypassHeatCheck":void 0})(),C="string"===typeof w;if("object"!==typeof navigator||y)if("object"===typeof b){s="win32"===b.platform,a="darwin"===b.platform,l="linux"===b.platform,c=l&&!!b.env["SNAP"]&&!!b.env["SNAP_REVISION"],f=o,p=o;const e=b.env["VSCODE_NLS_CONFIG"];if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];f=t.locale,p=n||o,g=t._translationsConfigFile}catch(j){}u=!0}else console.error("Unable to resolve platform.");else m=navigator.userAgent,s=m.indexOf("Windows")>=0,a=m.indexOf("Macintosh")>=0,d=(m.indexOf("Macintosh")>=0||m.indexOf("iPad")>=0||m.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,l=m.indexOf("Linux")>=0,h=!0,f=navigator.language,p=f;let S=0;a?S=1:s?S=3:l&&(S=2);const x=s,O=a,k=l,L=u,E=h,D=d,I=m,M=function(){if(v.setImmediate)return v.setImmediate.bind(v);if("function"===typeof v.postMessage&&!v.importScripts){let e=[];v.addEventListener("message",t=>{if(t.data&&t.data.vscodeSetImmediateId)for(let n=0,i=e.length;n<i;n++){const i=e[n];if(i.id===t.data.vscodeSetImmediateId)return e.splice(n,1),void i.callback()}});let t=0;return n=>{const i=++t;e.push({id:i,callback:n}),v.postMessage({vscodeSetImmediateId:i},"*")}}if("function"===typeof(null===b||void 0===b?void 0:b.nextTick))return b.nextTick.bind(b);const e=Promise.resolve();return t=>e.then(t)}(),T=a||d?2:s?1:3;let A=!0,N=!1;function P(){if(!N){N=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);A=513===t[0]}return A}}).call(this,n("c8ba"),n("4362"))},"313e":function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return r["cb"]})),n.d(t,"dependencies",(function(){return r["l"]})),n.d(t,"PRIORITY",(function(){return r["g"]})),n.d(t,"init",(function(){return r["B"]})),n.d(t,"connect",(function(){return r["j"]})),n.d(t,"disconnect",(function(){return r["n"]})),n.d(t,"disConnect",(function(){return r["m"]})),n.d(t,"dispose",(function(){return r["o"]})),n.d(t,"getInstanceByDom",(function(){return r["w"]})),n.d(t,"getInstanceById",(function(){return r["x"]})),n.d(t,"registerTheme",(function(){return r["R"]})),n.d(t,"registerPreprocessor",(function(){return r["P"]})),n.d(t,"registerProcessor",(function(){return r["Q"]})),n.d(t,"registerPostInit",(function(){return r["N"]})),n.d(t,"registerPostUpdate",(function(){return r["O"]})),n.d(t,"registerUpdateLifecycle",(function(){return r["T"]})),n.d(t,"registerAction",(function(){return r["H"]})),n.d(t,"registerCoordinateSystem",(function(){return r["I"]})),n.d(t,"getCoordinateSystemDimensions",(function(){return r["v"]})),n.d(t,"registerLocale",(function(){return r["L"]})),n.d(t,"registerLayout",(function(){return r["J"]})),n.d(t,"registerVisual",(function(){return r["U"]})),n.d(t,"registerLoading",(function(){return r["K"]})),n.d(t,"setCanvasCreator",(function(){return r["V"]})),n.d(t,"registerMap",(function(){return r["M"]})),n.d(t,"getMap",(function(){return r["y"]})),n.d(t,"registerTransform",(function(){return r["S"]})),n.d(t,"dataTool",(function(){return r["k"]})),n.d(t,"zrender",(function(){return r["eb"]})),n.d(t,"matrix",(function(){return r["D"]})),n.d(t,"vector",(function(){return r["bb"]})),n.d(t,"zrUtil",(function(){return r["db"]})),n.d(t,"color",(function(){return r["i"]})),n.d(t,"throttle",(function(){return r["X"]})),n.d(t,"helper",(function(){return r["A"]})),n.d(t,"use",(function(){return r["Z"]})),n.d(t,"setPlatformAPI",(function(){return r["W"]})),n.d(t,"parseGeoJSON",(function(){return r["F"]})),n.d(t,"parseGeoJson",(function(){return r["G"]})),n.d(t,"number",(function(){return r["E"]})),n.d(t,"time",(function(){return r["Y"]})),n.d(t,"graphic",(function(){return r["z"]})),n.d(t,"format",(function(){return r["u"]})),n.d(t,"util",(function(){return r["ab"]})),n.d(t,"env",(function(){return r["p"]})),n.d(t,"List",(function(){return r["e"]})),n.d(t,"Model",(function(){return r["f"]})),n.d(t,"Axis",(function(){return r["a"]})),n.d(t,"ComponentModel",(function(){return r["c"]})),n.d(t,"ComponentView",(function(){return r["d"]})),n.d(t,"SeriesModel",(function(){return r["h"]})),n.d(t,"ChartView",(function(){return r["b"]})),n.d(t,"innerDrawElementOnCanvas",(function(){return r["C"]})),n.d(t,"extendComponentModel",(function(){return r["r"]})),n.d(t,"extendComponentView",(function(){return r["s"]})),n.d(t,"extendSeriesModel",(function(){return r["t"]})),n.d(t,"extendChartView",(function(){return r["q"]}));var i=n("22b4"),r=n("aa74"),o=n("f95e"),s=n("7a29"),a=n("cbe5"),l=n("0da8"),c=n("e86a"),u=n("dd4f"),h=Math.sin,d=Math.cos,f=Math.PI,p=2*Math.PI,g=180/f,m=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,i,r,o){this._add("C",e,t,n,i,r,o)},e.prototype.quadraticCurveTo=function(e,t,n,i){this._add("Q",e,t,n,i)},e.prototype.arc=function(e,t,n,i,r,o){this.ellipse(e,t,n,n,0,i,r,o)},e.prototype.ellipse=function(e,t,n,i,r,o,a,l){var c=a-o,u=!l,m=Math.abs(c),v=Object(s["j"])(m-p)||(u?c>=p:-c>=p),b=c>0?c%p:c%p+p,y=!1;y=!!v||!Object(s["j"])(m)&&b>=f===!!u;var _=e+n*d(o),w=t+i*h(o);this._start&&this._add("M",_,w);var C=Math.round(r*g);if(v){var S=1/this._p,x=(u?1:-1)*(p-S);this._add("A",n,i,C,1,+u,e+n*d(o+x),t+i*h(o+x)),S>.01&&this._add("A",n,i,C,0,+u,_,w)}else{var O=e+n*d(a),k=t+i*h(a);this._add("A",n,i,C,+y,+u,O,k)}},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,i,r,o,s,a,l){for(var c=[],u=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d))return void(this._invalid=!0);c.push(Math.round(d*u)/u)}this._d.push(e+c.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),v=m,b=n("8d1d"),y=n("6d8b"),_="none",w=Math.round;function C(e){var t=e.fill;return null!=t&&t!==_}function S(e){var t=e.stroke;return null!=t&&t!==_}var x=["lineCap","miterLimit","lineJoin"],O=Object(y["map"])(x,(function(e){return"stroke-"+e.toLowerCase()}));function k(e,t,n,i){var r=null==t.opacity?1:t.opacity;if(n instanceof l["a"])e("opacity",r);else{if(C(t)){var o=Object(s["p"])(t.fill);e("fill",o.color);var c=null!=t.fillOpacity?t.fillOpacity*o.opacity*r:o.opacity*r;(i||c<1)&&e("fill-opacity",c)}else e("fill",_);if(S(t)){var u=Object(s["p"])(t.stroke);e("stroke",u.color);var h=t.strokeNoScale?n.getLineScale():1,d=h?(t.lineWidth||0)/h:0,f=null!=t.strokeOpacity?t.strokeOpacity*u.opacity*r:u.opacity*r,p=t.strokeFirst;if((i||1!==d)&&e("stroke-width",d),(i||p)&&e("paint-order",p?"stroke":"fill"),(i||f<1)&&e("stroke-opacity",f),t.lineDash){var g=Object(b["a"])(n),m=g[0],v=g[1];m&&(v=w(v||0),e("stroke-dasharray",m.join(",")),(v||i)&&e("stroke-dashoffset",v))}else i&&e("stroke-dasharray",_);for(var y=0;y<x.length;y++){var k=x[y];if(i||t[k]!==a["a"][k]){var L=t[k]||a["a"][k];L&&e(O[y],L)}}}else i&&e("stroke",_)}}var L=n("65ed"),E="http://www.w3.org/2000/svg",D="http://www.w3.org/1999/xlink",I="http://www.w3.org/2000/xmlns/",M="http://www.w3.org/XML/1998/namespace",T="ecmeta_";function A(e){return document.createElementNS(E,e)}function N(e,t,n,i,r){return{tag:e,attrs:n||{},children:i,text:r,key:t}}function P(e,t){var n=[];if(t)for(var i in t){var r=t[i],o=i;!1!==r&&(!0!==r&&null!=r&&(o+='="'+r+'"'),n.push(o))}return"<"+e+" "+n.join(" ")+">"}function j(e){return"</"+e+">"}function R(e,t){t=t||{};var n=t.newline?"\n":"";function i(e){var t=e.children,r=e.tag,o=e.attrs,s=e.text;return P(r,o)+("style"!==r?Object(L["a"])(s):s||"")+(t?""+n+Object(y["map"])(t,(function(e){return i(e)})).join(n)+n:"")+j(r)}return i(e)}function F(e,t,n){n=n||{};var i=n.newline?"\n":"",r=" {"+i,o=i+"}",s=Object(y["map"])(Object(y["keys"])(e),(function(t){return t+r+Object(y["map"])(Object(y["keys"])(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(i)+o})).join(i),a=Object(y["map"])(Object(y["keys"])(t),(function(e){return"@keyframes "+e+r+Object(y["map"])(Object(y["keys"])(t[e]),(function(n){return n+r+Object(y["map"])(Object(y["keys"])(t[e][n]),(function(i){var r=t[e][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return s||a?["<![CDATA[",s,a,"]]>"].join(i):""}function B(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function W(e,t,n,i){return N("svg","root",{width:e,height:t,xmlns:E,"xmlns:xlink":D,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+e+" "+t},n)}var V=n("5e76"),z=n("8582"),H=n("20c8"),U=n("d4c6"),q=n("b362"),$=0;function K(){return $++}var G={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Y="transform-origin";function Z(e,t,n){var i=Object(y["extend"])({},e.shape);Object(y["extend"])(i,t),e.buildPath(n,i);var r=new v;return r.reset(Object(s["f"])(e)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function X(e,t){var n=t.originX,i=t.originY;(n||i)&&(e[Y]=n+"px "+i+"px")}var Q={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function J(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function ee(e,t,n){var i,r,o=e.shape.paths,s={};if(Object(y["each"])(o,(function(e){var t=B(n.zrId);t.animation=!0,ne(e,{},t,!0);var o=t.cssAnims,a=t.cssNodes,l=Object(y["keys"])(o),c=l.length;if(c){r=l[c-1];var u=o[r];for(var h in u){var d=u[h];s[h]=s[h]||{d:""},s[h].d+=d.d||""}for(var f in a){var p=a[f].animation;p.indexOf(r)>=0&&(i=p)}}})),i){t.d=!1;var a=J(s,n);return i.replace(r,a)}}function te(e){return Object(y["isString"])(e)?G[e]?"cubic-bezier("+G[e]+")":Object(q["a"])(e)?e:"":""}function ne(e,t,n,i){var r=e.animators,o=r.length,a=[];if(e instanceof U["a"]){var l=ee(e,t,n);if(l)a.push(l);else if(!o)return}else if(!o)return;for(var c={},u=0;u<o;u++){var h=r[u],d=[h.getMaxTime()/1e3+"s"],f=te(h.getClip().easing),p=h.getDelay();f?d.push(f):d.push("linear"),p&&d.push(p/1e3+"s"),h.getLoop()&&d.push("infinite");var g=d.join(" ");c[g]=c[g]||[g,[]],c[g][1].push(h)}function m(r){var o,a=r[1],l=a.length,c={},u={},h={},d="animation-timing-function";function f(e,t,n){for(var i=e.getTracks(),r=e.getMaxTime(),o=0;o<i.length;o++){var s=i[o];if(s.needsAnimate()){var a=s.keyframes,l=s.propName;if(n&&(l=n(l)),l)for(var c=0;c<a.length;c++){var u=a[c],h=Math.round(u.time/r*100)+"%",f=te(u.easing),p=u.rawValue;(Object(y["isString"])(p)||Object(y["isNumber"])(p))&&(t[h]=t[h]||{},t[h][l]=u.rawValue,f&&(t[h][d]=f))}}}}for(var p=0;p<l;p++){var g=a[p],m=g.targetName;m?"shape"===m&&f(g,u):!i&&f(g,c)}for(var v in c){var b={};Object(z["b"])(b,e),Object(y["extend"])(b,c[v]);var _=Object(s["g"])(b),w=c[v][d];h[v]=_?{transform:_}:{},X(h[v],b),w&&(h[v][d]=w)}var C=!0;for(var v in u){h[v]=h[v]||{};var S=!o;w=u[v][d];S&&(o=new H["a"]);var x=o.len();o.reset(),h[v].d=Z(e,u[v],o);var O=o.len();if(!S&&x!==O){C=!1;break}w&&(h[v][d]=w)}if(!C)for(var v in h)delete h[v].d;if(!i)for(p=0;p<l;p++){g=a[p],m=g.targetName;"style"===m&&f(g,h,(function(e){return Q[e]}))}var k,L=Object(y["keys"])(h),E=!0;for(p=1;p<L.length;p++){var D=L[p-1],I=L[p];if(h[D][Y]!==h[I][Y]){E=!1;break}k=h[D][Y]}if(E&&k){for(var v in h)h[v][Y]&&delete h[v][Y];t[Y]=k}if(Object(y["filter"])(L,(function(e){return Object(y["keys"])(h[e]).length>0})).length){var M=J(h,n);return M+" "+r[0]+" both"}}for(var v in c){l=m(c[v]);l&&a.push(l)}if(a.length){var b=n.zrId+"-cls-"+K();n.cssNodes["."+b]={animation:a.join(",")},t["class"]=b}}var ie=n("76a5"),re=n("726e"),oe=n("41ef");function se(e,t,n){if(!e.ignore)if(e.isSilent()){var i={"pointer-events":"none"};ae(i,t,n,!0)}else{var r=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},o=r.fill;if(!o){var s=e.style&&e.style.fill,a=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&a||s;l&&(o=Object(oe["liftColor"])(l))}var c=r.lineWidth;if(c){var u=!r.strokeNoScale&&e.transform?e.transform[0]:1;c/=u}i={cursor:"pointer"};o&&(i.fill=o),r.stroke&&(i.stroke=r.stroke),c&&(i["stroke-width"]=c),ae(i,t,n,!0)}}function ae(e,t,n,i){var r=JSON.stringify(e),o=n.cssStyleCache[r];o||(o=n.zrId+"-cls-"+K(),n.cssStyleCache[r]=o,n.cssNodes["."+o+(i?":hover":"")]=e),t["class"]=t["class"]?t["class"]+" "+o:o}var le=n("697e7"),ce=Math.round;function ue(e){return e&&Object(y["isString"])(e.src)}function he(e){return e&&Object(y["isFunction"])(e.toDataURL)}function de(e,t,n,i){k((function(r,o){var a="fill"===r||"stroke"===r;a&&Object(s["k"])(o)?Le(t,e,r,i):a&&Object(s["n"])(o)?Ee(n,e,r,i):e[r]=a&&"none"===o?"transparent":o}),t,n,!1),ke(n,e,i)}function fe(e,t){var n=Object(le["getElementSSRData"])(t);n&&(n.each((function(t,n){null!=t&&(e[(T+n).toLowerCase()]=t+"")})),t.isSilent()&&(e[T+"silent"]="true"))}function pe(e){return Object(s["j"])(e[0]-1)&&Object(s["j"])(e[1])&&Object(s["j"])(e[2])&&Object(s["j"])(e[3]-1)}function ge(e){return Object(s["j"])(e[4])&&Object(s["j"])(e[5])}function me(e,t,n){if(t&&(!ge(t)||!pe(t))){var i=n?10:1e4;e.transform=pe(t)?"translate("+ce(t[4]*i)/i+" "+ce(t[5]*i)/i+")":Object(s["e"])(t)}}function ve(e,t,n){for(var i=e.points,r=[],o=0;o<i.length;o++)r.push(ce(i[o][0]*n)/n),r.push(ce(i[o][1]*n)/n);t.points=r.join(" ")}function be(e){return!e.smooth}function ye(e){var t=Object(y["map"])(e,(function(e){return"string"===typeof e?[e,e]:e}));return function(e,n,i){for(var r=0;r<t.length;r++){var o=t[r],s=e[o[0]];null!=s&&(n[o[1]]=ce(s*i)/i)}}}var _e={circle:[ye(["cx","cy","r"])],polyline:[ve,be],polygon:[ve,be]};function we(e){for(var t=e.animators,n=0;n<t.length;n++)if("shape"===t[n].targetName)return!0;return!1}function Ce(e,t){var n=e.style,i=e.shape,r=_e[e.type],o={},a=t.animation,l="path",c=e.style.strokePercent,u=t.compress&&Object(s["f"])(e)||4;if(!r||t.willUpdate||r[1]&&!r[1](i)||a&&we(e)||c<1){var h=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;h&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var f=d.getVersion(),p=e,g=p.__svgPathBuilder;p.__svgPathVersion===f&&g&&c===p.__svgPathStrokePercent||(g||(g=p.__svgPathBuilder=new v),g.reset(u),d.rebuildPath(g,c),g.generateStr(),p.__svgPathVersion=f,p.__svgPathStrokePercent=c),o.d=g.getStr()}else{l=e.type;var m=Math.pow(10,u);r[0](i,o,m)}return me(o,e.transform),de(o,n,e,t),fe(o,e),t.animation&&ne(e,o,t),t.emphasis&&se(e,o,t),N(l,e.id+"",o)}function Se(e,t){var n=e.style,i=n.image;if(i&&!Object(y["isString"])(i)&&(ue(i)?i=i.src:he(i)&&(i=i.toDataURL())),i){var r=n.x||0,o=n.y||0,s=n.width,a=n.height,l={href:i,width:s,height:a};return r&&(l.x=r),o&&(l.y=o),me(l,e.transform),de(l,n,e,t),fe(l,e),t.animation&&ne(e,l,t),N("image",e.id+"",l)}}function xe(e,t){var n=e.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var r=n.font||re["a"],o=n.x||0,a=Object(s["b"])(n.y||0,Object(c["e"])(r),n.textBaseline),l=s["a"][n.textAlign]||n.textAlign,u={"dominant-baseline":"central","text-anchor":l};if(Object(ie["b"])(n)){var h="",d=n.fontStyle,f=Object(ie["c"])(n.fontSize);if(!parseFloat(f))return;var p=n.fontFamily||re["b"],g=n.fontWeight;h+="font-size:"+f+";font-family:"+p+";",d&&"normal"!==d&&(h+="font-style:"+d+";"),g&&"normal"!==g&&(h+="font-weight:"+g+";"),u.style=h}else u.style="font: "+r;return i.match(/\s/)&&(u["xml:space"]="preserve"),o&&(u.x=o),a&&(u.y=a),me(u,e.transform),de(u,n,e,t),fe(u,e),t.animation&&ne(e,u,t),N("text",e.id+"",u,void 0,i)}}function Oe(e,t){return e instanceof a["b"]?Ce(e,t):e instanceof l["a"]?Se(e,t):e instanceof u["a"]?xe(e,t):void 0}function ke(e,t,n){var i=e.style;if(Object(s["i"])(i)){var r=Object(s["h"])(e),o=n.shadowCache,a=o[r];if(!a){var l=e.getGlobalScale(),c=l[0],u=l[1];if(!c||!u)return;var h=i.shadowOffsetX||0,d=i.shadowOffsetY||0,f=i.shadowBlur,p=Object(s["p"])(i.shadowColor),g=p.opacity,m=p.color,v=f/2/c,b=f/2/u,y=v+" "+b;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=N("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[N("feDropShadow","",{dx:h/c,dy:d/u,stdDeviation:y,"flood-color":m,"flood-opacity":g})]),o[r]=a}t.filter=Object(s["d"])(a)}}function Le(e,t,n,i){var r,o=e[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(s["m"])(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!Object(s["o"])(o))return void 0;r="radialGradient",a.cx=Object(y["retrieve2"])(o.x,.5),a.cy=Object(y["retrieve2"])(o.y,.5),a.r=Object(y["retrieve2"])(o.r,.5)}for(var l=o.colorStops,c=[],u=0,h=l.length;u<h;++u){var d=100*Object(s["q"])(l[u].offset)+"%",f=l[u].color,p=Object(s["p"])(f),g=p.color,m=p.opacity,v={offset:d};v["stop-color"]=g,m<1&&(v["stop-opacity"]=m),c.push(N("stop",u+"",v))}var b=N(r,"",a,c),_=R(b),w=i.gradientCache,C=w[_];C||(C=i.zrId+"-g"+i.gradientIdx++,w[_]=C,a.id=C,i.defs[C]=N(r,C,a,c)),t[n]=Object(s["d"])(C)}function Ee(e,t,n,i){var r,o=e.style[n],a=e.getBoundingRect(),l={},c=o.repeat,u="no-repeat"===c,h="repeat-x"===c,d="repeat-y"===c;if(Object(s["l"])(o)){var f=o.imageWidth,p=o.imageHeight,g=void 0,m=o.image;if(Object(y["isString"])(m)?g=m:ue(m)?g=m.src:he(m)&&(g=m.toDataURL()),"undefined"===typeof Image){var v="Image width/height must been given explictly in svg-ssr renderer.";Object(y["assert"])(f,v),Object(y["assert"])(p,v)}else if(null==f||null==p){var b=function(e,t){if(e){var n=e.elm,i=f||t.width,r=p||t.height;"pattern"===e.tag&&(h?(r=1,i/=a.width):d&&(i=1,r/=a.height)),e.attrs.width=i,e.attrs.height=r,n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},_=Object(V["a"])(g,null,e,(function(e){u||b(x,e),b(r,e)}));_&&_.width&&_.height&&(f=f||_.width,p=p||_.height)}r=N("image","img",{href:g,width:f,height:p}),l.width=f,l.height=p}else o.svgElement&&(r=Object(y["clone"])(o.svgElement),l.width=o.svgWidth,l.height=o.svgHeight);if(r){var w,C;u?w=C=1:h?(C=1,w=l.width/a.width):d?(w=1,C=l.height/a.height):l.patternUnits="userSpaceOnUse",null==w||isNaN(w)||(l.width=w),null==C||isNaN(C)||(l.height=C);var S=Object(s["g"])(o);S&&(l.patternTransform=S);var x=N("pattern","",l,[r]),O=R(x),k=i.patternCache,L=k[O];L||(L=i.zrId+"-p"+i.patternIdx++,k[O]=L,l.id=L,x=i.defs[L]=N("pattern",L,l,[r])),t[n]=Object(s["d"])(L)}}function De(e,t,n){var i=n.clipPathCache,r=n.defs,o=i[e.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var a={id:o};i[e.id]=o,r[o]=N("clipPath",o,a,[Ce(e,n)])}t["clip-path"]=Object(s["d"])(o)}function Ie(e){return document.createTextNode(e)}function Me(e,t,n){e.insertBefore(t,n)}function Te(e,t){e.removeChild(t)}function Ae(e,t){e.appendChild(t)}function Ne(e){return e.parentNode}function Pe(e){return e.nextSibling}function je(e,t){e.textContent=t}var Re=58,Fe=120,Be=N("","");function We(e){return void 0===e}function Ve(e){return void 0!==e}function ze(e,t,n){for(var i={},r=t;r<=n;++r){var o=e[r].key;void 0!==o&&(i[o]=r)}return i}function He(e,t){var n=e.key===t.key,i=e.tag===t.tag;return i&&n}function Ue(e){var t,n=e.children,i=e.tag;if(Ve(i)){var r=e.elm=A(i);if(Ke(Be,e),Object(y["isArray"])(n))for(t=0;t<n.length;++t){var o=n[t];null!=o&&Ae(r,Ue(o))}else Ve(e.text)&&!Object(y["isObject"])(e.text)&&Ae(r,Ie(e.text))}else e.elm=Ie(e.text);return e.elm}function qe(e,t,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&Me(e,Ue(o),t)}}function $e(e,t,n,i){for(;n<=i;++n){var r=t[n];if(null!=r)if(Ve(r.tag)){var o=Ne(r.elm);Te(o,r.elm)}else Te(e,r.elm)}}function Ke(e,t){var n,i=t.elm,r=e&&e.attrs||{},o=t.attrs||{};if(r!==o){for(n in o){var s=o[n],a=r[n];a!==s&&(!0===s?i.setAttribute(n,""):!1===s?i.removeAttribute(n):"style"===n?i.style.cssText=s:n.charCodeAt(0)!==Fe?i.setAttribute(n,s):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(I,n,s):n.charCodeAt(3)===Re?i.setAttributeNS(M,n,s):n.charCodeAt(5)===Re?i.setAttributeNS(D,n,s):i.setAttribute(n,s))}for(n in r)n in o||i.removeAttribute(n)}}function Ge(e,t,n){var i,r,o,s,a=0,l=0,c=t.length-1,u=t[0],h=t[c],d=n.length-1,f=n[0],p=n[d];while(a<=c&&l<=d)null==u?u=t[++a]:null==h?h=t[--c]:null==f?f=n[++l]:null==p?p=n[--d]:He(u,f)?(Ye(u,f),u=t[++a],f=n[++l]):He(h,p)?(Ye(h,p),h=t[--c],p=n[--d]):He(u,p)?(Ye(u,p),Me(e,u.elm,Pe(h.elm)),u=t[++a],p=n[--d]):He(h,f)?(Ye(h,f),Me(e,h.elm,u.elm),h=t[--c],f=n[++l]):(We(i)&&(i=ze(t,a,c)),r=i[f.key],We(r)?Me(e,Ue(f),u.elm):(o=t[r],o.tag!==f.tag?Me(e,Ue(f),u.elm):(Ye(o,f),t[r]=void 0,Me(e,o.elm,u.elm))),f=n[++l]);(a<=c||l<=d)&&(a>c?(s=null==n[d+1]?null:n[d+1].elm,qe(e,s,n,l,d)):$e(e,t,a,c))}function Ye(e,t){var n=t.elm=e.elm,i=e.children,r=t.children;e!==t&&(Ke(e,t),We(t.text)?Ve(i)&&Ve(r)?i!==r&&Ge(n,i,r):Ve(r)?(Ve(e.text)&&je(n,""),qe(n,null,r,0,r.length-1)):Ve(i)?$e(n,i,0,i.length-1):Ve(e.text)&&je(n,""):e.text!==t.text&&(Ve(i)&&$e(n,i,0,i.length-1),je(n,t.text)))}function Ze(e,t){if(He(e,t))Ye(e,t);else{var n=e.elm,i=Ne(n);Ue(t),null!==i&&(Me(i,t.elm,Pe(n)),$e(i,[e],0,0))}return t}var Xe=n("3437"),Qe=0,Je=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=et("refreshHover"),this.configLayer=et("configLayer"),this.storage=t,this._opts=n=Object(y["extend"])({},n),this.root=e,this._id="zr"+Qe++,this._oldVNode=W(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=A("svg");Ke(null,this._oldVNode),i.appendChild(r),e.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Ze(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return Oe(e,B(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=B(this._id);r.animation=e.animation,r.willUpdate=e.willUpdate,r.compress=e.compress,r.emphasis=e.emphasis;var o=[],s=this._bgVNode=tt(n,i,this._backgroundColor,r);s&&o.push(s);var a=e.compress?null:this._mainVNode=N("g","main",{},[]);this._paintList(t,r,a?a.children:o),a&&o.push(a);var l=Object(y["map"])(Object(y["keys"])(r.defs),(function(e){return r.defs[e]}));if(l.length&&o.push(N("defs","defs",{},l)),e.animation){var c=F(r.cssNodes,r.cssAnims,{newline:!0});if(c){var u=N("style","stl",{},[],c);o.push(u)}}return W(n,i,o,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},R(this.renderToVNode({animation:Object(y["retrieve2"])(e.cssAnimation,!0),emphasis:Object(y["retrieve2"])(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Object(y["retrieve2"])(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var i,r,o=e.length,s=[],a=0,l=0,c=0;c<o;c++){var u=e[c];if(!u.invisible){var h=u.__clipPaths,d=h&&h.length||0,f=r&&r.length||0,p=void 0;for(p=Math.max(d-1,f-1);p>=0;p--)if(h&&r&&h[p]===r[p])break;for(var g=f-1;g>p;g--)a--,i=s[a-1];for(var m=p+1;m<d;m++){var v={};De(h[m],v,t);var b=N("g","clip-g-"+l++,v,[]);(i?i.children:n).push(b),s[a++]=b,i=b}r=h;var y=Oe(u,t);y&&(i?i.children:n).push(y)}}},e.prototype.resize=function(e,t){var n=this._opts,i=this.root,r=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),i&&r&&(r.style.display="none",e=Object(Xe["b"])(i,0,n),t=Object(Xe["b"])(i,1,n),r.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,r){var o=r.style;o.width=e+"px",o.height=t+"px"}if(Object(s["n"])(this._backgroundColor))this.refresh();else{var a=this._svgDom;a&&(a.setAttribute("width",e),a.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=Object(s["c"])(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+encodeURIComponent(t)},e}();function et(e){return function(){0}}function tt(e,t,n,i){var r;if(n&&"none"!==n)if(r=N("rect","bg",{width:e,height:t,x:"0",y:"0"}),Object(s["k"])(n))Le({fill:n},r.attrs,"fill",i);else if(Object(s["n"])(n))Ee({style:{fill:n},dirty:y["noop"],getBoundingRect:function(){return{width:e,height:t}}},r.attrs,"fill",i);else{var o=Object(s["p"])(n),a=o.color,l=o.opacity;r.attrs.fill=a,l<1&&(r.attrs["fill-opacity"]=l)}return r}var nt=Je;function it(e){e.registerPainter("svg",nt)}var rt=n("9ab4"),ot=n("1830"),st=n("4f85"),at=n("a15a"),lt=n("2dc5"),ct=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e){return Object(ot["a"])(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new lt["a"],n=Object(at["a"])("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,s=.8*e.itemHeight,a=Object(at["a"])(o,(e.itemWidth-s)/2,(e.itemHeight-s)/2,s,s,e.itemStyle.fill);t.add(a),a.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?r:e.iconRotate||0;return a.rotation=l*Math.PI/180,a.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(st["b"]),ut=ct,ht=n("deca"),dt=n("2306"),ft=n("861c"),pt=n("7d6c"),gt=n("2b17");function mt(e,t){var n=e.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Object(gt["e"])(e,t,n[0]);return null!=r?r+"":null}if(i){for(var o=[],s=0;s<n.length;s++)o.push(Object(gt["e"])(e,t,n[s]));return o.join(" ")}}function vt(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Object(y["isArray"])(t))return t+"";for(var i=[],r=0;r<n.length;r++){var o=e.getDimensionIndex(n[r]);o>=0&&i.push(t[o])}return i.join(" ")}var bt=n("7837"),yt=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.updateData(t,n,i,r),o}return Object(rt["a"])(t,e),t.prototype._createSymbol=function(e,t,n,i,r){this.removeAll();var o=Object(at["a"])(e,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=_t,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Object(pt["r"])(this.childAt(0))},t.prototype.downplay=function(){Object(pt["C"])(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,i,r){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,a=t.getSymbolSize(e,n),l=o!==this._symbolType,c=r&&r.disableAnimation;if(l){var u=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,a,u)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:a[0]/2,scaleY:a[1]/2};c?h.attr(d):ht["h"](h,d,s,n),Object(ht["g"])(h)}if(this._updateCommon(e,n,a,i,r),l){h=this.childAt(0);if(!c){d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,ht["c"](h,d,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,i,r){var o,s,a,c,u,h,d,f,p,g=this.childAt(0),m=e.hostModel;if(i&&(o=i.emphasisItemStyle,s=i.blurItemStyle,a=i.selectItemStyle,c=i.focus,u=i.blurScope,d=i.labelStatesModels,f=i.hoverScale,p=i.cursorStyle,h=i.emphasisDisabled),!i||e.hasItemOption){var v=i&&i.itemModel?i.itemModel:e.getItemModel(t),b=v.getModel("emphasis");o=b.getModel("itemStyle").getItemStyle(),a=v.getModel(["select","itemStyle"]).getItemStyle(),s=v.getModel(["blur","itemStyle"]).getItemStyle(),c=b.get("focus"),u=b.get("blurScope"),h=b.get("disabled"),d=Object(bt["e"])(v),f=b.getShallow("scale"),p=v.getShallow("cursor")}var _=e.getItemVisual(t,"symbolRotate");g.attr("rotation",(_||0)*Math.PI/180||0);var w=Object(at["b"])(e.getItemVisual(t,"symbolOffset"),n);w&&(g.x=w[0],g.y=w[1]),p&&g.attr("cursor",p);var C=e.getItemVisual(t,"style"),S=C.fill;if(g instanceof l["a"]){var x=g.style;g.useStyle(Object(y["extend"])({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},C))}else g.__isEmptyBrush?g.useStyle(Object(y["extend"])({},C)):g.useStyle(C),g.style.decal=null,g.setColor(S,r&&r.symbolInnerColor),g.style.strokeNoScale=!0;var O=e.getItemVisual(t,"liftZ"),k=this._z2;null!=O?null==k&&(this._z2=g.z2,g.z2+=O):null!=k&&(g.z2=k,this._z2=null);var L=r&&r.useNameLabel;function E(t){return L?e.getName(t):mt(e,t)}Object(bt["g"])(g,d,{labelFetcher:m,labelDataIndex:t,defaultText:E,inheritColor:S,defaultOpacity:C.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=g.ensureState("emphasis");D.style=o,g.ensureState("select").style=a,g.ensureState("blur").style=s;var I=null==f||!0===f?Math.max(1.1,3/this._sizeY):isFinite(f)&&f>0?+f:1;D.scaleX=this._sizeX*I,D.scaleY=this._sizeY*I,this.setSymbolScale(1),Object(pt["J"])(this,c,u,h)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var i=this.childAt(0),r=Object(ft["a"])(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var s=i.getTextContent();s&&ht["e"](s,{style:{opacity:0}},t,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ht["e"](i,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:r,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return Object(at["c"])(e.getItemVisual(t,"symbolSize"))},t}(lt["a"]);function _t(e,t){this.parent.drift(e,t)}var wt=yt;function Ct(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function St(e){return null==e||Object(y["isObject"])(e)||(e={isIgnore:e}),e||{}}function xt(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Object(bt["e"])(t),cursorStyle:t.get("cursor")}}var Ot=function(){function e(e){this.group=new lt["a"],this._SymbolCtor=e||wt}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=St(t);var n=this.group,i=e.hostModel,r=this._data,o=this._SymbolCtor,s=t.disableAnimation,a=xt(e),l={disableAnimation:s},c=t.getSymbolPoint||function(t){return e.getItemLayout(t)};r||n.removeAll(),e.diff(r).add((function(i){var r=c(i);if(Ct(e,r,i,t)){var s=new o(e,i,a,l);s.setPosition(r),e.setItemGraphicEl(i,s),n.add(s)}})).update((function(u,h){var d=r.getItemGraphicEl(h),f=c(u);if(Ct(e,f,u,t)){var p=e.getItemVisual(u,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==p)n.remove(d),d=new o(e,u,a,l),d.setPosition(f);else{d.updateData(e,u,a,l);var m={x:f[0],y:f[1]};s?d.attr(m):ht["h"](d,m,i)}n.add(d),e.setItemGraphicEl(u,d)}else n.remove(d)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),i)})).execute(),this._getSymbolPoint=c,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var i=e._getSymbolPoint(n);t.setPosition(i),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=xt(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=St(n);for(var r=e.start;r<e.end;r++){var o=t.getItemLayout(r);if(Ct(t,o,r,n)){var s=new this._SymbolCtor(t,r,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(r,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(e){dt["traverseElements"](this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}(),kt=Ot,Lt=n("ee1a");function Et(e,t,n){var i=e.getBaseAxis(),r=e.getOtherAxis(i),o=Dt(r,n),s=i.dim,a=r.dim,l=t.mapDimension(a),c=t.mapDimension(s),u="x"===a||"radius"===a?1:0,h=Object(y["map"])(e.dimensions,(function(e){return t.mapDimension(e)})),d=!1,f=t.getCalculationInfo("stackResultDimension");return Object(Lt["c"])(t,h[0])&&(d=!0,h[0]=f),Object(Lt["c"])(t,h[1])&&(d=!0,h[1]=f),{dataDimsForPoint:h,valueStart:o,valueAxisDim:a,baseAxisDim:s,stacked:!!d,valueDim:l,baseDim:c,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Dt(e,t){var n=0,i=e.scale.getExtent();return"start"===t?n=i[0]:"end"===t?n=i[1]:Object(y["isNumber"])(t)&&!isNaN(t)?n=t:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function It(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var o=e.baseDataOffset,s=[];return s[o]=n.get(e.baseDim,i),s[1-o]=r,t.dataToPoint(s)}var Mt=n("f658");function Tt(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}function At(e,t,n,i,r,o,s,a){for(var l=Tt(e,t),c=[],u=[],h=[],d=[],f=[],p=[],g=[],m=Et(r,t,s),v=e.getLayout("points")||[],b=t.getLayout("points")||[],y=0;y<l.length;y++){var _=l[y],w=!0,C=void 0,S=void 0;switch(_.cmd){case"=":C=2*_.idx,S=2*_.idx1;var x=v[C],O=v[C+1],k=b[S],L=b[S+1];(isNaN(x)||isNaN(O))&&(x=k,O=L),c.push(x,O),u.push(k,L),h.push(n[C],n[C+1]),d.push(i[S],i[S+1]),g.push(t.getRawIndex(_.idx1));break;case"+":var E=_.idx,D=m.dataDimsForPoint,I=r.dataToPoint([t.get(D[0],E),t.get(D[1],E)]);S=2*E,c.push(I[0],I[1]),u.push(b[S],b[S+1]);var M=It(m,r,t,E);h.push(M[0],M[1]),d.push(i[S],i[S+1]),g.push(t.getRawIndex(E));break;case"-":w=!1}w&&(f.push(_),p.push(p.length))}p.sort((function(e,t){return g[e]-g[t]}));var T=c.length,A=Object(Mt["a"])(T),N=Object(Mt["a"])(T),P=Object(Mt["a"])(T),j=Object(Mt["a"])(T),R=[];for(y=0;y<p.length;y++){var F=p[y],B=2*y,W=2*F;A[B]=c[W],A[B+1]=c[W+1],N[B]=u[W],N[B+1]=u[W+1],P[B]=h[W],P[B+1]=h[W+1],j[B]=d[W],j[B+1]=d[W+1],R[y]=f[F]}return{current:A,next:N,stackedOnCurrent:P,stackedOnNext:j,status:R}}var Nt=n("48a9"),Pt=n("e0d3"),jt=n("4a3f"),Rt=Math.min,Ft=Math.max;function Bt(e,t){return isNaN(e)||isNaN(t)}function Wt(e,t,n,i,r,o,s,a,l){for(var c,u,h,d,f,p,g=n,m=0;m<i;m++){var v=t[2*g],b=t[2*g+1];if(g>=r||g<0)break;if(Bt(v,b)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](v,b),h=v,d=b;else{var y=v-c,_=b-u;if(y*y+_*_<.5){g+=o;continue}if(s>0){var w=g+o,C=t[2*w],S=t[2*w+1];while(C===v&&S===b&&m<i)m++,w+=o,g+=o,C=t[2*w],S=t[2*w+1],v=t[2*g],b=t[2*g+1],y=v-c,_=b-u;var x=m+1;if(l)while(Bt(C,S)&&x<i)x++,w+=o,C=t[2*w],S=t[2*w+1];var O=.5,k=0,L=0,E=void 0,D=void 0;if(x>=i||Bt(C,S))f=v,p=b;else{k=C-c,L=S-u;var I=v-c,M=C-v,T=b-u,A=S-b,N=void 0,P=void 0;if("x"===a){N=Math.abs(I),P=Math.abs(M);var j=k>0?1:-1;f=v-j*N*s,p=b,E=v+j*P*s,D=b}else if("y"===a){N=Math.abs(T),P=Math.abs(A);var R=L>0?1:-1;f=v,p=b-R*N*s,E=v,D=b+R*P*s}else N=Math.sqrt(I*I+T*T),P=Math.sqrt(M*M+A*A),O=P/(P+N),f=v-k*s*(1-O),p=b-L*s*(1-O),E=v+k*s*O,D=b+L*s*O,E=Rt(E,Ft(C,v)),D=Rt(D,Ft(S,b)),E=Ft(E,Rt(C,v)),D=Ft(D,Rt(S,b)),k=E-v,L=D-b,f=v-k*N/P,p=b-L*N/P,f=Rt(f,Ft(c,v)),p=Rt(p,Ft(u,b)),f=Ft(f,Rt(c,v)),p=Ft(p,Rt(u,b)),k=v-f,L=b-p,E=v+k*P/N,D=b+L*P/N}e.bezierCurveTo(h,d,f,p,v,b),h=E,d=D}else e.lineTo(v,b)}c=v,u=b,g+=o}return m}var Vt=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),zt=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return Object(rt["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Vt},t.prototype.buildPath=function(e,t){var n=t.points,i=0,r=n.length/2;if(t.connectNulls){for(;r>0;r--)if(!Bt(n[2*r-2],n[2*r-1]))break;for(;i<r;i++)if(!Bt(n[2*i],n[2*i+1]))break}while(i<r)i+=Wt(e,n,i,r,r,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path,o=r.data,s=H["a"].CMD,a="x"===t,l=[],c=0;c<o.length;){var u=o[c++],h=void 0,d=void 0,f=void 0,p=void 0,g=void 0,m=void 0,v=void 0;switch(u){case s.M:n=o[c++],i=o[c++];break;case s.L:if(h=o[c++],d=o[c++],v=a?(e-n)/(h-n):(e-i)/(d-i),v<=1&&v>=0){var b=a?(d-i)*v+i:(h-n)*v+n;return a?[e,b]:[b,e]}n=h,i=d;break;case s.C:h=o[c++],d=o[c++],f=o[c++],p=o[c++],g=o[c++],m=o[c++];var y=a?Object(jt["f"])(n,h,f,g,e,l):Object(jt["f"])(i,d,p,m,e,l);if(y>0)for(var _=0;_<y;_++){var w=l[_];if(w<=1&&w>=0){b=a?Object(jt["a"])(i,d,p,m,w):Object(jt["a"])(n,h,f,g,w);return a?[e,b]:[b,e]}}n=g,i=m;break}}},t}(a["b"]),Ht=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t}(Vt),Ut=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return Object(rt["a"])(t,e),t.prototype.getDefaultShape=function(){return new Ht},t.prototype.buildPath=function(e,t){var n=t.points,i=t.stackedOnPoints,r=0,o=n.length/2,s=t.smoothMonotone;if(t.connectNulls){for(;o>0;o--)if(!Bt(n[2*o-2],n[2*o-1]))break;for(;r<o;r++)if(!Bt(n[2*r],n[2*r+1]))break}while(r<o){var a=Wt(e,n,r,o,o,1,t.smooth,s,t.connectNulls);Wt(e,i,r+a-1,a,o,-1,t.stackedOnSmooth,s,t.connectNulls),r+=a+1,e.closePath()}},t}(a["b"]),qt=n("e887"),$t=n("c7a2"),Kt=n("4aa2"),Gt=n("3842");function Yt(e,t,n,i,r){var o=e.getArea(),s=o.x,a=o.y,l=o.width,c=o.height,u=n.get(["lineStyle","width"])||2;s-=u/2,a-=u/2,l+=u,c+=u,l=Math.ceil(l),s!==Math.floor(s)&&(s=Math.floor(s),l++);var h=new $t["a"]({shape:{x:s,y:a,width:l,height:c}});if(t){var d=e.getBaseAxis(),f=d.isHorizontal(),p=d.inverse;f?(p&&(h.shape.x+=l),h.shape.width=0):(p||(h.shape.y+=c),h.shape.height=0);var g=Object(y["isFunction"])(r)?function(e){r(e,h)}:null;ht["c"](h,{shape:{width:l,height:c,x:s,y:a}},n,null,i,g)}return h}function Zt(e,t,n){var i=e.getArea(),r=Object(Gt["w"])(i.r0,1),o=Object(Gt["w"])(i.r,1),s=new Kt["a"]({shape:{cx:Object(Gt["w"])(e.cx,1),cy:Object(Gt["w"])(e.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var a="angle"===e.getBaseAxis().dim;a?s.shape.endAngle=i.startAngle:s.shape.r=r,ht["c"](s,{shape:{endAngle:i.endAngle,r:o}},n)}return s}function Xt(e,t,n,i,r){return e?"polar"===e.type?Zt(e,t,n):"cartesian2d"===e.type?Yt(e,t,n,i,r):null:null}function Qt(e,t){return e.type===t}var Jt=n("eda2");function en(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function tn(e){for(var t=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<e.length;){var s=e[o++],a=e[o++];isNaN(s)||(t=Math.min(s,t),i=Math.max(s,i)),isNaN(a)||(n=Math.min(a,n),r=Math.max(a,r))}return[[t,n],[i,r]]}function nn(e,t){var n=tn(e),i=n[0],r=n[1],o=tn(t),s=o[0],a=o[1];return Math.max(Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]),Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]))}function rn(e){return y["isNumber"](e)?e:e?.5:0}function on(e,t,n){if(!n.valueDim)return[];for(var i=t.count(),r=Object(Mt["a"])(2*i),o=0;o<i;o++){var s=It(n,e,t,o);r[2*o]=s[0],r[2*o+1]=s[1]}return r}function sn(e,t,n,i){var r=t.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,s=[],a=0,l=[],c=[],u=[],h=[];if(i){for(a=0;a<e.length;a+=2)isNaN(e[a])||isNaN(e[a+1])||h.push(e[a],e[a+1]);e=h}for(a=0;a<e.length-2;a+=2)switch(u[0]=e[a+2],u[1]=e[a+3],c[0]=e[a],c[1]=e[a+1],s.push(c[0],c[1]),n){case"end":l[o]=u[o],l[1-o]=c[1-o],s.push(l[0],l[1]);break;case"middle":var d=(c[o]+u[o])/2,f=[];l[o]=f[o]=d,l[1-o]=c[1-o],f[1-o]=u[1-o],s.push(l[0],l[1]),s.push(f[0],f[1]);break;default:l[o]=c[o],l[1-o]=u[1-o],s.push(l[0],l[1])}return s.push(e[a++],e[a++]),s}function an(e,t){var n,i,r=[],o=e.length;function s(e,t,n){var i=e.coord,r=(n-i)/(t.coord-i),o=Object(oe["lerp"])(r,[e.color,t.color]);return{coord:n,color:o}}for(var a=0;a<o;a++){var l=e[a],c=l.coord;if(c<0)n=l;else{if(c>t){i?r.push(s(i,l,t)):n&&r.push(s(n,l,0),s(n,l,t));break}n&&(r.push(s(n,l,0)),n=null),r.push(l),i=l}}return r}function ln(e,t,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count()&&"cartesian2d"===t.type){for(var r,o,s=i.length-1;s>=0;s--){var a=e.getDimensionInfo(i[s].dimension);if(r=a&&a.coordDim,"x"===r||"y"===r){o=i[s];break}}if(o){var l=t.getAxis(r),c=y["map"](o.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),u=c.length,h=o.outerColors.slice();u&&c[0].coord>c[u-1].coord&&(c.reverse(),h.reverse());var d=an(c,"x"===r?n.getWidth():n.getHeight()),f=d.length;if(!f&&u)return c[0].coord<0?h[1]?h[1]:c[u-1].color:h[0]?h[0]:c[0].color;var p=10,g=d[0].coord-p,m=d[f-1].coord+p,v=m-g;if(v<.001)return"transparent";y["each"](d,(function(e){e.offset=(e.coord-g)/v})),d.push({offset:f?d[f-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:h[0]||"transparent"});var b=new Nt["a"](0,0,0,0,d,!0);return b[r]=g,b[r+"2"]=m,b}}}function cn(e,t,n){var i=e.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!un(o,t))){var s=t.mapDimension(o.dim),a={};return y["each"](o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);a[t]=1})),function(e){return!a.hasOwnProperty(t.get(s,e))}}}}function un(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),o=Math.max(1,Math.round(r/5)),s=0;s<r;s+=o)if(1.5*wt.getSymbolSize(t,s)[e.isHorizontal()?1:0]>i)return!1;return!0}function hn(e,t){return isNaN(e)||isNaN(t)}function dn(e){for(var t=e.length/2;t>0;t--)if(!hn(e[2*t-2],e[2*t-1]))break;return t-1}function fn(e,t){return[e[2*t],e[2*t+1]]}function pn(e,t,n){for(var i,r,o=e.length/2,s="x"===n?0:1,a=0,l=-1,c=0;c<o;c++)if(r=e[2*c+s],!isNaN(r)&&!isNaN(e[2*c+1-s]))if(0!==c){if(i<=t&&r>=t||i>=t&&r<=t){l=c;break}a=c,i=r}else i=r;return{range:[a,l],t:(t-i)/(r-i)}}function gn(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<pt["g"].length;t++)if(e.get([pt["g"][t],"endLabel","show"]))return!0;return!1}function mn(e,t,n,i){if(Qt(t,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),s=i.getData(),a={lastFrameIndex:0},l=gn(i)?function(n,i){e._endLabelOnDuring(n,i,s,a,o,r,t)}:null,c=t.getBaseAxis().isHorizontal(),u=Yt(t,n,i,(function(){var t=e._endLabel;t&&n&&null!=a.originalX&&t.attr({x:a.originalX,y:a.originalY})}),l);if(!i.get("clip",!0)){var h=u.shape,d=Math.max(h.width,h.height);c?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,u),u}return Zt(t,n,i)}function vn(e,t){var n=t.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",s=i?"middle":r?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||s}}}var bn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.init=function(){var e=new lt["a"],t=new kt;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem,o=this.group,s=e.getData(),a=e.getModel("lineStyle"),l=e.getModel("areaStyle"),c=s.getLayout("points")||[],u="polar"===r.type,h=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,m=!t.ssr&&e.get("animation"),v=!l.isEmpty(),b=l.get("origin"),_=Et(r,s,b),w=v&&on(r,s,_),C=e.get("showSymbol"),S=e.get("connectNulls"),x=C&&!u&&cn(e,s,r),O=this._data;O&&O.eachItemGraphicEl((function(e,t){e.__temp&&(o.remove(e),O.setItemGraphicEl(t,null))})),C||d.remove(),o.add(g);var k,L=!u&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(k=r.getArea(),null!=k.width?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r+=.5)),this._clipShapeForSymbol=k;var E=ln(s,r,n)||s.getVisual("style")[s.getVisual("drawType")];if(f&&h.type===r.type&&L===this._step){v&&!p?p=this._newPolygon(c,w):p&&!v&&(g.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(e,r,Object(Jt["c"])(E));var D=g.getClipPath();if(D){var I=mn(this,r,!1,e);ht["c"](D,{shape:I.shape},e)}else g.setClipPath(mn(this,r,!0,e));C&&d.updateData(s,{isIgnore:x,clipShape:k,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),en(this._stackedOnPoints,w)&&en(this._points,c)||(m?this._doUpdateAnimation(s,w,r,n,L,b,S):(L&&(c=sn(c,r,L,S),w&&(w=sn(w,r,L,S))),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:w})))}else C&&d.updateData(s,{isIgnore:x,clipShape:k,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),m&&this._initSymbolLabelAnimation(s,r,k),L&&(c=sn(c,r,L,S),w&&(w=sn(w,r,L,S))),f=this._newPolyline(c),v?p=this._newPolygon(c,w):p&&(g.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(e,r,Object(Jt["c"])(E)),g.setClipPath(mn(this,r,!0,e));var M=e.getModel("emphasis"),T=M.get("focus"),A=M.get("blurScope"),N=M.get("disabled");if(f.useStyle(y["defaults"](a.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"})),Object(pt["I"])(f,e,"lineStyle"),f.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var P=f.getState("emphasis").style;P.lineWidth=+f.style.lineWidth+1}Object(ft["a"])(f).seriesIndex=e.seriesIndex,Object(pt["J"])(f,T,A,N);var j=rn(e.get("smooth")),R=e.get("smoothMonotone");if(f.setShape({smooth:j,smoothMonotone:R,connectNulls:S}),p){var F=s.getCalculationInfo("stackedOnSeries"),B=0;p.useStyle(y["defaults"](l.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),F&&(B=rn(F.get("smooth"))),p.setShape({smooth:j,stackedOnSmooth:B,smoothMonotone:R,connectNulls:S}),Object(pt["I"])(p,e,"areaStyle"),Object(ft["a"])(p).seriesIndex=e.seriesIndex,Object(pt["J"])(p,T,A,N)}var W=function(e){i._changePolyState(e)};s.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=W)})),this._polyline.onHoverStateChange=W,this._data=s,this._coordSys=r,this._stackedOnPoints=w,this._points=c,this._step=L,this._valueOrigin=b,e.get("triggerLineEvent")&&(this.packEventData(e,f),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,t){Object(ft["a"])(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,i){var r=e.getData(),o=Pt["u"](r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var s=r.getLayout("points"),a=r.getItemGraphicEl(o);if(!a){var l=s[2*o],c=s[2*o+1];if(isNaN(l)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,c))return;var u=e.get("zlevel")||0,h=e.get("z")||0;a=new wt(r,o),a.x=l,a.y=c,a.setZ(u,h);var d=a.getSymbolPath().getTextContent();d&&(d.zlevel=u,d.z=h,d.z2=this._polyline.z2+1),a.__temp=!0,r.setItemGraphicEl(o,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else qt["a"].prototype.highlight.call(this,e,t,n,i)},t.prototype.downplay=function(e,t,n,i){var r=e.getData(),o=Pt["u"](r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var s=r.getItemGraphicEl(o);s&&(s.__temp?(r.setItemGraphicEl(o,null),this.group.remove(s)):s.downplay())}else qt["a"].prototype.downplay.call(this,e,t,n,i)},t.prototype._changePolyState=function(e){var t=this._polygon;Object(pt["H"])(this._polyline,e),t&&Object(pt["H"])(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new zt({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Ut({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var i,r,o=t.getBaseAxis(),s=o.inverse;"cartesian2d"===t.type?(i=o.isHorizontal(),r=!1):"polar"===t.type&&(i="angle"===o.dim,r=!0);var a=e.hostModel,l=a.get("animationDuration");y["isFunction"](l)&&(l=l(null));var c=a.get("animationDelay")||0,u=y["isFunction"](c)?c(null):c;e.eachItemGraphicEl((function(e,o){var a=e;if(a){var h=[e.x,e.y],d=void 0,f=void 0,p=void 0;if(n)if(r){var g=n,m=t.pointToCoord(h);i?(d=g.startAngle,f=g.endAngle,p=-m[1]/180*Math.PI):(d=g.r0,f=g.r,p=m[0])}else{var v=n;i?(d=v.x,f=v.x+v.width,p=e.x):(d=v.y+v.height,f=v.y,p=e.y)}var b=f===d?0:(p-d)/(f-d);s&&(b=1-b);var _=y["isFunction"](c)?c(o):l*b+u,w=a.getSymbolPath(),C=w.getTextContent();a.attr({scaleX:0,scaleY:0}),a.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:_}),w.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if(gn(e)){var r=e.getData(),o=this._polyline,s=r.getLayout("points");if(!s)return o.removeTextContent(),void(this._endLabel=null);var a=this._endLabel;a||(a=this._endLabel=new ie["a"]({z2:200}),a.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=dn(s);l>=0&&(Object(bt["g"])(o,Object(bt["e"])(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?vt(r,n):mt(r,e)},enableTextSetter:!0},vn(i,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,i,r,o,s){var a=this._endLabel,l=this._polyline;if(a){e<1&&null==i.originalX&&(i.originalX=a.x,i.originalY=a.y);var c=n.getLayout("points"),u=n.hostModel,h=u.get("connectNulls"),d=o.get("precision"),f=o.get("distance")||0,p=s.getBaseAxis(),g=p.isHorizontal(),m=p.inverse,v=t.shape,b=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,y=(g?f:0)*(m?-1:1),_=(g?0:-f)*(m?-1:1),w=g?"x":"y",C=pn(c,b,w),S=C.range,x=S[1]-S[0],O=void 0;if(x>=1){if(x>1&&!h){var k=fn(c,S[0]);a.attr({x:k[0]+y,y:k[1]+_}),r&&(O=u.getRawValue(S[0]))}else{k=l.getPointOn(b,w);k&&a.attr({x:k[0]+y,y:k[1]+_});var L=u.getRawValue(S[0]),E=u.getRawValue(S[1]);r&&(O=Pt["k"](n,d,L,E,C.t))}i.lastFrameIndex=S[0]}else{var D=1===e||i.lastFrameIndex>0?S[0]:0;k=fn(c,D);r&&(O=u.getRawValue(D)),a.attr({x:k[0]+y,y:k[1]+_})}if(r){var I=Object(bt["f"])(a);"function"===typeof I.setLabelText&&I.setLabelText(O)}}},t.prototype._doUpdateAnimation=function(e,t,n,i,r,o,s){var a=this._polyline,l=this._polygon,c=e.hostModel,u=At(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),h=u.current,d=u.stackedOnCurrent,f=u.next,p=u.stackedOnNext;if(r&&(h=sn(u.current,n,r,s),d=sn(u.stackedOnCurrent,n,r,s),f=sn(u.next,n,r,s),p=sn(u.stackedOnNext,n,r,s)),nn(h,f)>3e3||l&&nn(d,p)>3e3)return a.stopAnimation(),a.setShape({points:f}),void(l&&(l.stopAnimation(),l.setShape({points:f,stackedOnPoints:p})));a.shape.__points=u.current,a.shape.points=h;var g={shape:{points:f}};u.current!==h&&(g.shape.__points=u.next),a.stopAnimation(),ht["h"](a,g,c),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),ht["h"](l,{shape:{stackedOnPoints:p}},c),a.shape.points!==l.shape.points&&(l.shape.points=a.shape.points));for(var m=[],v=u.status,b=0;b<v.length;b++){var y=v[b].cmd;if("="===y){var _=e.getItemGraphicEl(v[b].idx1);_&&m.push({el:_,ptIdx:b})}}a.animators&&a.animators.length&&a.animators[0].during((function(){l&&l.dirtyShape();for(var e=a.shape.__points,t=0;t<m.length;t++){var n=m[t].el,i=2*m[t].ptIdx;n.x=e[i],n.y=e[i+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,i){e.__temp&&(t.remove(e),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(qt["a"]),yn=bn,_n=n("cccd");function wn(e,t){return{seriesType:e,plan:Object(_n["a"])(),reset:function(e){var n=e.getData(),i=e.coordinateSystem,r=e.pipelineContext,o=t||r.large;if(i){var s=Object(y["map"])(i.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),a=s.length,l=n.getCalculationInfo("stackResultDimension");Object(Lt["c"])(n,s[0])&&(s[0]=l),Object(Lt["c"])(n,s[1])&&(s[1]=l);var c=n.getStore(),u=n.getDimensionIndex(s[0]),h=n.getDimensionIndex(s[1]);return a&&{progress:function(e,t){for(var n=e.end-e.start,r=o&&Object(Mt["a"])(n*a),s=[],l=[],d=e.start,f=0;d<e.end;d++){var p=void 0;if(1===a){var g=c.get(u,d);p=i.dataToPoint(g,null,l)}else s[0]=c.get(u,d),s[1]=c.get(h,d),p=i.dataToPoint(s,null,l);o?(r[f++]=p[0],r[f++]=p[1]):t.setItemLayout(d,p.slice())}o&&t.setLayout("points",r)}}}}}}var Cn={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,n=-1/0,i=0;i<e.length;i++){var r=e[i],o=Math.abs(r);o>t&&(t=o,n=r)}return isFinite(n)?n:NaN},nearest:function(e){return e[0]}},Sn=function(e){return Math.round(e.length/2)};function xn(e){return{seriesType:e,reset:function(e,t,n){var i=e.getData(),r=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&"cartesian2d"===o.type&&r){var a=o.getBaseAxis(),l=o.getOtherAxis(a),c=a.getExtent(),u=n.getDevicePixelRatio(),h=Math.abs(c[1]-c[0])*(u||1),d=Math.round(s/h);if(isFinite(d)&&d>1){"lttb"===r&&e.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var f=void 0;Object(y["isString"])(r)?f=Cn[r]:Object(y["isFunction"])(r)&&(f=r),f&&e.setData(i.downSample(i.mapDimension(l.dim),1/d,f,Sn))}}}}}function On(e){e.registerChartView(yn),e.registerSeriesModel(ut),e.registerLayout(wn("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,xn("line"))}var kn=n("9d57"),Ln=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e,t){return Object(ot["a"])(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(e),o=i.dataToPoint(r);if(n)Object(y["each"])(i.getAxes(),(function(e,n){if("category"===e.type&&null!=t){var i=e.getTicksCoords(),s=e.getTickModel().get("alignWithLabel"),a=r[n],l="x1"===t[n]||"y1"===t[n];if(l&&!s&&(a+=1),i.length<2)return;if(2===i.length)return void(o[n]=e.toGlobalCoord(e.getExtent()[l?1:0]));for(var c=void 0,u=void 0,h=1,d=0;d<i.length;d++){var f=i[d].coord,p=d===i.length-1?i[d-1].tickValue+h:i[d].tickValue;if(p===a){u=f;break}if(p<a)c=f;else if(null!=c&&p>a){u=(f+c)/2;break}1===d&&(h=p-i[0].tickValue)}null==u&&(c?c&&(u=i[i.length-1].coord):u=i[0].coord),o[n]=e.toGlobalCoord(u)}}));else{var s=this.getData(),a=s.getLayout("offset"),l=s.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;o[c]+=a+l/2}return o}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(st["b"]);st["b"].registerClass(Ln);var En=Ln,Dn=n("8918"),In=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(){return Object(ot["a"])(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Object(Dn["d"])(En.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(En),Mn=In,Tn=n("88b3"),An=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),Nn=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return Object(rt["a"])(t,e),t.prototype.getDefaultShape=function(){return new An},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),o=Math.max(t.r,0),s=.5*(o-r),a=r+s,l=t.startAngle,c=t.endAngle,u=t.clockwise,h=2*Math.PI,d=u?c-l<h:l-c<h;d||(l=c-(u?h:-h));var f=Math.cos(l),p=Math.sin(l),g=Math.cos(c),m=Math.sin(c);d?(e.moveTo(f*r+n,p*r+i),e.arc(f*a+n,p*a+i,s,-Math.PI+l,l,!u)):e.moveTo(f*o+n,p*o+i),e.arc(n,i,o,l,c,!u),e.arc(g*a+n,m*a+i,s,c-2*Math.PI,c-Math.PI,!u),0!==r&&e.arc(n,i,r,c,l,u)},t}(a["b"]),Pn=Nn;function jn(e,t){t=t||{};var n=t.isRoundCap;return function(t,i,r){var o=i.position;if(!o||o instanceof Array)return Object(c["c"])(t,i,r);var s=e(o),a=null!=i.distance?i.distance:5,l=this.shape,u=l.cx,h=l.cy,d=l.r,f=l.r0,p=(d+f)/2,g=l.startAngle,m=l.endAngle,v=(g+m)/2,b=n?Math.abs(d-f)/2:0,y=Math.cos,_=Math.sin,w=u+d*y(g),C=h+d*_(g),S="left",x="top";switch(s){case"startArc":w=u+(f-a)*y(v),C=h+(f-a)*_(v),S="center",x="top";break;case"insideStartArc":w=u+(f+a)*y(v),C=h+(f+a)*_(v),S="center",x="bottom";break;case"startAngle":w=u+p*y(g)+Fn(g,a+b,!1),C=h+p*_(g)+Bn(g,a+b,!1),S="right",x="middle";break;case"insideStartAngle":w=u+p*y(g)+Fn(g,-a+b,!1),C=h+p*_(g)+Bn(g,-a+b,!1),S="left",x="middle";break;case"middle":w=u+p*y(v),C=h+p*_(v),S="center",x="middle";break;case"endArc":w=u+(d+a)*y(v),C=h+(d+a)*_(v),S="center",x="bottom";break;case"insideEndArc":w=u+(d-a)*y(v),C=h+(d-a)*_(v),S="center",x="top";break;case"endAngle":w=u+p*y(m)+Fn(m,a+b,!0),C=h+p*_(m)+Bn(m,a+b,!0),S="left",x="middle";break;case"insideEndAngle":w=u+p*y(m)+Fn(m,-a+b,!0),C=h+p*_(m)+Bn(m,-a+b,!0),S="right",x="middle";break;default:return Object(c["c"])(t,i,r)}return t=t||{},t.x=w,t.y=C,t.align=S,t.verticalAlign=x,t}}function Rn(e,t,n,i){if(Object(y["isNumber"])(i))e.setTextConfig({rotation:i});else if(Object(y["isArray"])(t))e.setTextConfig({rotation:0});else{var r,o=e.shape,s=o.clockwise?o.startAngle:o.endAngle,a=o.clockwise?o.endAngle:o.startAngle,l=(s+a)/2,c=n(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=s;break;case"endAngle":case"insideEndAngle":r=a;break;default:return void e.setTextConfig({rotation:0})}var u=1.5*Math.PI-r;"middle"===c&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),e.setTextConfig({rotation:u})}}function Fn(e,t,n){return t*Math.sin(e)*(n?-1:1)}function Bn(e,t,n){return t*Math.cos(e)*(n?1:-1)}function Wn(e,t,n){var i=e.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;Object(y["isArray"])(i)||(i=[i,i,i,i]);var r=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Object(y["map"])(i,(function(e){return Object(c["g"])(e,r)}))}}var Vn=Math.max,zn=Math.min;function Hn(e,t){var n=e.getArea&&e.getArea();if(Qt(e,"cartesian2d")){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var r=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}var Un=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var r=e.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Object(dt["traverseElements"])(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,i){var r,o=this.group,s=e.getData(),a=this._data,l=e.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?r=c.isHorizontal():"polar"===l.type&&(r="angle"===c.dim);var u=e.isAnimationEnabled()?e:null,h=Kn(e,l);h&&this._enableRealtimeSort(h,s,n);var d=e.get("clip",!0)||h,f=Hn(l,s);o.removeClipPath();var p=e.get("roundCap",!0),g=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),v=m.get("borderRadius")||0,b=[],y=this._backgroundEls,_=i&&i.isInitSort,w=i&&"changeAxisOrder"===i.type;function C(e){var t=Jn[l.type](s,e),n=ui(l,r,t);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),b[e]=n,n}s.diff(a).add((function(t){var n=s.getItemModel(t),i=Jn[l.type](s,t,n);if(g&&C(t),s.hasValue(t)&&Qn[l.type](i)){var a=!1;d&&(a=qn[l.type](f,i));var m=$n[l.type](e,s,t,i,r,u,c.model,!1,p);h&&(m.forceLabelAnimation=!0),ni(m,s,t,n,i,e,r,"polar"===l.type),_?m.attr({shape:i}):h?Gn(h,u,m,i,t,r,!1,!1):Object(ht["c"])(m,{shape:i},e,t),s.setItemGraphicEl(t,m),o.add(m),m.ignore=a}})).update((function(t,n){var i=s.getItemModel(t),S=Jn[l.type](s,t,i);if(g){var x=void 0;0===y.length?x=C(n):(x=y[n],x.useStyle(m.getItemStyle()),"cartesian2d"===l.type?x.setShape("r",v):x.setShape("cornerRadius",v),b[t]=x);var O=Jn[l.type](s,t),k=ci(r,O,l);Object(ht["h"])(x,{shape:k},u,t)}var L=a.getItemGraphicEl(n);if(s.hasValue(t)&&Qn[l.type](S)){var E=!1;if(d&&(E=qn[l.type](f,S),E&&o.remove(L)),L?Object(ht["g"])(L):L=$n[l.type](e,s,t,S,r,u,c.model,!!L,p),h&&(L.forceLabelAnimation=!0),w){var D=L.getTextContent();if(D){var I=Object(bt["f"])(D);null!=I.prevValue&&(I.prevValue=I.value)}}else ni(L,s,t,i,S,e,r,"polar"===l.type);_?L.attr({shape:S}):h?Gn(h,u,L,S,t,r,!0,w):Object(ht["h"])(L,{shape:S},e,t,null),s.setItemGraphicEl(t,L),L.ignore=E,o.add(L)}else o.remove(L)})).remove((function(t){var n=a.getItemGraphicEl(t);n&&Object(ht["f"])(n,e,t)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new lt["a"]);S.removeAll();for(var x=0;x<b.length;++x)S.add(b[x]);o.add(S),this._backgroundEls=b,this._data=s},t.prototype._renderLarge=function(e,t,n){this._clear(),si(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),si(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&Xt(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var i=this;if(t.count()){var r=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var o=function(e){var n=t.getItemGraphicEl(e),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(t,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var i=[];return e.each(e.mapDimension(t.dim),(function(e,t){var r=n(t);r=null==r?NaN:r,i.push({dataIndex:t,mappedValue:r,ordinalNumber:e})})),i.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:Object(y["map"])(i,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var i=n.scale,r=e.mapDimension(n.dim),o=Number.MAX_VALUE,s=0,a=i.getOrdinalMeta().categories.length;s<a;++s){var l=e.rawIndexOf(r,i.getRawOrdinalNumber(s)),c=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(c>o)return!0;o=c}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(e.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,i){if(this._isOrderChangedWithinSameData(e,t,n)){var r=this._dataSort(e,n,t);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},t.prototype._dispatchInitSort=function(e,t,n){var i=t.baseAxis,r=this._dataSort(e,i,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){Object(ht["f"])(t,e,Object(ft["a"])(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(qt["a"]),qn={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=e.x+e.width,o=e.y+e.height,s=Vn(t.x,e.x),a=zn(t.x+t.width,r),l=Vn(t.y,e.y),c=zn(t.y+t.height,o),u=a<s,h=c<l;return t.x=u&&s>r?a:s,t.y=h&&l>o?c:l,t.width=u?0:a-s,t.height=h?0:c-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),u||h},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var r=zn(t.r,e.r),o=Vn(t.r0,e.r0);t.r=r,t.r0=o;var s=r-o<0;if(n<0){i=t.r;t.r=t.r0,t.r0=i}return s}},$n={cartesian2d:function(e,t,n,i,r,o,s,a,l){var c=new $t["a"]({shape:Object(y["extend"])({},i),z2:1});if(c.__dataIndex=n,c.name="item",o){var u=c.shape,h=r?"height":"width";u[h]=0}return c},polar:function(e,t,n,i,r,o,s,a,l){var c=!r&&l?Pn:Kt["a"],u=new c({shape:i,z2:1});u.name="item";var h=ti(r);if(u.calculateTextPosition=jn(h,{isRoundCap:c===Pn}),o){var d=u.shape,f=r?"r":"endAngle",p={};d[f]=r?i.r0:i.startAngle,p[f]=i[f],(a?ht["h"]:ht["c"])(u,{shape:p},o)}return u}};function Kn(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===t.type)return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function Gn(e,t,n,i,r,o,s,a){var l,c;o?(c={x:i.x,width:i.width},l={y:i.y,height:i.height}):(c={y:i.y,height:i.height},l={x:i.x,width:i.width}),a||(s?ht["h"]:ht["c"])(n,{shape:l},t,r,null);var u=t?e.baseAxis.model:null;(s?ht["h"]:ht["c"])(n,{shape:c},u,r)}function Yn(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var Zn=["x","y","width","height"],Xn=["cx","cy","r","startAngle","endAngle"],Qn={cartesian2d:function(e){return!Yn(e,Zn)},polar:function(e){return!Yn(e,Xn)}},Jn={cartesian2d:function(e,t,n){var i=e.getItemLayout(t),r=n?ii(n,i):0,o=i.width>0?1:-1,s=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+s*r/2,width:i.width-o*r,height:i.height-s*r}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function ei(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function ti(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function ni(e,t,n,i,r,o,s,a){var l=t.getItemVisual(n,"style");if(a){if(!o.get("roundCap")){var c=e.shape,u=Wn(i.getModel("itemStyle"),c,!0);Object(y["extend"])(c,u),e.setShape(c)}}else{var h=i.get(["itemStyle","borderRadius"])||0;e.setShape("r",h)}e.useStyle(l);var d=i.getShallow("cursor");d&&e.attr("cursor",d);var f=a?s?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":s?r.height>=0?"bottom":"top":r.width>=0?"right":"left",p=Object(bt["e"])(i);Object(bt["g"])(e,p,{labelFetcher:o,labelDataIndex:n,defaultText:mt(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var g=e.getTextContent();if(a&&g){var m=i.get(["label","position"]);e.textConfig.inside="middle"===m||null,Rn(e,"outside"===m?f:m,ti(s),i.get(["label","rotate"]))}Object(bt["h"])(g,p,o.getRawValue(n),(function(e){return vt(t,e)}));var v=i.getModel(["emphasis"]);Object(pt["J"])(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),Object(pt["I"])(e,i),ei(r)&&(e.style.fill="none",e.style.stroke="none",Object(y["each"])(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function ii(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=e.get(["itemStyle","borderWidth"])||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,r,o)}var ri=function(){function e(){}return e}(),oi=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return Object(rt["a"])(t,e),t.prototype.getDefaultShape=function(){return new ri},t.prototype.buildPath=function(e,t){for(var n=t.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],s=[],a=this.barWidth,l=0;l<n.length;l+=3)s[i]=a,s[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],e.rect(o[0],o[1],s[0],s[1])},t}(a["b"]);function si(e,t,n,i){var r=e.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,s=r.getLayout("largeDataIndices"),a=r.getLayout("size"),l=e.getModel("backgroundStyle"),c=r.getLayout("largeBackgroundPoints");if(c){var u=new oi({shape:{points:c},incremental:!!i,silent:!0,z2:0});u.baseDimIdx=o,u.largeDataIndices=s,u.barWidth=a,u.useStyle(l.getItemStyle()),t.add(u),n&&n.push(u)}var h=new oi({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=s,h.barWidth=a,t.add(h),h.useStyle(r.getVisual("style")),Object(ft["a"])(h).seriesIndex=e.seriesIndex,e.get("silent")||(h.on("mousedown",ai),h.on("mousemove",ai)),n&&n.push(h)}var ai=Object(Tn["c"])((function(e){var t=this,n=li(t,e.offsetX,e.offsetY);Object(ft["a"])(t).dataIndex=n>=0?n:null}),30,!1);function li(e,t,n){for(var i=e.baseDimIdx,r=1-i,o=e.shape.points,s=e.largeDataIndices,a=[],l=[],c=e.barWidth,u=0,h=o.length/3;u<h;u++){var d=3*u;if(l[i]=c,l[r]=o[d+2],a[i]=o[d+i],a[r]=o[d+r],l[r]<0&&(a[r]+=l[r],l[r]=-l[r]),t>=a[0]&&t<=a[0]+l[0]&&n>=a[1]&&n<=a[1]+l[1])return s[u]}return-1}function ci(e,t,n){if(Qt(n,"cartesian2d")){var i=t,r=n.getArea();return{x:e?i.x:r.x,y:e?r.y:i.y,width:e?i.width:r.width,height:e?r.height:i.height}}r=n.getArea();var o=t;return{cx:r.cx,cy:r.cy,r0:e?r.r0:o.r0,r:e?r.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}function ui(e,t,n){var i="polar"===e.type?Kt["a"]:$t["a"];return new i({shape:ci(t,n,e),silent:!0,z2:0})}var hi=Un;function di(e){e.registerChartView(hi),e.registerSeriesModel(Mn),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,y["curry"](kn["c"],"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(kn["a"])("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,xn("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var fi=n("f3bb"),pi=n("f934"),gi=2*Math.PI,mi=Math.PI/180;function vi(e,t){return pi["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function bi(e,t){var n=vi(e,t),i=e.get("center"),r=e.get("radius");y["isArray"](r)||(r=[0,r]);var o,s,a=Object(Gt["q"])(n.width,t.getWidth()),l=Object(Gt["q"])(n.height,t.getHeight()),c=Math.min(a,l),u=Object(Gt["q"])(r[0],c/2),h=Object(Gt["q"])(r[1],c/2),d=e.coordinateSystem;if(d){var f=d.dataToPoint(i);o=f[0]||0,s=f[1]||0}else y["isArray"](i)||(i=[i,i]),o=Object(Gt["q"])(i[0],a)+n.x,s=Object(Gt["q"])(i[1],l)+n.y;return{cx:o,cy:s,r0:u,r:h}}function yi(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),r=vi(e,n),o=bi(e,n),s=o.cx,a=o.cy,l=o.r,c=o.r0,u=-e.get("startAngle")*mi,h=e.get("endAngle"),d=e.get("padAngle")*mi;h="auto"===h?u-gi:-h*mi;var f=e.get("minAngle")*mi,p=f+d,g=0;t.each(i,(function(e){!isNaN(e)&&g++}));var m=t.getSum(i),v=Math.PI/(m||g)*2,b=e.get("clockwise"),y=e.get("roseType"),_=e.get("stillShowZeroSum"),w=t.getDataExtent(i);w[0]=0;var C=b?1:-1,S=[u,h],x=C*d/2;Object(H["b"])(S,!b),u=S[0],h=S[1];var O=_i(e);O.startAngle=u,O.endAngle=h,O.clockwise=b;var k=Math.abs(h-u),L=k,E=0,D=u;if(t.setLayout({viewRect:r,r:l}),t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:s,cy:a,r0:c,r:y?NaN:l});else{i="area"!==y?0===m&&_?v:e*v:k/g,i<p?(i=p,L-=p):E+=e;var r=D+C*i,o=0,u=0;d>i?(o=D+C*i/2,u=o):(o=D+x,u=r-x),t.setItemLayout(n,{angle:i,startAngle:o,endAngle:u,clockwise:b,cx:s,cy:a,r0:c,r:y?Object(Gt["m"])(e,w,[c,l]):l}),D=r}})),L<gi&&g)if(L<=.001){var I=k/g;t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n);i.angle=I;var r=0,o=0;I<d?(r=u+C*(n+.5)*I,o=r):(r=u+C*n*I+x,o=u+C*(n+1)*I-x),i.startAngle=r,i.endAngle=o}}))}else v=L/E,D=u,t.each(i,(function(e,n){if(!isNaN(e)){var i=t.getItemLayout(n),r=i.angle===p?p:e*v,o=0,s=0;r<d?(o=D+C*r/2,s=o):(o=D+x,s=D+C*r-x),i.startAngle=o,i.endAngle=s,D+=C*r}}))}))}var _i=Object(Pt["o"])();function wi(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var i=e.getData();i.filterSelf((function(e){for(var t=i.getName(e),r=0;r<n.length;r++)if(!n[r].isSelected(t))return!1;return!0}))}}}}var Ci=n("d498"),Si=n("dce8"),xi=n("89b6"),Oi=n("2355"),ki=Math.PI/180;function Li(e,t,n,i,r,o,s,a,l,c){if(!(e.length<2)){for(var u=e.length,h=0;h<u;h++)if("outer"===e[h].position&&"labelLine"===e[h].labelAlignTo){var d=e[h].label.x-c;e[h].linePoints[1][0]+=d,e[h].label.x=c}Object(Oi["d"])(e,l,l+s)&&p(e)}function f(e){for(var o=e.rB,s=o*o,a=0;a<e.list.length;a++){var l=e.list[a],c=Math.abs(l.label.y-n),u=i+l.len,h=u*u,d=Math.sqrt((1-Math.abs(c*c/s))*h),f=t+(d+l.len2)*r,p=f-l.label.x,g=l.targetTextWidth-p*r;Di(l,g,!0),l.label.x=f}}function p(e){for(var o={list:[],maxY:0},s={list:[],maxY:0},a=0;a<e.length;a++)if("none"===e[a].labelAlignTo){var l=e[a],c=l.label.y>n?s:o,u=Math.abs(l.label.y-n);if(u>=c.maxY){var h=l.label.x-t-l.len2*r,d=i+l.len,p=Math.abs(h)<d?Math.sqrt(u*u/(1-h*h/d/d)):d;c.rB=p,c.maxY=u}c.list.push(l)}f(o),f(s)}}function Ei(e,t,n,i,r,o,s,a){for(var l=[],c=[],u=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<e.length;d++){var f=e[d].label;Ii(e[d])||(f.x<t?(u=Math.min(u,f.x),l.push(e[d])):(h=Math.max(h,f.x),c.push(e[d])))}for(d=0;d<e.length;d++){var p=e[d];if(!Ii(p)&&p.linePoints){if(null!=p.labelStyleWidth)continue;f=p.label;var g=p.linePoints,m=void 0;m="edge"===p.labelAlignTo?f.x<t?g[2][0]-p.labelDistance-s-p.edgeDistance:s+r-p.edgeDistance-g[2][0]-p.labelDistance:"labelLine"===p.labelAlignTo?f.x<t?u-s-p.bleedMargin:s+r-h-p.bleedMargin:f.x<t?f.x-s-p.bleedMargin:s+r-f.x-p.bleedMargin,p.targetTextWidth=m,Di(p,m)}}Li(c,t,n,i,1,r,o,s,a,h),Li(l,t,n,i,-1,r,o,s,a,u);for(d=0;d<e.length;d++){p=e[d];if(!Ii(p)&&p.linePoints){f=p.label,g=p.linePoints;var v="edge"===p.labelAlignTo,b=f.style.padding,y=b?b[1]+b[3]:0,_=f.style.backgroundColor?0:y,w=p.rect.width+_,C=g[1][0]-g[2][0];v?f.x<t?g[2][0]=s+p.edgeDistance+w+p.labelDistance:g[2][0]=s+r-p.edgeDistance-w-p.labelDistance:(f.x<t?g[2][0]=f.x+p.labelDistance:g[2][0]=f.x-p.labelDistance,g[1][0]=g[2][0]+C),g[1][1]=g[2][1]=f.y}}}function Di(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var i=e.label,r=i.style,o=e.rect,s=r.backgroundColor,a=r.padding,l=a?a[1]+a[3]:0,c=r.overflow,u=o.width+(s?0:l);if(t<u||n){var h=o.height;if(c&&c.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var d=i.getBoundingRect();i.setStyle("width",Math.ceil(d.width)),i.setStyle("backgroundColor",s)}else{var f=t-l,p=t<u?f:n?f>e.unconstrainedWidth?null:f:null;i.setStyle("width",p)}var g=i.getBoundingRect();o.width=g.width;var m=(i.style.margin||0)+2.1;o.height=g.height+m,o.y-=(o.height-h)/2}}}function Ii(e){return"center"===e.position}function Mi(e){var t,n,i=e.getData(),r=[],o=!1,s=(e.get("minShowLabelAngle")||0)*ki,a=i.getLayout("viewRect"),l=i.getLayout("r"),c=a.width,u=a.x,h=a.y,d=a.height;function f(e){e.ignore=!0}function p(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}i.each((function(e){var a=i.getItemGraphicEl(e),h=a.shape,d=a.getTextContent(),g=a.getTextGuideLine(),m=i.getItemModel(e),v=m.getModel("label"),b=v.get("position")||m.get(["emphasis","label","position"]),_=v.get("distanceToLabelLine"),w=v.get("alignTo"),C=Object(Gt["q"])(v.get("edgeDistance"),c),S=v.get("bleedMargin"),x=m.getModel("labelLine"),O=x.get("length");O=Object(Gt["q"])(O,c);var k=x.get("length2");if(k=Object(Gt["q"])(k,c),Math.abs(h.endAngle-h.startAngle)<s)return Object(y["each"])(d.states,f),d.ignore=!0,void(g&&(Object(y["each"])(g.states,f),g.ignore=!0));if(p(d)){var L,E,D,I,M=(h.startAngle+h.endAngle)/2,T=Math.cos(M),A=Math.sin(M);t=h.cx,n=h.cy;var N="inside"===b||"inner"===b;if("center"===b)L=h.cx,E=h.cy,I="center";else{var P=(N?(h.r+h.r0)/2*T:h.r*T)+t,j=(N?(h.r+h.r0)/2*A:h.r*A)+n;if(L=P+3*T,E=j+3*A,!N){var R=P+T*(O+l-h.r),F=j+A*(O+l-h.r),B=R+(T<0?-1:1)*k,W=F;L="edge"===w?T<0?u+C:u+c-C:B+(T<0?-_:_),E=W,D=[[P,j],[R,F],[B,W]]}I=N?"center":"edge"===w?T>0?"right":"left":T>0?"left":"right"}var V=Math.PI,z=0,H=v.get("rotate");if(Object(y["isNumber"])(H))z=H*(V/180);else if("center"===b)z=0;else if("radial"===H||!0===H){var U=T<0?-M+V:-M;z=U}else if("tangential"===H&&"outside"!==b&&"outer"!==b){var q=Math.atan2(T,A);q<0&&(q=2*V+q);var $=A>0;$&&(q=V+q),z=q-V}if(o=!!z,d.x=L,d.y=E,d.rotation=z,d.setStyle({verticalAlign:"middle"}),N){d.setStyle({align:I});var K=d.states.select;K&&(K.x+=d.x,K.y+=d.y)}else{var G=d.getBoundingRect().clone();G.applyTransform(d.getComputedTransform());var Y=(d.style.margin||0)+2.1;G.y-=Y/2,G.height+=Y,r.push({label:d,labelLine:g,position:b,len:O,len2:k,minTurnAngle:x.get("minTurnAngle"),maxSurfaceAngle:x.get("maxSurfaceAngle"),surfaceNormal:new Si["a"](T,A),linePoints:D,textAlign:I,labelDistance:_,labelAlignTo:w,edgeDistance:C,bleedMargin:S,rect:G,unconstrainedWidth:G.width,labelStyleWidth:d.style.width})}a.setTextConfig({inside:N})}})),!o&&e.get("avoidLabelOverlap")&&Ei(r,t,n,l,c,d,u,h);for(var g=0;g<r.length;g++){var m=r[g],v=m.label,b=m.labelLine,_=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:m.textAlign}),_&&(Object(y["each"])(v.states,f),v.ignore=!0);var w=v.states.select;w&&(w.x+=v.x,w.y+=v.y)}if(b){var C=m.linePoints;_||!C?(Object(y["each"])(b.states,f),b.ignore=!0):(Object(xi["c"])(C,m.minTurnAngle),Object(xi["b"])(C,m.surfaceNormal,m.maxSurfaceAngle),b.setShape({points:C}),v.__hostTarget.textGuideLineConfig={anchor:new Si["a"](C[0][0],C[0][1])})}}}var Ti=function(e){function t(t,n,i){var r=e.call(this)||this;r.z2=2;var o=new ie["a"];return r.setTextContent(o),r.updateData(t,n,i,!0),r}return Object(rt["a"])(t,e),t.prototype.updateData=function(e,t,n,i){var r=this,o=e.hostModel,s=e.getItemModel(t),a=s.getModel("emphasis"),l=e.getItemLayout(t),c=Object(y["extend"])(Wn(s.getModel("itemStyle"),l,!0),l);if(isNaN(c.startAngle))r.setShape(c);else{if(i){r.setShape(c);var u=o.getShallow("animationType");o.ecModel.ssr?(ht["c"](r,{scaleX:0,scaleY:0},o,{dataIndex:t,isFrom:!0}),r.originX=c.cx,r.originY=c.cy):"scale"===u?(r.shape.r=l.r0,ht["c"](r,{shape:{r:l.r}},o,t)):null!=n?(r.setShape({startAngle:n,endAngle:n}),ht["c"](r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,t)):(r.shape.endAngle=l.startAngle,ht["h"](r,{shape:{endAngle:l.endAngle}},o,t))}else Object(ht["g"])(r),ht["h"](r,{shape:c},o,t);r.useStyle(e.getItemVisual(t,"style")),Object(pt["I"])(r,s);var h=(l.startAngle+l.endAngle)/2,d=o.get("selectedOffset"),f=Math.cos(h)*d,p=Math.sin(h)*d,g=s.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(o,e,t),r.ensureState("emphasis").shape=Object(y["extend"])({r:l.r+(a.get("scale")&&a.get("scaleSize")||0)},Wn(a.getModel("itemStyle"),l)),Object(y["extend"])(r.ensureState("select"),{x:f,y:p,shape:Wn(s.getModel(["select","itemStyle"]),l)}),Object(y["extend"])(r.ensureState("blur"),{shape:Wn(s.getModel(["blur","itemStyle"]),l)});var m=r.getTextGuideLine(),v=r.getTextContent();m&&Object(y["extend"])(m.ensureState("select"),{x:f,y:p}),Object(y["extend"])(v.ensureState("select"),{x:f,y:p}),Object(pt["J"])(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))}},t.prototype._updateLabel=function(e,t,n){var i=this,r=t.getItemModel(n),o=r.getModel("labelLine"),s=t.getItemVisual(n,"style"),a=s&&s.fill,l=s&&s.opacity;Object(bt["g"])(i,Object(bt["e"])(r),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:l,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var u=e.get(["label","position"]);if("outside"!==u&&"outer"!==u)i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Ci["a"],this.setTextGuideLine(h)),Object(xi["d"])(this,Object(xi["a"])(r),{stroke:a,opacity:Object(y["retrieve3"])(o.get(["lineStyle","opacity"]),l,1)})}},t}(Kt["a"]),Ai=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n,i){var r,o=e.getData(),s=this._data,a=this.group;if(!s&&o.count()>0){for(var l=o.getItemLayout(0),c=1;isNaN(l&&l.startAngle)&&c<o.count();++c)l=o.getItemLayout(c);l&&(r=l.startAngle)}if(this._emptyCircleSector&&a.remove(this._emptyCircleSector),0===o.count()&&e.get("showEmptyCircle")){var u=_i(e),h=new Kt["a"]({shape:Object(y["extend"])(bi(e,n),u)});h.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,a.add(h)}o.diff(s).add((function(e){var t=new Ti(o,e,r);o.setItemGraphicEl(e,t),a.add(t)})).update((function(e,t){var n=s.getItemGraphicEl(t);n.updateData(o,e,r),n.off("click"),a.add(n),o.setItemGraphicEl(e,n)})).remove((function(t){var n=s.getItemGraphicEl(t);ht["f"](n,e,t)})).execute(),Mi(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var r=e[0]-i.cx,o=e[1]-i.cy,s=Math.sqrt(r*r+o*o);return s<=i.r&&s>=i.r0}},t.type="pie",t}(qt["a"]),Ni=Ai,Pi=n("b1d4"),ji=n("b682");function Ri(e,t,n){t=Object(y["isArray"])(t)&&{coordDimensions:t}||Object(y["extend"])({encodeDefine:e.getEncode()},t);var i=e.getSource(),r=Object(Pi["b"])(i,t).dimensions,o=new ji["a"](r,e);return o.initData(i,n),o}var Fi=n("0f99"),Bi=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},e}(),Wi=Bi,Vi=Pt["o"](),zi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wi(y["bind"](this.getData,this),y["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Ri(this,{coordDimensions:["value"],encodeDefaulter:y["curry"](Fi["d"],this)})},t.prototype.getDataParams=function(t){var n=this.getData(),i=Vi(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(e){o.push(e)})),r=i.seats=Object(Gt["e"])(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,t);return s.percent=r[t]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Pt["f"](e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(st["b"]),Hi=zi;function Ui(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),i=n.get(t,e);return!(Object(y["isNumber"])(i)&&!isNaN(i)&&i<0)}))}}}function qi(e){e.registerChartView(Ni),e.registerSeriesModel(Hi),Object(fi["a"])("pie",e.registerAction),e.registerLayout(Object(y["curry"])(yi,"pie")),e.registerProcessor(wi("pie")),e.registerProcessor(Ui("pie"))}var $i=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e,t){return Object(ot["a"])(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(st["b"]),Ki=$i,Gi=n("9850"),Yi=4,Zi=function(){function e(){}return e}(),Xi=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(rt["a"])(t,e),t.prototype.getDefaultShape=function(){return new Zi},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,i=t.points,r=t.size,o=this.symbolProxy,s=o.shape,a=e.getContext?e.getContext():e,l=a&&r[0]<Yi,c=this.softClipShape;if(l)this._ctx=a;else{for(this._ctx=null,n=this._off;n<i.length;){var u=i[n++],h=i[n++];isNaN(u)||isNaN(h)||(c&&!c.contain(u,h)||(s.x=u-r[0]/2,s.y=h-r[1]/2,s.width=r[0],s.height=r[1],o.buildPath(e,s,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,i=t.size,r=this._ctx,o=this.softClipShape;if(r){for(e=this._off;e<n.length;){var s=n[e++],a=n[e++];isNaN(s)||isNaN(a)||(o&&!o.contain(s,a)||r.fillRect(s-i[0]/2,a-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),s=Math.max(r[1],4),a=i.length/2-1;a>=0;a--){var l=2*a,c=i[l]-o/2,u=i[l+1]-s/2;if(e>=c&&t>=u&&e<=c+o&&t<=u+s)return a}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,i=t.size,r=i[0],o=i[1],s=1/0,a=1/0,l=-1/0,c=-1/0,u=0;u<n.length;){var h=n[u++],d=n[u++];s=Math.min(h,s),l=Math.max(h,l),a=Math.min(d,a),c=Math.max(d,c)}e=this._rect=new Gi["a"](s-r/2,a-o/2,l-s+r,c-a+o)}return e},t}(a["b"]),Qi=function(){function e(){this.group=new lt["a"]}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),i=4*e.startIndex*2;t=new Float32Array(t.buffer,i,n)}e.setShape("points",t),e.reset()}))},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var i=this._newAdded[0],r=t.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,a=new Float32Array(s+r.length);a.set(o),a.set(r,s),i.endIndex=e.end,i.setShape({points:a})}else{this._newAdded=[];var l=this._create();l.startIndex=e.start,l.endIndex=e.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new Xi({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;n=n||{};var r=t.getVisual("symbolSize");e.setShape("size",r instanceof Array?r:[r,r]),e.softClipShape=n.clipShape||null,e.symbolProxy=Object(at["a"])(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<Yi;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),a=s&&s.fill;a&&e.setColor(a);var l=Object(ft["a"])(e);l.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){l.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),Ji=Qi,er=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=wn("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,i=t.pipelineContext,r=i.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new Ji:new kt,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(qt["a"]),tr=er,nr=n("b12f"),ir=n("6cb7"),rr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(ir["a"]),or=rr,sr=n("2023"),ar=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Pt["b"]).models[0]},t.type="cartesian2dAxis",t}(ir["a"]);y["mixin"](ar,sr["a"]);var lr={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},cr=y["merge"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},lr),ur=y["merge"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},lr),hr=y["merge"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ur),dr=y["defaults"]({logBase:10},ur),fr={category:cr,value:ur,time:hr,log:dr},pr=n("8e43"),gr={value:1,category:1,time:1,log:1};function mr(e,t,n,i){Object(y["each"])(gr,(function(r,o){var s=Object(y["merge"])(Object(y["merge"])({},fr[o],!0),i,!0),a=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return Object(rt["a"])(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Object(pi["d"])(this),i=n?Object(pi["f"])(e):{},r=t.getTheme();Object(y["merge"])(e,r.get(o+"Axis")),Object(y["merge"])(e,this.getDefaultOption()),e.type=vr(e),n&&Object(pi["h"])(e,i,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=pr["a"].createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+o,n.defaultOption=s,n}(n);e.registerComponentModel(a)})),e.registerSubTypeDefaulter(t+"Axis",vr)}function vr(e){return e.type||(e.data?"category":"value")}var br=n("697e"),yr=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return y["map"](this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),y["filter"](this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),_r=yr,wr=n("1687"),Cr=n("401b"),Sr=["x","y"];function xr(e){return"interval"===e.type||"time"===e.type}var Or=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Sr,t}return Object(rt["a"])(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(xr(e)&&xr(t)){var n=e.getExtent(),i=t.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),s=n[1]-n[0],a=i[1]-i[0];if(s&&a){var l=(o[0]-r[0])/s,c=(o[1]-r[1])/a,u=r[0]-n[0]*l,h=r[1]-i[0]*c,d=this._transform=[l,0,0,c,u,h];this._invTransform=Object(wr["invert"])([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),i=this.dataToPoint(t),r=this.getArea(),o=new Gi["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var i=e[0],r=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return Object(Cr["applyTransform"])(n,e,this._transform);var o=this.getAxis("x"),s=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,t)),n[1]=s.toGlobalCoord(s.dataToCoord(r,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),s=n.parse(e[0]),a=i.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(r[0],r[1]),s),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),a),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return Object(Cr["applyTransform"])(n,e,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),t),n[1]=r.coordToData(r.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(t[0],t[1])-e,r=Math.min(n[0],n[1])-e,o=Math.max(t[0],t[1])-i+e,s=Math.max(n[0],n[1])-r+e;return new Gi["a"](i,r,o,s)},t}(_r),kr=Or,Lr=n("84ce"),Er=function(e){function t(t,n,i,r,o){var s=e.call(this,t,n,i)||this;return s.index=0,s.type=r||"value",s.position=o||"bottom",s}return Object(rt["a"])(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Lr["a"]),Dr=Er;function Ir(e,t,n){n=n||{};var i=e.coordinateSystem,r=t.axis,o={},s=r.getAxesOnZeroOf()[0],a=r.position,l=s?"onZero":a,c=r.dim,u=i.getRect(),h=[u.x,u.x+u.width,u.y,u.y+u.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,p="x"===c?[h[2]-f,h[3]+f]:[h[0]-f,h[1]+f];if(s){var g=s.toGlobalCoord(s.dataToCoord(0));p[d.onZero]=Math.max(Math.min(g,p[1]),p[0])}o.position=["y"===c?p[d[l]]:h[0],"x"===c?p[d[l]]:h[3]],o.rotation=Math.PI/2*("x"===c?0:1);var m={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=m[a],o.labelOffset=s?p[d[a]]-p[d.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),y["retrieve"](n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var v=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-v:v,o.z2=1,o}function Mr(e){return"cartesian2d"===e.get("coordinateSystem")}function Tr(e){var t={xAxisModel:null,yAxisModel:null};return y["each"](t,(function(n,i){var r=i.replace(/Model$/,""),o=e.getReferringComponents(r,Pt["b"]).models[0];t[i]=o})),t}var Ar=n("944e"),Nr=n("89e3"),Pr=Math.log;function jr(e,t,n){var i=Nr["a"].prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),s=r.length-1,a=i.getInterval.call(n),l=Object(br["f"])(e,t),c=l.extent,u=l.fixMin,h=l.fixMax;if("log"===e.type){var d=Pr(e.base);c=[Pr(c[0])/d,Pr(c[1])/d]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:s,fixMin:u,fixMax:h});var f=i.getExtent.call(e);u&&(c[0]=f[0]),h&&(c[1]=f[1]);var p=i.getInterval.call(e),g=c[0],m=c[1];if(u&&h)p=(m-g)/s;else if(u){m=c[0]+p*s;while(m<c[1]&&isFinite(m)&&isFinite(c[1]))p=Object(Ar["c"])(p),m=c[0]+p*s}else if(h){g=c[1]-p*s;while(g>c[0]&&isFinite(g)&&isFinite(c[0]))p=Object(Ar["c"])(p),g=c[1]-p*s}else{var v=e.getTicks().length-1;v>s&&(p=Object(Ar["c"])(p));var b=p*s;m=Math.ceil(c[1]/p)*p,g=Object(Gt["w"])(m-b),g<0&&c[0]>=0?(g=0,m=Object(Gt["w"])(b)):m>0&&c[1]<=0&&(m=0,g=-Object(Gt["w"])(b))}var y=(r[0].value-o[0].value)/a,_=(r[s].value-o[s].value)/a;i.setExtent.call(e,g+p*y,m+p*_),i.setInterval.call(e,p),(y||_)&&i.setNiceExtent.call(e,g+p,m-p)}var Rr=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Sr,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function i(e){var t,n=Object(y["keys"])(e),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var s=+n[o],a=e[s],l=a.model,c=a.scale;Object(Ar["e"])(c)&&l.get("alignTicks")&&null==l.get("interval")?r.push(a):(Object(br["i"])(c,l),Object(Ar["e"])(c)&&(t=a))}r.length&&(t||(t=r.pop(),Object(br["i"])(t.scale,t.model)),Object(y["each"])(r,(function(e){jr(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),i(n.x),i(n.y);var r={};Object(y["each"])(n.x,(function(e){Br(n,"y",e,r)})),Object(y["each"])(n.y,(function(e){Br(n,"x",e,r)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),r=!n&&e.get("containLabel"),o=Object(pi["g"])(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;function a(){Object(y["each"])(s,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),Vr(e,t?o.x:o.y)}))}a(),r&&(Object(y["each"])(s,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=Object(br["b"])(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+i,"top"===e.position?o.y+=t.height+i:"left"===e.position&&(o.x+=t.width+i)}}})),a()),Object(y["each"])(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Object(y["isObject"])(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===e||r[i].getAxis("y").index===t)return r[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,i=e.seriesModel,r=e.xAxisModel||i&&i.getReferringComponents("xAxis",Pt["b"]).models[0],o=e.yAxisModel||i&&i.getReferringComponents("yAxis",Pt["b"]).models[0],s=e.gridModel,a=this._coordsList;if(i)t=i.coordinateSystem,Object(y["indexOf"])(a,t)<0&&(t=null);else if(r&&o)t=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(s){var l=s.coordinateSystem;l===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},a={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!a.x||!a.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,i){if(Fr(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var c=new Dr(t,Object(br["a"])(n),[0,0],n.get("type"),l),u="category"===c.type;c.onBand=u&&n.get("boundaryGap"),c.inverse=n.get("inverse"),n.axis=c,c.model=n,c.grid=r,c.index=i,r._axesList.push(c),s[t][i]=c,a[t]++}}}this._axesMap=s,Object(y["each"])(s.x,(function(t,n){Object(y["each"])(s.y,(function(r,o){var s="x"+n+"y"+o,a=new kr(s);a.master=i,a.model=e,i._coordsMap[s]=a,i._coordsList.push(a),a.addAxis(t),a.addAxis(r)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){Object(y["each"])(Object(br["d"])(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}Object(y["each"])(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(Mr(e)){var i=Tr(e),r=i.xAxisModel,o=i.yAxisModel;if(!Fr(r,t)||!Fr(o,t))return;var s=this.getCartesian(r.componentIndex,o.componentIndex),a=e.getData(),l=s.getAxis("x"),c=s.getAxis("y");n(a,l),n(a,c)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return Object(y["each"])(this.getCartesians(),(function(i){var r=null!=e&&"auto"!==e?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(r);Object(y["indexOf"])(t,r)<0&&t.push(r),Object(y["indexOf"])(n,o)<0&&n.push(o)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var i=[];return t.eachComponent("grid",(function(r,o){var s=new e(r,t,n);s.name="grid_"+o,s.resize(r,n,!0),r.coordinateSystem=s,i.push(s)})),t.eachSeries((function(e){if(Mr(e)){var t=Tr(e),n=t.xAxisModel,i=t.yAxisModel,r=n.getCoordSysModel();0;var o=r.coordinateSystem;e.coordinateSystem=o.getCartesian(n.componentIndex,i.componentIndex)}})),i},e.dimensions=Sr,e}();function Fr(e,t){return e.getCoordSysModel()===t}function Br(e,t,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=e[t],s=n.model,a=s.get(["axisLine","onZero"]),l=s.get(["axisLine","onZeroAxisIndex"]);if(a){if(null!=l)Wr(o[l])&&(r=o[l]);else for(var c in o)if(o.hasOwnProperty(c)&&Wr(o[c])&&!i[u(o[c])]){r=o[c];break}r&&(i[u(r)]=!0)}function u(e){return e.dim+"_"+e.index}}function Wr(e){return e&&"category"!==e.type&&"time"!==e.type&&Object(br["g"])(e)}function Vr(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return i-e+t}}var zr=Rr,Hr=n("cb11"),Ur=n("4319"),qr=Math.PI,$r=function(){function e(e,t){this.group=new lt["a"],this.opt=t,this.axisModel=e,Object(y["defaults"])(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new lt["a"]({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!Kr[e]},e.prototype.add=function(e){Kr[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var i,r,o=Object(Gt["v"])(t-e);return Object(Gt["l"])(o)?(r=n>0?"top":"bottom",i="center"):Object(Gt["l"])(o-qr)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<qr?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),Kr={axisLine:function(e,t,n,i){var r=t.get(["axisLine","show"]);if("auto"===r&&e.handleAutoShown&&(r=e.handleAutoShown("axisLine")),r){var o=t.axis.getExtent(),s=i.transform,a=[o[0],0],l=[o[1],0],c=a[0]>l[0];s&&(Object(Cr["applyTransform"])(a,a,s),Object(Cr["applyTransform"])(l,l,s));var u=Object(y["extend"])({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Hr["a"]({shape:{x1:a[0],y1:a[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});dt["subPixelOptimizeLine"](h.shape,h.style.lineWidth),h.anid="line",n.add(h);var d=t.get(["axisLine","symbol"]);if(null!=d){var f=t.get(["axisLine","symbolSize"]);Object(y["isString"])(d)&&(d=[d,d]),(Object(y["isString"])(f)||Object(y["isNumber"])(f))&&(f=[f,f]);var p=Object(at["b"])(t.get(["axisLine","symbolOffset"])||0,f),g=f[0],m=f[1];Object(y["each"])([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((a[0]-l[0])*(a[0]-l[0])+(a[1]-l[1])*(a[1]-l[1]))}],(function(t,i){if("none"!==d[i]&&null!=d[i]){var r=Object(at["a"])(d[i],-g/2,-m/2,g,m,u.stroke,!0),o=t.r+t.offset,s=c?l:a;r.attr({rotation:t.rotate,x:s[0]+o*Math.cos(e.rotation),y:s[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(e,t,n,i){var r=eo(n,i,t,e),o=no(n,i,t,e);if(Yr(t,o,r),to(n,i,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var s=Object(Oi["b"])(Object(y["map"])(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));Object(Oi["a"])(s)}},axisName:function(e,t,n,i){var r=Object(y["retrieve"])(e.axisName,t.get("name"));if(r){var o,s,a=t.get("nameLocation"),l=e.nameDirection,c=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,h=t.axis.getExtent(),d=h[0]>h[1]?-1:1,f=["start"===a?h[0]-d*u:"end"===a?h[1]+d*u:(h[0]+h[1])/2,Qr(a)?e.labelOffset+l*u:0],p=t.get("nameRotate");null!=p&&(p=p*qr/180),Qr(a)?o=$r.innerTextLayout(e.rotation,null!=p?p:e.rotation,l):(o=Gr(e.rotation,a,p||0,h),s=e.axisNameAvailableWidth,null!=s&&(s=Math.abs(s/Math.sin(o.rotation)),!isFinite(s)&&(s=null)));var g=c.getFont(),m=t.get("nameTruncate",!0)||{},v=m.ellipsis,b=Object(y["retrieve"])(e.nameTruncateMaxWidth,m.maxWidth,s),_=new ie["a"]({x:f[0],y:f[1],rotation:o.rotation,silent:$r.isLabelSilent(t),style:Object(bt["c"])(c,{text:r,font:g,overflow:"truncate",width:b,ellipsis:v,fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:c.get("align")||o.textAlign,verticalAlign:c.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(dt["setTooltipConfig"]({el:_,componentModel:t,itemName:r}),_.__fullText=r,_.anid="name",t.get("triggerEvent")){var w=$r.makeAxisEventDataBase(t);w.targetType="axisName",w.name=r,Object(ft["a"])(_).eventData=w}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function Gr(e,t,n,i){var r,o,s=Object(Gt["v"])(n-e),a=i[0]>i[1],l="start"===t&&!a||"start"!==t&&a;return Object(Gt["l"])(s-qr/2)?(o=l?"bottom":"top",r="center"):Object(Gt["l"])(s-1.5*qr)?(o=l?"top":"bottom",r="center"):(o="middle",r=s<1.5*qr&&s>qr/2?l?"left":"right":l?"right":"left"),{rotation:s,textAlign:r,textVerticalAlign:o}}function Yr(e,t,n){if(!Object(br["j"])(e.axis)){var i=e.get(["axisLabel","showMinLabel"]),r=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],s=t[1],a=t[t.length-1],l=t[t.length-2],c=n[0],u=n[1],h=n[n.length-1],d=n[n.length-2];!1===i?(Zr(o),Zr(c)):Xr(o,s)&&(i?(Zr(s),Zr(u)):(Zr(o),Zr(c))),!1===r?(Zr(a),Zr(h)):Xr(l,a)&&(r?(Zr(l),Zr(d)):(Zr(a),Zr(h)))}}function Zr(e){e&&(e.ignore=!0)}function Xr(e,t){var n=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(n&&i){var r=wr["identity"]([]);return wr["rotate"](r,r,-e.rotation),n.applyTransform(wr["mul"]([],r,e.getLocalTransform())),i.applyTransform(wr["mul"]([],r,t.getLocalTransform())),n.intersect(i)}}function Qr(e){return"middle"===e||"center"===e}function Jr(e,t,n,i,r){for(var o=[],s=[],a=[],l=0;l<e.length;l++){var c=e[l].coord;s[0]=c,s[1]=0,a[0]=c,a[1]=n,t&&(Object(Cr["applyTransform"])(s,s,t),Object(Cr["applyTransform"])(a,a,t));var u=new Hr["a"]({shape:{x1:s[0],y1:s[1],x2:a[0],y2:a[1]},style:i,z2:2,autoBatch:!0,silent:!0});dt["subPixelOptimizeLine"](u.shape,u.style.lineWidth),u.anid=r+"_"+e[l].tickValue,o.push(u)}return o}function eo(e,t,n,i){var r=n.axis,o=n.getModel("axisTick"),s=o.get("show");if("auto"===s&&i.handleAutoShown&&(s=i.handleAutoShown("axisTick")),s&&!r.scale.isBlank()){for(var a=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),c=r.getTicksCoords(),u=Jr(c,t.transform,l,Object(y["defaults"])(a.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<u.length;h++)e.add(u[h]);return u}}function to(e,t,n,i){var r=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!r.scale.isBlank()){var s=r.getMinorTicksCoords();if(s.length)for(var a=o.getModel("lineStyle"),l=i*o.get("length"),c=Object(y["defaults"])(a.getLineStyle(),Object(y["defaults"])(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),u=0;u<s.length;u++)for(var h=Jr(s[u],t.transform,l,c,"minorticks_"+u),d=0;d<h.length;d++)e.add(h[d])}}function no(e,t,n,i){var r=n.axis,o=Object(y["retrieve"])(i.axisLabelShow,n.get(["axisLabel","show"]));if(o&&!r.scale.isBlank()){var s=n.getModel("axisLabel"),a=s.get("margin"),l=r.getViewLabels(),c=(Object(y["retrieve"])(i.labelRotate,s.get("rotate"))||0)*qr/180,u=$r.innerTextLayout(i.rotation,c,i.labelDirection),h=n.getCategories&&n.getCategories(!0),d=[],f=$r.isLabelSilent(n),p=n.get("triggerEvent");return Object(y["each"])(l,(function(o,c){var g="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,m=o.formattedLabel,v=o.rawLabel,b=s;if(h&&h[g]){var _=h[g];Object(y["isObject"])(_)&&_.textStyle&&(b=new Ur["a"](_.textStyle,s,n.ecModel))}var w=b.getTextColor()||n.get(["axisLine","lineStyle","color"]),C=r.dataToCoord(g),S=b.getShallow("align",!0)||u.textAlign,x=Object(y["retrieve2"])(b.getShallow("alignMinLabel",!0),S),O=Object(y["retrieve2"])(b.getShallow("alignMaxLabel",!0),S),k=b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||u.textVerticalAlign,L=Object(y["retrieve2"])(b.getShallow("verticalAlignMinLabel",!0),k),E=Object(y["retrieve2"])(b.getShallow("verticalAlignMaxLabel",!0),k),D=new ie["a"]({x:C,y:i.labelOffset+i.labelDirection*a,rotation:u.rotation,silent:f,z2:10+(o.level||0),style:Object(bt["c"])(b,{text:m,align:0===c?x:c===l.length-1?O:S,verticalAlign:0===c?L:c===l.length-1?E:k,fill:Object(y["isFunction"])(w)?w("category"===r.type?v:"value"===r.type?g+"":g,c):w})});if(D.anid="label_"+g,p){var I=$r.makeAxisEventDataBase(n);I.targetType="axisLabel",I.value=v,I.tickIndex=c,"category"===r.type&&(I.dataIndex=g),Object(ft["a"])(D).eventData=I}t.add(D),D.updateTransform(),d.push(D),e.add(D),D.decomposeTransform()})),d}}var io=$r;function ro(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return oo(n,e,t),n.seriesInvolved&&ao(n,e),n}function oo(e,t,n){var i=t.getComponent("tooltip"),r=t.getComponent("axisPointer"),o=r.get("link",!0)||[],s=[];Object(y["each"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var a=go(n.model),l=e.coordSysAxesInfo[a]={};e.coordSysMap[a]=n;var c=n.model,u=c.getModel("tooltip",i);if(Object(y["each"])(n.getAxes(),Object(y["curry"])(p,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var h="axis"===u.get("trigger"),d="cross"===u.get(["axisPointer","type"]),f=n.getTooltipAxes(u.get(["axisPointer","axis"]));(h||d)&&Object(y["each"])(f.baseAxes,Object(y["curry"])(p,!d||"cross",h)),d&&Object(y["each"])(f.otherAxes,Object(y["curry"])(p,"cross",!1))}}function p(i,a,c){var h=c.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||i||po(h))){null==a&&(a=h.get("triggerTooltip")),h=i?so(c,u,r,t,i,a):h;var f=h.get("snap"),p=h.get("triggerEmphasis"),g=go(c.model),m=a||f||"category"===c.type,v=e.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:a,triggerEmphasis:p,involveSeries:m,snap:f,useHandle:po(h),seriesModels:[],linkGroup:null};l[g]=v,e.seriesInvolved=e.seriesInvolved||m;var b=lo(o,c);if(null!=b){var y=s[b]||(s[b]={axesInfo:{}});y.axesInfo[g]=v,y.mapper=o[b].mapper,v.linkGroup=y}}}}))}function so(e,t,n,i,r,o){var s=t.getModel("axisPointer"),a=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(y["each"])(a,(function(e){l[e]=Object(y["clone"])(s.get(e))})),l.snap="category"!==e.type&&!!o,"cross"===s.get("type")&&(l.type="line");var c=l.label||(l.label={});if(null==c.show&&(c.show=!1),"cross"===r){var u=s.get(["label","show"]);if(c.show=null==u||u,!o){var h=l.lineStyle=s.get("crossStyle");h&&Object(y["defaults"])(c,h.textStyle)}}return e.model.getModel("axisPointer",new Ur["a"](l,n,i))}function ao(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),r=t.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==t.get(["axisPointer","show"],!0)&&Object(y["each"])(e.coordSysAxesInfo[go(n.model)],(function(e){var i=e.axis;n.getAxis(i.dim)===i&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}function lo(e,t){for(var n=t.model,i=t.dim,r=0;r<e.length;r++){var o=e[r]||{};if(co(o[i+"AxisId"],n.id)||co(o[i+"AxisIndex"],n.componentIndex)||co(o[i+"AxisName"],n.name))return r}}function co(e,t){return"all"===e||Object(y["isArray"])(e)&&Object(y["indexOf"])(e,t)>=0||e===t}function uo(e){var t=ho(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,r=n.option,o=n.get("status"),s=n.get("value");null!=s&&(s=i.parse(s));var a=po(n);null==o&&(r.status=a?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==s||s>l[1])&&(s=l[1]),s<l[0]&&(s=l[0]),r.value=s,a&&(r.status=t.axis.scale.isBlank()?"hide":"show")}}function ho(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[go(e)]}function fo(e){var t=ho(e);return t&&t.axisPointerModel}function po(e){return!!e.get(["handle","show"])}function go(e){return e.type+"||"+e.id}var mo={},vo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(t,n,i,r){this.axisPointerClass&&uo(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},t.prototype.updateAxisPointer=function(e,t,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var r=t.getAxisPointerClass(this.axisPointerClass);if(r){var o=fo(e);o?(this._axisPointer||(this._axisPointer=new r)).render(e,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){mo[e]=t},t.getAxisPointerClass=function(e){return e&&mo[e]},t.type="axis",t}(nr["a"]),bo=vo,yo=Object(Pt["o"])();function _o(e,t,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),s=o.getModel("areaStyle"),a=s.get("color"),l=i.coordinateSystem.getRect(),c=r.getTicksCoords({tickModel:o,clamp:!0});if(c.length){var u=a.length,h=yo(e).splitAreaColors,d=y["createHashMap"](),f=0;if(h)for(var p=0;p<c.length;p++){var g=h.get(c[p].tickValue);if(null!=g){f=(g+(u-1)*p)%u;break}}var m=r.toGlobalCoord(c[0].coord),v=s.getAreaStyle();a=y["isArray"](a)?a:[a];for(p=1;p<c.length;p++){var b=r.toGlobalCoord(c[p].coord),_=void 0,w=void 0,C=void 0,S=void 0;r.isHorizontal()?(_=m,w=l.y,C=b-_,S=l.height,m=_+C):(_=l.x,w=m,C=l.width,S=b-w,m=w+S);var x=c[p-1].tickValue;null!=x&&d.set(x,f),t.add(new $t["a"]({anid:null!=x?"area_"+x:null,shape:{x:_,y:w,width:C,height:S},style:y["defaults"]({fill:a[f]},v),autoBatch:!0,silent:!0})),f=(f+1)%u}yo(e).splitAreaColors=d}}}function wo(e){yo(e).splitAreaColors=null}var Co=["axisLine","axisTickLabel","axisName"],So=["splitArea","splitLine","minorSplitLine"],xo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return Object(rt["a"])(t,e),t.prototype.render=function(t,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new lt["a"],this.group.add(this._axisGroup),t.get("show")){var s=t.getCoordSysModel(),a=Ir(s,t),l=new io(t,y["extend"]({handleAutoShown:function(e){for(var n=s.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if(Object(Ar["e"])(n[i].getOtherAxis(t.axis).scale))return!0;return!1}},a));y["each"](Co,l.add,l),this._axisGroup.add(l.getGroup()),y["each"](So,(function(e){t.get([e,"show"])&&Oo[e](this,this._axisGroup,t,s)}),this);var c=r&&"changeAxisOrder"===r.type&&r.isInitSort;c||dt["groupTransition"](o,this._axisGroup,t),e.prototype.render.call(this,t,n,i,r)}},t.prototype.remove=function(){wo(this)},t.type="cartesianAxis",t}(bo),Oo={splitLine:function(e,t,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),s=o.getModel("lineStyle"),a=s.get("color");a=y["isArray"](a)?a:[a];for(var l=i.coordinateSystem.getRect(),c=r.isHorizontal(),u=0,h=r.getTicksCoords({tickModel:o}),d=[],f=[],p=s.getLineStyle(),g=0;g<h.length;g++){var m=r.toGlobalCoord(h[g].coord);c?(d[0]=m,d[1]=l.y,f[0]=m,f[1]=l.y+l.height):(d[0]=l.x,d[1]=m,f[0]=l.x+l.width,f[1]=m);var v=u++%a.length,b=h[g].tickValue,_=new Hr["a"]({anid:null!=b?"line_"+h[g].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},style:y["defaults"]({stroke:a[v]},p),silent:!0});dt["subPixelOptimizeLine"](_.shape,p.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,n,i){var r=n.axis,o=n.getModel("minorSplitLine"),s=o.getModel("lineStyle"),a=i.coordinateSystem.getRect(),l=r.isHorizontal(),c=r.getMinorTicksCoords();if(c.length)for(var u=[],h=[],d=s.getLineStyle(),f=0;f<c.length;f++)for(var p=0;p<c[f].length;p++){var g=r.toGlobalCoord(c[f][p].coord);l?(u[0]=g,u[1]=a.y,h[0]=g,h[1]=a.y+a.height):(u[0]=a.x,u[1]=g,h[0]=a.x+a.width,h[1]=g);var m=new Hr["a"]({anid:"minor_line_"+c[f][p].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]},style:d,silent:!0});dt["subPixelOptimizeLine"](m.shape,d.lineWidth),t.add(m)}},splitArea:function(e,t,n,i){_o(e,t,n,i)}},ko=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="xAxis",t}(xo),Lo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=ko.type,t}return Object(rt["a"])(t,e),t.type="yAxis",t}(xo),Eo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return Object(rt["a"])(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new $t["a"]({shape:e.coordinateSystem.getRect(),style:Object(y["defaults"])({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(nr["a"]),Do={offset:0};function Io(e){e.registerComponentView(Eo),e.registerComponentModel(or),e.registerCoordinateSystem("cartesian2d",zr),mr(e,"x",ar,Do),mr(e,"y",ar,Do),e.registerComponentView(ko),e.registerComponentView(Lo),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}function Mo(e){Object(i["a"])(Io),e.registerSeriesModel(Ki),e.registerChartView(tr),e.registerLayout(wn("scatter"))}function To(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var r=i.getIndicatorAxes();y["each"](r,(function(e,o){t.each(t.mapDimension(r[o].dim),(function(e,t){n[t]=n[t]||[];var r=i.dataToPoint(e,o);n[t][o]=Ao(r)?r:No(i)}))})),t.each((function(e){var r=y["find"](n[e],(function(e){return Ao(e)}))||No(i);n[e].push(r.slice()),t.setItemLayout(e,n[e])}))}}))}function Ao(e){return!isNaN(e[0])&&!isNaN(e[1])}function No(e){return[e.cx,e.cy]}function Po(e){var t=e.polar;if(t){y["isArray"](t)||(t=[t]);var n=[];y["each"](t,(function(t,i){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],y["isArray"](e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}y["each"](e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var jo=n("87b1"),Ro=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.coordinateSystem,r=this.group,o=e.getData(),s=this._data;function a(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var i=at["c"](e.getItemVisual(t,"symbolSize")),r=at["a"](n,-1,-1,2,2),o=e.getItemVisual(t,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}function c(t,n,i,r,o,s){i.removeAll();for(var l=0;l<n.length-1;l++){var c=a(r,o);c&&(c.__dimIdx=l,t[l]?(c.setPosition(t[l]),dt[s?"initProps":"updateProps"](c,{x:n[l][0],y:n[l][1]},e,o)):c.setPosition(n[l]),i.add(c))}}function u(e){return y["map"](e,(function(e){return[i.cx,i.cy]}))}o.diff(s).add((function(t){var n=o.getItemLayout(t);if(n){var i=new jo["a"],r=new Ci["a"],s={shape:{points:n}};i.shape.points=u(n),r.shape.points=u(n),ht["c"](i,s,e,t),ht["c"](r,s,e,t);var a=new lt["a"],l=new lt["a"];a.add(r),a.add(i),a.add(l),c(r.shape.points,n,l,o,t,!0),o.setItemGraphicEl(t,a)}})).update((function(t,n){var i=s.getItemGraphicEl(n),r=i.childAt(0),a=i.childAt(1),l=i.childAt(2),u={shape:{points:o.getItemLayout(t)}};u.shape.points&&(c(r.shape.points,u.shape.points,l,o,t,!1),Object(ht["g"])(a),Object(ht["g"])(r),ht["h"](r,u,e),ht["h"](a,u,e),o.setItemGraphicEl(t,i))})).remove((function(e){r.remove(s.getItemGraphicEl(e))})).execute(),o.eachItemGraphicEl((function(e,t){var n=o.getItemModel(t),i=e.childAt(0),s=e.childAt(1),a=e.childAt(2),c=o.getItemVisual(t,"style"),u=c.fill;r.add(e),i.useStyle(y["defaults"](n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),Object(pt["I"])(i,n,"lineStyle"),Object(pt["I"])(s,n,"areaStyle");var h=n.getModel("areaStyle"),d=h.isEmpty()&&h.parentModel.isEmpty();s.ignore=d,y["each"](["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),i=t.isEmpty()&&t.parentModel.isEmpty();s.ensureState(e).ignore=i&&d})),s.useStyle(y["defaults"](h.getAreaStyle(),{fill:u,opacity:.7,decal:c.decal}));var f=n.getModel("emphasis"),p=f.getModel("itemStyle").getItemStyle();a.eachChild((function(e){if(e instanceof l["a"]){var i=e.style;e.useStyle(y["extend"]({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},c))}else e.useStyle(c),e.setColor(u),e.style.strokeNoScale=!0;var r=e.ensureState("emphasis");r.style=y["clone"](p);var s=o.getStore().get(o.getDimensionIndex(e.__dimIdx),t);(null==s||isNaN(s))&&(s=""),Object(bt["g"])(e,Object(bt["e"])(n),{labelFetcher:o.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:s,inheritColor:u,defaultOpacity:c.opacity})})),Object(pt["J"])(e,f.get("focus"),f.get("blurScope"),f.get("disabled"))})),this._data=o},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(qt["a"]),Fo=Ro,Bo=n("217c"),Wo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(rt["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wi(y["bind"](this.getData,this),y["bind"](this.getRawData,this))},t.prototype.getInitialData=function(e,t){return Ri(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.coordinateSystem,o=r.getIndicatorAxes(),s=this.getData().getName(e),a=""===s?this.name:s,l=Object(Bo["e"])(this,e);return Object(Bo["c"])("section",{header:a,sortBlocks:!0,blocks:y["map"](o,(function(t){var n=i.get(i.mapDimension(t.dim),e);return Object(Bo["c"])("nameValue",{markerType:"subItem",markerColor:l,name:t.name,value:n,sortParam:n})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,i=t.getValues(y["map"](n.dimensions,(function(e){return t.mapDimension(e)})),e),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var s=n.getIndicatorAxes();return n.coordToPoint(s[r].dataToCoord(i[r]),r)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(st["b"]),Vo=Wo,zo=fr.value;function Ho(e,t){return y["defaults"]({show:t},e)}var Uo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),s=this.get("axisName"),a=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),u=this.get("triggerEvent"),h=y["map"](this.get("indicator")||[],(function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=s;null!=h.color&&(d=y["defaults"]({color:h.color},s));var f=y["merge"](y["clone"](h),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:h.text,showName:a,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:u},!1);if(y["isString"](l)){var p=f.name;f.name=l.replace("{value}",null!=p?p:"")}else y["isFunction"](l)&&(f.name=l(f.name,f));var g=new Ur["a"](f,null,this.ecModel);return y["mixin"](g,sr["a"].prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:y["merge"]({lineStyle:{color:"#bbb"}},zo.axisLine),axisLabel:Ho(zo.axisLabel,!1),axisTick:Ho(zo.axisTick,!1),splitLine:Ho(zo.splitLine,!0),splitArea:Ho(zo.splitArea,!0),indicator:[]},t}(ir["a"]),qo=Uo,$o=n("d9fc"),Ko=n("4573"),Go=["axisLine","axisTickLabel","axisName"],Yo=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=y["map"](n,(function(e){var n=e.model.get("showName")?e.name:"",i=new io(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));y["each"](i,(function(e){y["each"](Go,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),r=e.getModel("splitLine"),o=e.getModel("splitArea"),s=r.getModel("lineStyle"),a=o.getModel("areaStyle"),l=r.get("show"),c=o.get("show"),u=s.get("color"),h=a.get("color"),d=y["isArray"](u)?u:[u],f=y["isArray"](h)?h:[h],p=[],g=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=t.cx,b=t.cy,_=0;_<m.length;_++){if(l){var w=D(p,d,_);p[w].push(new $o["a"]({shape:{cx:v,cy:b,r:m[_].coord}}))}if(c&&_<m.length-1){w=D(g,f,_);g[w].push(new Ko["a"]({shape:{cx:v,cy:b,r0:m[_].coord,r:m[_+1].coord}}))}}else{var C,S=y["map"](n,(function(e,n){var i=e.getTicksCoords();return C=null==C?i.length-1:Math.min(i.length-1,C),y["map"](i,(function(e){return t.coordToPoint(e.coord,n)}))})),x=[];for(_=0;_<=C;_++){for(var O=[],k=0;k<n.length;k++)O.push(S[k][_]);if(O[0]&&O.push(O[0].slice()),l){w=D(p,d,_);p[w].push(new Ci["a"]({shape:{points:O}}))}if(c&&x){w=D(g,f,_-1);g[w].push(new jo["a"]({shape:{points:O.concat(x)}}))}x=O.slice().reverse()}}var L=s.getLineStyle(),E=a.getAreaStyle();y["each"](g,(function(e,t){this.group.add(dt["mergePath"](e,{style:y["defaults"]({stroke:"none",fill:f[t%f.length]},E),silent:!0}))}),this),y["each"](p,(function(e,t){this.group.add(dt["mergePath"](e,{style:y["defaults"]({fill:"none",stroke:d[t%d.length]},L),silent:!0}))}),this)}function D(e,t,n){var i=n%t.length;return e[i]=e[i]||[],i}},t.type="radar",t}(nr["a"]),Zo=Yo,Xo=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return Object(rt["a"])(t,e),t}(Lr["a"]),Qo=Xo,Jo=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=Object(y["map"])(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,i=new Qo(n,new Nr["a"]);return i.name=e.get("name"),i.model=e,e.axis=i,this.dimensions.push(n),i}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],i=n.angle,r=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[r,o]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var r,o=Math.atan2(-n,t),s=1/0,a=-1,l=0;l<this._indicatorAxes.length;l++){var c=this._indicatorAxes[l],u=Math.abs(o-c.angle);u<s&&(r=c,a=l,s=u)}return[a,+(r&&r.coordToData(i))]},e.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r)/2;this.cx=Gt["q"](n[0],i),this.cy=Gt["q"](n[1],r),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(Object(y["isString"])(s)||Object(y["isNumber"])(s))&&(s=[0,s]),this.r0=Gt["q"](s[0],o),this.r=Gt["q"](s[1],o),Object(y["each"])(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,i=this._model;Object(y["each"])(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,r){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===i){var o=t.getData();Object(y["each"])(n,(function(e){e.scale.unionExtentFromData(o,o.mapDimension(e.dim))}))}}),this);var r=i.get("splitNumber"),o=new Nr["a"];o.setExtent(0,r),o.setInterval(1),Object(y["each"])(n,(function(e,t){jr(e.scale,e.model,o)}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var i=[];return t.eachComponent("radar",(function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])})),i},e.dimensions=[],e}(),es=Jo;function ts(e){e.registerCoordinateSystem("radar",es),e.registerComponentModel(qo),e.registerComponentView(Zo),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each((function(e){t.setItemVisual(e,"legendIcon","roundRect")})),t.setVisual("legendIcon","roundRect")}})}function ns(e){Object(i["a"])(ts),e.registerChartView(Fo),e.registerSeriesModel(Vo),e.registerLayout(To),e.registerProcessor(wi("radar")),e.registerPreprocessor(Po)}var is=n("6fd3"),rs=n("607d"),os=n("1be7"),ss="\0_ec_interaction_mutex";function as(e,t,n){var i=us(e);i[t]=n}function ls(e,t,n){var i=us(e),r=i[t];r===n&&(i[t]=null)}function cs(e,t){return!!us(e)[t]}function us(e){return e[ss]||(e[ss]={})}os["m"]({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},y["noop"]);var hs=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var i=Object(y["bind"])(n._mousedownHandler,n),r=Object(y["bind"])(n._mousemoveHandler,n),o=Object(y["bind"])(n._mouseupHandler,n),s=Object(y["bind"])(n._mousewheelHandler,n),a=Object(y["bind"])(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=Object(y["defaults"])(Object(y["clone"])(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",i),t.on("mousemove",r),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",s),t.on("pinch",a))},n.disable=function(){t.off("mousedown",i),t.off("mousemove",r),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",a)},n}return Object(rt["a"])(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!rs["d"](e)){var t=e.target;while(t){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&ps("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!cs(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,i=this._x,r=this._y,o=t-i,s=n-r;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&rs["g"](e.event),fs(this,"pan","moveOnMouseMove",e,{dx:o,dy:s,oldX:i,oldY:r,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){rs["d"](e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=ps("zoomOnMouseWheel",e,this._opt),n=ps("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,r=Math.abs(i),o=e.offsetX,s=e.offsetY;if(0!==i&&(t||n)){if(t){var a=r>3?1.4:r>1?1.2:1.1,l=i>0?a:1/a;ds(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:s,isAvailableBehavior:null})}if(n){var c=Math.abs(i),u=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);ds(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:u,originX:o,originY:s,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!cs(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;ds(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(is["a"]);function ds(e,t,n,i,r){e.pointerChecker&&e.pointerChecker(i,r.originX,r.originY)&&(rs["g"](i.event),fs(e,t,n,i,r))}function fs(e,t,n,i,r){r.isAvailableBehavior=Object(y["bind"])(ps,null,n,i),e.trigger(t,r)}function ps(e,t,n){var i=n[e];return!e||i&&(!Object(y["isString"])(i)||t.event[i+"Key"])}var gs=hs;function ms(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function vs(e,t,n,i){var r=e.target,o=e.zoomLimit,s=e.zoom=e.zoom||1;if(s*=t,o){var a=o.min||0,l=o.max||1/0;s=Math.max(Math.min(l,s),a)}var c=s/e.zoom;e.zoom=s,r.x-=(n-r.x)*(c-1),r.y-=(i-r.y)*(c-1),r.scaleX*=c,r.scaleY*=c,r.dirty()}var bs={axisPointer:1,tooltip:1,brush:1};function ys(e,t,n){var i=t.getComponentByElement(e.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!bs.hasOwnProperty(i.mainType)&&r&&r.model!==n}var _s,ws=n("ae69"),Cs=n("342d"),Ss=n("dded");function xs(e){if(Object(y["isString"])(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var Os={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},ks=Object(y["keys"])(Os),Ls={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Es=Object(y["keys"])(Ls),Ds=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=xs(e);this._defsUsePending=[];var i=new lt["a"];this._root=i;var r=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||t.width),a=parseFloat(n.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(a)&&(a=null),Ps(n,i,null,!0,!1);var l,c,u=n.firstChild;while(u)this._parseNode(u,i,r,null,!1,!1),u=u.nextSibling;if(Bs(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=Vs(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=s&&null!=a&&(c=Gs(l,{x:0,y:0,width:s,height:a}),!t.ignoreViewBox)){var d=i;i=new lt["a"],i.add(d),d.scaleX=d.scaleY=c.scale,d.x=c.x,d.y=c.y}return t.ignoreRootClip||null==s||null==a||i.setClipPath(new $t["a"]({shape:{x:0,y:0,width:s,height:a}})),{root:i,width:s,height:a,viewBoxRect:l,viewBoxTransform:c,named:r}},e.prototype._parseNode=function(e,t,n,i,r,o){var s,a=e.nodeName.toLowerCase(),l=i;if("defs"===a&&(r=!0),"text"===a&&(o=!0),"defs"===a||"switch"===a)s=t;else{if(!r){var c=_s[a];if(c&&Object(y["hasOwn"])(_s,a)){s=c.call(this,e,t);var u=e.getAttribute("name");if(u){var h={name:u,namedFrom:null,svgNodeTagLower:a,el:s};n.push(h),"g"===a&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:a,el:s});t.add(s)}}var d=Is[a];if(d&&Object(y["hasOwn"])(Is,a)){var f=d.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=f)}}if(s&&s.isGroup){var g=e.firstChild;while(g)1===g.nodeType?this._parseNode(g,s,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,s),g=g.nextSibling}},e.prototype._parseText=function(e,t){var n=new u["a"]({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});As(t,n),Ps(e,n,this._defsUsePending,!1,!1),js(n,t);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,t.add(n),n},e.internalField=function(){_s={g:function(e,t){var n=new lt["a"];return As(t,n),Ps(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new $t["a"];return As(t,n),Ps(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new $o["a"];return As(t,n),Ps(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new Hr["a"];return As(t,n),Ps(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new ws["a"];return As(t,n),Ps(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,i=e.getAttribute("points");i&&(n=Ns(i));var r=new jo["a"]({shape:{points:n||[]},silent:!0});return As(t,r),Ps(e,r,this._defsUsePending,!1,!1),r},polyline:function(e,t){var n,i=e.getAttribute("points");i&&(n=Ns(i));var r=new Ci["a"]({shape:{points:n||[]},silent:!0});return As(t,r),Ps(e,r,this._defsUsePending,!1,!1),r},image:function(e,t){var n=new l["a"];return As(t,n),Ps(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var s=new lt["a"];return As(t,s),Ps(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new lt["a"];return As(t,s),Ps(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),s},path:function(e,t){var n=e.getAttribute("d")||"",i=Object(Cs["b"])(n);return As(t,i),Ps(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),Is={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),i=parseInt(e.getAttribute("x2")||"10",10),r=parseInt(e.getAttribute("y2")||"0",10),o=new Nt["a"](t,n,i,r);return Ms(e,o),Ts(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),i=parseInt(e.getAttribute("r")||"0",10),r=new Ss["a"](t,n,i);return Ms(e,r),Ts(e,r),r}};function Ms(e,t){var n=e.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(t.global=!0)}function Ts(e,t){var n=e.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};$s(n,o,o);var s=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:r,color:s})}n=n.nextSibling}}function As(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(y["defaults"])(t.__inheritedStyle,e.__inheritedStyle))}function Ns(e){for(var t=Vs(e),n=[],i=0;i<t.length;i+=2){var r=parseFloat(t[i]),o=parseFloat(t[i+1]);n.push([r,o])}return n}function Ps(e,t,n,i,r){var o=t,s=o.__inheritedStyle=o.__inheritedStyle||{},a={};1===e.nodeType&&(Us(e,t),$s(e,s,a),i||Ks(e,s,a)),o.style=o.style||{},null!=s.fill&&(o.style.fill=Fs(o,"fill",s.fill,n)),null!=s.stroke&&(o.style.stroke=Fs(o,"stroke",s.stroke,n)),Object(y["each"])(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=s[e]&&(o.style[e]=parseFloat(s[e]))})),Object(y["each"])(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(e){null!=s[e]&&(o.style[e]=s[e])})),r&&(o.__selfStyle=a),s.lineDash&&(o.style.lineDash=Object(y["map"])(Vs(s.lineDash),(function(e){return parseFloat(e)}))),"hidden"!==s.visibility&&"collapse"!==s.visibility||(o.invisible=!0),"none"===s.display&&(o.ignore=!0)}function js(e,t){var n=t.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",e.style.textBaseline=r}var o=t.__inheritedStyle;if(o){var s=o.textAlign,a=s;s&&("middle"===s&&(a="center"),e.style.textAlign=a)}}var Rs=/^url\(\s*#(.*?)\)/;function Fs(e,t,n,i){var r=n&&n.match(Rs);if(!r)return"none"===n&&(n=null),n;var o=Object(y["trim"])(r[1]);i.push([e,t,o])}function Bs(e,t){for(var n=0;n<t.length;n++){var i=t[n];i[0].style[i[1]]=e[i[2]]}}var Ws=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Vs(e){return e.match(Ws)||[]}var zs=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Hs=Math.PI/180;function Us(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],r=null;n.replace(zs,(function(e,t,n){return i.push(t,n),""}));for(var o=i.length-1;o>0;o-=2){var s=i[o],a=i[o-1],l=Vs(s);switch(r=r||wr["create"](),a){case"translate":wr["translate"](r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":wr["scale"](r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":wr["rotate"](r,r,-parseFloat(l[0])*Hs,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var c=Math.tan(parseFloat(l[0])*Hs);wr["mul"](r,[1,0,c,1,0,0],r);break;case"skewY":var u=Math.tan(parseFloat(l[0])*Hs);wr["mul"](r,[1,u,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5]);break}}t.setLocalTransform(r)}}var qs=/([^\s:;]+)\s*:\s*([^:;]+)/g;function $s(e,t,n){var i=e.getAttribute("style");if(i){var r;qs.lastIndex=0;while(null!=(r=qs.exec(i))){var o=r[1],s=Object(y["hasOwn"])(Os,o)?Os[o]:null;s&&(t[s]=r[2]);var a=Object(y["hasOwn"])(Ls,o)?Ls[o]:null;a&&(n[a]=r[2])}}}function Ks(e,t,n){for(var i=0;i<ks.length;i++){var r=ks[i],o=e.getAttribute(r);null!=o&&(t[Os[r]]=o)}for(i=0;i<Es.length;i++){r=Es[i],o=e.getAttribute(r);null!=o&&(n[Ls[r]]=o)}}function Gs(e,t){var n=t.width/e.width,i=t.height/e.height,r=Math.min(n,i);return{scale:r,x:-(e.x+e.width/2)*r+(t.x+t.width/2),y:-(e.y+e.height/2)*r+(t.y+t.height/2)}}function Ys(e,t){var n=new Ds;return n.parse(e,t)}var Zs=n("f279"),Xs=Object(y["createHashMap"])(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Qs=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=Object(y["createHashMap"])(),this._freedGraphics=[],this._mapName=e,this._parsedXML=xs(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=ea(e.named),n=t.regions,i=t.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{t=e&&Ys(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,Object(y["assert"])(null!=n)}catch(g){throw new Error("Invalid svg format\n"+g.message)}var i=new lt["a"];i.add(n),i.isGeoSVGGraphicRoot=!0;var r=t.width,o=t.height,s=t.viewBoxRect,a=this._boundingRect;if(!a){var l=void 0,c=void 0,u=void 0,h=void 0;if(null!=r?(l=0,u=r):s&&(l=s.x,u=s.width),null!=o?(c=0,h=o):s&&(c=s.y,h=s.height),null==l||null==c){var d=n.getBoundingRect();null==l&&(l=d.x,u=d.width),null==c&&(c=d.y,h=d.height)}a=this._boundingRect=new Gi["a"](l,c,u,h)}if(s){var f=Gs(s,a);n.scaleX=n.scaleY=f.scale,n.x=f.x,n.y=f.y}i.setClipPath(new $t["a"]({shape:a.plain()}));var p=[];return Object(y["each"])(t.named,(function(e){null!=Xs.get(e.svgNodeTagLower)&&(p.push(e),Js(e.el))})),{root:i,boundingRect:a,named:p}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function Js(e){e.silent=!1,e.isGroup&&e.traverse((function(e){e.silent=!1}))}function ea(e){var t=[],n=Object(y["createHashMap"])();return Object(y["each"])(e,(function(e){if(null==e.namedFrom){var i=new Zs["d"](e.name,e.el);t.push(i),n.set(e.name,i)}})),{regions:t,regionsMap:n}}for(var ta=n("bda7"),na=[126,25],ia="南海诸岛",ra=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],oa=0;oa<ra.length;oa++)for(var sa=0;sa<ra[oa].length;sa++)ra[oa][sa][0]/=10.5,ra[oa][sa][1]/=-14,ra[oa][sa][0]+=na[0],ra[oa][sa][1]+=na[1];function aa(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===ia)return;t.push(new Zs["c"](ia,y["map"](ra,(function(e){return{type:"polygon",exterior:e}})),na))}}var la={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function ca(e,t){if("china"===e){var n=la[t.name];if(n){var i=t.getCenter();i[0]+=n[0]/10.5,i[1]+=-n[1]/14,t.setCenter(i)}}}var ua=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function ha(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:ua[0]})}var da="name",fa=function(){function e(e,t,n){this.type="geoJSON",this._parsedMap=Object(y["createHashMap"])(),this._mapName=e,this._specialAreas=n,this._geoJSON=ga(t)}return e.prototype.load=function(e,t){t=t||da;var n=this._parsedMap.get(t);if(!n){var i=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:i,boundingRect:pa(i)})}var r=Object(y["createHashMap"])(),o=[];return Object(y["each"])(n.regions,(function(t){var n=t.name;e&&Object(y["hasOwn"])(e,n)&&(t=t.cloneShallow(n=e[n])),o.push(t),r.set(n,t)})),{regions:o,boundingRect:n.boundingRect||new Gi["a"](0,0,0,0),regionsMap:r}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,i=this._geoJSON;try{t=i?Object(ta["a"])(i,e):[]}catch(r){throw new Error("Invalid geoJson format\n"+r.message)}return aa(n,t),Object(y["each"])(t,(function(e){var t=e.name;ca(n,e),ha(n,e);var i=this._specialAreas&&this._specialAreas[t];i&&e.transformTo(i.left,i.top,i.width,i.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function pa(e){for(var t,n=0;n<e.length;n++){var i=e[n].getBoundingRect();t=t||i.clone(),t.union(i)}return t}function ga(e){return Object(y["isString"])(e)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var ma=Object(y["createHashMap"])(),va={registerMap:function(e,t,n){if(t.svg){var i=new Qs(e,t.svg);ma.set(e,i)}else{var r=t.geoJson||t.geoJSON;r&&!t.features?n=t.specialAreas:r=t;i=new fa(e,r,n);ma.set(e,i)}},getGeoResource:function(e){return ma.get(e)},getMapForUser:function(e){var t=ma.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(e,t,n){var i=ma.get(e);if(i)return i.load(t,n)}},ba=n("b3c1"),ya=n("19eb"),_a=["rect","circle","line","ellipse","polygon","polyline","path"],wa=y["createHashMap"](_a),Ca=y["createHashMap"](_a.concat(["g"])),Sa=y["createHashMap"](_a.concat(["g"])),xa=Object(Pt["o"])();function Oa(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function ka(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var La=function(){function e(e){var t=new lt["a"];this.uid=Object(Dn["c"])("ec_map_draw"),this._controller=new gs(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new lt["a"]),t.add(this._svgGroup=new lt["a"])}return e.prototype.draw=function(e,t,n,i,r){var o="geo"===e.mainType,s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},(function(t){s||t.getHostGeoModel()!==e||(s=t.getData())}));var a=e.coordinateSystem,l=this._regionsGroup,c=this.group,u=a.getTransformInfo(),h=u.raw,d=u.roam,f=!l.childAt(0)||r;f?(c.x=d.x,c.y=d.y,c.scaleX=d.scaleX,c.scaleY=d.scaleY,c.dirty()):ht["h"](c,d,e);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:n,geo:a,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:h};"geoJSON"===a.resourceType?this._buildGeoJSON(g):"geoSVG"===a.resourceType&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=y["createHashMap"](),n=y["createHashMap"](),i=this._regionsGroup,r=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,a=e.geo.projection,l=a&&a.stream;function c(e,t){return t&&(e=t(e)),e&&[e[0]*r.scaleX+r.x,e[1]*r.scaleY+r.y]}function u(e){for(var t=[],n=!l&&a&&a.project,i=0;i<e.length;++i){var r=c(e[i],n);r&&t.push(r)}return t}function h(e){return{shape:{points:u(e)}}}i.removeAll(),y["each"](e.geo.regions,(function(r){var u=r.name,d=t.get(u),f=n.get(u)||{},p=f.dataIdx,g=f.regionModel;d||(d=t.set(u,new lt["a"]),i.add(d),p=s?s.indexOfName(u):null,g=e.isGeo?o.getRegionModel(u):s?s.getItemModel(p):null,n.set(u,{dataIdx:p,regionModel:g}));var m=[],v=[];y["each"](r.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);l&&(t=Aa(t,l)),y["each"](t,(function(e){m.push(new jo["a"](h(e)))}))}else{var n=e.points;l&&(n=Aa(n,l,!0)),y["each"](n,(function(e){v.push(new Ci["a"](h(e)))}))}}));var b=c(r.getCenter(),a&&a.project);function _(t,n){if(t.length){var i=new U["a"]({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});d.add(i),Ea(e,i,p,g),Da(e,i,u,g,o,p,b),n&&(ka(i),y["each"](i.states,ka))}}_(m),_(v,!0)})),t.each((function(t,i){var r=n.get(i),s=r.dataIdx,a=r.regionModel;Ia(e,t,i,a,o,s),Ma(e,t,i,a,o),Ta(e,t,i,a,o)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=y["createHashMap"](),r=!1;y["each"](this._svgGraphicRecord.named,(function(t){var n=t.name,o=e.mapOrGeoModel,s=e.data,a=t.svgNodeTagLower,l=t.el,c=s?s.indexOfName(n):null,u=o.getRegionModel(n);if(null!=wa.get(a)&&l instanceof ya["c"]&&Ea(e,l,c,u),l instanceof ya["c"]&&(l.culling=!0),l.z2EmphasisLift=0,!t.namedFrom&&(null!=Sa.get(a)&&Da(e,l,n,u,o,c,null),Ia(e,l,n,u,o,c),Ma(e,l,n,u,o),null!=Ca.get(a))){var h=Ta(e,l,n,u,o);"self"===h&&(r=!0);var d=i.get(n)||i.set(n,[]);d.push(l)}}),this),this._enableBlurEntireSVG(r,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){Object(pt["G"])(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=i&&(t.opacity=i),e.ensureState("emphasis")}}))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(e);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=va.getGeoResource(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=va.getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var i=e.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(e.get("roam")||!1);var s=e.mainType;function a(){var t={type:"geoRoam",componentType:s};return t[s+"Id"]=e.id,t}r.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,ms(o,e.dx,e.dy),n.dispatchAction(y["extend"](a(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),r.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,vs(o,e.scale,e.originX,e.originY),n.dispatchAction(y["extend"](a(),{totalZoom:o.zoom,zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),r.setPointerChecker((function(t,r,o){return i.containPoint([r,o])&&!ys(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=xa(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,i){var r=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){r._mouseDownFlag=!0})),t.on("click",(function(e){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},e}();function Ea(e,t,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),s=i.getModel(["blur","itemStyle"]),a=i.getModel(["select","itemStyle"]),l=Oa(r),c=Oa(o),u=Oa(a),h=Oa(s),d=e.data;if(d){var f=d.getItemVisual(n,"style"),p=d.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),p&&(l.decal=Object(ba["a"])(p,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=c,t.ensureState("select").style=u,t.ensureState("blur").style=h,Object(pt["G"])(t)}function Da(e,t,n,i,r,o,s){var a=e.data,l=e.isGeo,c=a&&isNaN(a.get(a.mapDimension("value"),o)),u=a&&a.getItemLayout(o);if(l||c||u&&u.showLabel){var h=l?n:o,d=void 0;(!a||o>=0)&&(d=r);var f=s?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(bt["g"])(t,Object(bt["e"])(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},f);var p=t.getTextContent();if(p&&(xa(p).ignore=p.ignore,t.textConfig&&s)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(s[0]-g.x)/g.width*100+"%",(s[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Ia(e,t,n,i,r,o){e.data?e.data.setItemGraphicEl(o,t):Object(ft["a"])(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function Ma(e,t,n,i,r){e.data||dt["setTooltipConfig"]({el:t,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function Ta(e,t,n,i,r){t.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),s=o.get("focus");return Object(pt["J"])(t,s,o.get("blurScope"),o.get("disabled")),e.isGeo&&Object(pt["n"])(t,r,n),s}function Aa(e,t,n){var i,r=[];function o(){i=[]}function s(){i.length&&(r.push(i),i=[])}var a=t({polygonStart:o,polygonEnd:s,lineStart:o,lineEnd:s,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&a.polygonStart(),y["each"](e,(function(e){a.lineStart();for(var t=0;t<e.length;t++)a.point(e[t][0],e[t][1]);a.lineEnd()})),!n&&a.polygonEnd(),r}var Na=La,Pa=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id){o=this._mapDraw;o&&r.add(o.group)}else if(e.needsDrawMap){var o=this._mapDraw||new Na(n);r.add(o.group),o.draw(e,t,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var i=e.originalData,r=this.group;i.each(i.mapDimension("value"),(function(t,n){if(!isNaN(t)){var o=i.getItemLayout(n);if(o&&o.point){var s=o.point,a=o.offset,l=new $o["a"]({style:{fill:e.getData().getVisual("style").fill},shape:{cx:s[0]+9*a,cy:s[1],r:3},silent:!0,z2:8+(a?0:pt["j"]+1)});if(!a){var c=e.mainSeries.getData(),u=i.getName(n),h=c.indexOfName(u),d=i.getItemModel(n),f=d.getModel("label"),p=c.getItemGraphicEl(h);Object(bt["g"])(l,Object(bt["e"])(d),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(h,n)}},defaultText:u}),l.disableLabelAnimation=!0,f.get("position")||l.setTextConfig({position:"bottom"}),p.onHoverStateChange=function(e){Object(pt["H"])(l,e)}}r.add(l)}}}))},t.type="map",t}(qt["a"]),ja=Pa,Ra=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,i=n.getRegion(t);return i&&n.dataToPoint(i.getCenter())}},n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e){for(var t=Ri(this,{coordDimensions:["value"],encodeDefaulter:y["curry"](Fi["d"],this)}),n=y["createHashMap"](),i=[],r=0,o=t.count();r<o;r++){var s=t.getName(r);n.set(s,!0)}var a=va.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return y["each"](a.regions,(function(e){var t=e.name;n.get(t)||i.push(t)})),t.appendValues([],i),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var i=this.getData(),r=this.getRawValue(e),o=i.getName(e),s=this.seriesGroup,a=[],l=0;l<s.length;l++){var c=s[l].originalData.indexOfName(o),u=i.mapDimension("value");isNaN(s[l].originalData.get(u,c))||a.push(s[l].name)}return Object(Bo["c"])("section",{header:a.join(", "),noHeader:!a.length,blocks:[Object(Bo["c"])("nameValue",{name:o,value:r})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=Object(at["a"])(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(st["b"]),Fa=Ra;function Ba(e,t){var n={};return y["each"](e,(function(e){e.each(e.mapDimension("value"),(function(t,i){var r="ec-"+e.getName(i);n[r]=n[r]||[],isNaN(t)||n[r].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(i,r){for(var o,s="ec-"+e[0].getName(r),a=0,l=1/0,c=-1/0,u=n[s].length,h=0;h<u;h++)l=Math.min(l,n[s][h]),c=Math.max(c,n[s][h]),a+=n[s][h];return o="min"===t?l:"max"===t?c:"average"===t?a/u:a,0===u?NaN:o}))}function Wa(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),i=n?"o"+n.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)})),y["each"](t,(function(e,t){for(var n=Ba(y["map"](e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=0===i&&!e[i].getHostGeoModel(),e[i].setData(n.cloneShallow()),e[i].mainSeries=e[0]}))}function Va(e){var t={};e.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!t[i]){var r={};y["each"](n.seriesGroup,(function(t){var n=t.coordinateSystem,i=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&i.each(i.mapDimension("value"),(function(e,t){var o=i.getName(t),s=n.getRegion(o);if(s&&!isNaN(e)){var a=r[o]||0,l=n.dataToPoint(s.getCenter());r[o]=a+1,i.setItemLayout(t,{point:l,offset:a})}}))}));var o=n.getData();o.each((function(e){var t=o.getName(e),n=o.getItemLayout(e)||{};n.showLabel=!r[t],o.setItemLayout(e,n)})),t[i]=!0}}))}var za=Cr["applyTransform"],Ha=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new z["c"],n._rawTransformable=new z["c"],n.name=t,n}return Object(rt["a"])(t,e),t.prototype.setBoundingRect=function(e,t,n,i){return this._rect=new Gi["a"](e,t,n,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,i){this._transformTo(e,t,n,i),this._viewRect=new Gi["a"](e,t,n,i)},t.prototype._transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new Gi["a"](e,t,n,i));var s=o.parent;o.parent=null,o.decomposeTransform(),o.parent=s,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[Object(Gt["q"])(e[0],t.getWidth()),Object(Gt["q"])(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),t=e.x+e.width/2,n=e.y+e.height/2;return[t,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=Cr["applyTransform"]([],i,e),n=Cr["applyTransform"]([],n,e),t.originX=i[0],t.originY=i[1],t.x=n[0]-i[0],t.y=n[1]-i[1],t.scaleX=t.scaleY=r,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),wr["copy"](this.transform||(this.transform=[]),t.transform||wr["create"]()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],wr["invert"](this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new z["c"];return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var i=t?this._rawTransform:this.transform;return n=n||[],i?za(n,e,i):Cr["copy"](n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?za([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var i=Ua(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=Ua(t);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(z["c"]);function Ua(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var qa=Ha,$a={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Ka=["lng","lat"],Ga=function(e){function t(t,n,i){var r=e.call(this,t)||this;r.dimensions=Ka,r.type="geo",r._nameCoordMap=y["createHashMap"](),r.map=n;var o,s=i.projection,a=va.load(n,i.nameMap,i.nameProperty),l=va.getGeoResource(n),c=(r.resourceType=l?l.type:null,r.regions=a.regions),u=$a[l.type];if(r._regionsMap=a.regionsMap,r.regions=a.regions,r.projection=s,s)for(var h=0;h<c.length;h++){var d=c[h].getBoundingRect(s);o=o||d.clone(),o.union(d)}else o=a.boundingRect;return r.setBoundingRect(o.x,o.y,o.width,o.height),r.aspectScale=s?1:y["retrieve2"](i.aspectScale,u.aspectScale),r._invertLongitute=!s&&u.invertLongitute,r}return Object(rt["a"])(t,e),t.prototype._transformTo=function(e,t,n,i){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var s=this._rawTransformable;s.transform=r.calculateTransform(new Gi["a"](e,t,n,i));var a=s.parent;s.parent=null,s.decomposeTransform(),s.parent=a,o&&(s.scaleY=-s.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var i=t[n];if("geoJSON"===i.type&&i.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(y["isString"](e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,i){return e.prototype.dataToPoint.call(this,t,n,i)},t.prototype.convertToPixel=function(e,t,n){var i=Ya(t);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var i=Ya(t);return i===this?i.pointToData(n):null},t}(qa);function Ya(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Pt["b"]).models[0]||{}).coordinateSystem:null}y["mixin"](Ga,qa);var Za=Ga;function Xa(e,t){var n=e.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var o=this.projection;if(o){var s=i[0],a=i[1],l=r[0],c=r[1];i=[1/0,1/0],r=[-1/0,-1/0];var u=function(e,t,n,s){for(var a=n-e,l=s-t,c=0;c<=100;c++){var u=c/100,h=o.project([e+a*u,t+l*u]);Cr["min"](i,i,h),Cr["max"](r,r,h)}};u(s,a,l,a),u(l,a,l,c),u(l,c,s,c),u(s,c,l,a)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else 0}var h,d,f,p=this.getBoundingRect(),g=e.get("layoutCenter"),m=e.get("layoutSize"),v=t.getWidth(),b=t.getHeight(),y=p.width/p.height*this.aspectScale,_=!1;if(g&&m&&(h=[Gt["q"](g[0],v),Gt["q"](g[1],b)],d=Gt["q"](m,Math.min(v,b)),isNaN(h[0])||isNaN(h[1])||isNaN(d)||(_=!0)),_)f={},y>1?(f.width=d,f.height=d/y):(f.height=d,f.width=d*y),f.y=h[1]-f.height/2,f.x=h[0]-f.width/2;else{var w=e.getBoxLayoutParams();w.aspect=y,f=pi["g"](w,{width:v,height:b})}this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function Qa(e,t){y["each"](t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var Ja=function(){function e(){this.dimensions=Ka}return e.prototype.create=function(e,t){var n=[];function i(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,r){var o=e.get("map"),s=new Za(o+r,o,y["extend"]({nameMap:e.get("nameMap")},i(e)));s.zoomLimit=e.get("scaleLimit"),n.push(s),e.coordinateSystem=s,s.model=e,s.resize=Xa,s.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var i=e.get("geoIndex")||0;e.coordinateSystem=n[i]}}));var r={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}})),y["each"](r,(function(e,r){var o=y["map"](e,(function(e){return e.get("nameMap")})),s=new Za(r,r,y["extend"]({nameMap:y["mergeAll"](o)},i(e[0])));s.zoomLimit=y["retrieve"].apply(null,y["map"](e,(function(e){return e.get("scaleLimit")}))),n.push(s),s.resize=Xa,s.resize(e[0],t),y["each"](e,(function(e){e.coordinateSystem=s,Qa(s,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var r=(e||[]).slice(),o=y["createHashMap"](),s=0;s<r.length;s++)o.set(r[s].name,r[s]);var a=va.load(t,n,i);return y["each"](a.regions,(function(e){var t=e.name;!o.get(t)&&r.push({name:t})})),r},e}(),el=new Ja,tl=el,nl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(e,t,n){var i=va.getGeoResource(e.map);if(i&&"geoJSON"===i.type){var r=e.itemStyle=e.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(e,n),Pt["f"](e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=tl.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=y["reduce"](t.regions||[],(function(t,i){var r=i.name;return r&&(t.set(r,new Ur["a"](i,e,e.ecModel)),i.selected&&(n[r]=!0)),t}),y["createHashMap"]()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Ur["a"](null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),i="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:e};return y["isFunction"](i)?(r.status=t,i(r)):y["isString"](i)?i.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;if(n){"multiple"!==n&&(t.selectedMap=null);var i=t.selectedMap||(t.selectedMap={});i[e]=!0}},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(ir["a"]),il=nl;function rl(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function ol(e,t,n,i){var r=e.getZoom(),o=e.getCenter(),s=t.zoom,a=e.projectedToPoint?e.projectedToPoint(o):e.dataToPoint(o);if(null!=t.dx&&null!=t.dy&&(a[0]-=t.dx,a[1]-=t.dy,e.setCenter(rl(e,a),i)),null!=s){if(n){var l=n.min||0,c=n.max||1/0;s=Math.max(Math.min(r*s,c),l)/r}e.scaleX*=s,e.scaleY*=s;var u=(t.originX-e.x)*(s-1),h=(t.originY-e.y)*(s-1);e.x-=u,e.y-=h,e.updateTransform(),e.setCenter(rl(e,a),i),e.setZoom(s*r)}return{center:e.getCenter(),zoom:e.getZoom()}}var sl=n("fadd"),al=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return Object(rt["a"])(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,i){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new Na(n));var r=this._mapDraw;r.draw(e,t,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=e.get("silent"),this.group.add(r.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;Object(sl["a"])(e.target,(function(e){return null!=(t=Object(ft["a"])(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var i=this;this._mapDraw.group.traverse((function(e){var t=Object(ft["a"])(e).eventData;if(t)return i._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(nr["a"]),ll=al;function cl(e,t,n){va.registerMap(e,t,n)}function ul(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var o=n.coordinateSystem;Object(y["each"])(o.regions,(function(e){i[e.name]=n.isSelected(e.name)||!1}));var s=[];Object(y["each"])(i,(function(e,t){i[t]&&s.push(t)})),r.push({geoIndex:n.componentIndex,name:s})})),{selected:i,allSelected:r,name:e.name}}))}e.registerCoordinateSystem("geo",tl),e.registerComponentModel(il),e.registerComponentView(ll),e.registerImpl("registerMap",cl),e.registerImpl("getMap",(function(e){return va.getMapForUser(e)})),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t,n){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},(function(t){var r=t.coordinateSystem;if("geo"===r.type){var o=ol(r,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(o.center),t.setZoom&&t.setZoom(o.zoom),"series"===i&&Object(y["each"])(t.seriesGroup,(function(e){e.setCenter(o.center),e.setZoom(o.zoom)}))}}))}))}function hl(e){Object(i["a"])(ul),e.registerChartView(ja),e.registerSeriesModel(Fa),e.registerLayout(Va),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Wa),Object(fi["a"])("map",e.registerAction)}var dl=n("ac0f");function fl(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,i,r=[t];while(n=r.pop())if(i=n.children,n.isExpand&&i.length)for(var o=i.length,s=o-1;s>=0;s--){var a=i[s];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:s,thread:null},r.push(a)}}function pl(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,r=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){yl(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(e.hierNode.prelim=r.hierNode.prelim+t(e,r),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else r&&(e.hierNode.prelim=r.hierNode.prelim+t(e,r));e.parentNode.hierNode.defaultAncestor=_l(e,r,e.parentNode.hierNode.defaultAncestor||i[0],t)}function gl(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function ml(e){return arguments.length?e:Ol}function vl(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function bl(e,t){return pi["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function yl(e){var t=e.children,n=t.length,i=0,r=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function _l(e,t,n,i){if(t){var r=e,o=e,s=o.parentNode.children[0],a=t,l=r.hierNode.modifier,c=o.hierNode.modifier,u=s.hierNode.modifier,h=a.hierNode.modifier;while(a=wl(a),o=Cl(o),a&&o){r=wl(r),s=Cl(s),r.hierNode.ancestor=e;var d=a.hierNode.prelim+h-o.hierNode.prelim-c+i(a,o);d>0&&(xl(Sl(a,e,n),e,d),c+=d,l+=d),h+=a.hierNode.modifier,c+=o.hierNode.modifier,l+=r.hierNode.modifier,u+=s.hierNode.modifier}a&&!wl(r)&&(r.hierNode.thread=a,r.hierNode.modifier+=h-l),o&&!Cl(s)&&(s.hierNode.thread=o,s.hierNode.modifier+=c-u,n=e)}return n}function wl(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function Cl(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Sl(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function xl(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function Ol(e,t){return e.parentNode===t.parentNode?1:2}var kl=n("e263"),Ll=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),El=function(e){function t(t){return e.call(this,t)||this}return Object(rt["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ll},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,r=t.parentPoint,o=n[0],s=n[i-1];if(1===i)return e.moveTo(r[0],r[1]),void e.lineTo(o[0],o[1]);var a=t.orient,l="TB"===a||"BT"===a?0:1,c=1-l,u=Object(Gt["q"])(t.forkPosition,1),h=[];h[l]=r[l],h[c]=r[c]+(s[c]-r[c])*u,e.moveTo(r[0],r[1]),e.lineTo(h[0],h[1]),e.moveTo(o[0],o[1]),h[l]=o[l],e.lineTo(h[0],h[1]),h[l]=s[l],e.lineTo(h[0],h[1]),e.lineTo(s[0],s[1]);for(var d=1;d<i-1;d++){var f=n[d];e.moveTo(f[0],f[1]),h[l]=f[l],e.lineTo(h[0],h[1])}},t}(a["b"]),Dl=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new lt["a"],n}return Object(rt["a"])(t,e),t.prototype.init=function(e,t){this._controller=new gs(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var i=e.getData(),r=e.layoutInfo,o=this._mainGroup,s=e.get("layout");"radial"===s?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var a=this._data;i.diff(a).add((function(t){Il(i,t)&&Ml(i,t,null,o,e)})).update((function(t,n){var r=a.getItemGraphicEl(n);Il(i,t)?Ml(i,t,r,o,e):r&&Pl(a,n,r,o,e)})).remove((function(t){var n=a.getItemGraphicEl(t);n&&Pl(a,t,n,o,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&i.eachItemGraphicEl((function(t,i){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:i})}))})),this._data=i},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),i=[];n.each((function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||i.push([+t.x,+t.y])}));var r=[],o=[];kl["d"](i,r,o);var s=this._min,a=this._max;o[0]-r[0]===0&&(r[0]=s?s[0]:r[0]-1,o[0]=a?a[0]:o[0]+1),o[1]-r[1]===0&&(r[1]=s?s[1]:r[1]-1,o[1]=a?a[1]:o[1]+1);var l=e.coordinateSystem=new qa;l.zoomLimit=e.get("scaleLimit"),l.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),l.setCenter(e.get("center"),t),l.setZoom(e.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=o},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,s=this.group;r.setPointerChecker((function(t,i,r){var o=s.getBoundingRect();return o.applyTransform(s.transform),o.contain(i,r)&&!ys(t,n,e)})),r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){ms(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){vs(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(e),n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,i=t.scaleX||1,r=t.getZoom(),o=(r-1)*n+1;return o/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(qt["a"]);function Il(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function Ml(e,t,n,i,r){var o=!n,s=e.tree.getNodeByDataIndex(t),a=s.getModel(),l=s.getVisual("style").fill,c=!1===s.isExpand&&0!==s.children.length?l:"#fff",u=e.tree.root,h=s.parentNode===u?s:s.parentNode||s,d=e.getItemGraphicEl(h.dataIndex),f=h.getLayout(),p=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:f,g=s.getLayout();o?(n=new wt(e,t,null,{symbolInnerColor:c,useNameLabel:!0}),n.x=p.x,n.y=p.y):n.updateData(e,t,null,{symbolInnerColor:c,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,ht["h"](n,{x:g.x,y:g.y},r);var m=n.getSymbolPath();if("radial"===r.get("layout")){var v=u.children[0],b=v.getLayout(),_=v.children.length,w=void 0,C=void 0;if(g.x===b.x&&!0===s.isExpand&&v.children.length){var S={x:(v.children[0].getLayout().x+v.children[_-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[_-1].getLayout().y)/2};w=Math.atan2(S.y-b.y,S.x-b.x),w<0&&(w=2*Math.PI+w),C=S.x<b.x,C&&(w-=Math.PI)}else w=Math.atan2(g.y-b.y,g.x-b.x),w<0&&(w=2*Math.PI+w),0===s.children.length||0!==s.children.length&&!1===s.isExpand?(C=g.x<b.x,C&&(w-=Math.PI)):(C=g.x>b.x,C||(w-=Math.PI));var x=C?"left":"right",O=a.getModel("label"),k=O.get("rotate"),L=k*(Math.PI/180),E=m.getTextContent();E&&(m.setTextConfig({position:O.get("position")||x,rotation:null==k?-w:L,origin:"center"}),E.setStyle("verticalAlign","middle"))}var D=a.get(["emphasis","focus"]),I="relative"===D?y["concatArray"](s.getAncestorsIndices(),s.getDescendantIndices()):"ancestor"===D?s.getAncestorsIndices():"descendant"===D?s.getDescendantIndices():null;I&&(Object(ft["a"])(n).focus=I),Tl(r,s,u,n,p,f,g,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=s.parentNode&&e.getItemGraphicEl(s.parentNode.dataIndex);i&&i.hoverState===pt["d"]||Object(pt["H"])(n.__edge,t)}})}function Tl(e,t,n,i,r,o,s,a){var l=t.getModel(),c=e.get("edgeShape"),u=e.get("layout"),h=e.getOrient(),d=e.get(["lineStyle","curveness"]),f=e.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===c)t.parentNode&&t.parentNode!==n&&(g||(g=i.__edge=new dl["a"]({shape:jl(u,h,d,r,r)})),ht["h"](g,{shape:jl(u,h,d,o,s)},e));else if("polyline"===c)if("orthogonal"===u){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var m=t.children,v=[],b=0;b<m.length;b++){var _=m[b].getLayout();v.push([_.x,_.y])}g||(g=i.__edge=new El({shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]],orient:h,forkPosition:f}})),ht["h"](g,{shape:{parentPoint:[s.x,s.y],childPoints:v}},e)}}else 0;g&&("polyline"!==c||t.isExpand)&&(g.useStyle(y["defaults"]({strokeNoScale:!0,fill:null},p)),Object(pt["I"])(g,l,"lineStyle"),Object(pt["G"])(g),a.add(g))}function Al(e,t,n,i,r){var o=t.tree.root,s=Nl(o,e),a=s.source,l=s.sourceLayout,c=t.getItemGraphicEl(e.dataIndex);if(c){var u=t.getItemGraphicEl(a.dataIndex),h=u.__edge,d=c.__edge||(!1===a.isExpand||1===a.children.length?h:void 0),f=i.get("edgeShape"),p=i.get("layout"),g=i.get("orient"),m=i.get(["lineStyle","curveness"]);d&&("curve"===f?ht["e"](d,{shape:jl(p,g,m,l,l),style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:r}):"polyline"===f&&"orthogonal"===i.get("layout")&&ht["e"](d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){n.remove(d)},removeOpt:r}))}}function Nl(e,t){var n,i=t.parentNode===e?t:t.parentNode||t;while(n=i.getLayout(),null==n)i=i.parentNode===e?i:i.parentNode||i;return{source:i,sourceLayout:n}}function Pl(e,t,n,i,r){var o=e.tree.getNodeByDataIndex(t),s=e.tree.root,a=Nl(s,o).sourceLayout,l={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};ht["e"](n,{x:a.x+1,y:a.y+1},r,{cb:function(){i.remove(n),e.setItemGraphicEl(t,null)},removeOpt:l}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach((function(t){Al(t,e,i,r,l)})),Al(o,e,i,r,l)}function jl(e,t,n,i,r){var o,s,a,l,c,u,h,d;if("radial"===e){c=i.rawX,h=i.rawY,u=r.rawX,d=r.rawY;var f=vl(c,h),p=vl(c,h+(d-h)*n),g=vl(u,d+(h-d)*n),m=vl(u,d);return{x1:f.x||0,y1:f.y||0,x2:m.x||0,y2:m.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:g.x||0,cpy2:g.y||0}}return c=i.x,h=i.y,u=r.x,d=r.y,"LR"!==t&&"RL"!==t||(o=c+(u-c)*n,s=h,a=u+(c-u)*n,l=d),"TB"!==t&&"BT"!==t||(o=c,s=h+(d-h)*n,a=u,l=d+(h-d)*n),{x1:c,y1:h,x2:u,y2:d,cpx1:o,cpy1:s,cpx2:a,cpy2:l}}var Rl=Dl,Fl=Object(Pt["o"])();function Bl(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,$l(t,n,e),Object(y["each"])(n,(function(n){Object(y["each"])(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,Object(y["curry"])(Wl,e))}))})),t.wrapMethod("cloneShallow",Object(y["curry"])(zl,e)),Object(y["each"])(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,Object(y["curry"])(Vl,e))})),Object(y["assert"])(n[t.dataType]===t)}function Wl(e,t){if(ql(this)){var n=Object(y["extend"])({},Fl(this).datas);n[this.dataType]=t,$l(t,n,e)}else Kl(t,this.dataType,Fl(this).mainData,e);return t}function Vl(e,t){return e.struct&&e.struct.update(),t}function zl(e,t){return Object(y["each"])(Fl(t).datas,(function(n,i){n!==t&&Kl(n.cloneShallow(),i,t,e)})),t}function Hl(e){var t=Fl(this).mainData;return null==e||null==t?t:Fl(t).datas[e]}function Ul(){var e=Fl(this).mainData;return null==e?[{data:e}]:Object(y["map"])(Object(y["keys"])(Fl(e).datas),(function(t){return{type:t,data:Fl(e).datas[t]}}))}function ql(e){return Fl(e).mainData===e}function $l(e,t,n){Fl(e).datas={},Object(y["each"])(t,(function(t,i){Kl(t,i,e,n)}))}function Kl(e,t,n,i){Fl(n).datas[t]=e,Fl(e).mainData=n,e.dataType=t,i.struct&&(e[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=e),e.getLinkedData=Hl,e.getLinkedDataAll=Ul}var Gl=Bl,Yl=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){y["isFunction"](e)&&(n=t,t=e,e=null),e=e||{},y["isString"](e)&&(e={order:e});var i,r=e.order||"preorder",o=this[e.attr||"children"];"preorder"===r&&(i=t.call(n,this));for(var s=0;!i&&s<o.length;s++)o[s].eachNode(e,t,n);"postorder"===r&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(e+1),i.height>t&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].getNodeById(e);if(r)return r}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,i=n.length;t<i;t++){var r=n[t].contains(e);if(r)return r}},e.prototype.getAncestors=function(e){var t=[],n=e?this:this.parentNode;while(n)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){var e=[],t=this;while(t)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),Zl=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,i=t.length;n<i;n++)t[n].dataIndex=-1;for(n=0,i=e.count();n<i;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,i){var r=new e(n),o=[],s=1;function a(e,t){var n=e.value;s=Math.max(s,y["isArray"](n)?n.length:1),o.push(e);var i=new Yl(Object(Pt["e"])(e.name,""),r);t?Xl(i,t):r.root=i,r._nodes.push(i);var l=e.children;if(l)for(var c=0;c<l.length;c++)a(l[c],i)}a(t),r.root.updateDepthAndHeight(0);var l=Object(Pi["b"])(o,{coordDimensions:["value"],dimensionsCount:s}).dimensions,c=new ji["a"](l,n);return c.initData(o),i&&i(c),Gl({mainData:c,struct:r,structAttr:"tree"}),r.update(),r},e}();function Xl(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}var Ql=Zl;function Jl(e,t,n){if(e&&y["indexOf"](t,e.type)>=0){var i=n.getData().tree.root,r=e.targetNode;if(y["isString"](r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=e.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function ec(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function tc(e,t){var n=ec(e);return y["indexOf"](n,t)>=0}function nc(e,t){var n=[];while(e){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var ic=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new Ur["a"](n,this,this.ecModel),r=Ql.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e}))}var s=0;r.eachNode("preorder",(function(e){e.depth>s&&(s=e.depth)}));var a=e.expandAndCollapse,l=a&&e.initialTreeDepth>=0?e.initialTreeDepth:s;return r.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),r.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(e),s=o.getValue(),a=o.name;while(o&&o!==r)a=o.parentNode.name+"."+a,o=o.parentNode;return Object(Bo["c"])("nameValue",{name:a,value:s,noValue:isNaN(s)||null==s})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=nc(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(st["b"]),rc=ic;function oc(e,t,n){var i,r=[e],o=[];while(i=r.pop())if(o.push(i),i.isExpand){var s=i.children;if(s.length)for(var a=0;a<s.length;a++)r.push(s[a])}while(i=o.pop())t(i,n)}function sc(e,t){var n,i=[e];while(n=i.pop())if(t(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function ac(e,t){e.eachSeriesByType("tree",(function(e){lc(e,t)}))}function lc(e,t){var n=bl(e,t);e.layoutInfo=n;var i=e.get("layout"),r=0,o=0,s=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,s=ml((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(r=n.width,o=n.height,s=ml());var a=e.getData().tree.root,l=a.children[0];if(l){fl(a),oc(l,pl,s),a.hierNode.modifier=-l.hierNode.prelim,sc(l,gl);var c=l,u=l,h=l;sc(l,(function(e){var t=e.getLayout().x;t<c.getLayout().x&&(c=e),t>u.getLayout().x&&(u=e),e.depth>h.depth&&(h=e)}));var d=c===u?1:s(c,u)/2,f=d-c.getLayout().x,p=0,g=0,m=0,v=0;if("radial"===i)p=r/(u.getLayout().x+d+f),g=o/(h.depth-1||1),sc(l,(function(e){m=(e.getLayout().x+f)*p,v=(e.depth-1)*g;var t=vl(m,v);e.setLayout({x:t.x,y:t.y,rawX:m,rawY:v},!0)}));else{var b=e.getOrient();"RL"===b||"LR"===b?(g=o/(u.getLayout().x+d+f),p=r/(h.depth-1||1),sc(l,(function(e){v=(e.getLayout().x+f)*g,m="LR"===b?(e.depth-1)*p:r-(e.depth-1)*p,e.setLayout({x:m,y:v},!0)}))):"TB"!==b&&"BT"!==b||(p=r/(u.getLayout().x+d+f),g=o/(h.depth-1||1),sc(l,(function(e){m=(e.getLayout().x+f)*p,v="TB"===b?(e.depth-1)*g:o-(e.depth-1)*g,e.setLayout({x:m,y:v},!0)})))}}}function cc(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),i=n.getModel("itemStyle").getItemStyle(),r=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(y["extend"])(r,i)}))}))}function uc(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=t.coordinateSystem,r=ol(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}function hc(e){e.registerChartView(Rl),e.registerSeriesModel(rc),e.registerLayout(ac),e.registerVisual(cc),uc(e)}var dc=["treemapZoomToNode","treemapRender","treemapMove"];function fc(e){for(var t=0;t<dc.length;t++)e.registerAction({type:dc[t],update:"updateView"},y["noop"]);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function n(t,n){var i=["treemapZoomToNode","treemapRootToNode"],r=Jl(e,i,t);if(r){var o=t.getViewRoot();o&&(e.direction=tc(o,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},n)}))}var pc=n("4041");function gc(e){var t=e.getData(),n=t.tree,i={};n.eachNode((function(t){var n=t;while(n&&n.depth>1)n=n.parentNode;var r=Object(pc["b"])(e.ecModel,n.name||n.dataIndex+"",i);t.setVisual("decal",r)}))}var mc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};vc(n);var i=e.levels||[],r=this.designatedVisualItemStyle={},o=new Ur["a"]({itemStyle:r},this,t);i=e.levels=bc(i,t);var s=y["map"](i||[],(function(e){return new Ur["a"](e,o,t)}),this),a=Ql.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=a.getNodeByDataIndex(t),i=n?s[n.depth]:null;return e.parentModel=i||o,e}))}return a.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return Object(Bo["c"])("nameValue",{name:o,value:r})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=nc(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},y["extend"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=y["createHashMap"](),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){gc(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(st["b"]);function vc(e){var t=0;y["each"](e.children,(function(e){vc(e);var n=e.value;y["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;y["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),y["isArray"](e.value)?e.value[0]=n:e.value=n}function bc(e,t){var n=Object(Pt["r"])(t.get("color")),i=Object(Pt["r"])(t.get(["aria","decal","decals"]));if(n){var r,o;e=e||[],y["each"](e,(function(e){var t=new Ur["a"](e),n=t.get("color"),i=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(r=!0),(t.get(["itemStyle","decal"])||i&&"none"!==i)&&(o=!0)}));var s=e[0]||(e[0]={});return r||(s.color=n.slice()),!o&&i&&(s.decal=i.slice()),e}}var yc=mc,_c=n("80f0"),wc=8,Cc=8,Sc=5,xc=function(){function e(e){this.group=new lt["a"],e.add(this.group)}return e.prototype.render=function(e,t,n,i){var r=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var s=r.getModel("itemStyle"),a=r.getModel("emphasis"),l=s.getModel("textStyle"),c=a.getModel(["itemStyle","textStyle"]),u={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(e,u,s,a,l,c,i),pi["i"](o,u.pos,u.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var r=Object(Pt["e"])(i.getModel().get("name"),""),o=n.getTextRect(r),s=Math.max(o.width+2*wc,t.emptyItemWidth);t.totalWidth+=s+Cc,t.renderList.push({node:i,text:r,width:s})}},e.prototype._renderContent=function(e,t,n,i,r,o,s){for(var a=0,l=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),u=pi["e"](t.pos,t.box),h=t.totalWidth,d=t.renderList,f=i.getModel("itemStyle").getItemStyle(),p=d.length-1;p>=0;p--){var g=d[p],m=g.node,v=g.width,b=g.text;h>u.width&&(h-=v-l,v=l,b=null);var _=new jo["a"]({shape:{points:Oc(a,0,v,c,p===d.length-1,0===p)},style:Object(y["defaults"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new ie["a"]({style:Object(bt["c"])(r,{text:b})}),textConfig:{position:"inside"},z2:1e4*pt["j"],onclick:Object(y["curry"])(s,m)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Object(bt["c"])(o,{text:b}),_.ensureState("emphasis").style=f,Object(pt["J"])(_,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(_),kc(_,e,m),a+=v+Cc}},e.prototype.remove=function(){this.group.removeAll()},e}();function Oc(e,t,n,i,r,o){var s=[[r?e:e-Sc,t],[e+n,t],[e+n,t+i],[r?e:e-Sc,t+i]];return!o&&s.splice(2,0,[e+n+Sc,t+i/2]),!r&&s.push([e,t+i/2]),s}function kc(e,t,n){Object(ft["a"])(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&nc(n,t)}}var Lc=xc,Ec=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,r){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:r}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function Dc(){return new Ec}var Ic=n("282b"),Mc=lt["a"],Tc=$t["a"],Ac=3,Nc="label",Pc="upperLabel",jc=10*pt["j"],Rc=2*pt["j"],Fc=3*pt["j"],Bc=Object(Ic["a"])([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Wc=function(e){var t=Bc(e);return t.stroke=t.fill=t.lineWidth=null,t},Vc=Object(Pt["o"])(),zc=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=Hc(),n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n,i){var r=t.findComponents({mainType:"series",subType:"treemap",query:i});if(!(Object(y["indexOf"])(r,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var o=["treemapZoomToNode","treemapRootToNode"],s=Jl(i,o,e),a=i&&i.type,l=e.layoutInfo,c=!this._oldTree,u=this._storage,h="treemapRootToNode"===a&&s&&u?{rootNodeGroup:u.nodeGroup[s.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(l),f=e.get("animation"),p=this._doRender(d,e,h);!f||c||a&&"treemapZoomToNode"!==a&&"treemapRootToNode"!==a?p.renderFinally():this._doAnimation(d,p,e,h),this._resetController(n),this._renderBreadcrumb(e,n,s)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new Mc,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var i=t.getData().tree,r=this._oldTree,o=Hc(),s=Hc(),a=this._storage,l=[];function c(e,i,r,c){return Uc(t,s,a,n,o,l,e,i,r,c)}f(i.root?[i.root]:[],r&&r.root?[r.root]:[],e,i===r||!r,0);var u=p(a);if(this._oldTree=i,this._storage=s,this._controllerHost){var h=this.seriesModel.layoutInfo,d=i.root.getLayout();d.width===h.width&&d.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:o,willDeleteEls:u,renderFinally:g};function f(e,t,n,i,r){function o(e){return e.getId()}function s(o,s){var a=null!=o?e[o]:null,l=null!=s?t[s]:null,u=c(a,l,n,r);u&&f(a&&a.viewChildren||[],l&&l.viewChildren||[],u,i,r+1)}i?(t=e,Object(y["each"])(e,(function(e,t){!e.isRemoved()&&s(t,t)}))):new _c["a"](t,e,o,o).add(s).update(s).remove(Object(y["curry"])(s,null)).execute()}function p(e){var t=Hc();return e&&Object(y["each"])(e,(function(e,n){var i=t[n];Object(y["each"])(e,(function(e){e&&(i.push(e),Vc(e).willDelete=!0)}))})),t}function g(){Object(y["each"])(u,(function(e){Object(y["each"])(e,(function(e){e.parent&&e.parent.remove(e)}))})),Object(y["each"])(l,(function(e){e.invisible=!0,e.dirty()}))}},t.prototype._doAnimation=function(e,t,n,i){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),s=(Object(y["isFunction"])(r)?0:r)||0,a=(Object(y["isFunction"])(o)?null:o)||"cubicOut",l=Dc();Object(y["each"])(t.willDeleteEls,(function(e,t){Object(y["each"])(e,(function(e,n){if(!e.invisible){var r,o=e.parent,c=Vc(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:c.nodeWidth,height:c.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,h=0;c.willDelete||(u=c.nodeWidth/2,h=c.nodeHeight/2),r="nodeGroup"===t?{x:u,y:h,style:{opacity:0}}:{shape:{x:u,y:h,width:0,height:0},style:{opacity:0}}}r&&l.add(e,r,s,0,a)}}))})),Object(y["each"])(this._storage,(function(e,n){Object(y["each"])(e,(function(e,i){var r=t.lastsForAnimation[n][i],o={};r&&(e instanceof lt["a"]?null!=r.oldX&&(o.x=e.x,o.y=e.y,e.x=r.oldX,e.y=r.oldY):(r.oldShape&&(o.shape=Object(y["extend"])({},e.shape),e.setShape(r.oldShape)),r.fadein?(e.setStyle("opacity",0),o.style={opacity:1}):1!==e.style.opacity&&(o.style={opacity:1})),l.add(e,o,s,0,a))}))}),this),this._state="animating",l.finished(Object(y["bind"])((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),t||(t=this._controller=new gs(e.getZr()),t.enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),t.on("pan",Object(y["bind"])(this._onPan,this)),t.on("zoom",Object(y["bind"])(this._onZoom,this)));var i=new Gi["a"](0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,n){return i.contain(t,n)}))},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>Ac||Math.abs(e.dy)>Ac)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,i=e.scale;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var o=r.getLayout();if(!o)return;var s=new Gi["a"](o.x,o.y,o.width,o.height),a=null,l=this._controllerHost;a=l.zoomLimit;var c=l.zoom=l.zoom||1;if(c*=i,a){var u=a.min||0,h=a.max||1/0;c=Math.max(Math.min(h,c),u)}var d=c/l.zoom;l.zoom=c;var f=this.seriesModel.layoutInfo;t-=f.x,n-=f.y;var p=wr["create"]();wr["translate"](p,p,[-t,-n]),wr["scale"](p,p,[d,d]),wr["translate"](p,p,[t,n]),s.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),s=o.get("link",!0),a=o.get("target",!0)||"blank";s&&Object(Jt["k"])(s,a)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Lc(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(tc(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Hc(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(e,t),s=r.shape;if(!(s.x<=o[0]&&o[0]<=s.x+s.width&&s.y<=o[1]&&o[1]<=s.y+s.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(qt["a"]);function Hc(){return{nodeGroup:[],background:[],content:[]}}function Uc(e,t,n,i,r,o,s,a,l,c){if(s){var u=s.getLayout(),h=e.getData(),d=s.getModel();if(h.setItemGraphicEl(s.dataIndex,null),u&&u.isInView){var f=u.width,p=u.height,g=u.borderWidth,m=u.invisible,v=s.getRawIndex(),b=a&&a.getRawIndex(),_=s.viewChildren,w=u.upperHeight,C=_&&_.length,S=d.getModel("itemStyle"),x=d.getModel(["emphasis","itemStyle"]),O=d.getModel(["blur","itemStyle"]),k=d.getModel(["select","itemStyle"]),L=S.get("borderRadius")||0,E=V("nodeGroup",Mc);if(E){if(l.add(E),E.x=u.x||0,E.y=u.y||0,E.markRedraw(),Vc(E).nodeWidth=f,Vc(E).nodeHeight=p,u.isAboveViewRoot)return E;var D=V("background",Tc,c,Rc);D&&j(E,D,C&&u.upperLabelHeight);var I=d.getModel("emphasis"),M=I.get("focus"),T=I.get("blurScope"),A=I.get("disabled"),N="ancestor"===M?s.getAncestorsIndices():"descendant"===M?s.getDescendantIndices():M;if(C)Object(pt["y"])(E)&&Object(pt["F"])(E,!1),D&&(Object(pt["F"])(D,!A),h.setItemGraphicEl(s.dataIndex,D),Object(pt["p"])(D,N,T));else{var P=V("content",Tc,c,Fc);P&&R(E,P),D.disableMorphing=!0,D&&Object(pt["y"])(D)&&Object(pt["F"])(D,!1),Object(pt["F"])(E,!A),h.setItemGraphicEl(s.dataIndex,E),Object(pt["p"])(E,N,T)}return E}}}function j(t,n,i){var r=Object(ft["a"])(n);if(r.dataIndex=s.dataIndex,r.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:f,height:p,r:L}),m)F(n);else{n.invisible=!1;var o=s.getVisual("style"),a=o.stroke,l=Wc(S);l.fill=a;var c=Bc(x);c.fill=x.get("borderColor");var u=Bc(O);u.fill=O.get("borderColor");var h=Bc(k);if(h.fill=k.get("borderColor"),i){var d=f-2*g;B(n,a,o.opacity,{x:g,y:0,width:d,height:w})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=h,Object(pt["G"])(n)}t.add(n)}function R(t,n){var i=Object(ft["a"])(n);i.dataIndex=s.dataIndex,i.seriesIndex=e.seriesIndex;var r=Math.max(f-2*g,0),o=Math.max(p-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:r,height:o,r:L}),m)F(n);else{n.invisible=!1;var a=s.getVisual("style"),l=a.fill,c=Wc(S);c.fill=l,c.decal=a.decal;var u=Bc(x),h=Bc(O),d=Bc(k);B(n,l,a.opacity,null),n.setStyle(c),n.ensureState("emphasis").style=u,n.ensureState("blur").style=h,n.ensureState("select").style=d,Object(pt["G"])(n)}t.add(n)}function F(e){!e.invisible&&o.push(e)}function B(t,n,i,r){var o=d.getModel(r?Pc:Nc),a=Object(Pt["e"])(d.get("name"),null),l=o.getShallow("show");Object(bt["g"])(t,Object(bt["e"])(d,r?Pc:Nc),{defaultText:l?a:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:s.dataIndex});var c=t.getTextContent();if(c){var h=c.style,f=Object(y["normalizeCssArray"])(h.padding||0);r&&(t.setTextConfig({layoutRect:r}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var e=Math.max((r?r.width:t.shape.width)-f[1]-f[3],0),n=Math.max((r?r.height:t.shape.height)-f[0]-f[2],0);h.width===e&&h.height===n||c.setStyle({width:e,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",W(h,r,u);var p=c.getState("emphasis");W(p?p.style:null,r,u)}}function W(t,n,i){var r=t?t.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+r:r}}function V(e,i,o,s){var a=null!=b&&n[e][b],l=r[e];return a?(n[e][b]=null,z(l,a)):m||(a=new i,a instanceof ya["c"]&&(a.z2=qc(o,s)),H(l,a)),t[e][v]=a}function z(e,t){var n=e[v]={};t instanceof Mc?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Object(y["extend"])({},t.shape)}function H(e,t){var n=e[v]={},o=s.parentNode,a=t instanceof lt["a"];if(o&&(!i||"drillDown"===i.direction)){var l=0,c=0,u=r.background[o.getRawIndex()];!i&&u&&u.oldShape&&(l=u.oldShape.width,c=u.oldShape.height),a?(n.oldX=0,n.oldY=c):n.oldShape={x:l,y:c,width:0,height:0}}n.fadein=!a}}function qc(e,t){return e*jc+t}var $c=zc,Kc=n("edae"),Gc=y["each"],Yc=y["isObject"],Zc=-1,Xc=function(){function e(t){var n=t.mappingMethod,i=t.type,r=this.option=y["clone"](t);this.type=i,this.mappingMethod=n,this._normalizeData=cu[n];var o=e.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(eu(r),Qc(r)):"category"===n?r.categories?Jc(r):eu(r,!0):(y["assert"]("linear"!==n||r.dataExtent),eu(r))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return y["bind"](this._normalizeData,this)},e.listVisualTypes=function(){return y["keys"](e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){y["isObject"](e)?y["each"](e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var r,o=y["isArray"](t)?[]:y["isObject"](t)?{}:(r=!0,null);return e.eachVisual(t,(function(e,t){var s=n.call(i,e,t);r?o=s:o[t]=s})),o},e.retrieveVisuals=function(t){var n,i={};return t&&Gc(e.visualHandlers,(function(e,r){t.hasOwnProperty(r)&&(i[r]=t[r],n=!0)})),n?i:null},e.prepareVisualTypes=function(e){if(y["isArray"](e))e=e.slice();else{if(!Yc(e))return[];var t=[];Gc(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var i,r=1/0,o=0,s=t.length;o<s;o++){var a=t[o].value;if(null!=a){if(a===e||y["isString"](a)&&a===e+"")return o;n&&h(a,o)}}for(o=0,s=t.length;o<s;o++){var l=t[o],c=l.interval,u=l.close;if(c){if(c[0]===-1/0){if(uu(u[1],e,c[1]))return o}else if(c[1]===1/0){if(uu(u[0],c[0],e))return o}else if(uu(u[0],c[0],e)&&uu(u[1],e,c[1]))return o;n&&h(c[0],o),n&&h(c[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:i;function h(t,n){var o=Math.abs(t-e);o<r&&(r=o,i=n)}},e.visualHandlers={color:{applyVisual:iu("color"),getColorMapper:function(){var e=this.option;return y["bind"]("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),ru.call(this,e)}:function(t,n,i){var r=!!i;return!n&&(t=this._normalizeData(t)),i=oe["fastLerp"](t,e.parsedVisual,i),r?i:oe["stringify"](i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return oe["stringify"](oe["fastLerp"](e,this.option.parsedVisual),"rgba")},category:ru,piecewise:function(e,t){var n=au.call(this,t);return null==n&&(n=oe["stringify"](oe["fastLerp"](e,this.option.parsedVisual),"rgba")),n},fixed:ou}},colorHue:tu((function(e,t){return oe["modifyHSL"](e,t)})),colorSaturation:tu((function(e,t){return oe["modifyHSL"](e,null,t)})),colorLightness:tu((function(e,t){return oe["modifyHSL"](e,null,null,t)})),colorAlpha:tu((function(e,t){return oe["modifyAlpha"](e,t)})),decal:{applyVisual:iu("decal"),_normalizedToVisual:{linear:null,category:ru,piecewise:null,fixed:null}},opacity:{applyVisual:iu("opacity"),_normalizedToVisual:su([0,1])},liftZ:{applyVisual:iu("liftZ"),_normalizedToVisual:{linear:ou,category:ou,piecewise:ou,fixed:ou}},symbol:{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);n("symbol",i)},_normalizedToVisual:{linear:nu,category:ru,piecewise:function(e,t){var n=au.call(this,t);return null==n&&(n=nu.call(this,e)),n},fixed:ou}},symbolSize:{applyVisual:iu("symbolSize"),_normalizedToVisual:su([0,1])}},e}();function Qc(e){var t=e.pieceList;e.hasSpecialVisual=!1,y["each"](t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}function Jc(e){var t=e.categories,n=e.categoryMap={},i=e.visual;if(Gc(t,(function(e,t){n[e]=t})),!y["isArray"](i)){var r=[];y["isObject"](i)?Gc(i,(function(e,t){var i=n[t];r[null!=i?i:Zc]=e})):r[Zc]=i,i=lu(e,r)}for(var o=t.length-1;o>=0;o--)null==i[o]&&(delete n[t[o]],t.pop())}function eu(e,t){var n=e.visual,i=[];y["isObject"](n)?Gc(n,(function(e){i.push(e)})):null!=n&&i.push(n);var r={color:1,symbol:1};t||1!==i.length||r.hasOwnProperty(e.type)||(i[1]=i[0]),lu(e,i)}function tu(e){return{applyVisual:function(t,n,i){var r=this.mapValueToVisual(t);i("color",e(n("color"),r))},_normalizedToVisual:su([0,1])}}function nu(e){var t=this.option.visual;return t[Math.round(Object(Gt["m"])(e,[0,1],[0,t.length-1],!0))]||{}}function iu(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function ru(e){var t=this.option.visual;return t[this.option.loop&&e!==Zc?e%t.length:e]}function ou(){return this.option.visual[0]}function su(e){return{linear:function(t){return Object(Gt["m"])(t,e,this.option.visual,!0)},category:ru,piecewise:function(t,n){var i=au.call(this,n);return null==i&&(i=Object(Gt["m"])(t,e,this.option.visual,!0)),i},fixed:ou}}function au(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=Xc.findPieceIndex(e,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function lu(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=y["map"](t,(function(e){var t=oe["parse"](e);return t||[0,0,0,1]}))),t}var cu={linear:function(e){return Object(Gt["m"])(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=Xc.findPieceIndex(e,t,!0);if(null!=n)return Object(Gt["m"])(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?Zc:t},fixed:y["noop"]};function uu(e,t,n){return e?t<=n:t<n}var hu=Xc,du="itemStyle",fu=Object(Pt["o"])(),pu={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||gu(n,{},e.getViewRoot().getAncestors(),e)}};function gu(e,t,n,i){var r=e.getModel(),o=e.getLayout(),s=e.hostTree.data;if(o&&!o.invisible&&o.isInView){var a,l=r.getModel(du),c=mu(l,t,i),u=s.ensureUniqueItemVisual(e.dataIndex,"style"),h=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(a=vu(c),h=bu(d,a)),u.stroke=h;var f=e.viewChildren;if(f&&f.length){var p=_u(e,r,o,l,c,f);Object(y["each"])(f,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var o=Cu(r,c,e,t,p,i);gu(e,o,n,i)}}))}else a=vu(c),u.fill=a}}function mu(e,t,n){var i=Object(y["extend"])({},t),r=n.designatedVisualItemStyle;return Object(y["each"])(["color","colorAlpha","colorSaturation"],(function(n){r[n]=t[n];var o=e.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}function vu(e){var t=yu(e,"color");if(t){var n=yu(e,"colorAlpha"),i=yu(e,"colorSaturation");return i&&(t=Object(oe["modifyHSL"])(t,null,null,i)),n&&(t=Object(oe["modifyAlpha"])(t,n)),t}}function bu(e,t){return null!=t?Object(oe["modifyHSL"])(t,null,null,e):null}function yu(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function _u(e,t,n,i,r,o){if(o&&o.length){var s=wu(t,"color")||null!=r.color&&"none"!==r.color&&(wu(t,"colorAlpha")||wu(t,"colorSaturation"));if(s){var a=t.get("visualMin"),l=t.get("visualMax"),c=n.dataExtent.slice();null!=a&&a<c[0]&&(c[0]=a),null!=l&&l>c[1]&&(c[1]=l);var u=t.get("colorMappingBy"),h={type:s.name,dataExtent:c,visual:s.range};"color"!==h.type||"index"!==u&&"id"!==u?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new hu(h);return fu(d).drColorMappingBy=u,d}}}function wu(e,t){var n=e.get(t);return Object(y["isArray"])(n)&&n.length?{name:t,range:n}:null}function Cu(e,t,n,i,r,o){var s=Object(y["extend"])({},t);if(r){var a=r.type,l="color"===a&&fu(r).drColorMappingBy,c="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));s[a]=r.mapValueToVisual(c)}return s}var Su=Math.max,xu=Math.min,Ou=y["retrieve"],ku=y["each"],Lu=["itemStyle","borderWidth"],Eu=["itemStyle","gapWidth"],Du=["upperLabel","show"],Iu=["upperLabel","height"],Mu={seriesType:"treemap",reset:function(e,t,n,i){var r=n.getWidth(),o=n.getHeight(),s=e.option,a=pi["g"](e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=s.size||[],c=Object(Gt["q"])(Ou(a.width,l[0]),r),u=Object(Gt["q"])(Ou(a.height,l[1]),o),h=i&&i.type,d=["treemapZoomToNode","treemapRootToNode"],f=Jl(i,d,e),p="treemapRender"===h||"treemapMove"===h?i.rootRect:null,g=e.getViewRoot(),m=ec(g);if("treemapMove"!==h){var v="treemapZoomToNode"===h?Bu(e,f,g,c,u):p?[p.width,p.height]:[c,u],b=s.sort;b&&"asc"!==b&&"desc"!==b&&(b="desc");var _={squareRatio:s.squareRatio,sort:b,leafDepth:s.leafDepth};g.hostTree.clearLayouts();var w={x:0,y:0,width:v[0],height:v[1],area:v[0]*v[1]};g.setLayout(w),Tu(g,_,!1,0),w=g.getLayout(),ku(m,(function(e,t){var n=(m[t+1]||g).getValue();e.setLayout(y["extend"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},w))}))}var C=e.getData().tree.root;C.setLayout(Wu(a,p,f),!0),e.setLayoutInfo(a),Vu(C,new Gi["a"](-a.x,-a.y,r,o),m,g,0)}};function Tu(e,t,n,i){var r,o;if(!e.isRemoved()){var s=e.getLayout();r=s.width,o=s.height;var a=e.getModel(),l=a.get(Lu),c=a.get(Eu)/2,u=zu(a),h=Math.max(l,u),d=l-c,f=h-c;e.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:u},!0),r=Su(r-2*d,0),o=Su(o-d-f,0);var p=r*o,g=Au(e,a,p,t,n,i);if(g.length){var m={x:d,y:f,width:r,height:o},v=xu(r,o),b=1/0,y=[];y.area=0;for(var _=0,w=g.length;_<w;){var C=g[_];y.push(C),y.area+=C.getLayout().area;var S=Ru(y,v,t.squareRatio);S<=b?(_++,b=S):(y.area-=y.pop().getLayout().area,Fu(y,v,m,c,!1),v=xu(m.width,m.height),y.length=y.area=0,b=1/0)}if(y.length&&Fu(y,v,m,c,!0),!n){var x=a.get("childrenVisibleMin");null!=x&&p<x&&(n=!0)}for(_=0,w=g.length;_<w;_++)Tu(g[_],t,n,i+1)}}}function Au(e,t,n,i,r,o){var s=e.children||[],a=i.sort;"asc"!==a&&"desc"!==a&&(a=null);var l=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!l)return e.viewChildren=[];s=y["filter"](s,(function(e){return!e.isRemoved()})),Pu(s,a);var c=ju(t,s,a);if(0===c.sum)return e.viewChildren=[];if(c.sum=Nu(t,n,c.sum,a,s),0===c.sum)return e.viewChildren=[];for(var u=0,h=s.length;u<h;u++){var d=s[u].getValue()/c.sum*n;s[u].setLayout({area:d})}return l&&(s.length&&e.setLayout({isLeafRoot:!0},!0),s.length=0),e.viewChildren=s,e.setLayout({dataExtent:c.dataExtent},!0),s}function Nu(e,t,n,i,r){if(!i)return n;for(var o=e.get("visibleMin"),s=r.length,a=s,l=s-1;l>=0;l--){var c=r["asc"===i?s-l-1:l].getValue();c/n*t<o&&(a=l,n-=c)}return"asc"===i?r.splice(0,s-a):r.splice(a,s-a),n}function Pu(e,t){return t&&e.sort((function(e,n){var i="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===i?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:i})),e}function ju(e,t,n){for(var i=0,r=0,o=t.length;r<o;r++)i+=t[r].getValue();var s,a=e.get("visualDimension");return t&&t.length?"value"===a&&n?(s=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&s.reverse()):(s=[1/0,-1/0],ku(t,(function(e){var t=e.getValue(a);t<s[0]&&(s[0]=t),t>s[1]&&(s[1]=t)}))):s=[NaN,NaN],{sum:i,dataExtent:s}}function Ru(e,t,n){for(var i=0,r=1/0,o=0,s=void 0,a=e.length;o<a;o++)s=e[o].getLayout().area,s&&(s<r&&(r=s),s>i&&(i=s));var l=e.area*e.area,c=t*t*n;return l?Su(c*i/l,l/(c*r)):1/0}function Fu(e,t,n,i,r){var o=t===n.width?0:1,s=1-o,a=["x","y"],l=["width","height"],c=n[a[o]],u=t?e.area/t:0;(r||u>n[l[s]])&&(u=n[l[s]]);for(var h=0,d=e.length;h<d;h++){var f=e[h],p={},g=u?f.getLayout().area/u:0,m=p[l[s]]=Su(u-2*i,0),v=n[a[o]]+n[l[o]]-c,b=h===d-1||v<g?v:g,y=p[l[o]]=Su(b-2*i,0);p[a[s]]=n[a[s]]+xu(i,m/2),p[a[o]]=c+xu(i,y/2),c+=b,f.setLayout(p,!0)}n[a[s]]+=u,n[l[s]]-=u}function Bu(e,t,n,i,r){var o,s=(t||{}).node,a=[i,r];if(!s||s===n)return a;var l=i*r,c=l*e.option.zoomToNodeRatio;while(o=s.parentNode){for(var u=0,h=o.children,d=0,f=h.length;d<f;d++)u+=h[d].getValue();var p=s.getValue();if(0===p)return a;c*=u/p;var g=o.getModel(),m=g.get(Lu),v=Math.max(m,zu(g));c+=4*m*m+(3*m+v)*Math.pow(c,.5),c>Gt["a"]&&(c=Gt["a"]),s=o}c<l&&(c=l);var b=Math.pow(c/l,.5);return[i*b,r*b]}function Wu(e,t,n){if(t)return{x:t.x,y:t.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;var s=[o.width/2,o.height/2],a=r;while(a){var l=a.getLayout();s[0]+=l.x,s[1]+=l.y,a=a.parentNode}return{x:e.width/2-s[0],y:e.height/2-s[1]}}function Vu(e,t,n,i,r){var o=e.getLayout(),s=n[r],a=s&&s===e;if(!(s&&!a||r===n.length&&e!==i)){e.setLayout({isInView:!0,invisible:!a&&!t.intersect(o),isAboveViewRoot:a},!0);var l=new Gi["a"](t.x-o.x,t.y-o.y,t.width,t.height);ku(e.viewChildren||[],(function(e){Vu(e,l,n,i,r+1)}))}}function zu(e){return e.get(Du)?e.get(Iu):0}function Hu(e){e.registerSeriesModel(yc),e.registerChartView($c),e.registerVisual(pu),e.registerLayout(Mu),fc(e)}function Uu(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getGraph(),r=i.data,o=n.mapArray(n.getName);r.filterSelf((function(e){var n=r.getItemModel(e),i=n.getShallow("category");if(null!=i){Object(y["isNumber"])(i)&&(i=o[i]);for(var s=0;s<t.length;s++)if(!t[s].isSelected(i))return!1}return!0}))}))}function qu(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),i=e.getData(),r={};n.each((function(i){var o=n.getName(i);r["ec-"+o]=i;var s=n.getItemModel(i),a=s.getModel("itemStyle").getItemStyle();a.fill||(a.fill=e.getColorFromPalette(o,t)),n.setItemVisual(i,"style",a);for(var l=["symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++){var u=s.getShallow(l[c],!0);null!=u&&n.setItemVisual(i,l[c],u)}})),n.count()&&i.each((function(e){var t=i.getItemModel(e),o=t.getShallow("category");if(null!=o){Object(y["isString"])(o)&&(o=r["ec-"+o]);var s=n.getItemVisual(o,"style"),a=i.ensureUniqueItemVisual(e,"style");Object(y["extend"])(a,s);for(var l=["symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++)i.setItemVisual(e,l[c],n.getItemVisual(o,l[c]))}}))}))}function $u(e){return e instanceof Array||(e=[e,e]),e}function Ku(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),i=$u(e.get("edgeSymbol")),r=$u(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var i=n.getItemModel(e),r=t.getEdgeByIndex(e),o=$u(i.getShallow("symbol",!0)),s=$u(i.getShallow("symbolSize",!0)),a=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(e,"style");switch(Object(y["extend"])(l,a),l.stroke){case"source":var c=r.node1.getVisual("style");l.stroke=c&&c.fill;break;case"target":c=r.node2.getVisual("style");l.stroke=c&&c.fill;break}o[0]&&r.setVisual("fromSymbol",o[0]),o[1]&&r.setVisual("toSymbol",o[1]),s[0]&&r.setVisual("fromSymbolSize",s[0]),s[1]&&r.setVisual("toSymbolSize",s[1])}))}))}var Gu="--\x3e",Yu=function(e){return e.get("autoCurveness")||null},Zu=function(e,t){var n=Yu(e),i=20,r=[];if(y["isNumber"](n))i=n;else if(y["isArray"](n))return void(e.__curvenessList=n);t>i&&(i=t);var o=i%2?i+2:i+3;r=[];for(var s=0;s<o;s++)r.push((s%2?s+1:s)/10*(s%2?-1:1));e.__curvenessList=r},Xu=function(e,t,n){var i=[e.id,e.dataIndex].join("."),r=[t.id,t.dataIndex].join(".");return[n.uid,i,r].join(Gu)},Qu=function(e){var t=e.split(Gu);return[t[0],t[2],t[1]].join(Gu)},Ju=function(e,t){var n=Xu(e.node1,e.node2,t);return t.__edgeMap[n]},eh=function(e,t){var n=th(Xu(e.node1,e.node2,t),t),i=th(Xu(e.node2,e.node1,t),t);return n+i},th=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function nh(e){Yu(e)&&(e.__curvenessList=[],e.__edgeMap={},Zu(e))}function ih(e,t,n,i){if(Yu(n)){var r=Xu(e,t,n),o=n.__edgeMap,s=o[Qu(r)];o[r]&&!s?o[r].isForward=!0:s&&o[r]&&(s.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}function rh(e,t,n,i){var r=Yu(t),o=y["isArray"](r);if(!r)return null;var s=Ju(e,t);if(!s)return null;for(var a=-1,l=0;l<s.length;l++)if(s[l]===n){a=l;break}var c=eh(e,t);Zu(t,c),e.lineStyle=e.lineStyle||{};var u=Xu(e.node1,e.node2,t),h=t.__curvenessList,d=o||c%2?0:1;if(s.isForward)return h[d+a];var f=Qu(u),p=th(f,t),g=h[a+p+d];return i?o?r&&0===r[0]?(p+d)%2?g:-g:((p%2?0:1)+d)%2?g:-g:(p+d)%2?g:-g:h[a+p+d]}function oh(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),sh(n,e)}}function sh(e,t){e.eachEdge((function(e,n){var i=y["retrieve3"](e.getModel().get(["lineStyle","curveness"]),-rh(e,t,n,!0),0),r=Cr["clone"](e.node1.getLayout()),o=Cr["clone"](e.node2.getLayout()),s=[r,o];+i&&s.push([(r[0]+o[0])/2-(r[1]-o[1])*i,(r[1]+o[1])/2-(o[0]-r[0])*i]),e.setLayout(s)}))}function ah(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var i=e.getData(),r=[];Object(y["each"])(n.dimensions,(function(e){r=r.concat(i.mapDimensionsAll(e))}));for(var o=0;o<i.count();o++){for(var s=[],a=!1,l=0;l<r.length;l++){var c=i.get(r[l],o);isNaN(c)||(a=!0),s.push(c)}a?i.setItemLayout(o,n.dataToPoint(s)):i.setItemLayout(o,[NaN,NaN])}sh(i.graph,e)}else t&&"none"!==t||oh(e)}))}function lh(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,i=t.scaleX,r=t.getZoom(),o=(r-1)*n+1;return o/i}function ch(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var uh=Math.PI,hh=[];function dh(e,t,n,i){var r=e.coordinateSystem;if(!r||"view"===r.type){var o=r.getBoundingRect(),s=e.getData(),a=s.graph,l=o.width/2+o.x,c=o.height/2+o.y,u=Math.min(o.width,o.height)/2,h=s.count();if(s.setLayout({cx:l,cy:c}),h){if(n){var d=r.pointToData(i),f=d[0],p=d[1],g=[f-l,p-c];Cr["normalize"](g,g),Cr["scale"](g,g,u),n.setLayout([l+g[0],c+g[1]],!0);var m=e.get(["circular","rotateLabel"]);ph(n,m,l,c)}fh[t](e,a,s,u,l,c,h),a.eachEdge((function(t,n){var i,r=y["retrieve3"](t.getModel().get(["lineStyle","curveness"]),rh(t,e,n),0),o=Cr["clone"](t.node1.getLayout()),s=Cr["clone"](t.node2.getLayout()),a=(o[0]+s[0])/2,u=(o[1]+s[1])/2;+r&&(r*=3,i=[l*r+a*(1-r),c*r+u*(1-r)]),t.setLayout([o,s,i])}))}}}var fh={value:function(e,t,n,i,r,o,s){var a=0,l=n.getSum("value"),c=2*Math.PI/(l||s);t.eachNode((function(e){var t=e.getValue("value"),n=c*(l?t:1)/2;a+=n,e.setLayout([i*Math.cos(a)+r,i*Math.sin(a)+o]),a+=n}))},symbolSize:function(e,t,n,i,r,o,s){var a=0;hh.length=s;var l=lh(e);t.eachNode((function(e){var t=ch(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=l;var n=Math.asin(t/2/i);isNaN(n)&&(n=uh/2),hh[e.dataIndex]=n,a+=2*n}));var c=(2*uh-a)/s/2,u=0;t.eachNode((function(e){var t=c+hh[e.dataIndex];u+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([i*Math.cos(u)+r,i*Math.sin(u)+o]),u+=t}))}};function ph(e,t,n,i){var r=e.getGraphicEl();if(r){var o=e.getModel(),s=o.get(["label","rotate"])||0,a=r.getSymbolPath();if(t){var l=e.getLayout(),c=Math.atan2(l[1]-i,l[0]-n);c<0&&(c=2*Math.PI+c);var u=l[0]<n;u&&(c-=Math.PI);var h=u?"left":"right";a.setTextConfig({rotation:-c,position:h,origin:"center"});var d=a.ensureState("emphasis");y["extend"](d.textConfig||(d.textConfig={}),{position:h})}else a.setTextConfig({rotation:s*=Math.PI/180})}}function gh(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&dh(e,"symbolSize")}))}var mh=Cr["scaleAndAdd"];function vh(e,t,n){for(var i=e,r=t,o=n.rect,s=o.width,a=o.height,l=[o.x+s/2,o.y+a/2],c=null==n.gravity?.1:n.gravity,u=0;u<i.length;u++){var h=i[u];h.p||(h.p=Cr["create"](s*(Math.random()-.5)+l[0],a*(Math.random()-.5)+l[1])),h.pp=Cr["clone"](h.p),h.edges=null}var d,f,p=null==n.friction?.6:n.friction,g=p;return{warmUp:function(){g=.8*p},setFixed:function(e){i[e].fixed=!0},setUnfixed:function(e){i[e].fixed=!1},beforeStep:function(e){d=e},afterStep:function(e){f=e},step:function(e){d&&d(i,r);for(var t=[],n=i.length,o=0;o<r.length;o++){var s=r[o];if(!s.ignoreForceLayout){var a=s.n1,u=s.n2;Cr["sub"](t,u.p,a.p);var h=Cr["len"](t)-s.d,p=u.w/(a.w+u.w);isNaN(p)&&(p=0),Cr["normalize"](t,t),!a.fixed&&mh(a.p,a.p,t,p*h*g),!u.fixed&&mh(u.p,u.p,t,-(1-p)*h*g)}}for(o=0;o<n;o++){var m=i[o];m.fixed||(Cr["sub"](t,l,m.p),mh(m.p,m.p,t,c*g))}for(o=0;o<n;o++){a=i[o];for(var v=o+1;v<n;v++){u=i[v];Cr["sub"](t,u.p,a.p);h=Cr["len"](t);0===h&&(Cr["set"](t,Math.random()-.5,Math.random()-.5),h=1);var b=(a.rep+u.rep)/h/h;!a.fixed&&mh(a.pp,a.pp,t,b),!u.fixed&&mh(u.pp,u.pp,t,-b)}}var y=[];for(o=0;o<n;o++){m=i[o];m.fixed||(Cr["sub"](y,m.p,m.pp),mh(m.p,m.p,y,g),Cr["copy"](m.pp,m.p))}g*=.992;var _=g<.01;f&&f(i,r,_),e&&e(_)}}}function bh(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},i=e.getGraph(),r=i.data,o=i.edgeData,s=e.getModel("force"),a=s.get("initLayout");e.preservedPoints?r.each((function(e){var t=r.getId(e);r.setItemLayout(e,n[t]||[NaN,NaN])})):a&&"none"!==a?"circular"===a&&dh(e,"value"):oh(e);var l=r.getDataExtent("value"),c=o.getDataExtent("value"),u=s.get("repulsion"),h=s.get("edgeLength"),d=y["isArray"](u)?u:[u,u],f=y["isArray"](h)?h:[h,h];f=[f[1],f[0]];var p=r.mapArray("value",(function(e,t){var n=r.getItemLayout(t),i=Object(Gt["m"])(e,l,d);return isNaN(i)&&(i=(d[0]+d[1])/2),{w:i,rep:i,fixed:r.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=o.mapArray("value",(function(t,n){var r=i.getEdgeByIndex(n),o=Object(Gt["m"])(t,c,f);isNaN(o)&&(o=(f[0]+f[1])/2);var s=r.getModel(),a=y["retrieve3"](r.getModel().get(["lineStyle","curveness"]),-rh(r,e,n,!0),0);return{n1:p[r.node1.dataIndex],n2:p[r.node2.dataIndex],d:o,curveness:a,ignoreForceLayout:s.get("ignoreForceLayout")}})),m=t.getBoundingRect(),v=vh(p,g,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});v.beforeStep((function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].fixed&&Cr["copy"](e[n].p,i.getNodeByIndex(n).getLayout())})),v.afterStep((function(e,t,o){for(var s=0,a=e.length;s<a;s++)e[s].fixed||i.getNodeByIndex(s).setLayout(e[s].p),n[r.getId(s)]=e[s].p;for(s=0,a=t.length;s<a;s++){var l=t[s],c=i.getEdgeByIndex(s),u=l.n1.p,h=l.n2.p,d=c.getLayout();d=d?d.slice():[],d[0]=d[0]||[],d[1]=d[1]||[],Cr["copy"](d[0],u),Cr["copy"](d[1],h),+l.curveness&&(d[2]=[(u[0]+h[0])/2-(u[1]-h[1])*l.curveness,(u[1]+h[1])/2-(h[0]-u[0])*l.curveness]),c.setLayout(d)}})),e.forceLayout=v,e.preservedPoints=n,v.step()}else e.forceLayout=null}))}function yh(e,t,n){var i=Object(y["extend"])(e.getBoxLayoutParams(),{aspect:n});return Object(pi["g"])(i,{width:t.getWidth(),height:t.getHeight()})}function _h(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var i=e.get("coordinateSystem");if(!i||"view"===i){var r=e.getData(),o=r.mapArray((function(e){var t=r.getItemModel(e);return[+t.get("x"),+t.get("y")]})),s=[],a=[];kl["d"](o,s,a),a[0]-s[0]===0&&(a[0]+=1,s[0]-=1),a[1]-s[1]===0&&(a[1]+=1,s[1]-=1);var l=(a[0]-s[0])/(a[1]-s[1]),c=yh(e,t,l);isNaN(l)&&(s=[c.x,c.y],a=[c.x+c.width,c.y+c.height]);var u=a[0]-s[0],h=a[1]-s[1],d=c.width,f=c.height,p=e.coordinateSystem=new qa;p.zoomLimit=e.get("scaleLimit"),p.setBoundingRect(s[0],s[1],u,h),p.setViewRect(c.x,c.y,d,f),p.setCenter(e.get("center"),t),p.setZoom(e.get("zoom")),n.push(p)}})),n}var wh=Hr["a"].prototype,Ch=dl["a"].prototype,Sh=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Object(rt["a"])(t,e)})(Sh);function xh(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var Oh=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return Object(rt["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Sh},t.prototype.buildPath=function(e,t){xh(t)?wh.buildPath.call(this,e,t):Ch.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return xh(this.shape)?wh.pointAt.call(this,e):Ch.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=xh(t)?[t.x2-t.x1,t.y2-t.y1]:Ch.tangentAt.call(this,e);return Cr["normalize"](n,n)},t}(a["b"]),kh=Oh,Lh=["fromSymbol","toSymbol"];function Eh(e){return"_"+e+"Type"}function Dh(e,t,n){var i=t.getItemVisual(n,e);if(!i||"none"===i)return i;var r=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),s=t.getItemVisual(n,e+"Offset"),a=t.getItemVisual(n,e+"KeepAspect"),l=at["c"](r),c=at["b"](s||0,l);return i+l+c+(o||"")+(a||"")}function Ih(e,t,n){var i=t.getItemVisual(n,e);if(i&&"none"!==i){var r=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),s=t.getItemVisual(n,e+"Offset"),a=t.getItemVisual(n,e+"KeepAspect"),l=at["c"](r),c=at["b"](s||0,l),u=at["a"](i,-l[0]/2+c[0],-l[1]/2+c[1],l[0],l[1],null,a);return u.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,u.name=e,u}}function Mh(e){var t=new kh({name:"line",subPixelOptimize:!0});return Th(t.shape,e),t}function Th(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var Ah=function(e){function t(t,n,i){var r=e.call(this)||this;return r._createLine(t,n,i),r}return Object(rt["a"])(t,e),t.prototype._createLine=function(e,t,n){var i=e.hostModel,r=e.getItemLayout(t),o=Mh(r);o.shape.percent=0,ht["c"](o,{shape:{percent:1}},i,t),this.add(o),Object(y["each"])(Lh,(function(n){var i=Ih(n,e,t);this.add(i),this[Eh(n)]=Dh(n,e,t)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),o=e.getItemLayout(t),s={shape:{}};Th(s.shape,o),ht["h"](r,s,i,t),Object(y["each"])(Lh,(function(n){var i=Dh(n,e,t),r=Eh(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=Ih(n,e,t);this.add(o)}this[r]=i}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var i=e.hostModel,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,s=n&&n.blurLineStyle,a=n&&n.selectLineStyle,l=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,u=n&&n.focus,h=n&&n.blurScope;if(!n||e.hasItemOption){var d=e.getItemModel(t),f=d.getModel("emphasis");o=f.getModel("lineStyle").getLineStyle(),s=d.getModel(["blur","lineStyle"]).getLineStyle(),a=d.getModel(["select","lineStyle"]).getLineStyle(),c=f.get("disabled"),u=f.get("focus"),h=f.get("blurScope"),l=Object(bt["e"])(d)}var p=e.getItemVisual(t,"style"),g=p.stroke;r.useStyle(p),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=s,r.ensureState("select").style=a,Object(y["each"])(Lh,(function(e){var t=this.childOfName(e);if(t){t.setColor(g),t.style.opacity=p.opacity;for(var n=0;n<pt["g"].length;n++){var i=pt["g"][n],o=r.getState(i);if(o){var s=o.style||{},a=t.ensureState(i),l=a.style||(a.style={});null!=s.stroke&&(l[t.__isEmptyBrush?"stroke":"fill"]=s.stroke),null!=s.opacity&&(l.opacity=s.opacity)}}t.markRedraw()}}),this);var m=i.getRawValue(t);Object(bt["g"])(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return i.getFormattedLabel(t,n,e.dataType)}},inheritColor:g||"#000",defaultOpacity:p.opacity,defaultText:(null==m?e.getName(t):isFinite(m)?Object(Gt["w"])(m):m)+""});var v=this.getTextContent();if(v){var b=l.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=b.get("position")||"middle";var _=b.get("distance");Object(y["isArray"])(_)||(_=[_,_]),v.__labelDistance=_}this.setTextConfig({position:null,local:!0,inside:!1}),Object(pt["J"])(this,u,h,c)},t.prototype.highlight=function(){Object(pt["r"])(this)},t.prototype.downplay=function(){Object(pt["C"])(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");Th(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(t||n||i&&!i.ignore){var r=1,o=this.parent;while(o)o.scaleX&&(r/=o.scaleX),o=o.parent;var s=e.childOfName("line");if(this.__dirty||s.__dirty){var a=s.shape.percent,l=s.pointAt(0),c=s.pointAt(a),u=Cr["sub"]([],c,l);if(Cr["normalize"](u,u),t&&(t.setPosition(l),S(t,0),t.scaleX=t.scaleY=r*a,t.markRedraw()),n&&(n.setPosition(c),S(n,1),n.scaleX=n.scaleY=r*a,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var h=void 0,d=void 0,f=i.__labelDistance,p=f[0]*r,g=f[1]*r,m=a/2,v=s.tangentAt(m),b=[v[1],-v[0]],y=s.pointAt(m);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var _=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var w=-Math.atan2(v[1],v[0]);c[0]<l[0]&&(w=Math.PI+w),i.rotation=w}var C=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-g,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=g,d="top";break;default:C=0,d="middle"}switch(i.__position){case"end":i.x=u[0]*p+c[0],i.y=u[1]*g+c[1],h=u[0]>.8?"left":u[0]<-.8?"right":"center",d=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";break;case"start":i.x=-u[0]*p+l[0],i.y=-u[1]*g+l[1],h=u[0]>.8?"right":u[0]<-.8?"left":"center",d=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=p*_+l[0],i.y=l[1]+C,h=v[0]<0?"right":"left",i.originX=-p*_,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=y[0],i.y=y[1]+C,h="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-p*_+c[0],i.y=c[1]+C,h=v[0]>=0?"right":"left",i.originX=p*_,i.originY=-C;break}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function S(e,t){var n=e.__specifiedRotation;if(null==n){var i=s.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(lt["a"]),Nh=Ah,Ph=function(){function e(e){this.group=new lt["a"],this._LineCtor=e||Nh}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=e,r||i.removeAll();var o=Rh(e);e.diff(r).add((function(n){t._doAdd(e,n,o)})).update((function(n,i){t._doUpdate(r,e,i,n,o)})).remove((function(e){i.remove(r.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Rh(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||jh(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=e.start;i<e.end;i++){var r=t.getItemLayout(i);if(Bh(r)){var o=new this._LineCtor(t,i,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){dt["traverseElements"](this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){var i=e.getItemLayout(t);if(Bh(i)){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,i,r){var o=e.getItemGraphicEl(n);Bh(t.getItemLayout(i))?(o?o.updateData(t,i,r):o=new this._LineCtor(t,i,r),t.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},e}();function jh(e){return e.animators&&e.animators.length>0}function Rh(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Object(bt["e"])(t)}}function Fh(e){return isNaN(e[0])||isNaN(e[1])}function Bh(e){return e&&!Fh(e[0])&&!Fh(e[1])}var Wh=Ph,Vh=[],zh=[],Hh=[],Uh=jt["h"],qh=Cr["distSquare"],$h=Math.abs;function Kh(e,t,n){for(var i,r=e[0],o=e[1],s=e[2],a=1/0,l=n*n,c=.1,u=.1;u<=.9;u+=.1){Vh[0]=Uh(r[0],o[0],s[0],u),Vh[1]=Uh(r[1],o[1],s[1],u);var h=$h(qh(Vh,t)-l);h<a&&(a=h,i=u)}for(var d=0;d<32;d++){var f=i+c;zh[0]=Uh(r[0],o[0],s[0],i),zh[1]=Uh(r[1],o[1],s[1],i),Hh[0]=Uh(r[0],o[0],s[0],f),Hh[1]=Uh(r[1],o[1],s[1],f);h=qh(zh,t)-l;if($h(h)<.01)break;var p=qh(Hh,t)-l;c/=2,h<0?p>=0?i+=c:i-=c:p>=0?i-=c:i+=c}return i}function Gh(e,t){var n=[],i=jt["n"],r=[[],[],[]],o=[[],[]],s=[];t/=2,e.eachEdge((function(e,a){var l=e.getLayout(),c=e.getVisual("fromSymbol"),u=e.getVisual("toSymbol");l.__original||(l.__original=[Cr["clone"](l[0]),Cr["clone"](l[1])],l[2]&&l.__original.push(Cr["clone"](l[2])));var h=l.__original;if(null!=l[2]){if(Cr["copy"](r[0],h[0]),Cr["copy"](r[1],h[2]),Cr["copy"](r[2],h[1]),c&&"none"!==c){var d=ch(e.node1),f=Kh(r,h[0],d*t);i(r[0][0],r[1][0],r[2][0],f,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],f,n),r[0][1]=n[3],r[1][1]=n[4]}if(u&&"none"!==u){d=ch(e.node2),f=Kh(r,h[1],d*t);i(r[0][0],r[1][0],r[2][0],f,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],f,n),r[1][1]=n[1],r[2][1]=n[2]}Cr["copy"](l[0],r[0]),Cr["copy"](l[1],r[2]),Cr["copy"](l[2],r[1])}else{if(Cr["copy"](o[0],h[0]),Cr["copy"](o[1],h[1]),Cr["sub"](s,o[1],o[0]),Cr["normalize"](s,s),c&&"none"!==c){d=ch(e.node1);Cr["scaleAndAdd"](o[0],o[0],s,d*t)}if(u&&"none"!==u){d=ch(e.node2);Cr["scaleAndAdd"](o[1],o[1],s,-d*t)}Cr["copy"](l[0],o[0]),Cr["copy"](l[1],o[1])}}))}function Yh(e){return"view"===e.type}var Zh=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(e,t){var n=new kt,i=new Wh,r=this.group;this._controller=new gs(t.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem;this._model=e;var o=this._symbolDraw,s=this._lineDraw,a=this.group;if(Yh(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?a.attr(l):ht["h"](a,l,e)}Gh(e.getGraph(),lh(e));var c=e.getData();o.updateData(c);var u=e.getEdgeData();s.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var h=e.forceLayout,d=e.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d);var f=e.get("layout");c.graph.eachNode((function(t){var n=t.dataIndex,r=t.getGraphicEl(),o=t.getModel();if(r){r.off("drag").off("dragend");var s=o.get("draggable");s&&r.on("drag",(function(o){switch(f){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(n),c.setItemLayout(n,[r.x,r.y]);break;case"circular":c.setItemLayout(n,[r.x,r.y]),t.setLayout({fixed:!0},!0),dh(e,"symbolSize",t,[o.offsetX,o.offsetY]),i.updateLayout(e);break;case"none":default:c.setItemLayout(n,[r.x,r.y]),sh(e.getGraph(),e),i.updateLayout(e);break}})).on("dragend",(function(){h&&h.setUnfixed(n)})),r.setDraggable(s,!!o.get("cursor"));var a=o.get(["emphasis","focus"]);"adjacency"===a&&(Object(ft["a"])(r).focus=t.getAdjacentDataIndices())}})),c.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Object(ft["a"])(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var p="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),g=c.getLayout("cx"),m=c.getLayout("cy");c.graph.eachNode((function(e){ph(e,p,g,m)})),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function i(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())}))})()},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,s=this.group;r.setPointerChecker((function(t,i,r){var o=s.getBoundingRect();return o.applyTransform(s.transform),o.contain(i,r)&&!ys(t,n,e)})),Yh(e.coordinateSystem)?(r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){ms(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){vs(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(),Gh(e.getGraph(),lh(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=lh(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){Gh(e.getGraph(),lh(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(qt["a"]),Xh=Zh;function Qh(e){return"_EC_"+e}var Jh=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[Qh(e)]){var i=new ed(e,t);return i.hostGraph=this,this.nodes.push(i),n[Qh(e)]=i,i}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[Qh(e)]},e.prototype.addEdge=function(e,t,n){var i=this._nodesMap,r=this._edgesMap;if(y["isNumber"](e)&&(e=this.nodes[e]),y["isNumber"](t)&&(t=this.nodes[t]),e instanceof ed||(e=i[Qh(e)]),t instanceof ed||(t=i[Qh(t)]),e&&t){var o=e.id+"-"+t.id,s=new td(e,t,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),r[o]=s,s}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof ed&&(e=e.id),t instanceof ed&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&e.call(t,n[r],r)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&e.call(t,n[r],r)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof ed||(t=this._nodesMap[Qh(t)]),t){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,t,null)){var s=[t];while(s.length){var a=s.shift(),l=a[r];for(o=0;o<l.length;o++){var c=l[o],u=c.node1===a?c.node2:c.node1;if(!u.__visited){if(e.call(i,u,a))return;s.push(u),u.__visited=!0}}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)n[e.getRawIndex(r)].dataIndex=r;t.filterSelf((function(e){var n=i[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)i[t.getRawIndex(r)].dataIndex=r},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)t.addNode(n[r].id,n[r].dataIndex);for(r=0;r<i.length;r++){var o=i[r];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},e}(),ed=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=y["createHashMap"](),t=y["createHashMap"](),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);var r=[i.node1],o=[i.node2],s=0;while(s<r.length){var a=r[s];s++,t.set(a.dataIndex,!0);for(var l=0;l<a.inEdges.length;l++)e.set(a.inEdges[l].dataIndex,!0),r.push(a.inEdges[l].node1)}s=0;while(s<o.length){var c=o[s];s++,t.set(c.dataIndex,!0);for(l=0;l<c.outEdges.length;l++)e.set(c.outEdges[l].dataIndex,!0),o.push(c.outEdges[l].node2)}}}return{edge:e.keys(),node:t.keys()}},e}(),td=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=y["createHashMap"](),t=y["createHashMap"]();e.set(this.dataIndex,!0);var n=[this.node1],i=[this.node2],r=0;while(r<n.length){var o=n[r];r++,t.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)e.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}r=0;while(r<i.length){var a=i[r];r++,t.set(a.dataIndex,!0);for(s=0;s<a.outEdges.length;s++)e.set(a.outEdges[s].dataIndex,!0),i.push(a.outEdges[s].node2)}return{edge:e.keys(),node:t.keys()}},e}();function nd(e,t){return{getValue:function(n){var i=this[e][t];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}y["mixin"](ed,nd("hostGraph","data")),y["mixin"](td,nd("hostGraph","edgeData"));var id=Jh,rd=n("1f39");function od(e,t,n,i,r){for(var o=new id(i),s=0;s<e.length;s++)o.addNode(y["retrieve"](e[s].id,e[s].name,s),s);var a=[],l=[],c=0;for(s=0;s<t.length;s++){var u=t[s],h=u.source,d=u.target;o.addEdge(h,d,c)&&(l.push(u),a.push(y["retrieve"](Object(Pt["e"])(u.id,null),h+" > "+d)),c++)}var f,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)f=Object(ot["a"])(e,n);else{var g=rd["a"].get(p),m=g&&g.dimensions||[];y["indexOf"](m,"value")<0&&m.concat(["value"]);var v=Object(Pi["b"])(e,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;f=new ji["a"](v,n),f.initData(e)}var b=new ji["a"](["value"],n);return b.initData(l,a),r&&r(f,b),Gl({mainData:f,struct:o,structAttr:"graph",datas:{node:f,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var sd=n("f6d8"),ad=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(rt["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Wi(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Object(Pt["f"])(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],r=this;if(i&&n){nh(this);var o=od(i,n,this,!0,s);return y["each"](o.edges,(function(e){ih(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function s(e,t){e.wrapMethod("getItemModel",(function(e){var t=r._categoriesModels,n=e.getShallow("category"),i=t[n];return i&&(i.parentModel=e.parentModel,e.parentModel=i),e}));var n=Ur["a"].prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=o,i}function o(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=o,e.getModel=i,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(e,n),o=i.graph.getEdgeByIndex(e),s=i.getName(o.node1.dataIndex),a=i.getName(o.node2.dataIndex),l=[];return null!=s&&l.push(s),null!=a&&l.push(a),Object(Bo["c"])("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}var c=Object(sd["a"])({series:this,dataIndex:e,multipleSeries:t});return c},t.prototype._updateCategoriesData=function(){var e=y["map"](this.option.categories||[],(function(e){return null!=e.value?e:y["extend"]({value:0},e)})),t=new ji["a"](["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(st["b"]),ld=ad,cd={type:"graphRoam",event:"graphRoam",update:"none"};function ud(e){e.registerChartView(Xh),e.registerSeriesModel(ld),e.registerProcessor(Uu),e.registerVisual(qu),e.registerVisual(Ku),e.registerLayout(ah),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,gh),e.registerLayout(bh),e.registerCoordinateSystem("graphView",{dimensions:qa.dimensions,create:_h}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},y["noop"]),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},y["noop"]),e.registerAction(cd,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var i=t.coordinateSystem,r=ol(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}var hd=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),dd=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return Object(rt["a"])(t,e),t.prototype.getDefaultShape=function(){return new hd},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,r=t.r,o=t.width,s=t.angle,a=t.x-n(s)*o*(o>=r/3?1:2),l=t.y-i(s)*o*(o>=r/3?1:2);s=t.angle-Math.PI/2,e.moveTo(a,l),e.lineTo(t.x+n(s)*o,t.y+i(s)*o),e.lineTo(t.x+n(t.angle)*r,t.y+i(t.angle)*r),e.lineTo(t.x-n(s)*o,t.y-i(s)*o),e.lineTo(a,l)},t}(a["b"]),fd=dd;function pd(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r),s=Object(Gt["q"])(n[0],t.getWidth()),a=Object(Gt["q"])(n[1],t.getHeight()),l=Object(Gt["q"])(e.get("radius"),o/2);return{cx:s,cy:a,r:l}}function gd(e,t){var n=null==e?"":e+"";return t&&(Object(y["isString"])(t)?n=t.replace("{value}",n):Object(y["isFunction"])(t)&&(n=t(e))),n}var md=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),r=pd(e,n);this._renderMain(e,t,n,i,r),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,i,r){var o=this.group,s=e.get("clockwise"),a=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),u=c.get("roundCap"),h=u?Pn:Kt["a"],d=c.get("show"),f=c.getModel("lineStyle"),p=f.get("width"),g=[a,l];Object(H["b"])(g,!s),a=g[0],l=g[1];for(var m=l-a,v=a,b=[],_=0;d&&_<i.length;_++){var w=Math.min(Math.max(i[_][0],0),1);l=a+m*w;var C=new h({shape:{startAngle:v,endAngle:l,cx:r.cx,cy:r.cy,clockwise:s,r0:r.r-p,r:r.r},silent:!0});C.setStyle({fill:i[_][1]}),C.setStyle(f.getLineStyle(["color","width"])),b.push(C),v=l}b.reverse(),Object(y["each"])(b,(function(e){return o.add(e)}));var S=function(e){if(e<=0)return i[0][1];var t;for(t=0;t<i.length;t++)if(i[t][0]>=e&&(0===t?0:i[t-1][0])<e)return i[t][1];return i[t-1][1]};this._renderTicks(e,t,n,S,r,a,l,s,p),this._renderTitleAndDetail(e,t,n,S,r),this._renderAnchor(e,r),this._renderPointer(e,t,n,S,r,a,l,s,p)},t.prototype._renderTicks=function(e,t,n,i,r,o,s,a,l){for(var c,u,h=this.group,d=r.cx,f=r.cy,p=r.r,g=+e.get("min"),m=+e.get("max"),v=e.getModel("splitLine"),b=e.getModel("axisTick"),_=e.getModel("axisLabel"),w=e.get("splitNumber"),C=b.get("splitNumber"),S=Object(Gt["q"])(v.get("length"),p),x=Object(Gt["q"])(b.get("length"),p),O=o,k=(s-o)/w,L=k/C,E=v.getModel("lineStyle").getLineStyle(),D=b.getModel("lineStyle").getLineStyle(),I=v.get("distance"),M=0;M<=w;M++){if(c=Math.cos(O),u=Math.sin(O),v.get("show")){var T=I?I+l:l,A=new Hr["a"]({shape:{x1:c*(p-T)+d,y1:u*(p-T)+f,x2:c*(p-S-T)+d,y2:u*(p-S-T)+f},style:E,silent:!0});"auto"===E.stroke&&A.setStyle({stroke:i(M/w)}),h.add(A)}if(_.get("show")){T=_.get("distance")+I;var N=gd(Object(Gt["w"])(M/w*(m-g)+g),_.get("formatter")),P=i(M/w),j=c*(p-S-T)+d,R=u*(p-S-T)+f,F=_.get("rotate"),B=0;"radial"===F?(B=-O+2*Math.PI,B>Math.PI/2&&(B+=Math.PI)):"tangential"===F?B=-O-Math.PI/2:Object(y["isNumber"])(F)&&(B=F*Math.PI/180),0===B?h.add(new ie["a"]({style:Object(bt["c"])(_,{text:N,x:j,y:R,verticalAlign:u<-.8?"top":u>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:P}),silent:!0})):h.add(new ie["a"]({style:Object(bt["c"])(_,{text:N,x:j,y:R,verticalAlign:"middle",align:"center"},{inheritColor:P}),silent:!0,originX:j,originY:R,rotation:B}))}if(b.get("show")&&M!==w){T=b.get("distance");T=T?T+l:l;for(var W=0;W<=C;W++){c=Math.cos(O),u=Math.sin(O);var V=new Hr["a"]({shape:{x1:c*(p-T)+d,y1:u*(p-T)+f,x2:c*(p-x-T)+d,y2:u*(p-x-T)+f},silent:!0,style:D});"auto"===D.stroke&&V.setStyle({stroke:i((M+W/C)/w)}),h.add(V),O+=L}O-=L}else O+=k}},t.prototype._renderPointer=function(e,t,n,i,r,o,s,a,c){var u=this.group,h=this._data,d=this._progressEls,f=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),m=g.get("show"),v=e.getData(),b=v.mapDimension("value"),_=+e.get("min"),w=+e.get("max"),C=[_,w],S=[o,s];function x(t,n){var i,o=v.getItemModel(t),s=o.getModel("pointer"),a=Object(Gt["q"])(s.get("width"),r.r),l=Object(Gt["q"])(s.get("length"),r.r),c=e.get(["pointer","icon"]),u=s.get("offsetCenter"),h=Object(Gt["q"])(u[0],r.r),d=Object(Gt["q"])(u[1],r.r),f=s.get("keepAspect");return i=c?Object(at["a"])(c,h-a/2,d-l,a,l,null,f):new fd({shape:{angle:-Math.PI/2,width:a,r:l,x:h,y:d}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function O(e,t){var n=g.get("roundCap"),i=n?Pn:Kt["a"],s=g.get("overlap"),l=s?g.get("width"):c/v.count(),u=s?r.r-l:r.r-(e+1)*l,h=s?r.r:r.r-e*l,d=new i({shape:{startAngle:o,endAngle:t,cx:r.cx,cy:r.cy,clockwise:a,r0:u,r:h}});return s&&(d.z2=w-v.get(b,e)%w),d}(m||p)&&(v.diff(h).add((function(t){var n=v.get(b,t);if(p){var i=x(t,o);ht["c"](i,{rotation:-((isNaN(+n)?S[0]:Object(Gt["m"])(n,C,S,!0))+Math.PI/2)},e),u.add(i),v.setItemGraphicEl(t,i)}if(m){var r=O(t,o),s=g.get("clip");ht["c"](r,{shape:{endAngle:Object(Gt["m"])(n,C,S,s)}},e),u.add(r),Object(ft["b"])(e.seriesIndex,v.dataType,t,r),f[t]=r}})).update((function(t,n){var i=v.get(b,t);if(p){var r=h.getItemGraphicEl(n),s=r?r.rotation:o,a=x(t,s);a.rotation=s,ht["h"](a,{rotation:-((isNaN(+i)?S[0]:Object(Gt["m"])(i,C,S,!0))+Math.PI/2)},e),u.add(a),v.setItemGraphicEl(t,a)}if(m){var l=d[n],c=l?l.shape.endAngle:o,y=O(t,c),_=g.get("clip");ht["h"](y,{shape:{endAngle:Object(Gt["m"])(i,C,S,_)}},e),u.add(y),Object(ft["b"])(e.seriesIndex,v.dataType,t,y),f[t]=y}})).execute(),v.each((function(e){var t=v.getItemModel(e),n=t.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),s=n.get("disabled");if(p){var a=v.getItemGraphicEl(e),c=v.getItemVisual(e,"style"),u=c.fill;if(a instanceof l["a"]){var h=a.style;a.useStyle(Object(y["extend"])({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},c))}else a.useStyle(c),"pointer"!==a.type&&a.setColor(u);a.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===a.style.fill&&a.setStyle("fill",i(Object(Gt["m"])(v.get(b,e),C,[0,1],!0))),a.z2EmphasisLift=0,Object(pt["I"])(a,t),Object(pt["J"])(a,r,o,s)}if(m){var d=f[e];d.useStyle(v.getItemVisual(e,"style")),d.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,Object(pt["I"])(d,t),Object(pt["J"])(d,r,o,s)}})),this._progressEls=f)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),i=n.get("show");if(i){var r=n.get("size"),o=n.get("icon"),s=n.get("offsetCenter"),a=n.get("keepAspect"),l=Object(at["a"])(o,t.cx-r/2+Object(Gt["q"])(s[0],t.r),t.cy-r/2+Object(Gt["q"])(s[1],t.r),r,r,null,a);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,n,i,r){var o=this,s=e.getData(),a=s.mapDimension("value"),l=+e.get("min"),c=+e.get("max"),u=new lt["a"],h=[],d=[],f=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);s.diff(this._data).add((function(e){h[e]=new ie["a"]({silent:!0}),d[e]=new ie["a"]({silent:!0})})).update((function(e,t){h[e]=o._titleEls[t],d[e]=o._detailEls[t]})).execute(),s.each((function(t){var n=s.getItemModel(t),o=s.get(a,t),g=new lt["a"],m=i(Object(Gt["m"])(o,[l,c],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var b=v.get("offsetCenter"),y=r.cx+Object(Gt["q"])(b[0],r.r),_=r.cy+Object(Gt["q"])(b[1],r.r),w=h[t];w.attr({z2:p?0:2,style:Object(bt["c"])(v,{x:y,y:_,text:s.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(w)}var C=n.getModel("detail");if(C.get("show")){var S=C.get("offsetCenter"),x=r.cx+Object(Gt["q"])(S[0],r.r),O=r.cy+Object(Gt["q"])(S[1],r.r),k=Object(Gt["q"])(C.get("width"),r.r),L=Object(Gt["q"])(C.get("height"),r.r),E=e.get(["progress","show"])?s.getItemVisual(t,"style").fill:m,D=(w=d[t],C.get("formatter"));w.attr({z2:p?0:2,style:Object(bt["c"])(C,{x:x,y:O,text:gd(o,D),width:isNaN(k)?null:k,height:isNaN(L)?null:L,align:"center",verticalAlign:"middle"},{inheritColor:E})}),Object(bt["h"])(w,{normal:C},o,(function(e){return gd(e,D)})),f&&Object(bt["a"])(w,t,s,e,{getFormattedLabel:function(e,t,n,i,r,s){return gd(s?s.interpolatedValue:o,D)}}),g.add(w)}u.add(g)})),this.group.add(u),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(qt["a"]),vd=md,bd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e,t){return Ri(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(st["b"]),yd=bd;function _d(e){e.registerChartView(vd),e.registerSeriesModel(yd)}var wd=["itemStyle","opacity"],Cd=function(e){function t(t,n){var i=e.call(this)||this,r=i,o=new Ci["a"],s=new ie["a"];return r.setTextContent(s),i.setTextGuideLine(o),i.updateData(t,n,!0),i}return Object(rt["a"])(t,e),t.prototype.updateData=function(e,t,n){var i=this,r=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t),a=o.getModel("emphasis"),l=o.get(wd);l=null==l?1:l,n||Object(ht["g"])(i),i.useStyle(e.getItemVisual(t,"style")),i.style.lineJoin="round",n?(i.setShape({points:s.points}),i.style.opacity=0,ht["c"](i,{style:{opacity:l}},r,t)):ht["h"](i,{style:{opacity:l},shape:{points:s.points}},r,t),Object(pt["I"])(i,o),this._updateLabel(e,t),Object(pt["J"])(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=e.hostModel,s=e.getItemModel(t),a=e.getItemLayout(t),l=a.label,c=e.getItemVisual(t,"style"),u=c.fill;Object(bt["g"])(r,Object(bt["e"])(s),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:c.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:u,outsideFill:u});var h=l.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new Si["a"](h[0][0],h[0][1]):null},ht["h"](r,{style:{x:l.x,y:l.y}},o,t),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),Object(xi["d"])(n,Object(xi["a"])(s),{stroke:u})},t}(jo["a"]),Sd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._data,o=this.group;i.diff(r).add((function(e){var t=new Cd(i,e);i.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=r.getItemGraphicEl(t);n.updateData(i,e),o.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){var n=r.getItemGraphicEl(t);ht["f"](n,e,t)})).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(qt["a"]),xd=Sd,Od=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wi(y["bind"](this.getData,this),y["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return Ri(this,{coordDimensions:["value"],encodeDefaulter:y["curry"](Fi["d"],this)})},t.prototype._defaultLabelLine=function(e){Object(Pt["f"])(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(st["b"]),kd=Od;function Ld(e,t){return pi["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Ed(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),r=[],o="ascending"===t,s=0,a=e.count();s<a;s++)r[s]=s;return Object(y["isFunction"])(t)?r.sort(t):"none"!==t&&r.sort((function(e,t){return o?i[e]-i[t]:i[t]-i[e]})),r}function Dd(e){var t=e.hostModel,n=t.get("orient");e.each((function(t){var i,r,o,s,a=e.getItemModel(t),l=a.getModel("label"),c=l.get("position"),u=a.getModel("labelLine"),h=e.getItemLayout(t),d=h.points,f="inner"===c||"inside"===c||"center"===c||"insideLeft"===c||"insideRight"===c;if(f)"insideLeft"===c?(r=(d[0][0]+d[3][0])/2+5,o=(d[0][1]+d[3][1])/2,i="left"):"insideRight"===c?(r=(d[1][0]+d[2][0])/2-5,o=(d[1][1]+d[2][1])/2,i="right"):(r=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,o=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,i="center"),s=[[r,o],[r,o]];else{var p=void 0,g=void 0,m=void 0,v=void 0,b=u.get("length");0,"left"===c?(p=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,m=p-b,r=m-5,i="right"):"right"===c?(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,m=p+b,r=m+5,i="left"):"top"===c?(p=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,v=g-b,o=v-5,i="center"):"bottom"===c?(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,v=g+b,o=v+5,i="center"):"rightTop"===c?(p="horizontal"===n?d[3][0]:d[1][0],g="horizontal"===n?d[3][1]:d[1][1],"horizontal"===n?(v=g-b,o=v-5,i="center"):(m=p+b,r=m+5,i="top")):"rightBottom"===c?(p=d[2][0],g=d[2][1],"horizontal"===n?(v=g+b,o=v+5,i="center"):(m=p+b,r=m+5,i="bottom")):"leftTop"===c?(p=d[0][0],g="horizontal"===n?d[0][1]:d[1][1],"horizontal"===n?(v=g-b,o=v-5,i="center"):(m=p-b,r=m-5,i="right")):"leftBottom"===c?(p="horizontal"===n?d[1][0]:d[3][0],g="horizontal"===n?d[1][1]:d[2][1],"horizontal"===n?(v=g+b,o=v+5,i="center"):(m=p-b,r=m-5,i="right")):(p=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,"horizontal"===n?(v=g+b,o=v+5,i="center"):(m=p+b,r=m+5,i="left")),"horizontal"===n?(m=p,r=m):(v=g,o=v),s=[[p,g],[m,v]]}h.label={linePoints:s,x:r,y:o,verticalAlign:"middle",textAlign:i,inside:f}}))}function Id(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),i=n.mapDimension("value"),r=e.get("sort"),o=Ld(e,t),s=e.get("orient"),a=o.width,l=o.height,c=Ed(n,r),u=o.x,h=o.y,d="horizontal"===s?[Object(Gt["q"])(e.get("minSize"),l),Object(Gt["q"])(e.get("maxSize"),l)]:[Object(Gt["q"])(e.get("minSize"),a),Object(Gt["q"])(e.get("maxSize"),a)],f=n.getDataExtent(i),p=e.get("min"),g=e.get("max");null==p&&(p=Math.min(f[0],0)),null==g&&(g=f[1]);var m=e.get("funnelAlign"),v=e.get("gap"),b="horizontal"===s?a:l,y=(b-v*(n.count()-1))/n.count(),_=function(e,t){if("horizontal"===s){var r=n.get(i,e)||0,o=Object(Gt["m"])(r,[p,g],d,!0),c=void 0;switch(m){case"top":c=h;break;case"center":c=h+(l-o)/2;break;case"bottom":c=h+(l-o);break}return[[t,c],[t,c+o]]}var f,v=n.get(i,e)||0,b=Object(Gt["m"])(v,[p,g],d,!0);switch(m){case"left":f=u;break;case"center":f=u+(a-b)/2;break;case"right":f=u+a-b;break}return[[f,t],[f+b,t]]};"ascending"===r&&(y=-y,v=-v,"horizontal"===s?u+=a:h+=l,c=c.reverse());for(var w=0;w<c.length;w++){var C=c[w],S=c[w+1],x=n.getItemModel(C);if("horizontal"===s){var O=x.get(["itemStyle","width"]);null==O?O=y:(O=Object(Gt["q"])(O,a),"ascending"===r&&(O=-O));var k=_(C,u),L=_(S,u+O);u+=O+v,n.setItemLayout(C,{points:k.concat(L.slice().reverse())})}else{var E=x.get(["itemStyle","height"]);null==E?E=y:(E=Object(Gt["q"])(E,l),"ascending"===r&&(E=-E));k=_(C,h),L=_(S,h+E);h+=E+v,n.setItemLayout(C,{points:k.concat(L.slice().reverse())})}}Dd(n)}))}function Md(e){e.registerChartView(xd),e.registerSeriesModel(kd),e.registerLayout(Id),e.registerProcessor(wi("funnel"))}var Td=.3,Ad=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new lt["a"],n._initialized=!1,n}return Object(rt["a"])(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var r=this._dataGroup,o=e.getData(),s=this._data,a=e.coordinateSystem,l=a.dimensions,c=Rd(e);function u(e){var t=jd(o,r,e,l,a);Fd(t,o,e,c)}function h(t,n){var i=s.getItemGraphicEl(n),r=Pd(o,t,l,a);o.setItemGraphicEl(t,i),ht["h"](i,{shape:{points:r}},e,t),Object(ht["g"])(i),Fd(i,o,t,c)}function d(e){var t=s.getItemGraphicEl(e);r.remove(t)}if(o.diff(s).add(u).update(h).remove(d).execute(),!this._initialized){this._initialized=!0;var f=Nd(a,e,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(f)}this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var i=t.getData(),r=t.coordinateSystem,o=r.dimensions,s=Rd(t),a=this._progressiveEls=[],l=e.start;l<e.end;l++){var c=jd(i,this._dataGroup,l,o,r);c.incremental=!0,Fd(c,i,l,s),a.push(c)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(qt["a"]);function Nd(e,t,n){var i=e.model,r=e.getRect(),o=new $t["a"]({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),s="horizontal"===i.get("layout")?"width":"height";return o.setShape(s,0),ht["c"](o,{shape:{width:r.width,height:r.height}},t,n),o}function Pd(e,t,n,i){for(var r=[],o=0;o<n.length;o++){var s=n[o],a=e.get(e.mapDimension(s),t);Bd(a,i.getAxis(s).type)||r.push(i.dataToPoint(a,s))}return r}function jd(e,t,n,i,r){var o=Pd(e,n,i,r),s=new Ci["a"]({shape:{points:o},z2:10});return t.add(s),e.setItemGraphicEl(n,s),s}function Rd(e){var t=e.get("smooth",!0);return!0===t&&(t=Td),t=Object(Gt["o"])(t),Object(y["eqNaN"])(t)&&(t=0),{smooth:t}}function Fd(e,t,n,i){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",i.smooth);var r=t.getItemModel(n),o=r.getModel("emphasis");Object(pt["I"])(e,r,"lineStyle"),Object(pt["J"])(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function Bd(e,t){return"category"===t?null==e:null==e||isNaN(e)}var Wd=Ad,Vd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e,t){return Object(ot["a"])(null,this,{useEncodeDefaulter:Object(y["bind"])(zd,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),i=[];return t.eachActiveState(n,(function(t,r){e===t&&i.push(n.getRawIndex(r))})),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(st["b"]);function zd(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return Object(y["each"])(t.dimensions,(function(e){var t=Hd(e);n[e]=t})),n}}function Hd(e){return+e.replace("dim","")}var Ud=Vd,qd=["lineStyle","opacity"],$d={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,i={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,(function(e,n){var r=i[e];if("normal"===e&&t.hasItemOption){var o=t.getItemModel(n).get(qd,!0);null!=o&&(r=o)}var s=t.ensureUniqueItemVisual(n,"style");s.opacity=r}),e.start,e.end)}}}},Kd=$d;function Gd(e){Yd(e),Zd(e)}function Yd(e){if(!e.parallel){var t=!1;y["each"](e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function Zd(e){var t=Pt["r"](e.parallelAxis);y["each"](t,(function(t){if(y["isObject"](t)){var n=t.parallelIndex||0,i=Pt["r"](e.parallel)[n];i&&i.parallelAxisDefault&&y["merge"](t,i.parallelAxisDefault,!1)}}))}var Xd=5,Qd=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},Object(y["each"])(Jd,(function(e,t){n.getZr().on(t,this._handlers[t]=Object(y["bind"])(e,this))}),this)),Object(Tn["b"])(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){Object(Tn["a"])(this,"_throttledDispatchExpand"),Object(y["each"])(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(Object(y["extend"])({type:"parallelAxisExpand"},e))},t.type="parallel",t}(nr["a"]),Jd={mousedown:function(e){ef(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(ef(this,"click")&&t){var n=[e.offsetX,e.offsetY],i=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(i>Xd)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&ef(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function ef(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var tf=Qd,nf=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&y["merge"](t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){y["each"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=y["filter"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);y["each"](n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(ir["a"]),rf=nf,of=function(e){function t(t,n,i,r,o){var s=e.call(this,t,n,i)||this;return s.type=r||"value",s.axisIndex=o,s}return Object(rt["a"])(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(Lr["a"]),sf=of;function af(e,t,n,i,r,o){e=e||0;var s=n[1]-n[0];if(null!=r&&(r=cf(r,[0,s])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var a=Math.abs(t[1]-t[0]);a=cf(a,[0,s]),r=o=cf(a,[r,o]),i=0}t[0]=cf(t[0],n),t[1]=cf(t[1],n);var l=lf(t,i);t[i]+=e;var c,u=r||0,h=n.slice();return l.sign<0?h[0]+=u:h[1]-=u,t[i]=cf(t[i],h),c=lf(t,i),null!=r&&(c.sign!==l.sign||c.span<r)&&(t[1-i]=t[i]+l.sign*r),c=lf(t,i),null!=o&&c.span>o&&(t[1-i]=t[i]+c.sign*o),t}function lf(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function cf(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var uf=y["each"],hf=Math.min,df=Math.max,ff=Math.floor,pf=Math.ceil,gf=Gt["w"],mf=Math.PI,vf=function(){function e(e,t,n){this.type="parallel",this._axesMap=y["createHashMap"](),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,r=e.parallelAxisIndex;uf(i,(function(e,n){var i=r[n],o=t.getComponent("parallelAxis",i),s=this._axesMap.set(e,new sf(e,br["a"](o),[0,0],o.get("type"),i)),a="category"===s.type;s.onBand=a&&o.get("boundaryGap"),s.inverse=o.get("inverse"),o.axis=s,s.model=o,s.coordinateSystem=o.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,r=t.pixelDimIndex,o=e[1-r],s=e[r];return o>=n&&o<=n+t.axisLength&&s>=i&&s<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();uf(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),br["i"](t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=pi["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=t.get("layout"),s="horizontal"===o?0:1,a=n[r[s]],l=[0,a],c=this.dimensions.length,u=bf(t.get("axisExpandWidth"),l),h=bf(t.get("axisExpandCount")||0,[0,c]),d=t.get("axisExpandable")&&c>3&&c>h&&h>1&&u>0&&a>0,f=t.get("axisExpandWindow");if(f)e=bf(f[1]-f[0],l),f[1]=f[0]+e;else{e=bf(u*(h-1),l);var p=t.get("axisExpandCenter")||ff(c/2);f=[u*p-e/2],f[1]=f[0]+e}var g=(a-e)/(c-h);g<3&&(g=0);var m=[ff(gf(f[0]/u,1))+1,pf(gf(f[1]/u,1))-1],v=g/u*f[0];return{layout:o,pixelDimIndex:s,layoutBase:n[i[s]],layoutLength:a,axisBase:n[i[1-s]],axisLength:n[r[1-s]],axisExpandable:d,axisExpandWidth:u,axisCollapseWidth:g,axisExpandWindow:f,axisCount:c,winInnerIndices:m,axisExpandWindow0Pos:v}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),uf(n,(function(t,n){var o=(i.axisExpandable?_f:yf)(n,i),s={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},a={horizontal:mf/2,vertical:0},l=[s[r].x+e.x,s[r].y+e.y],c=a[r],u=wr["create"]();wr["rotate"](u,u,c),wr["translate"](u,u,l),this._axesLayout[t]={position:l,rotation:c,transform:u,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var r=this._axesMap,o=this.dimensions,s=[],a=[];y["each"](o,(function(t){s.push(e.mapDimension(t)),a.push(r.get(t).model)}));for(var l=this.hasAxisBrushed(),c=n;c<i;c++){var u=void 0;if(l){u="active";for(var h=e.getValues(s,c),d=0,f=o.length;d<f;d++){var p=a[d].getActiveState(h[d]);if("inactive"===p){u="inactive";break}}}else u="normal";t(u,c)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,i=0,r=e.length;i<r;i++)"normal"!==t.get(e[i]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return dt["applyTransform"]([e,0],n.transform)},e.prototype.getAxisLayout=function(e){return y["clone"](this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,i=t.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var s,a=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",c=t.axisCollapseWidth,u=this._model.get("axisExpandSlideTriggerArea"),h=null!=u[0];if(c)h&&c&&a<r*u[0]?(l="jump",s=a-r*u[2]):h&&c&&a>r*(1-u[0])?(l="jump",s=a-r*(1-u[2])):(s=a-r*u[1])>=0&&(s=a-r*(1-u[1]))<=0&&(s=0),s*=t.axisExpandWidth/c,s?af(s,i,o,"all"):l="none";else{var d=i[1]-i[0],f=o[1]*a/d;i=[df(0,f-d/2)],i[1]=hf(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},e}();function bf(e,t){return hf(df(e,t[0]),t[1])}function yf(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function _f(e,t){var n,i,r=t.layoutLength,o=t.axisExpandWidth,s=t.axisCount,a=t.axisCollapseWidth,l=t.winInnerIndices,c=a,u=!1;return e<l[0]?(n=e*a,i=a):e<=l[1]?(n=t.axisExpandWindow0Pos+e*o-t.axisExpandWindow[0],c=o,u=!0):(n=r-(s-1-e)*a,i=a),{position:n,axisNameAvailableWidth:c,axisLabelShow:u,nameTruncateMaxWidth:i}}var wf=vf;function Cf(e,t){var n=[];return e.eachComponent("parallel",(function(i,r){var o=new wf(i,e,t);o.name="parallel_"+r,o.resize(i,t),i.coordinateSystem=o,o.model=i,n.push(o)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",Pt["b"]).models[0];e.coordinateSystem=t.coordinateSystem}})),n}var Sf={create:Cf},xf=Sf,Of=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return Object(rt["a"])(t,e),t.prototype.getAreaSelectStyle=function(){return Object(Ic["a"])([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=y["clone"](e);if(t)for(var n=t.length-1;n>=0;n--)Gt["c"](t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,r=t.length;i<r;i++)if(t[i][0]<=e&&e<=t[i][1])return"active";return"inactive"},t}(ir["a"]);y["mixin"](Of,sr["a"]);var kf=Of,Lf=!0,Ef=Math.min,Df=Math.max,If=Math.pow,Mf=1e4,Tf=6,Af=6,Nf="globalPan",Pf={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},jf={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Rf={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Ff=0,Bf=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new lt["a"],n._uid="brushController_"+Ff++,Object(y["each"])(vp,(function(e,t){this._handlers[t]=Object(y["bind"])(e,this)}),n),n}return Object(rt["a"])(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||as(t,Nf,this._uid),Object(y["each"])(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=Object(y["merge"])(Object(y["clone"])(Rf),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;ls(e,Nf,this._uid),Object(y["each"])(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};Object(y["each"])(e,(function(e){t[e.panelId]=Object(y["clone"])(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=Object(y["map"])(e,(function(e){return Object(y["merge"])(Object(y["clone"])(Rf),e,!0)}));var t="\0-brush-index-",n=this._covers,i=this._covers=[],r=this,o=this._creatingCover;return new _c["a"](n,e,a,s).add(l).update(l).remove(c).execute(),this;function s(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function a(e,t){return s(e.__brushOption,t)}function l(t,s){var a=e[t];if(null!=s&&n[s]===o)i[t]=n[s];else{var l=i[t]=null!=s?(n[s].__brushOption=a,n[s]):Vf(r,Wf(r,a));Uf(r,l)}}function c(e){n[e]!==o&&r.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),Gf(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(is["a"]);function Wf(e,t){var n=_p[t.brushType].createCover(e,t);return n.__brushOption=t,Hf(n,t),e.group.add(n),n}function Vf(e,t){var n=qf(t);return n.endCreating&&(n.endCreating(e,t),Hf(t,t.__brushOption)),t}function zf(e,t){var n=t.__brushOption;qf(t).updateCoverShape(e,t,n.range,n)}function Hf(e,t){var n=t.z;null==n&&(n=Mf),e.traverse((function(e){e.z=n,e.z2=n}))}function Uf(e,t){qf(t).updateCommon(e,t),zf(e,t)}function qf(e){return _p[e.__brushOption.brushType]}function $f(e,t,n){var i,r=e._panels;if(!r)return Lf;var o=e._transform;return Object(y["each"])(r,(function(e){e.isTargetByCursor(t,n,o)&&(i=e)})),i}function Kf(e,t){var n=e._panels;if(!n)return Lf;var i=t.__brushOption.panelId;return null!=i?n[i]:Lf}function Gf(e){var t=e._covers,n=t.length;return Object(y["each"])(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function Yf(e,t){var n=Object(y["map"])(e._covers,(function(e){var t=e.__brushOption,n=Object(y["clone"])(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Zf(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],i=t[0],r=n[0]-i[0],o=n[1]-i[1],s=If(r*r+o*o,.5);return s>Tf}function Xf(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Qf(e,t,n,i){var r=new lt["a"];return r.add(new $t["a"]({name:"main",style:np(n),silent:!0,draggable:!0,cursor:"move",drift:Object(y["curry"])(ap,e,t,r,["n","s","w","e"]),ondragend:Object(y["curry"])(Yf,t,{isEnd:!0})})),Object(y["each"])(i,(function(n){r.add(new $t["a"]({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(y["curry"])(ap,e,t,r,n),ondragend:Object(y["curry"])(Yf,t,{isEnd:!0})}))})),r}function Jf(e,t,n,i){var r=i.brushStyle.lineWidth||0,o=Df(r,Af),s=n[0][0],a=n[1][0],l=s-r/2,c=a-r/2,u=n[0][1],h=n[1][1],d=u-o+r/2,f=h-o+r/2,p=u-s,g=h-a,m=p+r,v=g+r;tp(e,t,"main",s,a,p,g),i.transformable&&(tp(e,t,"w",l,c,o,v),tp(e,t,"e",d,c,o,v),tp(e,t,"n",l,c,m,o),tp(e,t,"s",l,f,m,o),tp(e,t,"nw",l,c,o,o),tp(e,t,"ne",d,c,o,o),tp(e,t,"sw",l,f,o,o),tp(e,t,"se",d,f,o,o))}function ep(e,t){var n=t.__brushOption,i=n.transformable,r=t.childAt(0);r.useStyle(np(n)),r.attr({silent:!i,cursor:i?"move":"default"}),Object(y["each"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=t.childOfName(n.join("")),o=1===n.length?op(e,n[0]):sp(e,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?jf[o]+"-resize":null})}))}function tp(e,t,n,i,r,o,s){var a=t.childOfName(n);a&&a.setShape(hp(up(e,t,[[i,r],[i+o,r+s]])))}function np(e){return Object(y["defaults"])({strokeNoScale:!0},e.brushStyle)}function ip(e,t,n,i){var r=[Ef(e,n),Ef(t,i)],o=[Df(e,n),Df(t,i)];return[[r[0],o[0]],[r[1],o[1]]]}function rp(e){return dt["getTransform"](e.group)}function op(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=dt["transformDirection"](n[t],rp(e));return i[r]}function sp(e,t){var n=[op(e,t[0]),op(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function ap(e,t,n,i,r,o){var s=n.__brushOption,a=e.toRectRange(s.range),l=cp(t,r,o);Object(y["each"])(i,(function(e){var t=Pf[e];a[t[0]][t[1]]+=l[t[0]]})),s.range=e.fromRectRange(ip(a[0][0],a[1][0],a[0][1],a[1][1])),Uf(t,n),Yf(t,{isEnd:!1})}function lp(e,t,n,i){var r=t.__brushOption.range,o=cp(e,n,i);Object(y["each"])(r,(function(e){e[0]+=o[0],e[1]+=o[1]})),Uf(e,t),Yf(e,{isEnd:!1})}function cp(e,t,n){var i=e.group,r=i.transformCoordToLocal(t,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function up(e,t,n){var i=Kf(e,t);return i&&i!==Lf?i.clipPath(n,e._transform):Object(y["clone"])(n)}function hp(e){var t=Ef(e[0][0],e[1][0]),n=Ef(e[0][1],e[1][1]),i=Df(e[0][0],e[1][0]),r=Df(e[0][1],e[1][1]);return{x:t,y:n,width:i-t,height:r-n}}function dp(e,t,n){if(e._brushType&&!yp(e,t.offsetX,t.offsetY)){var i=e._zr,r=e._covers,o=$f(e,t,n);if(!e._dragging)for(var s=0;s<r.length;s++){var a=r[s].__brushOption;if(o&&(o===Lf||a.panelId===o.panelId)&&_p[a.brushType].contain(r[s],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}function fp(e){var t=e.event;t.preventDefault&&t.preventDefault()}function pp(e,t,n){return e.childOfName("main").contain(t,n)}function gp(e,t,n,i){var r,o=e._creatingCover,s=e._creatingPanel,a=e._brushOption;if(e._track.push(n.slice()),Zf(e)||o){if(s&&!o){"single"===a.brushMode&&Gf(e);var l=Object(y["clone"])(a);l.brushType=mp(l.brushType,s),l.panelId=s===Lf?null:s.panelId,o=e._creatingCover=Wf(e,l),e._covers.push(o)}if(o){var c=_p[mp(e._brushType,s)],u=o.__brushOption;u.range=c.getCreatingRange(up(e,o,e._track)),i&&(Vf(e,o),c.updateCommon(e,o)),zf(e,o),r={isEnd:i}}}else i&&"single"===a.brushMode&&a.removeOnClick&&$f(e,t,n)&&Gf(e)&&(r={isEnd:i,removeOnClick:!0});return r}function mp(e,t){return"auto"===e?t.defaultBrushType:e}var vp={mousedown:function(e){if(this._dragging)bp(this,e);else if(!e.target||!e.target.draggable){fp(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=$f(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,i=this.group.transformCoordToLocal(t,n);if(dp(this,e,i),this._dragging){fp(e);var r=gp(this,e,i,!1);r&&Yf(this,r)}},mouseup:function(e){bp(this,e)}};function bp(e,t){if(e._dragging){fp(t);var n=t.offsetX,i=t.offsetY,r=e.group.transformCoordToLocal(n,i),o=gp(e,t,r,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&Yf(e,o)}}function yp(e,t,n){var i=e._zr;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}var _p={lineX:wp(0),lineY:wp(1),rect:{createCover:function(e,t){function n(e){return e}return Qf({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Xf(e);return ip(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){Jf(e,t,n,i)},updateCommon:ep,contain:pp},polygon:{createCover:function(e,t){var n=new lt["a"];return n.add(new Ci["a"]({name:"main",style:np(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new jo["a"]({name:"main",draggable:!0,drift:Object(y["curry"])(lp,e,t),ondragend:Object(y["curry"])(Yf,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:up(e,t,n)})},updateCommon:ep,contain:pp}};function wp(e){return{createCover:function(t,n){return Qf({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=Xf(t),i=Ef(n[0][e],n[1][e]),r=Df(n[0][e],n[1][e]);return[i,r]},updateCoverShape:function(t,n,i,r){var o,s=Kf(t,n);if(s!==Lf&&s.getLinearBrushOtherExtent)o=s.getLinearBrushOtherExtent(e);else{var a=t._zr;o=[0,[a.getWidth(),a.getHeight()][1-e]]}var l=[i,o];e&&l.reverse(),Jf(t,n,l,r)},updateCommon:ep,contain:pp}}var Cp=Bf;function Sp(e){return e=kp(e),function(t){return dt["clipPointsByRect"](t,e)}}function xp(e,t){return e=kp(e),function(n){var i=null!=t?t:n,r=i?e.width:e.height,o=i?e.x:e.y;return[o,o+(r||0)]}}function Op(e,t,n){var i=kp(e);return function(e,r){return i.contain(r[0],r[1])&&!ys(e,t,n)}}function kp(e){return Gi["a"].create(e)}var Lp=["axisLine","axisTickLabel","axisName"],Ep=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new Cp(n.getZr())).on("brush",y["bind"](this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!Dp(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new lt["a"],this.group.add(this._axisGroup),e.get("show")){var o=Mp(e,t),s=o.coordinateSystem,a=e.getAreaSelectStyle(),l=a.width,c=e.axis.dim,u=s.getAxisLayout(c),h=y["extend"]({strokeContainThreshold:l},u),d=new io(e,h);y["each"](Lp,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(h,a,e,o,l,n),dt["groupTransition"](r,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,r,o){var s=n.axis.getExtent(),a=s[1]-s[0],l=Math.min(30,.1*Math.abs(a)),c=Gi["a"].create({x:s[0],y:-r/2,width:a,height:r});c.x-=l,c.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:Sp(c),isTargetByCursor:Op(c,o,i),getLinearBrushOtherExtent:xp(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(Ip(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,r=y["map"](t,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(nr["a"]);function Dp(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function Ip(e){var t=e.axis;return y["map"](e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function Mp(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var Tp=Ep,Ap={type:"axisAreaSelect",event:"axisAreaSelected"};function Np(e){e.registerAction(Ap,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var Pp={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function jp(e){e.registerComponentView(tf),e.registerComponentModel(rf),e.registerCoordinateSystem("parallel",xf),e.registerPreprocessor(Gd),e.registerComponentModel(kf),e.registerComponentView(Tp),mr(e,"parallel",kf,Pp),Np(e)}function Rp(e){Object(i["a"])(jp),e.registerChartView(Wd),e.registerSeriesModel(Ud),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Kd)}var Fp=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),Bp=function(e){function t(t){return e.call(this,t)||this}return Object(rt["a"])(t,e),t.prototype.getDefaultShape=function(){return new Fp},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){Object(pt["r"])(this)},t.prototype.downplay=function(){Object(pt["C"])(this)},t}(a["b"]),Wp=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=this,r=e.getGraph(),o=this.group,s=e.layoutInfo,a=s.width,l=s.height,c=e.getData(),u=e.getData("edge"),h=e.get("orient");this._model=e,o.removeAll(),o.x=s.x,o.y=s.y,r.eachEdge((function(t){var n=new Bp,i=Object(ft["a"])(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,s,c,d,f,p,g,m,v=t.getModel(),b=v.getModel("lineStyle"),_=b.get("curveness"),w=t.node1.getLayout(),C=t.node1.getModel(),S=C.get("localX"),x=C.get("localY"),O=t.node2.getLayout(),k=t.node2.getModel(),L=k.get("localX"),E=k.get("localY"),D=t.getLayout();n.shape.extent=Math.max(1,D.dy),n.shape.orient=h,"vertical"===h?(r=(null!=S?S*a:w.x)+D.sy,s=(null!=x?x*l:w.y)+w.dy,c=(null!=L?L*a:O.x)+D.ty,d=null!=E?E*l:O.y,f=r,p=s*(1-_)+d*_,g=c,m=s*_+d*(1-_)):(r=(null!=S?S*a:w.x)+w.dx,s=(null!=x?x*l:w.y)+D.sy,c=null!=L?L*a:O.x,d=(null!=E?E*l:O.y)+D.ty,f=r*(1-_)+c*_,p=s,g=r*_+c*(1-_),m=d),n.setShape({x1:r,y1:s,x2:c,y2:d,cpx1:f,cpy1:p,cpx2:g,cpy2:m}),n.useStyle(b.getItemStyle()),Vp(n.style,h,t);var I=""+v.get("value"),M=Object(bt["e"])(v,"edgeLabel");Object(bt["g"])(n,M,{labelFetcher:{getFormattedLabel:function(t,n,i,r,o,s){return e.getFormattedLabel(t,n,"edge",r,Object(y["retrieve3"])(o,M.normal&&M.normal.get("formatter"),I),s)}},labelDataIndex:t.dataIndex,defaultText:I}),n.setTextConfig({position:"inside"});var T=v.getModel("emphasis");Object(pt["I"])(n,v,"lineStyle",(function(e){var n=e.getItemStyle();return Vp(n,h,t),n})),o.add(n),u.setItemGraphicEl(t.dataIndex,n);var A=T.get("focus");Object(pt["J"])(n,"adjacency"===A?t.getAdjacentDataIndices():"trajectory"===A?t.getTrajectoryDataIndices():A,T.get("blurScope"),T.get("disabled"))})),r.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),r=i.get("localX"),s=i.get("localY"),u=i.getModel("emphasis"),h=i.get(["itemStyle","borderRadius"])||0,d=new $t["a"]({shape:{x:null!=r?r*a:n.x,y:null!=s?s*l:n.y,width:n.dx,height:n.dy,r:h},style:i.getModel("itemStyle").getItemStyle(),z2:10});Object(bt["g"])(d,Object(bt["e"])(i),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),d.disableLabelAnimation=!0,d.setStyle("fill",t.getVisual("color")),d.setStyle("decal",t.getVisual("style").decal),Object(pt["I"])(d,i),o.add(d),c.setItemGraphicEl(t.dataIndex,d),Object(ft["a"])(d).dataType="node";var f=u.get("focus");Object(pt["J"])(d,"adjacency"===f?t.getAdjacentDataIndices():"trajectory"===f?t.getTrajectoryDataIndices():f,u.get("blurScope"),u.get("disabled"))})),c.eachItemGraphicEl((function(t,r){var o=c.getItemModel(r);o.get("draggable")&&(t.drift=function(t,o){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(r),localX:this.shape.x/a,localY:this.shape.y/l})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(zp(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(qt["a"]);function Vp(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),r=n.node2.getVisual("color");Object(y["isString"])(i)&&Object(y["isString"])(r)&&(e.fill=new Nt["a"](0,0,+("horizontal"===t),+("vertical"===t),[{color:i,offset:0},{color:r,offset:1}]))}}function zp(e,t,n){var i=new $t["a"]({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return ht["c"](i,{shape:{width:e.width+20}},t,n),i}var Hp=Wp,Up=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,r=e.levels;this.levelModels=[];for(var o=this.levelModels,s=0;s<r.length;s++)null!=r[s].depth&&r[s].depth>=0&&(o[r[s].depth]=new Ur["a"](r[s],this,t));if(i&&n){var a=od(i,n,this,!0,l);return a.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var r=i.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t),r=i.node1.getLayout();if(r){var o=r.depth,s=n.levelModels[o];s&&(e.parentModel=s)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,i=n[e];i.localX=t[0],i.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var r=this.getDataParams(e,n),o=r.data,s=r.value,a=o.source+" -- "+o.target;return Object(Bo["c"])("nameValue",{name:a,value:s,noValue:i(s)})}var l=this.getGraph().getNodeByIndex(e),c=l.getLayout().value,u=this.getDataParams(e,n).data.name;return Object(Bo["c"])("nameValue",{name:null!=u?u+"":null,value:c,noValue:i(c)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(t),o=r.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(st["b"]),qp=Up;function $p(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),r=Kp(e,t);e.layoutInfo=r;var o=r.width,s=r.height,a=e.getGraph(),l=a.nodes,c=a.edges;Yp(l);var u=y["filter"](l,(function(e){return 0===e.getLayout().value})),h=0!==u.length?0:e.get("layoutIterations"),d=e.get("orient"),f=e.get("nodeAlign");Gp(l,c,n,i,o,s,h,d,f)}))}function Kp(e,t){return pi["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Gp(e,t,n,i,r,o,s,a,l){Zp(e,t,n,r,o,a,l),tg(e,t,o,r,i,s,a),pg(e,a)}function Yp(e){y["each"](e,(function(e){var t=dg(e.outEdges,hg),n=dg(e.inEdges,hg),i=e.getValue()||0,r=Math.max(t,n,i);e.setLayout({value:r},!0)}))}function Zp(e,t,n,i,r,o,s){for(var a=[],l=[],c=[],u=[],h=0,d=0;d<t.length;d++)a[d]=1;for(d=0;d<e.length;d++)l[d]=e[d].inEdges.length,0===l[d]&&c.push(e[d]);var f=-1;while(c.length){for(var p=0;p<c.length;p++){var g=c[p],m=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=m.depth&&m.depth>=0;v&&m.depth>f&&(f=m.depth),g.setLayout({depth:v?m.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var b=0;b<g.outEdges.length;b++){var y=g.outEdges[b],_=t.indexOf(y);a[_]=0;var w=y.node2,C=e.indexOf(w);0===--l[C]&&u.indexOf(w)<0&&u.push(w)}}++h,c=u,u=[]}for(d=0;d<a.length;d++)if(1===a[d])throw new Error("Sankey is a DAG, the original data has cycle!");var S=f>h-1?f:h-1;s&&"left"!==s&&Qp(e,s,o,S);var x="vertical"===o?(r-n)/S:(i-n)/S;eg(e,x,o)}function Xp(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function Qp(e,t,n,i){if("right"===t){var r=[],o=e,s=0;while(o.length){for(var a=0;a<o.length;a++){var l=o[a];l.setLayout({skNodeHeight:s},!0);for(var c=0;c<l.inEdges.length;c++){var u=l.inEdges[c];r.indexOf(u.node1)<0&&r.push(u.node1)}}o=r,r=[],++s}y["each"](e,(function(e){Xp(e)||e.setLayout({depth:Math.max(0,i-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&Jp(e,i)}function Jp(e,t){y["each"](e,(function(e){Xp(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function eg(e,t,n){y["each"](e,(function(e){var i=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:i},!0):e.setLayout({x:i},!0)}))}function tg(e,t,n,i,r,o,s){var a=ng(e,s);ig(a,t,n,i,r,s),rg(a,r,n,i,s);for(var l=1;o>0;o--)l*=.99,og(a,l,s),rg(a,r,n,i,s),fg(a,l,s),rg(a,r,n,i,s)}function ng(e,t){var n=[],i="vertical"===t?"y":"x",r=Object(Pt["j"])(e,(function(e){return e.getLayout()[i]}));return r.keys.sort((function(e,t){return e-t})),y["each"](r.keys,(function(e){n.push(r.buckets.get(e))})),n}function ig(e,t,n,i,r,o){var s=1/0;y["each"](e,(function(e){var t=e.length,a=0;y["each"](e,(function(e){a+=e.getLayout().value}));var l="vertical"===o?(i-(t-1)*r)/a:(n-(t-1)*r)/a;l<s&&(s=l)})),y["each"](e,(function(e){y["each"](e,(function(e,t){var n=e.getLayout().value*s;"vertical"===o?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),y["each"](t,(function(e){var t=+e.getValue()*s;e.setLayout({dy:t},!0)}))}function rg(e,t,n,i,r){var o="vertical"===r?"x":"y";y["each"](e,(function(e){var s,a,l;e.sort((function(e,t){return e.getLayout()[o]-t.getLayout()[o]}));for(var c=0,u=e.length,h="vertical"===r?"dx":"dy",d=0;d<u;d++)a=e[d],l=c-a.getLayout()[o],l>0&&(s=a.getLayout()[o]+l,"vertical"===r?a.setLayout({x:s},!0):a.setLayout({y:s},!0)),c=a.getLayout()[o]+a.getLayout()[h]+t;var f="vertical"===r?i:n;if(l=c-t-f,l>0){s=a.getLayout()[o]-l,"vertical"===r?a.setLayout({x:s},!0):a.setLayout({y:s},!0),c=s;for(d=u-2;d>=0;--d)a=e[d],l=a.getLayout()[o]+a.getLayout()[h]+t-c,l>0&&(s=a.getLayout()[o]-l,"vertical"===r?a.setLayout({x:s},!0):a.setLayout({y:s},!0)),c=a.getLayout()[o]}}))}function og(e,t,n){y["each"](e.slice().reverse(),(function(e){y["each"](e,(function(e){if(e.outEdges.length){var i=dg(e.outEdges,sg,n)/dg(e.outEdges,hg);if(isNaN(i)){var r=e.outEdges.length;i=r?dg(e.outEdges,ag,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-ug(e,n))*t;e.setLayout({x:o},!0)}else{var s=e.getLayout().y+(i-ug(e,n))*t;e.setLayout({y:s},!0)}}}))}))}function sg(e,t){return ug(e.node2,t)*e.getValue()}function ag(e,t){return ug(e.node2,t)}function lg(e,t){return ug(e.node1,t)*e.getValue()}function cg(e,t){return ug(e.node1,t)}function ug(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function hg(e){return e.getValue()}function dg(e,t,n){var i=0,r=e.length,o=-1;while(++o<r){var s=+t(e[o],n);isNaN(s)||(i+=s)}return i}function fg(e,t,n){y["each"](e,(function(e){y["each"](e,(function(e){if(e.inEdges.length){var i=dg(e.inEdges,lg,n)/dg(e.inEdges,hg);if(isNaN(i)){var r=e.inEdges.length;i=r?dg(e.inEdges,cg,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-ug(e,n))*t;e.setLayout({x:o},!0)}else{var s=e.getLayout().y+(i-ug(e,n))*t;e.setLayout({y:s},!0)}}}))}))}function pg(e,t){var n="vertical"===t?"x":"y";y["each"](e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),y["each"](e,(function(e){var t=0,n=0;y["each"](e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),y["each"](e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}function gg(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),n=t.nodes,i=t.edges;if(n.length){var r=1/0,o=-1/0;y["each"](n,(function(e){var t=e.getLayout().value;t<r&&(r=t),t>o&&(o=t)})),y["each"](n,(function(t){var n=new hu({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:e.get("color")}),i=n.mapValueToVisual(t.getLayout().value),s=t.getModel().get(["itemStyle","color"]);null!=s?(t.setVisual("color",s),t.setVisual("style",{fill:s})):(t.setVisual("color",i),t.setVisual("style",{fill:i}))}))}i.length&&y["each"](i,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}function mg(e){e.registerChartView(Hp),e.registerSeriesModel(qp),e.registerLayout($p),e.registerVisual(gg),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}var vg=n("2f45"),bg=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,r=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),s=r.get("type"),a=o.get("type");"category"===s?(e.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===a?(e.layout="vertical",n=o.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var l=["x","y"],c="horizontal"===e.layout?0:1,u=this._baseAxisDim=l[c],h=l[1-c],d=[r,o],f=d[c].get("type"),p=d[1-c].get("type"),g=e.data;if(g&&i){var m=[];y["each"](g,(function(e,t){var n;y["isArray"](e)?(n=e.slice(),e.unshift(t)):y["isArray"](e.value)?(n=y["extend"]({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,m.push(n)})),e.data=m}var v=this.defaultValueDimensions,b=[{name:u,type:Object(vg["a"])(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Object(vg["a"])(p),dimsDef:v.slice()}];return Ri(this,{coordDimensions:b,dimensionsCount:v.length+1,encodeDefaulter:y["curry"](Fi["c"],b,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),yg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return Object(rt["a"])(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(st["b"]);Object(y["mixin"])(yg,bg,!0);var _g=yg,wg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this.group,o=this._data;this._data||r.removeAll();var s="horizontal"===e.get("layout")?1:0;i.diff(o).add((function(e){if(i.hasValue(e)){var t=i.getItemLayout(e),n=xg(t,i,e,s,!0);i.setItemGraphicEl(e,n),r.add(n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var a=i.getItemLayout(e);n?(Object(ht["g"])(n),Og(a,n,i,e)):n=xg(a,i,e,s),r.add(n),i.setItemGraphicEl(e,n)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(qt["a"]),Cg=function(){function e(){}return e}(),Sg=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return Object(rt["a"])(t,e),t.prototype.getDefaultShape=function(){return new Cg},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t}(a["b"]);function xg(e,t,n,i,r){var o=e.ends,s=new Sg({shape:{points:r?kg(o,i,e):o}});return Og(e,s,t,n,r),s}function Og(e,t,n,i,r){var o=n.hostModel,s=dt[r?"initProps":"updateProps"];s(t,{shape:{points:e.ends}},o,i),t.useStyle(n.getItemVisual(i,"style")),t.style.strokeNoScale=!0,t.z2=100;var a=n.getItemModel(i),l=a.getModel("emphasis");Object(pt["I"])(t,a),Object(pt["J"])(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function kg(e,t,n){return y["map"](e,(function(e){return e=e.slice(),e[t]=n.initBaseline,e}))}var Lg=wg,Eg=y["each"];function Dg(e){var t=Ig(e);Eg(t,(function(e){var t=e.seriesModels;t.length&&(Mg(e),Eg(t,(function(t,n){Tg(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}function Ig(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var i=e.getBaseAxis(),r=y["indexOf"](n,i);r<0&&(r=n.length,n[r]=i,t[r]={axis:i,seriesModels:[]}),t[r].seriesModels.push(e)})),t}function Mg(e){var t,n=e.axis,i=e.seriesModels,r=i.length,o=e.boxWidthList=[],s=e.boxOffsetList=[],a=[];if("category"===n.type)t=n.getBandWidth();else{var l=0;Eg(i,(function(e){l=Math.max(l,e.getData().count())}));var c=n.getExtent();t=Math.abs(c[1]-c[0])/l}Eg(i,(function(e){var n=e.get("boxWidth");y["isArray"](n)||(n=[n,n]),a.push([Object(Gt["q"])(n[0],t)||0,Object(Gt["q"])(n[1],t)||0])}));var u=.8*t-2,h=u/r*.3,d=(u-h*(r-1))/r,f=d/2-u/2;Eg(i,(function(e,t){s.push(f),f+=h+d,o.push(Math.min(Math.max(d,a[t][0]),a[t][1]))}))}function Tg(e,t,n){var i=e.coordinateSystem,r=e.getData(),o=n/2,s="horizontal"===e.get("layout")?0:1,a=1-s,l=["x","y"],c=r.mapDimension(l[s]),u=r.mapDimensionsAll(l[a]);if(!(null==c||u.length<5))for(var h=0;h<r.count();h++){var d=r.get(c,h),f=y(d,u[2],h),p=y(d,u[0],h),g=y(d,u[1],h),m=y(d,u[3],h),v=y(d,u[4],h),b=[];_(b,g,!1),_(b,m,!0),b.push(p,g,v,m),w(b,p),w(b,v),w(b,f),r.setItemLayout(h,{initBaseline:f[a],ends:b})}function y(e,n,o){var l,c=r.get(n,o),u=[];return u[s]=e,u[a]=c,isNaN(e)||isNaN(c)?l=[NaN,NaN]:(l=i.dataToPoint(u),l[s]+=t),l}function _(e,t,n){var i=t.slice(),r=t.slice();i[s]+=o,r[s]-=o,n?e.push(i,r):e.push(r,i)}function w(e,t){var n=t.slice(),i=t.slice();n[s]-=o,i[s]+=o,e.push(n,i)}}function Ag(e,t){t=t||{};for(var n=[],i=[],r=t.boundIQR,o="none"===r||0===r,s=0;s<e.length;s++){var a=Object(Gt["c"])(e[s].slice()),l=Object(Gt["r"])(a,.25),c=Object(Gt["r"])(a,.5),u=Object(Gt["r"])(a,.75),h=a[0],d=a[a.length-1],f=(null==r?1.5:r)*(u-l),p=o?h:Math.max(h,l-f),g=o?d:Math.min(d,u+f),m=t.itemNameFormatter,v=Object(y["isFunction"])(m)?m({value:s}):Object(y["isString"])(m)?m.replace("{value}",s+""):s+"";n.push([v,p,l,c,u,g]);for(var b=0;b<a.length;b++){var _=a[b];if(_<p||_>g){var w=[v,_];i.push(w)}}}return{boxData:n,outliers:i}}var Ng=n("07fd"),Pg={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Ng["c"]){var n="";0,Object(Kc["c"])(n)}var i=Ag(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function jg(e){e.registerSeriesModel(_g),e.registerChartView(Lg),e.registerLayout(Dg),e.registerTransform(Pg)}var Rg=["color","borderColor"],Fg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){dt["traverseElements"](this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,i=this.group,r=t.getLayout("isSimpleBox"),o=e.get("clip",!0),s=e.coordinateSystem,a=s.getArea&&s.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var s=t.getItemLayout(n);if(o&&zg(a,s))return;var l=Vg(s,n,!0);ht["c"](l,{shape:{points:s.ends}},e,n),Hg(l,t,n,r),i.add(l),t.setItemGraphicEl(n,l)}})).update((function(s,l){var c=n.getItemGraphicEl(l);if(t.hasValue(s)){var u=t.getItemLayout(s);o&&zg(a,u)?i.remove(c):(c?(ht["h"](c,{shape:{points:u.ends}},e,s),Object(ht["g"])(c)):c=Vg(u,s),Hg(c,t,s,r),i.add(c),t.setItemGraphicEl(s,c))}else i.remove(c)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),Kg(e,this.group);var t=e.get("clip",!0)?Xt(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,i=t.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=e.next())){var o=i.getItemLayout(n),s=Vg(o,n);Hg(s,i,n,r),s.incremental=!0,this.group.add(s),this._progressiveEls.push(s)}},t.prototype._incrementalRenderLarge=function(e,t){Kg(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(qt["a"]),Bg=function(){function e(){}return e}(),Wg=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return Object(rt["a"])(t,e),t.prototype.getDefaultShape=function(){return new Bg},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(a["b"]);function Vg(e,t,n){var i=e.ends;return new Wg({shape:{points:n?Ug(i,e):i},z2:100})}function zg(e,t){for(var n=!0,i=0;i<t.ends.length;i++)if(e.contain(t.ends[i][0],t.ends[i][1])){n=!1;break}return n}function Hg(e,t,n,i){var r=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=i,Object(pt["I"])(e,r)}function Ug(e,t){return y["map"](e,(function(e){return e=e.slice(),e[1]=t.initBaseline,e}))}var qg=function(){function e(){}return e}(),$g=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return Object(rt["a"])(t,e),t.prototype.getDefaultShape=function(){return new qg},t.prototype.buildPath=function(e,t){for(var n=t.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];e.moveTo(r,n[i++]),e.lineTo(r,n[i++])}else i+=3},t}(a["b"]);function Kg(e,t,n,i){var r=e.getData(),o=r.getLayout("largePoints"),s=new $g({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});t.add(s);var a=new $g({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});t.add(a);var l=new $g({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});t.add(l),Gg(1,s,e,r),Gg(-1,a,e,r),Gg(0,l,e,r),i&&(s.incremental=!0,a.incremental=!0),n&&n.push(s,a)}function Gg(e,t,n,i){var r=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]);0===e&&(r=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(Rg);t.useStyle(o),t.style.fill=null,t.style.stroke=r}var Yg=Fg,Zg=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return Object(rt["a"])(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(st["b"]);Object(y["mixin"])(Zg,bg,!0);var Xg=Zg;function Qg(e){e&&y["isArray"](e.series)&&y["each"](e.series,(function(e){y["isObject"](e)&&"k"===e.type&&(e.type="candlestick")}))}var Jg=["itemStyle","borderColor"],em=["itemStyle","borderColor0"],tm=["itemStyle","borderColorDoji"],nm=["itemStyle","color"],im=["itemStyle","color0"],rm={seriesType:"candlestick",plan:Object(_n["a"])(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?nm:im)}function i(e,t){return t.get(0===e?tm:e>0?Jg:em)}if(!t.isSeriesFiltered(e)){var r=e.pipelineContext.large;return!r&&{progress:function(e,t){var r;while(null!=(r=e.next())){var o=t.getItemModel(r),s=t.getItemLayout(r).sign,a=o.getItemStyle();a.fill=n(s,o),a.stroke=i(s,o)||a.fill;var l=t.ensureUniqueItemVisual(r,"style");Object(y["extend"])(l,a)}}}}}},om=rm,sm={seriesType:"candlestick",plan:Object(_n["a"])(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=lm(e,n),r=0,o=1,s=["x","y"],a=n.getDimensionIndex(n.mapDimension(s[r])),l=Object(y["map"])(n.mapDimensionsAll(s[o]),n.getDimensionIndex,n),c=l[0],u=l[1],h=l[2],d=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(a<0||l.length<4))return{progress:e.pipelineContext.large?p:f};function f(e,n){var s,l=n.getStore();while(null!=(s=e.next())){var f=l.get(a,s),p=l.get(c,s),g=l.get(u,s),m=l.get(h,s),v=l.get(d,s),b=Math.min(p,g),y=Math.max(p,g),_=L(b,f),w=L(y,f),C=L(m,f),S=L(v,f),x=[];E(x,w,0),E(x,_,1),x.push(I(S),I(w),I(C),I(_));var O=n.getItemModel(s),k=!!O.get(["itemStyle","borderColorDoji"]);n.setItemLayout(s,{sign:am(l,s,p,g,u,k),initBaseline:p>g?w[o]:_[o],ends:x,brushRect:D(m,v,f)})}function L(e,n){var i=[];return i[r]=n,i[o]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function E(e,t,n){var o=t.slice(),s=t.slice();o[r]=Object(dt["subPixelOptimize"])(o[r]+i/2,1,!1),s[r]=Object(dt["subPixelOptimize"])(s[r]-i/2,1,!0),n?e.push(o,s):e.push(s,o)}function D(e,t,n){var s=L(e,n),a=L(t,n);return s[r]-=i/2,a[r]-=i/2,{x:s[0],y:s[1],width:o?i:a[0]-s[0],height:o?a[1]-s[1]:i}}function I(e){return e[r]=Object(dt["subPixelOptimize"])(e[r],1),e}}function p(n,i){var s,l,f=Object(Mt["a"])(4*n.count),p=0,g=[],m=[],v=i.getStore(),b=!!e.get(["itemStyle","borderColorDoji"]);while(null!=(l=n.next())){var y=v.get(a,l),_=v.get(c,l),w=v.get(u,l),C=v.get(h,l),S=v.get(d,l);isNaN(y)||isNaN(C)||isNaN(S)?(f[p++]=NaN,p+=3):(f[p++]=am(v,l,_,w,u,b),g[r]=y,g[o]=C,s=t.dataToPoint(g,null,m),f[p++]=s?s[0]:NaN,f[p++]=s?s[1]:NaN,g[o]=S,s=t.dataToPoint(g,null,m),f[p++]=s?s[1]:NaN)}i.setLayout("largePoints",f)}}};function am(e,t,n,i,r,o){var s;return s=n>i?-1:n<i?1:o?0:t>0?e.get(r,t-1)<=i?1:-1:1,s}function lm(e,t){var n,i=e.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=Object(Gt["q"])(Object(y["retrieve2"])(e.get("barMaxWidth"),r),r),s=Object(Gt["q"])(Object(y["retrieve2"])(e.get("barMinWidth"),1),r),a=e.get("barWidth");return null!=a?Object(Gt["q"])(a,r):Math.max(Math.min(r/2,o),s)}var cm=sm;function um(e){e.registerChartView(Yg),e.registerSeriesModel(Xg),e.registerPreprocessor(Qg),e.registerVisual(om),e.registerLayout(cm)}function hm(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var dm=function(e){function t(t,n){var i=e.call(this)||this,r=new wt(t,n),o=new lt["a"];return i.add(r),i.add(o),i.updateData(t,n),i}return Object(rt["a"])(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,r=this.childAt(1),o=0;o<i;o++){var s=Object(at["a"])(t,-1,-1,2,2,n);s.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var a=-o/i*e.period+e.effectOffset;s.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(a).start(),s.animateStyle(!0).when(e.period,{opacity:0}).delay(a).start(),r.add(s)}hm(r,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var o=i[r];if(t[o]!==e[o])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}hm(n,e)},t.prototype.highlight=function(){Object(pt["r"])(this)},t.prototype.downplay=function(){Object(pt["C"])(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,i=e.hostModel;this.childAt(0).updateData(e,t);var r=this.childAt(1),o=e.getItemModel(t),s=e.getItemVisual(t,"symbol"),a=Object(at["c"])(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"style"),c=l&&l.fill,u=o.getModel("emphasis");r.setScale(a),r.traverse((function(e){e.setStyle("fill",c)}));var h=Object(at["b"])(e.getItemVisual(t,"symbolOffset"),a);h&&(r.x=h[0],r.y=h[1]);var d=e.getItemVisual(t,"symbolRotate");r.rotation=(d||0)*Math.PI/180||0;var f={};f.showEffectOn=i.get("showEffectOn"),f.rippleScale=o.get(["rippleEffect","scale"]),f.brushType=o.get(["rippleEffect","brushType"]),f.period=1e3*o.get(["rippleEffect","period"]),f.effectOffset=t/e.count(),f.z=i.getShallow("z")||0,f.zlevel=i.getShallow("zlevel")||0,f.symbolType=s,f.color=c,f.rippleEffectColor=o.get(["rippleEffect","color"]),f.rippleNumber=o.get(["rippleEffect","number"]),"render"===f.showEffectOn?(this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==f.showEffectOn&&n.startEffectAnimation(f):"normal"===e&&"render"!==f.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=f,Object(pt["J"])(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(lt["a"]),fm=dm,pm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(){this._symbolDraw=new kt(fm)},t.prototype.render=function(e,t,n){var i=e.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(r.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var i=e.getData();this.group.dirty();var r=wn("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=wr["clone"](t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(qt["a"]),gm=pm,mm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e,t){return Object(ot["a"])(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(st["b"]),vm=mm;function bm(e){e.registerChartView(gm),e.registerSeriesModel(vm),e.registerLayout(wn("effectScatter"))}var ym=function(e){function t(t,n,i){var r=e.call(this)||this;return r.add(r.createLine(t,n,i)),r._updateEffectSymbol(t,n),r}return Object(rt["a"])(t,e),t.prototype.createLine=function(e,t,n){return new Nh(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t),i=n.getModel("effect"),r=i.get("symbolSize"),o=i.get("symbol");y["isArray"](r)||(r=[r,r]);var s=e.getItemVisual(t,"style"),a=i.get("color")||s&&s.stroke,l=this.childAt(1);this._symbolType!==o&&(this.remove(l),l=Object(at["a"])(o,-.5,-.5,1,1,a),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",a),l.setStyle(i.getItemStyle(["color"])),l.scaleX=r[0],l.scaleY=r[1],l.setColor(a),this._symbolType=o,this._symbolScale=r,this._updateEffectAnimation(e,i,t))},t.prototype._updateEffectAnimation=function(e,t,n){var i=this.childAt(1);if(i){var r=e.getItemLayout(n),o=1e3*t.get("period"),s=t.get("loop"),a=t.get("roundTrip"),l=t.get("constantSpeed"),c=y["retrieve"](t.get("delay"),(function(t){return t/e.count()*o/3}));if(i.ignore=!0,this._updateAnimationPoints(i,r),l>0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||s!==this._loop||a!==this._roundTrip){i.stopAnimation();var u=void 0;u=y["isFunction"](c)?c(n):c,i.__t>0&&(u=-o*i.__t),this._animateSymbol(i,o,u,s,a)}this._period=o,this._loop=s,this._roundTrip=a}},t.prototype._animateSymbol=function(e,t,n,i,r){if(t>0){e.__t=0;var o=this,s=e.animate("",i).when(r?2*t:t,{__t:r?2:1}).delay(n).during((function(){o._updateSymbolPosition(e)}));i||s.done((function(){o.remove(e)})),s.start()}},t.prototype._getLineLength=function(e){return Cr["dist"](e.__p1,e.__cp1)+Cr["dist"](e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,r=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],s=o.slice(),a=jt["h"],l=jt["i"];o[0]=a(t[0],i[0],n[0],r),o[1]=a(t[1],i[1],n[1],r);var c=e.__t<1?l(t[0],i[0],n[0],r):l(n[0],i[0],t[0],1-r),u=e.__t<1?l(t[1],i[1],n[1],r):l(n[1],i[1],t[1],1-r);e.rotation=-Math.atan2(u,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*Cr["dist"](s,o),1===r&&(o[0]=s[0]+(o[0]-s[0])/2,o[1]=s[1]+(o[1]-s[1])/2)):1===e.__lastT?e.scaleY=2*Cr["dist"](t,o):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=o[0],e.y=o[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(lt["a"]),_m=ym,wm=function(e){function t(t,n,i){var r=e.call(this)||this;return r._createPolyline(t,n,i),r}return Object(rt["a"])(t,e),t.prototype._createPolyline=function(e,t,n){var i=e.getItemLayout(t),r=new Ci["a"]({shape:{points:i}});this.add(r),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var i=e.hostModel,r=this.childAt(0),o={shape:{points:e.getItemLayout(t)}};ht["h"](r,o,i,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var i=this.childAt(0),r=e.getItemModel(t),o=n&&n.emphasisLineStyle,s=n&&n.focus,a=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var c=r.getModel("emphasis");o=c.getModel("lineStyle").getLineStyle(),l=c.get("disabled"),s=c.get("focus"),a=c.get("blurScope")}i.useStyle(e.getItemVisual(t,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var u=i.ensureState("emphasis");u.style=o,Object(pt["J"])(this,s,a,l)},t.prototype.updateLayout=function(e,t){var n=this.childAt(0);n.setShape("points",e.getItemLayout(t))},t}(lt["a"]),Cm=wm,Sm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return Object(rt["a"])(t,e),t.prototype.createLine=function(e,t,n){return new Cm(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],i=0,r=1;r<t.length;r++){var o=t[r-1],s=t[r];i+=Cr["dist"](o,s),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,i=this._offsets,r=n.length;if(i){var o,s=this._lastFrame;if(t<this._lastFramePercent){var a=Math.min(s+1,r-1);for(o=a;o>=0;o--)if(i[o]<=t)break;o=Math.min(o,r-2)}else{for(o=s;o<r;o++)if(i[o]>t)break;o=Math.min(o-1,r-2)}var l=(t-i[o])/(i[o+1]-i[o]),c=n[o],u=n[o+1];e.x=c[0]*(1-l)+l*u[0],e.y=c[1]*(1-l)+l*u[1];var h=e.__t<1?u[0]-c[0]:c[0]-u[0],d=e.__t<1?u[1]-c[1]:c[1]-u[1];e.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(_m),xm=Sm,Om=n("9680"),km=n("68ab"),Lm=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),Em=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return Object(rt["a"])(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Lm},t.prototype.buildPath=function(e,t){var n,i=t.segs,r=t.curveness;if(t.polyline)for(n=this._off;n<i.length;){var o=i[n++];if(o>0){e.moveTo(i[n++],i[n++]);for(var s=1;s<o;s++)e.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var a=i[n++],l=i[n++],c=i[n++],u=i[n++];if(e.moveTo(a,l),r>0){var h=(a+c)/2-(l-u)*r,d=(l+u)/2-(c-a)*r;e.quadraticCurveTo(h,d,c,u)}else e.lineTo(c,u)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var s=0,a=0;a<i.length;){var l=i[a++];if(l>0)for(var c=i[a++],u=i[a++],h=1;h<l;h++){var d=i[a++],f=i[a++];if(Om["a"](c,u,d,f,o,e,t))return s}s++}else for(s=0,a=0;a<i.length;){c=i[a++],u=i[a++],d=i[a++],f=i[a++];if(r>0){var p=(c+d)/2-(u-f)*r,g=(u+f)/2-(d-c)*r;if(km["a"](c,u,p,g,d,f,o,e,t))return s}else if(Om["a"](c,u,d,f,o,e,t))return s;s++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.segs,i=1/0,r=1/0,o=-1/0,s=-1/0,a=0;a<n.length;){var l=n[a++],c=n[a++];i=Math.min(l,i),o=Math.max(l,o),r=Math.min(c,r),s=Math.max(c,s)}e=this._rect=new Gi["a"](i,r,o,s)}return e},t}(a["b"]),Dm=function(){function e(){this.group=new lt["a"]}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],i=t.getLayout("linesPoints"),r=n&&n.shape.segs;if(r&&r.length<2e4){var o=r.length,s=new Float32Array(o+i.length);s.set(r),s.set(i,o),n.setShape({segs:s})}else{this._newAdded=[];var a=this._create();a.incremental=!0,a.setShape({segs:i}),this._setCommon(a,t),a.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new Em({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var r=t.getVisual("style");r&&r.stroke&&e.setStyle("stroke",r.stroke),e.setStyle("fill",null);var o=Object(ft["a"])(e);o.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){o.dataIndex=null;var n=e.hoverDataIdx;n>0&&(o.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),Im=Dm,Mm={seriesType:"lines",plan:Object(_n["a"])(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(r,o){var s=[];if(i){var a=void 0,l=r.end-r.start;if(n){for(var c=0,u=r.start;u<r.end;u++)c+=e.getLineCoordsCount(u);a=new Float32Array(l+2*c)}else a=new Float32Array(4*l);var h=0,d=[];for(u=r.start;u<r.end;u++){var f=e.getLineCoords(u,s);n&&(a[h++]=f);for(var p=0;p<f;p++)d=t.dataToPoint(s[p],!1,d),a[h++]=d[0],a[h++]=d[1]}o.setLayout("linesPoints",a)}else for(u=r.start;u<r.end;u++){var g=o.getItemModel(u),m=(f=e.getLineCoords(u,s),[]);if(n)for(var v=0;v<f;v++)m.push(t.dataToPoint(s[v]));else{m[0]=t.dataToPoint(s[0]),m[1]=t.dataToPoint(s[1]);var b=g.get(["lineStyle","curveness"]);+b&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*b,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*b])}o.setItemLayout(u,m)}}}}}},Tm=Mm,Am=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e),o=e.get("zlevel"),s=e.get(["effect","trailLength"]),a=n.getZr(),l="svg"===a.painter.getType();l||a.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||a.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&s>0&&(l||a.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(s/10+.9,1),0)})),r.updateData(i);var c=e.get("clip",!0)&&Xt(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var i=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=Tm.reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),r=!!t.get("polyline"),o=t.pipelineContext,s=o.large;return n&&i===this._hasEffet&&r===this._isPolyline&&s===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=s?new Im:new Wh(r?i?xm:Cm:i?_m:Nh),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=s),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(qt["a"]),Nm=Am,Pm="undefined"===typeof Uint32Array?Array:Uint32Array,jm="undefined"===typeof Float64Array?Array:Float64Array;function Rm(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(y["map"])(t,(function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),Object(y["mergeAll"])([n,e[0],e[1]])})))}var Fm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return Object(rt["a"])(t,e),t.prototype.init=function(t){t.data=t.data||[],Rm(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(Rm(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Object(y["concatArray"])(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(y["concatArray"])(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],r=0;r<i;r++)t[r]=t[r]||[],t[r][0]=this._flatCoords[n+2*r],t[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(e);for(r=0;r<o.length;r++)t[r]=t[r]||[],t[r][0]=o[r][0],t[r][1]=o[r][1];return o.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),Object(y["isNumber"])(e[0])){for(var n=e.length,i=new Pm(n),r=new jm(n),o=0,s=0,a=0,l=0;l<n;){a++;var c=e[l++];i[s++]=o+t,i[s++]=c;for(var u=0;u<c;u++){var h=e[l++],d=e[l++];r[o++]=h,r[o++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,s),flatCoords:r,count:a}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new ji["a"](["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,i,r){if(e instanceof Array)return NaN;n.hasItemOption=!0;var o=e.value;return null!=o?o instanceof Array?o[r]:o:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=i.getItemModel(e),o=r.get("name");if(o)return o;var s=r.get("fromName"),a=r.get("toName"),l=[];return null!=s&&l.push(s),null!=a&&l.push(a),Object(Bo["c"])("nameValue",{name:l.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(st["b"]),Bm=Fm;function Wm(e){return e instanceof Array||(e=[e,e]),e}var Vm={seriesType:"lines",reset:function(e){var t=Wm(e.get("symbol")),n=Wm(e.get("symbolSize")),i=e.getData();function r(e,t){var n=e.getItemModel(t),i=Wm(n.getShallow("symbol",!0)),r=Wm(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),r[0]&&e.setItemVisual(t,"fromSymbolSize",r[0]),r[1]&&e.setItemVisual(t,"toSymbolSize",r[1])}return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?r:null}}},zm=Vm;function Hm(e){e.registerChartView(Nm),e.registerSeriesModel(Bm),e.registerLayout(Tm),e.registerVisual(zm)}var Um=256,qm=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=re["d"].createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,i,r,o){var s=this._getBrush(),a=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),c=this.pointSize+this.blurSize,u=this.canvas,h=u.getContext("2d"),d=e.length;u.width=t,u.height=n;for(var f=0;f<d;++f){var p=e[f],g=p[0],m=p[1],v=p[2],b=i(v);h.globalAlpha=b,h.drawImage(s,g-c,m-c)}if(!u.width||!u.height)return u;var y=h.getImageData(0,0,u.width,u.height),_=y.data,w=0,C=_.length,S=this.minOpacity,x=this.maxOpacity,O=x-S;while(w<C){b=_[w+3]/256;var k=4*Math.floor(b*(Um-1));if(b>0){var L=o(b)?a:l;b>0&&(b=b*O+S),_[w++]=L[k],_[w++]=L[k+1],_[w++]=L[k+2],_[w++]=L[k+3]*b*256}else w+=4}return h.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=re["d"].createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},e}(),$m=qm;function Km(e,t,n){var i=e[1]-e[0];t=y["map"](t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}));var r=t.length,o=0;return function(e){var i;for(i=o;i<r;i++){var s=t[i].interval;if(s[0]<=e&&e<=s[1]){o=i;break}}if(i===r)for(i=o-1;i>=0;i--){s=t[i].interval;if(s[0]<=e&&e<=s[1]){o=i;break}}return i>=0&&i<r&&n[i]}}function Gm(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}function Ym(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var Zm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),this._progressiveEls=null,this.group.removeAll();var r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):Ym(r)&&this._renderOnGeo(r,e,i,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,i){var r=t.coordinateSystem;r&&(Ym(r)?this.render(t,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){dt["traverseElements"](this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,r){var o,s,a,l,c=e.coordinateSystem,u=Qt(c,"cartesian2d");if(u){var h=c.getAxis("x"),d=c.getAxis("y");0,o=h.getBandWidth()+.5,s=d.getBandWidth()+.5,a=h.scale.getExtent(),l=d.scale.getExtent()}for(var f=this.group,p=e.getData(),g=e.getModel(["emphasis","itemStyle"]).getItemStyle(),m=e.getModel(["blur","itemStyle"]).getItemStyle(),v=e.getModel(["select","itemStyle"]).getItemStyle(),b=e.get(["itemStyle","borderRadius"]),y=Object(bt["e"])(e),_=e.getModel("emphasis"),w=_.get("focus"),C=_.get("blurScope"),S=_.get("disabled"),x=u?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],O=n;O<i;O++){var k=void 0,L=p.getItemVisual(O,"style");if(u){var E=p.get(x[0],O),D=p.get(x[1],O);if(isNaN(p.get(x[2],O))||isNaN(E)||isNaN(D)||E<a[0]||E>a[1]||D<l[0]||D>l[1])continue;var I=c.dataToPoint([E,D]);k=new $t["a"]({shape:{x:I[0]-o/2,y:I[1]-s/2,width:o,height:s},style:L})}else{if(isNaN(p.get(x[1],O)))continue;k=new $t["a"]({z2:1,shape:c.dataToRect([p.get(x[0],O)]).contentShape,style:L})}if(p.hasItemOption){var M=p.getItemModel(O),T=M.getModel("emphasis");g=T.getModel("itemStyle").getItemStyle(),m=M.getModel(["blur","itemStyle"]).getItemStyle(),v=M.getModel(["select","itemStyle"]).getItemStyle(),b=M.get(["itemStyle","borderRadius"]),w=T.get("focus"),C=T.get("blurScope"),S=T.get("disabled"),y=Object(bt["e"])(M)}k.shape.r=b;var A=e.getRawValue(O),N="-";A&&null!=A[2]&&(N=A[2]+""),Object(bt["g"])(k,y,{labelFetcher:e,labelDataIndex:O,defaultOpacity:L.opacity,defaultText:N}),k.ensureState("emphasis").style=g,k.ensureState("blur").style=m,k.ensureState("select").style=v,Object(pt["J"])(k,w,C,S),k.incremental=r,r&&(k.states.emphasis.hoverLayer=!0),f.add(k),p.setItemGraphicEl(O,k),this._progressiveEls&&this._progressiveEls.push(k)}},t.prototype._renderOnGeo=function(e,t,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,s=t.getData(),a=this._hmLayer||this._hmLayer||new $m;a.blurSize=t.get("blurSize"),a.pointSize=t.get("pointSize"),a.minOpacity=t.get("minOpacity"),a.maxOpacity=t.get("maxOpacity");var c=e.getViewRect().clone(),u=e.getRoamTransform();c.applyTransform(u);var h=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,i.getWidth()),p=Math.min(c.height+c.y,i.getHeight()),g=f-h,m=p-d,v=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],b=s.mapArray(v,(function(t,n,i){var r=e.dataToPoint([t,n]);return r[0]-=h,r[1]-=d,r.push(i),r})),y=n.getExtent(),_="visualMap.continuous"===n.type?Gm(y,n.option.range):Km(y,n.getPieceList(),n.option.selected);a.update(b,g,m,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},_);var w=new l["a"]({style:{width:g,height:m,x:h,y:d,image:a.canvas},silent:!0});this.group.add(w)},t.type="heatmap",t}(qt["a"]),Xm=Zm,Qm=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e,t){return Object(ot["a"])(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=rd["a"].get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(st["b"]),Jm=Qm;function ev(e){e.registerChartView(Xm),e.registerSeriesModel(Jm)}var tv=["itemStyle","borderWidth"],nv=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],iv=new $o["a"],rv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=this.group,r=e.getData(),o=this._data,s=e.coordinateSystem,a=s.getBaseAxis(),l=a.isHorizontal(),c=s.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:s,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:nv[+l],categoryDim:nv[1-+l]};r.diff(o).add((function(e){if(r.hasValue(e)){var t=mv(r,e),n=ov(r,e,t,u),o=yv(r,u,n);r.setItemGraphicEl(e,o),i.add(o),Ov(o,u,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var s=mv(r,e),a=ov(r,e,s,u),l=Cv(r,a);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(e,null),n=null),n?_v(n,u,a):n=yv(r,u,a,!0),r.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=a,i.add(n),Ov(n,u,a)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&wv(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute();var h=e.get("clip",!0)?Xt(e.coordinateSystem,!1,e):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=r,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){wv(i,Object(ft["a"])(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(qt["a"]);function ov(e,t,n,i){var r=e.getItemLayout(t),o=n.get("symbolRepeat"),s=n.get("symbolClip"),a=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),c=(l||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),d={dataIndex:t,layout:r,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:s,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:c,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};sv(n,o,r,i,d),lv(e,t,r,o,s,d.boundingLength,d.pxSign,u,i,d),cv(n,d.symbolScale,c,i,d);var f=d.symbolSize,p=Object(at["b"])(n.get("symbolOffset"),f);return uv(n,f,r,o,s,p,a,d.valueLineWidth,d.boundingLength,d.repeatCutLength,i,d),d}function sv(e,t,n,i,r){var o,s=i.valueDim,a=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),c=l.toGlobalCoord(l.dataToCoord(0)),u=1-+(n[s.wh]<=0);if(y["isArray"](a)){var h=[av(l,a[0])-c,av(l,a[1])-c];h[1]<h[0]&&h.reverse(),o=h[u]}else o=null!=a?av(l,a)-c:t?i.coordSysExtent[s.index][u]-c:n[s.wh];r.boundingLength=o,t&&(r.repeatCutLength=n[s.wh]),r.pxSign=o>0?1:-1}function av(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function lv(e,t,n,i,r,o,s,a,l,c){var u,h=l.valueDim,d=l.categoryDim,f=Math.abs(n[d.wh]),p=e.getItemVisual(t,"symbolSize");u=y["isArray"](p)?p.slice():null==p?["100%","100%"]:[p,p],u[d.index]=Object(Gt["q"])(u[d.index],f),u[h.index]=Object(Gt["q"])(u[h.index],i?f:Math.abs(o)),c.symbolSize=u;var g=c.symbolScale=[u[0]/a,u[1]/a];g[h.index]*=(l.isHorizontal?-1:1)*s}function cv(e,t,n,i,r){var o=e.get(tv)||0;o&&(iv.attr({scaleX:t[0],scaleY:t[1],rotation:n}),iv.updateTransform(),o/=iv.getLineScale(),o*=t[i.valueDim.index]),r.valueLineWidth=o||0}function uv(e,t,n,i,r,o,s,a,l,c,u,h){var d=u.categoryDim,f=u.valueDim,p=h.pxSign,g=Math.max(t[f.index]+a,0),m=g;if(i){var v=Math.abs(l),b=y["retrieve"](e.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var w=Object(Gt["q"])(b,t[f.index]),C=Math.max(g+2*w,0),S=_?0:2*w,x=Object(Gt["k"])(i),O=x?i:kv((v+S)/C),k=v-O*g;w=k/2/(_?O:Math.max(O-1,1)),C=g+2*w,S=_?0:2*w,x||"fixed"===i||(O=c?kv((Math.abs(c)+S)/C):0),m=O*C-S,h.repeatTimes=O,h.symbolMargin=w}var L=p*(m/2),E=h.pathPosition=[];E[d.index]=n[d.wh]/2,E[f.index]="start"===s?L:"end"===s?l-L:l/2,o&&(E[0]+=o[0],E[1]+=o[1]);var D=h.bundlePosition=[];D[d.index]=n[d.xy],D[f.index]=n[f.xy];var I=h.barRectShape=y["extend"]({},n);I[f.wh]=p*Math.max(Math.abs(n[f.wh]),Math.abs(E[f.index]+L)),I[d.wh]=n[d.wh];var M=h.clipShape={};M[d.xy]=-n[d.xy],M[d.wh]=u.ecSize[d.wh],M[f.xy]=0,M[f.wh]=n[f.wh]}function hv(e){var t=e.symbolPatternSize,n=Object(at["a"])(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function dv(e,t,n,i){var r=e.__pictorialBundle,o=n.symbolSize,s=n.valueLineWidth,a=n.pathPosition,l=t.valueDim,c=n.repeatTimes||0,u=0,h=o[t.valueDim.index]+s+2*n.symbolMargin;for(Sv(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u<c?xv(e,null,p(u),n,i):xv(e,null,{scaleX:0,scaleY:0},n,i,(function(){r.remove(e)})),u++}));u<c;u++){var d=hv(n);d.__pictorialAnimationIndex=u,d.__pictorialRepeatTimes=c,r.add(d);var f=p(u);xv(d,{x:f.x,y:f.y,scaleX:0,scaleY:0},{scaleX:f.scaleX,scaleY:f.scaleY,rotation:f.rotation},n,i)}function p(e){var t=a.slice(),i=n.pxSign,r=e;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=c-1-e),t[l.index]=h*(r-c/2+.5)+a[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function fv(e,t,n,i){var r=e.__pictorialBundle,o=e.__pictorialMainPath;o?xv(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=e.__pictorialMainPath=hv(n),r.add(o),xv(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function pv(e,t,n){var i=y["extend"]({},t.barRectShape),r=e.__pictorialBarRect;r?xv(r,null,{shape:i},t,n):(r=e.__pictorialBarRect=new $t["a"]({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.disableMorphing=!0,e.add(r))}function gv(e,t,n,i){if(n.symbolClip){var r=e.__pictorialClipPath,o=y["extend"]({},n.clipShape),s=t.valueDim,a=n.animationModel,l=n.dataIndex;if(r)ht["h"](r,{shape:o},a,l);else{o[s.wh]=0,r=new $t["a"]({shape:o}),e.__pictorialBundle.setClipPath(r),e.__pictorialClipPath=r;var c={};c[s.wh]=n.clipShape[s.wh],dt[i?"updateProps":"initProps"](r,{shape:c},a,l)}}}function mv(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=vv,n.isAnimationEnabled=bv,n}function vv(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function bv(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function yv(e,t,n,i){var r=new lt["a"],o=new lt["a"];return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?dv(r,t,n):fv(r,t,n),pv(r,n,i),gv(r,t,n,i),r.__pictorialShapeStr=Cv(e,n),r.__pictorialSymbolMeta=n,r}function _v(e,t,n){var i=n.animationModel,r=n.dataIndex,o=e.__pictorialBundle;ht["h"](o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?dv(e,t,n,!0):fv(e,t,n,!0),pv(e,n,!0),gv(e,t,n,!0)}function wv(e,t,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];Sv(i,(function(e){o.push(e)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),y["each"](o,(function(e){ht["e"](e,{scaleX:0,scaleY:0},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function Cv(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Sv(e,t,n){y["each"](e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function xv(e,t,n,i,r,o){t&&e.attr(t),i.symbolClip&&!r?n&&e.attr(n):n&&dt[r?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,o)}function Ov(e,t,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),s=o.getModel("itemStyle").getItemStyle(),a=r.getModel(["blur","itemStyle"]).getItemStyle(),c=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),h=o.get("focus"),d=o.get("blurScope"),f=o.get("scale");Sv(e,(function(e){if(e instanceof l["a"]){var t=e.style;e.useStyle(y["extend"]({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=s,f&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=a,e.ensureState("select").style=c,u&&(e.cursor=u),e.z2=n.z2}));var p=t.valueDim.posDesc[+(n.boundingLength>0)],g=e.__pictorialBarRect;g.ignoreClip=!0,Object(bt["g"])(g,Object(bt["e"])(r),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:mt(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Object(pt["J"])(e,h,d,o.get("disabled"))}function kv(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var Lv=rv,Ev=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Object(Dn["d"])(En.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(En),Dv=Ev;function Iv(e){e.registerChartView(Lv),e.registerSeriesModel(Dv),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Object(y["curry"])(kn["c"],"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Object(kn["a"])("pictorialBar"))}var Mv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this,o=this.group,s=e.getLayerSeries(),a=i.getLayout("layoutInfo"),l=a.rect,c=a.boundaryGap;function u(e){return e.name}o.x=0,o.y=l.y+c[0];var h=new _c["a"](this._layersSeries||[],s,u,u),d=[];function f(t,n,a){var l=r._layers;if("remove"!==t){for(var c,u,h=[],f=[],p=s[n].indices,g=0;g<p.length;g++){var m=i.getItemLayout(p[g]),v=m.x,b=m.y0,y=m.y;h.push(v,b),f.push(v,b+y),c=i.getItemVisual(p[g],"style")}var _=i.getItemLayout(p[0]),w=e.getModel("label"),C=w.get("margin"),S=e.getModel("emphasis");if("add"===t){var x=d[n]=new lt["a"];u=new Ut({shape:{points:h,stackedOnPoints:f,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),x.add(u),o.add(x),e.isAnimationEnabled()&&u.setClipPath(Tv(u.getBoundingRect(),e,(function(){u.removeClipPath()})))}else{x=l[a];u=x.childAt(0),o.add(x),d[n]=x,ht["h"](u,{shape:{points:h,stackedOnPoints:f}},e),Object(ht["g"])(u)}Object(bt["g"])(u,Object(bt["e"])(e),{labelDataIndex:p[g-1],defaultText:i.getName(p[g-1]),inheritColor:c.fill},{normal:{verticalAlign:"middle"}}),u.setTextConfig({position:null,local:!0});var O=u.getTextContent();O&&(O.x=_.x-C,O.y=_.y0+_.y/2),u.useStyle(c),i.setItemGraphicEl(n,u),Object(pt["I"])(u,e),Object(pt["J"])(u,S.get("focus"),S.get("blurScope"),S.get("disabled"))}else o.remove(l[n])}h.add(Object(y["bind"])(f,this,"add")).update(Object(y["bind"])(f,this,"update")).remove(Object(y["bind"])(f,this,"remove")).execute(),this._layersSeries=s,this._layers=d},t.type="themeRiver",t}(qt["a"]);function Tv(e,t,n){var i=new $t["a"]({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return ht["c"](i,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),i}var Av=Mv,Nv=2,Pv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wi(y["bind"](this.getData,this),y["bind"](this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},i=Object(Pt["j"])(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),r=[];i.buckets.each((function(e,t){r.push({name:t,dataList:e})}));for(var o=r.length,s=0;s<o;++s){for(var a=r[s].name,l=0;l<r[s].dataList.length;++l){var c=r[s].dataList[l][0]+"";n[c]=s}for(var c in n)n.hasOwnProperty(c)&&n[c]!==s&&(n[c]=s,e[t]=[c,0,a],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",Pt["b"]).models[0],i=n.get("type"),r=y["filter"](e.data,(function(e){return void 0!==e[2]})),o=this.fixData(r||[]),s=[],a=this.nameMap=y["createHashMap"](),l=0,c=0;c<o.length;++c)s.push(o[c][Nv]),a.get(o[c][Nv])||(a.set(o[c][Nv],l),l++);var u=Object(Pi["b"])(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Object(vg["a"])(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new ji["a"](u,this);return h.initData(o),h},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],i=0;i<t;++i)n[i]=i;var r=e.mapDimension("single"),o=Object(Pt["j"])(n,(function(t){return e.get("name",t)})),s=[];return o.buckets.each((function(t,n){t.sort((function(t,n){return e.get(r,t)-e.get(r,n)})),s.push({name:n,indices:t})})),s},t.prototype.getAxisTooltipData=function(e,t,n){y["isArray"](e)||(e=e?[e]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),s=[],a=o.length,l=0;l<a;++l){for(var c=Number.MAX_VALUE,u=-1,h=o[l].indices.length,d=0;d<h;++d){var f=r.get(e[0],o[l].indices[d]),p=Math.abs(f-t);p<=c&&(i=f,c=p,u=o[l].indices[d])}s.push(u)}return{dataIndices:s,nestestValue:i}},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=i.getName(e),o=i.get(i.mapDimension("value"),e);return Object(Bo["c"])("nameValue",{name:r,value:o})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(st["b"]),jv=Pv;function Rv(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=e.get("boundaryGap"),s=n.getAxis();if(i.boundaryGap=o,"horizontal"===s.orient){o[0]=Gt["q"](o[0],r.height),o[1]=Gt["q"](o[1],r.height);var a=r.height-o[0]-o[1];Fv(t,e,a)}else{o[0]=Gt["q"](o[0],r.width),o[1]=Gt["q"](o[1],r.width);var l=r.width-o[0]-o[1];Fv(t,e,l)}t.setLayout("layoutInfo",i)}))}function Fv(e,t,n){if(e.count())for(var i,r=t.coordinateSystem,o=t.getLayerSeries(),s=e.mapDimension("single"),a=e.mapDimension("value"),l=y["map"](o,(function(t){return y["map"](t.indices,(function(t){var n=r.dataToPoint(e.get(s,t));return n[1]=e.get(a,t),n}))})),c=Bv(l),u=c.y0,h=n/c.max,d=o.length,f=o[0].indices.length,p=0;p<f;++p){i=u[p]*h,e.setItemLayout(o[0].indices[p],{layerIndex:0,x:l[0][p][0],y0:i,y:l[0][p][1]*h});for(var g=1;g<d;++g)i+=l[g-1][p][1]*h,e.setItemLayout(o[g].indices[p],{layerIndex:g,x:l[g][p][0],y0:i,y:l[g][p][1]*h})}}function Bv(e){for(var t=e.length,n=e[0].length,i=[],r=[],o=0,s=0;s<n;++s){for(var a=0,l=0;l<t;++l)a+=e[l][s][1];a>o&&(o=a),i.push(a)}for(var c=0;c<n;++c)r[c]=(o-i[c])/2;o=0;for(var u=0;u<n;++u){var h=i[u]+r[u];h>o&&(o=h)}return{y0:r,max:o}}function Wv(e){e.registerChartView(Av),e.registerSeriesModel(jv),e.registerLayout(Rv),e.registerProcessor(wi("themeRiver"))}var Vv=n("857d"),zv=2,Hv=4,Uv=function(e){function t(t,n,i,r){var o=e.call(this)||this;o.z2=zv,o.textConfig={inside:!0},Object(ft["a"])(o).seriesIndex=n.seriesIndex;var s=new ie["a"]({z2:Hv,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,n,i,r),o}return Object(rt["a"])(t,e),t.prototype.updateData=function(e,t,n,i,r){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;Object(ft["a"])(o).dataIndex=t.dataIndex;var s=t.getModel(),a=s.getModel("emphasis"),l=t.getLayout(),c=y["extend"]({},l);c.label=null;var u=t.getVisual("style");u.lineJoin="bevel";var h=t.getVisual("decal");h&&(u.decal=Object(ba["a"])(h,r));var d=Wn(s.getModel("itemStyle"),c,!0);y["extend"](c,d),y["each"](pt["g"],(function(e){var t=o.ensureState(e),n=s.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=Wn(n,c);i&&(t.shape=i)})),e?(o.setShape(c),o.shape.r=l.r0,ht["c"](o,{shape:{r:l.r}},n,t.dataIndex)):(ht["h"](o,{shape:c},n),Object(ht["g"])(o)),o.useStyle(u),this._updateLabel(n);var f=s.getShallow("cursor");f&&o.attr("cursor",f),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var p=a.get("focus"),g="ancestor"===p?t.getAncestorsIndices():"descendant"===p?t.getDescendantIndices():p;Object(pt["J"])(this,g,a.get("blurScope"),a.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,s=(r.startAngle+r.endAngle)/2,a=Math.cos(s),l=Math.sin(s),c=this,u=c.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,f=i.get("show")&&!(null!=d&&Math.abs(o)<d);function p(e,t){var n=e.get(t);return null==n?i.get(t):n}u.ignore=!f,y["each"](pt["a"],(function(i){var d="normal"===i?n.getModel("label"):n.getModel([i,"label"]),f="normal"===i,g=f?u:u.ensureState(i),m=e.getFormattedLabel(h,i);f&&(m=m||t.node.name),g.style=Object(bt["c"])(d,{},null,"normal"!==i,!0),m&&(g.style.text=m);var v=d.get("show");null==v||f||(g.ignore=!v);var b,_=p(d,"position"),w=f?c:c.states[i],C=w.style.fill;w.textConfig={outsideFill:"inherit"===d.get("color")?C:null,inside:"outside"!==_};var S=p(d,"distance")||0,x=p(d,"align"),O=p(d,"rotate"),k=.5*Math.PI,L=1.5*Math.PI,E=Object(Vv["a"])("tangential"===O?Math.PI/2-s:s),D=E>k&&!Object(Gt["l"])(E-k)&&E<L;"outside"===_?(b=r.r+S,x=D?"right":"left"):x&&"center"!==x?"left"===x?(b=r.r0+S,x=D?"right":"left"):"right"===x&&(b=r.r-S,x=D?"left":"right"):(b=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,x="center"),g.style.align=x,g.style.verticalAlign=p(d,"verticalAlign")||"middle",g.x=b*a+r.cx,g.y=b*l+r.cy;var I=0;"radial"===O?I=Object(Vv["a"])(-s)+(D?Math.PI:0):"tangential"===O?I=Object(Vv["a"])(Math.PI/2-s)+(D?Math.PI:0):y["isNumber"](O)&&(I=O*Math.PI/180),g.rotation=Object(Vv["a"])(I)})),u.dirtyStyle()},t}(Kt["a"]),qv=Uv,$v="sunburstRootToNode",Kv="sunburstHighlight",Gv="sunburstUnhighlight";function Yv(e){e.registerAction({type:$v,update:"updateView"},(function(e,t){function n(t,n){var i=Jl(e,[$v],t);if(i){var r=t.getViewRoot();r&&(e.direction=tc(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:Kv,update:"none"},(function(e,t,n){function i(t){var n=Jl(e,[Kv],t);n&&(e.dataIndex=n.node.dataIndex)}e=Object(y["extend"])({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i),n.dispatchAction(Object(y["extend"])(e,{type:"highlight"}))})),e.registerAction({type:Gv,update:"updateView"},(function(e,t,n){e=Object(y["extend"])({},e),n.dispatchAction(Object(y["extend"])(e,{type:"downplay"}))}))}var Zv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n,i){var r=this;this.seriesModel=e,this.api=n,this.ecModel=t;var o=e.getData(),s=o.tree.root,a=e.getViewRoot(),l=this.group,c=e.get("renderLabelForZeroData"),u=[];a.eachNode((function(e){u.push(e)}));var h=this._oldChildren||[];function d(e,t){function n(e){return e.getId()}function i(n,i){var r=null==n?null:e[n],o=null==i?null:t[i];f(r,o)}0===e.length&&0===t.length||new _c["a"](t,e,n,n).add(i).update(i).remove(y["curry"](i,null)).execute()}function f(i,r){if(c||!i||i.getValue()||(i=null),i!==s&&r!==s)if(r&&r.piece)i?(r.piece.updateData(!1,i,e,t,n),o.setItemGraphicEl(i.dataIndex,r.piece)):p(r);else if(i){var a=new qv(i,e,t,n);l.add(a),o.setItemGraphicEl(i.dataIndex,a)}}function p(e){e&&e.piece&&(l.remove(e.piece),e.piece=null)}function g(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,e,t,n):(r.virtualPiece=new qv(i,e,t,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(e){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}d(u,h),g(s,a),this._initEvents(),this._oldChildren=u},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===t.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)e._rootToNode(i);else if("link"===r){var o=i.getModel(),s=o.get("link");if(s){var a=o.get("target",!0)||"_blank";Object(Jt["k"])(s,a)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:$v,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var r=e[0]-i.cx,o=e[1]-i.cy,s=Math.sqrt(r*r+o*o);return s<=i.r&&s>=i.r0}},t.type="sunburst",t}(qt["a"]),Xv=Zv,Qv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return Object(rt["a"])(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};Jv(n);var i=this._levelModels=y["map"](e.levels||[],(function(e){return new Ur["a"](e,this,t)}),this),r=Ql.createTree(n,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t),o=i[n.depth];return o&&(e.parentModel=o),e}))}return r.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=nc(i,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){gc(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(st["b"]);function Jv(e){var t=0;y["each"](e.children,(function(e){Jv(e);var n=e.value;y["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;y["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),y["isArray"](e.value)?e.value[0]=n:e.value=n}var eb=Qv,tb=Math.PI/180;function nb(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");y["isArray"](i)||(i=[0,i]),y["isArray"](t)||(t=[t,t]);var r=n.getWidth(),o=n.getHeight(),s=Math.min(r,o),a=Object(Gt["q"])(t[0],r),l=Object(Gt["q"])(t[1],o),c=Object(Gt["q"])(i[0],s/2),u=Object(Gt["q"])(i[1],s/2),h=-e.get("startAngle")*tb,d=e.get("minAngle")*tb,f=e.getData().tree.root,p=e.getViewRoot(),g=p.depth,m=e.get("sort");null!=m&&ib(p,m);var v=0;y["each"](p.children,(function(e){!isNaN(e.getValue())&&v++}));var b=p.getValue(),_=Math.PI/(b||v)*2,w=p.depth>0,C=p.height-(w?-1:1),S=(u-c)/(C||1),x=e.get("clockwise"),O=e.get("stillShowZeroSum"),k=x?1:-1,L=function(t,n){if(t){var i=n;if(t!==f){var r=t.getValue(),o=0===b&&O?_:r*_;o<d&&(o=d),i=n+k*o;var u=t.depth-g-(w?-1:1),h=c+S*u,p=c+S*(u+1),m=e.getLevelModel(t);if(m){var v=m.get("r0",!0),C=m.get("r",!0),E=m.get("radius",!0);null!=E&&(v=E[0],C=E[1]),null!=v&&(h=Object(Gt["q"])(v,s/2)),null!=C&&(p=Object(Gt["q"])(C,s/2))}t.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:x,cx:a,cy:l,r0:h,r:p})}if(t.children&&t.children.length){var D=0;y["each"](t.children,(function(e){D+=L(e,n+D)}))}return i-n}};if(w){var E=c,D=c+S,I=2*Math.PI;f.setLayout({angle:I,startAngle:h,endAngle:h+I,clockwise:x,cx:a,cy:l,r0:E,r:D})}L(p,h)}))}function ib(e,t){var n=e.children||[];e.children=rb(n,t),n.length&&y["each"](e.children,(function(e){ib(e,t)}))}function rb(e,t){if(y["isFunction"](t)){var n=y["map"](e,(function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}}));return n.sort((function(e,n){return t(e.params,n.params)})),y["map"](n,(function(t){return e[t.index]}))}var i="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(i?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(i?-1:1):n}))}function ob(e){var t={};function n(e,n,i){var r=e;while(r&&r.depth>1)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",t);return e.depth>1&&Object(y["isString"])(o)&&(o=Object(oe["lift"])(o,(e.depth-1)/(i-1)*.5)),o}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),i=t.tree;i.eachNode((function(r){var o=r.getModel(),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=n(r,e,i.root.height));var a=t.ensureUniqueItemVisual(r.dataIndex,"style");Object(y["extend"])(a,s)}))}))}function sb(e){e.registerChartView(Xv),e.registerSeriesModel(eb),e.registerLayout(Object(y["curry"])(nb,"sunburst")),e.registerProcessor(Object(y["curry"])(wi,"sunburst")),e.registerVisual(ob),Yv(e)}var ab={color:"fill",borderColor:"stroke"},lb={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},cb=Object(Pt["o"])(),ub=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return Object(ot["a"])(null,this)},t.prototype.getDataParams=function(t,n,i){var r=e.prototype.getDataParams.call(this,t,n);return i&&(r.info=cb(i).info),r},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(st["b"]),hb=ub;function db(e,t){return t=t||[0,0],y["map"](["x","y"],(function(n,i){var r=this.getAxis(n),o=t[i],s=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-s)-r.dataToCoord(o+s))}),this)}function fb(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:y["bind"](db,e)}}}function pb(e,t){return t=t||[0,0],y["map"]([0,1],(function(n){var i=t[n],r=e[n]/2,o=[],s=[];return o[n]=i-r,s[n]=i+r,o[1-n]=s[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(s)[n])}),this)}function gb(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:y["bind"](pb,e)}}}function mb(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function vb(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Object(y["bind"])(mb,e)}}}function bb(e,t){return t=t||[0,0],y["map"](["Radius","Angle"],(function(n,i){var r="get"+n+"Axis",o=this[r](),s=t[i],a=e[i]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(s-a)-o.dataToCoord(s+a));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function yb(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=t.dataToRadius(i[0]),o=n.dataToAngle(i[1]),s=e.coordToPoint([r,o]);return s.push(r,o*Math.PI/180),s},size:y["bind"](bb,e)}}}function _b(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}function wb(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||Object(y["hasOwn"])(e,"text")))}function Cb(e,t,n){var i,r,o,s=e;if("text"===t)o=s;else{o={},Object(y["hasOwn"])(s,"text")&&(o.text=s.text),Object(y["hasOwn"])(s,"rich")&&(o.rich=s.rich),Object(y["hasOwn"])(s,"textFill")&&(o.fill=s.textFill),Object(y["hasOwn"])(s,"textStroke")&&(o.stroke=s.textStroke),Object(y["hasOwn"])(s,"fontFamily")&&(o.fontFamily=s.fontFamily),Object(y["hasOwn"])(s,"fontSize")&&(o.fontSize=s.fontSize),Object(y["hasOwn"])(s,"fontStyle")&&(o.fontStyle=s.fontStyle),Object(y["hasOwn"])(s,"fontWeight")&&(o.fontWeight=s.fontWeight),r={type:"text",style:o,silent:!0},i={};var a=Object(y["hasOwn"])(s,"textPosition");n?i.position=a?s.textPosition:"inside":a&&(i.position=s.textPosition),Object(y["hasOwn"])(s,"textPosition")&&(i.position=s.textPosition),Object(y["hasOwn"])(s,"textOffset")&&(i.offset=s.textOffset),Object(y["hasOwn"])(s,"textRotation")&&(i.rotation=s.textRotation),Object(y["hasOwn"])(s,"textDistance")&&(i.distance=s.textDistance)}return Sb(o,e),Object(y["each"])(o.rich,(function(e){Sb(e,e)})),{textConfig:i,textContent:r}}function Sb(e,t){t&&(t.font=t.textFont||t.font,Object(y["hasOwn"])(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(y["hasOwn"])(t,"textAlign")&&(e.align=t.textAlign),Object(y["hasOwn"])(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(y["hasOwn"])(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(y["hasOwn"])(t,"textWidth")&&(e.width=t.textWidth),Object(y["hasOwn"])(t,"textHeight")&&(e.height=t.textHeight),Object(y["hasOwn"])(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(y["hasOwn"])(t,"textPadding")&&(e.padding=t.textPadding),Object(y["hasOwn"])(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(y["hasOwn"])(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(y["hasOwn"])(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(y["hasOwn"])(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(y["hasOwn"])(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(y["hasOwn"])(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(y["hasOwn"])(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function xb(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=e.fill||"#000";Ob(i,t);var s=null==i.textFill;return r?s&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(s&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,Object(y["each"])(t.rich,(function(e){Ob(e,e)})),i}function Ob(e,t){t&&(Object(y["hasOwn"])(t,"fill")&&(e.textFill=t.fill),Object(y["hasOwn"])(t,"stroke")&&(e.textStroke=t.fill),Object(y["hasOwn"])(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(y["hasOwn"])(t,"font")&&(e.font=t.font),Object(y["hasOwn"])(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(y["hasOwn"])(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(y["hasOwn"])(t,"fontSize")&&(e.fontSize=t.fontSize),Object(y["hasOwn"])(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(y["hasOwn"])(t,"align")&&(e.textAlign=t.align),Object(y["hasOwn"])(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(y["hasOwn"])(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(y["hasOwn"])(t,"width")&&(e.textWidth=t.width),Object(y["hasOwn"])(t,"height")&&(e.textHeight=t.height),Object(y["hasOwn"])(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(y["hasOwn"])(t,"padding")&&(e.textPadding=t.padding),Object(y["hasOwn"])(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(y["hasOwn"])(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(y["hasOwn"])(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(y["hasOwn"])(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(y["hasOwn"])(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(y["hasOwn"])(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(y["hasOwn"])(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(y["hasOwn"])(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(y["hasOwn"])(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(y["hasOwn"])(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(y["hasOwn"])(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var kb=n("06ad"),Lb={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Eb=Object(y["keys"])(Lb),Db=(Object(y["reduce"])(z["a"],(function(e,t){return e[t]=1,e}),{}),z["a"].join(", "),["","style","shape","extra"]),Ib=Object(Pt["o"])();function Mb(e,t,n,i,r){var o=e+"Animation",s=Object(ht["a"])(e,i,r)||{},a=Ib(t).userDuring;return s.duration>0&&(s.during=a?Object(y["bind"])(Vb,{el:t,userDuring:a}):null,s.setToFinal=!0,s.scope=e),Object(y["extend"])(s,n[o]),s}function Tb(e,t,n,i){i=i||{};var r=i.dataIndex,o=i.isInit,s=i.clearStyle,a=n.isAnimationEnabled(),l=Ib(e),c=t.style;l.userDuring=t.during;var u={},h={};if(qb(e,t,h),Hb("shape",t,h),Hb("extra",t,h),!o&&a&&(Ub(e,t,u),zb("shape",e,t,u),zb("extra",e,t,u),$b(e,t,c,u)),h.style=c,jb(e,h,s),Fb(e,t),a)if(o){var d={};Object(y["each"])(Db,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(d[e]=d[e]||{}),Object(y["extend"])(e?d[e]:d,n.enterFrom))}));var f=Mb("enter",e,t,n,r);f.duration>0&&e.animateFrom(d,f)}else Rb(e,t,r||0,n,u);Ab(e,t),c?e.dirty():e.markRedraw()}function Ab(e,t){for(var n=Ib(e).leaveToProps,i=0;i<Db.length;i++){var r=Db[i],o=r?t[r]:t;o&&o.leaveTo&&(n||(n=Ib(e).leaveToProps={}),r&&(n[r]=n[r]||{}),Object(y["extend"])(r?n[r]:n,o.leaveTo))}}function Nb(e,t,n,i){if(e){var r=e.parent,o=Ib(e).leaveToProps;if(o){var s=Mb("update",e,t,n,0);s.done=function(){r.remove(e),i&&i()},e.animateTo(o,s)}else r.remove(e),i&&i()}}function Pb(e){return"all"===e}function jb(e,t,n){var i=t.style;if(!e.isGroup&&i){if(n){e.useStyle({});for(var r=e.animators,o=0;o<r.length;o++){var s=r[o];"style"===s.targetName&&s.changeTarget(e.style)}}e.setStyle(i)}t&&(t.style=null,t&&e.attr(t),t.style=i)}function Rb(e,t,n,i,r){if(r){var o=Mb("update",e,t,i,n);o.duration>0&&e.animateFrom(r,o)}}function Fb(e,t){Object(y["hasOwn"])(t,"silent")&&(e.silent=t.silent),Object(y["hasOwn"])(t,"ignore")&&(e.ignore=t.ignore),e instanceof ya["c"]&&Object(y["hasOwn"])(t,"invisible")&&(e.invisible=t.invisible),e instanceof a["b"]&&Object(y["hasOwn"])(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Bb={},Wb={setTransform:function(e,t){return Bb.el[e]=t,this},getTransform:function(e){return Bb.el[e]},setShape:function(e,t){var n=Bb.el,i=n.shape||(n.shape={});return i[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=Bb.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=Bb.el,i=n.style;return i&&(i[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=Bb.el.style;if(t)return t[e]},setExtra:function(e,t){var n=Bb.el.extra||(Bb.el.extra={});return n[e]=t,this},getExtra:function(e){var t=Bb.el.extra;if(t)return t[e]}};function Vb(){var e=this,t=e.el;if(t){var n=Ib(t).userDuring,i=e.userDuring;n===i?(Bb.el=t,i(Wb)):e.el=e.userDuring=null}}function zb(e,t,n,i){var r=n[e];if(r){var o,s=t[e];if(s){var a=n.transition,l=r.transition;if(l)if(!o&&(o=i[e]={}),Pb(l))Object(y["extend"])(o,s);else for(var c=Object(Pt["r"])(l),u=0;u<c.length;u++){var h=c[u],d=s[h];o[h]=d}else if(Pb(a)||Object(y["indexOf"])(a,e)>=0){!o&&(o=i[e]={});var f=Object(y["keys"])(s);for(u=0;u<f.length;u++){h=f[u],d=s[h];Kb(r[h],d)&&(o[h]=d)}}}}}function Hb(e,t,n){var i=t[e];if(i)for(var r=n[e]={},o=Object(y["keys"])(i),s=0;s<o.length;s++){var a=o[s];r[a]=Object(kb["a"])(i[a])}}function Ub(e,t,n){for(var i=t.transition,r=Pb(i)?z["a"]:Object(Pt["r"])(i||[]),o=0;o<r.length;o++){var s=r[o];if("style"!==s&&"shape"!==s&&"extra"!==s){var a=e[s];0,n[s]=a}}}function qb(e,t,n){for(var i=0;i<Eb.length;i++){var r=Eb[i],o=Lb[r],s=t[r];s&&(n[o[0]]=s[0],n[o[1]]=s[1])}for(i=0;i<z["a"].length;i++){var a=z["a"][i];null!=t[a]&&(n[a]=t[a])}}function $b(e,t,n,i){if(n){var r,o=e.style;if(o){var s=n.transition,a=t.transition;if(s&&!Pb(s)){var l=Object(Pt["r"])(s);!r&&(r=i.style={});for(var c=0;c<l.length;c++){var u=l[c],h=o[u];r[u]=h}}else if(e.getAnimationStyleProps&&(Pb(a)||Pb(s)||Object(y["indexOf"])(a,"style")>=0)){var d=e.getAnimationStyleProps(),f=d?d.style:null;if(f){!r&&(r=i.style={});var p=Object(y["keys"])(n);for(c=0;c<p.length;c++){u=p[c];if(f[u]){h=o[u];r[u]=h}}}}}}}function Kb(e,t){return Object(y["isArrayLike"])(e)?e!==t:null!=e&&isFinite(e)}var Gb=Object(Pt["o"])(),Yb=["percent","easing","shape","style","extra"];function Zb(e){e.stopAnimation("keyframe"),e.attr(Gb(e))}function Xb(e,t,n){if(n.isAnimationEnabled()&&t)if(Object(y["isArray"])(t))Object(y["each"])(t,(function(t){Xb(e,t,n)}));else{var i=t.keyframes,r=t.duration;if(n&&null==r){var o=Object(ht["a"])("enter",n,0);r=o&&o.duration}if(i&&r){var s=Gb(e);Object(y["each"])(Db,(function(n){if(!n||e[n]){var o;i.sort((function(e,t){return e.percent-t.percent})),Object(y["each"])(i,(function(i){var a=e.animators,l=n?i[n]:i;if(l){var c=Object(y["keys"])(l);if(n||(c=Object(y["filter"])(c,(function(e){return Object(y["indexOf"])(Yb,e)<0}))),c.length){o||(o=e.animate(n,t.loop,!0),o.scope="keyframe");for(var u=0;u<a.length;u++)a[u]!==o&&a[u].targetName===o.targetName&&a[u].stopTracks(c);n&&(s[n]=s[n]||{});var h=n?s[n]:s;Object(y["each"])(c,(function(t){h[t]=((n?e[n]:e)||{})[t]})),o.whenWithKeys(r*i.percent,l,c,i.easing)}}})),o&&o.delay(t.delay||0).duration(r).start(t.easing)}}))}}}var Qb="emphasis",Jb="normal",ey="blur",ty="select",ny=[Jb,Qb,ey,ty],iy={normal:["itemStyle"],emphasis:[Qb,"itemStyle"],blur:[ey,"itemStyle"],select:[ty,"itemStyle"]},ry={normal:["label"],emphasis:[Qb,"label"],blur:[ey,"label"],select:[ty,"label"]},oy=["x","y"],sy="e\0\0",ay={normal:{},emphasis:{},blur:{},select:{}},ly={cartesian2d:fb,geo:gb,single:vb,polar:yb,calendar:_b};function cy(e){return e instanceof a["b"]}function uy(e){return e instanceof ya["c"]}function hy(e,t){t.copyTransform(e),uy(t)&&uy(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,cy(t)&&cy(e)&&t.setShape(e.shape))}var dy=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n,i){this._progressiveEls=null;var r=this._data,o=e.getData(),s=this.group,a=yy(e,o,t,n);r||s.removeAll(),o.diff(r).add((function(t){wy(n,null,t,a(t,i),e,s,o)})).remove((function(t){var n=r.getItemGraphicEl(t);n&&Nb(n,cb(n).option,e)})).update((function(t,l){var c=r.getItemGraphicEl(l);wy(n,c,t,a(t,i),e,s,o)})).execute();var l=e.get("clip",!0)?Xt(e.coordinateSystem,!1,e):null;l?s.setClipPath(l):s.removeClipPath(),this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,i,r){var o=t.getData(),s=yy(t,o,n,i),a=this._progressiveEls=[];function l(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var c=e.start;c<e.end;c++){var u=wy(null,null,c,s(c,r),t,this.group,o);u&&(u.traverse(l),a.push(u))}},t.prototype.eachRendered=function(e){dt["traverseElements"](this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,i){var r=t.element;if(null==r||n.name===r)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===r)return!0;return!1},t.type="custom",t}(qt["a"]),fy=dy;function py(e){var t,n=e.type;if("path"===n){var i=e.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=Py(i);t=dt["makePath"](o,null,r,i.layout||"center"),cb(t).customPathData=o}else if("image"===n)t=new l["a"]({}),cb(t).customImagePath=e.style.image;else if("text"===n)t=new ie["a"]({});else if("group"===n)t=new lt["a"];else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var s=dt["getShapeClass"](n);if(!s){var a="";0,Object(Kc["c"])(a)}t=new s}return cb(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function gy(e,t,n,i,r,o,s){Zb(t);var a=r&&r.normal.cfg;a&&t.setTextConfig(a),i&&null==i.transition&&(i.transition=oy);var l=i&&i.style;if(l){if("text"===t.type){var c=l;Object(y["hasOwn"])(c,"textFill")&&(c.fill=c.textFill),Object(y["hasOwn"])(c,"textStroke")&&(c.stroke=c.textStroke)}var u=void 0,h=cy(t)?l.decal:null;e&&h&&(h.dirty=!0,u=Object(ba["a"])(h,e)),l.__decalPattern=u}if(uy(t)&&l){u=l.__decalPattern;u&&(l.decal=u)}Tb(t,i,o,{dataIndex:n,isInit:s,clearStyle:!0}),Xb(t,i.keyframeAnimation,o)}function my(e,t,n,i,r){var o=t.isGroup?null:t,s=r&&r[e].cfg;if(o){var a=o.ensureState(e);if(!1===i){var l=o.getState(e);l&&(l.style=null)}else a.style=i||null;s&&(a.textConfig=s),Object(pt["G"])(o)}}function vy(e,t,n){if(!e.isGroup){var i=e,r=n.currentZ,o=n.currentZLevel;i.z=r,i.zlevel=o;var s=t.z2;null!=s&&(i.z2=s||0);for(var a=0;a<ny.length;a++)by(i,t,ny[a])}}function by(e,t,n){var i,r=n===Jb,o=r?t:Ly(t,n),s=o?o.z2:null;null!=s&&(i=r?e:e.ensureState(n),i.z2=s||0)}function yy(e,t,n,i){var r=e.get("renderItem"),o=e.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):ly[o.type](o));for(var a,l,c=Object(y["defaults"])({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:w,style:S,ordinalRawValue:C,styleEmphasis:x,visual:L,barLayout:E,currentSeriesIndices:D,font:I},s.api||{}),u={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:_y(e.getData())},h={},d={},f={},p={},g=0;g<ny.length;g++){var m=ny[g];f[m]=e.getModel(iy[m]),p[m]=e.getModel(ry[m])}function v(e){return e===a?l||(l=t.getItemModel(e)):t.getItemModel(e)}function b(e,n){return t.hasItemOption?e===a?h[n]||(h[n]=v(e).getModel(iy[n])):v(e).getModel(iy[n]):f[n]}function _(e,n){return t.hasItemOption?e===a?d[n]||(d[n]=v(e).getModel(ry[n])):v(e).getModel(ry[n]):p[n]}return function(e,n){return a=e,l=null,h={},d={},r&&r(Object(y["defaults"])({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},u),c)};function w(e,n){return null==n&&(n=a),t.getStore().get(t.getDimensionIndex(e||0),n)}function C(e,n){null==n&&(n=a),e=e||0;var i=t.getDimensionInfo(e);if(!i){var r=t.getDimensionIndex(e);return r>=0?t.getStore().get(r,n):void 0}var o=t.get(i.name,n),s=i&&i.ordinalMeta;return s?s.categories[o]:o}function S(n,i){null==i&&(i=a);var r=t.getItemVisual(i,"style"),o=r&&r.fill,s=r&&r.opacity,l=b(i,Jb).getItemStyle();null!=o&&(l.fill=o),null!=s&&(l.opacity=s);var c={inheritColor:Object(y["isString"])(o)?o:"#000"},u=_(i,Jb),h=bt["c"](u,null,c,!1,!0);h.text=u.getShallow("show")?Object(y["retrieve2"])(e.getFormattedLabel(i,Jb),mt(t,i)):null;var d=bt["b"](u,c,!1);return k(n,l),l=xb(l,h,d),n&&O(l,n),l.legacy=!0,l}function x(n,i){null==i&&(i=a);var r=b(i,Qb).getItemStyle(),o=_(i,Qb),s=bt["c"](o,null,null,!0,!0);s.text=o.getShallow("show")?Object(y["retrieve3"])(e.getFormattedLabel(i,Qb),e.getFormattedLabel(i,Jb),mt(t,i)):null;var l=bt["b"](o,null,!0);return k(n,r),r=xb(r,s,l),n&&O(r,n),r.legacy=!0,r}function O(e,t){for(var n in t)Object(y["hasOwn"])(t,n)&&(e[n]=t[n])}function k(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function L(e,n){if(null==n&&(n=a),Object(y["hasOwn"])(ab,e)){var i=t.getItemVisual(n,"style");return i?i[ab[e]]:null}if(Object(y["hasOwn"])(lb,e))return t.getItemVisual(n,e)}function E(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return Object(kn["b"])(Object(y["defaults"])({axis:t},e))}}function D(){return n.getCurrentSeriesIndices()}function I(e){return bt["d"](e,n)}}function _y(e){var t={};return Object(y["each"])(e.dimensions,(function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim,o=t[r]=t[r]||[];o[i.coordDimIndex]=e.getDimensionIndex(n)}})),t}function wy(e,t,n,i,r,o,s){if(i){var a=Cy(e,t,n,i,r,o);return a&&s.setItemGraphicEl(n,a),a&&Object(pt["J"])(a,i.focus,i.blurScope,i.emphasisDisabled),a}o.remove(t)}function Cy(e,t,n,i,r,o){var s=-1,a=t;t&&Sy(t,i,r)&&(s=Object(y["indexOf"])(o.childrenRef(),t),t=null);var l=!t,c=t;c?c.clearStates():(c=py(i),a&&hy(a,c)),!1===i.morph?c.disableMorphing=!0:c.disableMorphing&&(c.disableMorphing=!1),ay.normal.cfg=ay.normal.conOpt=ay.emphasis.cfg=ay.emphasis.conOpt=ay.blur.cfg=ay.blur.conOpt=ay.select.cfg=ay.select.conOpt=null,ay.isLegacy=!1,Oy(c,n,i,r,l,ay),xy(c,n,i,r,l),gy(e,c,n,i,ay,r,l),Object(y["hasOwn"])(i,"info")&&(cb(c).info=i.info);for(var u=0;u<ny.length;u++){var h=ny[u];if(h!==Jb){var d=Ly(i,h),f=Ey(i,d,h);my(h,c,d,f,ay)}}return vy(c,i,r),"group"===i.type&&Dy(e,c,n,i,r),s>=0?o.replaceAt(c,s):o.add(c),c}function Sy(e,t,n){var i=cb(e),r=t.type,o=t.shape,s=t.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||"path"===r&&jy(o)&&Py(o)!==i.customPathData||"image"===r&&Object(y["hasOwn"])(s,"image")&&s.image!==i.customImagePath}function xy(e,t,n,i,r){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var s=e.getClipPath();s&&Sy(s,o,i)&&(s=null),s||(s=py(o),e.setClipPath(s)),gy(null,s,t,o,null,i,r)}}function Oy(e,t,n,i,r,o){if(!e.isGroup){ky(n,null,o),ky(n,Qb,o);var s=o.normal.conOpt,a=o.emphasis.conOpt,l=o.blur.conOpt,c=o.select.conOpt;if(null!=s||null!=a||null!=c||null!=l){var u=e.getTextContent();if(!1===s)u&&e.removeTextContent();else{s=o.normal.conOpt=s||{type:"text"},u?u.clearStates():(u=py(s),e.setTextContent(u)),gy(null,u,t,s,null,i,r);for(var h=s&&s.style,d=0;d<ny.length;d++){var f=ny[d];if(f!==Jb){var p=o[f].conOpt;my(f,u,p,Ey(s,p,f),null)}}h?u.dirty():u.markRedraw()}}}}function ky(e,t,n){var i=t?Ly(e,t):e,r=t?Ey(e,i,Qb):e.style,o=e.type,s=i?i.textConfig:null,a=e.textContent,l=a?t?Ly(a,t):a:null;if(r&&(n.isLegacy||wb(r,o,!!s,!!l))){n.isLegacy=!0;var c=Cb(r,o,!t);!s&&c.textConfig&&(s=c.textConfig),!l&&c.textContent&&(l=c.textContent)}if(!t&&l){var u=l;!u.type&&(u.type="text")}var h=t?n[t]:n.normal;h.cfg=s,h.conOpt=l}function Ly(e,t){return t?e?e[t]:null:e}function Ey(e,t,n){var i=t&&t.style;return null==i&&n===Qb&&e&&(i=e.styleEmphasis),i}function Dy(e,t,n,i,r){var o=i.children,s=o?o.length:0,a=i.$mergeChildren,l="byName"===a||i.diffChildrenByName,c=!1===a;if(s||l||c)if(l)My({api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:t});else{c&&t.removeAll();for(var u=0;u<s;u++){var h=o[u],d=t.childAt(u);h?(null==h.ignore&&(h.ignore=!1),Cy(e,d,n,h,r,t)):d.ignore=!0}for(var f=t.childCount()-1;f>=u;f--){var p=t.childAt(f);Iy(t,p,r)}}}function Iy(e,t,n){t&&Nb(t,cb(e).option,n)}function My(e){new _c["a"](e.oldChildren,e.newChildren,Ty,Ty,e).add(Ay).update(Ay).remove(Ny).execute()}function Ty(e,t){var n=e&&e.name;return null!=n?n:sy+t}function Ay(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,r=null!=t?n.oldChildren[t]:null;Cy(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function Ny(e){var t=this.context,n=t.oldChildren[e];n&&Nb(n,cb(n).option,t.seriesModel)}function Py(e){return e&&(e.pathData||e.d)}function jy(e){return e&&(Object(y["hasOwn"])(e,"pathData")||Object(y["hasOwn"])(e,"d"))}function Ry(e){e.registerChartView(fy),e.registerSeriesModel(hb)}var Fy=Object(Pt["o"])(),By=y["clone"],Wy=y["bind"],Vy=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,i){var r=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var s=this._group,a=this._handle;if(!o||"hide"===o)return s&&s.hide(),void(a&&a.hide());s&&s.show(),a&&a.show();var l={};this.makeElOption(l,r,e,t,n);var c=l.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var u=this._moveAnimation=this.determineAnimation(e,t);if(s){var h=y["curry"](zy,t,u);this.updatePointerEl(s,l,h),this.updateLabelEl(s,l,h,t)}else s=this._group=new lt["a"],this.createPointerEl(s,l,e,t),this.createLabelEl(s,l,e,t),n.getZr().add(s);$y(s,t,!0),this._renderHandle(r)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,r="category"===i.type,o=t.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var s=this.animationThreshold;if(r&&i.getBandWidth()>s)return!0;if(o){var a=ho(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/a>s}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,i,r){},e.prototype.createPointerEl=function(e,t,n,i){var r=t.pointer;if(r){var o=Fy(e).pointerEl=new dt[r.type](By(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,i){if(t.label){var r=Fy(e).labelEl=new ie["a"](By(t.label));e.add(r),Uy(r,i)}},e.prototype.updatePointerEl=function(e,t,n){var i=Fy(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,i){var r=Fy(e).labelEl;r&&(r.setStyle(t.label.style),n(r,{x:t.label.x,y:t.label.y}),Uy(r,i))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),s=n.get("status");if(!o.get("show")||!s||"hide"===s)return r&&i.remove(r),void(this._handle=null);this._handle||(t=!0,r=this._handle=dt["createIcon"](o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){rs["g"](e.event)},onmousedown:Wy(this._onHandleDragMove,this,0,0),drift:Wy(this._onHandleDragMove,this),ondragend:Wy(this._onHandleDragEnd,this)}),i.add(r)),$y(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var a=o.get("size");y["isArray"](a)||(a=[a,a]),r.scaleX=a[0]/2,r.scaleY=a[1]/2,Tn["b"](this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){zy(this._axisPointerModel,!t&&this._moveAnimation,this._handle,qy(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(qy(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(qy(i)),Fy(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Tn["a"](this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function zy(e,t,n,i){Hy(Fy(n).lastProp,i)||(Fy(n).lastProp=i,t?ht["h"](n,i,e):(n.stopAnimation(),n.attr(i)))}function Hy(e,t){if(y["isObject"](e)&&y["isObject"](t)){var n=!0;return y["each"](t,(function(t,i){n=n&&Hy(e[i],t)})),!!n}return e===t}function Uy(e,t){e[t.get(["label","show"])?"show":"hide"]()}function qy(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function $y(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=r&&(e.zlevel=r),e.silent=n)}))}var Ky=Vy;function Gy(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return"line"===n?(t=i.getLineStyle(),t.fill=null):"shadow"===n&&(t=i.getAreaStyle(),t.stroke=null),t}function Yy(e,t,n,i,r){var o=n.get("value"),s=Xy(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),l=Jt["i"](a.get("padding")||0),u=a.getFont(),h=c["d"](s,u),d=r.position,f=h.width+l[1]+l[3],p=h.height+l[0]+l[2],g=r.align;"right"===g&&(d[0]-=f),"center"===g&&(d[0]-=f/2);var m=r.verticalAlign;"bottom"===m&&(d[1]-=p),"middle"===m&&(d[1]-=p/2),Zy(d,f,p,i);var v=a.get("backgroundColor");v&&"auto"!==v||(v=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:Object(bt["c"])(a,{text:s,font:u,fill:a.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function Zy(e,t,n,i){var r=i.getWidth(),o=i.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Xy(e,t,n,i,r){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:r.precision}),s=r.formatter;if(s){var a={value:br["c"](t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};y["each"](i,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,r=t&&t.getDataParams(i);r&&a.seriesData.push(r)})),y["isString"](s)?o=s.replace("{value}",o):y["isFunction"](s)&&(o=s(a))}return o}function Qy(e,t,n){var i=wr["create"]();return wr["rotate"](i,i,n.rotation),wr["translate"](i,i,n.position),dt["applyTransform"]([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function Jy(e,t,n,i,r,o){var s=io.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),Yy(t,i,r,o,{position:Qy(i.axis,e,n),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function e_(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function t_(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function n_(e,t,n,i,r,o){return{cx:e,cy:t,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var i_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,s=o.grid,a=i.get("type"),l=r_(s,o).getOtherAxis(o).getGlobalExtent(),c=o.toGlobalCoord(o.dataToCoord(t,!0));if(a&&"none"!==a){var u=Gy(i),h=o_[a](o,c,l);h.style=u,e.graphicKey=h.type,e.pointer=h}var d=Ir(s.model,n);Jy(t,e,d,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=Ir(t.axis.grid.model,t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=Qy(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.grid,s=r.getGlobalExtent(!0),a=r_(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,c=[e.x,e.y];c[l]+=t[l],c[l]=Math.min(s[1],c[l]),c[l]=Math.max(s[0],c[l]);var u=(a[1]+a[0])/2,h=[u,u];h[l]=c[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:h,tooltipOption:d[l]}},t}(Ky);function r_(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var o_={line:function(e,t,n){var i=e_([t,n[0]],[t,n[1]],s_(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:t_([t-i/2,n[0]],[i,r],s_(e))}}};function s_(e){return"x"===e.dim?0:1}var a_=i_,l_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(ir["a"]),c_=l_,u_=n("22d1"),h_=Object(Pt["o"])(),d_=y["each"];function f_(e,t,n){if(!u_["a"].node){var i=t.getZr();h_(i).records||(h_(i).records={}),p_(i,t);var r=h_(i).records[e]||(h_(i).records[e]={});r.handler=n}}function p_(e,t){function n(n,i){e.on(n,(function(n){var r=b_(t);d_(h_(e).records,(function(e){e&&i(e,n,r.dispatchAction)})),g_(r.pendings,t)}))}h_(e).initialized||(h_(e).initialized=!0,n("click",y["curry"](v_,"click")),n("mousemove",y["curry"](v_,"mousemove")),n("globalout",m_))}function g_(e,t){var n,i=e.showTip.length,r=e.hideTip.length;i?n=e.showTip[i-1]:r&&(n=e.hideTip[r-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function m_(e,t,n){e.handler("leave",null,n)}function v_(e,t,n,i){t.handler(e,n,i)}function b_(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}function y_(e,t){if(!u_["a"].node){var n=t.getZr(),i=(h_(n).records||{})[e];i&&(h_(n).records[e]=null)}}var __=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=t.getComponent("tooltip"),r=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";f_("axisPointer",n,(function(e,t,n){"none"!==r&&("leave"===e||r.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){y_("axisPointer",t)},t.prototype.dispose=function(e,t){y_("axisPointer",t)},t.type="axisPointer",t}(nr["a"]),w_=__;function C_(e,t){var n,i=[],r=e.seriesIndex;if(null==r||!(n=t.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),s=Pt["u"](o,e);if(null==s||s<0||y["isArray"](s))return{point:[]};var a=o.getItemGraphicEl(s),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(s)||[];else if(l&&l.dataToPoint)if(e.isStacked){var c=l.getBaseAxis(),u=l.getOtherAxis(c),h=u.dim,d=c.dim,f="x"===h||"radius"===h?1:0,p=o.mapDimension(d),g=[];g[f]=o.get(p,s),g[1-f]=o.get(o.getCalculationInfo("stackResultDimension"),s),i=l.dataToPoint(g)||[]}else i=l.dataToPoint(o.getValues(y["map"](l.dimensions,(function(e){return o.mapDimension(e)})),s))||[];else if(a){var m=a.getBoundingRect().clone();m.applyTransform(a.transform),i=[m.x+m.width/2,m.y+m.height/2]}return{point:i,el:a}}var S_=Object(Pt["o"])();function x_(e,t,n){var i=e.currTrigger,r=[e.x,e.y],o=e,s=e.dispatchAction||Object(y["bind"])(n.dispatchAction,n),a=t.getComponent("axisPointer").coordSysAxesInfo;if(a){N_(r)&&(r=C_({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=N_(r),c=o.axesInfo,u=a.axesInfo,h="leave"===i||N_(r),d={},f={},p={list:[],map:{}},g={showPointer:Object(y["curry"])(L_,f),showTooltip:Object(y["curry"])(E_,p)};Object(y["each"])(a.coordSysMap,(function(e,t){var n=l||e.containPoint(r);Object(y["each"])(a.coordSysAxesInfo[t],(function(e,t){var i=e.axis,o=T_(c,e);if(!h&&n&&(!c||o)){var s=o&&o.value;null!=s||l||(s=i.pointToData(r)),null!=s&&O_(e,s,g,!1,d)}}))}));var m={};return Object(y["each"])(u,(function(e,t){var n=e.linkGroup;n&&!f[t]&&Object(y["each"])(n.axesInfo,(function(t,i){var r=f[i];if(t!==e&&r){var o=r.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,A_(t),A_(e)))),m[e.key]=o}}))})),Object(y["each"])(m,(function(e,t){O_(u[t],e,g,!0,d)})),D_(f,u,d),I_(p,r,e,s),M_(u,s,n),d}}function O_(e,t,n,i,r){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var s=k_(t,e),a=s.payloadBatch,l=s.snapToValue;a[0]&&null==r.seriesIndex&&Object(y["extend"])(r,a[0]),!i&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,a),n.showTooltip(e,s,l)}else n.showPointer(e,t)}function k_(e,t){var n=t.axis,i=n.dim,r=e,o=[],s=Number.MAX_VALUE,a=-1;return Object(y["each"])(t.seriesModels,(function(t,l){var c,u,h=t.getData().mapDimensionsAll(i);if(t.getAxisTooltipData){var d=t.getAxisTooltipData(h,e,n);u=d.dataIndices,c=d.nestestValue}else{if(u=t.getData().indicesOfNearest(h[0],e,"category"===n.type?.5:null),!u.length)return;c=t.getData().get(h[0],u[0])}if(null!=c&&isFinite(c)){var f=e-c,p=Math.abs(f);p<=s&&((p<s||f>=0&&a<0)&&(s=p,a=f,r=c,o.length=0),Object(y["each"])(u,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:r}}function L_(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function E_(e,t,n,i){var r=n.payloadBatch,o=t.axis,s=o.model,a=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,c=go(l),u=e.map[c];u||(u=e.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:o.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:a.get(["label","precision"]),formatter:a.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function D_(e,t,n){var i=n.axesInfo=[];Object(y["each"])(t,(function(t,n){var r=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:r.value})}))}function I_(e,t,n,i){if(!N_(t)&&e.list.length){var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}else i({type:"hideTip"})}function M_(e,t,n){var i=n.getZr(),r="axisPointerLastHighlights",o=S_(i)[r]||{},s=S_(i)[r]={};Object(y["each"])(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&Object(y["each"])(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;s[t]=e}))}));var a=[],l=[];Object(y["each"])(o,(function(e,t){!s[t]&&l.push(e)})),Object(y["each"])(s,(function(e,t){!o[t]&&a.push(e)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),a.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:a})}function T_(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function A_(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function N_(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function P_(e){bo.registerAxisPointerClass("CartesianAxisPointer",a_),e.registerComponentModel(c_),e.registerComponentView(w_),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Object(y["isArray"])(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=ro(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},x_)}function j_(e){Object(i["a"])(Io),Object(i["a"])(P_)}var R_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var s=o.polar,a=s.getOtherAxis(o),l=a.getExtent(),c=o.dataToCoord(t),u=i.get("type");if(u&&"none"!==u){var h=Gy(i),d=B_[u](o,s,c,l);d.style=h,e.graphicKey=d.type,e.pointer=d}var f=i.get(["label","margin"]),p=F_(t,n,i,s,f);Yy(e,n,i,r,p)},t}(Ky);function F_(e,t,n,i,r){var o=t.axis,s=o.dataToCoord(e),a=i.getAngleAxis().getExtent()[0];a=a/180*Math.PI;var l,c,u,h=i.getRadiusAxis().getExtent();if("radius"===o.dim){var d=wr["create"]();wr["rotate"](d,d,a),wr["translate"](d,d,[i.cx,i.cy]),l=dt["applyTransform"]([s,-r],d);var f=t.getModel("axisLabel").get("rotate")||0,p=io.innerTextLayout(a,f*Math.PI/180,-1);c=p.textAlign,u=p.textVerticalAlign}else{var g=h[1];l=i.coordToPoint([g+r,s]);var m=i.cx,v=i.cy;c=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",u=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:c,verticalAlign:u}}var B_={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:e_(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var r=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:n_(t.cx,t.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:n_(t.cx,t.cy,n-r/2,n+r/2,0,2*Math.PI)}}},W_=R_,V_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.findAxisModel=function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(ir["a"]),z_=V_,H_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Pt["b"]).models[0]},t.type="polarAxis",t}(ir["a"]);y["mixin"](H_,sr["a"]);var U_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="angleAxis",t}(H_),q_=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="radiusAxis",t}(H_),$_=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return Object(rt["a"])(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(Lr["a"]);$_.prototype.dataToRadius=Lr["a"].prototype.dataToCoord,$_.prototype.radiusToData=Lr["a"].prototype.coordToData;var K_=$_,G_=Object(Pt["o"])(),Y_=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return Object(rt["a"])(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],s=e.dataToCoord(o+1)-e.dataToCoord(o),a=Math.abs(s),l=c["d"](null==o?"":o+"",t.getFont(),"center","top"),u=Math.max(l.height,7),h=u/a;isNaN(h)&&(h=1/0);var d=Math.max(0,Math.floor(h)),f=G_(e.model),p=f.lastAutoInterval,g=f.lastTickCount;return null!=p&&null!=g&&Math.abs(p-d)<=1&&Math.abs(g-r)<=1&&p>d?d=p:(f.lastTickCount=r,f.lastAutoInterval=d),d},t}(Lr["a"]);Y_.prototype.dataToAngle=Lr["a"].prototype.dataToCoord,Y_.prototype.angleToData=Lr["a"].prototype.coordToData;var Z_=Y_,X_=["radius","angle"],Q_=function(){function e(e){this.dimensions=X_,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new K_,this._angleAxis=new Z_,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);i.inverse?o=s-360:s=o+360;var a=Math.sqrt(t*t+n*n);t/=a,n/=a;var l=Math.atan2(-n,t)/Math.PI*180,c=l<o?1:-1;while(l<o||l>s)l+=360*c;return[a,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,r=-Math.sin(n)*t+this.cy;return[i,r]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,r=n*n+i*i-1e-4,o=this.r,s=this.r0;return r<=o*o&&r>=s*s}}},e.prototype.convertToPixel=function(e,t,n){var i=J_(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=J_(t);return i===this?this.pointToData(n):null},e}();function J_(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var ew=Q_;function tw(e,t,n){var i=t.get("center"),r=n.getWidth(),o=n.getHeight();e.cx=Object(Gt["q"])(i[0],r),e.cy=Object(Gt["q"])(i[1],o);var s=e.getRadiusAxis(),a=Math.min(r,o)/2,l=t.get("radius");null==l?l=[0,"100%"]:y["isArray"](l)||(l=[0,l]);var c=[Object(Gt["q"])(l[0],a),Object(Gt["q"])(l[1],a)];s.inverse?s.setExtent(c[1],c[0]):s.setExtent(c[0],c[1])}function nw(e,t){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();y["each"](Object(br["d"])(t,"radius"),(function(e){r.scale.unionExtentFromData(t,e)})),y["each"](Object(br["d"])(t,"angle"),(function(e){i.scale.unionExtentFromData(t,e)}))}})),Object(br["i"])(i.scale,i.model),Object(br["i"])(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),s=360/i.scale.count();i.inverse?o[1]+=s:o[1]-=s,i.setExtent(o[0],o[1])}}function iw(e){return"angleAxis"===e.mainType}function rw(e,t){var n;if(e.type=t.get("type"),e.scale=Object(br["a"])(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),iw(t)){e.inverse=e.inverse!==t.get("clockwise");var i=t.get("startAngle"),r=null!==(n=t.get("endAngle"))&&void 0!==n?n:i+(e.inverse?-360:360);e.setExtent(i,r)}t.axis=e,e.model=t}var ow={dimensions:X_,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var r=new ew(i+"");r.update=nw;var o=r.getRadiusAxis(),s=r.getAngleAxis(),a=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");rw(o,a),rw(s,l),tw(r,e,t),n.push(r),e.coordinateSystem=r,r.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",Pt["b"]).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},sw=ow,aw=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function lw(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),r=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function cw(e){var t=e.getRadiusAxis();return t.inverse?0:1}function uw(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var hw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),s=n.getMinorTicksCoords(),a=y["map"](n.getViewLabels(),(function(e){e=y["clone"](e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e}));uw(a),uw(o),y["each"](aw,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||dw[t](this.group,e,i,o,s,r,a)}),this)}},t.type="angleAxis",t}(bo),dw={axisLine:function(e,t,n,i,r,o){var s,a=t.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),c=Math.PI/180,u=l.getExtent(),h=cw(n),d=h?0:1,f=360===Math.abs(u[1]-u[0])?"Circle":"Arc";s=0===o[d]?new dt[f]({shape:{cx:n.cx,cy:n.cy,r:o[h],startAngle:-u[0]*c,endAngle:-u[1]*c,clockwise:l.inverse},style:a.getLineStyle(),z2:1,silent:!0}):new Ko["a"]({shape:{cx:n.cx,cy:n.cy,r:o[h],r0:o[d]},style:a.getLineStyle(),z2:1,silent:!0}),s.style.fill=null,e.add(s)},axisTick:function(e,t,n,i,r,o){var s=t.getModel("axisTick"),a=(s.get("inside")?-1:1)*s.get("length"),l=o[cw(n)],c=y["map"](i,(function(e){return new Hr["a"]({shape:lw(n,[l,l+a],e.coord)})}));e.add(dt["mergePath"](c,{style:y["defaults"](s.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,r,o){if(r.length){for(var s=t.getModel("axisTick"),a=t.getModel("minorTick"),l=(s.get("inside")?-1:1)*a.get("length"),c=o[cw(n)],u=[],h=0;h<r.length;h++)for(var d=0;d<r[h].length;d++)u.push(new Hr["a"]({shape:lw(n,[c,c+l],r[h][d].coord)}));e.add(dt["mergePath"](u,{style:y["defaults"](a.getModel("lineStyle").getLineStyle(),y["defaults"](s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,i,r,o,s){var a=t.getCategories(!0),l=t.getModel("axisLabel"),c=l.get("margin"),u=t.get("triggerEvent");y["each"](s,(function(i,r){var s=l,h=i.tickValue,d=o[cw(n)],f=n.coordToPoint([d+c,i.coord]),p=n.cx,g=n.cy,m=Math.abs(f[0]-p)/d<.3?"center":f[0]>p?"left":"right",v=Math.abs(f[1]-g)/d<.3?"middle":f[1]>g?"top":"bottom";if(a&&a[h]){var b=a[h];y["isObject"](b)&&b.textStyle&&(s=new Ur["a"](b.textStyle,l,l.ecModel))}var _=new ie["a"]({silent:io.isLabelSilent(t),style:Object(bt["c"])(s,{x:f[0],y:f[1],fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:v})});if(e.add(_),u){var w=io.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=i.rawLabel,Object(ft["a"])(_).eventData=w}}),this)},splitLine:function(e,t,n,i,r,o){var s=t.getModel("splitLine"),a=s.getModel("lineStyle"),l=a.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],h=0;h<i.length;h++){var d=c++%l.length;u[d]=u[d]||[],u[d].push(new Hr["a"]({shape:lw(n,o,i[h].coord)}))}for(h=0;h<u.length;h++)e.add(dt["mergePath"](u[h],{style:y["defaults"]({stroke:l[h%l.length]},a.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,i,r,o){if(r.length){for(var s=t.getModel("minorSplitLine"),a=s.getModel("lineStyle"),l=[],c=0;c<r.length;c++)for(var u=0;u<r[c].length;u++)l.push(new Hr["a"]({shape:lw(n,o,r[c][u].coord)}));e.add(dt["mergePath"](l,{style:a.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,i,r,o){if(i.length){var s=t.getModel("splitArea"),a=s.getModel("areaStyle"),l=a.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],h=Math.PI/180,d=-i[0].coord*h,f=Math.min(o[0],o[1]),p=Math.max(o[0],o[1]),g=t.get("clockwise"),m=1,v=i.length;m<=v;m++){var b=m===v?i[0].coord:i[m].coord,_=c++%l.length;u[_]=u[_]||[],u[_].push(new Kt["a"]({shape:{cx:n.cx,cy:n.cy,r0:f,r:p,startAngle:d,endAngle:-b*h,clockwise:g},silent:!0})),d=-b*h}for(m=0;m<u.length;m++)e.add(dt["mergePath"](u[m],{style:y["defaults"]({fill:l[m%l.length]},a.getAreaStyle()),silent:!0}))}}},fw=hw,pw=["axisLine","axisTickLabel","axisName"],gw=["splitLine","splitArea","minorSplitLine"],mw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,i=this._axisGroup=new lt["a"];this.group.add(i);var r=e.axis,o=r.polar,s=o.getAngleAxis(),a=r.getTicksCoords(),l=r.getMinorTicksCoords(),c=s.getExtent()[0],u=r.getExtent(),h=bw(o,e,c),d=new io(e,h);y["each"](pw,d.add,d),i.add(d.getGroup()),dt["groupTransition"](n,i,e),y["each"](gw,(function(t){e.get([t,"show"])&&!r.scale.isBlank()&&vw[t](this.group,e,o,c,u,a,l)}),this)}},t.type="radiusAxis",t}(bo),vw={splitLine:function(e,t,n,i,r,o){var s=t.getModel("splitLine"),a=s.getModel("lineStyle"),l=a.get("color"),c=0,u=n.getAngleAxis(),h=Math.PI/180,d=u.getExtent(),f=360===Math.abs(d[1]-d[0])?"Circle":"Arc";l=l instanceof Array?l:[l];for(var p=[],g=0;g<o.length;g++){var m=c++%l.length;p[m]=p[m]||[],p[m].push(new dt[f]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[g].coord,0),startAngle:-d[0]*h,endAngle:-d[1]*h,clockwise:u.inverse}}))}for(g=0;g<p.length;g++)e.add(dt["mergePath"](p[g],{style:y["defaults"]({stroke:l[g%l.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,i,r,o,s){if(s.length){for(var a=t.getModel("minorSplitLine"),l=a.getModel("lineStyle"),c=[],u=0;u<s.length;u++)for(var h=0;h<s[u].length;h++)c.push(new $o["a"]({shape:{cx:n.cx,cy:n.cy,r:s[u][h].coord}}));e.add(dt["mergePath"](c,{style:y["defaults"]({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,i,r,o){if(o.length){var s=t.getModel("splitArea"),a=s.getModel("areaStyle"),l=a.get("color"),c=0;l=l instanceof Array?l:[l];for(var u=[],h=o[0].coord,d=1;d<o.length;d++){var f=c++%l.length;u[f]=u[f]||[],u[f].push(new Kt["a"]({shape:{cx:n.cx,cy:n.cy,r0:h,r:o[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=o[d].coord}for(d=0;d<u.length;d++)e.add(dt["mergePath"](u[d],{style:y["defaults"]({fill:l[d%l.length]},a.getAreaStyle()),silent:!0}))}}};function bw(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}var yw=mw;function _w(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function ww(e,t){return t.dim+e.model.componentIndex}function Cw(e,t,n){var i={},r=Sw(y["filter"](t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,o=n.getBaseAxis(),s=ww(n,o),a=_w(e),l=r[s][a],c=l.offset,u=l.width,h=n.getOtherAxis(o),d=e.coordinateSystem.cx,f=e.coordinateSystem.cy,p=e.get("barMinHeight")||0,g=e.get("barMinAngle")||0;i[a]=i[a]||[];for(var m=t.mapDimension(h.dim),v=t.mapDimension(o.dim),b=Object(Lt["c"])(t,m),y="radius"!==o.dim||!e.get("roundCap",!0),_=h.model,w=_.get("startValue"),C=h.dataToCoord(w||0),S=0,x=t.count();S<x;S++){var O=t.get(m,S),k=t.get(v,S),L=O>=0?"p":"n",E=C;b&&(i[a][k]||(i[a][k]={p:C,n:C}),E=i[a][k][L]);var D=void 0,I=void 0,M=void 0,T=void 0;if("radius"===h.dim){var A=h.dataToCoord(O)-C,N=o.dataToCoord(k);Math.abs(A)<p&&(A=(A<0?-1:1)*p),D=E,I=E+A,M=N-c,T=M-u,b&&(i[a][k][L]=I)}else{var P=h.dataToCoord(O,y)-C,j=o.dataToCoord(k);Math.abs(P)<g&&(P=(P<0?-1:1)*g),D=j+c,I=D+u,M=E,T=E+P,b&&(i[a][k][L]=T)}t.setItemLayout(S,{cx:d,cy:f,r0:D,r:I,startAngle:-M*Math.PI/180,endAngle:-T*Math.PI/180,clockwise:M>=T})}}}))}function Sw(e){var t={};y["each"](e,(function(e,n){var i=e.getData(),r=e.coordinateSystem,o=r.getBaseAxis(),s=ww(r,o),a=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(a[1]-a[0])/i.count(),c=t[s]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},u=c.stacks;t[s]=c;var h=_w(e);u[h]||c.autoWidthCount++,u[h]=u[h]||{width:0,maxWidth:0};var d=Object(Gt["q"])(e.get("barWidth"),l),f=Object(Gt["q"])(e.get("barMaxWidth"),l),p=e.get("barGap"),g=e.get("barCategoryGap");d&&!u[h].width&&(d=Math.min(c.remainedWidth,d),u[h].width=d,c.remainedWidth-=d),f&&(u[h].maxWidth=f),null!=p&&(c.gap=p),null!=g&&(c.categoryGap=g)}));var n={};return y["each"](t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=Object(Gt["q"])(e.categoryGap,r),s=Object(Gt["q"])(e.gap,1),a=e.remainedWidth,l=e.autoWidthCount,c=(a-o)/(l+(l-1)*s);c=Math.max(c,0),y["each"](i,(function(e,t){var n=e.maxWidth;n&&n<c&&(n=Math.min(n,a),e.width&&(n=Math.min(n,e.width)),a-=n,e.width=n,l--)})),c=(a-o)/(l+(l-1)*s),c=Math.max(c,0);var u,h=0;y["each"](i,(function(e,t){e.width||(e.width=c),u=e,h+=e.width*(1+s)})),u&&(h-=u.width*s);var d=-h/2;y["each"](i,(function(e,i){n[t][i]=n[t][i]||{offset:d,width:e.width},d+=e.width*(1+s)}))})),n}var xw=Cw,Ow={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},kw={splitNumber:5},Lw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="polar",t}(nr["a"]);function Ew(e){Object(i["a"])(P_),bo.registerAxisPointerClass("PolarAxisPointer",W_),e.registerCoordinateSystem("polar",sw),e.registerComponentModel(z_),e.registerComponentView(Lw),mr(e,"angle",U_,Ow),mr(e,"radius",q_,kw),e.registerComponentView(fw),e.registerComponentView(yw),e.registerLayout(Object(y["curry"])(xw,"bar"))}function Dw(e,t){t=t||{};var n=e.coordinateSystem,i=e.axis,r={},o=i.position,s=i.orient,a=n.getRect(),l=[a.x,a.x+a.width,a.y,a.y+a.height],c={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===s?c.vertical[o]:l[0],"horizontal"===s?c.horizontal[o]:l[3]];var u={horizontal:0,vertical:1};r.rotation=Math.PI/2*u[s];var h={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=h[o],e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),y["retrieve"](t.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var d=t.rotate;return null==d&&(d=e.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-d:d,r.z2=1,r}var Iw=["axisLine","axisTickLabel","axisName"],Mw=["splitArea","splitLine"],Tw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return Object(rt["a"])(t,e),t.prototype.render=function(t,n,i,r){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new lt["a"];var a=Dw(t),l=new io(t,a);y["each"](Iw,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),y["each"](Mw,(function(e){t.get([e,"show"])&&Aw[e](this,this.group,this._axisGroup,t)}),this),dt["groupTransition"](s,this._axisGroup,t),e.prototype.render.call(this,t,n,i,r)},t.prototype.remove=function(){wo(this)},t.type="singleAxis",t}(bo),Aw={splitLine:function(e,t,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),s=o.getModel("lineStyle"),a=s.get("color");a=a instanceof Array?a:[a];for(var l=s.get("width"),c=i.coordinateSystem.getRect(),u=r.isHorizontal(),h=[],d=0,f=r.getTicksCoords({tickModel:o}),p=[],g=[],m=0;m<f.length;++m){var v=r.toGlobalCoord(f[m].coord);u?(p[0]=v,p[1]=c.y,g[0]=v,g[1]=c.y+c.height):(p[0]=c.x,p[1]=v,g[0]=c.x+c.width,g[1]=v);var b=new Hr["a"]({shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},silent:!0});dt["subPixelOptimizeLine"](b.shape,l);var _=d++%a.length;h[_]=h[_]||[],h[_].push(b)}var w=s.getLineStyle(["color"]);for(m=0;m<h.length;++m)t.add(dt["mergePath"](h[m],{style:y["defaults"]({stroke:a[m%a.length]},w),silent:!0}))}},splitArea:function(e,t,n,i){_o(e,n,i,i)}},Nw=Tw,Pw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(ir["a"]);Object(y["mixin"])(Pw,sr["a"].prototype);var jw=Pw,Rw=function(e){function t(t,n,i,r,o){var s=e.call(this,t,n,i)||this;return s.type=r||"value",s.position=o||"bottom",s}return Object(rt["a"])(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(Lr["a"]),Fw=Rw,Bw=["single"],Ww=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=Bw,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=this.dimension,r=new Fw(i,br["a"](e),[0,0],e.get("type"),e.get("position")),o="category"===r.type;r.onBand=o&&e.get("boundaryGap"),r.inverse=e.get("inverse"),r.orient=e.get("orient"),e.axis=r,r.model=e,r.coordinateSystem=this,this._axis=r},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();Object(y["each"])(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),br["i"](this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=Object(pi["g"])({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),i=n?[0,e.width]:[0,e.height],r=t.inverse?1:0;t.setExtent(i[r],i[1-r]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),i=n[0]+n[1],r=e.isHorizontal();e.toGlobalCoord=r?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=r?function(e){return e-t}:function(e){return i-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),i=n.orient;return"horizontal"===i?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[r]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){var i=Vw(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=Vw(t);return i===this?this.pointToData(n):null},e}();function Vw(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var zw=Ww;function Hw(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,r){var o=new zw(i,e,t);o.name="single_"+r,o.resize(i,t),i.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",Pt["b"]).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var Uw={create:Hw,dimensions:Bw},qw=Uw,$w=["x","y"],Kw=["width","height"],Gw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,s=o.coordinateSystem,a=Xw(s,1-Zw(o)),l=s.dataToPoint(t)[0],c=i.get("type");if(c&&"none"!==c){var u=Gy(i),h=Yw[c](o,l,a);h.style=u,e.graphicKey=h.type,e.pointer=h}var d=Dw(n);Jy(t,e,d,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=Dw(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=Qy(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.coordinateSystem,s=Zw(r),a=Xw(o,s),l=[e.x,e.y];l[s]+=t[s],l[s]=Math.min(a[1],l[s]),l[s]=Math.max(a[0],l[s]);var c=Xw(o,1-s),u=(c[1]+c[0])/2,h=[u,u];return h[s]=l[s],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(Ky),Yw={line:function(e,t,n){var i=e_([t,n[0]],[t,n[1]],Zw(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=e.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:t_([t-i/2,n[0]],[i,r],Zw(e))}}};function Zw(e){return e.isHorizontal()?0:1}function Xw(e,t){var n=e.getRect();return[n[$w[t]],n[$w[t]]+n[Kw[t]]]}var Qw=Gw,Jw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="single",t}(nr["a"]);function eC(e){Object(i["a"])(P_),bo.registerAxisPointerClass("SingleAxisPointer",Qw),e.registerComponentView(Jw),e.registerComponentView(Nw),e.registerComponentModel(jw),mr(e,"single",jw,jw.defaultOption),e.registerCoordinateSystem("single",qw)}var tC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(t,n,i){var r=Object(pi["f"])(t);e.prototype.init.apply(this,arguments),nC(t,r)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),nC(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(ir["a"]);function nC(e,t){var n,i=e.cellSize;n=y["isArray"](i)?i:e.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var r=y["map"]([0,1],(function(e){return Object(pi["j"])(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Object(pi["h"])(e,t,{type:"box",ignoreSize:r})}var iC=tC,rC=n("ef59"),oC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var r=e.coordinateSystem,o=r.getRangeInfo(),s=r.getOrient(),a=t.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,s,i),this._renderYearText(e,o,s,i),this._renderMonthText(e,a,s,i),this._renderWeekText(e,a,o,s,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,r=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),s=i.getCellHeight(),a=t.start.time;a<=t.end.time;a=i.getNextNDay(a,1).time){var l=i.dataToRect([a],!1).tl,c=new $t["a"]({shape:{x:l[0],y:l[1],width:o,height:s},cursor:"default",style:r});n.add(c)}},t.prototype._renderLines=function(e,t,n,i){var r=this,o=e.coordinateSystem,s=e.getModel(["splitLine","lineStyle"]).getLineStyle(),a=e.get(["splitLine","show"]),l=s.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){d(c.formatedDate),0===u&&(c=o.getDateInfo(t.start.y+"-"+t.start.m));var h=c.date;h.setMonth(h.getMonth()+1),c=o.getDateInfo(h)}function d(t){r._firstDayOfMonth.push(o.getDateInfo(t)),r._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=r._getLinePointsOfOneWeek(e,t,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),a&&r._drawSplitline(l,s,i)}d(o.getNextNDay(t.end.time,1).formatedDate),a&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),s,i),a&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),s,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-t/2,i[1][r]=i[1][r]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new Ci["a"]({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,r=i.getDateInfo(t),o=[],s=0;s<7;s++){var a=i.getNextNDay(r.time,s),l=i.dataToRect([a.time],!1);o[2*a.day]=l.tl,o[2*a.day+1]=l["horizontal"===n?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,t){return Object(y["isString"])(e)&&e?Object(Jt["f"])(e,t):Object(y["isFunction"])(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,r){var o=t[0],s=t[1],a=["center","bottom"];"bottom"===i?(s+=r,a=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,a=["center","top"]):s-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:s,style:{align:a[0],verticalAlign:a[1]}}},t.prototype._renderYearText=function(e,t,n,i){var r=e.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),s=r.get("position");s||(s="horizontal"!==n?"top":"left");var a=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(a[0][0]+a[1][0])/2,c=(a[0][1]+a[1][1])/2,u="horizontal"===n?0:1,h={top:[l,a[u][1]],bottom:[l,a[1-u][1]],left:[a[1-u][0],c],right:[a[u][0],c]},d=t.start.y;+t.end.y>+t.start.y&&(d=d+"-"+t.end.y);var f=r.get("formatter"),p={start:t.start.y,end:t.end.y,nameMap:d},g=this._formatterLabel(f,p),m=new ie["a"]({z2:30,style:Object(bt["c"])(r,{text:g})});m.attr(this._yearTextPositionControl(m,h[s],n,s,o)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,t,n,i,r){var o="left",s="top",a=e[0],l=e[1];return"horizontal"===n?(l+=r,t&&(o="center"),"start"===i&&(s="bottom")):(a+=r,t&&(s="middle"),"start"===i&&(o="right")),{x:a,y:l,align:o,verticalAlign:s}},t.prototype._renderMonthText=function(e,t,n,i){var r=e.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),s=r.get("margin"),a=r.get("position"),l=r.get("align"),c=[this._tlpoints,this._blpoints];o&&!Object(y["isString"])(o)||(o&&(t=Object(rC["d"])(o)||t),o=t.get(["time","monthAbbr"])||[]);var u="start"===a?0:1,h="horizontal"===n?0:1;s="start"===a?-s:s;for(var d="center"===l,f=0;f<c[u].length-1;f++){var p=c[u][f].slice(),g=this._firstDayOfMonth[f];if(d){var m=this._firstDayPoints[f];p[h]=(m[h]+c[0][f+1][h])/2}var v=r.get("formatter"),b=o[+g.m-1],_={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:b},w=this._formatterLabel(v,_),C=new ie["a"]({z2:30,style:Object(y["extend"])(Object(bt["c"])(r,{text:w}),this._monthTextPositionControl(p,d,n,a,s))});i.add(C)}}},t.prototype._weekTextPositionControl=function(e,t,n,i,r){var o="center",s="middle",a=e[0],l=e[1],c="start"===n;return"horizontal"===t?(a=a+i+(c?1:-1)*r[0]/2,o=c?"right":"left"):(l=l+i+(c?1:-1)*r[1]/2,s=c?"bottom":"top"),{x:a,y:l,align:o,verticalAlign:s}},t.prototype._renderWeekText=function(e,t,n,i,r){var o=e.getModel("dayLabel");if(o.get("show")){var s=e.coordinateSystem,a=o.get("position"),l=o.get("nameMap"),c=o.get("margin"),u=s.getFirstDayOfWeek();if(!l||Object(y["isString"])(l)){l&&(t=Object(rC["d"])(l)||t);var h=t.get(["time","dayOfWeekShort"]);l=h||Object(y["map"])(t.get(["time","dayOfWeekAbbr"]),(function(e){return e[0]}))}var d=s.getNextNDay(n.end.time,7-n.lweek).time,f=[s.getCellWidth(),s.getCellHeight()];c=Object(Gt["q"])(c,Math.min(f[1],f[0])),"start"===a&&(d=s.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var p=0;p<7;p++){var g=s.getNextNDay(d,p),m=s.dataToRect([g.time],!1).center,v=p;v=Math.abs((p+u)%7);var b=new ie["a"]({z2:30,style:Object(y["extend"])(Object(bt["c"])(o,{text:l[v]}),this._weekTextPositionControl(m,i,a,c,f))});r.add(b)}}},t.type="calendar",t}(nr["a"]),sC=oC,aC=864e5,lC=function(){function e(t,n,i){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){e=Gt["p"](e);var t=e.getFullYear(),n=e.getMonth()+1,i=n<10?"0"+n:""+n,r=e.getDate(),o=r<10?"0"+r:""+r,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:i,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+i+"-"+o,date:e}},e.prototype.getNextNDay=function(e,t){return t=t||0,0===t||(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t)),this.getDateInfo(e)},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],r=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s="horizontal"===this._orient?[n,7]:[7,n];y["each"]([0,1],(function(e){c(r,e)&&(o[i[e]]=r[e]*s[e])}));var a={width:t.getWidth(),height:t.getHeight()},l=this._rect=pi["g"](o,a);function c(e,t){return null!=e[t]&&"auto"!==e[t]}y["each"]([0,1],(function(e){c(r,e)||(r[e]=l[i[e]]/s[e])})),this._sw=r[0],this._sh=r[1]},e.prototype.dataToPoint=function(e,t){y["isArray"](e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,r=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+aC))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([i.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,i):this._getDateByWeeksAndDay(t,n-1,i)},e.prototype.convertToPixel=function(e,t,n){var i=cC(t);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=cC(t);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(y["isArray"](t)&&1===t.length&&(t=t[0]),y["isArray"](t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);e=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/aC)-Math.floor(n[0].time/aC)+1,r=new Date(n[0].time),o=r.getDate(),s=n[1].date.getDate();r.setDate(o+i-1);var a=r.getDate();if(a!==s){var l=r.getTime()-n[1].time>0?1:-1;while((a=r.getDate())!==s&&(r.getTime()-n[1].time)*l>0)i-=l,r.setDate(a-l)}var c=Math.floor((i+n[0].day+6)/7),u=t?1-c:c-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:c,nthWeek:u,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var r=7*(e-1)-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",(function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},e.dimensions=["time","value"],e}();function cC(e){var t=e.calendarModel,n=e.seriesModel,i=t?t.coordinateSystem:n?n.coordinateSystem:null;return i}var uC=lC;function hC(e){e.registerComponentModel(iC),e.registerComponentView(sC),e.registerCoordinateSystem("calendar",uC)}function dC(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function fC(e,t){var n;return y["each"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function pC(e,t,n){var i=y["extend"]({},n),r=e[t],o=n.$action||"merge";"merge"===o?r?(y["merge"](r,i,!0),Object(pi["h"])(r,i,{ignoreSize:!0}),Object(pi["c"])(n,r),vC(n,r),vC(n,r,"shape"),vC(n,r,"style"),vC(n,r,"extra"),n.clipPath=r.clipPath):e[t]=i:"replace"===o?e[t]=i:"remove"===o&&r&&(e[t]=null)}var gC=["transition","enterFrom","leaveTo"],mC=gC.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function vC(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var i=n?gC:mC,r=0;r<i.length;r++){var o=i[r];null==e[o]&&null!=t[o]&&(e[o]=t[o])}}function bC(e,t){if(e&&(e.hv=t.hv=[fC(t,["left","right"]),fC(t,["top","bottom"])],"group"===e.type)){var n=e,i=t;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}var yC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return Object(rt["a"])(t,e),t.prototype.mergeOption=function(t,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=i},t.prototype.optionUpdated=function(e,t){var n=this.option,i=(t?n:e).elements,r=n.elements=t?[]:n.elements,o=[];this._flatten(i,o,null);var s=Pt["q"](r,o,"normalMerge"),a=this._elOptionsToUpdate=[];y["each"](s,(function(e,t){var n=e.newOption;n&&(a.push(n),dC(e,n),pC(r,t,n),bC(r[t],n))}),this),n.elements=y["filter"](r,(function(e){return e&&delete e.$action,null!=e}))},t.prototype._flatten=function(e,t,n){y["each"](e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var i=e.children;i&&i.length&&this._flatten(i,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(ir["a"]),_C={path:null,compoundPath:null,group:lt["a"],image:l["a"],text:ie["a"]},wC=Pt["o"](),CC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(){this._elMap=y["createHashMap"]()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,i=this.group,r=e.get("z"),o=e.get("zlevel");y["each"](t,(function(t){var s=Pt["e"](t.id,null),a=null!=s?n.get(s):null,l=Pt["e"](t.parentId,null),c=null!=l?n.get(l):i,u=t.type,h=t.style;"text"===u&&h&&t.hv&&t.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var d=t.textContent,f=t.textConfig;if(h&&wb(h,u,!!f,!!d)){var p=Cb(h,u,!0);!f&&p.textConfig&&(f=t.textConfig=p.textConfig),!d&&p.textContent&&(d=p.textContent)}var g=LC(t);var m=t.$action||"merge",v="merge"===m,b="replace"===m;if(v){var y=!a,_=a;y?_=xC(s,c,t.type,n):(_&&(wC(_).isNew=!1),Zb(_)),_&&(Tb(_,g,e,{isInit:y}),kC(_,t,r,o))}else if(b){OC(a,t,n,e);var w=xC(s,c,t.type,n);w&&(Tb(w,g,e,{isInit:!0}),kC(w,t,r,o))}else"remove"===m&&(Ab(a,t),OC(a,t,n,e));var C=n.get(s);if(C&&d)if(v){var S=C.getTextContent();S?S.attr(d):C.setTextContent(new ie["a"](d))}else b&&C.setTextContent(new ie["a"](d));if(C){var x=t.clipPath;if(x){var O=x.type,k=void 0;y=!1;if(v){var L=C.getClipPath();y=!L||wC(L).type!==O,k=y?SC(O):L}else b&&(y=!0,k=SC(O));C.setClipPath(k),Tb(k,x,e,{isInit:y}),Xb(k,x.keyframeAnimation,e)}var E=wC(C);C.setTextConfig(f),E.option=t,EC(C,e,t),dt["setTooltipConfig"]({el:C,componentModel:e,itemName:C.name,itemTooltipOption:t.tooltip}),Xb(C,t.keyframeAnimation,e)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,i=this.group,r=this._elMap,o=t.getWidth(),s=t.getHeight(),a=["x","y"],l=0;l<n.length;l++){var c=n[l],u=Pt["e"](c.id,null),h=null!=u?r.get(u):null;if(h&&h.isGroup){var d=h.parent,f=d===i,p=wC(h),g=wC(d);p.width=Object(Gt["q"])(p.option.width,f?o:g.width)||0,p.height=Object(Gt["q"])(p.option.height,f?s:g.height)||0}}for(l=n.length-1;l>=0;l--){c=n[l],u=Pt["e"](c.id,null),h=null!=u?r.get(u):null;if(h){d=h.parent,g=wC(d);var m=d===i?{width:o,height:s}:{width:g.width,height:g.height},v={},b=pi["i"](h,c,m,null,{hv:c.hv,boundingMode:c.bounding},v);if(!wC(h).isNew&&b){for(var _=c.transition,w={},C=0;C<a.length;C++){var S=a[C],x=v[S];_&&(Pb(_)||y["indexOf"](_,S)>=0)?w[S]=x:h[S]=x}Object(ht["h"])(h,w,e,0)}else h.attr(v)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){OC(n,wC(n).option,t,e._lastGraphicModel)})),this._elMap=y["createHashMap"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(nr["a"]);function SC(e){var t=y["hasOwn"](_C,e)?_C[e]:dt["getShapeClass"](e);var n=new t({});return wC(n).type=e,n}function xC(e,t,n,i){var r=SC(n);return t.add(r),i.set(e,r),wC(r).id=e,wC(r).isNew=!0,r}function OC(e,t,n,i){var r=e&&e.parent;r&&("group"===e.type&&e.traverse((function(e){OC(e,t,n,i)})),Nb(e,t,i),n.removeKey(wC(e).id))}function kC(e,t,n,i){e.isGroup||y["each"]([["cursor",ya["c"].prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];y["hasOwn"](t,i)?e[i]=y["retrieve2"](t[i],n[1]):null==e[i]&&(e[i]=n[1])})),y["each"](y["keys"](t),(function(n){if(0===n.indexOf("on")){var i=t[n];e[n]=y["isFunction"](i)?i:null}})),y["hasOwn"](t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function LC(e){return e=y["extend"]({},e),y["each"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(pi["a"]),(function(t){delete e[t]})),e}function EC(e,t,n){var i=Object(ft["a"])(e).eventData;e.silent||e.ignore||i||(i=Object(ft["a"])(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=n.info)}function DC(e){e.registerComponentModel(yC),e.registerComponentView(CC),e.registerPreprocessor((function(e){var t=e.graphic;Object(y["isArray"])(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var IC=["x","y","radius","angle","single"],MC=["cartesian2d","polar","singleAxis"];function TC(e){var t=e.get("coordinateSystem");return Object(y["indexOf"])(MC,t)>=0}function AC(e){return e+"Axis"}function NC(e,t){var n,i=Object(y["createHashMap"])(),r=[],o=Object(y["createHashMap"])();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||a(e)}));do{n=!1,e.eachComponent("dataZoom",s)}while(n);function s(e){!o.get(e.uid)&&l(e)&&(a(e),n=!0)}function a(e){o.set(e.uid,!0),r.push(e),c(e)}function l(e){var t=!1;return e.eachTargetAxis((function(e,n){var r=i.get(e);r&&r[n]&&(t=!0)})),t}function c(e){e.eachTargetAxis((function(e,t){(i.get(e)||i.set(e,[]))[t]=!0}))}return r}function PC(e){var t=e.ecModel,n={infoList:[],infoMap:Object(y["createHashMap"])()};return e.eachTargetAxis((function(e,i){var r=t.getComponent(AC(e),i);if(r){var o=r.getCoordSysModel();if(o){var s=o.uid,a=n.infoMap.get(s);a||(a={model:o,axisModels:[]},n.infoList.push(a),n.infoMap.set(s,a)),a.axisModels.push(r)}}})),n}var jC=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),RC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return Object(rt["a"])(t,e),t.prototype.init=function(e,t,n){var i=FC(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var t=FC(e);Object(y["merge"])(this.option,e,!0),Object(y["merge"])(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Object(y["each"])([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Object(y["createHashMap"])(),n=this._fillSpecifiedTargetAxis(t);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Object(y["each"])(IC,(function(n){var i=this.getReferringComponents(AC(n),Pt["a"]);if(i.specified){t=!0;var r=new jC;Object(y["each"])(i.models,(function(e){r.add(e.componentIndex)})),e.set(n,r)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,i=!0;if(i){var r="vertical"===t?"y":"x",o=n.findComponents({mainType:r+"Axis"});s(o,r)}if(i){o=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});s(o,"single")}function s(t,n){var r=t[0];if(r){var o=new jC;if(o.add(r.componentIndex),e.set(n,o),i=!1,"x"===n||"y"===n){var s=r.getReferringComponents("grid",Pt["b"]).models[0];s&&Object(y["each"])(t,(function(e){r.componentIndex!==e.componentIndex&&s===e.getReferringComponents("grid",Pt["b"]).models[0]&&o.add(e.componentIndex)}))}}}i&&Object(y["each"])(IC,(function(t){if(i){var r=n.findComponents({mainType:AC(t),filter:function(e){return"category"===e.get("type",!0)}});if(r[0]){var o=new jC;o.add(r[0].componentIndex),e.set(t,o),i=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");Object(y["each"])([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=e[i[0]],s=null!=e[i[1]];o&&!s?t[r]="percent":!o&&s?t[r]="value":n?t[r]=n[r]:o&&(t[r]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(AC(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,i){Object(y["each"])(n.indexList,(function(n){e.call(t,i,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(AC(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Object(y["each"])([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(y["each"])(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),s=0;s<o.indexList.length;s++){var a=this.getAxisProxy(r,o.indexList[s]);if(a.hostedBy(this))return a;t||(t=a)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(ir["a"]);function FC(e){var t={};return Object(y["each"])(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var BC=RC,WC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="dataZoom.select",t}(BC),VC=WC,zC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n,i){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(nr["a"]),HC=zC,UC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="dataZoom.select",t}(HC),qC=UC,$C=n("538f"),KC=y["each"],GC=Gt["c"],YC=function(){function e(e,t,n,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if(TC(t)){var n=AC(this._dimName),i=t.getReferringComponents(n,Pt["b"]).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return y["clone"](this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,i=this.getAxisModel(),r=i.axis.scale,o=this._dataZoomModel.getRangePropMode(),s=[0,100],a=[],l=[];KC(["start","end"],(function(i,c){var u=e[i],h=e[i+"Value"];"percent"===o[c]?(null==u&&(u=s[c]),h=r.parse(Gt["m"](u,s,n))):(t=!0,h=null==h?n[c]:r.parse(h),u=Gt["m"](h,n,s)),l[c]=null==h||isNaN(h)?n[c]:h,a[c]=null==u||isNaN(u)?s[c]:u})),GC(l),GC(a);var c=this._minMaxSpan;function u(e,t,n,i,o){var s=o?"Span":"ValueSpan";af(0,e,n,"all",c["min"+s],c["max"+s]);for(var a=0;a<2;a++)t[a]=Gt["m"](e[a],n,i,!0),o&&(t[a]=r.parse(t[a]))}return t?u(l,a,n,s,!1):u(a,l,s,n,!0),{valueWindow:l,percentWindow:a}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=ZC(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=e.get("filterMode"),o=this._valueWindow;"none"!==r&&KC(i,(function(e){var t=e.getData(),i=t.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=t.getStore(),l=y["map"](i,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,r,s=0;s<i.length;s++){var c=a.get(l[s],e),u=!isNaN(c),h=c<o[0],d=c>o[1];if(u&&!h&&!d)return!0;u&&(r=!0),h&&(t=!0),d&&(n=!0)}return r&&t&&n}))}else KC(i,(function(n){if("empty"===r)e.setData(t=t.map(n,(function(e){return s(e)?e:NaN})));else{var i={};i[n]=o,t.selectRange(i)}}));KC(i,(function(e){t.setApproximateExtent(o,e)}))}}))}function s(e){return e>=o[0]&&e<=o[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;KC(["min","max"],(function(i){var r=t.get(i+"Span"),o=t.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=Gt["m"](n[0]+o,n,[0,100],!0):null!=r&&(o=Gt["m"](r,[0,100],n,!0)-n[0]),e[i+"Span"]=r,e[i+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=Gt["g"](n,[0,500]);i=Math.min(i,20);var r=e.axis.scale.rawExtentInfo;0!==t[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==t[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},e}();function ZC(e,t,n){var i=[1/0,-1/0];KC(n,(function(e){Object(br["k"])(i,e.getData(),t)}));var r=e.getAxisModel(),o=Object($C["a"])(r.axis.scale,r,i).calculate();return[o.min,o.max]}var XC=YC,QC={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=e.getComponent(AC(i),r);t(i,r,o,n)}))}))}t((function(e,t,n,i){n.__dzAxisProxy=null}));var n=[];t((function(t,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new XC(t,i,o,e),n.push(r.__dzAxisProxy))}));var i=Object(y["createHashMap"])();return Object(y["each"])(n,(function(e){Object(y["each"])(e.getTargetSeriesModels(),(function(e){i.set(e.uid,e)}))})),i},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,i){e.getAxisProxy(n,i).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}},JC=QC;function eS(e){e.registerAction("dataZoom",(function(e,t){var n=NC(t,e);Object(y["each"])(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var tS=!1;function nS(e){tS||(tS=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,JC),eS(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function iS(e){e.registerComponentModel(VC),e.registerComponentView(qC),nS(e)}var rS=function(){function e(){}return e}(),oS={};function sS(e,t){oS[e]=t}function aS(e){return oS[e]}var lS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;y["each"](this.option.feature,(function(e,n){var i=aS(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),y["merge"](e,i.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(ir["a"]),cS=lS;function uS(e,t,n){var i=t.getBoxLayoutParams(),r=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},s=Object(pi["g"])(i,o,r);Object(pi["b"])(t.get("orient"),e,t.get("itemGap"),s.width,s.height),Object(pi["i"])(e,i,o,r)}function hS(e,t){var n=Jt["i"](t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),e=new $t["a"]({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),e}var dS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n,i){var r=this.group;if(r.removeAll(),e.get("show")){var o=+e.get("itemSize"),s="vertical"===e.get("orient"),a=e.get("feature")||{},l=this._features||(this._features={}),u=[];y["each"](a,(function(e,t){u.push(t)})),new _c["a"](this._featureNames||[],u).add(h).update(h).remove(y["curry"](h,null)).execute(),this._featureNames=u,uS(r,e,n),r.add(hS(r.getBoundingRect(),e)),s||r.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),s=i.textConfig||(i.textConfig={}),a=e.getTextContent(),l=a&&a.ensureState("emphasis");if(l&&!y["isFunction"](l)&&t){var u=l.style||(l.style={}),h=c["d"](t,ie["a"].makeFont(u)),d=e.x+r.x,f=e.y+r.y+o,p=!1;f+h.height>n.getHeight()&&(s.position="top",p=!0);var g=p?-5-h.height:o+10;d+h.width/2>n.getWidth()?(s.position=["100%",g],u.align="right"):d-h.width/2<0&&(s.position=[0,g],u.align="left")}}))}function h(r,o){var s,c=u[r],h=u[o],f=a[c],p=new Ur["a"](f,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===c&&(f.title=i.newTitle),c&&!h){if(fS(c))s={onclick:p.option.onclick,featureName:c};else{var g=aS(c);if(!g)return;s=new g}l[c]=s}else if(s=l[h],!s)return;s.uid=Object(Dn["c"])("toolbox-feature"),s.model=p,s.ecModel=t,s.api=n;var m=s instanceof rS;c||!h?!p.get("show")||m&&s.unusable?m&&s.remove&&s.remove(t,n):(d(p,s,c),p.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?pt["r"]:pt["C"])(i[e])},s instanceof rS&&s.render&&s.render(p,t,n,i)):m&&s.dispose&&s.dispose(t,n)}function d(i,a,l){var c,u,h=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),f=a instanceof rS&&a.getIcons?a.getIcons():i.get("icon"),p=i.get("title")||{};y["isString"](f)?(c={},c[l]=f):c=f,y["isString"](p)?(u={},u[l]=p):u=p;var g=i.iconPaths={};y["each"](c,(function(l,c){var f=dt["createIcon"](l,{},{x:-o/2,y:-o/2,width:o,height:o});f.setStyle(h.getItemStyle());var p=f.ensureState("emphasis");p.style=d.getItemStyle();var m=new ie["a"]({style:{text:u[c],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null,font:Object(bt["d"])({fontStyle:d.get("textFontStyle"),fontFamily:d.get("textFontFamily"),fontSize:d.get("textFontSize"),fontWeight:d.get("textFontWeight")},t)},ignore:!0});f.setTextContent(m),dt["setTooltipConfig"]({el:f,componentModel:e,itemName:c,formatterParamsExtra:{title:u[c]}}),f.__title=u[c],f.on("mouseover",(function(){var t=d.getItemStyle(),i=s?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";m.setStyle({fill:d.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),f.setTextConfig({position:d.get("textPosition")||i}),m.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",c])&&n.leaveEmphasis(this),m.hide()})),("emphasis"===i.get(["iconStatus",c])?pt["r"]:pt["C"])(f),r.add(f),f.on("click",y["bind"](a.onclick,a,t,n,c)),g[c]=f}))}},t.prototype.updateView=function(e,t,n,i){y["each"](this._features,(function(e){e instanceof rS&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){y["each"](this._features,(function(n){n instanceof rS&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){y["each"](this._features,(function(n){n instanceof rS&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(nr["a"]);function fS(e){return 0===e.indexOf("my")}var pS=dS,gS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",s=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),a=u_["a"].browser;if("function"!==typeof MouseEvent||!a.newEdge&&(a.ie||a.edge))if(window.navigator.msSaveOrOpenBlob||r){var l=s.split(","),c=l[0].indexOf("base64")>-1,u=r?decodeURIComponent(l[1]):l[1];c&&(u=window.atob(u));var h=i+"."+o;if(window.navigator.msSaveOrOpenBlob){var d=u.length,f=new Uint8Array(d);while(d--)f[d]=u.charCodeAt(d);var p=new Blob([f]);window.navigator.msSaveOrOpenBlob(p,h)}else{var g=document.createElement("iframe");document.body.appendChild(g);var m=g.contentWindow,v=m.document;v.open("image/svg+xml","replace"),v.write(u),v.close(),m.focus(),v.execCommand("SaveAs",!0,h),document.body.removeChild(g)}}else{var b=n.get("lang"),y='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',_=window.open();_.document.write(y),_.document.title=i}else{var w=document.createElement("a");w.download=i+"."+o,w.target="_blank",w.href=s;var C=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});w.dispatchEvent(C)}},t.getDefaultOption=function(e){var t={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return t},t}(rS),mS=gS,vS="__ec_magicType_stack__",bS=[["line","bar"],["stack"]],yS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return y["each"](e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){var t={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return t},t.prototype.onclick=function(e,t,n){var i=this.model,r=i.get(["seriesIndex",n]);if(_S[n]){var o,s={series:[]},a=function(e){var t=e.subType,r=e.id,o=_S[n](t,r,e,i);o&&(y["defaults"](o,e.option),s.series.push(o));var a=e.coordinateSystem;if(a&&"cartesian2d"===a.type&&("line"===n||"bar"===n)){var l=a.getAxesByScale("ordinal")[0];if(l){var c=l.dim,u=c+"Axis",h=e.getReferringComponents(u,Pt["b"]).models[0],d=h.componentIndex;s[u]=s[u]||[];for(var f=0;f<=d;f++)s[u][d]=s[u][d]||{};s[u][d].boundaryGap="bar"===n}}};y["each"](bS,(function(e){y["indexOf"](e,n)>=0&&y["each"](e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},a);var l=n;"stack"===n&&(o=y["merge"]({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:s,newTitle:o,featureName:"magicType"})}},t}(rS),_S={line:function(e,t,n,i){if("bar"===e)return y["merge"]({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(e,t,n,i){if("line"===e)return y["merge"]({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(e,t,n,i){var r=n.get("stack")===vS;if("line"===e||"bar"===e)return i.setIconStatus("stack",r?"normal":"emphasis"),y["merge"]({id:t,stack:r?"":vS},i.get(["option","stack"])||{},!0)}};os["m"]({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var wS=yS,CS=new Array(60).join("-"),SS="\t";function xS(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var r=e.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(e);else{var o=r.getBaseAxis();if("category"===o.type){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}function OS(e){var t=[];return y["each"](e,(function(e,n){var i=e.categoryAxis,r=e.valueAxis,o=r.dim,s=[" "].concat(y["map"](e.series,(function(e){return e.name}))),a=[i.model.getCategories()];y["each"](e.series,(function(e){var t=e.getRawData();a.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var l=[s.join(SS)],c=0;c<a[0].length;c++){for(var u=[],h=0;h<a.length;h++)u.push(a[h][c]);l.push(u.join(SS))}t.push(l.join("\n"))})),t.join("\n\n"+CS+"\n\n")}function kS(e){return y["map"](e,(function(e){var t=e.getRawData(),n=[e.name],i=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,r=arguments[e-1],o=t.getName(r),s=0;s<e-1;s++)i[s]=arguments[s];n.push((o?o+SS:"")+i.join(SS))})),n.join("\n")})).join("\n\n"+CS+"\n\n")}function LS(e){var t=xS(e);return{value:y["filter"]([OS(t.seriesGroupByCategoryAxis),kS(t.other)],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+CS+"\n\n"),meta:t.meta}}function ES(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function DS(e){var t=e.slice(0,e.indexOf("\n"));if(t.indexOf(SS)>=0)return!0}var IS=new RegExp("["+SS+"]+","g");function MS(e){for(var t=e.split(/\n+/g),n=ES(t.shift()).split(IS),i=[],r=y["map"](n,(function(e){return{name:e,data:[]}})),o=0;o<t.length;o++){var s=ES(t[o]).split(IS);i.push(s.shift());for(var a=0;a<s.length;a++)r[a]&&(r[a].data[o]=s[a])}return{series:r,categories:i}}function TS(e){for(var t=e.split(/\n+/g),n=ES(t.shift()),i=[],r=0;r<t.length;r++){var o=ES(t[r]);if(o){var s=o.split(IS),a="",l=void 0,c=!1;isNaN(s[0])?(c=!0,a=s[0],s=s.slice(1),i[r]={name:a,value:[]},l=i[r].value):l=i[r]=[];for(var u=0;u<s.length;u++)l.push(+s[u]);1===l.length&&(c?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}function AS(e,t){var n=e.split(new RegExp("\n*"+CS+"\n*","g")),i={series:[]};return y["each"](n,(function(e,n){if(DS(e)){var r=MS(e),o=t[n],s=o.axisDim+"Axis";o&&(i[s]=i[s]||[],i[s][o.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{r=TS(e);i.series.push(r)}})),i}var NS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),s=i.get("lang")||[];o.innerHTML=s[0]||i.get("title"),o.style.cssText="margin:10px 20px",o.style.color=i.get("textColor");var a=document.createElement("div"),l=document.createElement("textarea");a.style.cssText="overflow:auto";var c=i.get("optionToContent"),u=i.get("contentToOption"),h=LS(e);if(y["isFunction"](c)){var d=c(t.getOption());y["isString"](d)?a.innerHTML=d:y["isDom"](d)&&a.appendChild(d)}else{l.readOnly=i.get("readOnly");var f=l.style;f.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",f.color=i.get("textColor"),f.borderColor=i.get("textareaBorderColor"),f.backgroundColor=i.get("textareaColor"),l.value=h.value,a.appendChild(l)}var p=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),b=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var _=this;function w(){n.removeChild(r),_._dom=null}Object(rs["a"])(v,"click",w),Object(rs["a"])(b,"click",(function(){if(null==u&&null!=c||null!=u&&null==c)w();else{var e;try{e=y["isFunction"](u)?u(a,t.getOption()):AS(l.value,p)}catch(n){throw w(),new Error("Data view format error "+n)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),w()}})),v.innerHTML=s[1],b.innerHTML=s[2],b.style.cssText=v.style.cssText=m,!i.get("readOnly")&&g.appendChild(b),g.appendChild(v),r.appendChild(o),r.appendChild(a),r.appendChild(g),a.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){var t={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return t},t}(rS);function PS(e,t){return y["map"](e,(function(e,n){var i=t&&t[n];if(y["isObject"](i)&&!y["isArray"](i)){var r=y["isObject"](e)&&!y["isArray"](e);r||(e={value:e});var o=null!=i.name&&null==e.name;return e=y["defaults"](e,i),o&&delete e.name,e}return e}))}os["m"]({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];y["each"](e.newOption.series,(function(e){var i=t.getSeriesByName(e.name)[0];if(i){var r=i.get("data");n.push({name:e.name,data:PS(e.data,r)})}else n.push(y["extend"]({type:"scatter"},e))})),t.mergeOption(y["defaults"]({series:n},e.newOption))}));var jS=NS,RS=y["each"],FS=Object(Pt["o"])();function BS(e,t){var n=HS(e);RS(t,(function(t,i){for(var r=n.length-1;r>=0;r--){var o=n[r];if(o[i])break}if(r<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var a=s.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}})),n.push(t)}function WS(e){var t=HS(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return RS(n,(function(e,n){for(var r=t.length-1;r>=0;r--)if(e=t[r][n],e){i[n]=e;break}})),i}function VS(e){FS(e).snapshots=null}function zS(e){return HS(e).length}function HS(e){var t=FS(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var US=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.onclick=function(e,t){VS(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return t},t}(rS);os["m"]({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var qS=US,$S=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],KS=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var r=YS(t,e);Object(y["each"])(ZS,(function(e,t){(!n||!n.include||Object(y["indexOf"])(n.include,t)>=0)&&e(r,i._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=JS[e.brushType](0,n,t);e.__rangeOffset={offset:tx[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(y["each"])(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&Object(y["each"])(i.coordSyses,(function(i){var r=JS[e.brushType](1,i,e.range,!0);n(e,r.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(y["each"])(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i=JS[e.brushType](0,n.coordSys,e.coordRange),r=e.__rangeOffset;e.range=r?tx[e.brushType](i.values,r.offset,ix(i.xyMinMax,r.xyMinMax)):i.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(y["map"])(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:Sp(i),isTargetByCursor:Op(i,e,n.coordSysModel),getLinearBrushOtherExtent:xp(i)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&Object(y["indexOf"])(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=YS(t,e),r=0;r<n.length;r++){var o=n[r],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var a=0;a<XS.length;a++)if(XS[a](i,o))return o}return!0},e}();function GS(e){return e[0]>e[1]&&e.reverse(),e}function YS(e,t){return Object(Pt["s"])(e,t,{includeMainTypes:$S})}var ZS={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,r=e.gridModels,o=Object(y["createHashMap"])(),s={},a={};(n||i||r)&&(Object(y["each"])(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),Object(y["each"])(i,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),Object(y["each"])(r,(function(e){o.set(e.id,e),s[e.id]=!0,a[e.id]=!0})),o.each((function(e){var r=e.coordinateSystem,o=[];Object(y["each"])(r.getCartesians(),(function(e,t){(Object(y["indexOf"])(n,e.getAxis("x").model)>=0||Object(y["indexOf"])(i,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:QS.grid,xAxisDeclared:s[e.id],yAxisDeclared:a[e.id]})})))},geo:function(e,t){Object(y["each"])(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:QS.geo})}))}},XS=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,r=e.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],QS={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(dt["getTransform"](e)),t}},JS={lineX:Object(y["curry"])(ex,0),lineY:Object(y["curry"])(ex,1),rect:function(e,t,n,i){var r=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),o=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),s=[GS([r[0],o[0]]),GS([r[1],o[1]])];return{values:s,xyMinMax:s}},polygon:function(e,t,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],o=Object(y["map"])(n,(function(n){var o=e?t.pointToData(n,i):t.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}));return{values:o,xyMinMax:r}}};function ex(e,t,n,i){var r=n.getAxis(["x","y"][e]),o=GS(Object(y["map"])([0,1],(function(e){return t?r.coordToData(r.toLocalCoord(i[e]),!0):r.toGlobalCoord(r.dataToCoord(i[e]))}))),s=[];return s[e]=o,s[1-e]=[NaN,NaN],{values:o,xyMinMax:s}}var tx={lineX:Object(y["curry"])(nx,0),lineY:Object(y["curry"])(nx,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Object(y["map"])(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function nx(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function ix(e,t){var n=rx(e),i=rx(t),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function rx(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var ox=KS,sx=n("2f1f"),ax=y["each"],lx=Object(Pt["p"])("toolbox-dataZoom_"),cx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new Cp(n.getZr()),this._brushController.on("brush",y["bind"](this._onBrush,this)).mount()),fx(e,t,this,i,n),dx(e,t)},t.prototype.onclick=function(e,t,n){ux[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new ox(hx(this.model),i,{include:["grid"]});r.matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(o("x",n,t[0]),o("y",n,t[1])):o({lineX:"x",lineY:"y"}[i],n,t)}})),BS(i,n),this._dispatchZoomAction(n)}function o(e,t,r){var o=t.getAxis(e),a=o.model,l=s(e,a,i),c=l.findRepresentativeAxisProxy(a).getMinMaxSpan();null==c.minValueSpan&&null==c.maxValueSpan||(r=af(0,r.slice(),o.scale.getExtent(),0,c.minValueSpan,c.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:r[0],endValue:r[1]})}function s(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(e,t.componentIndex);r&&(i=n)})),i}},t.prototype._dispatchZoomAction=function(e){var t=[];ax(e,(function(e,n){t.push(y["clone"](e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return t},t}(rS),ux={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(WS(this.ecModel))}};function hx(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function dx(e,t){e.setIconStatus("back",zS(t)>1?"emphasis":"normal")}function fx(e,t,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var s=new ox(hx(e),t,{include:["grid"]}),a=s.makePanelOpts(r,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}Object(sx["b"])("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),r=[],o=hx(i),s=Object(Pt["s"])(e,o);return ax(s.xAxisModels,(function(e){return a(e,"xAxis","xAxisIndex")})),ax(s.yAxisModels,(function(e){return a(e,"yAxis","yAxisIndex")})),r}function a(e,t,n){var o=e.componentIndex,s={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:lx+t+o};s[n]=o,r.push(s)}}));var px=cx;function gx(e){e.registerComponentModel(cS),e.registerComponentView(pS),sS("saveAsImage",mS),sS("magicType",wS),sS("dataView",jS),sS("dataZoom",px),sS("restore",qS),Object(i["a"])(iS)}var mx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(ir["a"]),vx=mx;function bx(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function yx(e){if(u_["a"].domSupported)for(var t=document.documentElement.style,n=0,i=e.length;n<i;n++)if(e[n]in t)return e[n]}var _x=yx(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),wx=yx(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Cx(e,t){if(!e)return t;t=Object(Jt["j"])(t,!0);var n=e.indexOf(t);return e=-1===n?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function Sx(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var xx=Cx(wx,"transition"),Ox=Cx(_x,"transform"),kx="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(u_["a"].transform3dSupported?"will-change:transform;":"");function Lx(e){return e="left"===e?"right":"right"===e?"left":"top"===e?"bottom":"top",e}function Ex(e,t,n){if(!Object(y["isString"])(n)||"inside"===n)return"";var i=e.get("backgroundColor"),r=e.get("borderWidth");t=Object(Jt["c"])(t);var o,s=Lx(n),a=Math.max(1.5*Math.round(r),6),l="",c=Ox+":";Object(y["indexOf"])(["left","right"],s)>-1?(l+="top:50%",c+="translateY(-50%) rotate("+(o="left"===s?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(o="top"===s?225:45)+"deg)");var u=o*Math.PI/180,h=a+r,d=h*Math.abs(Math.cos(u))+h*Math.abs(Math.sin(u)),f=Math.round(100*((d-Math.SQRT2*r)/2+Math.SQRT2*r-(d-h)/2))/100;l+=";"+s+":-"+f+"px";var p=t+" solid "+r+"px;",g=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",l+";"+c+";","border-bottom:"+p,"border-right:"+p,"background-color:"+i+";"];return'<div style="'+g.join("")+'"></div>'}function Dx(e,t){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+e/2+"s "+n,r="opacity"+i+",visibility"+i;return t||(i=" "+e+"s "+n,r+=u_["a"].transformSupported?","+Ox+i:",left"+i+",top"+i),xx+":"+r}function Ix(e,t,n){var i=e.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!u_["a"].transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=u_["a"].transform3dSupported,s="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+Ox+":"+s+";":[["top",0],["left",0],[_x,s]]}function Mx(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var r=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,a=e.get("textShadowOffsetY")||0;return r&&o&&t.push("text-shadow:"+s+"px "+a+"px "+o+"px "+r),Object(y["each"])(["decoration","align"],(function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)})),t.join(";")}function Tx(e,t,n){var i=[],r=e.get("transitionDuration"),o=e.get("backgroundColor"),s=e.get("shadowBlur"),a=e.get("shadowColor"),l=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),u=e.getModel("textStyle"),h=Object(Bo["d"])(e,"html"),d=l+"px "+c+"px "+s+"px "+a;return i.push("box-shadow:"+d),t&&r&&i.push(Dx(r,n)),o&&i.push("background-color:"+o),Object(y["each"])(["width","color","radius"],(function(t){var n="border-"+t,r=Object(Jt["j"])(n),o=e.get(r);null!=o&&i.push(n+":"+o+("color"===t?"":"px"))})),i.push(Mx(u)),null!=h&&i.push("padding:"+Object(Jt["i"])(h).join("px ")+"px"),i.join(";")+";"}function Ax(e,t,n,i,r){var o=t&&t.painter;if(n){var s=o&&o.getViewportRoot();s&&Object(L["d"])(e,s,n,i,r)}else{e[0]=i,e[1]=r;var a=o&&o.getViewportRootOffset();a&&(e[0]+=a.offsetLeft,e[1]+=a.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Nx=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,u_["a"].wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),r=t.appendTo,o=r&&(Object(y["isString"])(r)?document.querySelector(r):Object(y["isDom"])(r)?r:Object(y["isFunction"])(r)&&r(e.getDom()));Ax(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!s._enterable){var t=i.handler,n=i.painter.getViewportRoot();Object(rs["e"])(n,e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=Sx(t,"position"),i=t.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=kx+Tx(e,!this._firstShow,this._longHide)+Ix(r[0],r[1],!0)+"border-color:"+Object(Jt["c"])(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,i,r){var o=this.el;if(null!=e){var s="";if(Object(y["isString"])(r)&&"item"===n.get("trigger")&&!bx(n)&&(s=Ex(n,i,r)),Object(y["isString"])(e))o.innerHTML=e+s;else if(e){o.innerHTML="",Object(y["isArray"])(e)||(e=[e]);for(var a=0;a<e.length;a++)Object(y["isDom"])(e[a])&&e[a].parentNode!==o&&o.appendChild(e[a]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}}else o.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(Ax(n,this._zr,this._container,e,t),null!=n[0]&&null!=n[1]){var i=this.el.style,r=Ix(n[0],n[1]);Object(y["each"])(r,(function(e){i[e[0]]=e[1]}))}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",u_["a"].transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Object(y["bind"])(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}(),Px=Nx,jx=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Bx(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,i,r){var o=this;y["isObject"](e)&&Object(Kc["c"])(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new ie["a"]({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Object(Bo["d"])(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),y["each"](["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){o.el.style[e]=n.get(e)})),y["each"](["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(e){o.el.style[e]=s.get(e)||0})),this._zr.add(this.el);var a=this;this.el.on("mouseover",(function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0})),this.el.on("mouseout",(function(){a._enterable&&a._show&&a.hideLater(a._hideDelay),a._inContent=!1}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=Fx(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var i=this._styleCoord;Bx(i,this._zr,e,t),e=i[0],t=i[1];var r=n.style,o=Rx(r.borderWidth||0),s=Fx(r);n.x=e+o+s.left,n.y=t+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(y["bind"](this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Rx(e){return Math.max(0,e)}function Fx(e){var t=Rx(e.shadowBlur||0),n=Rx(e.shadowOffsetX||0),i=Rx(e.shadowOffsetY||0);return{left:Rx(t-n),right:Rx(t+n),top:Rx(t-i),bottom:Rx(t+i)}}function Bx(e,t,n,i){e[0]=n,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Wx=jx,Vx=n("f876"),zx=n("38a2"),Hx=new $t["a"]({shape:{x:-1,y:-1,width:2,height:2}}),Ux=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(e,t){if(!u_["a"].node&&t.getDom()){var n=e.getComponent("tooltip"),i=this._renderMode=Object(Pt["i"])(n.get("renderMode"));this._tooltipContent="richText"===i?new Wx(t):new Px(t,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,t,n){if(!u_["a"].node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?Object(Tn["b"])(this,"_updatePosition",50,"fixRate"):Object(Tn["a"])(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,t=e.get("triggerOn");f_("itemTooltip",this._api,Object(y["bind"])((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,i=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,i){if(i.from!==this.uid&&!u_["a"].node&&n.getDom()){var r=$x(i,n);this._ticket="";var o=i.dataByCoordSys,s=Xx(i,t,n);if(s){var a=s.el.getBoundingRect().clone();a.applyTransform(s.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:s.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=Hx;l.x=i.x,l.y=i.y,l.update(),Object(ft["a"])(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var c=C_(i,t),u=c.point[0],h=c.point[1];null!=u&&null!=h&&this._tryShow({offsetX:u,offsetY:h,target:c.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},t.prototype.manuallyHideTip=function(e,t,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide($x(i,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,i){var r=i.seriesIndex,o=i.dataIndex,s=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=s){var a=t.getSeriesByIndex(r);if(a){var l=a.getData(),c=qx([l.getItemModel(o),a,(a.coordinateSystem||{}).model],this._tooltipModel);if("axis"===c.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},t.prototype._tryShow=function(e,t){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var o,s,a=Object(ft["a"])(n);if("legend"===a.ssrType)return;this._lastDataByCoordSys=null,Object(sl["a"])(n,(function(e){return null!=Object(ft["a"])(e).dataIndex?(o=e,!0):null!=Object(ft["a"])(e).tooltipConfig?(s=e,!0):void 0}),!0),o?this._showSeriesItemTooltip(e,o,t):s?this._showComponentItemTooltip(e,s,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=Object(y["bind"])(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,i=this._tooltipModel,r=[t.offsetX,t.offsetY],o=qx([t.tooltipOption],i),s=this._renderMode,a=[],l=Object(Bo["c"])("section",{blocks:[],noHeader:!0}),c=[],u=new Bo["a"];Object(y["each"])(e,(function(e){Object(y["each"])(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value;if(t&&null!=r){var o=Xy(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),h=Object(Bo["c"])("section",{header:o,noHeader:!Object(y["trim"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Object(y["each"])(e.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=d.getDataParams(f);if(!(p.dataIndex<0)){p.axisDim=e.axisDim,p.axisIndex=e.axisIndex,p.axisType=e.axisType,p.axisId=e.axisId,p.axisValue=br["c"](t.axis,{value:r}),p.axisValueLabel=o,p.marker=u.makeTooltipMarker("item",Object(Jt["c"])(p.color),s);var g=Object(zx["b"])(d.formatTooltip(f,!0,null)),m=g.frag;if(m){var v=qx([d],i).get("valueFormatter");h.blocks.push(v?Object(y["extend"])({valueFormatter:v},m):m)}g.text&&c.push(g.text),a.push(p)}}))}}))})),l.blocks.reverse(),c.reverse();var h=t.position,d=o.get("order"),f=Object(Bo["b"])(l,u,s,d,n.get("useUTC"),o.get("textStyle"));f&&c.unshift(f);var p="richText"===s?"\n\n":"<br/>",g=c.join(p);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,a)?this._updatePosition(o,h,r[0],r[1],this._tooltipContent,a):this._showTooltipContent(o,g,a,Math.random()+"",r[0],r[1],h,null,u)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var i=this._ecModel,r=Object(ft["a"])(t),o=r.seriesIndex,s=i.getSeriesByIndex(o),a=r.dataModel||s,l=r.dataIndex,c=r.dataType,u=a.getData(c),h=this._renderMode,d=e.positionDefault,f=qx([u.getItemModel(l),a,s&&(s.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=f.get("trigger");if(null==p||"item"===p){var g=a.getDataParams(l,c),m=new Bo["a"];g.marker=m.makeTooltipMarker("item",Object(Jt["c"])(g.color),h);var v=Object(zx["b"])(a.formatTooltip(l,!1,c)),b=f.get("order"),_=f.get("valueFormatter"),w=v.frag,C=w?Object(Bo["b"])(_?Object(y["extend"])({valueFormatter:_},w):w,m,h,b,i.get("useUTC"),f.get("textStyle")):v.text,S="item_"+a.name+"_"+l;this._showOrMove(f,(function(){this._showTooltipContent(f,C,g,S,e.offsetX,e.offsetY,e.position,e.target,m)})),n({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var i="html"===this._renderMode,r=Object(ft["a"])(t),o=r.tooltipConfig,s=o.option||{},a=s.encodeHTMLContent;if(Object(y["isString"])(s)){var l=s;s={content:l,formatter:l},a=!0}a&&i&&s.content&&(s=Object(y["clone"])(s),s.content=Object(L["a"])(s.content));var c=[s],u=this._ecModel.getComponent(r.componentMainType,r.componentIndex);u&&c.push(u),c.push({formatter:s.content});var h=e.positionDefault,d=qx(c,this._tooltipModel,h?{position:h}:null),f=d.get("content"),p=Math.random()+"",g=new Bo["a"];this._showOrMove(d,(function(){var n=Object(y["clone"])(d.get("formatterParams")||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,g)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,i,r,o,s,a,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var u=e.get("formatter");s=s||e.get("position");var h=t,d=this._getNearestPoint([r,o],n,e.get("trigger"),e.get("borderColor")),f=d.color;if(u)if(Object(y["isString"])(u)){var p=e.ecModel.get("useUTC"),g=Object(y["isArray"])(n)?n[0]:n,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=u,m&&(h=Object(Vx["h"])(g.axisValue,h,p)),h=Object(Jt["e"])(h,n,!0)}else if(Object(y["isFunction"])(u)){var v=Object(y["bind"])((function(t,i){t===this._ticket&&(c.setContent(i,l,e,f,s),this._updatePosition(e,s,r,o,c,n,a))}),this);this._ticket=i,h=u(n,i,v)}else h=u;c.setContent(h,l,e,f,s),c.show(e,f),this._updatePosition(e,s,r,o,c,n,a)}},t.prototype._getNearestPoint=function(e,t,n,i){return"axis"===n||Object(y["isArray"])(t)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(y["isArray"])(t)?void 0:{color:i||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,i,r,o,s){var a=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var c=r.getSize(),u=e.get("align"),h=e.get("verticalAlign"),d=s&&s.getBoundingRect().clone();if(s&&d.applyTransform(s.transform),Object(y["isFunction"])(t)&&(t=t([n,i],o,r.el,d,{viewSize:[a,l],contentSize:c.slice()})),Object(y["isArray"])(t))n=Object(Gt["q"])(t[0],a),i=Object(Gt["q"])(t[1],l);else if(Object(y["isObject"])(t)){var f=t;f.width=c[0],f.height=c[1];var p=Object(pi["g"])(f,{width:a,height:l});n=p.x,i=p.y,u=null,h=null}else if(Object(y["isString"])(t)&&s){var g=Yx(t,d,c,e.get("borderWidth"));n=g[0],i=g[1]}else{g=Kx(n,i,r,a,l,u?null:20,h?null:20);n=g[0],i=g[1]}if(u&&(n-=Zx(u)?c[0]/2:"right"===u?c[0]:0),h&&(i-=Zx(h)?c[1]/2:"bottom"===h?c[1]:0),bx(e)){g=Gx(n,i,r,a,l);n=g[0],i=g[1]}r.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===e.length;return r&&Object(y["each"])(n,(function(n,o){var s=n.dataByAxis||[],a=e[o]||{},l=a.dataByAxis||[];r=r&&s.length===l.length,r&&Object(y["each"])(s,(function(e,n){var o=l[n]||{},s=e.seriesDataIndices||[],a=o.seriesDataIndices||[];r=r&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&s.length===a.length,r&&Object(y["each"])(s,(function(e,t){var n=a[t];r=r&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),i&&Object(y["each"])(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],s=i[n];o&&s&&s.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!r},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!u_["a"].node&&t.getDom()&&(Object(Tn["a"])(this,"_updatePosition"),this._tooltipContent.dispose(),y_("itemTooltip",t))},t.type="tooltip",t}(nr["a"]);function qx(e,t,n){var i,r=t.ecModel;n?(i=new Ur["a"](n,r,r),i=new Ur["a"](t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var s=e[o];s&&(s instanceof Ur["a"]&&(s=s.get("tooltip",!0)),Object(y["isString"])(s)&&(s={formatter:s}),s&&(i=new Ur["a"](s,i,r)))}return i}function $x(e,t){return e.dispatchAction||Object(y["bind"])(t.dispatchAction,t)}function Kx(e,t,n,i,r,o,s){var a=n.getSize(),l=a[0],c=a[1];return null!=o&&(e+l+o+2>i?e-=l+o:e+=o),null!=s&&(t+c+s>r?t-=c+s:t+=s),[e,t]}function Gx(e,t,n,i,r){var o=n.getSize(),s=o[0],a=o[1];return e=Math.min(e+s,i)-s,t=Math.min(t+a,r)-a,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function Yx(e,t,n,i){var r=n[0],o=n[1],s=Math.ceil(Math.SQRT2*i)+8,a=0,l=0,c=t.width,u=t.height;switch(e){case"inside":a=t.x+c/2-r/2,l=t.y+u/2-o/2;break;case"top":a=t.x+c/2-r/2,l=t.y-o-s;break;case"bottom":a=t.x+c/2-r/2,l=t.y+u+s;break;case"left":a=t.x-r-s,l=t.y+u/2-o/2;break;case"right":a=t.x+c+s,l=t.y+u/2-o/2}return[a,l]}function Zx(e){return"center"===e||"middle"===e}function Xx(e,t,n){var i=Object(Pt["t"])(e).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=Object(Pt["v"])(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),s=o.models[0];if(s){var a,l=n.getViewOfComponentModel(s);return l.group.traverse((function(t){var n=Object(ft["a"])(t).tooltipConfig;if(n&&n.name===e.name)return a=t,!0})),a?{componentMainType:r,componentIndex:s.componentIndex,el:a}:void 0}}}var Qx=Ux;function Jx(e){Object(i["a"])(P_),e.registerComponentModel(vx),e.registerComponentView(Qx),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},y["noop"]),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},y["noop"])}var eO=["rect","polygon","keep","clear"];function tO(e,t){var n=Object(Pt["r"])(e?e.brush:[]);if(n.length){var i=[];y["each"](n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))}));var r=e&&e.toolbox;y["isArray"](r)&&(r=r[0]),r||(r={feature:{}},e.toolbox=[r]);var o=r.feature||(r.feature={}),s=o.brush||(o.brush={}),a=s.type||(s.type=[]);a.push.apply(a,i),nO(a),t&&!a.length&&a.push.apply(a,eO)}}function nO(e){var t={};y["each"](e,(function(e){t[e]=1})),e.length=0,y["each"](t,(function(t,n){e.push(n)}))}var iO=n("0924"),rO=y["each"];function oO(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function sO(e,t,n){var i={};return rO(t,(function(t){var o=i[t]=r();rO(e[t],(function(e,i){if(hu.isValidType(i)){var r={type:i,visual:e};n&&n(r,t),o[i]=new hu(r),"opacity"===i&&(r=y["clone"](r),r.type="colorAlpha",o.__hidden.__alphaForOpacity=new hu(r))}}))})),i;function r(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function aO(e,t,n){var i;y["each"](n,(function(e){t.hasOwnProperty(e)&&oO(t[e])&&(i=!0)})),i&&y["each"](n,(function(n){t.hasOwnProperty(n)&&oO(t[n])?e[n]=y["clone"](t[n]):delete e[n]}))}function lO(e,t,n,i,r,o){var s,a={};function l(e){return Object(iO["a"])(n,s,e)}function c(e,t){Object(iO["c"])(n,s,e,t)}function u(e,u){s=null==o?e:u;var h=n.getRawDataItem(s);if(!h||!1!==h.visualMap)for(var d=i.call(r,e),f=t[d],p=a[d],g=0,m=p.length;g<m;g++){var v=p[g];f[v]&&f[v].applyVisual(e,l,c)}}y["each"](e,(function(e){var n=hu.prepareVisualTypes(t[e]);a[e]=n})),null==o?n.each(u):n.each([o],u)}function cO(e,t,n,i){var r={};return y["each"](e,(function(e){var n=hu.prepareVisualTypes(t[e]);r[e]=n})),{progress:function(e,o){var s,a;function l(e){return Object(iO["a"])(o,a,e)}function c(e,t){Object(iO["c"])(o,a,e,t)}null!=i&&(s=o.getDimensionIndex(i));var u=o.getStore();while(null!=(a=e.next())){var h=o.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var d=null!=i?u.get(s,a):a,f=n(d),p=t[f],g=r[f],m=0,v=g.length;m<v;m++){var b=g[m];p[b]&&p[b].applyVisual(d,l,c)}}}}}var uO=n("0655");function hO(e){var t=e.brushType,n={point:function(i){return dO[t].point(i,n,e)},rect:function(i){return dO[t].rect(i,n,e)}};return n}var dO={lineX:fO(0),lineY:fO(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&uO["a"](n.range,e[0],e[1])},rect:function(e,t,n){var i=n.range;if(!e||i.length<=1)return!1;var r=e.x,o=e.y,s=e.width,a=e.height,l=i[0];return!!(uO["a"](i,r,o)||uO["a"](i,r+s,o)||uO["a"](i,r,o+a)||uO["a"](i,r+s,o+a)||Gi["a"].create(e).contain(l[0],l[1])||Object(dt["linePolygonIntersect"])(r,o,r+s,o,i)||Object(dt["linePolygonIntersect"])(r,o,r,o+a,i)||Object(dt["linePolygonIntersect"])(r+s,o,r+s,o+a,i)||Object(dt["linePolygonIntersect"])(r,o+a,r+s,o+a,i))||void 0}}};function fO(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,i){if(t){var r=i.range,o=t[e];return pO(o,r)}},rect:function(i,r,o){if(i){var s=o.range,a=[i[t[e]],i[t[e]]+i[n[e]]];return a[1]<a[0]&&a.reverse(),pO(a[0],s)||pO(a[1],s)||pO(s[0],a)||pO(s[1],a)}}}}function pO(e,t){return t[0]<=e&&e<=t[1]}var gO=["inBrush","outOfBrush"],mO="__ecBrushSelect",vO="__ecInBrushSelectEvent";function bO(e){e.eachComponent({mainType:"brush"},(function(t){var n=t.brushTargetManager=new ox(t.option,e);n.setInputRanges(t.areas,e)}))}function yO(e,t,n){var i,r,o=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),bO(e),e.eachComponent({mainType:"brush"},(function(t,n){var s={brushId:t.id,brushIndex:n,brushName:t.name,areas:y["clone"](t.areas),selected:[]};o.push(s);var a=t.option,l=a.brushLink,c=[],u=[],h=[],d=!1;n||(i=a.throttleType,r=a.throttleDelay);var f=y["map"](t.areas,(function(e){var t=xO[e.brushType],n=y["defaults"]({boundingRect:t?t(e):void 0},e);return n.selectors=hO(n),n})),p=sO(t.option,gO,(function(e){e.mappingMethod="fixed"}));function g(e){return"all"===l||!!c[e]}function m(e){return!!e.length}function v(e,t){var n=e.coordinateSystem;d=d||n.hasAxisBrushed(),g(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(u[t]=1)}))}function b(n,i,r){if(n.brushSelector&&!SO(t,i)&&(y["each"](f,(function(i){t.brushTargetManager.controlSeries(i,n,e)&&r.push(i),d=d||m(r)})),g(i)&&m(r))){var o=n.getData();o.each((function(e){CO(n,r,o,e)&&(u[e]=1)}))}}y["isArray"](l)&&y["each"](l,(function(e){c[e]=1})),e.eachSeries((function(e,t){var n=h[t]=[];"parallel"===e.subType?v(e,t):b(e,t,n)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};s.selected.push(n);var i=h[t],r=e.getData(),o=g(t)?function(e){return u[e]?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return CO(e,i,r,t)?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"};(g(t)?d:m(i))&&lO(gO,p,r,o)}))})),_O(t,i,r,o,n)}function _O(e,t,n,i,r){if(r){var o=e.getZr();if(!o[vO]){o[mO]||(o[mO]=wO);var s=Tn["b"](o,mO,n,t);s(e,i)}}}function wO(e,t){if(!e.isDisposed()){var n=e.getZr();n[vO]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[vO]=!1}}function CO(e,t,n,i){for(var r=0,o=t.length;r<o;r++){var s=t[r];if(e.brushSelector(i,n,s.selectors,s))return!0}}function SO(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(y["isArray"](n)?y["indexOf"](n,t)<0:t!==n)}var xO={rect:function(e){return OO(e.range)},polygon:function(e){for(var t,n=e.range,i=0,r=n.length;i<r;i++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),o[1]>t[1][1]&&(t[1][1]=o[1])}return t&&OO(t)}};function OO(e){return new Gi["a"](e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var kO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new Cp(t.getZr())).on("brush",y["bind"](this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){bO(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:y["clone"](n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:y["clone"](n),$from:t})},t.type="brush",t}(nr["a"]),LO=kO,EO="#ddd",DO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return Object(rt["a"])(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&aO(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:EO},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=y["map"](e,(function(e){return IO(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=IO(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(ir["a"]);function IO(e,t){return y["merge"]({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Ur["a"](e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var MO=DO,TO=["rect","polygon","lineX","lineY","keep","clear"],AO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){var i,r,o;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,r=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=i,this._brushMode=r,y["each"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===r:"clear"===t?o:t===i)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return y["each"](e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,r=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},t.getDefaultOption=function(e){var t={show:!0,type:TO.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return t},t}(rS),NO=AO;function PO(e){e.registerComponentView(LO),e.registerComponentModel(MO),e.registerPreprocessor(tO),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,yO),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},y["noop"]),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},y["noop"]),sS("brush",NO)}var jO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(rt["a"])(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(ir["a"]),RO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,r=e.getModel("textStyle"),o=e.getModel("subtextStyle"),s=e.get("textAlign"),a=y["retrieve2"](e.get("textBaseline"),e.get("textVerticalAlign")),l=new ie["a"]({style:Object(bt["c"])(r,{text:e.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),c=l.getBoundingRect(),u=e.get("subtext"),h=new ie["a"]({style:Object(bt["c"])(o,{text:u,fill:o.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),f=e.get("sublink"),p=e.get("triggerEvent",!0);l.silent=!d&&!p,h.silent=!f&&!p,d&&l.on("click",(function(){Object(Jt["k"])(d,"_"+e.get("target"))})),f&&h.on("click",(function(){Object(Jt["k"])(f,"_"+e.get("subtarget"))})),Object(ft["a"])(l).eventData=Object(ft["a"])(h).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(l),u&&i.add(h);var g=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=Object(pi["g"])(m,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));s||(s=e.get("left")||e.get("right"),"middle"===s&&(s="center"),"right"===s?v.x+=v.width:"center"===s&&(v.x+=v.width/2)),a||(a=e.get("top")||e.get("bottom"),"center"===a&&(a="middle"),"bottom"===a?v.y+=v.height:"middle"===a&&(v.y+=v.height/2),a=a||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var b={align:s,verticalAlign:a};l.setStyle(b),h.setStyle(b),g=i.getBoundingRect();var _=v.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var C=new $t["a"]({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(C)}},t.type="title",t}(nr["a"]);function FO(e){e.registerComponentModel(jO),e.registerComponentView(RO)}var BO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return Object(rt["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,r=this._names=[];"category"===i?(e=[],Object(y["each"])(n,(function(t,n){var i,o=Object(Pt["e"])(Object(Pt["h"])(t),"");Object(y["isObject"])(t)?(i=Object(y["clone"])(t),i.value=n):i=n,e.push(i),r.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number",s=this._data=new ji["a"]([{name:"value",type:o}],this);s.initData(e,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(ir["a"]),WO=BO,VO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="timeline.slider",t.defaultOption=Object(Dn["d"])(WO.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(WO);Object(y["mixin"])(VO,zx["a"].prototype);var zO=VO,HO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="timeline",t}(nr["a"]),UO=HO,qO=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.type=r||"value",o}return Object(rt["a"])(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(Lr["a"]),$O=qO,KO=n("18c0"),GO=n("216a"),YO=Math.PI,ZO=Object(Pt["o"])(),XO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),s=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){var t=s.scale.getLabel({value:e});return Object(Bo["c"])("nameValue",{noName:!0,value:t})},Object(y["each"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,r,s,e)}),this),this._renderAxisLabel(i,o,s,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i=e.get(["label","position"]),r=e.get("orient"),o=JO(e,t);n=null==i||"auto"===i?"horizontal"===r?o.y+o.height/2<t.getHeight()/2?"-":"+":o.x+o.width/2<t.getWidth()/2?"+":"-":Object(y["isString"])(i)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][i]:i;var s,a,l,c={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},u={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:YO/2},d="vertical"===r?o.height:o.width,f=e.getModel("controlStyle"),p=f.get("show",!0),g=p?f.get("itemSize"):0,m=p?f.get("itemGap"):0,v=g+m,b=e.get(["label","rotate"])||0;b=b*YO/180;var _=f.get("position",!0),w=p&&f.get("showPlayBtn",!0),C=p&&f.get("showPrevBtn",!0),S=p&&f.get("showNextBtn",!0),x=0,O=d;"left"===_||"bottom"===_?(w&&(s=[0,0],x+=v),C&&(a=[x,0],x+=v),S&&(l=[O-g,0],O-=v)):(w&&(s=[O-g,0],O-=v),C&&(a=[0,0],x+=v),S&&(l=[O-g,0],O-=v));var k=[x,O];return e.get("inverse")&&k.reverse(),{viewRect:o,mainLength:d,orient:r,rotation:h[r],labelRotation:b,labelPosOpt:n,labelAlign:e.get(["label","align"])||c[r],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[r],playPosition:s,prevBtnPosition:a,nextBtnPosition:l,axisExtent:k,controlSize:g,controlGap:m}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,r=e.viewRect;if("vertical"===e.orient){var o=wr["create"](),s=r.x,a=r.y+r.height;wr["translate"](o,o,[-s,-a]),wr["rotate"](o,o,-YO/2),wr["translate"](o,o,[s,a]),r=r.clone(),r.applyTransform(o)}var l=m(r),c=m(n.getBoundingRect()),u=m(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=l[0][0];var f=e.labelPosOpt;if(null==f||Object(y["isString"])(f)){var p="+"===f?0:1;v(h,c,l,1,p),v(d,u,l,1,1-p)}else{p=f>=0?0:1;v(h,c,l,1,p),d[1]=h[1]+f}function g(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function m(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function v(e,t,n,i,r){e[i]+=n[i][r]-t[i][r]}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=e.rotation,g(n),g(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),r=QO(t,i);r.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var s=new $O("value",r,e.axisExtent,i);return s.model=t,s},t.prototype._createGroup=function(e){var t=this[e]=new lt["a"];return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new Hr["a"]({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:Object(y["extend"])({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var s=this._progressLine=new Hr["a"]({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:Object(y["defaults"])({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(s)}},t.prototype._renderAxisTick=function(e,t,n,i){var r=this,o=i.getData(),s=n.scale.getTicks();this._tickSymbols=[],Object(y["each"])(s,(function(e){var s=n.dataToCoord(e.value),a=o.getItemModel(e.value),l=a.getModel("itemStyle"),c=a.getModel(["emphasis","itemStyle"]),u=a.getModel(["progress","itemStyle"]),h={x:s,y:0,onclick:Object(y["bind"])(r._changeTimeline,r,e.value)},d=tk(a,l,t,h);d.ensureState("emphasis").style=c.getItemStyle(),d.ensureState("progress").style=u.getItemStyle(),Object(pt["o"])(d);var f=Object(ft["a"])(d);a.get("tooltip")?(f.dataIndex=e.value,f.dataModel=i):f.dataIndex=f.dataModel=null,r._tickSymbols.push(d)}))},t.prototype._renderAxisLabel=function(e,t,n,i){var r=this,o=n.getLabelModel();if(o.get("show")){var s=i.getData(),a=n.getViewLabels();this._tickLabels=[],Object(y["each"])(a,(function(i){var o=i.tickValue,a=s.getItemModel(o),l=a.getModel("label"),c=a.getModel(["emphasis","label"]),u=a.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),d=new ie["a"]({x:h,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(y["bind"])(r._changeTimeline,r,o),silent:!1,style:Object(bt["c"])(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState("emphasis").style=Object(bt["c"])(c),d.ensureState("progress").style=Object(bt["c"])(u),t.add(d),Object(pt["o"])(d),ZO(d).dataIndex=o,r._tickLabels.push(d)}))}},t.prototype._renderControl=function(e,t,n,i){var r=e.controlSize,o=e.rotation,s=i.getModel("controlStyle").getItemStyle(),a=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function h(e,n,l,u){if(e){var h=Object(c["g"])(Object(y["retrieve2"])(i.get(["controlStyle",n+"BtnSize"]),r),r),d=[0,-h/2,h,h],f=ek(i,n+"Icon",d,{x:e[0],y:e[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:s,onclick:l});f.ensureState("emphasis").style=a,t.add(f),Object(pt["o"])(f)}}h(e.nextBtnPosition,"next",Object(y["bind"])(this._changeTimeline,this,u?"-":"+")),h(e.prevBtnPosition,"prev",Object(y["bind"])(this._changeTimeline,this,u?"+":"-")),h(e.playPosition,l?"stop":"play",Object(y["bind"])(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var r=i.getData(),o=i.getCurrentIndex(),s=r.getItemModel(o).getModel("checkpointStyle"),a=this,l={onCreate:function(e){e.draggable=!0,e.drift=Object(y["bind"])(a._handlePointerDrag,a),e.ondragend=Object(y["bind"])(a._handlePointerDragend,a),nk(e,a._progressLine,o,n,i,!0)},onUpdate:function(e){nk(e,a._progressLine,o,n,i)}};this._currentPointer=tk(s,s,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,r=Gt["c"](i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var o=this._progressLine;o&&(o.shape.x2=n,o.dirty());var s=this._findNearestTick(n),a=this.model;(t||s!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(s)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var t=this._mainGroup.getLocalTransform();return dt["applyTransform"](e,t,!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,o){var s=r.dataToCoord(n),a=Math.abs(s-e);a<i&&(i=a,t=o)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var i=0;i<t.length;i++)t&&t[i]&&t[i].toggleState("progress",i<e);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",ZO(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(UO);function QO(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new KO["a"]({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new GO["a"]({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new Nr["a"]}}function JO(e,t){return pi["g"](e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function ek(e,t,n,i){var r=i.style,o=dt["createIcon"](e.get(["controlStyle",t]),i||{},new Gi["a"](n[0],n[1],n[2],n[3]));return r&&o.setStyle(r),o}function tk(e,t,n,i,r,o){var s=t.get("color");if(r)r.setColor(s),n.add(r),o&&o.onUpdate(r);else{var a=e.get("symbol");r=Object(at["a"])(a,-1,-1,2,2,s),r.setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r)}var l=t.getItemStyle(["color"]);r.setStyle(l),i=Object(y["merge"])({rectHover:!0,z2:100},i,!0);var c=Object(at["c"])(e.get("symbolSize"));i.scaleX=c[0]/2,i.scaleY=c[1]/2;var u=Object(at["b"])(e.get("symbolOffset"),c);u&&(i.x=(i.x||0)+u[0],i.y=(i.y||0)+u[1]);var h=e.get("symbolRotate");return i.rotation=(h||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function nk(e,t,n,i,r,o){if(!e.dragging){var s=r.getModel("checkpointStyle"),a=i.dataToCoord(r.getData().get("value",n));if(o||!s.get("animation",!0))e.attr({x:a,y:0}),t&&t.attr({shape:{x2:a}});else{var l={duration:s.get("animationDuration",!0),easing:s.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:a,y:0},l),t&&t.animateTo({shape:{x2:a}},l)}}}var ik=XO;function rk(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t,n){var i=t.getComponent("timeline");return i&&null!=e.currentIndex&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Object(y["defaults"])({currentIndex:i.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}function ok(e){var t=e&&e.timeline;y["isArray"](t)||(t=t?[t]:[]),y["each"](t,(function(e){e&&sk(e)}))}function sk(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),ak(e),lk(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});lk(i,"position")||(i.position=e.controlPosition),"none"!==i.position||lk(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}y["each"](e.data||[],(function(e){y["isObject"](e)&&!y["isArray"](e)&&(!lk(e,"value")&&lk(e,"name")&&(e.value=e.name),ak(e))}))}function ak(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};y["each"](i,(function(e,t){o[t]||lk(r,t)||(r[t]=e)})),n.label&&!lk(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function lk(e,t){return e.hasOwnProperty(t)}function ck(e){e.registerComponentModel(zO),e.registerComponentView(ik),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),rk(e),e.registerPreprocessor(ok)}function uk(e,t){if(!e)return!1;for(var n=Object(y["isArray"])(e)?e:[e],i=0;i<n.length;i++)if(n[i]&&n[i][t])return!0;return!1}function hk(e){Object(Pt["f"])(e,"label",["show"])}var dk=Object(Pt["o"])(),fk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return Object(rt["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(u_["a"].node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,i){var r=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),o=dk(e)[r];n&&n.data?(o?o._mergeOption(n,t,!0):(i&&hk(n),y["each"](n.data,(function(e){e instanceof Array?(hk(e[0]),hk(e[1])):hk(e)})),o=this.createMarkerModelFromSeries(n,this,t),y["extend"](o,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),o.__hostSeries=e),dk(e)[r]=o):dk(e)[r]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return Object(Bo["c"])("section",{header:this.name,blocks:[Object(Bo["c"])("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,t){var n=zx["a"].prototype.getDataParams.call(this,e,t),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},t.getMarkerModelFromSeries=function(e,t){return dk(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(ir["a"]);y["mixin"](fk,zx["a"].prototype);var pk=fk,gk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(pk),mk=gk,vk=n("b7d9");function bk(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function yk(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function _k(e,t,n,i,r,o){var s=[],a=Object(Lt["c"])(t,i),l=a?t.getCalculationInfo("stackResultDimension"):i,c=Ek(t,l,e),u=t.indicesOfNearest(l,c)[0];s[r]=t.get(n,u),s[o]=t.get(l,u);var h=t.get(i,u),d=Gt["h"](t.get(i,u));return d=Math.min(d,20),d>=0&&(s[o]=+s[o].toFixed(d)),[s,h]}var wk={min:Object(y["curry"])(_k,"min"),max:Object(y["curry"])(_k,"max"),average:Object(y["curry"])(_k,"average"),median:Object(y["curry"])(_k,"median")};function Ck(e,t){if(t){var n=e.getData(),i=e.coordinateSystem,r=i&&i.dimensions;if(!yk(t)&&!Object(y["isArray"])(t.coord)&&Object(y["isArray"])(r)){var o=Sk(t,n,i,e);if(t=Object(y["clone"])(t),t.type&&wk[t.type]&&o.baseAxis&&o.valueAxis){var s=Object(y["indexOf"])(r,o.baseAxis.dim),a=Object(y["indexOf"])(r,o.valueAxis.dim),l=wk[t.type](n,o.baseDataDim,o.valueDataDim,s,a);t.coord=l[0],t.value=l[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&Object(y["isArray"])(r))for(var c=t.coord,u=0;u<2;u++)wk[c[u]]&&(c[u]=Ek(n,n.mapDimension(r[u]),c[u]));else t.coord=[];return t}}function Sk(e,t,n,i){var r={};return null!=e.valueIndex||null!=e.valueDim?(r.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,r.valueAxis=n.getAxis(xk(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim),r.valueDataDim=t.mapDimension(r.valueAxis.dim)),r}function xk(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function Ok(e,t){return!(e&&e.containData&&t.coord&&!bk(t))||e.containData(t.coord)}function kk(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!bk(t)&&!bk(n))||e.containZone(t.coord,n.coord)}function Lk(e,t){return e?function(e,n,i,r){var o=r<2?e.coord&&e.coord[r]:e.value;return Object(vk["d"])(o,t[r])}:function(e,n,i,r){return Object(vk["d"])(e.value,t[r])}}function Ek(e,t,n){if("average"===n){var i=0,r=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,r++)})),i/r}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var Dk=Object(Pt["o"])(),Ik=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.init=function(){this.markerGroupMap=Object(y["createHashMap"])()},t.prototype.render=function(e,t,n){var i=this,r=this.markerGroupMap;r.each((function(e){Dk(e).keep=!1})),t.eachSeries((function(e){var r=pk.getMarkerModelFromSeries(e,i.type);r&&i.renderSeries(e,r,t,n)})),r.each((function(e){!Dk(e).keep&&i.group.remove(e.group)}))},t.prototype.markKeep=function(e){Dk(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Object(y["each"])(e,(function(e){var i=pk.getMarkerModelFromSeries(e,n.type);if(i){var r=i.getData();r.eachItemGraphicEl((function(e){e&&(t?Object(pt["q"])(e):Object(pt["B"])(e))}))}}))},t.type="marker",t}(nr["a"]),Mk=Ik;function Tk(e,t,n){var i=t.coordinateSystem;e.each((function(r){var o,s=e.getItemModel(r),a=Gt["q"](s.get("x"),n.getWidth()),l=Gt["q"](s.get("y"),n.getHeight());if(isNaN(a)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,r));else if(i){var c=e.get(i.dimensions[0],r),u=e.get(i.dimensions[1],r);o=i.dataToPoint([c,u])}}else o=[a,l];isNaN(a)||(o[0]=a),isNaN(l)||(o[1]=l),e.setItemLayout(r,o)}))}var Ak=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=pk.getMarkerModelFromSeries(e,"markPoint");t&&(Tk(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,s=e.getData(),a=this.markerGroupMap,l=a.get(o)||a.set(o,new kt),c=Nk(r,e,t);t.setData(c),Tk(t.getData(),e,i),c.each((function(e){var n=c.getItemModel(e),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),a=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(y["isFunction"])(i)||Object(y["isFunction"])(r)||Object(y["isFunction"])(o)||Object(y["isFunction"])(a)){var u=t.getRawValue(e),h=t.getDataParams(e);Object(y["isFunction"])(i)&&(i=i(u,h)),Object(y["isFunction"])(r)&&(r=r(u,h)),Object(y["isFunction"])(o)&&(o=o(u,h)),Object(y["isFunction"])(a)&&(a=a(u,h))}var d=n.getModel("itemStyle").getItemStyle(),f=Object(iO["b"])(s,"color");d.fill||(d.fill=f),c.setItemVisual(e,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:a,symbolKeepAspect:l,style:d})})),l.updateData(c),this.group.add(l.group),c.eachItemGraphicEl((function(e){e.traverse((function(e){Object(ft["a"])(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(Mk);function Nk(e,t,n){var i;i=e?Object(y["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(y["extend"])(Object(y["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new ji["a"](i,n),o=Object(y["map"])(n.get("data"),Object(y["curry"])(Ck,t));e&&(o=Object(y["filter"])(o,Object(y["curry"])(Ok,e)));var s=Lk(!!e,i);return r.initData(o,null,s),r}var Pk=Ak;function jk(e){e.registerComponentModel(mk),e.registerComponentView(Pk),e.registerPreprocessor((function(e){uk(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var Rk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(pk),Fk=Rk,Bk=Object(Pt["o"])(),Wk=function(e,t,n,i){var r,o=e.getData();if(Object(y["isArray"])(i))r=i;else{var s=i.type;if("min"===s||"max"===s||"average"===s||"median"===s||null!=i.xAxis||null!=i.yAxis){var a=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)a=t.getAxis(null!=i.yAxis?"y":"x"),l=Object(y["retrieve"])(i.yAxis,i.xAxis);else{var c=Sk(i,o,t,e);a=c.valueAxis;var u=Object(Lt["b"])(o,c.valueDataDim);l=Ek(o,u,s)}var h="x"===a.dim?0:1,d=1-h,f=Object(y["clone"])(i),p={coord:[]};f.type=null,f.coord=[],f.coord[d]=-1/0,p.coord[d]=1/0;var g=n.get("precision");g>=0&&Object(y["isNumber"])(l)&&(l=+l.toFixed(Math.min(g,20))),f.coord[h]=p.coord[h]=l,r=[f,p,{type:s,valueIndex:i.valueIndex,value:l}]}else r=[]}var m=[Ck(e,r[0]),Ck(e,r[1]),Object(y["extend"])({},r[2])];return m[2].type=m[2].type||null,Object(y["merge"])(m[2],m[0]),Object(y["merge"])(m[2],m[1]),m};function Vk(e){return!isNaN(e)&&!isFinite(e)}function zk(e,t,n,i){var r=1-e,o=i.dimensions[e];return Vk(t[r])&&Vk(n[r])&&t[e]===n[e]&&i.getAxis(o).containData(t[e])}function Hk(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(zk(1,n,i,e)||zk(0,n,i,e)))return!0}return Ok(e,t[0])&&Ok(e,t[1])}function Uk(e,t,n,i,r){var o,s=i.coordinateSystem,a=e.getItemModel(t),l=Gt["q"](a.get("x"),r.getWidth()),c=Gt["q"](a.get("y"),r.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=s.dimensions,h=e.get(u[0],t),d=e.get(u[1],t);o=s.dataToPoint([h,d])}if(Qt(s,"cartesian2d")){var f=s.getAxis("x"),p=s.getAxis("y");u=s.dimensions;Vk(e.get(u[0],t))?o[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):Vk(e.get(u[1],t))&&(o[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];e.setItemLayout(t,o)}var qk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=pk.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),r=Bk(t).from,o=Bk(t).to;r.each((function(t){Uk(r,t,!0,e,n),Uk(o,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[r.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,s=e.getData(),a=this.markerGroupMap,l=a.get(o)||a.set(o,new Wh);this.group.add(l.group);var c=$k(r,e,t),u=c.from,h=c.to,d=c.line;Bk(t).from=u,Bk(t).to=h,t.setData(d);var f=t.get("symbol"),p=t.get("symbolSize"),g=t.get("symbolRotate"),m=t.get("symbolOffset");function v(t,n,r){var o=t.getItemModel(n);Uk(t,n,r,e,i);var a=o.getModel("itemStyle").getItemStyle();null==a.fill&&(a.fill=Object(iO["b"])(s,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(y["retrieve2"])(o.get("symbolOffset",!0),m[r?0:1]),symbolRotate:Object(y["retrieve2"])(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:Object(y["retrieve2"])(o.get("symbolSize"),p[r?0:1]),symbol:Object(y["retrieve2"])(o.get("symbol",!0),f[r?0:1]),style:a})}Object(y["isArray"])(f)||(f=[f,f]),Object(y["isArray"])(p)||(p=[p,p]),Object(y["isArray"])(g)||(g=[g,g]),Object(y["isArray"])(m)||(m=[m,m]),c.from.each((function(e){v(u,e,!0),v(h,e,!1)})),d.each((function(e){var t=d.getItemModel(e).getModel("lineStyle").getLineStyle();d.setItemLayout(e,[u.getItemLayout(e),h.getItemLayout(e)]),null==t.stroke&&(t.stroke=u.getItemVisual(e,"style").fill),d.setItemVisual(e,{fromSymbolKeepAspect:u.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:u.getItemVisual(e,"symbolOffset"),fromSymbolRotate:u.getItemVisual(e,"symbolRotate"),fromSymbolSize:u.getItemVisual(e,"symbolSize"),fromSymbol:u.getItemVisual(e,"symbol"),toSymbolKeepAspect:h.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(e,"symbolOffset"),toSymbolRotate:h.getItemVisual(e,"symbolRotate"),toSymbolSize:h.getItemVisual(e,"symbolSize"),toSymbol:h.getItemVisual(e,"symbol"),style:t})})),l.updateData(d),c.line.eachItemGraphicEl((function(e){Object(ft["a"])(e).dataModel=t,e.traverse((function(e){Object(ft["a"])(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(Mk);function $k(e,t,n){var i;i=e?Object(y["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(y["extend"])(Object(y["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new ji["a"](i,n),o=new ji["a"](i,n),s=new ji["a"]([],n),a=Object(y["map"])(n.get("data"),Object(y["curry"])(Wk,t,e,n));e&&(a=Object(y["filter"])(a,Object(y["curry"])(Hk,e)));var l=Lk(!!e,i);return r.initData(Object(y["map"])(a,(function(e){return e[0]})),null,l),o.initData(Object(y["map"])(a,(function(e){return e[1]})),null,l),s.initData(Object(y["map"])(a,(function(e){return e[2]}))),s.hasItemOption=!0,{from:r,to:o,line:s}}var Kk=qk;function Gk(e){e.registerComponentModel(Fk),e.registerComponentView(Kk),e.registerPreprocessor((function(e){uk(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var Yk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(pk),Zk=Yk,Xk=Object(Pt["o"])(),Qk=function(e,t,n,i){var r=i[0],o=i[1];if(r&&o){var s=Ck(e,r),a=Ck(e,o),l=s.coord,c=a.coord;l[0]=Object(y["retrieve"])(l[0],-1/0),l[1]=Object(y["retrieve"])(l[1],-1/0),c[0]=Object(y["retrieve"])(c[0],1/0),c[1]=Object(y["retrieve"])(c[1],1/0);var u=Object(y["mergeAll"])([{},s,a]);return u.coord=[s.coord,a.coord],u.x0=s.x,u.y0=s.y,u.x1=a.x,u.y1=a.y,u}};function Jk(e){return!isNaN(e)&&!isFinite(e)}function eL(e,t,n,i){var r=1-e;return Jk(t[r])&&Jk(n[r])}function tL(e,t){var n=t.coord[0],i=t.coord[1],r={coord:n,x:t.x0,y:t.y0},o={coord:i,x:t.x1,y:t.y1};return Qt(e,"cartesian2d")?!(!n||!i||!eL(1,n,i,e)&&!eL(0,n,i,e))||kk(e,r,o):Ok(e,r)||Ok(e,o)}function nL(e,t,n,i,r){var o,s=i.coordinateSystem,a=e.getItemModel(t),l=Gt["q"](a.get(n[0]),r.getWidth()),c=Gt["q"](a.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(c)){if(i.getMarkerPosition){var u=e.getValues(["x0","y0"],t),h=e.getValues(["x1","y1"],t),d=s.clampData(u),f=s.clampData(h),p=[];"x0"===n[0]?p[0]=d[0]>f[0]?h[0]:u[0]:p[0]=d[0]>f[0]?u[0]:h[0],"y0"===n[1]?p[1]=d[1]>f[1]?h[1]:u[1]:p[1]=d[1]>f[1]?u[1]:h[1],o=i.getMarkerPosition(p,n,!0)}else{var g=e.get(n[0],t),m=e.get(n[1],t),v=[g,m];s.clampData&&s.clampData(v,v),o=s.dataToPoint(v,!0)}if(Qt(s,"cartesian2d")){var b=s.getAxis("x"),y=s.getAxis("y");g=e.get(n[0],t),m=e.get(n[1],t);Jk(g)?o[0]=b.toGlobalCoord(b.getExtent()["x0"===n[0]?0:1]):Jk(m)&&(o[1]=y.toGlobalCoord(y.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c)}else o=[l,c];return o}var iL=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],rL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=pk.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each((function(t){var r=Object(y["map"])(iL,(function(r){return nL(i,t,r,e,n)}));i.setItemLayout(t,r);var o=i.getItemGraphicEl(t);o.setShape("points",r)}))}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,s=e.getData(),a=this.markerGroupMap,l=a.get(o)||a.set(o,{group:new lt["a"]});this.group.add(l.group),this.markKeep(l);var c=oL(r,e,t);t.setData(c),c.each((function(t){var n=Object(y["map"])(iL,(function(n){return nL(c,t,n,e,i)})),o=r.getAxis("x").scale,a=r.getAxis("y").scale,l=o.getExtent(),u=a.getExtent(),h=[o.parse(c.get("x0",t)),o.parse(c.get("x1",t))],d=[a.parse(c.get("y0",t)),a.parse(c.get("y1",t))];Gt["c"](h),Gt["c"](d);var f=!(l[0]>h[1]||l[1]<h[0]||u[0]>d[1]||u[1]<d[0]),p=!f;c.setItemLayout(t,{points:n,allClipped:p});var g=c.getItemModel(t).getModel("itemStyle").getItemStyle(),m=Object(iO["b"])(s,"color");g.fill||(g.fill=m,Object(y["isString"])(g.fill)&&(g.fill=oe["modifyAlpha"](g.fill,.4))),g.stroke||(g.stroke=m),c.setItemVisual(t,"style",g)})),c.diff(Xk(l).data).add((function(e){var t=c.getItemLayout(e);if(!t.allClipped){var n=new jo["a"]({shape:{points:t.points}});c.setItemGraphicEl(e,n),l.group.add(n)}})).update((function(e,n){var i=Xk(l).data.getItemGraphicEl(n),r=c.getItemLayout(e);r.allClipped?i&&l.group.remove(i):(i?ht["h"](i,{shape:{points:r.points}},t,e):i=new jo["a"]({shape:{points:r.points}}),c.setItemGraphicEl(e,i),l.group.add(i))})).remove((function(e){var t=Xk(l).data.getItemGraphicEl(e);l.group.remove(t)})).execute(),c.eachItemGraphicEl((function(e,n){var i=c.getItemModel(n),r=c.getItemVisual(n,"style");e.useStyle(c.getItemVisual(n,"style")),Object(bt["g"])(e,Object(bt["e"])(i),{labelFetcher:t,labelDataIndex:n,defaultText:c.getName(n)||"",inheritColor:Object(y["isString"])(r.fill)?oe["modifyAlpha"](r.fill,1):"#000"}),Object(pt["I"])(e,i),Object(pt["J"])(e,null,null,i.get(["emphasis","disabled"])),Object(ft["a"])(e).dataModel=t})),Xk(l).data=c,l.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(Mk);function oL(e,t,n){var i,r,o=["x0","y0","x1","y1"];if(e){var s=Object(y["map"])(e&&e.dimensions,(function(e){var n=t.getData(),i=n.getDimensionInfo(n.mapDimension(e))||{};return Object(y["extend"])(Object(y["extend"])({},i),{name:e,ordinalMeta:null})}));r=Object(y["map"])(o,(function(e,t){return{name:e,type:s[t%2].type}})),i=new ji["a"](r,n)}else r=[{name:"value",type:"float"}],i=new ji["a"](r,n);var a=Object(y["map"])(n.get("data"),Object(y["curry"])(Qk,t,e,n));e&&(a=Object(y["filter"])(a,Object(y["curry"])(tL,e)));var l=e?function(e,t,n,i){var o=e.coord[Math.floor(i/2)][i%2];return Object(vk["d"])(o,r[i])}:function(e,t,n,i){return Object(vk["d"])(e.value,r[i])};return i.initData(a,null,l),i.hasItemOption=!0,i}var sL=rL;function aL(e){e.registerComponentModel(Zk),e.registerComponentView(sL),e.registerPreprocessor((function(e){uk(e.series,"markArea")&&(e.markArea=e.markArea||{})}))}var lL=function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0},cL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(rt["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),y["isArray"](t)&&y["each"](t,(function(e,i){y["isString"](e)&&(e={type:e}),t[i]=y["merge"](e,lL(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var s=i.legendVisualProvider,a=s.getAllNames();e.isSeriesFiltered(i)||(n=n.concat(a)),a.length?t=t.concat(a):r=!0}else r=!0;r&&Object(Pt["n"])(i)&&t.push(i.name)})),this._availableNames=n;var i=this.get("data")||t,r=y["createHashMap"](),o=y["map"](i,(function(e){return(y["isString"](e)||y["isNumber"](e))&&(e={name:e}),r.get(e.name)?null:(r.set(e.name,!0),new Ur["a"](e,this,this.ecModel))}),this);this._data=y["filter"](o,(function(e){return!!e}))},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected,n=this.get("selectedMode");if("single"===n){var i=this._data;y["each"](i,(function(e){t[e.get("name")]=!1}))}t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;y["each"](e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;y["each"](e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&y["indexOf"](this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(ir["a"]),uL=cL,hL=y["curry"],dL=y["each"],fL=lt["a"],pL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return Object(rt["a"])(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new fL),this.group.add(this._selectorGroup=new fL),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var r=e.get("align"),o=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===o?"right":"left");var s=e.get("selector",!0),a=e.get("selectorPosition",!0);!s||a&&"auto"!==a||(a="horizontal"===o?"end":"start"),this.renderInner(r,e,t,n,s,o,a);var l=e.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},u=e.get("padding"),h=pi["g"](l,c,u),d=this.layoutInner(e,r,h,i,s,a),f=pi["g"](y["defaults"]({width:d.width,height:d.height},l),c,u);this.group.x=f.x-d.x,this.group.y=f.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=hS(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,i,r,o,s){var a=this.getContentGroup(),l=y["createHashMap"](),c=t.get("selectedMode"),u=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&u.push(e.id)})),dL(t.getData(),(function(r,o){var s=r.get("name");if(!this.newlineDisabled&&(""===s||"\n"===s)){var h=new fL;return h.newline=!0,void a.add(h)}var d=n.getSeriesByName(s)[0];if(!l.get(s)){if(d){var f=d.getData(),p=f.getVisual("legendLineStyle")||{},g=f.getVisual("legendIcon"),m=f.getVisual("style"),v=this._createItem(d,s,o,r,t,e,p,m,g,c,i);v.on("click",hL(vL,s,null,i,u)).on("mouseover",hL(yL,d.name,null,i,u)).on("mouseout",hL(_L,d.name,null,i,u)),n.ssr&&v.eachChild((function(e){var t=Object(ft["a"])(e);t.seriesIndex=d.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),l.set(s,!0)}else n.eachRawSeries((function(a){if(!l.get(s)&&a.legendVisualProvider){var h=a.legendVisualProvider;if(!h.containName(s))return;var d=h.indexOfName(s),f=h.getItemVisual(d,"style"),p=h.getItemVisual(d,"legendIcon"),g=Object(oe["parse"])(f.fill);g&&0===g[3]&&(g[3]=.2,f=y["extend"](y["extend"]({},f),{fill:Object(oe["stringify"])(g,"rgba")}));var m=this._createItem(a,s,o,r,t,e,{},f,p,c,i);m.on("click",hL(vL,null,s,i,u)).on("mouseover",hL(yL,null,s,i,u)).on("mouseout",hL(_L,null,s,i,u)),n.ssr&&m.eachChild((function(e){var t=Object(ft["a"])(e);t.seriesIndex=a.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),l.set(s,!0)}}),this);0}}),this),r&&this._createSelector(r,t,i,o,s)},t.prototype._createSelector=function(e,t,n,i,r){var o=this.getSelectorGroup();dL(e,(function(e){var i=e.type,r=new ie["a"]({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var s=t.getModel("selectorLabel"),a=t.getModel(["emphasis","selectorLabel"]);Object(bt["g"])(r,{normal:s,emphasis:a},{defaultText:e.title}),Object(pt["o"])(r)}))},t.prototype._createItem=function(e,t,n,i,r,o,s,a,l,c,u){var h=e.visualDrawType,d=r.get("itemWidth"),f=r.get("itemHeight"),p=r.isSelected(t),g=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),v=i.get("icon");l=v||l||"roundRect";var b=gL(l,i,s,a,h,p,u),_=new fL,w=i.getModel("textStyle");if(!y["isFunction"](e.getLegendIcon)||v&&"inherit"!==v){var C="inherit"===v&&e.getData().getVisual("symbol")?"inherit"===g?e.getData().getVisual("symbolRotate"):g:0;_.add(mL({itemWidth:d,itemHeight:f,icon:l,iconRotate:C,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:m}))}else _.add(e.getLegendIcon({itemWidth:d,itemHeight:f,icon:l,iconRotate:g,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:m}));var S="left"===o?d+5:-5,x=o,O=r.get("formatter"),k=t;y["isString"](O)&&O?k=O.replace("{name}",null!=t?t:""):y["isFunction"](O)&&(k=O(t));var L=p?w.getTextColor():i.get("inactiveColor");_.add(new ie["a"]({style:Object(bt["c"])(w,{text:k,x:S,y:f/2,fill:L,align:x,verticalAlign:"middle"},{inheritColor:L})}));var E=new $t["a"]({shape:_.getBoundingRect(),style:{fill:"transparent"}}),D=i.getModel("tooltip");return D.get("show")&&dt["setTooltipConfig"]({el:E,componentModel:r,itemName:t,itemTooltipOption:D.option}),_.add(E),_.eachChild((function(e){e.silent=!0})),E.silent=!c,this.getContentGroup().add(_),Object(pt["o"])(_),_.__legendDataIndex=n,_},t.prototype.layoutInner=function(e,t,n,i,r,o){var s=this.getContentGroup(),a=this.getSelectorGroup();pi["b"](e.get("orient"),s,e.get("itemGap"),n.width,n.height);var l=s.getBoundingRect(),c=[-l.x,-l.y];if(a.markRedraw(),s.markRedraw(),r){pi["b"]("horizontal",a,e.get("selectorItemGap",!0));var u=a.getBoundingRect(),h=[-u.x,-u.y],d=e.get("selectorButtonGap",!0),f=e.getOrient().index,p=0===f?"width":"height",g=0===f?"height":"width",m=0===f?"y":"x";"end"===o?h[f]+=l[p]+d:c[f]+=u[p]+d,h[1-f]+=l[g]/2-u[g]/2,a.x=h[0],a.y=h[1],s.x=c[0],s.y=c[1];var v={x:0,y:0};return v[p]=l[p]+d+u[p],v[g]=Math.max(l[g],u[g]),v[m]=Math.min(0,u[m]+h[1-f]),v}return s.x=c[0],s.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(nr["a"]);function gL(e,t,n,i,r,o,s){function a(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),dL(e,(function(n,i){"inherit"===e[i]&&(e[i]=t[i])}))}var l=t.getModel("itemStyle"),c=l.getItemStyle(),u=0===e.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");c.decal=h&&"inherit"!==h?Object(ba["a"])(h,s):i.decal,"inherit"===c.fill&&(c.fill=i[r]),"inherit"===c.stroke&&(c.stroke=i[u]),"inherit"===c.opacity&&(c.opacity=("fill"===r?i:n).opacity),a(c,i);var d=t.getModel("lineStyle"),f=d.getLineStyle();if(a(f,n),"auto"===c.fill&&(c.fill=i.fill),"auto"===c.stroke&&(c.stroke=i.fill),"auto"===f.stroke&&(f.stroke=i.fill),!o){var p=t.get("inactiveBorderWidth"),g=c[u];c.lineWidth="auto"===p?i.lineWidth>0&&g?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),f.stroke=d.get("inactiveColor"),f.lineWidth=d.get("inactiveWidth")}return{itemStyle:c,lineStyle:f}}function mL(e){var t=e.icon||"roundRect",n=Object(at["a"])(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function vL(e,t,n,i){_L(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),yL(e,t,n,i)}function bL(e){var t,n=e.getZr().storage.getDisplayList(),i=0,r=n.length;while(i<r&&!(t=n[i].states.emphasis))i++;return t&&t.hoverLayer}function yL(e,t,n,i){bL(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function _L(e,t,n,i){bL(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}var wL=pL;function CL(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function SL(e,t,n){var i,r={},o="toggleSelected"===e;return n.eachComponent("legend",(function(n){o&&null!=i?n[i?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),i=n.isSelected(t.name));var s=n.getData();Object(y["each"])(s,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var i=n.isSelected(t);r.hasOwnProperty(t)?r[t]=r[t]&&i:r[t]=i}}))})),"allSelect"===e||"inverseSelect"===e?{selected:r}:{name:t.name,selected:r}}function xL(e){e.registerAction("legendToggleSelect","legendselectchanged",Object(y["curry"])(SL,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Object(y["curry"])(SL,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Object(y["curry"])(SL,"inverseSelect")),e.registerAction("legendSelect","legendselected",Object(y["curry"])(SL,"select")),e.registerAction("legendUnSelect","legendunselected",Object(y["curry"])(SL,"unSelect"))}function OL(e){e.registerComponentModel(uL),e.registerComponentView(wL),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,CL),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),xL(e)}var kL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,i){var r=Object(pi["f"])(t);e.prototype.init.call(this,t,n,i),LL(this,t,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),LL(this,this.option,t)},t.type="legend.scroll",t.defaultOption=Object(Dn["d"])(uL.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(uL);function LL(e,t,n){var i=e.getOrient(),r=[1,1];r[i.index]=0,Object(pi["h"])(t,n,{type:"box",ignoreSize:!!r})}var EL=kL,DL=lt["a"],IL=["width","height"],ML=["x","y"],TL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return Object(rt["a"])(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new DL),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new DL)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,i,r,o,s,a){var l=this;e.prototype.renderInner.call(this,t,n,i,r,o,s,a);var c=this._controllerGroup,u=n.get("pageIconSize",!0),h=y["isArray"](u)?u:[u,u];f("pagePrev",0);var d=n.getModel("pageTextStyle");function f(e,t){var i=e+"DataIndex",o=dt["createIcon"](n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:y["bind"](l._pageGo,l,i,n,r)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=e,c.add(o)}c.add(new ie["a"]({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),f("pageNext",1)},t.prototype.layoutInner=function(e,t,n,i,r,o){var s=this.getSelectorGroup(),a=e.getOrient().index,l=IL[a],c=ML[a],u=IL[1-a],h=ML[1-a];r&&pi["b"]("horizontal",s,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),f=s.getBoundingRect(),p=[-f.x,-f.y],g=y["clone"](n);r&&(g[l]=n[l]-f[l]-d);var m=this._layoutContentAndController(e,i,g,a,l,u,h,c);if(r){if("end"===o)p[a]+=m[l]+d;else{var v=f[l]+d;p[a]-=v,m[c]-=v}m[l]+=f[l]+d,p[1-a]+=m[h]+m[u]/2-f[u]/2,m[u]=Math.max(m[u],f[u]),m[h]=Math.min(m[h],f[h]+p[1-a]),s.x=p[0],s.y=p[1],s.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,t,n,i,r,o,s,a){var l=this.getContentGroup(),c=this._containerGroup,u=this._controllerGroup;pi["b"](e.get("orient"),l,e.get("itemGap"),i?n.width:null,i?null:n.height),pi["b"]("horizontal",u,e.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),d=u.getBoundingRect(),f=this._showController=h[r]>n[r],p=[-h.x,-h.y];t||(p[i]=l[a]);var g=[0,0],m=[-d.x,-d.y],v=y["retrieve2"](e.get("pageButtonGap",!0),e.get("itemGap",!0));if(f){var b=e.get("pageButtonPosition",!0);"end"===b?m[i]+=n[r]-d[r]:g[i]+=d[r]+v}m[1-i]+=h[o]/2-d[o]/2,l.setPosition(p),c.setPosition(g),u.setPosition(m);var _={x:0,y:0};if(_[r]=f?n[r]:h[r],_[o]=Math.max(h[o],d[o]),_[s]=Math.min(0,d[s]+m[1-i]),c.__rectSize=n[r],f){var w={x:0,y:0};w[r]=Math.max(n[r]-d[r]-v,0),w[o]=_[o],c.setClipPath(new $t["a"]({shape:w})),c.__rectSize=w[r]}else u.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var C=this._getPageInfo(e);return null!=C.pageIndex&&ht["h"](l,{x:C.contentPosition[0],y:C.contentPosition[1]},f?e:null),this._updatePageInfoView(e,C),_},t.prototype._pageGo=function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;y["each"](["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",o=null!=t[r],s=n.childOfName(i);s&&(s.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),s.cursor=o?"pointer":"default")}));var i=n.childOfName("pageText"),r=e.get("pageFormatter"),o=t.pageIndex,s=null!=o?o+1:0,a=t.pageCount;i&&r&&i.setStyle("text",y["isString"](r)?r.replace("{current}",null==s?"":s+"").replace("{total}",null==a?"":a+""):r({current:s,total:a}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=e.getOrient().index,o=IL[r],s=ML[r],a=this._findTargetItemIndex(t),l=n.children(),c=l[a],u=l.length,h=u?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var f=b(c);d.contentPosition[r]=-f.s;for(var p=a+1,g=f,m=f,v=null;p<=u;++p)v=b(l[p]),(!v&&m.e>g.s+i||v&&!y(v,g.s))&&(g=m.i>g.i?m:v,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=v;for(p=a-1,g=f,m=f,v=null;p>=-1;--p)v=b(l[p]),v&&y(m,v.s)||!(g.i<m.i)||(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=v;return d;function b(e){if(e){var t=e.getBoundingRect(),n=t[s]+e[s];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===e&&(t=r)})),null!=t?t:n},t.type="legend.scroll",t}(wL),AL=TL;function NL(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}function PL(e){Object(i["a"])(OL),e.registerComponentModel(EL),e.registerComponentView(AL),NL(e)}function jL(e){Object(i["a"])(OL),Object(i["a"])(PL)}var RL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="dataZoom.inside",t.defaultOption=Object(Dn["d"])(BC.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(BC),FL=RL,BL=Object(Pt["o"])();function WL(e,t,n){BL(e).coordSysRecordMap.each((function(e){var i=e.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)}))}function VL(e,t){for(var n=BL(e).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],s=n.get(o),a=s.dataZoomInfoMap;if(a){var l=t.uid,c=a.get(l);c&&(a.removeKey(l),a.keys().length||zL(n,s))}}}function zL(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function HL(e,t){var n={model:t,containsPoint:Object(y["curry"])(qL,t),dispatchAction:Object(y["curry"])(UL,e),dataZoomInfoMap:null,controller:null},i=n.controller=new gs(e.getZr());return Object(y["each"])(["pan","zoom","scrollMove"],(function(e){i.on(e,(function(t){var i=[];n.dataZoomInfoMap.each((function(r){if(t.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[e],s=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!r.model.get("disabled",!0)&&s&&i.push({dataZoomId:r.model.id,start:s[0],end:s[1]})}})),i.length&&n.dispatchAction(i)}))})),n}function UL(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function qL(e,t,n,i){return e.coordinateSystem.containPoint([n,i])}function $L(e){var t,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return e.each((function(e){var o=e.model,s=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+s]>i[n+t]&&(t=s),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function KL(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=BL(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(y["createHashMap"])());i.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=PC(e);Object(y["each"])(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,HL(t,n.model)),s=o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(y["createHashMap"])());s.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),i.each((function(e){var t,n=e.controller,r=e.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(t=r.get(o))}if(t){var s=$L(r);n.enable(s.controlType,s.opt),n.setPointerChecker(e.containsPoint),Tn["b"](e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else zL(i,e)}))}))}var GL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return Object(rt["a"])(t,e),t.prototype.render=function(t,n,i){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),WL(i,t,{pan:Object(y["bind"])(YL.pan,this),zoom:Object(y["bind"])(YL.zoom,this),scrollMove:Object(y["bind"])(YL.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){VL(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(HC),YL={zoom:function(e,t,n,i){var r=this.range,o=r.slice(),s=e.axisModels[0];if(s){var a=XL[t](null,[i.originX,i.originY],s,n,e),l=(a.signal>0?a.pixelStart+a.pixelLength-a.pixel:a.pixel-a.pixelStart)/a.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/i.scale,0);o[0]=(o[0]-l)*c+l,o[1]=(o[1]-l)*c+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return af(0,o,[0,100],0,u.minSpan,u.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:ZL((function(e,t,n,i,r,o){var s=XL[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,n);return s.signal*(e[1]-e[0])*s.pixel/s.pixelLength})),scrollMove:ZL((function(e,t,n,i,r,o){var s=XL[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,n);return s.signal*(e[1]-e[0])*o.scrollDelta}))};function ZL(e){return function(t,n,i,r){var o=this.range,s=o.slice(),a=t.axisModels[0];if(a){var l=e(s,a,t,n,i,r);return af(l,s,[0,100],"all"),this.range=s,o[0]!==s[0]||o[1]!==s[1]?s:void 0}}}var XL={grid:function(e,t,n,i,r){var o=n.axis,s={},a=r.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s},polar:function(e,t,n,i,r){var o=n.axis,s={},a=r.model.coordinateSystem,l=a.getRadiusAxis().getExtent(),c=a.getAngleAxis().getExtent();return e=e?a.pointToCoord(e):[0,0],t=a.pointToCoord(t),"radiusAxis"===n.mainType?(s.pixel=t[0]-e[0],s.pixelLength=l[1]-l[0],s.pixelStart=l[0],s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=c[1]-c[0],s.pixelStart=c[0],s.signal=o.inverse?-1:1),s},singleAxis:function(e,t,n,i,r){var o=n.axis,s=r.model.coordinateSystem.getRect(),a={};return e=e||[0,0],"horizontal"===o.orient?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a}},QL=GL;function JL(e){nS(e),e.registerComponentModel(FL),e.registerComponentView(QL),KL(e)}var eE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Object(Dn["d"])(BC.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(BC),tE=eE,nE=$t["a"],iE=7,rE=1,oE=30,sE=7,aE="horizontal",lE="vertical",cE=5,uE=["line","bar","candlestick","scatter"],hE={easing:"cubicOut",duration:100,delay:0},dE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return Object(rt["a"])(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Object(y["bind"])(this._onBrush,this),this._onBrushEnd=Object(y["bind"])(this._onBrushEnd,this)},t.prototype.render=function(t,n,i,r){if(e.prototype.render.apply(this,arguments),Tn["b"](this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Tn["a"](this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new lt["a"];this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect"),i=n?sE:0,r=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},s=this._orient===aE?{right:o.width-r.x-r.width,top:o.height-oE-iE-i,width:r.width,height:oE}:{right:iE,top:r.y,width:oE,height:r.height},a=pi["f"](e.option);Object(y["each"])(["right","top","width","height"],(function(e){"ph"===a[e]&&(a[e]=s[e])}));var l=pi["g"](a,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===lE&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,s=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==aE||r?n===aE&&r?{scaleY:s?1:-1,scaleX:-1}:n!==lE||r?{scaleY:s?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:s?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:s?1:-1,scaleX:1});var a=e.getBoundingRect([o]);e.x=t.x-a.x,e.y=t.y-a.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new nE({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var r=new nE({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Object(y["bind"])(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],i=e.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),s=o&&r.getDimensionInfo(o)?i.getShadowDim():e.otherDim;if(null!=s){var a=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||s!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var c=r.getDataExtent(s),u=.3*(c[1]-c[0]);c=[c[0]-u,c[1]+u];var h,d=[0,t[1]],f=[0,t[0]],p=[[t[0],0],[0,0]],g=[],m=f[1]/(r.count()-1),v=0,b=Math.round(r.count()/t[0]);r.each([s],(function(e,t){if(b>0&&t%b)v+=m;else{var n=null==e||isNaN(e)||""===e,i=n?0:Object(Gt["m"])(e,c,d,!0);n&&!h&&t?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(p.push([v,0]),g.push([v,0])),p.push([v,i]),g.push([v,i]),v+=m,h=n}})),a=this._shadowPolygonPts=p,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=s,this._shadowSize=[t[0],t[1]];for(var y=this.dataZoomModel,_=0;_<3;_++){var w=C(1===_);this._displayables.sliderGroup.add(w),this._displayables.dataShadowSegs.push(w)}}}function C(e){var t=y.getModel(e?"selectedDataBackground":"dataBackground"),n=new lt["a"],i=new jo["a"]({shape:{points:a},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Ci["a"]({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(r,o){var s=e.getAxisProxy(r,o).getTargetSeriesModels();Object(y["each"])(s,(function(e){if(!n&&!(!0!==t&&Object(y["indexOf"])(uE,e.get("type"))<0)){var s,a=i.getComponent(AC(r),o).axis,l=fE(r),c=e.coordinateSystem;null!=l&&c.getOtherAxis&&(s=c.getOtherAxis(a).inverse),l=e.getData().mapDimension(l),n={thisAxis:a,series:e,thisDim:r,otherDim:l,otherAxisInverse:s}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],i=t.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,s=this.dataZoomModel,a=this.api,l=s.get("borderRadius")||0,c=s.get("brushSelect"),u=t.filler=new nE({silent:c,style:{fill:s.get("fillerColor")},textConfig:{position:"inside"}});r.add(u),r.add(new nE({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:rE,fill:"rgba(0,0,0,0)"}})),Object(y["each"])([0,1],(function(t){var o=s.get("handleIcon");!at["d"][o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var a=Object(at["a"])(o,-1,0,2,2,null,!0);a.attr({cursor:pE(this._orient),draggable:!0,drift:Object(y["bind"])(this._onDragMove,this,t),ondragend:Object(y["bind"])(this._onDragEnd,this),onmouseover:Object(y["bind"])(this._showDataInfo,this,!0),onmouseout:Object(y["bind"])(this._showDataInfo,this,!1),z2:5});var l=a.getBoundingRect(),c=s.get("handleSize");this._handleHeight=Object(Gt["q"])(c,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,a.setStyle(s.getModel("handleStyle").getItemStyle()),a.style.strokeNoScale=!0,a.rectHover=!0,a.ensureState("emphasis").style=s.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(pt["o"])(a);var u=s.get("handleColor");null!=u&&(a.style.fill=u),r.add(n[t]=a);var h=s.getModel("textStyle");e.add(i[t]=new ie["a"]({silent:!0,invisible:!0,style:Object(bt["c"])(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=u;if(c){var d=Object(Gt["q"])(s.get("moveHandleSize"),o[1]),f=t.moveHandle=new $t["a"]({style:s.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),p=.8*d,g=t.moveHandleIcon=Object(at["a"])(s.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=o[1]+d/2-.5,f.ensureState("emphasis").style=s.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(o[1]/2,Math.max(d,10));h=t.moveZone=new $t["a"]({invisible:!0,shape:{y:o[1]-m,height:d+m}}),h.on("mouseover",(function(){a.enterEmphasis(f)})).on("mouseout",(function(){a.leaveEmphasis(f)})),r.add(f),r.add(g),r.add(h)}h.attr({draggable:!0,cursor:pE(this._orient),drift:Object(y["bind"])(this._onDragMove,this,"all"),ondragstart:Object(y["bind"])(this._showDataInfo,this,!0),ondragend:Object(y["bind"])(this._onDragEnd,this),onmouseover:Object(y["bind"])(this._showDataInfo,this,!0),onmouseout:Object(y["bind"])(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Object(Gt["m"])(e[0],[0,100],t,!0),Object(Gt["m"])(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),s=[0,100];af(t,i,r,n.get("zoomLock")?"all":e,null!=o.minSpan?Object(Gt["m"])(o.minSpan,s,r,!0):null,null!=o.maxSpan?Object(Gt["m"])(o.maxSpan,s,r,!0):null);var a=this._range,l=this._range=Object(Gt["c"])([Object(Gt["m"])(i[0],r,s,!0),Object(Gt["m"])(i[1],r,s,!0)]);return!a||a[0]!==l[0]||a[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,i=Object(Gt["c"])(n.slice()),r=this._size;Object(y["each"])([0,1],(function(e){var i=t.handles[e],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:r[1]/2-o/2})}),this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var s=t.dataShadowSegs,a=[0,i[0],i[1],r[0]],l=0;l<s.length;l++){var c=s[l],u=c.getClipPath();u||(u=new $t["a"],c.setClipPath(u)),u.setShape({x:a[l],y:0,width:a[l+1]-a[l],height:r[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(t.get("showDetail")){var s=t.findRepresentativeAxisProxy();if(s){var a=s.getAxisModel().axis,l=this._range,c=e?s.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:s.getDataValueWindow();o=[this._formatLabel(c[0],a),this._formatLabel(c[1],a)]}}var u=Object(Gt["c"])(this._handleEnds.slice());function h(e){var t=dt["getTransform"](n.handles[e].parent,this.group),s=dt["transformDirection"](0===e?"right":"left",t),a=this._handleWidth/2+cE,l=dt["applyTransform"]([u[e]+(0===e?-a:a),this._size[1]/2],t);i[e].setStyle({x:l[0],y:l[1],verticalAlign:r===aE?"middle":s,align:r===aE?s:"center",text:o[e]})}h.call(this,0),h.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(r,20));return Object(y["isFunction"])(i)?i(e,o):Object(y["isString"])(i)?i.replace("{value}",o):o},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,i){this._dragging=!0,rs["g"](i.event);var r=this._displayables.sliderGroup.getLocalTransform(),o=dt["applyTransform"]([t,n],r,!0),s=this._updateInterval(e,o[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),s&&a&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Si["a"](t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),o=[0,100];this._range=Object(Gt["c"])([Object(Gt["m"])(n.x,r,o,!0),Object(Gt["m"])(n.x+n.width,r,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(rs["g"](e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new nE({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,s=this._displayables.sliderGroup,a=s.transformCoordToLocal(e,t),l=s.transformCoordToLocal(o.x,o.y),c=this._size;a[0]=Math.max(Math.min(c[0],a[0]),0),r.setShape({x:l[0],y:0,width:a[0]-l[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?hE:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=PC(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),r=this.api.getHeight();e={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return e},t.type="dataZoom.slider",t}(HC);function fE(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function pE(e){return"vertical"===e?"ns-resize":"ew-resize"}var gE=dE;function mE(e){e.registerComponentModel(tE),e.registerComponentView(gE),nS(e)}function vE(e){Object(i["a"])(JL),Object(i["a"])(mE)}var bE={get:function(e,t,n){var i=y["clone"]((yE[e]||{})[t]);return n&&y["isArray"](i)?i[i.length-1]:i}},yE={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},_E=bE,wE=hu.mapVisual,CE=hu.eachVisual,SE=y["isArray"],xE=y["each"],OE=Gt["c"],kE=Gt["m"],LE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return Object(rt["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&aO(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=y["bind"](e,this),this.controllerVisuals=sO(this.option.controller,t,e),this.targetVisuals=sO(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=Pt["r"](e),t},t.prototype.eachTargetSeries=function(e,t){y["each"](this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(t,i)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var i,r=this.option,o=r.precision,s=this.dataBound,a=r.formatter;n=n||["<",">"],y["isArray"](e)&&(e=e.slice(),i=!0);var l=t?e:i?[c(e[0]),c(e[1])]:c(e);return y["isString"](a)?a.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):y["isFunction"](a)?i?a(e[0],e[1]):a(e):i?e[0]===s[0]?n[0]+" "+l[1]:e[1]===s[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function c(e){return e===s[0]?"min":e===s[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=OE([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=e.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),r=t.controller||(t.controller={});y["merge"](i,n),y["merge"](r,n);var o=this.isCategory();function s(n){SE(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}function a(e,t,n){var i=e[t],r=e[n];i&&!r&&(r=e[n]={},xE(i,(function(e,t){if(hu.isValidType(t)){var n=_E.get(t,"inactive",o);null!=n&&(r[t]=n,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol(),s=r||"roundRect";xE(this.stateList,(function(r){var a=this.itemSize,l=e[r];l||(l=e[r]={color:o?i:[i]}),null==l.symbol&&(l.symbol=t&&y["clone"](t)||(o?s:[s])),null==l.symbolSize&&(l.symbolSize=n&&y["clone"](n)||(o?a[0]:[a[0],a[0]])),l.symbol=wE(l.symbol,(function(e){return"none"===e?s:e}));var c=l.symbolSize;if(null!=c){var u=-1/0;CE(c,(function(e){e>u&&(u=e)})),l.symbolSize=wE(c,(function(e){return kE(e,[0,u],[0,a[0]],!0)}))}}),this)}s.call(this,i),s.call(this,r),a.call(this,i,"inRange","outOfRange"),l.call(this,r)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(ir["a"]),EE=LE,DE=[20,140],IE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=DE[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=DE[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):y["isArray"](t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),y["each"](this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Gt["c"]((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},t.prototype.getVisualMeta=function(e){var t=ME(this,"outOfRange",this.getExtent()),n=ME(this,"inRange",this.option.range.slice()),i=[];function r(t,n){i.push({value:t,color:e(t,n)})}for(var o=0,s=0,a=n.length,l=t.length;s<l&&(!n.length||t[s]<=n[0]);s++)t[s]<n[o]&&r(t[s],"outOfRange");for(var c=1;o<a;o++,c=0)c&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(c=1;s<l;s++)(!n.length||n[n.length-1]<t[s])&&(c&&(i.length&&r(i[i.length-1].value,"outOfRange"),c=0),r(t[s],"outOfRange"));var u=i.length;return{stops:i,outerColors:[u?i[0].color:"transparent",u?i[u-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Object(Dn["d"])(EE.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(EE);function ME(e,t,n){if(n[0]===n[1])return n.slice();for(var i=200,r=(n[1]-n[0])/i,o=n[0],s=[],a=0;a<=i&&o<n[1];a++)s.push(o),o+=r;return s.push(n[1]),s}var TE=IE,AE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return Object(rt["a"])(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,i){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,i):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Jt["i"](t.get("padding")||0),i=e.getBoundingRect();e.add(new $t["a"]({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){n=n||{};var i=n.forceState,r=this.visualMapModel,o={};if("color"===t){var s=r.get("contentColor");o.color=s}function a(e){return o[e]}function l(e,t){o[e]=t}var c=r.controllerVisuals[i||r.getValueState(e)],u=hu.prepareVisualTypes(c);return y["each"](u,(function(i){var r=c[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=c.__alphaForOpacity),hu.dependsOn(i,t)&&r&&r.applyVisual(e,a,l)})),o[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;pi["i"](e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,i){},t.type="visualMap",t}(nr["a"]),NE=AE,PE=[["left","right","width"],["top","bottom","height"]];function jE(e,t,n){var i=e.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:t.getWidth(),height:t.getHeight()},s="horizontal"===i.orient?1:0,a=PE[s],l=[0,null,10],c={},u=0;u<3;u++)c[PE[1-s][u]]=l[u],c[a[u]]=2===u?n[0]:i[a[u]];var h=[["x","width",3],["y","height",0]][s],d=Object(pi["g"])(c,o,i.padding);return a[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*o[h[1]]?0:1]}function RE(e,t){return y["each"](e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var FE=Gt["m"],BE=y["each"],WE=Math.min,VE=Math.max,zE=12,HE=6,UE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return Object(rt["a"])(t,e),t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=y["bind"](this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=y["bind"](this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var i=t[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),s=r.itemSize,a=this._shapes.mainGroup,l=this._applyTransform([s[0]/2,0===n?-o:s[1]+o],a),c=this._applyTransform(0===n?"bottom":"top",a),u=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new ie["a"]({style:Object(bt["c"])(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===u?"middle":c,align:"horizontal"===u?c:"center",text:i})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,i=t.itemSize,r=this._orient,o=this._useHandle,s=jE(t,this.api,i),a=n.mainGroup=this._createBarGroup(s),l=new lt["a"];a.add(l),l.add(n.outOfRange=qE()),l.add(n.inRange=qE(null,o?GE(this._orient):null,y["bind"](this._dragHandle,this,"all",!1),y["bind"](this._dragHandle,this,"all",!0))),l.setClipPath(new $t["a"]({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=t.textStyleModel.getTextRect("国"),u=VE(c.width,c.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,a,0,i,u,r),this._createHandle(t,a,1,i,u,r)),this._createIndicator(t,a,i,u,r),e.add(a)},t.prototype._createHandle=function(e,t,n,i,r,o){var s=y["bind"](this._dragHandle,this,n,!1),a=y["bind"](this._dragHandle,this,n,!0),l=Object(c["g"])(e.get("handleSize"),i[0]),u=Object(at["a"])(e.get("handleIcon"),-l/2,-l/2,l,l,null,!0),h=GE(this._orient);u.attr({cursor:h,draggable:!0,drift:s,ondragend:a,onmousemove:function(e){rs["g"](e.event)}}),u.x=i[0]/2,u.useStyle(e.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Object(pt["F"])(u,!0),t.add(u);var d=this.visualMapModel.textStyleModel,f=new ie["a"]({cursor:h,draggable:!0,drift:s,onmousemove:function(e){rs["g"](e.event)},ondragend:a,style:Object(bt["c"])(d,{x:0,y:0,text:""})});f.ensureState("blur").style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var p=[l,0],g=this._shapes;g.handleThumbs[n]=u,g.handleLabelPoints[n]=p,g.handleLabels[n]=f},t.prototype._createIndicator=function(e,t,n,i,r){var o=Object(c["g"])(e.get("indicatorSize"),n[0]),s=Object(at["a"])(e.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);s.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var a=e.getModel("indicatorStyle").getItemStyle();if(s instanceof l["a"]){var u=s.style;s.useStyle(y["extend"]({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},a))}else s.useStyle(a);t.add(s);var h=this.visualMapModel.textStyleModel,d=new ie["a"]({silent:!0,invisible:!0,style:Object(bt["c"])(h,{x:0,y:0,text:""})});this.group.add(d);var f=[("horizontal"===r?i/2:HE)+n[0]/2,0],p=this._shapes;p.indicator=s,p.indicatorLabel=d,p.indicatorLabelPoint=f,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,i){if(this._useHandle){if(this._dragging=!t,!t){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,r[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():KE(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[FE(t[0],n,i,!0),FE(t[1],n,i,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];af(t,i,r,e,0);var o=n.getExtent();this._dataInterval=[FE(i[0],r,o,!0),FE(i[1],r,o,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),i=this._shapes,r=[0,t.itemSize[1]],o=e?r:this._handleEnds,s=this._createBarVisual(this._dataInterval,n,o,"inRange"),a=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),i.outOfRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),this._updateHandle(o,s)},t.prototype._createBarVisual=function(e,t,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,r),s=[this.getControllerVisual(e[0],"symbolSize",r),this.getControllerVisual(e[1],"symbolSize",r)],a=this._createBarPoints(n,s);return{barColor:new Nt["a"](0,0,0,1,o),barPoints:a,handlesColor:[o[0].color,o[o.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,i=[],r=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var o=1;o<n;o++){var s=e[0]+r*o;if(s>e[1])break;i.push({color:this.getControllerVisual(s,"color",t),offset:o/n})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new lt["a"]("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,s=i.itemSize,a=i.getExtent();BE([0,1],(function(l){var c=r[l];c.setStyle("fill",t.handlesColor[l]),c.y=e[l];var u=FE(e[l],[0,s[1]],a,!0),h=this.getControllerVisual(u,"symbolSize");c.scaleX=c.scaleY=h/s[0],c.x=s[0]-h/2;var d=dt["applyTransform"](n.handleLabelPoints[l],dt["getTransform"](c,this.group));o[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){var r=this.visualMapModel,o=r.getExtent(),s=r.itemSize,a=[0,s[1]],l=this._shapes,c=l.indicator;if(c){c.attr("invisible",!1);var u={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",u),d=this.getControllerVisual(e,"symbolSize"),f=FE(e,o,a,!0),p=s[0]-d/2,g={x:c.x,y:c.y};c.y=f,c.x=p;var m=dt["applyTransform"](l.indicatorLabelPoint,dt["getTransform"](c,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var b=this._applyTransform("left",l.mainGroup),y=this._orient,_="horizontal"===y;v.setStyle({text:(n||"")+r.formatValueText(t),verticalAlign:_?b:"middle",align:_?"center":b});var w={x:p,y:f,style:{fill:h}},C={style:{x:m[0],y:m[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};c.x=g.x,c.y=g.y,c.animateTo(w,S),v.animateTo(C,S)}else c.attr(w),v.attr(C);this._firstShowIndicator=!1;var x=this._shapes.handleLabels;if(x)for(var O=0;O<x.length;O++)this.api.enterBlur(x[O])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);i[1]=WE(VE(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();e=WE(VE(r[0],e),r[1]);var s=$E(n,o,r),a=[e-s,e+s],l=FE(e,r,o,!0),c=[FE(a[0],r,o,!0),FE(a[1],r,o,!0)];a[0]<r[0]&&(c[0]=-1/0),a[1]>r[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",s):c[1]===1/0?this._showIndicator(l,c[0],"> ",s):this._showIndicator(l,l,"≈ ",s));var u=this._hoverLinkDataIndices,h=[];(t||KE(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=Pt["d"](u,h);this._dispatchHighDown("downplay",RE(d[0],n)),this._dispatchHighDown("highlight",RE(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(Object(sl["a"])(e.target,(function(e){var n=Object(ft["a"])(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(t.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),t.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",RE(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,i){var r=dt["getTransform"](t,i?null:this.group);return y["isArray"](e)?dt["applyTransform"](e,r,n):dt["transformDirection"](e,r,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(NE);function qE(e,t,n,i){return new jo["a"]({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){rs["g"](e.event)},ondragend:i})}function $E(e,t,n){var i=zE/2,r=e.get("hoverLinkDataSize");return r&&(i=FE(r,t,n,!0)/2),i}function KE(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function GE(e){return"vertical"===e?"ns-resize":"ew-resize"}var YE=UE,ZE={type:"selectDataRange",event:"dataRangeSelected",update:"update"},XE=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},QE=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var i=e.pipelineContext;!t.isTargetSeries(e)||i&&i.large||n.push(cO(t.stateList,t.targetVisuals,y["bind"](t.getValueState,t),t.getDataDimensionIndex(e.getData())))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),i=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var r=t.getVisualMeta(y["bind"](JE,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimensionIndex(n);o>=0&&(r.dimension=o,i.push(r))}})),e.getData().setVisual("visualMeta",i)}}];function JE(e,t,n,i){for(var r=t.targetVisuals[i],o=hu.prepareVisualTypes(r),s={color:Object(iO["b"])(e.getData(),"color")},a=0,l=o.length;a<l;a++){var c=o[a],u=r["opacity"===c?"__alphaForOpacity":c];u&&u.applyVisual(n,h,d)}return s.color;function h(e){return s[e]}function d(e,t){s[e]=t}}var eD=y["each"];function tD(e){var t=e&&e.visualMap;y["isArray"](t)||(t=t?[t]:[]),eD(t,(function(e){if(e){nD(e,"splitList")&&!nD(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&y["isArray"](t)&&eD(t,(function(e){y["isObject"](e)&&(nD(e,"start")&&!nD(e,"min")&&(e.min=e.start),nD(e,"end")&&!nD(e,"max")&&(e.max=e.end))}))}}))}function nD(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var iD=!1;function rD(e){iD||(iD=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(ZE,XE),Object(y["each"])(QE,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(tD))}function oD(e){e.registerComponentModel(TE),e.registerComponentView(YE),rD(e)}var sD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return Object(rt["a"])(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],aD[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var r=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=y["clone"](r)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=y["map"](this._pieceList,(function(e){return e=y["clone"](e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=hu.listVisualTypes(),r=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}y["each"](t.pieces,(function(e){y["each"](i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),y["each"](n,(function(e,n){var i=!1;y["each"](this.stateList,(function(e){i=i||o(t,e,n)||o(t.target,e,n)}),this),!i&&y["each"](this.stateList,(function(e){(t[e]||(t[e]={}))[n]=_E.get(n,"inRange"===e?"active":"inactive",r)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,r=(t?n:e).selected||{};if(n.selected=r,y["each"](i,(function(e,t){var n=this.getSelectedMapKey(e);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;y["each"](i,(function(e,t){var n=this.getSelectedMapKey(e);r[n]&&(o?r[n]=!1:o=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=y["clone"](e)},t.prototype.getValueState=function(e){var t=hu.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(t,i){var o=hu.findPieceIndex(t,n);o===e&&r.push(i)}),this),t.push({seriesId:i.id,dataIndex:r})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),o=r[r.length-1].interval[1],o!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var s=-1/0;return y["each"](r,(function(e){var t=e.interval;t&&(t[0]>s&&a([s,t[0]],"outOfRange"),a(t.slice()),s=t[1])}),this),{stops:t,outerColors:n}}function a(r,o){var s=i.getRepresentValue({interval:r});o||(o=i.getValueState(s));var a=e(s,o);r[0]===-1/0?n[0]=a:r[1]===1/0?n[1]=a:t.push({value:r[0],color:a},{value:r[1],color:a})}},t.type="visualMap.piecewise",t.defaultOption=Object(Dn["d"])(EE.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(EE),aD={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;var o=(i[1]-i[0])/r;while(+o.toFixed(n)!==o&&n<5)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var s=0,a=i[0];s<r;a+=o,s++){var l=s===r-1?i[1]:a+o;e.push({interval:[a,l],close:[1,1]})}t.maxOpen&&e.push({interval:[i[1],1/0],close:[0,0]}),Object(Gt["u"])(e),y["each"](e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;y["each"](t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),lD(t,e)},pieces:function(e){var t=this.option;y["each"](t.pieces,(function(t,n){y["isObject"](t)||(t={value:t});var i={text:"",index:n};if(null!=t.label&&(i.text=t.label),t.hasOwnProperty("value")){var r=i.value=t.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],a=[1,0,1],l=[-1/0,1/0],c=[],u=0;u<2;u++){for(var h=[["gte","gt","min"],["lte","lt","max"]][u],d=0;d<3&&null==o[u];d++)o[u]=t[h[d]],s[u]=a[d],c[u]=2===d;null==o[u]&&(o[u]=l[u])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=hu.retrieveVisuals(t),e.push(i)}),this),lD(t,e),Object(Gt["u"])(e),y["each"](e,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function lD(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var cD=sD,uD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(rt["a"])(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,r=i.getFont(),o=i.getTextColor(),s=this._getItemAlign(),a=t.itemSize,l=this._getViewData(),c=l.endsText,u=y["retrieve"](t.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],a,u,s),y["each"](l.viewPieceList,(function(i){var l=i.piece,c=new lt["a"];c.onclick=y["bind"](this._onItemClick,this,l),this._enableHoverLink(c,i.indexInModelPieceList);var h=t.getRepresentValue(l);if(this._createItemSymbol(c,h,[0,0,a[0],a[1]]),u){var d=this.visualMapModel.getValueState(h);c.add(new ie["a"]({style:{x:"right"===s?-n:a[0]+n,y:a[1]/2,text:l.text,verticalAlign:"middle",align:s,font:r,fill:o,opacity:"outOfRange"===d?.5:1}}))}e.add(c)}),this),c&&this._renderEndsText(e,c[1],a,u,s),pi["b"](t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:RE(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return jE(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,r){if(t){var o=new lt["a"],s=this.visualMapModel.textStyleModel;o.add(new ie["a"]({style:Object(bt["c"])(s,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=y["map"](e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),r=e.get("inverse");return("horizontal"===i?r:!r)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(Object(at["a"])(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,i=n.selectedMode;if(i){var r=y["clone"](n.selected),o=t.getSelectedMapKey(e);"single"===i||!0===i?(r[o]=!0,y["each"](r,(function(e,t){r[t]=t===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},t.type="visualMap.piecewise",t}(NE),hD=uD;function dD(e){e.registerComponentModel(cD),e.registerComponentView(hD),rD(e)}function fD(e){Object(i["a"])(oD),Object(i["a"])(dD)}var pD={label:{enabled:!0},decal:{show:!1}},gD=Object(Pt["o"])(),mD={};function vD(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=y["clone"](pD);y["merge"](i.label,e.getLocaleModel().get("aria"),!1),y["merge"](n.option,i,!1),r(),o()}function r(){var t=n.getModel("decal"),i=t.get("show");if(i){var r=y["createHashMap"]();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=r.get(e.type);t||(t={},r.set(e.type,t)),gD(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(y["isFunction"](t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var i=Object(pc["b"])(t.ecModel,t.name,mD,e.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",c(r,i))}else{var o=t.getRawData(),s={},a=gD(t).scope;n.each((function(e){var t=n.getRawIndex(e);s[t]=e}));var l=o.count();o.each((function(e){var i=s[e],r=o.getName(e)||e+"",u=Object(pc["b"])(t.ecModel,r,a,l),h=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",c(h,u))}))}}function c(e,t){var n=e?y["extend"](y["extend"]({},t),e):t;return n.dirty=!0,n}}))}}function o(){var i=t.getZr().dom;if(i){var r=e.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=y["defaults"](o.option,r),o.get("enabled"))if(o.get("description"))i.setAttribute("aria-label",o.get("description"));else{var c,u=e.getSeriesCount(),h=o.get(["data","maxCount"])||10,d=o.get(["series","maxCount"])||10,f=Math.min(u,d);if(!(u<1)){var p=a();if(p){var g=o.get(["general","withTitle"]);c=s(g,{title:p})}else c=o.get(["general","withoutTitle"]);var m=[],v=u>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]);c+=s(v,{seriesCount:u}),e.eachSeries((function(e,t){if(t<f){var n=void 0,i=e.get("name"),r=i?"withName":"withoutName";n=u>1?o.get(["series","multiple",r]):o.get(["series","single",r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:l(e.subType)});var a=e.getData();if(a.count()>h){var c=o.get(["data","partialData"]);n+=s(c,{displayCnt:h})}else n+=o.get(["data","allData"]);for(var d=o.get(["data","separator","middle"]),p=o.get(["data","separator","end"]),g=[],v=0;v<a.count();v++)if(v<h){var b=a.getName(v),y=a.getValues(v),_=o.get(["data",b?"withName":"withoutName"]);g.push(s(_,{name:b,value:y.join(d)}))}n+=g.join(d)+p,m.push(n)}}));var b=o.getModel(["series","multiple","separator"]),_=b.get("middle"),w=b.get("end");c+=m.join(_)+w,i.setAttribute("aria-label",c)}}}}function s(e,t){if(!y["isString"](e))return e;var n=e;return y["each"](t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}function a(){var t=e.get("title");return t&&t.length&&(t=t[0]),t&&t.text}function l(t){var n=e.getLocaleModel().get(["series","typeNames"]);return n[t]||n.chart}}function bD(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},y["each"](["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}function yD(e){e.registerPreprocessor(bD),e.registerVisual(e.PRIORITY.VISUAL.ARIA,vD)}var _D={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},wD=function(){function e(e){var t=this._condVal=Object(y["isString"])(e)?new RegExp(e):Object(y["isRegExp"])(e)?e:null;if(null==t){var n="";0,Object(Kc["c"])(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return Object(y["isString"])(t)?this._condVal.test(e):!!Object(y["isNumber"])(t)&&this._condVal.test(e+"")},e}(),CD=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),SD=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),xD=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),OD=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),kD=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),i=e?this.valueParser(n):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(e?i:n))return!1;return!0},e}();function LD(e,t){if(!0===e||!1===e){var n=new CD;return n.value=e,n}var i="";return MD(e)||Object(Kc["c"])(i),e.and?ED("and",e,t):e.or?ED("or",e,t):e.not?DD(e,t):ID(e,t)}function ED(e,t,n){var i=t[e],r="";Object(y["isArray"])(i)||Object(Kc["c"])(r),i.length||Object(Kc["c"])(r);var o="and"===e?new SD:new xD;return o.children=Object(y["map"])(i,(function(e){return LD(e,n)})),o.children.length||Object(Kc["c"])(r),o}function DD(e,t){var n=e.not,i="";MD(n)||Object(Kc["c"])(i);var r=new OD;return r.child=LD(n,t),r.child||Object(Kc["c"])(i),r}function ID(e,t){for(var n="",i=t.prepareGetValue(e),r=[],o=Object(y["keys"])(e),s=e.parser,a=s?Object(vk["c"])(s):null,l=0;l<o.length;l++){var c=o[l];if("parser"!==c&&!t.valueGetterAttrMap.get(c)){var u=Object(y["hasOwn"])(_D,c)?_D[c]:c,h=e[c],d=a?a(h):h,f=Object(vk["b"])(u,d)||"reg"===u&&new wD(d);f||Object(Kc["c"])(n),r.push(f)}}r.length||Object(Kc["c"])(n);var p=new kD;return p.valueGetterParam=i,p.valueParser=a,p.getValue=t.getValue,p.subCondList=r,p}function MD(e){return Object(y["isObject"])(e)&&!Object(y["isArrayLike"])(e)}var TD=function(){function e(e,t){this._cond=LD(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function AD(e,t){return new TD(e,t)}var ND={type:"echarts:filter",transform:function(e){for(var t,n=e.upstream,i=AD(e.config,{valueGetterAttrMap:Object(y["createHashMap"])({dimension:!0}),prepareGetValue:function(e){var t="",i=e.dimension;Object(y["hasOwn"])(e,"dimension")||Object(Kc["c"])(t);var r=n.getDimensionInfo(i);return r||Object(Kc["c"])(t),{dimIdx:r.index}},getValue:function(e){return n.retrieveValueFromItem(t,e.dimIdx)}}),r=[],o=0,s=n.count();o<s;o++)t=n.getRawDataItem(o),i.evaluate()&&r.push(t);return{data:r}}};var PD={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,i="",r=Object(Pt["r"])(n);r.length||Object(Kc["c"])(i);var o=[];Object(y["each"])(r,(function(e){var n=e.dimension,r=e.order,s=e.parser,a=e.incomparable;if(null==n&&Object(Kc["c"])(i),"asc"!==r&&"desc"!==r&&Object(Kc["c"])(i),a&&"min"!==a&&"max"!==a){var l="";0,Object(Kc["c"])(l)}if("asc"!==r&&"desc"!==r){var c="";0,Object(Kc["c"])(c)}var u=t.getDimensionInfo(n);u||Object(Kc["c"])(i);var h=s?Object(vk["c"])(s):null;s&&!h&&Object(Kc["c"])(i),o.push({dimIdx:u.index,parser:h,comparator:new vk["a"](r,a)})}));var s=t.sourceFormat;s!==Ng["c"]&&s!==Ng["e"]&&Object(Kc["c"])(i);for(var a=[],l=0,c=t.count();l<c;l++)a.push(t.getRawDataItem(l));return a.sort((function(e,n){for(var i=0;i<o.length;i++){var r=o[i],s=t.retrieveValueFromItem(e,r.dimIdx),a=t.retrieveValueFromItem(n,r.dimIdx);r.parser&&(s=r.parser(s),a=r.parser(a));var l=r.comparator.evaluate(s,a);if(0!==l)return l}return 0})),{data:a}}};function jD(e){e.registerTransform(ND),e.registerTransform(PD)}var RD=n("5e81"),FD=H["a"].CMD;function BD(e,t){return Math.abs(e-t)<1e-5}function WD(e){var t,n,i,r,o,s=e.data,a=e.len(),l=[],c=0,u=0,h=0,d=0;function f(e,n){t&&t.length>2&&l.push(t),t=[e,n]}function p(e,n,i,r){BD(e,i)&&BD(n,r)||t.push(e,n,i,r,i,r)}function g(e,n,i,r,o,s){var a=Math.abs(n-e),l=4*Math.tan(a/4)/3,c=n<e?-1:1,u=Math.cos(e),h=Math.sin(e),d=Math.cos(n),f=Math.sin(n),p=u*o+i,g=h*s+r,m=d*o+i,v=f*s+r,b=o*l*c,y=s*l*c;t.push(p-b*h,g+y*u,m+b*f,v-y*d,m,v)}for(var m=0;m<a;){var v=s[m++],b=1===m;switch(b&&(c=s[m],u=s[m+1],h=c,d=u,v!==FD.L&&v!==FD.C&&v!==FD.Q||(t=[h,d])),v){case FD.M:c=h=s[m++],u=d=s[m++],f(h,d);break;case FD.L:n=s[m++],i=s[m++],p(c,u,n,i),c=n,u=i;break;case FD.C:t.push(s[m++],s[m++],s[m++],s[m++],c=s[m++],u=s[m++]);break;case FD.Q:n=s[m++],i=s[m++],r=s[m++],o=s[m++],t.push(c+2/3*(n-c),u+2/3*(i-u),r+2/3*(n-r),o+2/3*(i-o),r,o),c=r,u=o;break;case FD.A:var y=s[m++],_=s[m++],w=s[m++],C=s[m++],S=s[m++],x=s[m++]+S;m+=1;var O=!s[m++];n=Math.cos(S)*w+y,i=Math.sin(S)*C+_,b?(h=n,d=i,f(h,d)):p(c,u,n,i),c=Math.cos(x)*w+y,u=Math.sin(x)*C+_;for(var k=(O?-1:1)*Math.PI/2,L=S;O?L>x:L<x;L+=k){var E=O?Math.max(L+k,x):Math.min(L+k,x);g(L,E,y,_,w,C)}break;case FD.R:h=c=s[m++],d=u=s[m++],n=h+s[m++],i=d+s[m++],f(n,d),p(n,d,n,i),p(n,i,h,i),p(h,i,h,d),p(h,d,n,d);break;case FD.Z:t&&p(c,u,h,d),c=h,u=d;break}}return t&&t.length>2&&l.push(t),l}function VD(e,t,n,i,r,o,s,a,l,c){if(BD(e,n)&&BD(t,i)&&BD(r,s)&&BD(o,a))l.push(s,a);else{var u=2/c,h=u*u,d=s-e,f=a-t,p=Math.sqrt(d*d+f*f);d/=p,f/=p;var g=n-e,m=i-t,v=r-s,b=o-a,y=g*g+m*m,_=v*v+b*b;if(y<h&&_<h)l.push(s,a);else{var w=d*g+f*m,C=-d*v-f*b,S=y-w*w,x=_-C*C;if(S<h&&w>=0&&x<h&&C>=0)l.push(s,a);else{var O=[],k=[];Object(jt["g"])(e,n,r,s,.5,O),Object(jt["g"])(t,i,o,a,.5,k),VD(O[0],k[0],O[1],k[1],O[2],k[2],O[3],k[3],l,c),VD(O[4],k[4],O[5],k[5],O[6],k[6],O[7],k[7],l,c)}}}}function zD(e,t){var n=WD(e),i=[];t=t||1;for(var r=0;r<n.length;r++){var o=n[r],s=[],a=o[0],l=o[1];s.push(a,l);for(var c=2;c<o.length;){var u=o[c++],h=o[c++],d=o[c++],f=o[c++],p=o[c++],g=o[c++];VD(a,l,u,h,d,f,p,g,s,t),a=p,l=g}i.push(s)}return i}function HD(e,t,n){var i=e[t],r=e[1-t],o=Math.abs(i/r),s=Math.ceil(Math.sqrt(o*n)),a=Math.floor(n/s);0===a&&(a=1,s=n);for(var l=[],c=0;c<s;c++)l.push(a);var u=s*a,h=n-u;if(h>0)for(c=0;c<h;c++)l[c%s]+=1;return l}function UD(e,t,n){for(var i=e.r0,r=e.r,o=e.startAngle,s=e.endAngle,a=Math.abs(s-o),l=a*r,c=r-i,u=l>Math.abs(c),h=HD([l,c],u?0:1,t),d=(u?a:c)/h.length,f=0;f<h.length;f++)for(var p=(u?c:a)/h[f],g=0;g<h[f];g++){var m={};u?(m.startAngle=o+d*f,m.endAngle=o+d*(f+1),m.r0=i+p*g,m.r=i+p*(g+1)):(m.startAngle=o+p*g,m.endAngle=o+p*(g+1),m.r0=i+d*f,m.r=i+d*(f+1)),m.clockwise=e.clockwise,m.cx=e.cx,m.cy=e.cy,n.push(m)}}function qD(e,t,n){for(var i=e.width,r=e.height,o=i>r,s=HD([i,r],o?0:1,t),a=o?"width":"height",l=o?"height":"width",c=o?"x":"y",u=o?"y":"x",h=e[a]/s.length,d=0;d<s.length;d++)for(var f=e[l]/s[d],p=0;p<s[d];p++){var g={};g[c]=d*h,g[u]=p*f,g[a]=h,g[l]=f,g.x+=e.x,g.y+=e.y,n.push(g)}}function $D(e,t,n,i){return e*i-n*t}function KD(e,t,n,i,r,o,s,a){var l=n-e,c=i-t,u=s-r,h=a-o,d=$D(u,h,l,c);if(Math.abs(d)<1e-6)return null;var f=e-r,p=t-o,g=$D(f,p,u,h)/d;return g<0||g>1?null:new Si["a"](g*l+e,g*c+t)}function GD(e,t,n){var i=new Si["a"];Si["a"].sub(i,n,t),i.normalize();var r=new Si["a"];Si["a"].sub(r,e,t);var o=r.dot(i);return o}function YD(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function ZD(e,t,n){for(var i=e.length,r=[],o=0;o<i;o++){var s=e[o],a=e[(o+1)%i],l=KD(s[0],s[1],a[0],a[1],t.x,t.y,n.x,n.y);l&&r.push({projPt:GD(l,t,n),pt:l,idx:o})}if(r.length<2)return[{points:e},{points:e}];r.sort((function(e,t){return e.projPt-t.projPt}));var c=r[0],u=r[r.length-1];if(u.idx<c.idx){var h=c;c=u,u=h}var d=[c.pt.x,c.pt.y],f=[u.pt.x,u.pt.y],p=[d],g=[f];for(o=c.idx+1;o<=u.idx;o++)YD(p,e[o].slice());YD(p,f),YD(p,d);for(o=u.idx+1;o<=c.idx+i;o++)YD(g,e[o%i].slice());return YD(g,d),YD(g,f),[{points:p},{points:g}]}function XD(e){var t=e.points,n=[],i=[];Object(kl["d"])(t,n,i);var r=new Gi["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,s=r.height,a=r.x,l=r.y,c=new Si["a"],u=new Si["a"];return o>s?(c.x=u.x=a+o/2,c.y=l,u.y=l+s):(c.y=u.y=l+s/2,c.x=a,u.x=a+o),ZD(t,c,u)}function QD(e,t,n,i){if(1===n)i.push(t);else{var r=Math.floor(n/2),o=e(t);QD(e,o[0],r,i),QD(e,o[1],n-r,i)}return i}function JD(e,t){for(var n=[],i=0;i<t;i++)n.push(Object(Cs["a"])(e));return n}function eI(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function tI(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function nI(e,t){var n,i=[],r=e.shape;switch(e.type){case"rect":qD(r,t,i),n=$t["a"];break;case"sector":UD(r,t,i),n=Kt["a"];break;case"circle":UD({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},t,i),n=Kt["a"];break;default:var o=e.getComputedTransform(),s=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,a=Object(y["map"])(zD(e.getUpdatedPathProxy(),s),(function(e){return tI(e)})),l=a.length;if(0===l)QD(XD,{points:a[0]},t,i);else if(l===t)for(var c=0;c<l;c++)i.push({points:a[c]});else{var u=0,h=Object(y["map"])(a,(function(e){var t=[],n=[];Object(kl["d"])(e,t,n);var i=(n[1]-t[1])*(n[0]-t[0]);return u+=i,{poly:e,area:i}}));h.sort((function(e,t){return t.area-e.area}));var d=t;for(c=0;c<l;c++){var f=h[c];if(d<=0)break;var p=c===l-1?d:Math.ceil(f.area/u*t);p<0||(QD(XD,{points:f.poly},p,i),d-=p)}}n=jo["a"];break}if(!n)return JD(e,t);var g=[];for(c=0;c<i.length;c++){var m=new n;m.setShape(i[c]),eI(e,m),g.push(m)}return g}function iI(e,t){var n=e.length,i=t.length;if(n===i)return[e,t];for(var r=[],o=[],s=n<i?e:t,a=Math.min(n,i),l=Math.abs(i-n)/6,c=(a-2)/6,u=Math.ceil(l/c)+1,h=[s[0],s[1]],d=l,f=2;f<a;){var p=s[f-2],g=s[f-1],m=s[f++],v=s[f++],b=s[f++],y=s[f++],_=s[f++],w=s[f++];if(d<=0)h.push(m,v,b,y,_,w);else{for(var C=Math.min(d,u-1)+1,S=1;S<=C;S++){var x=S/C;Object(jt["g"])(p,m,b,_,x,r),Object(jt["g"])(g,v,y,w,x,o),p=r[3],g=o[3],h.push(r[1],o[1],r[2],o[2],p,g),m=r[5],v=o[5],b=r[6],y=o[6]}d-=C-1}}return s===e?[h,t]:[e,h]}function rI(e,t){for(var n=e.length,i=e[n-2],r=e[n-1],o=[],s=0;s<t.length;)o[s++]=i,o[s++]=r;return o}function oI(e,t){for(var n,i,r,o=[],s=[],a=0;a<Math.max(e.length,t.length);a++){var l=e[a],c=t[a],u=void 0,h=void 0;l?c?(n=iI(l,c),u=n[0],h=n[1],i=u,r=h):(h=rI(r||l,l),u=l):(u=rI(i||c,c),h=c),o.push(u),s.push(h)}return[o,s]}function sI(e){for(var t=0,n=0,i=0,r=e.length,o=0,s=r-2;o<r;s=o,o+=2){var a=e[s],l=e[s+1],c=e[o],u=e[o+1],h=a*u-c*l;t+=h,n+=(a+c)*h,i+=(l+u)*h}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,i/t/3,t]}function aI(e,t,n,i){for(var r=(e.length-2)/6,o=1/0,s=0,a=e.length,l=a-2,c=0;c<r;c++){for(var u=6*c,h=0,d=0;d<a;d+=2){var f=0===d?u:(u+d-2)%l+2,p=e[f]-n[0],g=e[f+1]-n[1],m=t[d]-i[0],v=t[d+1]-i[1],b=m-p,y=v-g;h+=b*b+y*y}h<o&&(o=h,s=c)}return s}function lI(e){for(var t=[],n=e.length,i=0;i<n;i+=2)t[i]=e[n-i-2],t[i+1]=e[n-i-1];return t}function cI(e,t,n,i){for(var r,o=[],s=0;s<e.length;s++){var a=e[s],l=t[s],c=sI(a),u=sI(l);null==r&&(r=c[2]<0!==u[2]<0);var h=[],d=[],f=0,p=1/0,g=[],m=a.length;r&&(a=lI(a));for(var v=6*aI(a,l,c,u),b=m-2,y=0;y<b;y+=2){var _=(v+y)%b+2;h[y+2]=a[_]-c[0],h[y+3]=a[_+1]-c[1]}if(h[0]=a[v]-c[0],h[1]=a[v+1]-c[1],n>0)for(var w=i/n,C=-i/2;C<=i/2;C+=w){var S=Math.sin(C),x=Math.cos(C),O=0;for(y=0;y<a.length;y+=2){var k=h[y],L=h[y+1],E=l[y]-u[0],D=l[y+1]-u[1],I=E*x-D*S,M=E*S+D*x;g[y]=I,g[y+1]=M;var T=I-k,A=M-L;O+=T*T+A*A}if(O<p){p=O,f=C;for(var N=0;N<g.length;N++)d[N]=g[N]}}else for(var P=0;P<m;P+=2)d[P]=l[P]-u[0],d[P+1]=l[P+1]-u[1];o.push({from:h,to:d,fromCp:c,toCp:u,rotation:-f})}return o}function uI(e){return e.__isCombineMorphing}var hI="__mOriginal_";function dI(e,t,n){var i=hI+t,r=e[i]||e[t];e[i]||(e[i]=e[t]);var o=n.replace,s=n.after,a=n.before;e[t]=function(){var e,t=arguments;return a&&a.apply(this,t),e=o?o.apply(this,t):r.apply(this,t),s&&s.apply(this,t),e}}function fI(e,t){var n=hI+t;e[n]&&(e[t]=e[n],e[n]=null)}function pI(e,t){for(var n=0;n<e.length;n++)for(var i=e[n],r=0;r<i.length;){var o=i[r],s=i[r+1];i[r++]=t[0]*o+t[2]*s+t[4],i[r++]=t[1]*o+t[3]*s+t[5]}}function gI(e,t){var n=e.getUpdatedPathProxy(),i=t.getUpdatedPathProxy(),r=oI(WD(n),WD(i)),o=r[0],s=r[1],a=e.getComputedTransform(),l=t.getComputedTransform();function c(){this.transform=null}a&&pI(o,a),l&&pI(s,l),dI(t,"updateTransform",{replace:c}),t.transform=null;var u=cI(o,s,10,Math.PI),h=[];dI(t,"buildPath",{replace:function(e){for(var n=t.__morphT,i=1-n,r=[],o=0;o<u.length;o++){var s=u[o],a=s.from,l=s.to,c=s.rotation*n,d=s.fromCp,f=s.toCp,p=Math.sin(c),g=Math.cos(c);Object(Cr["lerp"])(r,d,f,n);for(var m=0;m<a.length;m+=2){var v=a[m],b=a[m+1],y=l[m],_=l[m+1],w=v*i+y*n,C=b*i+_*n;h[m]=w*g-C*p+r[0],h[m+1]=w*p+C*g+r[1]}var S=h[0],x=h[1];e.moveTo(S,x);for(m=2;m<a.length;){y=h[m++],_=h[m++];var O=h[m++],k=h[m++],L=h[m++],E=h[m++];S===y&&x===_&&O===L&&k===E?e.lineTo(L,E):e.bezierCurveTo(y,_,O,k,L,E),S=L,x=E}}}})}function mI(e,t,n){if(!e||!t)return t;var i=n.done,r=n.during;function o(){fI(t,"buildPath"),fI(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return gI(e,t),t.__morphT=0,t.animateTo({__morphT:1},Object(y["defaults"])({during:function(e){t.dirtyShape(),r&&r(e)},done:function(){o(),i&&i()}},n)),t}function vI(e,t,n,i,r,o){var s=16;e=r===n?0:Math.round(32767*(e-n)/(r-n)),t=o===i?0:Math.round(32767*(t-i)/(o-i));for(var a,l=0,c=(1<<s)/2;c>0;c/=2){var u=0,h=0;(e&c)>0&&(u=1),(t&c)>0&&(h=1),l+=c*c*(3*u^h),0===h&&(1===u&&(e=c-1-e,t=c-1-t),a=e,e=t,t=a)}return l}function bI(e){var t=1/0,n=1/0,i=-1/0,r=-1/0,o=Object(y["map"])(e,(function(e){var o=e.getBoundingRect(),s=e.getComputedTransform(),a=o.x+o.width/2+(s?s[4]:0),l=o.y+o.height/2+(s?s[5]:0);return t=Math.min(a,t),n=Math.min(l,n),i=Math.max(a,i),r=Math.max(l,r),[a,l]})),s=Object(y["map"])(o,(function(o,s){return{cp:o,z:vI(o[0],o[1],t,n,i,r),path:e[s]}}));return s.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function yI(e){return nI(e.path,e.count)}function _I(){return{fromIndividuals:[],toIndividuals:[],count:0}}function wI(e,t,n){var i=[];function r(e){for(var t=0;t<e.length;t++){var n=e[t];uI(n)?r(n.childrenRef()):n instanceof a["b"]&&i.push(n)}}r(e);var o=i.length;if(!o)return _I();var s=n.dividePath||yI,l=s({path:t,count:o});if(l.length!==o)return console.error("Invalid morphing: unmatched splitted path"),_I();i=bI(i),l=bI(l);for(var c=n.done,u=n.during,h=n.individualDelay,d=new z["c"],f=0;f<o;f++){var p=i[f],g=l[f];g.parent=t,g.copyTransform(d),h||gI(p,g)}function m(e){for(var t=0;t<l.length;t++)l[t].addSelfToZr(e)}function v(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,fI(t,"addSelfToZr"),fI(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return l},dI(t,"addSelfToZr",{after:function(e){m(e)}}),dI(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<l.length;t++)l[t].removeSelfFromZr(e)}});var b=l.length;if(h){var _=b,w=function(){_--,0===_&&(v(),c&&c())};for(f=0;f<b;f++){var C=h?Object(y["defaults"])({delay:(n.delay||0)+h(f,b,i[f],l[f]),done:w},n):n;mI(i[f],l[f],C)}}else t.__morphT=0,t.animateTo({__morphT:1},Object(y["defaults"])({during:function(e){for(var n=0;n<b;n++){var i=l[n];i.__morphT=t.__morphT,i.dirtyShape()}u&&u(e)},done:function(){v();for(var t=0;t<e.length;t++)fI(e[t],"updateTransform");c&&c()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:i,toIndividuals:l,count:b}}function CI(e,t,n){var i=t.length,r=[],o=n.dividePath||yI;function s(e){for(var t=0;t<e.length;t++){var n=e[t];uI(n)?s(n.childrenRef()):n instanceof a["b"]&&r.push(n)}}if(uI(e)){s(e.childrenRef());var l=r.length;if(l<i)for(var c=0,u=l;u<i;u++)r.push(Object(Cs["a"])(r[c++%l]));r.length=i}else{r=o({path:e,count:i});var h=e.getComputedTransform();for(u=0;u<r.length;u++)r[u].setLocalTransform(h);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),_I()}r=bI(r),t=bI(t);var d=n.individualDelay;for(u=0;u<i;u++){var f=d?Object(y["defaults"])({delay:(n.delay||0)+d(u,i,r[u],t[u])},n):n;mI(r[u],t[u],f)}return{fromIndividuals:r,toIndividuals:t,count:t.length}}function SI(e){return Object(y["isArray"])(e[0])}function xI(e,t){for(var n=[],i=e.length,r=0;r<i;r++)n.push({one:e[r],many:[]});for(r=0;r<t.length;r++){var o=t[r].length,s=void 0;for(s=0;s<o;s++)n[s%i].many.push(t[r][s])}var a=0;for(r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[a].many;if(l.length<=1){if(!a)return n;a=0}o=l.length;var c=Math.ceil(o/2);n[r].many=l.slice(c,o),n[a].many=l.slice(0,c),a++}return n}var OI={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i<e.count;i++){var r=Object(Cs["a"])(e.path);r.setStyle("opacity",n),t.push(r)}return t},split:null};function kI(e,t,n,i,r,o){if(e.length&&t.length){var s=Object(ht["a"])("update",i,r);if(s&&s.duration>0){var a,l,c=i.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},s);SI(e)&&(a=e,l=t),SI(t)&&(a=t,l=e);for(var h=a?a===e:e.length>t.length,d=a?xI(l,a):xI(h?t:e,[h?e:t]),f=0,p=0;p<d.length;p++)f+=d[p].many.length;var g=0;for(p=0;p<d.length;p++)m(d[p],h,g,f),g+=d[p].many.length}}function m(e,t,i,r,s){var a=e.many,l=e.one;if(1!==a.length||s)for(var h=Object(y["defaults"])({dividePath:OI[n],individualDelay:c&&function(e,t,n,o){return c(e+i,r)}},u),d=t?wI(a,l,h):CI(l,a,h),f=d.fromIndividuals,p=d.toIndividuals,g=f.length,v=0;v<g;v++){w=c?Object(y["defaults"])({delay:c(v,g)},u):u;o(f[v],p[v],t?a[v]:e.one,t?e.one:a[v],w)}else{var b=t?a[0]:l,_=t?l:a[0];if(uI(b))m({many:[b],one:_},!0,i,r,!0);else{var w=c?Object(y["defaults"])({delay:c(i,r)},u):u;mI(b,_,w),o(b,_,b,_,w)}}}}function LI(e){if(!e)return[];if(Object(y["isArray"])(e)){for(var t=[],n=0;n<e.length;n++)t.push(LI(e[n]));return t}var i=[];return e.traverse((function(e){e instanceof a["b"]&&!e.disableMorphing&&!e.invisible&&!e.ignore&&i.push(e)})),i}var EI=1e4,DI=0,II=1,MI=2,TI=Object(Pt["o"])();function AI(e,t){for(var n=e.dimensions,i=0;i<n.length;i++){var r=e.getDimensionInfo(n[i]);if(r&&0===r.otherDims[t])return n[i]}}function NI(e,t,n){var i=e.getDimensionInfo(n),r=i&&i.ordinalMeta;if(i){var o=e.get(i.name,t);return r&&r.categories[o]||o+""}}function PI(e,t,n,i){var r=i?"itemChildGroupId":"itemGroupId",o=AI(e,r);if(o){var s=NI(e,t,o);return s}var a=e.getRawDataItem(t),l=i?"childGroupId":"groupId";return a&&a[l]?a[l]+"":i?void 0:n||e.getId(t)}function jI(e){var t=[];return Object(y["each"])(e,(function(e){var n=e.data,i=e.dataGroupId;if(!(n.count()>EI))for(var r=n.getIndices(),o=0;o<r.length;o++)t.push({data:n,groupId:PI(n,o,i,!1),childGroupId:PI(n,o,i,!0),divide:e.divide,dataIndex:o})})),t}function RI(e,t,n){e.traverse((function(e){e instanceof a["b"]&&Object(ht["c"])(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})}))}function FI(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function BI(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function WI(e,t,n){var i=Object(ht["a"])("update",n,t);i&&e.traverse((function(e){if(e instanceof ya["c"]){var t=Object(ht["b"])(e);t&&e.animateFrom({style:t},i)}}))}function VI(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++){var r=e[i],o=t[i];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function zI(e,t,n){var i=jI(e),r=jI(t);function o(e,t,n,i,r){(n||e)&&t.animateFrom({style:n&&n!==e?Object(y["extend"])(Object(y["extend"])({},n.style),e.style):e.style},r)}var s=!1,l=DI,c=Object(y["createHashMap"])(),u=Object(y["createHashMap"])();i.forEach((function(e){e.groupId&&c.set(e.groupId,!0),e.childGroupId&&u.set(e.childGroupId,!0)}));for(var h=0;h<r.length;h++){var d=r[h].groupId;if(u.get(d)){l=II;break}var f=r[h].childGroupId;if(f&&c.get(f)){l=MI;break}}function p(e,t){return function(n){var i=n.data,r=n.dataIndex;return t?i.getId(r):e?l===II?n.childGroupId:n.groupId:l===MI?n.childGroupId:n.groupId}}var g=VI(i,r),m={};if(!g)for(h=0;h<r.length;h++){var v=r[h],b=v.data.getItemGraphicEl(v.dataIndex);b&&(m[b.id]=!0)}function _(e,t){var n=i[t],a=r[e],l=a.data.hostModel,c=n.data.getItemGraphicEl(n.dataIndex),u=a.data.getItemGraphicEl(a.dataIndex);c!==u?c&&m[c.id]||u&&(BI(u),c?(BI(c),FI(c),s=!0,kI(LI(c),LI(u),a.divide,l,e,o)):RI(u,l,e)):u&&WI(u,a.dataIndex,l)}new _c["a"](i,r,p(!0,g),p(!1,g),null,"multiple").update(_).updateManyToOne((function(e,t){var n=r[e],a=n.data,l=a.hostModel,c=a.getItemGraphicEl(n.dataIndex),u=Object(y["filter"])(Object(y["map"])(t,(function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)})),(function(e){return e&&e!==c&&!m[e.id]}));c&&(BI(c),u.length?(Object(y["each"])(u,(function(e){BI(e),FI(e)})),s=!0,kI(LI(u),LI(c),n.divide,l,e,o)):RI(c,l,n.dataIndex))})).updateOneToMany((function(e,t){var n=i[t],a=n.data.getItemGraphicEl(n.dataIndex);if(!a||!m[a.id]){var l=Object(y["filter"])(Object(y["map"])(e,(function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)})),(function(e){return e&&e!==a})),c=r[e[0]].data.hostModel;l.length&&(Object(y["each"])(l,(function(e){return BI(e)})),a?(BI(a),FI(a),s=!0,kI(LI(a),LI(l),n.divide,c,e[0],o)):Object(y["each"])(l,(function(t){return RI(t,c,e[0])})))}})).updateManyToMany((function(e,t){new _c["a"](t,e,(function(e){return i[e].data.getId(i[e].dataIndex)}),(function(e){return r[e].data.getId(r[e].dataIndex)})).update((function(n,i){_(e[n],t[i])})).execute()})).execute(),s&&Object(y["each"])(t,(function(e){var t=e.data,i=t.hostModel,r=i&&n.getViewOfSeriesModel(i),o=Object(ht["a"])("update",i,0);r&&i.isAnimationEnabled()&&o&&o.duration>0&&r.group.traverse((function(e){e instanceof a["b"]&&!e.animators.length&&e.animateFrom({style:{opacity:0}},o)}))}))}function HI(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function UI(e){return Object(y["isArray"])(e)?e.sort().join(","):e}function qI(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function $I(e,t){var n=Object(y["createHashMap"])(),i=Object(y["createHashMap"])(),r=Object(y["createHashMap"])();return Object(y["each"])(e.oldSeries,(function(t,n){var o=e.oldDataGroupIds[n],s=e.oldData[n],a=HI(t),l=UI(a);i.set(l,{dataGroupId:o,data:s}),Object(y["isArray"])(a)&&Object(y["each"])(a,(function(e){r.set(e,{key:l,dataGroupId:o,data:s})}))})),Object(y["each"])(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),o=e.getData(),s=HI(e),a=UI(s),l=i.get(a);if(l)n.set(a,{oldSeries:[{dataGroupId:l.dataGroupId,divide:qI(l.data),data:l.data}],newSeries:[{dataGroupId:t,divide:qI(o),data:o}]});else if(Object(y["isArray"])(s)){0;var c=[];Object(y["each"])(s,(function(e){var t=i.get(e);t.data&&c.push({dataGroupId:t.dataGroupId,divide:qI(t.data),data:t.data})})),c.length&&n.set(a,{oldSeries:c,newSeries:[{dataGroupId:t,data:o,divide:qI(o)}]})}else{var u=r.get(s);if(u){var h=n.get(u.key);h||(h={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:qI(u.data)}],newSeries:[]},n.set(u.key,h)),h.newSeries.push({dataGroupId:t,data:o,divide:qI(o)})}}}})),n}function KI(e,t){for(var n=0;n<e.length;n++){var i=null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id;if(i)return n}}function GI(e,t,n,i){var r=[],o=[];Object(y["each"])(Object(Pt["r"])(e.from),(function(e){var n=KI(t.oldSeries,e);n>=0&&r.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:qI(t.oldData[n]),groupIdDim:e.dimension})})),Object(y["each"])(Object(Pt["r"])(e.to),(function(e){var i=KI(n.updatedSeries,e);if(i>=0){var r=n.updatedSeries[i].getData();o.push({dataGroupId:t.oldDataGroupIds[i],data:r,divide:qI(r),groupIdDim:e.dimension})}})),r.length>0&&o.length>0&&zI(r,o,i)}function YI(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Object(y["each"])(Object(Pt["r"])(n.seriesTransition),(function(e){Object(y["each"])(Object(Pt["r"])(e.to),(function(e){for(var t=n.updatedSeries,i=0;i<t.length;i++)(null!=e.seriesIndex&&e.seriesIndex===t[i].seriesIndex||null!=e.seriesId&&e.seriesId===t[i].id)&&(t[i][st["a"]]=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){var i=TI(t);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)Object(y["each"])(Object(Pt["r"])(r),(function(e){GI(e,i,n,t)}));else{var o=$I(i,n);Object(y["each"])(o.keys(),(function(e){var n=o.get(e);zI(n.oldSeries,n.newSeries,t)}))}Object(y["each"])(n.updatedSeries,(function(e){e[st["a"]]&&(e[st["a"]]=!1)}))}for(var s=e.getSeries(),a=i.oldSeries=[],l=i.oldDataGroupIds=[],c=i.oldData=[],u=0;u<s.length;u++){var h=s[u].getData();h.count()<EI&&(a.push(s[u]),l.push(s[u].get("dataGroupId")),c.push(h))}}))}var ZI=n("ee29");Object(i["a"])([o["a"]]),Object(i["a"])([it]),Object(i["a"])([On,di,qi,Mo,ns,hl,hc,Hu,ud,_d,Md,Rp,mg,jg,um,bm,Hm,ev,Iv,Wv,sb,Ry]),Object(i["a"])(j_),Object(i["a"])(Ew),Object(i["a"])(ul),Object(i["a"])(eC),Object(i["a"])(jp),Object(i["a"])(hC),Object(i["a"])(DC),Object(i["a"])(gx),Object(i["a"])(Jx),Object(i["a"])(P_),Object(i["a"])(PO),Object(i["a"])(FO),Object(i["a"])(ck),Object(i["a"])(jk),Object(i["a"])(Gk),Object(i["a"])(aL),Object(i["a"])(jL),Object(i["a"])(vE),Object(i["a"])(JL),Object(i["a"])(mE),Object(i["a"])(fD),Object(i["a"])(oD),Object(i["a"])(dD),Object(i["a"])(yD),Object(i["a"])(jD),Object(i["a"])(RD["a"]),Object(i["a"])(YI),Object(i["a"])(ZI["a"])},3170:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n("099d");class r{constructor(e){let t=Object(i["b"])(e);this._defaultValue=t,this._asciiMap=r._createAsciiMap(t),this._map=new Map}static _createAsciiMap(e){let t=new Uint8Array(256);for(let n=0;n<256;n++)t[n]=e;return t}set(e,t){let n=Object(i["b"])(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class o{constructor(){this._actual=new r(0)}add(e){this._actual.set(e,1)}has(e){return 1===this._actual.get(e)}}},"31b5":function(e,t,n){"use strict";var i=n("fbd7").codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}function o(e,t,n,o){var s=r(t,o,n);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0){var a=o?n:"highWaterMark";throw new i(a,s)}return Math.floor(s)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},"31df":function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var i=n("11f7");function r(e,t={}){const n=s(t);return n.textContent=e,n}function o(e,t={}){const n=s(t);return l(n,c(e,!!t.renderCodeSegements),t.actionHandler,t.renderCodeSegements),n}function s(e){const t=e.inline?"span":"div",n=document.createElement(t);return e.className&&(n.className=e.className),n}class a{constructor(e){this.source=e,this.index=0}eos(){return this.index>=this.source.length}next(){const e=this.peek();return this.advance(),e}peek(){return this.source[this.index]}advance(){this.index++}}function l(e,t,n,r){let o;if(2===t.type)o=document.createTextNode(t.content||"");else if(3===t.type)o=document.createElement("b");else if(4===t.type)o=document.createElement("i");else if(7===t.type&&r)o=document.createElement("code");else if(5===t.type&&n){const e=document.createElement("a");e.href="#",n.disposeables.add(i["o"](e,"click",e=>{n.callback(String(t.index),e)})),o=e}else 8===t.type?o=document.createElement("br"):1===t.type&&(o=e);o&&e!==o&&e.appendChild(o),o&&Array.isArray(t.children)&&t.children.forEach(e=>{l(o,e,n,r)})}function c(e,t){const n={type:1,children:[]};let i=0,r=n;const o=[],s=new a(e);while(!s.eos()){let e=s.next();const n="\\"===e&&0!==h(s.peek(),t);if(n&&(e=s.next()),!n&&u(e,t)&&e===s.peek()){s.advance(),2===r.type&&(r=o.pop());const n=h(e,t);if(r.type===n||5===r.type&&6===n)r=o.pop();else{const e={type:n,children:[]};5===n&&(e.index=i,i++),r.children.push(e),o.push(r),r=e}}else if("\n"===e)2===r.type&&(r=o.pop()),r.children.push({type:8});else if(2!==r.type){const t={type:2,content:e};r.children.push(t),o.push(r),r=t}else r.content+=e}return 2===r.type&&(r=o.pop()),o.length,n}function u(e,t){return 0!==h(e,t)}function h(e,t){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return t?7:0;default:return 0}}},"323e":function(e,t,n){var i,r;
|
||
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
||
* @license MIT */(function(o,s){i=s,r="function"===typeof i?i.call(t,n,t,e):i,void 0===r||(e.exports=r)})(0,(function(){var e={version:"0.2.0"},t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function n(e,t,n){return e<t?t:e>n?n:e}function i(e){return 100*(-1+e)}function r(e,n,r){var o;return o="translate3d"===t.positionUsing?{transform:"translate3d("+i(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+i(e)+"%,0)"}:{"margin-left":i(e)+"%"},o.transition="all "+n+"ms "+r,o}e.configure=function(e){var n,i;for(n in e)i=e[n],void 0!==i&&e.hasOwnProperty(n)&&(t[n]=i);return this},e.status=null,e.set=function(i){var a=e.isStarted();i=n(i,t.minimum,1),e.status=1===i?null:i;var l=e.render(!a),c=l.querySelector(t.barSelector),u=t.speed,h=t.easing;return l.offsetWidth,o((function(n){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),s(c,r(i,u,h)),1===i?(s(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout((function(){s(l,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){e.remove(),n()}),u)}),u)):setTimeout(n,u)})),this},e.isStarted=function(){return"number"===typeof e.status},e.start=function(){e.status||e.set(0);var n=function(){setTimeout((function(){e.status&&(e.trickle(),n())}),t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var i=e.status;return i?("number"!==typeof t&&(t=(1-i)*n(Math.random()*i,.1,.95)),i=n(i+t,0,.994),e.set(i)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,n=0;e.promise=function(i){return i&&"resolved"!==i.state()?(0===n&&e.start(),t++,n++,i.always((function(){n--,0===n?(t=0,e.done()):e.set((t-n)/t)})),this):this}}(),e.render=function(n){if(e.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var r=document.createElement("div");r.id="nprogress",r.innerHTML=t.template;var o,a=r.querySelector(t.barSelector),c=n?"-100":i(e.status||0),u=document.querySelector(t.parent);return s(a,{transition:"all 0 linear",transform:"translate3d("+c+"%,0,0)"}),t.showSpinner||(o=r.querySelector(t.spinnerSelector),o&&h(o)),u!=document.body&&l(u,"nprogress-custom-parent"),u.appendChild(r),r},e.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&h(e)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var o=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),s=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function i(t){var n=document.body.style;if(t in n)return t;var i,r=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);while(r--)if(i=e[r]+o,i in n)return i;return t}function r(e){return e=n(e),t[e]||(t[e]=i(e))}function o(e,t,n){t=r(t),e.style[t]=n}return function(e,t){var n,i,r=arguments;if(2==r.length)for(n in t)i=t[n],void 0!==i&&t.hasOwnProperty(n)&&o(e,n,i);else o(e,r[1],r[2])}}();function a(e,t){var n="string"==typeof e?e:u(e);return n.indexOf(" "+t+" ")>=0}function l(e,t){var n=u(e),i=n+t;a(n,t)||(e.className=i.substring(1))}function c(e,t){var n,i=u(e);a(e,t)&&(n=i.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function u(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function h(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e}))},"32a4":function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return p}));var i=n("dff7"),r=n("308f"),o=n("b707"),s=n("70cb"),a=n("89cd"),l=n("b9b4");const c={ModesRegistry:"editor.modesRegistry"};class u{constructor(){this._onDidChangeLanguages=new r["b"],this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let t=0,n=this._languages.length;t<n;t++)if(this._languages[t]===e)return void this._languages.splice(t,1)}}}getLanguages(){return[].concat(this._languages).concat(this._dynamicLanguages)}}const h=new u;a["a"].add(c.ModesRegistry,h);const d="plaintext",f=".txt",p=new o["u"](d,1);h.registerLanguage({id:d,extensions:[f],aliases:[i["a"]("plainText.alias","Plain Text"),"text"],mimetypes:[l["a"].text]}),s["a"].register(p,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}},0)},"32b8":function(e,t,n){"use strict";n.d(t,"i",(function(){return _})),n.d(t,"e",(function(){return w})),n.d(t,"d",(function(){return C})),n.d(t,"g",(function(){return S})),n.d(t,"f",(function(){return x})),n.d(t,"b",(function(){return O})),n.d(t,"a",(function(){return k})),n.d(t,"c",(function(){return L})),n.d(t,"h",(function(){return E}));var i=n("c317");const r=65,o=97,s=90,a=122,l=46,c=47,u=92,h=58,d=63;class f extends Error{constructor(e,t,n){let i;"string"===typeof t&&0===t.indexOf("not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";const r=-1!==e.indexOf(".")?"property":"argument";let o=`The "${e}" ${r} ${i} of type ${t}`;o+=". Received type "+typeof n,super(o),this.code="ERR_INVALID_ARG_TYPE"}}function p(e,t){if("string"!==typeof e)throw new f(t,"string",e)}function g(e){return e===c||e===u}function m(e){return e===c}function v(e){return e>=r&&e<=s||e>=o&&e<=a}function b(e,t,n,i){let r="",o=0,s=-1,a=0,u=0;for(let h=0;h<=e.length;++h){if(h<e.length)u=e.charCodeAt(h);else{if(i(u))break;u=c}if(i(u)){if(s===h-1||1===a);else if(2===a){if(r.length<2||2!==o||r.charCodeAt(r.length-1)!==l||r.charCodeAt(r.length-2)!==l){if(r.length>2){const e=r.lastIndexOf(n);-1===e?(r="",o=0):(r=r.slice(0,e),o=r.length-1-r.lastIndexOf(n)),s=h,a=0;continue}if(0!==r.length){r="",o=0,s=h,a=0;continue}}t&&(r+=r.length>0?n+"..":"..",o=2)}else r.length>0?r+=`${n}${e.slice(s+1,h)}`:r=e.slice(s+1,h),o=h-s-1;s=h,a=0}else u===l&&-1!==a?++a:a=-1}return r}function y(e,t){if(null===t||"object"!==typeof t)throw new f("pathObject","Object",t);const n=t.dir||t.root,i=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${i}`:`${n}${e}${i}`:i}const _={resolve(...e){let t="",n="",r=!1;for(let o=e.length-1;o>=-1;o--){let s;if(o>=0){if(s=e[o],p(s,"path"),0===s.length)continue}else 0===t.length?s=i["a"]():(s=i["b"]["="+t]||i["a"](),(void 0===s||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===u)&&(s=t+"\\"));const a=s.length;let l=0,c="",d=!1;const f=s.charCodeAt(0);if(1===a)g(f)&&(l=1,d=!0);else if(g(f))if(d=!0,g(s.charCodeAt(1))){let e=2,t=e;while(e<a&&!g(s.charCodeAt(e)))e++;if(e<a&&e!==t){const n=s.slice(t,e);t=e;while(e<a&&g(s.charCodeAt(e)))e++;if(e<a&&e!==t){t=e;while(e<a&&!g(s.charCodeAt(e)))e++;e!==a&&e===t||(c=`\\\\${n}\\${s.slice(t,e)}`,l=e)}}}else l=1;else v(f)&&s.charCodeAt(1)===h&&(c=s.slice(0,2),l=2,a>2&&g(s.charCodeAt(2))&&(d=!0,l=3));if(c.length>0)if(t.length>0){if(c.toLowerCase()!==t.toLowerCase())continue}else t=c;if(r){if(t.length>0)break}else if(n=`${s.slice(l)}\\${n}`,r=d,d&&t.length>0)break}return n=b(n,!r,"\\",g),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){p(e,"path");const t=e.length;if(0===t)return".";let n,i=0,r=!1;const o=e.charCodeAt(0);if(1===t)return m(o)?"\\":e;if(g(o))if(r=!0,g(e.charCodeAt(1))){let r=2,o=r;while(r<t&&!g(e.charCodeAt(r)))r++;if(r<t&&r!==o){const s=e.slice(o,r);o=r;while(r<t&&g(e.charCodeAt(r)))r++;if(r<t&&r!==o){o=r;while(r<t&&!g(e.charCodeAt(r)))r++;if(r===t)return`\\\\${s}\\${e.slice(o)}\\`;r!==o&&(n=`\\\\${s}\\${e.slice(o,r)}`,i=r)}}}else i=1;else v(o)&&e.charCodeAt(1)===h&&(n=e.slice(0,2),i=2,t>2&&g(e.charCodeAt(2))&&(r=!0,i=3));let s=i<t?b(e.slice(i),!r,"\\",g):"";return 0!==s.length||r||(s="."),s.length>0&&g(e.charCodeAt(t-1))&&(s+="\\"),void 0===n?r?"\\"+s:s:r?`${n}\\${s}`:`${n}${s}`},isAbsolute(e){p(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return g(n)||t>2&&v(n)&&e.charCodeAt(1)===h&&g(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let o=0;o<e.length;++o){const i=e[o];p(i,"path"),i.length>0&&(void 0===t?t=n=i:t+="\\"+i)}if(void 0===t)return".";let i=!0,r=0;if("string"===typeof n&&g(n.charCodeAt(0))){++r;const e=n.length;e>1&&g(n.charCodeAt(1))&&(++r,e>2&&(g(n.charCodeAt(2))?++r:i=!1))}if(i){while(r<t.length&&g(t.charCodeAt(r)))r++;r>=2&&(t="\\"+t.slice(r))}return _.normalize(t)},relative(e,t){if(p(e,"from"),p(t,"to"),e===t)return"";const n=_.resolve(e),i=_.resolve(t);if(n===i)return"";if(e=n.toLowerCase(),t=i.toLowerCase(),e===t)return"";let r=0;while(r<e.length&&e.charCodeAt(r)===u)r++;let o=e.length;while(o-1>r&&e.charCodeAt(o-1)===u)o--;const s=o-r;let a=0;while(a<t.length&&t.charCodeAt(a)===u)a++;let l=t.length;while(l-1>a&&t.charCodeAt(l-1)===u)l--;const c=l-a,h=s<c?s:c;let d=-1,f=0;for(;f<h;f++){const n=e.charCodeAt(r+f);if(n!==t.charCodeAt(a+f))break;n===u&&(d=f)}if(f!==h){if(-1===d)return i}else{if(c>h){if(t.charCodeAt(a+f)===u)return i.slice(a+f+1);if(2===f)return i.slice(a+f)}s>h&&(e.charCodeAt(r+f)===u?d=f:2===f&&(d=3)),-1===d&&(d=0)}let g="";for(f=r+d+1;f<=o;++f)f!==o&&e.charCodeAt(f)!==u||(g+=0===g.length?"..":"\\..");return a+=d,g.length>0?`${g}${i.slice(a,l)}`:(i.charCodeAt(a)===u&&++a,i.slice(a,l))},toNamespacedPath(e){if("string"!==typeof e)return e;if(0===e.length)return"";const t=_.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===u){if(t.charCodeAt(1)===u){const e=t.charCodeAt(2);if(e!==d&&e!==l)return"\\\\?\\UNC\\"+t.slice(2)}}else if(v(t.charCodeAt(0))&&t.charCodeAt(1)===h&&t.charCodeAt(2)===u)return"\\\\?\\"+t;return e},dirname(e){p(e,"path");const t=e.length;if(0===t)return".";let n=-1,i=0;const r=e.charCodeAt(0);if(1===t)return g(r)?e:".";if(g(r)){if(n=i=1,g(e.charCodeAt(1))){let r=2,o=r;while(r<t&&!g(e.charCodeAt(r)))r++;if(r<t&&r!==o){o=r;while(r<t&&g(e.charCodeAt(r)))r++;if(r<t&&r!==o){o=r;while(r<t&&!g(e.charCodeAt(r)))r++;if(r===t)return e;r!==o&&(n=i=r+1)}}}}else v(r)&&e.charCodeAt(1)===h&&(n=t>2&&g(e.charCodeAt(2))?3:2,i=n);let o=-1,s=!0;for(let a=t-1;a>=i;--a)if(g(e.charCodeAt(a))){if(!s){o=a;break}}else s=!1;if(-1===o){if(-1===n)return".";o=n}return e.slice(0,o)},basename(e,t){void 0!==t&&p(t,"ext"),p(e,"path");let n,i=0,r=-1,o=!0;if(e.length>=2&&v(e.charCodeAt(0))&&e.charCodeAt(1)===h&&(i=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=i;--n){const l=e.charCodeAt(n);if(g(l)){if(!o){i=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(l===t.charCodeAt(s)?-1===--s&&(r=n):(s=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=i;--n)if(g(e.charCodeAt(n))){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){p(e,"path");let t=0,n=-1,i=0,r=-1,o=!0,s=0;e.length>=2&&e.charCodeAt(1)===h&&v(e.charCodeAt(0))&&(t=i=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(g(t)){if(!o){i=a+1;break}}else-1===r&&(o=!1,r=a+1),t===l?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1)}return-1===n||-1===r||0===s||1===s&&n===r-1&&n===i+1?"":e.slice(n,r)},format:y.bind(null,"\\"),parse(e){p(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let i=0,r=e.charCodeAt(0);if(1===n)return g(r)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(g(r)){if(i=1,g(e.charCodeAt(1))){let t=2,r=t;while(t<n&&!g(e.charCodeAt(t)))t++;if(t<n&&t!==r){r=t;while(t<n&&g(e.charCodeAt(t)))t++;if(t<n&&t!==r){r=t;while(t<n&&!g(e.charCodeAt(t)))t++;t===n?i=t:t!==r&&(i=t+1)}}}}else if(v(r)&&e.charCodeAt(1)===h){if(n<=2)return t.root=t.dir=e,t;if(i=2,g(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}i>0&&(t.root=e.slice(0,i));let o=-1,s=i,a=-1,c=!0,u=e.length-1,d=0;for(;u>=i;--u)if(r=e.charCodeAt(u),g(r)){if(!c){s=u+1;break}}else-1===a&&(c=!1,a=u+1),r===l?-1===o?o=u:1!==d&&(d=1):-1!==o&&(d=-1);return-1!==a&&(-1===o||0===d||1===d&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),t.dir=s>0&&s!==i?e.slice(0,s-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},w={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:i["a"]();p(o,"path"),0!==o.length&&(t=`${o}/${t}`,n=o.charCodeAt(0)===c)}return t=b(t,!n,"/",m),n?"/"+t:t.length>0?t:"."},normalize(e){if(p(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c,n=e.charCodeAt(e.length-1)===c;return e=b(e,!t,"/",m),0===e.length?t?"/":n?"./":".":(n&&(e+="/"),t?"/"+e:e)},isAbsolute(e){return p(e,"path"),e.length>0&&e.charCodeAt(0)===c},join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const i=e[n];p(i,"path"),i.length>0&&(void 0===t?t=i:t+="/"+i)}return void 0===t?".":w.normalize(t)},relative(e,t){if(p(e,"from"),p(t,"to"),e===t)return"";if(e=w.resolve(e),t=w.resolve(t),e===t)return"";const n=1,i=e.length,r=i-n,o=1,s=t.length-o,a=r<s?r:s;let l=-1,u=0;for(;u<a;u++){const i=e.charCodeAt(n+u);if(i!==t.charCodeAt(o+u))break;i===c&&(l=u)}if(u===a)if(s>a){if(t.charCodeAt(o+u)===c)return t.slice(o+u+1);if(0===u)return t.slice(o+u)}else r>a&&(e.charCodeAt(n+u)===c?l=u:0===u&&(l=0));let h="";for(u=n+l+1;u<=i;++u)u!==i&&e.charCodeAt(u)!==c||(h+=0===h.length?"..":"/..");return`${h}${t.slice(o+l)}`},toNamespacedPath(e){return e},dirname(e){if(p(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===c;let n=-1,i=!0;for(let r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===c){if(!i){n=r;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&p(t,"ext"),p(e,"path");let n,i=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===c){if(!o){i=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(l===t.charCodeAt(s)?-1===--s&&(r=n):(s=-1,r=a))}return i===r?r=a:-1===r&&(r=e.length),e.slice(i,r)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===c){if(!o){i=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(i,r)},extname(e){p(e,"path");let t=-1,n=0,i=-1,r=!0,o=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s);if(a!==c)-1===i&&(r=!1,i=s+1),a===l?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=s+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format:y.bind(null,"/"),parse(e){p(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===c;let i;n?(t.root="/",i=1):i=0;let r=-1,o=0,s=-1,a=!0,u=e.length-1,h=0;for(;u>=i;--u){const t=e.charCodeAt(u);if(t!==c)-1===s&&(a=!1,s=u+1),t===l?-1===r?r=u:1!==h&&(h=1):-1!==r&&(h=-1);else if(!a){o=u+1;break}}if(-1!==s){const i=0===o&&n?1:o;-1===r||0===h||1===h&&r===s-1&&r===o+1?t.base=t.name=e.slice(i,s):(t.name=e.slice(i,r),t.base=e.slice(i,s),t.ext=e.slice(r,s))}return o>0?t.dir=e.slice(0,o-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};w.win32=_.win32=_,w.posix=_.posix=w;const C="win32"===i["c"]?_.normalize:w.normalize,S="win32"===i["c"]?_.resolve:w.resolve,x="win32"===i["c"]?_.relative:w.relative,O="win32"===i["c"]?_.dirname:w.dirname,k="win32"===i["c"]?_.basename:w.basename,L="win32"===i["c"]?_.extname:w.extname,E="win32"===i["c"]?_.sep:w.sep},"32c3":function(e,t,n){"use strict";var i;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var o=n("e142").codes,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function c(e){return e.setHeader&&"function"===typeof e.abort}function u(e,t,o,s){s=r(s);var l=!1;e.on("close",(function(){l=!0})),void 0===i&&(i=n("ddda")),i(e,{readable:t,writable:o},(function(e){if(e)return s(e);l=!0,s()}));var u=!1;return function(t){if(!l&&!u)return u=!0,c(e)?e.abort():"function"===typeof e.destroy?e.destroy():void s(t||new a("pipe"))}}function h(e){e()}function d(e,t){return e.pipe(t)}function f(e){return e.length?"function"!==typeof e[e.length-1]?l:e.pop():l}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i,r=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new s("streams");var o=t.map((function(e,n){var s=n<t.length-1,a=n>0;return u(e,s,a,(function(e){i||(i=e),e&&o.forEach(h),s||(o.forEach(h),r(i))}))}));return t.reduce(d)}e.exports=p},"32cc":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:function(){return n.e("chunk-2d0c0a09").then(n.bind(null,"431e"))}})},"32f2":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));class i{constructor(e,t,n){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|n}static compare(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId}}class r{constructor(e,t,n){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.color=n,this._colorZone=null}static compare(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}setColorZone(e){this._colorZone=e}getColorZones(){return this._colorZone}}class o{constructor(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=[]}getId2Color(){return this._id2Color}setZones(e){this._zones=e,this._zones.sort(r.compare)}setLineHeight(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)}setPixelRatio(e){this._pixelRatio=e,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)}resolveColorZones(){const e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),n=Math.floor(this.getCanvasHeight()),r=Math.floor(this._outerHeight),o=n/r,s=Math.floor(4*this._pixelRatio/2);let a=[];for(let l=0,c=this._zones.length;l<c;l++){const r=this._zones[l];if(!e){const e=r.getColorZones();if(e){a.push(e);continue}}const c=Math.floor(o*this._getVerticalOffsetForLine(r.startLineNumber)),u=Math.floor(o*(this._getVerticalOffsetForLine(r.endLineNumber)+t));let h=Math.floor((c+u)/2),d=u-h;d<s&&(d=s),h-d<0&&(h=d),h+d>n&&(h=n-d);const f=r.color;let p=this._color2Id[f];p||(p=++this._lastAssignedId,this._color2Id[f]=p,this._id2Color[p]=f);const g=new i(h-d,h+d,p);r.setColorZone(g),a.push(g)}return this._colorZonesInvalid=!1,a.sort(i.compare),a}}},3301:function(e,t,n){"use strict";const{Buffer:i}=n("1c35"),r=Symbol.for("BufferList");function o(e){if(!(this instanceof o))return new o(e);o._init.call(this,e)}o._init=function(e){Object.defineProperty(this,r,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)},o.prototype._new=function(e){return new o(e)},o.prototype._offset=function(e){if(0===e)return[0,0];let t=0;for(let n=0;n<this._bufs.length;n++){const i=t+this._bufs[n].length;if(e<i||n===this._bufs.length-1)return[n,e-t];t=i}},o.prototype._reverseOffset=function(e){const t=e[0];let n=e[1];for(let i=0;i<t;i++)n+=this._bufs[i].length;return n},o.prototype.get=function(e){if(e>this.length||e<0)return;const t=this._offset(e);return this._bufs[t[0]][t[1]]},o.prototype.slice=function(e,t){return"number"===typeof e&&e<0&&(e+=this.length),"number"===typeof t&&t<0&&(t+=this.length),this.copy(null,0,e,t)},o.prototype.copy=function(e,t,n,r){if(("number"!==typeof n||n<0)&&(n=0),("number"!==typeof r||r>this.length)&&(r=this.length),n>=this.length)return e||i.alloc(0);if(r<=0)return e||i.alloc(0);const o=!!e,s=this._offset(n),a=r-n;let l=a,c=o&&t||0,u=s[1];if(0===n&&r===this.length){if(!o)return 1===this._bufs.length?this._bufs[0]:i.concat(this._bufs,this.length);for(let t=0;t<this._bufs.length;t++)this._bufs[t].copy(e,c),c+=this._bufs[t].length;return e}if(l<=this._bufs[s[0]].length-u)return o?this._bufs[s[0]].copy(e,t,u,u+l):this._bufs[s[0]].slice(u,u+l);o||(e=i.allocUnsafe(a));for(let i=s[0];i<this._bufs.length;i++){const t=this._bufs[i].length-u;if(!(l>t)){this._bufs[i].copy(e,c,u,u+l),c+=t;break}this._bufs[i].copy(e,c,u),c+=t,l-=t,u&&(u=0)}return e.length>c?e.slice(0,c):e},o.prototype.shallowSlice=function(e,t){if(e=e||0,t="number"!==typeof t?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();const n=this._offset(e),i=this._offset(t),r=this._bufs.slice(n[0],i[0]+1);return 0===i[1]?r.pop():r[r.length-1]=r[r.length-1].slice(0,i[1]),0!==n[1]&&(r[0]=r[0].slice(n[1])),this._new(r)},o.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},o.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;while(this._bufs.length){if(!(e>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},o.prototype.duplicate=function(){const e=this._new();for(let t=0;t<this._bufs.length;t++)e.append(this._bufs[t]);return e},o.prototype.append=function(e){if(null==e)return this;if(e.buffer)this._appendBuffer(i.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let t=0;t<e.length;t++)this.append(e[t]);else if(this._isBufferList(e))for(let t=0;t<e._bufs.length;t++)this.append(e._bufs[t]);else"number"===typeof e&&(e=e.toString()),this._appendBuffer(i.from(e));return this},o.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length},o.prototype.indexOf=function(e,t,n){if(void 0===n&&"string"===typeof t&&(n=t,t=void 0),"function"===typeof e||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if("number"===typeof e?e=i.from([e]):"string"===typeof e?e=i.from(e,n):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=i.from(e.buffer,e.byteOffset,e.byteLength):i.isBuffer(e)||(e=i.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),0===e.length)return t>this.length?this.length:t;const r=this._offset(t);let o=r[0],s=r[1];for(;o<this._bufs.length;o++){const t=this._bufs[o];while(s<t.length){const n=t.length-s;if(n>=e.length){const n=t.indexOf(e,s);if(-1!==n)return this._reverseOffset([o,n]);s=t.length-e.length+1}else{const t=this._reverseOffset([o,s]);if(this._match(t,e))return t;s++}}s=0}return-1},o.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let n=0;n<t.length;n++)if(this.get(e+n)!==t[n])return!1;return!0},function(){const e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(const t in e)(function(t){null===e[t]?o.prototype[t]=function(e,n){return this.slice(e,e+n)[t](0,n)}:o.prototype[t]=function(n=0){return this.slice(n,n+e[t])[t](0)}})(t)}(),o.prototype._isBufferList=function(e){return e instanceof o||o.isBufferList(e)},o.isBufferList=function(e){return null!=e&&e[r]},e.exports=o},3323:function(e,t,n){"use strict";n.r(t),n.d(t,"StandaloneGotoLineQuickAccessProvider",(function(){return y})),n.d(t,"GotoLineAction",(function(){return _}));var i=n("dff7"),r=n("a666"),o=n("1fe0"),s=n("b055");class a extends o["a"]{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){const t=Object(i["a"])("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,r["a"].None}provideWithTextEditor(e,t,n){const i=e.editor,o=new r["b"];o.add(t.onDidAccept(n=>{const[r]=t.selectedItems;if(r){if(!this.isValidLineNumber(i,r.lineNumber))return;this.gotoLocation(e,{range:this.toRange(r.lineNumber,r.column),keyMods:t.keyMods,preserveFocus:n.inBackground}),n.inBackground||t.hide()}}));const l=()=>{const e=this.parsePosition(i,t.value.trim().substr(a.PREFIX.length)),n=this.getPickLabel(i,e.lineNumber,e.column);if(t.items=[{lineNumber:e.lineNumber,column:e.column,label:n}],t.ariaLabel=n,!this.isValidLineNumber(i,e.lineNumber))return void this.clearDecorations(i);const r=this.toRange(e.lineNumber,e.column);i.revealRangeInCenter(r,0),this.addDecorations(i,r)};l(),o.add(t.onDidChangeValue(()=>l()));const c=Object(s["a"])(i);if(c){const e=c.getOptions(),t=e.get(58);2===t.renderType&&(c.updateOptions({lineNumbers:"on"}),o.add(Object(r["i"])(()=>c.updateOptions({lineNumbers:"relative"}))))}return o}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){const n=t.split(/,|:|#/).map(e=>parseInt(e,10)).filter(e=>!isNaN(e)),i=this.lineCount(e)+1;return{lineNumber:n[0]>0?n[0]:i+n[0],column:n[1]}}getPickLabel(e,t,n){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,n)?Object(i["a"])("gotoLineColumnLabel","Go to line {0} and character {1}.",t,n):Object(i["a"])("gotoLineLabel","Go to line {0}.",t);const r=e.getPosition()||{lineNumber:1,column:1},o=this.lineCount(e);return o>1?Object(i["a"])("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",r.lineNumber,r.column,o):Object(i["a"])("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",r.lineNumber,r.column)}isValidLineNumber(e,t){return!(!t||"number"!==typeof t)&&(t>0&&t<=this.lineCount(e))}isValidColumn(e,t,n){if(!n||"number"!==typeof n)return!1;const i=this.getModel(e);if(!i)return!1;const r={lineNumber:t,column:n};return i.validatePosition(r).equals(r)}lineCount(e){var t,n;return null!==(n=null===(t=this.getModel(e))||void 0===t?void 0:t.getLineCount())&&void 0!==n?n:0}}a.PREFIX=":";var l=n("89cd"),c=n("2f1e"),u=n("5717"),h=n("ef8e"),d=n("03d9"),f=n("308f"),p=n("b2cc"),g=n("c101"),m=n("66bd"),v=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},b=function(e,t){return function(n,i){t(n,i,e)}};let y=class extends a{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=f["c"].None}get activeTextEditorControl(){return Object(h["o"])(this.editorService.getFocusedCodeEditor())}};y=v([b(0,u["a"])],y),l["a"].as(c["b"].Quickaccess).registerQuickAccessProvider({ctor:y,prefix:y.PREFIX,helpEntries:[{description:d["b"].gotoLineActionLabel,needsEditor:!0}]});class _ extends p["b"]{constructor(){super({id:"editor.action.gotoLine",label:d["b"].gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:g["a"].focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(m["a"]).quickAccess.show(y.PREFIX)}}Object(p["j"])(_)},"333a":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return n.e("chunk-2d0e6553").then(n.bind(null,"97fe"))}})},3352:function(e,t,n){"use strict";var i,r;n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"f",(function(){return a})),n.d(t,"a",(function(){return l})),function(e){e[e["Left"]=1]="Left",e[e["Center"]=2]="Center",e[e["Right"]=4]="Right",e[e["Full"]=7]="Full"}(i||(i={})),function(e){e[e["Inline"]=1]="Inline",e[e["Gutter"]=2]="Gutter"}(r||(r={}));class o{constructor(e){this._textModelResolvedOptionsBrand=void 0,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)}equals(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace}createChangeEvent(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}}}class s{constructor(e,t){this._findMatchBrand=void 0,this.range=e,this.matches=t}}class a{constructor(e,t,n,i,r,o){this.identifier=e,this.range=t,this.text=n,this.forceMoveMarkers=i,this.isAutoWhitespaceEdit=r,this._isTracked=o}}class l{constructor(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}},"335d":function(e,t,n){},"338e":function(e,t,n){"use strict";n.d(t,"f",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return s})),n.d(t,"i",(function(){return a})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return h}));class i{constructor(){this.changeType=1}}class r{constructor(e,t,n,i,r){this.ownerId=e,this.lineNumber=t,this.column=n,this.options=i,this.order=r}static applyInjectedText(e,t){if(!t||0===t.length)return e;let n="",i=0;for(const r of t)n+=e.substring(i,r.column-1),i=r.column-1,n+=r.options.content;return n+=e.substring(i),n}static fromDecorations(e){const t=[];for(const n of e)n.options.before&&n.options.before.content.length>0&&t.push(new r(n.ownerId,n.range.startLineNumber,n.range.startColumn,n.options.before,0)),n.options.after&&n.options.after.content.length>0&&t.push(new r(n.ownerId,n.range.endLineNumber,n.range.endColumn,n.options.after,1));return t.sort((e,t)=>e.lineNumber===t.lineNumber?e.column===t.column?e.order-t.order:e.column-t.column:e.lineNumber-t.lineNumber),t}}class o{constructor(e,t,n){this.changeType=2,this.lineNumber=e,this.detail=t,this.injectedText=n}}class s{constructor(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}class a{constructor(e,t,n,i){this.changeType=4,this.injectedTexts=i,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}class l{constructor(){this.changeType=5}}class c{constructor(e,t,n,i){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=i,this.resultingSelection=null}containsEvent(e){for(let t=0,n=this.changes.length;t<n;t++){const n=this.changes[t];if(n.changeType===e)return!0}return!1}static merge(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.versionId,r=e.isUndoing||t.isUndoing,o=e.isRedoing||t.isRedoing;return new c(n,i,r,o)}}class u{constructor(e){this.changes=e}}class h{constructor(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}merge(e){const t=c.merge(this.rawContentChangedEvent,e.rawContentChangedEvent),n=h._mergeChangeEvents(this.contentChangedEvent,e.contentChangedEvent);return new h(t,n)}static _mergeChangeEvents(e,t){const n=[].concat(e.changes).concat(t.changes),i=t.eol,r=t.versionId,o=e.isUndoing||t.isUndoing,s=e.isRedoing||t.isRedoing,a=e.isFlush||t.isFlush;return{changes:n,eol:i,versionId:r,isUndoing:o,isRedoing:s,isFlush:a}}}},3397:function(e,t,n){var i=n("7a41");e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},"33f9":function(e,t,n){self["MonacoEnvironment"]=function(e){function t(e){return e.replace(/\/$/,"")}return{globalAPI:!1,getWorkerUrl:function(i,r){var o=n.p,s=(o?t(o)+"/":"")+e[r];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(s)){var a=String(window.location),l=a.substr(0,a.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(s.substring(0,l.length)!==l){/^(\/\/)/.test(s)&&(s=window.location.protocol+s);var c="/*"+r+'*/importScripts("'+s+'");',u=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(u)}}return s}}}({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"}),n("4816"),n("3765"),n("6e4e"),n("2935"),n("c36f"),n("0b11"),n("77a4"),n("db2d"),n("9f4d"),n("7c3e"),n("d585"),n("e516"),n("fd11"),n("891c"),n("a106"),n("7605"),n("6df4"),n("7082"),n("958f"),n("3323"),n("f187"),n("1f84"),n("aee8"),n("a222"),n("1af3"),n("bc61"),n("6e62"),n("2e66"),n("8090"),n("747f"),n("7eb7"),n("d844"),n("f17c"),n("5b02"),n("2e4b"),n("6c8c"),n("8452"),n("e2c2"),n("43ad"),n("d741"),n("b574"),n("7a9e"),n("bd50"),n("93ba"),n("6daf"),n("87a3"),n("23ec"),n("5ed2"),n("b3b2"),n("2d47"),e.exports=n("f33e"),n("09d1"),n("db7a"),n("38e9"),n("962f"),n("d1c2"),n("91d3"),n("0292"),n("8eb6"),n("82a1"),n("a771"),n("13e8"),n("f41d"),n("f570"),n("f5ba"),n("4af6"),n("a8f5"),n("9d48"),n("23f2"),n("2dec"),n("d282"),n("f9ad"),n("77db"),n("8457"),n("7367"),n("cd01"),n("93b9"),n("7257"),n("a79b"),n("daaa"),n("0ef9"),n("16f5"),n("38f6"),n("1aa7"),n("66f1"),n("2e5e"),n("4058"),n("6640"),n("fdc0"),n("c583"),n("8d5c"),n("ea53"),n("abca"),n("b12b"),n("a0a2"),n("1fa1"),n("cb70"),n("2652"),n("8f6a"),n("c286"),n("88b6"),n("4da7"),n("32cc"),n("6a38"),n("4220"),n("a48d"),n("c8aa"),n("8a3f"),n("5d08"),n("19bd"),n("1bd1"),n("c663"),n("73d3"),n("333a"),n("199a"),n("d65c"),n("e8cb"),n("c3d4"),n("b9f8"),n("2d19"),n("d2ce"),n("0542"),n("9f5f"),n("10eb"),n("cf78"),n("9eb0"),n("0447"),n("1389")},3409:function(e,t,n){t.parser=n("1fad").parser,t.generate=n("7f0f"),t.writeToStream=n("7135")},3410:function(e,t,n){var i=n("23e7"),r=n("d039"),o=n("7b0b"),s=n("e163"),a=n("e177"),l=r((function(){s(1)}));i({target:"Object",stat:!0,forced:l,sham:!a},{getPrototypeOf:function(e){return s(o(e))}})},"342d":function(e,t,n){"use strict";n.d(t,"b",(function(){return L})),n.d(t,"c",(function(){return E})),n.d(t,"d",(function(){return D})),n.d(t,"a",(function(){return I}));var i=n("9ab4"),r=n("cbe5"),o=n("20c8"),s=n("401b"),a=o["a"].CMD,l=[[],[],[]],c=Math.sqrt,u=Math.atan2;function h(e,t){if(t){var n,i,r,o,h,d,f=e.data,p=e.len(),g=a.M,m=a.C,v=a.L,b=a.R,y=a.A,_=a.Q;for(r=0,o=0;r<p;){switch(n=f[r++],o=r,i=0,n){case g:i=1;break;case v:i=1;break;case m:i=3;break;case _:i=2;break;case y:var w=t[4],C=t[5],S=c(t[0]*t[0]+t[1]*t[1]),x=c(t[2]*t[2]+t[3]*t[3]),O=u(-t[1]/x,t[0]/S);f[r]*=S,f[r++]+=w,f[r]*=x,f[r++]+=C,f[r++]*=S,f[r++]*=x,f[r++]+=O,f[r++]+=O,r+=2,o=r;break;case b:d[0]=f[r++],d[1]=f[r++],Object(s["applyTransform"])(d,d,t),f[o++]=d[0],f[o++]=d[1],d[0]+=f[r++],d[1]+=f[r++],Object(s["applyTransform"])(d,d,t),f[o++]=d[0],f[o++]=d[1]}for(h=0;h<i;h++){var k=l[h];k[0]=f[r++],k[1]=f[r++],Object(s["applyTransform"])(k,k,t),f[o++]=k[0],f[o++]=k[1]}}e.increaseVersion()}}var d=n("6d8b"),f=Math.sqrt,p=Math.sin,g=Math.cos,m=Math.PI;function v(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function b(e,t){return(e[0]*t[0]+e[1]*t[1])/(v(e)*v(t))}function y(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(b(e,t))}function _(e,t,n,i,r,o,s,a,l,c,u){var h=l*(m/180),d=g(h)*(e-n)/2+p(h)*(t-i)/2,v=-1*p(h)*(e-n)/2+g(h)*(t-i)/2,_=d*d/(s*s)+v*v/(a*a);_>1&&(s*=f(_),a*=f(_));var w=(r===o?-1:1)*f((s*s*(a*a)-s*s*(v*v)-a*a*(d*d))/(s*s*(v*v)+a*a*(d*d)))||0,C=w*s*v/a,S=w*-a*d/s,x=(e+n)/2+g(h)*C-p(h)*S,O=(t+i)/2+p(h)*C+g(h)*S,k=y([1,0],[(d-C)/s,(v-S)/a]),L=[(d-C)/s,(v-S)/a],E=[(-1*d-C)/s,(-1*v-S)/a],D=y(L,E);if(b(L,E)<=-1&&(D=m),b(L,E)>=1&&(D=0),D<0){var I=Math.round(D/m*1e6)/1e6;D=2*m+I%2*m}u.addData(c,x,O,s,a,k,D,h,o)}var w=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,C=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function S(e){var t=new o["a"];if(!e)return t;var n,i=0,r=0,s=i,a=r,l=o["a"].CMD,c=e.match(w);if(!c)return t;for(var u=0;u<c.length;u++){for(var h=c[u],d=h.charAt(0),f=void 0,p=h.match(C)||[],g=p.length,m=0;m<g;m++)p[m]=parseFloat(p[m]);var v=0;while(v<g){var b=void 0,y=void 0,S=void 0,x=void 0,O=void 0,k=void 0,L=void 0,E=i,D=r,I=void 0,M=void 0;switch(d){case"l":i+=p[v++],r+=p[v++],f=l.L,t.addData(f,i,r);break;case"L":i=p[v++],r=p[v++],f=l.L,t.addData(f,i,r);break;case"m":i+=p[v++],r+=p[v++],f=l.M,t.addData(f,i,r),s=i,a=r,d="l";break;case"M":i=p[v++],r=p[v++],f=l.M,t.addData(f,i,r),s=i,a=r,d="L";break;case"h":i+=p[v++],f=l.L,t.addData(f,i,r);break;case"H":i=p[v++],f=l.L,t.addData(f,i,r);break;case"v":r+=p[v++],f=l.L,t.addData(f,i,r);break;case"V":r=p[v++],f=l.L,t.addData(f,i,r);break;case"C":f=l.C,t.addData(f,p[v++],p[v++],p[v++],p[v++],p[v++],p[v++]),i=p[v-2],r=p[v-1];break;case"c":f=l.C,t.addData(f,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r,p[v++]+i,p[v++]+r),i+=p[v-2],r+=p[v-1];break;case"S":b=i,y=r,I=t.len(),M=t.data,n===l.C&&(b+=i-M[I-4],y+=r-M[I-3]),f=l.C,E=p[v++],D=p[v++],i=p[v++],r=p[v++],t.addData(f,b,y,E,D,i,r);break;case"s":b=i,y=r,I=t.len(),M=t.data,n===l.C&&(b+=i-M[I-4],y+=r-M[I-3]),f=l.C,E=i+p[v++],D=r+p[v++],i+=p[v++],r+=p[v++],t.addData(f,b,y,E,D,i,r);break;case"Q":E=p[v++],D=p[v++],i=p[v++],r=p[v++],f=l.Q,t.addData(f,E,D,i,r);break;case"q":E=p[v++]+i,D=p[v++]+r,i+=p[v++],r+=p[v++],f=l.Q,t.addData(f,E,D,i,r);break;case"T":b=i,y=r,I=t.len(),M=t.data,n===l.Q&&(b+=i-M[I-4],y+=r-M[I-3]),i=p[v++],r=p[v++],f=l.Q,t.addData(f,b,y,i,r);break;case"t":b=i,y=r,I=t.len(),M=t.data,n===l.Q&&(b+=i-M[I-4],y+=r-M[I-3]),i+=p[v++],r+=p[v++],f=l.Q,t.addData(f,b,y,i,r);break;case"A":S=p[v++],x=p[v++],O=p[v++],k=p[v++],L=p[v++],E=i,D=r,i=p[v++],r=p[v++],f=l.A,_(E,D,i,r,k,L,S,x,O,f,t);break;case"a":S=p[v++],x=p[v++],O=p[v++],k=p[v++],L=p[v++],E=i,D=r,i+=p[v++],r+=p[v++],f=l.A,_(E,D,i,r,k,L,S,x,O,f,t);break}}"z"!==d&&"Z"!==d||(f=l.Z,t.addData(f),i=s,r=a),n=f}return t.toStatic(),t}var x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i["a"])(t,e),t.prototype.applyTransform=function(e){},t}(r["b"]);function O(e){return null!=e.setData}function k(e,t){var n=S(e),i=Object(d["extend"])({},t);return i.buildPath=function(e){if(O(e)){e.setData(n.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{t=e;n.rebuildPath(t,1)}},i.applyTransform=function(e){h(n,e),this.dirtyShape()},i}function L(e,t){return new x(k(e,t))}function E(e,t){var n=k(e,t),r=function(e){function t(t){var i=e.call(this,t)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return Object(i["a"])(t,e),t}(x);return r}function D(e,t){for(var n=[],i=e.length,o=0;o<i;o++){var s=e[o];n.push(s.getUpdatedPathProxy(!0))}var a=new r["b"](t);return a.createPathProxy(),a.buildPath=function(e){if(O(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},a}function I(e,t){t=t||{};var n=new r["b"];return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?h(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}},"342f":function(e,t,n){var i=n("d066");e.exports=i("navigator","userAgent")||""},3437:function(e,t,n){"use strict";function i(e){return isFinite(e)}function r(e,t,n){var r=null==t.x?0:t.x,o=null==t.x2?1:t.x2,s=null==t.y?0:t.y,a=null==t.y2?0:t.y2;t.global||(r=r*n.width+n.x,o=o*n.width+n.x,s=s*n.height+n.y,a=a*n.height+n.y),r=i(r)?r:0,o=i(o)?o:1,s=i(s)?s:0,a=i(a)?a:0;var l=e.createLinearGradient(r,s,o,a);return l}function o(e,t,n){var r=n.width,o=n.height,s=Math.min(r,o),a=null==t.x?.5:t.x,l=null==t.y?.5:t.y,c=null==t.r?.5:t.r;t.global||(a=a*r+n.x,l=l*o+n.y,c*=s),a=i(a)?a:.5,l=i(l)?l:.5,c=c>=0&&i(c)?c:.5;var u=e.createRadialGradient(a,l,0,a,l,c);return u}function s(e,t,n){for(var i="radial"===t.type?o(e,t,n):r(e,t,n),s=t.colorStops,a=0;a<s.length;a++)i.addColorStop(s[a].offset,s[a].color);return i}function a(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function l(e){return parseInt(e,10)}function c(e,t,n){var i=["width","height"][t],r=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],s=["paddingRight","paddingBottom"][t];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var a=document.defaultView.getComputedStyle(e);return(e[r]||l(a[i])||l(e.style[i]))-(l(a[o])||0)-(l(a[s])||0)|0}n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return c}))},"34e3":function(e,t,n){"use strict";(function(t){var i;function r(e,t,n){return t=o(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=s(e,"string");return"symbol"===typeof t?t:String(t)}function s(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var a=n("d9e1"),l=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),h=Symbol("ended"),d=Symbol("lastPromise"),f=Symbol("handlePromise"),p=Symbol("stream");function g(e,t){return{value:e,done:t}}function m(e){var t=e[l];if(null!==t){var n=e[p].read();null!==n&&(e[d]=null,e[l]=null,e[c]=null,t(g(n,!1)))}}function v(e){t.nextTick(m,e)}function b(e,t){return function(n,i){e.then((function(){t[h]?n(g(void 0,!0)):t[f](n,i)}),i)}}var y=Object.getPrototypeOf((function(){})),_=Object.setPrototypeOf((i={get stream(){return this[p]},next:function(){var e=this,n=this[u];if(null!==n)return Promise.reject(n);if(this[h])return Promise.resolve(g(void 0,!0));if(this[p].destroyed)return new Promise((function(n,i){t.nextTick((function(){e[u]?i(e[u]):n(g(void 0,!0))}))}));var i,r=this[d];if(r)i=new Promise(b(r,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(g(o,!1));i=new Promise(this[f])}return this[d]=i,i}},r(i,Symbol.asyncIterator,(function(){return this})),r(i,"return",(function(){var e=this;return new Promise((function(t,n){e[p].destroy(null,(function(e){e?n(e):t(g(void 0,!0))}))}))})),i),y),w=function(e){var t,n=Object.create(_,(t={},r(t,p,{value:e,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,u,{value:null,writable:!0}),r(t,h,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var i=n[p].read();i?(n[d]=null,n[l]=null,n[c]=null,e(g(i,!1))):(n[l]=e,n[c]=t)},writable:!0}),t));return n[d]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[c];return null!==t&&(n[d]=null,n[l]=null,n[c]=null,t(e)),void(n[u]=e)}var i=n[l];null!==i&&(n[d]=null,n[l]=null,n[c]=null,i(g(void 0,!0))),n[h]=!0})),e.on("readable",v.bind(null,n)),n};e.exports=w}).call(this,n("4362"))},"34eb":function(e,t,n){(function(i){function r(){if("undefined"!==typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,r=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(i++,"%c"===e&&(r=i))}),t.splice(r,0,n)}function s(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(n){}}function a(){let e;try{e=t.storage.getItem("debug")}catch(n){}return!e&&"undefined"!==typeof i&&"env"in i&&(e=Object({NODE_ENV:"production",VUE_APP_BAI_DU_AK:"nAtaBg9FYzav6c8P9rF9qzsWZfT8O0PD",VUE_APP_BASE_API:"/prod-api",VUE_APP_MQTT_SERVER_URL:"",VUE_APP_TITLE:"FastBee物联网系统",VUE_APP_XIN_ZHI_KEY:"SBh45_yy21FU5ErV_",BASE_URL:"/"}).DEBUG),e}function l(){try{return localStorage}catch(e){}}t.formatArgs=o,t.save=s,t.load=a,t.useColors=r,t.storage=l(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n("dc90")(t);const{formatters:c}=e.exports;c.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}).call(this,n("4362"))},3502:function(e,t,n){"use strict";var i=n("33f9");n.o(i,"Emitter")&&n.d(t,"Emitter",(function(){return i["Emitter"]})),n.o(i,"Range")&&n.d(t,"Range",(function(){return i["Range"]})),n.o(i,"Uri")&&n.d(t,"Uri",(function(){return i["Uri"]})),n.o(i,"editor")&&n.d(t,"editor",(function(){return i["editor"]})),n.o(i,"languages")&&n.d(t,"languages",(function(){return i["languages"]}))},3511:function(e,t){var n=TypeError,i=9007199254740991;e.exports=function(e){if(e>i)throw n("Maximum allowed index exceeded");return e}},"351f":function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));n("b329");var i=n("dff7"),r=n("5fe7"),o=n("a666"),s=n("3813"),a=n("6a89"),l=n("b2cc"),c=n("4fc3"),u=n("b7d0"),h=n("303e"),d=n("9c41"),f=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},p=function(e,t){return function(n,i){t(n,i,e)}};let g=class e{constructor(t,n){this._messageWidget=new o["d"],this._messageListeners=new o["b"],this._editor=t,this._visible=e.MESSAGE_VISIBLE.bindTo(n),this._editorListener=this._editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit())}static get(t){return t.getContribution(e.ID)}dispose(){this._editorListener.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let n;Object(s["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(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new r["g"](()=>this.closeMessage(),3e3)),this._messageListeners.add(this._editor.onMouseMove(e=>{e.target.position&&(n?n.containsPosition(e.target.position)||this.closeMessage():n=new a["a"](t.lineNumber-3,1,e.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(v.fadeOut(this._messageWidget.value))}_onDidAttemptReadOnlyEdit(){this._editor.hasModel()&&this.showMessage(i["a"]("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())}};g.ID="editor.contrib.messageController",g.MESSAGE_VISIBLE=new c["c"]("messageVisible",!1,i["a"]("messageVisible","Whether the editor is currently showing an inline message")),g=f([p(1,c["b"])],g);const m=l["c"].bindToContribution(g.get);Object(l["k"])(new m({id:"leaveEditorMessage",precondition:g.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class v{constructor(e,{lineNumber:t,column:n},i){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:n-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");const r=document.createElement("div");r.classList.add("anchor","top"),this._domNode.appendChild(r);const o=document.createElement("div");o.classList.add("message"),o.textContent=i,this._domNode.appendChild(o);const s=document.createElement("div");s.classList.add("anchor","below"),this._domNode.appendChild(s),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){let t;const n=()=>{e.dispose(),clearTimeout(t),e.getDomNode().removeEventListener("animationend",n)};return t=setTimeout(n,110),e.getDomNode().addEventListener("animationend",n),e.getDomNode().classList.add("fadeOut"),{dispose:n}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2]}}afterRender(e){this._domNode.classList.toggle("below",2===e)}}Object(l["l"])(g.ID,g),Object(u["f"])((e,t)=>{const n=e.getColor(h["qb"]);if(n){let i=e.type===d["a"].HIGH_CONTRAST?2:1;t.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor.below { border-top-color: ${n}; }`),t.addRule(`.monaco-editor .monaco-editor-overlaymessage .anchor.top { border-bottom-color: ${n}; }`),t.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { border: ${i}px solid ${n}; }`)}const i=e.getColor(h["pb"]);i&&t.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { background-color: ${i}; }`);const r=e.getColor(h["rb"]);r&&t.addRule(`.monaco-editor .monaco-editor-overlaymessage .message { color: ${r}; }`)})},3529:function(e,t,n){"use strict";var i=n("23e7"),r=n("c65b"),o=n("59ed"),s=n("f069"),a=n("e667"),l=n("2266"),c=n("5eed");i({target:"Promise",stat:!0,forced:c},{race:function(e){var t=this,n=s.f(t),i=n.reject,c=a((function(){var s=o(t.resolve);l(e,(function(e){r(s,t,e).then(n.resolve,i)}))}));return c.error&&i(c.value),n.promise}})},"357d":function(e,t,n){},"35a1":function(e,t,n){var i=n("f5df"),r=n("dc4a"),o=n("7234"),s=n("3f8c"),a=n("b622"),l=a("iterator");e.exports=function(e){if(!o(e))return r(e,l)||r(e,"@@iterator")||s[i(e)]}},3648:function(e,t,n){},3742:function(e,t,n){"use strict";function i(e){return!e||"string"!==typeof e||0===e.trim().length}n.d(t,"D",(function(){return i})),n.d(t,"w",(function(){return o})),n.d(t,"t",(function(){return s})),n.d(t,"u",(function(){return a})),n.d(t,"V",(function(){return l})),n.d(t,"K",(function(){return c})),n.d(t,"P",(function(){return u})),n.d(t,"p",(function(){return h})),n.d(t,"U",(function(){return d})),n.d(t,"q",(function(){return f})),n.d(t,"O",(function(){return p})),n.d(t,"N",(function(){return g})),n.d(t,"R",(function(){return m})),n.d(t,"v",(function(){return v})),n.d(t,"y",(function(){return b})),n.d(t,"J",(function(){return y})),n.d(t,"f",(function(){return _})),n.d(t,"h",(function(){return w})),n.d(t,"g",(function(){return C})),n.d(t,"i",(function(){return S})),n.d(t,"H",(function(){return x})),n.d(t,"I",(function(){return O})),n.d(t,"s",(function(){return L})),n.d(t,"S",(function(){return D})),n.d(t,"d",(function(){return I})),n.d(t,"e",(function(){return M})),n.d(t,"F",(function(){return T})),n.d(t,"G",(function(){return A})),n.d(t,"j",(function(){return N})),n.d(t,"A",(function(){return P})),n.d(t,"L",(function(){return R})),n.d(t,"M",(function(){return F})),n.d(t,"r",(function(){return B})),n.d(t,"m",(function(){return V})),n.d(t,"k",(function(){return H})),n.d(t,"B",(function(){return q})),n.d(t,"a",(function(){return $})),n.d(t,"n",(function(){return K})),n.d(t,"l",(function(){return G})),n.d(t,"E",(function(){return Y})),n.d(t,"C",(function(){return Z})),n.d(t,"b",(function(){return X})),n.d(t,"T",(function(){return Q})),n.d(t,"o",(function(){return J})),n.d(t,"Q",(function(){return ee})),n.d(t,"x",(function(){return te})),n.d(t,"c",(function(){return ne})),n.d(t,"z",(function(){return oe}));const r=/{(\d+)}/g;function o(e,...t){return 0===t.length?e:e.replace(r,(function(e,n){const i=parseInt(n,10);return isNaN(i)||i<0||i>=t.length?e:t[i]}))}function s(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function a(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function l(e,t=" "){const n=c(e,t);return u(n,t)}function c(e,t){if(!e||!t)return e;const n=t.length;if(0===n||0===e.length)return e;let i=0;while(e.indexOf(t,i)===i)i+=n;return e.substring(i)}function u(e,t){if(!e||!t)return e;const n=t.length,i=e.length;if(0===n||0===i)return e;let r=i,o=-1;while(1){if(o=e.lastIndexOf(t,r-1),-1===o||o+n!==r)break;if(0===o)return"";r=o}return e.substring(0,r)}function h(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function d(e){return e.replace(/\*/g,"")}function f(e,t,n={}){if(!e)throw new Error("Cannot create regex from empty string");t||(e=a(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));let i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),n.unicode&&(i+="u"),new RegExp(e,i)}function p(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;const t=e.exec("");return!(!t||0!==e.lastIndex)}function g(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function m(e){return e.split(/\r\n|\r|\n/)}function v(e){for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function b(e,t=0,n=e.length){for(let i=t;i<n;i++){const n=e.charCodeAt(i);if(32!==n&&9!==n)return e.substring(t,i)}return e.substring(t,n)}function y(e,t=e.length-1){for(let n=t;n>=0;n--){const t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1}function _(e,t){return e<t?-1:e>t?1:0}function w(e,t,n=0,i=e.length,r=0,o=t.length){for(;n<i&&r<o;n++,r++){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(i<o)return-1;if(i>o)return 1}const s=i-n,a=o-r;return s<a?-1:s>a?1:0}function C(e,t){return S(e,t,0,e.length,0,t.length)}function S(e,t,n=0,i=e.length,r=0,o=t.length){for(;n<i&&r<o;n++,r++){let s=e.charCodeAt(n),a=t.charCodeAt(r);if(s===a)continue;const l=s-a;if((32!==l||!O(a))&&(-32!==l||!O(s)))return x(s)&&x(a)?l:w(e.toLowerCase(),t.toLowerCase(),n,i,r,o)}const s=i-n,a=o-r;return s<a?-1:s>a?1:0}function x(e){return e>=97&&e<=122}function O(e){return e>=65&&e<=90}function k(e){return x(e)||O(e)}function L(e,t){return e.length===t.length&&E(e,t)}function E(e,t,n=e.length){for(let i=0;i<n;i++){const n=e.charCodeAt(i),r=t.charCodeAt(i);if(n!==r)if(k(n)&&k(r)){const e=Math.abs(n-r);if(0!==e&&32!==e)return!1}else if(String.fromCharCode(n).toLowerCase()!==String.fromCharCode(r).toLowerCase())return!1}return!0}function D(e,t){const n=t.length;return!(t.length>e.length)&&E(e,t,n)}function I(e,t){let n,i=Math.min(e.length,t.length);for(n=0;n<i;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return i}function M(e,t){let n,i=Math.min(e.length,t.length);const r=e.length-1,o=t.length-1;for(n=0;n<i;n++)if(e.charCodeAt(r-n)!==t.charCodeAt(o-n))return n;return i}function T(e){return 55296<=e&&e<=56319}function A(e){return 56320<=e&&e<=57343}function N(e,t){return t-56320+(e-55296<<10)+65536}function P(e,t,n){const i=e.charCodeAt(n);if(T(i)&&n+1<t){const t=e.charCodeAt(n+1);if(A(t))return N(i,t)}return i}function j(e,t){const n=e.charCodeAt(t-1);if(A(n)&&t>1){const i=e.charCodeAt(t-2);if(T(i))return N(i,n)}return n}function R(e,t){const n=ie.getInstance(),i=t,r=e.length,o=P(e,r,t);t+=o>=65536?2:1;let s=n.getGraphemeBreakType(o);while(t<r){const i=P(e,r,t),o=n.getGraphemeBreakType(i);if(ne(s,o))break;t+=i>=65536?2:1,s=o}return t-i}function F(e,t){const n=ie.getInstance(),i=t,r=j(e,t);t-=r>=65536?2:1;let o=n.getGraphemeBreakType(r);while(t>0){const i=j(e,t),r=n.getGraphemeBreakType(i);if(ne(r,o))break;t-=i>=65536?2:1,o=r}return i-t}function B(e){const t=e.byteLength,n=[];let i=0;while(i<t){const r=e[i];let o;if(o=r>=240&&i+3<t?(7&e[i++])<<18>>>0|(63&e[i++])<<12>>>0|(63&e[i++])<<6>>>0|(63&e[i++])<<0>>>0:r>=224&&i+2<t?(15&e[i++])<<12>>>0|(63&e[i++])<<6>>>0|(63&e[i++])<<0>>>0:r>=192&&i+1<t?(31&e[i++])<<6>>>0|(63&e[i++])<<0>>>0:e[i++],o>=0&&o<=55295||o>=57344&&o<=65535)n.push(String.fromCharCode(o));else if(o>=65536&&o<=1114111){const e=o-65536,t=55296+((1047552&e)>>>10),i=56320+((1023&e)>>>0);n.push(String.fromCharCode(t)),n.push(String.fromCharCode(i))}else n.push(String.fromCharCode(65533))}return n.join("")}const W=/(?:[\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 V(e){return W.test(e)}const z=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function H(e){return z.test(e)}const U=/^[\t\n\r\x20-\x7E]*$/;function q(e){return U.test(e)}const $=/[\u2028\u2029]/;function K(e){return $.test(e)}function G(e){for(let t=0,n=e.length;t<n;t++)if(Y(e.charCodeAt(t)))return!0;return!1}function Y(e){return e=+e,e>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function Z(e){return e>=127462&&e<=127487||8986===e||8987===e||9200===e||9203===e||e>=9728&&e<=10175||11088===e||11093===e||e>=127744&&e<=128591||e>=128640&&e<=128764||e>=128992&&e<=129003||e>=129280&&e<=129535||e>=129648&&e<=129750}const X=String.fromCharCode(65279);function Q(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function J(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}function ee(e){const t=26;return e%=2*t,e<t?String.fromCharCode(97+e):String.fromCharCode(65+e-t)}function te(e){const t=ie.getInstance();return t.getGraphemeBreakType(e)}function ne(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)))))))))}class ie{constructor(){this._data=re()}static getInstance(){return ie._INSTANCE||(ie._INSTANCE=new ie),ie._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const t=this._data,n=t.length/3;let i=1;while(i<=n)if(e<t[3*i])i*=2;else{if(!(e>t[3*i+1]))return t[3*i+2];i=2*i+1}return 0}}function re(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function oe(e,t){if(0===e)return 0;const n=se(e,t);if(void 0!==n)return n;const i=j(t,e);return e-=ae(i),e}function se(e,t){let n=j(t,e);e-=ae(n);while(le(n)||65039===n||8419===n){if(0===e)return;n=j(t,e),e-=ae(n)}if(Z(n)){if(e>=0){const n=j(t,e);8205===n&&(e-=ae(n))}return e}}function ae(e){return e>=65536?2:1}function le(e){return 127995<=e&&e<=127999}ie._INSTANCE=null},3765:function(e,t,n){"use strict";n.r(t),n.d(t,"SelectionAnchorSet",(function(){return p}));n("1754");var i=n("b2cc"),r=n("dff7"),o=n("c101"),s=n("8025"),a=n("fe45"),l=n("4fc3"),c=n("78bc"),u=n("3813"),h=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},d=function(e,t){return function(n,i){t(n,i,e)}},f=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const p=new l["c"]("selectionAnchorSet",!1);let g=class e{constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=p.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}static get(t){return t.getContribution(e.ID)}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition(),t=this.decorationId?[this.decorationId]:[],n=this.editor.deltaDecorations(t,[{range:s["a"].fromPositions(e,e),options:{description:"selection-anchor",stickiness:1,hoverMessage:(new c["a"]).appendText(Object(r["a"])("selectionAnchor","Selection Anchor")),className:"selection-anchor"}}]);this.decorationId=n[0],this.selectionAnchorSetContextKey.set(!!this.decorationId),Object(u["a"])(Object(r["a"])("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(s["a"].fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){this.decorationId&&(this.editor.deltaDecorations([this.decorationId],[]),this.decorationId=void 0,this.selectionAnchorSetContextKey.set(!1))}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};g.ID="editor.contrib.selectionAnchorController",g=h([d(1,l["b"])],g);class m extends i["b"]{constructor(){super({id:"editor.action.setSelectionAnchor",label:Object(r["a"])("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:o["a"].editorTextFocus,primary:Object(a["a"])(2089,2080),weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){const e=g.get(t);e.setSelectionAnchor()}))}}class v extends i["b"]{constructor(){super({id:"editor.action.goToSelectionAnchor",label:Object(r["a"])("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:p})}run(e,t){return f(this,void 0,void 0,(function*(){const e=g.get(t);e.goToSelectionAnchor()}))}}class b extends i["b"]{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:Object(r["a"])("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:p,kbOpts:{kbExpr:o["a"].editorTextFocus,primary:Object(a["a"])(2089,2089),weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){const e=g.get(t);e.selectFromAnchorToCursor()}))}}class y extends i["b"]{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:Object(r["a"])("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:p,kbOpts:{kbExpr:o["a"].editorTextFocus,primary:9,weight:100}})}run(e,t){return f(this,void 0,void 0,(function*(){const e=g.get(t);e.cancelSelectionAnchor()}))}}Object(i["l"])(g.ID,g),Object(i["j"])(m),Object(i["j"])(v),Object(i["j"])(b),Object(i["j"])(y)},"37e8":function(e,t,n){var i=n("83ab"),r=n("aed9"),o=n("9bf2"),s=n("825a"),a=n("fc6a"),l=n("df75");t.f=i&&!r?Object.defineProperties:function(e,t){s(e);var n,i=a(t),r=l(t),c=r.length,u=0;while(c>u)o.f(e,n=r[u++],i[n]);return e}},3803:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return a}));var i=n("0a0f");const r=Object(i["c"])("undoRedoService");class o{constructor(e,t){this.resource=e,this.elements=t}}class s{constructor(){this.id=s._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}s._ID=0,s.None=new s;class a{constructor(){this.id=a._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}a._ID=0,a.None=new a},3813:function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return f}));n("5029");var i=n("30db"),r=n("11f7");const o=2e4;let s,a,l,c,u;function h(e){s=document.createElement("div"),s.className="monaco-aria-container";const t=()=>{const e=document.createElement("div");return e.className="monaco-alert",e.setAttribute("role","alert"),e.setAttribute("aria-atomic","true"),s.appendChild(e),e};a=t(),l=t();const n=()=>{const e=document.createElement("div");return e.className="monaco-status",e.setAttribute("role","complementary"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),s.appendChild(e),e};c=n(),u=n(),e.appendChild(s)}function d(e){s&&(a.textContent!==e?(r["t"](l),p(a,e)):(r["t"](a),p(l,e)))}function f(e){s&&(i["f"]?d(e):c.textContent!==e?(r["t"](u),p(c,e)):(r["t"](c),p(u,e)))}function p(e,t){r["t"](e),t.length>o&&(t=t.substr(0,o)),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}},3835:function(e,t,n){"use strict";function i(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return a}));n("a4d3"),n("e01a"),n("d28b"),n("14d9"),n("d3b7"),n("3ca3"),n("ddb0");function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n["return"]&&(s=n["return"](),Object(s)!==s))return}finally{if(c)throw r}}return a}}var o=n("06c5");n("d9e2");function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){return i(e)||r(e,t)||Object(o["a"])(e,t)||s()}},3842:function(e,t,n){"use strict";n.d(t,"m",(function(){return a})),n.d(t,"q",(function(){return l})),n.d(t,"w",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"h",(function(){return h})),n.d(t,"i",(function(){return d})),n.d(t,"g",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"e",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return v})),n.d(t,"v",(function(){return b})),n.d(t,"l",(function(){return y})),n.d(t,"p",(function(){return w})),n.d(t,"s",(function(){return C})),n.d(t,"t",(function(){return S})),n.d(t,"n",(function(){return x})),n.d(t,"r",(function(){return O})),n.d(t,"u",(function(){return k})),n.d(t,"o",(function(){return L})),n.d(t,"k",(function(){return E})),n.d(t,"j",(function(){return D})),n.d(t,"d",(function(){return M}));var i=n("6d8b"),r=1e-4,o=20;function s(e){return e.replace(/^\s+|\s+$/g,"")}function a(e,t,n,i){var r=t[0],o=t[1],s=n[0],a=n[1],l=o-r,c=a-s;if(0===l)return 0===c?s:(s+a)/2;if(i)if(l>0){if(e<=r)return s;if(e>=o)return a}else{if(e>=r)return s;if(e<=o)return a}else{if(e===r)return s;if(e===o)return a}return(e-r)/l*c+s}function l(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return i["isString"](e)?s(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function c(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),o),e=(+e).toFixed(t),n?e:+e}function u(e){return e.sort((function(e,t){return e-t})),e}function h(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return d(e)}function d(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),i=n>0?+t.slice(n+1):0,r=n>0?n:t.length,o=t.indexOf("."),s=o<0?0:r-1-o;return Math.max(0,s-i)}function f(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),o=Math.round(n(Math.abs(t[1]-t[0]))/i),s=Math.min(Math.max(-r+o,0),20);return isFinite(s)?s:20}function p(e,t,n){if(!e[t])return 0;var i=g(e,n);return i[t]||0}function g(e,t){var n=i["reduce"](e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];var r=Math.pow(10,t),o=i["map"](e,(function(e){return(isNaN(e)?0:e)/n*r*100})),s=100*r,a=i["map"](o,(function(e){return Math.floor(e)})),l=i["reduce"](a,(function(e,t){return e+t}),0),c=i["map"](o,(function(e,t){return e-a[t]}));while(l<s){for(var u=Number.NEGATIVE_INFINITY,h=null,d=0,f=c.length;d<f;++d)c[d]>u&&(u=c[d],h=d);++a[h],c[h]=0,++l}return i["map"](a,(function(e){return e/r}))}function m(e,t){var n=Math.max(h(e),h(t)),i=e+t;return n>o?i:c(i,n)}var v=9007199254740991;function b(e){var t=2*Math.PI;return(e%t+t)%t}function y(e){return e>-r&&e<r}var _=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function w(e){if(e instanceof Date)return e;if(i["isString"](e)){var t=_.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function C(e){return Math.pow(10,S(e))}function S(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function x(e,t){var n,i=S(e),r=Math.pow(10,i),o=e/r;return n=t?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,e=n*r,i>=-20?+e.toFixed(i<0?-i:0):e}function O(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),r=+e[i-1],o=n-i;return o?r+o*(e[i]-r):r}function k(e){e.sort((function(e,t){return a(e,t,0)?-1:1}));for(var t=-1/0,n=1,i=0;i<e.length;){for(var r=e[i].interval,o=e[i].close,s=0;s<2;s++)r[s]<=t&&(r[s]=t,o[s]=s?1:1-n),t=r[s],n=o[s];r[0]===r[1]&&o[0]*o[1]!==1?e.splice(i,1):i++}return e;function a(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&a(e,t,1))}}function L(e){var t=parseFloat(e);return t==e&&(0!==t||!i["isString"](e)||e.indexOf("x")<=0)?t:NaN}function E(e){return!isNaN(L(e))}function D(){return Math.round(9*Math.random())}function I(e,t){return 0===t?e:I(t,e%t)}function M(e,t){return null==e?t:null==t?e:e*t/I(e,t)}},"386b":function(e,t,n){"use strict";var i;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var o=n("9bfc").codes,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function c(e){return e.setHeader&&"function"===typeof e.abort}function u(e,t,o,s){s=r(s);var l=!1;e.on("close",(function(){l=!0})),void 0===i&&(i=n("bf09")),i(e,{readable:t,writable:o},(function(e){if(e)return s(e);l=!0,s()}));var u=!1;return function(t){if(!l&&!u)return u=!0,c(e)?e.abort():"function"===typeof e.destroy?e.destroy():void s(t||new a("pipe"))}}function h(e){e()}function d(e,t){return e.pipe(t)}function f(e){return e.length?"function"!==typeof e[e.length-1]?l:e.pop():l}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i,r=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new s("streams");var o=t.map((function(e,n){var s=n<t.length-1,a=n>0;return u(e,s,a,(function(e){i||(i=e),e&&o.forEach(h),s||(o.forEach(h),r(i))}))}));return t.reduce(d)}e.exports=p},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,i,r){return e.config=t,n&&(e.code=n),e.request=i,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},"38a2":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return l}));var i=n("6d8b"),r=n("2b17"),o=n("eda2"),s=/\{@(.+?)\}/g,a=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),r=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),a=n.getItemVisual(e,"style"),l=a&&a[n.getItemVisual(e,"drawType")||"fill"],c=a&&a.stroke,u=this.mainType,h="series"===u,d=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:r,data:s,dataType:t,value:i,color:l,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,a,l,c){t=t||"normal";var u=this.getData(n),h=this.getDataParams(e,n);if(c&&(h.value=c.interpolatedValue),null!=a&&i["isArray"](h.value)&&(h.value=h.value[a]),!l){var d=u.getItemModel(e);l=d.get("normal"===t?["label","formatter"]:[t,"label","formatter"])}if(i["isFunction"](l))return h.status=t,h.dimensionIndex=a,l(h);if(i["isString"](l)){var f=Object(o["e"])(l,h);return f.replace(s,(function(t,n){var o=n.length,s=n;"["===s.charAt(0)&&"]"===s.charAt(o-1)&&(s=+s.slice(1,o-1));var a=Object(r["e"])(u,e,s);if(c&&i["isArray"](c.interpolatedValue)){var l=u.getDimensionIndex(s);l>=0&&(a=c.interpolatedValue[l])}return null!=a?a+"":""}))}},e.prototype.getRawValue=function(e,t){return Object(r["e"])(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function l(e){var t,n;return i["isObject"](e)?e.type&&(n=e):t=e,{text:t,frag:n}}},"38a2b":function(e,t,n){},"38e9":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return n.e("chunk-2d0ba136").then(n.bind(null,"3652"))}})},"38f6":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:function(){return n.e("chunk-2d0dda4e").then(n.bind(null,"81ed"))}})},3901:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s}));var i=n("282b"),r=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],o=Object(i["a"])(r),s=function(){function e(){}return e.prototype.getLineStyle=function(e){return o(this,e)},e}()},"392f":function(e,t,n){"use strict";var i=n("9ab4"),r=n("19eb"),o=n("9850"),s=[],a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return Object(i["a"])(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new o["a"](1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(s)),e.union(i)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){var o=this._displayables[r];if(o.contain(e,t))return!0}return!1},t}(r["c"]);t["a"]=a},3934:function(e,t,n){"use strict";var i=n("c532");e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},3938:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.radarConfig=void 0;var i={show:!0,name:"",data:[],radarStyle:{lineWidth:1},point:{show:!0,radius:2,style:{fill:"#fff"}},label:{show:!0,offset:[0,0],labelGap:5,formatter:null,style:{fontSize:10}},rLevel:10,animationCurve:"easeOutCubic",animationFrane:50};t.radarConfig=i},"393a":function(e,t,n){"use strict";var i=n("e444"),r=n("512c"),o=n("ba01"),s=n("051b"),a=n("8a0d"),l=n("26dd"),c=n("92f0"),u=n("ce7a"),h=n("cc15")("iterator"),d=!([].keys&&"next"in[].keys()),f="@@iterator",p="keys",g="values",m=function(){return this};e.exports=function(e,t,n,v,b,y,_){l(n,t,v);var w,C,S,x=function(e){if(!d&&e in E)return E[e];switch(e){case p:return function(){return new n(this,e)};case g:return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",k=b==g,L=!1,E=e.prototype,D=E[h]||E[f]||b&&E[b],I=D||x(b),M=b?k?x("entries"):I:void 0,T="Array"==t&&E.entries||D;if(T&&(S=u(T.call(new e)),S!==Object.prototype&&S.next&&(c(S,O,!0),i||"function"==typeof S[h]||s(S,h,m))),k&&D&&D.name!==g&&(L=!0,I=function(){return D.call(this)}),i&&!_||!d&&!L&&E[h]||s(E,h,I),a[t]=I,a[O]=m,b)if(w={values:k?I:x(g),keys:y?I:x(p),entries:M},_)for(C in w)C in E||o(E,C,w[C]);else r(r.P+r.F*(d||L),t,w);return w}},"39ad":function(e,t,n){var i=n("6ca1"),r=n("d16a"),o=n("9d11");e.exports=function(e){return function(t,n,s){var a,l=i(t),c=r(l.length),u=o(s,c);if(e&&n!=n){while(c>u)if(a=l[u++],a!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},"39f9":function(e,t,n){},"3a19":function(e,t,n){},"3a34":function(e,t,n){"use strict";var i=n("83ab"),r=n("e8b5"),o=TypeError,s=Object.getOwnPropertyDescriptor,a=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(r(e)&&!s(e,"length").writable)throw o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},"3a9b":function(e,t,n){var i=n("e330");e.exports=i({}.isPrototypeOf)},"3bbe":function(e,t,n){var i=n("1626"),r=String,o=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw o("Can't set "+r(e)+" as a prototype")}},"3bd2":function(e,t,n){"use strict";(function(t,i){var r;e.exports=D,D.ReadableState=E;n("faa1").EventEmitter;var o=function(e,t){return e.listeners(t).length},s=n("946b"),a=n("1c35").Buffer,l=("undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function c(e){return a.from(e)}function u(e){return a.isBuffer(e)||e instanceof l}var h,d=n(8);h=d&&d.debuglog?d.debuglog("stream"):function(){};var f,p,g,m=n("86ef"),v=n("015d"),b=n("75d2"),y=b.getHighWaterMark,_=n("e142").codes,w=_.ERR_INVALID_ARG_TYPE,C=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,x=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n("3fb5")(D,s);var O=v.errorOrDestroy,k=["error","close","destroy","pause","resume"];function L(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function E(e,t,i){r=r||n("030c"),e=e||{},"boolean"!==typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",i),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n("aa22").StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function D(e){if(r=r||n("030c"),!(this instanceof D))return new D(e);var t=this instanceof r;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function I(e,t,n,i,r){h("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,j(e,s);else if(r||(o=T(s,t)),o)O(e,o);else if(s.objectMode||t&&t.length>0)if("string"===typeof t||s.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=c(t)),i)s.endEmitted?O(e,new x):M(e,s,t,!0);else if(s.ended)O(e,new C);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?M(e,s,t,!1):B(e,s)):M(e,s,t,!1)}else i||(s.reading=!1,B(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function M(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&R(e)),B(e,t)}function T(e,t){var n;return u(t)||"string"===typeof t||void 0===t||e.objectMode||(n=new w("chunk",["string","Buffer","Uint8Array"],t)),n}Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),D.prototype.destroy=v.destroy,D.prototype._undestroy=v.undestroy,D.prototype._destroy=function(e,t){t(e)},D.prototype.push=function(e,t){var n,i=this._readableState;return i.objectMode?n=!0:"string"===typeof e&&(t=t||i.defaultEncoding,t!==i.encoding&&(e=a.from(e,t),t=""),n=!0),I(this,e,t,!1,n)},D.prototype.unshift=function(e){return I(this,e,null,!0,!1)},D.prototype.isPaused=function(){return!1===this._readableState.flowing},D.prototype.setEncoding=function(e){f||(f=n("aa22").StringDecoder);var t=new f(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;var i=this._readableState.buffer.head,r="";while(null!==i)r+=t.write(i.data),i=i.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var A=1073741824;function N(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function P(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=N(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e,t){if(h("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?R(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,F(e)))}}function R(e){var t=e._readableState;h("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(F,e))}function F(e){var t=e._readableState;h("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,$(e)}function B(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(W,e,t))}function W(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length)){var n=t.length;if(h("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function V(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,$(e))}}function z(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function H(e){h("readable nexttick read 0"),e.read(0)}function U(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(q,e,t))}function q(e,t){h("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),$(e),t.flowing&&!t.reading&&e.read(0)}function $(e){var t=e._readableState;h("flow",t.flowing);while(t.flowing&&null!==e.read());}function K(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function G(e){var t=e._readableState;h("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(Y,t,e))}function Y(e,t){if(h("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function Z(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}D.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?G(this):R(this),null;if(e=P(e,t),0===e&&t.ended)return 0===t.length&&G(this),null;var i,r=t.needReadable;return h("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&(r=!0,h("length less than watermark",r)),t.ended||t.reading?(r=!1,h("reading or ended",r)):r&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=P(n,t))),i=e>0?K(e,t):null,null===i?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&G(this)),null!==i&&this.emit("data",i),i},D.prototype._read=function(e){O(this,new S("_read()"))},D.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,h("pipe count=%d opts=%j",r.pipesCount,t);var s=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr,a=s?c:b;function l(e,t){h("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function c(){h("onend"),e.end()}r.endEmitted?i.nextTick(a):n.once("end",a),e.on("unpipe",l);var u=V(n);e.on("drain",u);var d=!1;function f(){h("cleanup"),e.removeListener("close",m),e.removeListener("finish",v),e.removeListener("drain",u),e.removeListener("error",g),e.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",p),d=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u()}function p(t){h("ondata");var i=e.write(t);h("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==Z(r.pipes,e))&&!d&&(h("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function g(t){h("onerror",t),b(),e.removeListener("error",g),0===o(e,"error")&&O(e,t)}function m(){e.removeListener("finish",v),b()}function v(){h("onfinish"),e.removeListener("close",m),b()}function b(){h("unpipe"),n.unpipe(e)}return n.on("data",p),L(e,"error",g),e.once("close",m),e.once("finish",v),e.emit("pipe",n),r.flowing||(h("pipe resume"),n.resume()),e},D.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<r;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=Z(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},D.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,h("on readable",r.length,r.reading),r.length?R(this):r.reading||i.nextTick(H,this))),n},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(z,this),n},D.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(z,this),t},D.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!e.readableListening,U(this,e)),e.paused=!1,this},D.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},D.prototype.wrap=function(e){var t=this,n=this._readableState,i=!1;for(var r in e.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(r){if(h("wrapped data"),n.decoder&&(r=n.decoder.write(r)),(!n.objectMode||null!==r&&void 0!==r)&&(n.objectMode||r&&r.length)){var o=t.push(r);o||(i=!0,e.pause())}})),e)void 0===this[r]&&"function"===typeof e[r]&&(this[r]=function(t){return function(){return e[t].apply(e,arguments)}}(r));for(var o=0;o<k.length;o++)e.on(k[o],this.emit.bind(this,k[o]));return this._read=function(t){h("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"===typeof Symbol&&(D.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=n("7887")),p(this)}),Object.defineProperty(D.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(D.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(D.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),D._fromList=K,Object.defineProperty(D.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(D.from=function(e,t){return void 0===g&&(g=n("854c")),g(D,e,t)})}).call(this,n("c8ba"),n("4362"))},"3bfb":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n("54f2");var i=n("11f7"),r=n("3742"),o=n("ceb8"),s=n("aa3d");const a={badgeBackground:o["a"].fromHex("#4D4D4D"),badgeForeground:o["a"].fromHex("#FFFFFF")};class l{constructor(e,t){this.count=0,this.options=t||Object.create(null),Object(s["f"])(this.options,a,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Object(i["q"])(e,Object(i["a"])(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(e){this.count=e,this.render()}setTitleFormat(e){this.titleFormat=e,this.render()}render(){this.element.textContent=Object(r["w"])(this.countFormat,this.count),this.element.title=Object(r["w"])(this.titleFormat,this.count),this.applyStyles()}style(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()}applyStyles(){if(this.element){const 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}}}},"3c0e":function(e,t,n){},"3c35":function(e,t){(function(t){e.exports=t}).call(this,{})},"3c4e":function(e,t,n){"use strict";var i=function(e){return r(e)&&!o(e)};function r(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||l(e)}var s="function"===typeof Symbol&&Symbol.for,a=s?Symbol.for("react.element"):60103;function l(e){return e.$$typeof===a}function c(e){return Array.isArray(e)?[]:{}}function u(e,t){var n=t&&!0===t.clone;return n&&i(e)?f(c(e),e,t):e}function h(e,t,n){var r=e.slice();return t.forEach((function(t,o){"undefined"===typeof r[o]?r[o]=u(t,n):i(t)?r[o]=f(e[o],t,n):-1===e.indexOf(t)&&r.push(u(t,n))})),r}function d(e,t,n){var r={};return i(e)&&Object.keys(e).forEach((function(t){r[t]=u(e[t],n)})),Object.keys(t).forEach((function(o){i(t[o])&&e[o]?r[o]=f(e[o],t[o],n):r[o]=u(t[o],n)})),r}function f(e,t,n){var i=Array.isArray(t),r=Array.isArray(e),o=n||{arrayMerge:h},s=i===r;if(s){if(i){var a=o.arrayMerge||h;return a(e,t,n)}return d(e,t,n)}return u(t,n)}f.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return f(e,n,t)}))};var p=f;e.exports=p},"3ca2":function(e,t,n){"use strict";e.exports=u;var i=n("fbd7").codes,r=i.ERR_METHOD_NOT_IMPLEMENTED,o=i.ERR_MULTIPLE_CALLBACK,s=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=i.ERR_TRANSFORM_WITH_LENGTH_0,l=n("be3f");function c(e,t){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(null===i)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),i(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"===typeof e.transform&&(this._transform=e.transform),"function"===typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",h)}function h(){var e=this;"function"!==typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,n){d(e,t,n)}))}function d(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}n("3fb5")(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new r("_transform()"))},u.prototype._write=function(e,t,n){var i=this._transformState;if(i.writecb=n,i.writechunk=e,i.writeencoding=t,!i.transforming){var r=this._readableState;(i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,(function(e){t(e)}))}},"3ca3":function(e,t,n){"use strict";var i=n("6547").charAt,r=n("577e"),o=n("69f3"),s=n("c6d2"),a=n("4754"),l="String Iterator",c=o.set,u=o.getterFor(l);s(String,"String",(function(e){c(this,{type:l,string:r(e),index:0})}),(function(){var e,t=u(this),n=t.string,r=t.index;return r>=n.length?a(void 0,!0):(e=i(n,r),t.index+=e.length,a(e,!1))}))},"3d33":function(e,t,n){
|
||
/**
|
||
* @license
|
||
* Video.js 6.13.0 <http://videojs.com/>
|
||
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
|
||
* Available under Apache License Version 2.0
|
||
* <https://github.com/videojs/video.js/blob/master/LICENSE>
|
||
*
|
||
* Includes vtt.js <https://github.com/mozilla/vtt.js>
|
||
* Available under Apache License Version 2.0
|
||
* <https://github.com/mozilla/vtt.js/blob/master/LICENSE>
|
||
*/
|
||
function i(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var r=i(n("be09")),o=i(n("ef34")),s=i(n("1b8d")),a=i(n("8c10")),l=i(n("eec7")),c=i(n("2b8c")),u="6.13.0",h=r.navigator&&r.navigator.userAgent||"",d=/AppleWebKit\/([\d.]+)/i.exec(h),f=d?parseFloat(d.pop()):null,p=/iPad/i.test(h),g=/iPhone/i.test(h)&&!p,m=/iPod/i.test(h),v=g||p||m,b=function(){var e=h.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),y=/Android/i.test(h),_=function(){var e=h.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),w=y&&/webkit/i.test(h)&&_<2.3,C=y&&_<5&&f<537,S=/Firefox/i.test(h),x=/Edge/i.test(h),O=!x&&(/Chrome/i.test(h)||/CriOS/i.test(h)),k=function(){var e=h.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),L=/MSIE\s8\.0/.test(h),E=function(){var e=/MSIE\s(\d+)\.\d/.exec(h),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(h)&&/rv:11.0/.test(h)&&(t=11),t}(),D=/Safari/i.test(h)&&!O&&!y&&!x,I=(D||v)&&!O,M=ne()&&("ontouchstart"in r||r.navigator.maxTouchPoints||r.DocumentTouch&&r.document instanceof r.DocumentTouch),T=ne()&&"backgroundSize"in r.document.createElement("video").style,A=(Object.freeze||Object)({IS_IPAD:p,IS_IPHONE:g,IS_IPOD:m,IS_IOS:v,IOS_VERSION:b,IS_ANDROID:y,ANDROID_VERSION:_,IS_OLD_ANDROID:w,IS_NATIVE_ANDROID:C,IS_FIREFOX:S,IS_EDGE:x,IS_CHROME:O,CHROME_VERSION:k,IS_IE8:L,IE_VERSION:E,IS_SAFARI:D,IS_ANY_SAFARI:I,TOUCH_ENABLED:M,BACKGROUND_SIZE_SUPPORTED:T}),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},P=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},j=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)},R=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},F=function(e,t){return e.raw=t,e},B=Object.prototype.toString,W=function(e){return U(e)?Object.keys(e):[]};function V(e,t){W(e).forEach((function(n){return t(e[n],n)}))}function z(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return W(e).reduce((function(n,i){return t(n,e[i],i)}),n)}function H(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Object.assign?Object.assign.apply(Object,[e].concat(n)):(n.forEach((function(t){t&&V(t,(function(t,n){e[n]=t}))})),e)}function U(e){return!!e&&"object"===("undefined"===typeof e?"undefined":N(e))}function q(e){return U(e)&&"[object Object]"===B.call(e)&&e.constructor===Object}var $=[],K=function(e,t){return function(n,i,o,s){var a=t.levels[i],l=new RegExp("^("+a+")$");if("log"!==n&&o.unshift(n.toUpperCase()+":"),o.unshift(e+":"),$&&$.push([].concat(o)),r.console){var c=r.console[n];c||"debug"!==n||(c=r.console.info||r.console.log),c&&a&&l.test(n)&&(s&&(o=o.map((function(e){if(U(e)||Array.isArray(e))try{return JSON.stringify(e)}catch(t){return String(e)}return String(e)})).join(" ")),c.apply?c[Array.isArray(o)?"apply":"call"](r.console,o):c(o))}}};function G(e){var t="info",n=void 0,i=function e(){for(var i=e.stringify||E&&E<11,r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];n("log",t,o,i)};return n=K(e,i),i.createLogger=function(t){return G(e+": "+t)},i.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:t},i.level=function(e){if("string"===typeof e){if(!i.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');t=e}return t},i.history=function(){return $?[].concat($):[]},i.history.filter=function(e){return($||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},i.history.clear=function(){$&&($.length=0)},i.history.disable=function(){null!==$&&($.length=0,$=null)},i.history.enable=function(){null===$&&($=[])},i.error=function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];return n("error",t,i)},i.warn=function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];return n("warn",t,i)},i.debug=function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];return n("debug",t,i)},i}var Y=G("VIDEOJS"),Z=Y.createLogger;function X(e,t){if(!e||!t)return"";if("function"===typeof r.getComputedStyle){var n=r.getComputedStyle(e);return n?n[t]:""}return e.currentStyle[t]||""}var Q=F(["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."]);function J(e){return"string"===typeof e&&/\S/.test(e)}function ee(e){if(/\s/.test(e))throw new Error("class has illegal whitespace characters")}function te(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}function ne(){return o===r.document&&"undefined"!==typeof o.createElement}function ie(e){return U(e)&&1===e.nodeType}function re(){try{return r.parent!==r.self}catch(e){return!0}}function oe(e){return function(t,n){if(!J(t))return o[e](null);J(n)&&(n=o.querySelector(n));var i=ie(n)?n:o;return i[e]&&i[e](t)}}function se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],r=o.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(Y.warn(s(Q,e,n)),r.setAttribute(e,n)):"textContent"===e?ae(r,n):r[e]=n})),Object.getOwnPropertyNames(n).forEach((function(e){r.setAttribute(e,n[e])})),i&&ke(r,i),r}function ae(e,t){return"undefined"===typeof e.textContent?e.innerText=t:e.textContent=t,e}function le(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function ce(e,t){return ee(t),e.classList?e.classList.contains(t):te(t).test(e.className)}function ue(e,t){return e.classList?e.classList.add(t):ce(e,t)||(e.className=(e.className+" "+t).trim()),e}function he(e,t){return e.classList?e.classList.remove(t):(ee(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e}function de(e,t,n){var i=ce(e,t);if("function"===typeof n&&(n=n(e,t)),"boolean"!==typeof n&&(n=!i),n!==i)return n?ue(e,t):he(e,t),e}function fe(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var i=t[n];null===i||"undefined"===typeof i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)}))}function pe(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var i=e.attributes,r=i.length-1;r>=0;r--){var o=i[r].name,s=i[r].value;"boolean"!==typeof e[o]&&-1===n.indexOf(","+o+",")||(s=null!==s),t[o]=s}return t}function ge(e,t){return e.getAttribute(t)}function me(e,t,n){e.setAttribute(t,n)}function ve(e,t){e.removeAttribute(t)}function be(){o.body.focus(),o.onselectstart=function(){return!1}}function ye(){o.onselectstart=function(){return!0}}function _e(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n.height||(n.height=parseFloat(X(e,"height"))),n.width||(n.width=parseFloat(X(e,"width"))),n}}function we(e){var t=void 0;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=o.documentElement,i=o.body,s=n.clientLeft||i.clientLeft||0,a=r.pageXOffset||i.scrollLeft,l=t.left+a-s,c=n.clientTop||i.clientTop||0,u=r.pageYOffset||i.scrollTop,h=t.top+u-c;return{left:Math.round(l),top:Math.round(h)}}function Ce(e,t){var n={},i=we(e),r=e.offsetWidth,o=e.offsetHeight,s=i.top,a=i.left,l=t.pageY,c=t.pageX;return t.changedTouches&&(c=t.changedTouches[0].pageX,l=t.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(s-l+o)/o)),n.x=Math.max(0,Math.min(1,(c-a)/r)),n}function Se(e){return U(e)&&3===e.nodeType}function xe(e){while(e.firstChild)e.removeChild(e.firstChild);return e}function Oe(e){return"function"===typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"===typeof e&&(e=e()),ie(e)||Se(e)?e:"string"===typeof e&&/\S/.test(e)?o.createTextNode(e):void 0})).filter((function(e){return e}))}function ke(e,t){return Oe(t).forEach((function(t){return e.appendChild(t)})),e}function Le(e,t){return ke(xe(e),t)}function Ee(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||(9===E||0===e.button&&1===e.buttons))}var De=oe("querySelector"),Ie=oe("querySelectorAll"),Me=(Object.freeze||Object)({isReal:ne,isEl:ie,isInFrame:re,createEl:se,textContent:ae,prependTo:le,hasClass:ce,addClass:ue,removeClass:he,toggleClass:de,setAttributes:fe,getAttributes:pe,getAttribute:ge,setAttribute:me,removeAttribute:ve,blockTextSelection:be,unblockTextSelection:ye,getBoundingClientRect:_e,findPosition:we,getPointerPosition:Ce,isTextNode:Se,emptyEl:xe,normalizeContent:Oe,appendContent:ke,insertContent:Le,isSingleLeftClick:Ee,$:De,$$:Ie}),Te=1;function Ae(){return Te++}var Ne={},Pe="vdata"+(new Date).getTime();function je(e){var t=e[Pe];return t||(t=e[Pe]=Ae()),Ne[t]||(Ne[t]={}),Ne[t]}function Re(e){var t=e[Pe];return!!t&&!!Object.getOwnPropertyNames(Ne[t]).length}function Fe(e){var t=e[Pe];if(t){delete Ne[t];try{delete e[Pe]}catch(n){e.removeAttribute?e.removeAttribute(Pe):e[Pe]=null}}}function Be(e,t){var n=je(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Fe(e)}function We(e,t,n,i){n.forEach((function(n){e(t,n,i)}))}function Ve(e){function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped){var i=e||r.event;for(var s in e={},i)"layerX"!==s&&"layerY"!==s&&"keyLocation"!==s&&"webkitMovementX"!==s&&"webkitMovementY"!==s&&("returnValue"===s&&i.preventDefault||(e[s]=i[s]));if(e.target||(e.target=e.srcElement||o),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){i.preventDefault&&i.preventDefault(),e.returnValue=!1,i.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),e.cancelBubble=!0,i.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var a=o.documentElement,l=o.body;e.pageX=e.clientX+(a&&a.scrollLeft||l&&l.scrollLeft||0)-(a&&a.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(a&&a.scrollTop||l&&l.scrollTop||0)-(a&&a.clientTop||l&&l.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e}var ze=!1;(function(){try{var e=Object.defineProperty({},"passive",{get:function(){ze=!0}});r.addEventListener("test",null,e),r.removeEventListener("test",null,e)}catch(t){}})();var He=["touchstart","touchmove"];function Ue(e,t,n){if(Array.isArray(t))return We(Ue,e,t,n);var i=je(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=Ae()),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(!i.disabled){t=Ve(t);var r=i.handlers[t.type];if(r)for(var o=r.slice(0),s=0,a=o.length;s<a;s++){if(t.isImmediatePropagationStopped())break;try{o[s].call(e,t,n)}catch(l){Y.error(l)}}}}),1===i.handlers[t].length)if(e.addEventListener){var r=!1;ze&&He.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,i.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function qe(e,t,n){if(Re(e)){var i=je(e);if(i.handlers){if(Array.isArray(t))return We(qe,e,t,n);var r=function(e,t){i.handlers[t]=[],Be(e,t)};if(void 0!==t){var o=i.handlers[t];if(o)if(n){if(n.guid)for(var s=0;s<o.length;s++)o[s].guid===n.guid&&o.splice(s--,1);Be(e,t)}else r(e,t)}else for(var a in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},a)&&r(e,a)}}}function $e(e,t,n){var i=Re(e)?je(e):{},r=e.parentNode||e.ownerDocument;if("string"===typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Ve(t),i.dispatcher&&i.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&!0===t.bubbles)$e.call(null,r,t,n);else if(!r&&!t.defaultPrevented){var o=je(t.target);t.target[t.type]&&(o.disabled=!0,"function"===typeof t.target[t.type]&&t.target[t.type](),o.disabled=!1)}return!t.defaultPrevented}function Ke(e,t,n){if(Array.isArray(t))return We(Ke,e,t,n);var i=function i(){qe(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||Ae(),Ue(e,t,i)}var Ge=(Object.freeze||Object)({fixEvent:Ve,on:Ue,off:qe,trigger:$e,one:Ke}),Ye=!1,Ze=void 0,Xe=function(){if(ne()&&!1!==Ze.options.autoSetup){var e=o.getElementsByTagName("video"),t=o.getElementsByTagName("audio"),n=o.getElementsByTagName("video-js"),i=[];if(e&&e.length>0)for(var r=0,s=e.length;r<s;r++)i.push(e[r]);if(t&&t.length>0)for(var a=0,l=t.length;a<l;a++)i.push(t[a]);if(n&&n.length>0)for(var c=0,u=n.length;c<u;c++)i.push(n[c]);if(i&&i.length>0)for(var h=0,d=i.length;h<d;h++){var f=i[h];if(!f||!f.getAttribute){Qe(1);break}if(void 0===f.player){var p=f.getAttribute("data-setup");null!==p&&Ze(f)}}else Ye||Qe(1)}};function Qe(e,t){t&&(Ze=t),r.setTimeout(Xe,e)}ne()&&"complete"===o.readyState?Ye=!0:Ke(r,"load",(function(){Ye=!0}));var Je=function(e){var t=o.createElement("style");return t.className=e,t},et=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},tt=function(e,t,n){t.guid||(t.guid=Ae());var i=function(){return t.apply(e,arguments)};return i.guid=n?n+"_"+t.guid:t.guid,i},nt=function(e,t){var n=Date.now(),i=function(){var i=Date.now();i-n>=t&&(e.apply(void 0,arguments),n=i)};return i},it=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r,o=void 0,s=function(){i.clearTimeout(o),o=null},a=function(){var r=this,s=arguments,a=function(){o=null,a=null,n||e.apply(r,s)};!o&&n&&e.apply(r,s),i.clearTimeout(o),o=i.setTimeout(a,t)};return a.cancel=s,a},rt=function(){};rt.prototype.allowedEvents_={},rt.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ue(this,e,t),this.addEventListener=n},rt.prototype.addEventListener=rt.prototype.on,rt.prototype.off=function(e,t){qe(this,e,t)},rt.prototype.removeEventListener=rt.prototype.off,rt.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ke(this,e,t),this.addEventListener=n},rt.prototype.trigger=function(e){var t=e.type||e;"string"===typeof e&&(e={type:t}),e=Ve(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),$e(this,e)},rt.prototype.dispatchEvent=rt.prototype.trigger;var ot=function(e){return e instanceof rt||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"===typeof e[t]}))},st=function(e){return"string"===typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},at=function(e){if(!e.nodeName&&!ot(e))throw new Error("Invalid target; must be a DOM node or evented object.")},lt=function(e){if(!st(e))throw new Error("Invalid event type; must be a non-empty string or array.")},ct=function(e){if("function"!==typeof e)throw new Error("Invalid listener; must be a function.")},ut=function(e,t){var n=t.length<3||t[0]===e||t[0]===e.eventBusEl_,i=void 0,r=void 0,o=void 0;return n?(i=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],o=t[1]):(i=t[0],r=t[1],o=t[2]),at(i),lt(r),ct(o),o=tt(e,o),{isTargetingSelf:n,target:i,type:r,listener:o}},ht=function(e,t,n,i){at(e),e.nodeName?Ge[t](e,n,i):e[t](n,i)},dt={on:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=ut(this,n),o=r.isTargetingSelf,s=r.target,a=r.type,l=r.listener;if(ht(s,"on",a,l),!o){var c=function(){return e.off(s,a,l)};c.guid=l.guid;var u=function(){return e.off("dispose",c)};u.guid=l.guid,ht(this,"on","dispose",c),ht(s,"on","dispose",u)}},one:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=ut(this,n),o=r.isTargetingSelf,s=r.target,a=r.type,l=r.listener;if(o)ht(s,"one",a,l);else{var c=function t(){for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];e.off(s,a,t),l.apply(null,i)};c.guid=l.guid,ht(s,"one",a,c)}},off:function(e,t,n){if(!e||st(e))qe(this.eventBusEl_,e,t);else{var i=e,r=t;at(i),lt(r),ct(n),n=tt(this,n),this.off("dispose",n),i.nodeName?(qe(i,r,n),qe(i,"dispose",n)):ot(i)&&(i.off(r,n),i.off("dispose",n))}},trigger:function(e,t){return $e(this.eventBusEl_,e,t)}};function ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.eventBusKey;if(n){if(!e[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');e.eventBusEl_=e[n]}else e.eventBusEl_=se("span",{className:"vjs-event-bus"});return H(e,dt),e.on("dispose",(function(){e.off(),r.setTimeout((function(){e.eventBusEl_=null}),0)})),e}var pt={state:{},setState:function(e){var t=this;"function"===typeof e&&(e=e());var n=void 0;return V(e,(function(e,i){t.state[i]!==e&&(n=n||{},n[i]={from:t.state[i],to:e}),t.state[i]=e})),n&&ot(this)&&this.trigger({changes:n,type:"statechanged"}),n}};function gt(e,t){return H(e,pt),e.state=H({},e.state,t),"function"===typeof e.handleStateChanged&&ot(e)&&e.on("statechanged",e.handleStateChanged),e}function mt(e){return"string"!==typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}function vt(e,t){return mt(e)===mt(t)}function bt(){for(var e={},t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach((function(t){t&&V(t,(function(t,n){q(t)?(q(e[n])||(e[n]={}),e[n]=bt(e[n],t)):e[n]=t}))})),e}var yt=function(){function e(t,n,i){if(P(this,e),!t&&this.play?this.player_=t=this:this.player_=t,this.options_=bt({},this.options_),n=this.options_=bt(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){var r=t&&t.id&&t.id()||"no_player";this.id_=r+"_component_"+Ae()}this.name_=n.name||null,n.el?this.el_=n.el:!1!==n.createEl&&(this.el_=this.createEl()),!1!==n.evented&&ft(this,{eventBusKey:this.el_?"el_":null}),gt(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==n.initChildren&&this.initChildren(),this.ready(i),!1!==n.reportTouchActivity&&this.enableTouchActivity()}return e.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Fe(this.el_),this.el_=null),this.player_=null},e.prototype.player=function(){return this.player_},e.prototype.options=function(e){return Y.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e?(this.options_=bt(this.options_,e),this.options_):this.options_},e.prototype.el=function(){return this.el_},e.prototype.createEl=function(e,t,n){return se(e,t,n)},e.prototype.localize=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),o=r&&r[i],s=i&&i.split("-")[0],a=r&&r[s],l=n;return o&&o[e]?l=o[e]:a&&a[e]&&(l=a[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,n){var i=t[n-1],r=i;return"undefined"===typeof i&&(r=e),r}))),l},e.prototype.contentEl=function(){return this.contentEl_||this.el_},e.prototype.id=function(){return this.id_},e.prototype.name=function(){return this.name_},e.prototype.children=function(){return this.children_},e.prototype.getChildById=function(e){return this.childIndex_[e]},e.prototype.getChild=function(e){if(e)return e=mt(e),this.childNameIndex_[e]},e.prototype.addChild=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,r=void 0,o=void 0;if("string"===typeof t){o=mt(t);var s=n.componentClass||o;n.name=o;var a=e.getComponent(s);if(!a)throw new Error("Component "+s+" does not exist");if("function"!==typeof a)return null;r=new a(this.player_||this,n)}else r=t;if(this.children_.splice(i,0,r),"function"===typeof r.id&&(this.childIndex_[r.id()]=r),o=o||r.name&&mt(r.name()),o&&(this.childNameIndex_[o]=r),"function"===typeof r.el&&r.el()){var l=this.contentEl().children,c=l[i]||null;this.contentEl().insertBefore(r.el(),c)}return r},e.prototype.removeChild=function(e){if("string"===typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){this.childIndex_[e.id()]=null,this.childNameIndex_[e.name()]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},e.prototype.initChildren=function(){var t=this,n=this.options_.children;if(n){var i=this.options_,r=function(e){var n=e.name,r=e.opts;if(void 0!==i[n]&&(r=i[n]),!1!==r){!0===r&&(r={}),r.playerOptions=t.options_.playerOptions;var o=t.addChild(n,r);o&&(t[n]=o)}},o=void 0,s=e.getComponent("Tech");o=Array.isArray(n)?n:Object.keys(n),o.concat(Object.keys(this.options_).filter((function(e){return!o.some((function(t){return"string"===typeof t?e===t:e===t.name}))}))).map((function(e){var i=void 0,r=void 0;return"string"===typeof e?(i=e,r=n[i]||t.options_[i]||{}):(i=e.name,r=e),{name:i,opts:r}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||mt(t.name));return n&&!s.isTech(n)})).forEach(r)}},e.prototype.buildCSSClass=function(){return""},e.prototype.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},e.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},e.prototype.$=function(e,t){return De(e,t||this.contentEl())},e.prototype.$$=function(e,t){return Ie(e,t||this.contentEl())},e.prototype.hasClass=function(e){return ce(this.el_,e)},e.prototype.addClass=function(e){ue(this.el_,e)},e.prototype.removeClass=function(e){he(this.el_,e)},e.prototype.toggleClass=function(e,t){de(this.el_,e,t)},e.prototype.show=function(){this.removeClass("vjs-hidden")},e.prototype.hide=function(){this.addClass("vjs-hidden")},e.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},e.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.prototype.getAttribute=function(e){return ge(this.el_,e)},e.prototype.setAttribute=function(e,t){me(this.el_,e,t)},e.prototype.removeAttribute=function(e){ve(this.el_,e)},e.prototype.width=function(e,t){return this.dimension("width",e,t)},e.prototype.height=function(e,t){return this.dimension("height",e,t)},e.prototype.dimensions=function(e,t){this.width(e,!0),this.height(t)},e.prototype.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t===t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var i=this.el_.style[e],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+mt(e)],10)},e.prototype.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if("function"===typeof r.getComputedStyle){var n=r.getComputedStyle(this.el_);t=n.getPropertyValue(e)||n[e]}if(t=parseFloat(t),0===t){var i="offset"+mt(e);t=this.el_[i]}return t},e.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.prototype.currentWidth=function(){return this.currentDimension("width")},e.prototype.currentHeight=function(){return this.currentDimension("height")},e.prototype.focus=function(){this.el_.focus()},e.prototype.blur=function(){this.el_.blur()},e.prototype.emitTapEvents=function(){var e=0,t=null,n=10,i=200,r=void 0;this.on("touchstart",(function(n){1===n.touches.length&&(t={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},e=(new Date).getTime(),r=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)r=!1;else if(t){var i=e.touches[0].pageX-t.pageX,o=e.touches[0].pageY-t.pageY,s=Math.sqrt(i*i+o*o);s>n&&(r=!1)}}));var o=function(){r=!1};this.on("touchleave",o),this.on("touchcancel",o),this.on("touchend",(function(n){if(t=null,!0===r){var o=(new Date).getTime()-e;o<i&&(n.preventDefault(),this.trigger("tap"))}}))},e.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e=tt(this.player(),this.player().reportUserActivity),t=void 0;this.on("touchstart",(function(){e(),this.clearInterval(t),t=this.setInterval(e,250)}));var n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}},e.prototype.setTimeout=function(e,t){var n,i,o=this;return e=tt(this,e),n=r.setTimeout((function(){o.off("dispose",i),e()}),t),i=function(){return o.clearTimeout(n)},i.guid="vjs-timeout-"+n,this.on("dispose",i),n},e.prototype.clearTimeout=function(e){r.clearTimeout(e);var t=function(){};return t.guid="vjs-timeout-"+e,this.off("dispose",t),e},e.prototype.setInterval=function(e,t){var n=this;e=tt(this,e);var i=r.setInterval(e,t),o=function(){return n.clearInterval(i)};return o.guid="vjs-interval-"+i,this.on("dispose",o),i},e.prototype.clearInterval=function(e){r.clearInterval(e);var t=function(){};return t.guid="vjs-interval-"+e,this.off("dispose",t),e},e.prototype.requestAnimationFrame=function(e){var t,n,i=this;return this.supportsRaf_?(e=tt(this,e),t=r.requestAnimationFrame((function(){i.off("dispose",n),e()})),n=function(){return i.cancelAnimationFrame(t)},n.guid="vjs-raf-"+t,this.on("dispose",n),t):this.setTimeout(e,1e3/60)},e.prototype.cancelAnimationFrame=function(e){if(this.supportsRaf_){r.cancelAnimationFrame(e);var t=function(){};return t.guid="vjs-raf-"+e,this.off("dispose",t),e}return this.clearTimeout(e)},e.registerComponent=function(t,n){if("string"!==typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var i=e.getComponent("Tech"),r=i&&i.isTech(n),o=e===n||e.prototype.isPrototypeOf(n.prototype);if(r||!o){var s=void 0;throw s=r?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+s+".")}t=mt(t),e.components_||(e.components_={});var a=e.getComponent("Player");if("Player"===t&&a&&a.players){var l=a.players,c=Object.keys(l);if(l&&c.length>0&&c.map((function(e){return l[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,n},e.getComponent=function(t){if(t)return t=mt(t),e.components_&&e.components_[t]?e.components_[t]:void 0},e}();function _t(e,t,n){if("number"!==typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}function wt(e,t,n,i){return _t(e,i,n.length-1),n[i][t]}function Ct(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:wt.bind(null,"start",0,e),end:wt.bind(null,"end",1,e)}}function St(e,t){return Array.isArray(e)?Ct(e):void 0===e||void 0===t?Ct():Ct([[e,t]])}function xt(e,t){var n=0,i=void 0,r=void 0;if(!t)return 0;e&&e.length||(e=St(0,0));for(var o=0;o<e.length;o++)i=e.start(o),r=e.end(o),r>t&&(r=t),n+=r-i;return n/t}yt.prototype.supportsRaf_="function"===typeof r.requestAnimationFrame&&"function"===typeof r.cancelAnimationFrame,yt.registerComponent("Component",yt);for(var Ot={},kt=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Lt=kt[0],Et=void 0,Dt=0;Dt<kt.length;Dt++)if(kt[Dt][1]in o){Et=kt[Dt];break}if(Et)for(var It=0;It<Et.length;It++)Ot[Lt[It]]=Et[It];function Mt(e){if(e instanceof Mt)return e;"number"===typeof e?this.code=e:"string"===typeof e?this.message=e:U(e)&&("number"===typeof e.code&&(this.code=e.code),H(this,e)),this.message||(this.message=Mt.defaultMessages[this.code]||"")}Mt.prototype.code=0,Mt.prototype.message="",Mt.prototype.status=null,Mt.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Mt.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Tt=0;Tt<Mt.errorTypes.length;Tt++)Mt[Mt.errorTypes[Tt]]=Tt,Mt.prototype[Mt.errorTypes[Tt]]=Tt;function At(e){return void 0!==e&&null!==e&&"function"===typeof e.then}function Nt(e){At(e)&&e.then(null,(function(e){}))}var Pt=function(e){var t=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((function(t,n,i){return e[n]&&(t[n]=e[n]),t}),{cues:e.cues&&Array.prototype.map.call(e.cues,(function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}}))});return t},jt=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,(function(e){return e.track})),i=Array.prototype.map.call(t,(function(e){var t=Pt(e.track);return e.src&&(t.src=e.src),t}));return i.concat(Array.prototype.filter.call(e.textTracks(),(function(e){return-1===n.indexOf(e)})).map(Pt))},Rt=function(e,t){return e.forEach((function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach((function(e){return n.addCue(e)}))})),t.textTracks()},Ft={textTracksToJson:jt,jsonToTextTracks:Rt,trackToJson_:Pt},Bt="vjs-modal-dialog",Wt=27,Vt=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.opened_=r.hasBeenOpened_=r.hasBeenFilled_=!1,r.closeable(!r.options_.uncloseable),r.content(r.options_.content),r.contentEl_=se("div",{className:Bt+"-content"},{role:"document"}),r.descEl_=se("p",{className:Bt+"-description vjs-control-text",id:r.el().getAttribute("aria-describedby")}),ae(r.descEl_,r.description()),r.el_.appendChild(r.descEl_),r.el_.appendChild(r.contentEl_),r}return j(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.prototype.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return Bt+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(e){e.which===Wt&&this.closeable()&&this.close()},t.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")},t.prototype.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},t.prototype.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",tt(this,this.handleKeyPress)),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},t.prototype.opened=function(e){return"boolean"===typeof e&&this[e?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",tt(this,this.handleKeyPress)),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},t.prototype.closeable=function(e){if("boolean"===typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var i=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=i,this.on(n,"close",this.close)}!t&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},t.prototype.fill=function(){this.fillWith(this.content())},t.prototype.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,i=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),Le(t,e),this.trigger("modalfill"),i?n.insertBefore(t,i):n.appendChild(t);var r=this.getChild("closeButton");r&&n.appendChild(r.el_)},t.prototype.empty=function(){this.trigger("beforemodalempty"),xe(this.contentEl()),this.trigger("modalempty")},t.prototype.content=function(e){return"undefined"!==typeof e&&(this.content_=e),this.content_},t.prototype.conditionalFocus_=function(){var e=o.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus(),this.on(o,"keydown",this.handleKeyDown))},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(o,"keydown",this.handleKeyDown)},t.prototype.handleKeyDown=function(e){if(9===e.which){for(var t=this.focusableEls_(),n=this.el_.querySelector(":focus"),i=void 0,r=0;r<t.length;r++)if(n===t[r]){i=r;break}o.activeElement===this.el_&&(i=0),e.shiftKey&&0===i?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||i!==t.length-1||(t[0].focus(),e.preventDefault())}},t.prototype.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,(function(e){return(e instanceof r.HTMLAnchorElement||e instanceof r.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof r.HTMLInputElement||e instanceof r.HTMLSelectElement||e instanceof r.HTMLTextAreaElement||e instanceof r.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof r.HTMLIFrameElement||e instanceof r.HTMLObjectElement||e instanceof r.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")}))},t}(yt);Vt.prototype.options_={pauseOnOpen:!0,temporary:!0},yt.registerComponent("ModalDialog",Vt);var zt=function(e){function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;P(this,t);var s=R(this,e.call(this));if(!r&&(r=s,L))for(var a in r=o.createElement("custom"),t.prototype)"constructor"!==a&&(r[a]=t.prototype[a]);r.tracks_=[],Object.defineProperty(r,"length",{get:function(){return this.tracks_.length}});for(var l=0;l<i.length;l++)r.addTrack(i[l]);return n=r,R(s,n)}return j(t,e),t.prototype.addTrack=function(e){var t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack"}))},t.prototype.removeTrack=function(e){for(var t=void 0,n=0,i=this.length;n<i;n++)if(this[n]===e){t=this[n],t.off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack"})},t.prototype.getTrackById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},t}(rt);for(var Ht in zt.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},zt.prototype.allowedEvents_)zt.prototype["on"+Ht]=null;var Ut=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},qt=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];P(this,t);for(var s=void 0,a=r.length-1;a>=0;a--)if(r[a].enabled){Ut(r,r[a]);break}if(L){for(var l in s=o.createElement("custom"),zt.prototype)"constructor"!==l&&(s[l]=zt.prototype[l]);for(var c in t.prototype)"constructor"!==c&&(s[c]=t.prototype[c])}return n=R(this,e.call(this,r,s)),s=n,s.changing_=!1,i=s,R(n,i)}return j(t,e),t.prototype.addTrack=function(t){var n=this;t.enabled&&Ut(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("enabledchange",(function(){n.changing_||(n.changing_=!0,Ut(n,t),n.changing_=!1,n.trigger("change"))}))},t}(zt),$t=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)},Kt=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];P(this,t);for(var s=void 0,a=r.length-1;a>=0;a--)if(r[a].selected){$t(r,r[a]);break}if(L){for(var l in s=o.createElement("custom"),zt.prototype)"constructor"!==l&&(s[l]=zt.prototype[l]);for(var c in t.prototype)"constructor"!==c&&(s[c]=t.prototype[c])}return n=R(this,e.call(this,r,s)),s=n,s.changing_=!1,Object.defineProperty(s,"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),i=s,R(n,i)}return j(t,e),t.prototype.addTrack=function(t){var n=this;t.selected&&$t(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("selectedchange",(function(){n.changing_||(n.changing_=!0,$t(n,t),n.changing_=!1,n.trigger("change"))}))},t}(zt),Gt=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];P(this,t);var s=void 0;if(L){for(var a in s=o.createElement("custom"),zt.prototype)"constructor"!==a&&(s[a]=zt.prototype[a]);for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l])}return n=R(this,e.call(this,r,s)),s=n,i=s,R(n,i)}return j(t,e),t.prototype.addTrack=function(t){e.prototype.addTrack.call(this,t),t.addEventListener("modechange",tt(this,(function(){this.trigger("change")})));var n=["metadata","chapters"];-1===n.indexOf(t.kind)&&t.addEventListener("modechange",tt(this,(function(){this.trigger("selectedlanguagechange")})))},t}(zt),Yt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];P(this,e);var n=this;if(L)for(var i in n=o.createElement("custom"),e.prototype)"constructor"!==i&&(n[i]=e.prototype[i]);n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var r=0,s=t.length;r<s;r++)n.addTrackElement_(t[r]);if(L)return n}return e.prototype.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},e.prototype.getTrackElementByTrack_=function(e){for(var t=void 0,n=0,i=this.trackElements_.length;n<i;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},e.prototype.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_.splice(t,1);break}},e}(),Zt=function(){function e(t){P(this,e);var n=this;if(L)for(var i in n=o.createElement("custom"),e.prototype)"constructor"!==i&&(n[i]=e.prototype[i]);if(e.prototype.setCues_.call(n,t),Object.defineProperty(n,"length",{get:function(){return this.length_}}),L)return n}return e.prototype.setCues_=function(e){var t=this.length||0,n=0,i=e.length;this.cues_=e,this.length_=e.length;var r=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<i)for(n=t;n<i;n++)r.call(this,n)},e.prototype.getCueById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},e}(),Xt={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Qt={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Jt={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},en={disabled:"disabled",hidden:"hidden",showing:"showing"},tn=function(e){function t(){var n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};P(this,t);var r=R(this,e.call(this)),s=r;if(L)for(var a in s=o.createElement("custom"),t.prototype)"constructor"!==a&&(s[a]=t.prototype[a]);var l={id:i.id||"vjs_track_"+Ae(),kind:i.kind||"",label:i.label||"",language:i.language||""},c=function(e){Object.defineProperty(s,e,{get:function(){return l[e]},set:function(){}})};for(var u in l)c(u);return n=s,R(r,n)}return j(t,e),t}(rt),nn=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=o.createElement("a");n.href=e;var i=""===n.host&&"file:"!==n.protocol,s=void 0;i&&(s=o.createElement("div"),s.innerHTML='<a href="'+e+'"></a>',n=s.firstChild,s.setAttribute("style","display:none; position:absolute;"),o.body.appendChild(s));for(var a={},l=0;l<t.length;l++)a[t[l]]=n[t[l]];return"http:"===a.protocol&&(a.host=a.host.replace(/:80$/,"")),"https:"===a.protocol&&(a.host=a.host.replace(/:443$/,"")),a.protocol||(a.protocol=r.location.protocol),i&&o.body.removeChild(s),a},rn=function(e){if(!e.match(/^https?:\/\//)){var t=o.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e},on=function(e){if("string"===typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,n=t.exec(e);if(n)return n.pop().toLowerCase()}return""},sn=function(e){var t=r.location,n=nn(e),i=":"===n.protocol?t.protocol:n.protocol,o=i+n.host!==t.protocol+t.host;return o},an=(Object.freeze||Object)({parseUrl:nn,getAbsoluteURL:rn,getFileExtension:on,isCrossOrigin:sn}),ln=function(e,t){var n=new r.WebVTT.Parser(r,r.vttjs,r.WebVTT.StringDecoder()),i=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){i.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),i.length>0&&(r.console&&r.console.groupCollapsed&&r.console.groupCollapsed("Text Track parsing errors for "+t.src),i.forEach((function(e){return Y.error(e)})),r.console&&r.console.groupEnd&&r.console.groupEnd()),n.flush()},cn=function(e,t){var n={uri:e},i=sn(e);i&&(n.cors=i),l(n,tt(this,(function(e,n,i){if(e)return Y.error(e,n);if(t.loaded_=!0,"function"!==typeof r.WebVTT){if(t.tech_){var o=function(){return ln(i,t)};t.tech_.on("vttjsloaded",o),t.tech_.on("vttjserror",(function(){Y.error("vttjs failed to load, stopping trying to process "+t.src),t.tech_.off("vttjsloaded",o)}))}}else ln(i,t)})))},un=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(P(this,t),!r.tech)throw new Error("A tech was not provided.");var o=bt(r,{kind:Jt[r.kind]||"subtitles",language:r.language||r.srclang||""}),s=en[o.mode]||"disabled",a=o["default"];"metadata"!==o.kind&&"chapters"!==o.kind||(s="hidden");var l=(n=R(this,e.call(this,o)),n);if(l.tech_=o.tech,L)for(var c in t.prototype)"constructor"!==c&&(l[c]=t.prototype[c]);l.cues_=[],l.activeCues_=[];var u=new Zt(l.cues_),h=new Zt(l.activeCues_),d=!1,f=tt(l,(function(){this.activeCues=this.activeCues,d&&(this.trigger("cuechange"),d=!1)}));return"disabled"!==s&&l.tech_.ready((function(){l.tech_.on("timeupdate",f)}),!0),Object.defineProperty(l,"default",{get:function(){return a},set:function(){}}),Object.defineProperty(l,"mode",{get:function(){return s},set:function(e){var t=this;en[e]&&(s=e,"disabled"!==s?this.tech_.ready((function(){t.tech_.on("timeupdate",f)}),!0):this.tech_.off("timeupdate",f),this.trigger("modechange"))}}),Object.defineProperty(l,"cues",{get:function(){return this.loaded_?u:null},set:function(){}}),Object.defineProperty(l,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return h;for(var e=this.tech_.currentTime(),t=[],n=0,i=this.cues.length;n<i;n++){var r=this.cues[n];(r.startTime<=e&&r.endTime>=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(d=!1,t.length!==this.activeCues_.length)d=!0;else for(var o=0;o<t.length;o++)-1===this.activeCues_.indexOf(t[o])&&(d=!0);return this.activeCues_=t,h.setCues_(this.activeCues_),h},set:function(){}}),o.src?(l.src=o.src,cn(o.src,l)):l.loaded_=!0,i=l,R(n,i)}return j(t,e),t.prototype.addCue=function(e){var t=e;if(r.vttjs&&!(e instanceof r.vttjs.VTTCue)){for(var n in t=new r.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var i=this.tech_.textTracks(),o=0;o<i.length;o++)i[o]!==this&&i[o].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},t.prototype.removeCue=function(e){var t=this.cues_.length;while(t--){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(tn);un.prototype.allowedEvents_={cuechange:"cuechange"};var hn=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};P(this,t);var o=bt(r,{kind:Qt[r.kind]||""}),s=(n=R(this,e.call(this,o)),n),a=!1;if(L)for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l]);return Object.defineProperty(s,"enabled",{get:function(){return a},set:function(e){"boolean"===typeof e&&e!==a&&(a=e,this.trigger("enabledchange"))}}),o.enabled&&(s.enabled=o.enabled),s.loaded_=!0,i=s,R(n,i)}return j(t,e),t}(tn),dn=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};P(this,t);var o=bt(r,{kind:Xt[r.kind]||""}),s=(n=R(this,e.call(this,o)),n),a=!1;if(L)for(var l in t.prototype)"constructor"!==l&&(s[l]=t.prototype[l]);return Object.defineProperty(s,"selected",{get:function(){return a},set:function(e){"boolean"===typeof e&&e!==a&&(a=e,this.trigger("selectedchange"))}}),o.selected&&(s.selected=o.selected),i=s,R(n,i)}return j(t,e),t}(tn),fn=0,pn=1,gn=2,mn=3,vn=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};P(this,t);var i=R(this,e.call(this)),r=void 0,s=i;if(L)for(var a in s=o.createElement("custom"),t.prototype)"constructor"!==a&&(s[a]=t.prototype[a]);var l,c=new un(n);return s.kind=c.kind,s.src=c.src,s.srclang=c.language,s.label=c.label,s["default"]=c["default"],Object.defineProperty(s,"readyState",{get:function(){return r}}),Object.defineProperty(s,"track",{get:function(){return c}}),r=fn,c.addEventListener("loadeddata",(function(){r=gn,s.trigger({type:"load",target:s})})),L?(l=s,R(i,l)):i}return j(t,e),t}(rt);vn.prototype.allowedEvents_={load:"load"},vn.NONE=fn,vn.LOADING=pn,vn.LOADED=gn,vn.ERROR=mn;var bn={audio:{ListClass:qt,TrackClass:hn,capitalName:"Audio"},video:{ListClass:Kt,TrackClass:dn,capitalName:"Video"},text:{ListClass:Gt,TrackClass:un,capitalName:"Text"}};Object.keys(bn).forEach((function(e){bn[e].getterName=e+"Tracks",bn[e].privateName=e+"Tracks_"}));var yn={remoteText:{ListClass:Gt,TrackClass:un,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Yt,TrackClass:vn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},_n=bt(bn,yn);function wn(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=e.textTracks();r.kind=t,n&&(r.label=n),i&&(r.language=i),r.tech=e;var s=new _n.text.TrackClass(r);return o.addTrack(s),s}yn.names=Object.keys(yn),bn.names=Object.keys(bn),_n.names=[].concat(yn.names).concat(bn.names);var Cn=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};P(this,t),n.reportTouchActivity=!1;var r=R(this,e.call(this,null,n,i));return r.hasStarted_=!1,r.on("playing",(function(){this.hasStarted_=!0})),r.on("loadstart",(function(){this.hasStarted_=!1})),_n.names.forEach((function(e){var t=_n[e];n&&n[t.getterName]&&(r[t.privateName]=n[t.getterName])})),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===n["native"+e+"Tracks"]&&(r["featuresNative"+e+"Tracks"]=!1)})),!1===n.nativeCaptions||!1===n.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==n.nativeCaptions&&!0!==n.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.autoRemoteTextTracks_=new _n.text.ListClass,r.initTrackListeners(),n.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}return j(t,e),t.prototype.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",(function(){return t.setTimeout((function(){return t.triggerSourceset(e)}),1)})),this.trigger({src:e,type:"sourceset"})},t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(tt(this,(function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)},t.prototype.onDurationChange=function(e){this.duration_=this.duration()},t.prototype.buffered=function(){return St(0,0)},t.prototype.bufferedPercent=function(){return xt(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(bn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},t.prototype.clearTracks=function(e){var t=this;e=[].concat(e),e.forEach((function(e){var n=t[e+"Tracks"]()||[],i=n.length;while(i--){var r=n[i];"text"===e&&t.removeRemoteTextTrack(r),n.removeTrack(r)}}))},t.prototype.cleanupAutoTextTracks=function(){var e=this.autoRemoteTextTracks_||[],t=e.length;while(t--){var n=e[t];this.removeRemoteTextTrack(n)}},t.prototype.reset=function(){},t.prototype.error=function(e){return void 0!==e&&(this.error_=new Mt(e),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?St(0,0):St()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTrackListeners=function(){var e=this;bn.names.forEach((function(t){var n=bn[t],i=function(){e.trigger(t+"trackchange")},r=e[n.getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),e.on("dispose",(function(){r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)}))}))},t.prototype.addWebVttScript_=function(){var e=this;if(!r.WebVTT)if(o.body.contains(this.el())){if(!this.options_["vtt.js"]&&q(c)&&Object.keys(c).length>0)return void this.trigger("vttjsloaded");var t=o.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){t.onload=null,t.onerror=null})),r.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},t.prototype.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),i=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();var o=function(){return e.trigger("texttrackchange")},s=function(){o();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",o),"showing"===n.mode&&n.addEventListener("cuechange",o)}};s(),t.addEventListener("change",s),t.addEventListener("addtrack",s),t.addEventListener("removetrack",s),this.on("dispose",(function(){n.off("addtrack",i),n.off("removetrack",r),t.removeEventListener("change",s),t.removeEventListener("addtrack",s),t.removeEventListener("removetrack",s);for(var e=0;e<t.length;e++){var a=t[e];a.removeEventListener("cuechange",o)}}))},t.prototype.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return wn(this,e,t,n)},t.prototype.createRemoteTextTrack=function(e){var t=bt(e,{tech:this});return new yn.remoteTextEl.TrackClass(t)},t.prototype.addRemoteTextTrack=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],i=this.createRemoteTextTrack(t);return!0!==n&&!1!==n&&(Y.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),n=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==n&&this.ready((function(){return e.autoRemoteTextTracks_.addTrack(i.track)})),i},t.prototype.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},t.prototype.getVideoPlaybackQuality=function(){return{}},t.prototype.setPoster=function(){},t.prototype.playsinline=function(){},t.prototype.setPlaysinline=function(){},t.prototype.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=mt(e),t.techs_[e]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return e=mt(e),t.techs_&&t.techs_[e]?t.techs_[e]:r&&r.videojs&&r.videojs[e]?(Y.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),r.videojs[e]):void 0},t}(yt);_n.names.forEach((function(e){var t=_n[e];Cn.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),Cn.prototype.featuresVolumeControl=!0,Cn.prototype.featuresMuteControl=!0,Cn.prototype.featuresFullscreenResize=!1,Cn.prototype.featuresPlaybackRate=!1,Cn.prototype.featuresProgressEvents=!1,Cn.prototype.featuresSourceset=!1,Cn.prototype.featuresTimeupdateEvents=!1,Cn.prototype.featuresNativeTextTracks=!1,Cn.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var i=e.sourceHandlers;i||(i=e.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,t)},e.canPlayType=function(t){for(var n=e.sourceHandlers||[],i=void 0,r=0;r<n.length;r++)if(i=n[r].canPlayType(t),i)return i;return""},e.selectSourceHandler=function(t,n){for(var i=e.sourceHandlers||[],r=void 0,o=0;o<i.length;o++)if(r=i[o].canHandleSource(t,n),r)return i[o];return null},e.canPlaySource=function(t,n){var i=e.selectSourceHandler(t,n);return i?i.canHandleSource(t,n):""};var t=["seekable","seeking","duration"];t.forEach((function(e){var t=this[e];"function"===typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})}),e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:Y.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.on("dispose",this.disposeSourceHandler)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},yt.registerComponent("Tech",Cn),Cn.registerTech("Tech",Cn),Cn.defaultTechOrder_=[];var Sn={},xn={},On={};function kn(e,t){Sn[e]=Sn[e]||[],Sn[e].push(t)}function Ln(e,t,n){e.setTimeout((function(){return Bn(t,Sn[t.type],n,e)}),1)}function En(e,t){e.forEach((function(e){return e.setTech&&e.setTech(t)}))}function Dn(e,t,n){return e.reduceRight(Pn(n),t[n]())}function In(e,t,n,i){return t[n](e.reduce(Pn(n),i))}function Mn(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r="call"+mt(n),o=e.reduce(Pn(r),i),s=o===On,a=s?null:t[n](o);return jn(e,n,a,s),a}var Tn={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1},An={setCurrentTime:1},Nn={play:1,pause:1};function Pn(e){return function(t,n){return t===On?On:n[e]?n[e](t):t}}function jn(e,t,n,i){for(var r=e.length-1;r>=0;r--){var o=e[r];o[t]&&o[t](i,n)}}function Rn(e){xn[e.id()]=null}function Fn(e,t){var n=xn[e.id()],i=null;if(void 0===n||null===n)return i=t(e),xn[e.id()]=[[t,i]],i;for(var r=0;r<n.length;r++){var o=n[r],s=o[0],a=o[1];s===t&&(i=a)}return null===i&&(i=t(e),n.push([t,i])),i}function Bn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2],i=arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=t[0],a=t.slice(1);if("string"===typeof s)Bn(e,Sn[s],n,i,r,o);else if(s){var l=Fn(i,s);if(!l.setSource)return r.push(l),Bn(e,a,n,i,r,o);l.setSource(H({},e),(function(t,s){if(t)return Bn(e,a,n,i,r,o);r.push(l),Bn(s,e.type===s.type?a:Sn[s.type],n,i,r,o)}))}else a.length?Bn(e,a,n,i,r,o):o?n(e,r):Bn(e,Sn["*"],n,i,r,!0)}var Wn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL"},Vn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=on(e),n=Wn[t.toLowerCase()];return n||""},zn=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter((function(e){return e.src===t}));if(n.length)return n[0].type;for(var i=e.$$("source"),r=0;r<i.length;r++){var o=i[r];if(o.type&&o.src&&o.src===t)return o.type}return Vn(t)},Hn=function e(t){if(Array.isArray(t)){var n=[];t.forEach((function(t){t=e(t),Array.isArray(t)?n=n.concat(t):U(t)&&n.push(t)})),t=n}else t="string"===typeof t&&t.trim()?[Un({src:t})]:U(t)&&"string"===typeof t.src&&t.src&&t.src.trim()?[Un(t)]:[];return t};function Un(e){var t=Vn(e.src);return!e.type&&t&&(e.type=t),e}var qn=function(e){function t(n,i,r){P(this,t);var o=bt({createEl:!1},i),s=R(this,e.call(this,n,o,r));if(i.playerOptions.sources&&0!==i.playerOptions.sources.length)n.src(i.playerOptions.sources);else for(var a=0,l=i.playerOptions.techOrder;a<l.length;a++){var c=mt(l[a]),u=Cn.getTech(c);if(c||(u=yt.getComponent(c)),u&&u.isSupported()){n.loadTech_(c);break}}return s}return j(t,e),t}(yt);yt.registerComponent("MediaLoader",qn);var $n=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.emitTapEvents(),r.enable(),r}return j(t,e),t.prototype.createEl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=H({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&Y.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),i=H({role:"button"},i),this.tabIndex_=n.tabIndex;var r=e.prototype.createEl.call(this,t,n,i);return this.createControlTextEl(r),r},t.prototype.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},t.prototype.createControlTextEl=function(e){return this.controlTextEl_=se("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.prototype.controlText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,ae(this.controlTextEl_,n),this.nonIconControl||t.setAttribute("title",n)},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},t.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!==typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},t.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!==typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},t.prototype.handleClick=function(e){},t.prototype.handleFocus=function(e){Ue(o,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.trigger("click")):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t.prototype.handleBlur=function(e){qe(o,"keydown",tt(this,this.handleKeyPress))},t}(yt);yt.registerComponent("ClickableComponent",$n);var Kn=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.update(),n.on("posterchange",tt(r,r.update)),r}return j(t,e),t.prototype.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=se("div",{className:"vjs-poster",tabIndex:-1});return T||(this.fallbackImg_=se("img"),e.appendChild(this.fallbackImg_)),e},t.prototype.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},t.prototype.setSrc=function(e){if(this.fallbackImg_)this.fallbackImg_.src=e;else{var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t}},t.prototype.handleClick=function(e){this.player_.controls()&&(this.player_.paused()?Nt(this.player_.play()):this.player_.pause())},t}($n);yt.registerComponent("PosterImage",Kn);var Gn="#222",Yn="#ccc",Zn={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Xn(e,t){var n=void 0;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Qn(e,t,n){try{e.style[t]=n}catch(i){return}}var Jn=function(e){function t(n,i,o){P(this,t);var s=R(this,e.call(this,n,i,o)),a=tt(s,s.updateDisplay);return n.on("loadstart",tt(s,s.toggleDisplay)),n.on("texttrackchange",a),n.on("loadstart",tt(s,s.preselectTrack)),n.ready(tt(s,(function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)this.hide();else{n.on("fullscreenchange",a),n.on("playerresize",a),r.addEventListener&&r.addEventListener("orientationchange",a),n.on("dispose",(function(){return r.removeEventListener("orientationchange",a)}));for(var e=this.options_.playerOptions.tracks||[],t=0;t<e.length;t++)this.player_.addRemoteTextTrack(e[t],!0);this.preselectTrack()}}))),s}return j(t,e),t.prototype.preselectTrack=function(){for(var e={captions:1,subtitles:1},t=this.player_.textTracks(),n=this.player_.cache_.selectedLanguage,i=void 0,r=void 0,o=void 0,s=0;s<t.length;s++){var a=t[s];n&&n.enabled&&n.language===a.language?a.kind===n.kind?o=a:o||(o=a):n&&!n.enabled?(o=null,i=null,r=null):a["default"]&&("descriptions"!==a.kind||i?a.kind in e&&!r&&(r=a):i=a)}o?o.mode="showing":r?r.mode="showing":i&&(i.mode="showing")},t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},t.prototype.clearDisplay=function(){"function"===typeof r.WebVTT&&r.WebVTT.processCues(r,[],this.el_)},t.prototype.updateDisplay=function(){var e=this.player_.textTracks();this.clearDisplay();var t=null,n=null,i=e.length;while(i--){var r=e[i];"showing"===r.mode&&("descriptions"===r.kind?t=r:n=r)}n?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(n)):t&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(t))},t.prototype.updateForTrack=function(e){if("function"===typeof r.WebVTT&&e.activeCues){for(var t=[],n=0;n<e.activeCues.length;n++)t.push(e.activeCues[n]);if(r.WebVTT.processCues(r,t,this.el_),this.player_.textTrackSettings){var i=this.player_.textTrackSettings.getValues(),o=t.length;while(o--){var s=t[o];if(s){var a=s.displayState;if(i.color&&(a.firstChild.style.color=i.color),i.textOpacity&&Qn(a.firstChild,"color",Xn(i.color||"#fff",i.textOpacity)),i.backgroundColor&&(a.firstChild.style.backgroundColor=i.backgroundColor),i.backgroundOpacity&&Qn(a.firstChild,"backgroundColor",Xn(i.backgroundColor||"#000",i.backgroundOpacity)),i.windowColor&&(i.windowOpacity?Qn(a,"backgroundColor",Xn(i.windowColor,i.windowOpacity)):a.style.backgroundColor=i.windowColor),i.edgeStyle&&("dropshadow"===i.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px "+Gn+", 2px 2px 4px "+Gn+", 2px 2px 5px "+Gn:"raised"===i.edgeStyle?a.firstChild.style.textShadow="1px 1px "+Gn+", 2px 2px "+Gn+", 3px 3px "+Gn:"depressed"===i.edgeStyle?a.firstChild.style.textShadow="1px 1px "+Yn+", 0 1px "+Yn+", -1px -1px "+Gn+", 0 -1px "+Gn:"uniform"===i.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px "+Gn+", 0 0 4px "+Gn+", 0 0 4px "+Gn+", 0 0 4px "+Gn)),i.fontPercent&&1!==i.fontPercent){var l=r.parseFloat(a.style.fontSize);a.style.fontSize=l*i.fontPercent+"px",a.style.height="auto",a.style.top="auto",a.style.bottom="2px"}i.fontFamily&&"default"!==i.fontFamily&&("small-caps"===i.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=Zn[i.fontFamily])}}}}},t}(yt);yt.registerComponent("TextTrackDisplay",Jn);var ei=function(e){function t(){return P(this,t),R(this,e.apply(this,arguments))}return j(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"Video Player"),i=se("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[n])}),r=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r},t}(yt);yt.registerComponent("LoadingSpinner",ei);var ti=function(e){function t(){return P(this,t),R(this,e.apply(this,arguments))}return j(t,e),t.prototype.createEl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e="button",t=H({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},t),n=H({type:"button"},n);var i=yt.prototype.createEl.call(this,e,t,n);return this.createControlTextEl(i),i},t.prototype.addChild=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.constructor.name;return Y.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),yt.prototype.addChild.call(this,e,t)},t.prototype.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(t){32!==t.which&&13!==t.which&&e.prototype.handleKeyPress.call(this,t)},t}($n);yt.registerComponent("Button",ti);var ni=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.mouseused_=!1,r.on("mousedown",r.handleMouseDown),r}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY)Nt(t);else{var n=this.player_.getChild("controlBar"),i=n&&n.getChild("playToggle");if(i){var r=function(){return i.focus()};At(t)?t.then(r,(function(){})):this.setTimeout(r,1)}else this.player_.focus()}},t.prototype.handleKeyPress=function(t){this.mouseused_=!1,e.prototype.handleKeyPress.call(this,t)},t.prototype.handleMouseDown=function(e){this.mouseused_=!0},t}(ti);ni.prototype.controlText_="Play Video",yt.registerComponent("BigPlayButton",ni);var ii=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.controlText(i&&i.controlText||r.localize("Close")),r}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t}(ti);yt.registerComponent("CloseButton",ii);var ri=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.on(n,"play",r.handlePlay),r.on(n,"pause",r.handlePause),r.on(n,"ended",r.handleEnded),r}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},t.prototype.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.prototype.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.prototype.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(ti);ri.prototype.controlText_="Play",yt.registerComponent("PlayToggle",ri);var oi=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),i=Math.floor(e/60%60),r=Math.floor(e/3600),o=Math.floor(t/60%60),s=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=i=n="-"),r=r>0||s>0?r+":":"",i=((r||o>=10)&&i<10?"0"+i:i)+":",n=n<10?"0"+n:n,r+i+n},si=oi;function ai(e){si=e}function li(){si=oi}var ci=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return si(e,t)},ui=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.throttledUpdateContent=nt(tt(r,r.updateContent),25),r.on(n,"timeupdate",r.throttledUpdateContent),r}return j(t,e),t.prototype.createEl=function(t){var n=this.buildCSSClass(),i=e.prototype.createEl.call(this,"div",{className:n+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text">'+this.localize(this.labelText_)+" </span>"});return this.contentEl_=se("span",{className:n+"-display"},{"aria-live":"off"}),this.updateTextNode_(),i.appendChild(this.contentEl_),i},t.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},t.prototype.updateTextNode_=function(){if(this.contentEl_){while(this.contentEl_.firstChild)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=o.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},t.prototype.formatTime_=function(e){return ci(e)},t.prototype.updateFormattedTime_=function(e){var t=this.formatTime_(e);t!==this.formattedTime_&&(this.formattedTime_=t,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.updateContent=function(e){},t}(yt);ui.prototype.labelText_="Time",ui.prototype.controlText_="Time",yt.registerComponent("TimeDisplay",ui);var hi=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.on(n,"ended",r.handleEnded),r}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-current-time"},t.prototype.updateContent=function(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(t)},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},t}(ui);hi.prototype.labelText_="Current Time",hi.prototype.controlText_="Current Time",yt.registerComponent("CurrentTimeDisplay",hi);var di=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.on(n,"durationchange",r.updateContent),r.on(n,"loadedmetadata",r.throttledUpdateContent),r}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-duration"},t.prototype.updateContent=function(e){var t=this.player_.duration();t&&this.duration_!==t&&(this.duration_=t,this.updateFormattedTime_(t))},t}(ui);di.prototype.labelText_="Duration",di.prototype.controlText_="Duration",yt.registerComponent("DurationDisplay",di);var fi=function(e){function t(){return P(this,t),R(this,e.apply(this,arguments))}return j(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},t}(yt);yt.registerComponent("TimeDivider",fi);var pi=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.on(n,"durationchange",r.throttledUpdateContent),r.on(n,"ended",r.handleEnded),r}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-remaining-time"},t.prototype.formatTime_=function(t){return"-"+e.prototype.formatTime_.call(this,t)},t.prototype.updateContent=function(e){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(0)},t}(ui);pi.prototype.labelText_="Remaining Time",pi.prototype.controlText_="Remaining Time",yt.registerComponent("RemainingTimeDisplay",pi);var gi=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.updateShowing(),r.on(r.player(),"durationchange",r.updateShowing),r}return j(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=se("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+" </span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(yt);yt.registerComponent("LiveDisplay",gi);var mi=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}return j(t,e),t.prototype.enabled=function(){return this.enabled_},t.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},t.prototype.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},t.prototype.createEl=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.className=n.className+" vjs-slider",n=H({tabIndex:0},n),i=H({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),e.prototype.createEl.call(this,t,n,i)},t.prototype.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||O||e.preventDefault(),be(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e)},t.prototype.handleMouseMove=function(e){},t.prototype.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;ye(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},t.prototype.update=function(){if(this.el_){var e=this.getPercent(),t=this.bar;if(t){("number"!==typeof e||e!==e||e<0||e===1/0)&&(e=0);var n=(100*e).toFixed(2)+"%",i=t.el().style;return this.vertical()?i.height=n:i.width=n,e}}},t.prototype.calculateDistance=function(e){var t=Ce(this.el_,e);return this.vertical()?t.y:t.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},t.prototype.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(yt);yt.registerComponent("Slider",mi);var vi=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.partEls_=[],r.on(n,"progress",r.update),r}return j(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},t.prototype.dispose=function(){this.partEls_=null,e.prototype.dispose.call(this)},t.prototype.update=function(e){var t=this.player_.buffered(),n=this.player_.duration(),i=this.player_.bufferedEnd(),r=this.partEls_,o=function(e,t){var n=e/t||0;return 100*(n>=1?1:n)+"%"};this.el_.style.width=o(i,n);for(var s=0;s<t.length;s++){var a=t.start(s),l=t.end(s),c=r[s];c||(c=this.el_.appendChild(se()),r[s]=c),c.style.left=o(a,i),c.style.width=o(l-a,i)}for(var u=r.length;u>t.length;u--)this.el_.removeChild(r[u-1]);r.length=t.length},t}(yt);yt.registerComponent("LoadProgressBar",vi);var bi=function(e){function t(){return P(this,t),R(this,e.apply(this,arguments))}return j(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},t.prototype.update=function(e,t,n){var i=_e(this.el_),r=_e(this.player_.el()),o=e.width*t;if(r&&i){var s=e.left-r.left+o,a=e.width-o+(r.right-e.right),l=i.width/2;s<l?l+=l-s:a<l&&(l=a),l<0?l=0:l>i.width&&(l=i.width),this.el_.style.right="-"+l+"px",ae(this.el_,n)}},t}(yt);yt.registerComponent("TimeTooltip",bi);var yi=function(e){function t(){return P(this,t),R(this,e.apply(this,arguments))}return j(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},t.prototype.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var i=n.player_.scrubbing()?n.player_.getCache().currentTime:n.player_.currentTime(),r=ci(i,n.player_.duration()),o=n.getChild("timeTooltip");o&&o.update(e,t,r)}))},t}(yt);yi.prototype.options_={children:[]},E&&!(E>8)||v||y||yi.prototype.options_.children.push("timeTooltip"),yt.registerComponent("PlayProgressBar",yi);var _i=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.update=nt(tt(r,r.update),25),r}return j(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var i=n.player_.duration(),r=ci(t*i,i);n.el_.style.left=e.width*t+"px",n.getChild("timeTooltip").update(e,t,r)}))},t}(yt);_i.prototype.options_={children:["timeTooltip"]},yt.registerComponent("MouseTimeDisplay",_i);var wi=5,Ci=30,Si=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.setEventHandlers_(),r}return j(t,e),t.prototype.setEventHandlers_=function(){var e=this;this.update=nt(tt(this,this.update),Ci),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],(function(){e.clearInterval(e.updateInterval),e.updateInterval=e.setInterval((function(){e.requestAnimationFrame((function(){e.update()}))}),Ci)})),this.on(this.player_,["ended","pause","waiting"],(function(){e.clearInterval(e.updateInterval)})),this.on(this.player_,["timeupdate","ended"],this.update)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update_=function(e,t){var n=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[ci(e,n),ci(n,n)],"{1} of {2}")),this.bar.update(_e(this.el_),t)},t.prototype.update=function(t){var n=e.prototype.update.call(this);return this.update_(this.getCurrentTime_(),n),n},t.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.prototype.handleEnded=function(e){this.update_(this.player_.duration(),1)},t.prototype.getPercent=function(){var e=this.getCurrentTime_()/this.player_.duration();return e>=1?1:e},t.prototype.handleMouseDown=function(t){Ee(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},t.prototype.handleMouseMove=function(e){if(Ee(e)){var t=this.calculateDistance(e)*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t)}},t.prototype.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},t.prototype.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},t.prototype.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&Nt(this.player_.play())},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+wi)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-wi)},t.prototype.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleAction(t)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t}(mi);Si.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},E&&!(E>8)||v||y||Si.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Si.prototype.playerEvent="timeupdate",yt.registerComponent("SeekBar",Si);var xi=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.handleMouseMove=nt(tt(r,r.handleMouseMove),25),r.throttledHandleMouseSeek=nt(tt(r,r.handleMouseSeek),25),r.enable(),r}return j(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.prototype.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("mouseTimeDisplay"),i=t.el(),r=_e(i),o=Ce(i,e).x;o>1?o=1:o<0&&(o=0),n&&n.update(r,o)}},t.prototype.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},t.prototype.enabled=function(){return this.enabled_},t.prototype.disable=function(){this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},t.prototype.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseUp(e),this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t}(yt);xi.prototype.options_={children:["seekBar"]},yt.registerComponent("ProgressControl",xi);var Oi=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.on(n,"fullscreenchange",r.handleFullscreenChange),!1===o[Ot.fullscreenEnabled]&&r.disable(),r}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(ti);Oi.prototype.controlText_="Fullscreen",yt.registerComponent("FullscreenToggle",Oi);var ki=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))},Li=function(e){function t(){return P(this,t),R(this,e.apply(this,arguments))}return j(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(yt);yt.registerComponent("VolumeLevel",Li);var Ei=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.on("slideractive",r.updateLastVolume_),r.on(n,"volumechange",r.updateARIAAttributes),n.ready((function(){return r.updateARIAAttributes()})),r}return j(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.prototype.handleMouseDown=function(t){Ee(t)&&e.prototype.handleMouseDown.call(this,t)},t.prototype.handleMouseMove=function(e){Ee(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.prototype.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(mi);Ei.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Ei.prototype.playerEvent="volumechange",yt.registerComponent("VolumeBar",Ei);var Di=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};P(this,t),i.vertical=i.vertical||!1,("undefined"===typeof i.volumeBar||q(i.volumeBar))&&(i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=i.vertical);var r=R(this,e.call(this,n,i));return ki(r,n),r.throttledHandleMouseMove=nt(tt(r,r.handleMouseMove),25),r.on("mousedown",r.handleMouseDown),r.on("touchstart",r.handleMouseDown),r.on(r.volumeBar,["focus","slideractive"],(function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")})),r.on(r.volumeBar,["blur","sliderinactive"],(function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")})),r}return j(t,e),t.prototype.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(yt);Di.prototype.options_={children:["volumeBar"]},yt.registerComponent("VolumeControl",Di);var Ii=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))},Mi=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return Ii(r,n),r.on(n,["loadstart","volumechange"],r.update),r}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var i=n<.1?.1:n;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},t.prototype.update=function(e){this.updateIcon_(),this.updateControlText_()},t.prototype.updateIcon_=function(){var e=this.player_.volume(),t=3;v&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)he(this.el_,"vjs-vol-"+n);ue(this.el_,"vjs-vol-"+t)},t.prototype.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume(),t=e?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},t}(ti);Mi.prototype.controlText_="Mute",yt.registerComponent("MuteToggle",Mi);var Ti=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};P(this,t),"undefined"!==typeof i.inline?i.inline=i.inline:i.inline=!0,("undefined"===typeof i.volumeControl||q(i.volumeControl))&&(i.volumeControl=i.volumeControl||{},i.volumeControl.vertical=!i.inline);var r=R(this,e.call(this,n,i));return r.on(n,["loadstart"],r.volumePanelState_),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}return j(t,e),t.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")},t.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")},t.prototype.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},t.prototype.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},t}(yt);Ti.prototype.options_={children:["muteToggle","volumeControl"]},yt.registerComponent("VolumePanel",Ti);var Ai=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return i&&(r.menuButton_=i.menuButton),r.focusedChild_=-1,r.on("keydown",r.handleKeyPress),r}return j(t,e),t.prototype.addItem=function(e){this.addChild(e),e.on("click",tt(this,(function(t){this.menuButton_&&(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==e.name()&&this.menuButton_.focus())})))},t.prototype.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=se(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),Ue(n,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),n},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepForward()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},t.prototype.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},t.prototype.focus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.children().slice(),n=t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className);n&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(yt);yt.registerComponent("Menu",Ai);var Ni=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};P(this,t);var r=R(this,e.call(this,n,i));r.menuButton_=new ti(n,i),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var o=ti.prototype.buildCSSClass();return r.menuButton_.el_.className=r.buildCSSClass()+" "+o,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0,r.on(r.menuButton_,"tap",r.handleClick),r.on(r.menuButton_,"click",r.handleClick),r.on(r.menuButton_,"focus",r.handleFocus),r.on(r.menuButton_,"blur",r.handleBlur),r.on("keydown",r.handleSubmenuKeyPress),r}return j(t,e),t.prototype.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},t.prototype.createMenu=function(){var e=new Ai(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=se("li",{className:"vjs-menu-title",innerHTML:mt(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,e.children_.unshift(t),le(t,e.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)e.addItem(this.items[n]);return e},t.prototype.createItems=function(){},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},t.prototype.buildWrapperCSSClass=function(){var t="vjs-menu-button";!0===this.options_.inline?t+="-inline":t+="-popup";var n=ti.prototype.buildCSSClass();return"vjs-menu-button "+t+" "+n+" "+e.prototype.buildCSSClass.call(this)},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},t.prototype.controlText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(e,t)},t.prototype.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",tt(this,(function(e){this.unpressButton(),this.el_.blur()}))),this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.focus=function(){this.menuButton_.focus()},t.prototype.blur=function(){this.menuButton_.blur()},t.prototype.handleFocus=function(){Ue(o,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleBlur=function(){qe(o,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(e){27===e.which||9===e.which?(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus())):38!==e.which&&40!==e.which||this.buttonPressed_||(this.pressButton(),e.preventDefault())},t.prototype.handleSubmenuKeyPress=function(e){27!==e.which&&9!==e.which||(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus()))},t.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),v&&re())return;this.menu.focus()}},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(yt);yt.registerComponent("MenuButton",Ni);var Pi=function(e){function t(n,i){P(this,t);var r=i.tracks,o=R(this,e.call(this,n,i));if(o.items.length<=1&&o.hide(),!r)return R(o);var s=tt(o,o.update);return r.addEventListener("removetrack",s),r.addEventListener("addtrack",s),o.player_.on("ready",s),o.player_.on("dispose",(function(){r.removeEventListener("removetrack",s),r.removeEventListener("addtrack",s)})),o}return j(t,e),t}(Ni);yt.registerComponent("TrackButton",Pi);var ji=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.selectable=i.selectable,r.isSelected_=i.selected||!1,r.multiSelectable=i.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}return j(t,e),t.prototype.createEl=function(t,n,i){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",H({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),i)},t.prototype.handleClick=function(e){this.selected(!0)},t.prototype.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}($n);yt.registerComponent("MenuItem",ji);var Ri=function(e){function t(n,i){P(this,t);var s=i.track,a=n.textTracks();i.label=s.label||s.language||"Unknown",i.selected="showing"===s.mode;var l=R(this,e.call(this,n,i));l.track=s;var c=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];l.handleTracksChange.apply(l,t)},u=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];l.handleSelectedLanguageChange.apply(l,t)};if(n.on(["loadstart","texttrackchange"],c),a.addEventListener("change",c),a.addEventListener("selectedlanguagechange",u),l.on("dispose",(function(){n.off(["loadstart","texttrackchange"],c),a.removeEventListener("change",c),a.removeEventListener("selectedlanguagechange",u)})),void 0===a.onchange){var h=void 0;l.on(["tap","click"],(function(){if("object"!==N(r.Event))try{h=new r.Event("change")}catch(e){}h||(h=o.createEvent("Event"),h.initEvent("change",!0,!0)),a.dispatchEvent(h)}))}return l.handleTracksChange(),l}return j(t,e),t.prototype.handleClick=function(t){var n=this.track.kind,i=this.track.kinds,r=this.player_.textTracks();if(i||(i=[n]),e.prototype.handleClick.call(this,t),r)for(var o=0;o<r.length;o++){var s=r[o];s===this.track&&i.indexOf(s.kind)>-1?"showing"!==s.mode&&(s.mode="showing"):"disabled"!==s.mode&&(s.mode="disabled")}},t.prototype.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},t.prototype.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},t.prototype.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(ji);yt.registerComponent("TextTrackMenuItem",Ri);var Fi=function(e){function t(n,i){return P(this,t),i.track={player:n,kind:i.kind,kinds:i.kinds,default:!1,mode:"disabled"},i.kinds||(i.kinds=[i.kind]),i.label?i.track.label=i.label:i.track.label=i.kinds.join(" and ")+" off",i.selectable=!0,i.multiSelectable=!1,R(this,e.call(this,n,i))}return j(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var o=t[i];if(this.options_.kinds.indexOf(o.kind)>-1&&"showing"===o.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},t.prototype.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var o=t[i];if(["captions","descriptions","subtitles"].indexOf(o.kind)>-1&&"showing"===o.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(Ri);yt.registerComponent("OffTextTrackMenuItem",Fi);var Bi=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return P(this,t),i.tracks=n.textTracks(),R(this,e.call(this,n,i))}return j(t,e),t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ri,n=void 0;this.label_&&(n=this.label_+" off"),e.push(new Fi(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<i.length;r++){var o=i[r];if(this.kinds_.indexOf(o.kind)>-1){var s=new t(this.player_,{track:o,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+o.kind+"-menu-item"),e.push(s)}}return e},t}(Pi);yt.registerComponent("TextTrackButton",Bi);var Wi=function(e){function t(n,i){P(this,t);var r=i.track,o=i.cue,s=n.currentTime();i.selectable=!0,i.multiSelectable=!1,i.label=o.text,i.selected=o.startTime<=s&&s<o.endTime;var a=R(this,e.call(this,n,i));return a.track=r,a.cue=o,r.addEventListener("cuechange",tt(a,a.update)),a}return j(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.prototype.update=function(e){var t=this.cue,n=this.player_.currentTime();this.selected(t.startTime<=n&&n<t.endTime)},t}(ji);yt.registerComponent("ChaptersTrackMenuItem",Wi);var Vi=function(e){function t(n,i,r){return P(this,t),R(this,e.call(this,n,i,r))}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},t.prototype.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}},t.prototype.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},t.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(mt(this.kind_))},t.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},t.prototype.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,i=t.length;n<i;n++){var r=t[n],o=new Wi(this.player_,{track:this.track_,cue:r});e.push(o)}return e},t}(Bi);Vi.prototype.kind_="chapters",Vi.prototype.controlText_="Chapters",yt.registerComponent("ChaptersButton",Vi);var zi=function(e){function t(n,i,r){P(this,t);var o=R(this,e.call(this,n,i,r)),s=n.textTracks(),a=tt(o,o.handleTracksChange);return s.addEventListener("change",a),o.on("dispose",(function(){s.removeEventListener("change",a)})),o}return j(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,i=0,r=t.length;i<r;i++){var o=t[i];if(o.kind!==this.kind_&&"showing"===o.mode){n=!0;break}}n?this.disable():this.enable()},t.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Bi);zi.prototype.kind_="descriptions",zi.prototype.controlText_="Descriptions",yt.registerComponent("DescriptionsButton",zi);var Hi=function(e){function t(n,i,r){return P(this,t),R(this,e.call(this,n,i,r))}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Bi);Hi.prototype.kind_="subtitles",Hi.prototype.controlText_="Subtitles",yt.registerComponent("SubtitlesButton",Hi);var Ui=function(e){function t(n,i){P(this,t),i.track={player:n,kind:i.kind,label:i.kind+" settings",selectable:!1,default:!1,mode:"disabled"},i.selectable=!1,i.name="CaptionSettingsMenuItem";var r=R(this,e.call(this,n,i));return r.addClass("vjs-texttrack-settings"),r.controlText(", opens "+i.kind+" settings dialog"),r}return j(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(Ri);yt.registerComponent("CaptionSettingsMenuItem",Ui);var qi=function(e){function t(n,i,r){return P(this,t),R(this,e.call(this,n,i,r))}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new Ui(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(Bi);qi.prototype.kind_="captions",qi.prototype.controlText_="Captions",yt.registerComponent("CaptionsButton",qi);var $i=function(e){function t(){return P(this,t),R(this,e.apply(this,arguments))}return j(t,e),t.prototype.createEl=function(t,n,i){var r='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);"captions"===this.options_.track.kind&&(r+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n "),r+="</span>";var o=e.prototype.createEl.call(this,t,H({innerHTML:r},n),i);return o},t}(Ri);yt.registerComponent("SubsCapsMenuItem",$i);var Ki=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};P(this,t);var r=R(this,e.call(this,n,i));return r.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)>-1&&(r.label_="captions"),r.menuButton_.controlText(mt(r.label_)),r}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new Ui(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,$i),t},t}(Bi);Ki.prototype.kinds_=["captions","subtitles"],Ki.prototype.controlText_="Subtitles",yt.registerComponent("SubsCapsButton",Ki);var Gi=function(e){function t(n,i){P(this,t);var r=i.track,o=n.audioTracks();i.label=r.label||r.language||"Unknown",i.selected=r.enabled;var s=R(this,e.call(this,n,i));s.track=r,s.addClass("vjs-"+r.kind+"-menu-item");var a=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];s.handleTracksChange.apply(s,t)};return o.addEventListener("change",a),s.on("dispose",(function(){o.removeEventListener("change",a)})),s}return j(t,e),t.prototype.createEl=function(t,n,i){var r='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);"main-desc"===this.options_.track.kind&&(r+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n "),r+="</span>";var o=e.prototype.createEl.call(this,t,H({innerHTML:r},n),i);return o},t.prototype.handleClick=function(t){var n=this.player_.audioTracks();e.prototype.handleClick.call(this,t);for(var i=0;i<n.length;i++){var r=n[i];r.enabled=r===this.track}},t.prototype.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(ji);yt.registerComponent("AudioTrackMenuItem",Gi);var Yi=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return P(this,t),i.tracks=n.audioTracks(),R(this,e.call(this,n,i))}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++){var i=t[n];e.push(new Gi(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return e},t}(Pi);Yi.prototype.controlText_="Audio Track",yt.registerComponent("AudioTrackButton",Yi);var Zi=function(e){function t(n,i){P(this,t);var r=i.rate,o=parseFloat(r,10);i.label=r,i.selected=1===o,i.selectable=!0,i.multiSelectable=!1;var s=R(this,e.call(this,n,i));return s.label=r,s.rate=o,s.on(n,"ratechange",s.update),s}return j(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.prototype.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(ji);Zi.prototype.contentElType="button",yt.registerComponent("PlaybackRateMenuItem",Zi);var Xi=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.updateVisibility(),r.updateLabel(),r.on(n,"loadstart",r.updateVisibility),r.on(n,"ratechange",r.updateLabel),r}return j(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelEl_=se("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),t.appendChild(this.labelEl_),t},t.prototype.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createMenu=function(){var e=new Ai(this.player()),t=this.playbackRates();if(t)for(var n=t.length-1;n>=0;n--)e.addChild(new Zi(this.player(),{rate:t[n]+"x"}));return e},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(e){for(var t=this.player().playbackRate(),n=this.playbackRates(),i=n[0],r=0;r<n.length;r++)if(n[r]>t){i=n[r];break}this.player().playbackRate(i)},t.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.prototype.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(Ni);Xi.prototype.controlText_="Playback Rate",yt.registerComponent("PlaybackRateMenuButton",Xi);var Qi=function(e){function t(){return P(this,t),R(this,e.apply(this,arguments))}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(yt);yt.registerComponent("Spacer",Qi);var Ji=function(e){function t(){return P(this,t),R(this,e.apply(this,arguments))}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML=" ",t},t}(Qi);yt.registerComponent("CustomControlSpacer",Ji);var er=function(e){function t(){return P(this,t),R(this,e.apply(this,arguments))}return j(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(yt);er.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},yt.registerComponent("ControlBar",er);var tr=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i));return r.on(n,"error",r.open),r}return j(t,e),t.prototype.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(Vt);tr.prototype.options_=bt(Vt.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),yt.registerComponent("ErrorDisplay",tr);var nr="vjs-text-track-settings",ir=["#000","Black"],rr=["#00F","Blue"],or=["#0FF","Cyan"],sr=["#0F0","Green"],ar=["#F0F","Magenta"],lr=["#F00","Red"],cr=["#FFF","White"],ur=["#FF0","Yellow"],hr=["1","Opaque"],dr=["0.5","Semi-Transparent"],fr=["0","Transparent"],pr={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[ir,cr,lr,sr,rr,ur,ar,or]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[hr,dr,fr]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[cr,ir,lr,sr,rr,ur,ar,or]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[hr,dr]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[fr,dr,hr]}};function gr(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}function mr(e,t){var n=e.options[e.options.selectedIndex].value;return gr(n,t)}function vr(e,t,n){if(t)for(var i=0;i<e.options.length;i++)if(gr(e.options[i].value,n)===t){e.selectedIndex=i;break}}pr.windowColor.options=pr.backgroundColor.options;var br=function(e){function t(n,i){P(this,t),i.temporary=!1;var r=R(this,e.call(this,n,i));return r.updateDisplay=tt(r,r.updateDisplay),r.fill(),r.hasBeenOpened_=r.hasBeenFilled_=!0,r.endDialog=se("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")}),r.el().appendChild(r.endDialog),r.setDefaults(),void 0===i.persistTextTrackSettings&&(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",(function(){r.saveSettings(),r.close()})),r.on(r.$(".vjs-default-button"),"click",(function(){r.setDefaults(),r.updateDisplay()})),V(pr,(function(e){r.on(r.$(e.selector),"change",r.updateDisplay)})),r.options_.persistTextTrackSettings&&r.restoreSettings(),r}return j(t,e),t.prototype.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},t.prototype.createElSelect_=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label",r=pr[e],o=r.id.replace("%s",this.id_),s=[n,o].join(" ").trim();return["<"+i+' id="'+o+'" class="'+("label"===i?"vjs-label":"")+'">',this.localize(r.label),"</"+i+">",'<select aria-labelledby="'+s+'">'].concat(r.options.map((function(e){var n=o+"-"+e[1].replace(/\W+/g,"");return['<option id="'+n+'" value="'+e[0]+'" ','aria-labelledby="'+s+" "+n+'">',t.localize(e[1]),"</option>"].join("")}))).concat("</select>").join("")},t.prototype.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElColors_=function(){return se("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},t.prototype.createElFont_=function(){return se("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},t.prototype.createElControls_=function(){var e=this.localize("restore all settings to the default values");return se("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},t.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},t.prototype.label=function(){return this.localize("Caption Settings Dialog")},t.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},t.prototype.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},t.prototype.getValues=function(){var e=this;return z(pr,(function(t,n,i){var r=mr(e.$(n.selector),n.parser);return void 0!==r&&(t[i]=r),t}),{})},t.prototype.setValues=function(e){var t=this;V(pr,(function(n,i){vr(t.$(n.selector),e[i],n.parser)}))},t.prototype.setDefaults=function(){var e=this;V(pr,(function(t){var n=t.hasOwnProperty("default")?t["default"]:0;e.$(t.selector).selectedIndex=n}))},t.prototype.restoreSettings=function(){var e=void 0;try{e=JSON.parse(r.localStorage.getItem(nr))}catch(t){Y.warn(t)}e&&this.setValues(e)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?r.localStorage.setItem(nr,JSON.stringify(e)):r.localStorage.removeItem(nr)}catch(t){Y.warn(t)}}},t.prototype.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(o,"keydown",this.handleKeyDown);var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}(Vt);yt.registerComponent("TextTrackSettings",br);var yr=function(e){function t(n,i){P(this,t);var o=i.ResizeObserver||r.ResizeObserver;null===i.ResizeObserver&&(o=!1);var s=bt({createEl:!o},i),a=R(this,e.call(this,n,s));return a.ResizeObserver=i.ResizeObserver||r.ResizeObserver,a.loadListener_=null,a.resizeObserver_=null,a.debouncedHandler_=it((function(){a.resizeHandler()}),100,!1,a),o?(a.resizeObserver_=new a.ResizeObserver(a.debouncedHandler_),a.resizeObserver_.observe(n.el())):(a.loadListener_=function(){a.el_&&a.el_.contentWindow&&Ue(a.el_.contentWindow,"resize",a.debouncedHandler_)},a.one("load",a.loadListener_)),a}return j(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager"})},t.prototype.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},t.prototype.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.el_&&this.el_.contentWindow&&qe(this.el_.contentWindow,"resize",this.debouncedHandler_),this.loadListener_&&this.off("load",this.loadListener_),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null},t}(yt);yt.registerComponent("ResizeManager",yr);var _r=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),i=[],r="";if(!n.length)return!1;for(var o=0;o<n.length;o++){var s=n[o].src;s&&-1===i.indexOf(s)&&i.push(s)}return!!i.length&&(1===i.length&&(r=i[0]),e.triggerSourceset(r),!0)},wr={};L||(wr=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=o.createElement(this.nodeName.toLowerCase());t.innerHTML=e;var n=o.createDocumentFragment();while(t.childNodes.length)n.appendChild(t.childNodes[0]);return this.innerText="",r.Element.prototype.appendChild.call(this,n),this.innerHTML}}));var Cr=function(e,t){for(var n={},i=0;i<e.length;i++)if(n=Object.getOwnPropertyDescriptor(e[i],t),n&&n.set&&n.get)break;return n.enumerable=!0,n.configurable=!0,n},Sr=function(e){return Cr([e.el(),r.HTMLMediaElement.prototype,r.Element.prototype,wr],"innerHTML")},xr=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},i=Sr(e),r=function(n){return function(){for(var i=arguments.length,r=Array(i),o=0;o<i;o++)r[o]=arguments[o];var s=n.apply(t,r);return _r(e),s}};["append","appendChild","insertAdjacentHTML"].forEach((function(e){t[e]&&(n[e]=t[e],t[e]=r(n[e]))})),Object.defineProperty(t,"innerHTML",bt(i,{set:r(i.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach((function(e){t[e]=n[e]})),Object.defineProperty(t,"innerHTML",i)},e.one("sourceset",t.resetSourceWatch_)}},Or={};L||(Or=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?rn(r.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return r.Element.prototype.setAttribute.call(this,"src",e),e}}));var kr=function(e){return Cr([e.el(),r.HTMLMediaElement.prototype,Or],"src")},Lr=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=kr(e),i=t.setAttribute,r=t.load;Object.defineProperty(t,"src",bt(n,{set:function(i){var r=n.set.call(t,i);return e.triggerSourceset(t.src),r}})),t.setAttribute=function(n,r){var o=i.call(t,n,r);return/src/i.test(n)&&e.triggerSourceset(t.src),o},t.load=function(){var n=r.call(t);return _r(e)||(e.triggerSourceset(""),xr(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):_r(e)||xr(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=r,t.setAttribute=i,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},Er=F(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."]),Dr=function(e){function t(n,i){P(this,t);var r=R(this,e.call(this,n,i)),o=n.source,a=!1;if(o&&(r.el_.currentSrc!==o.src||n.tag&&3===n.tag.initNetworkState_)?r.setSource(o):r.handleLateInit_(r.el_),n.enableSourceset&&r.setupSourcesetHandling_(),r.el_.hasChildNodes()){var l=r.el_.childNodes,c=l.length,u=[];while(c--){var h=l[c],d=h.nodeName.toLowerCase();"track"===d&&(r.featuresNativeTextTracks?(r.remoteTextTrackEls().addTrackElement_(h),r.remoteTextTracks().addTrack(h.track),r.textTracks().addTrack(h.track),a||r.el_.hasAttribute("crossorigin")||!sn(h.src)||(a=!0)):u.push(h))}for(var f=0;f<u.length;f++)r.el_.removeChild(u[f])}return r.proxyNativeTracks_(),r.featuresNativeTextTracks&&a&&Y.warn(s(Er)),r.restoreMetadataTracksInIOSNativePlayer_(),(M||g||C)&&!0===n.nativeControlsForTouch&&r.setControls(!0),r.proxyWebkitFullscreen_(),r.triggerReady(),r}return j(t,e),t.prototype.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},t.prototype.setupSourcesetHandling_=function(){Lr(this)},t.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var e=this.textTracks(),t=void 0,n=function(){t=[];for(var n=0;n<e.length;n++){var i=e[n];"metadata"===i.kind&&t.push({track:i,storedMode:i.mode})}};n(),e.addEventListener("change",n),this.on("dispose",(function(){return e.removeEventListener("change",n)}));var i=function n(){for(var i=0;i<t.length;i++){var r=t[i];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}e.removeEventListener("change",n)};this.on("webkitbeginfullscreen",(function(){e.removeEventListener("change",n),e.removeEventListener("change",i),e.addEventListener("change",i)})),this.on("webkitendfullscreen",(function(){e.removeEventListener("change",n),e.addEventListener("change",n),e.removeEventListener("change",i)}))},t.prototype.proxyNativeTracks_=function(){var e=this;bn.names.forEach((function(t){var n=bn[t],i=e.el()[n.getterName],r=e[n.getterName]();if(e["featuresNative"+n.capitalName+"Tracks"]&&i&&i.addEventListener){var o={change:function(e){r.trigger({type:"change",target:r,currentTarget:r,srcElement:r})},addtrack:function(e){r.addTrack(e.track)},removetrack:function(e){r.removeTrack(e.track)}},s=function(){for(var e=[],t=0;t<r.length;t++){for(var n=!1,o=0;o<i.length;o++)if(i[o]===r[t]){n=!0;break}n||e.push(r[t])}while(e.length)r.removeTrack(e.shift())};Object.keys(o).forEach((function(t){var n=o[t];i.addEventListener(t,n),e.on("dispose",(function(e){return i.removeEventListener(t,n)}))})),e.on("loadstart",s),e.on("dispose",(function(t){return e.off("loadstart",s)}))}}))},t.prototype.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=o.createElement("video");var i=this.options_.tag&&pe(this.options_.tag),r=bt({},i);M&&!0===this.options_.nativeControlsForTouch||delete r.controls,fe(e,H(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}"undefined"!==typeof this.options_.preload&&me(e,"preload",this.options_.preload);for(var s=["loop","muted","playsinline","autoplay"],a=0;a<s.length;a++){var l=s[a],c=this.options_[l];"undefined"!==typeof c&&(c?me(e,l,l):ve(e,l),e[l]=c)}return e},t.prototype.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var i=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",i),void this.ready((function(){this.off("loadstart",n),this.off("loadedmetadata",i),t||this.trigger("loadstart")}))}var r=["loadstart"];r.push("loadedmetadata"),e.readyState>=2&&r.push("loadeddata"),e.readyState>=3&&r.push("canplay"),e.readyState>=4&&r.push("canplaythrough"),this.ready((function(){r.forEach((function(e){this.trigger(e)}),this)}))}},t.prototype.setCurrentTime=function(e){try{this.el_.currentTime=e}catch(t){Y(t,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){var e=this;if(this.el_.duration===1/0&&y&&O&&0===this.el_.currentTime){var t=function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))};return this.on("timeupdate",t),NaN}return this.el_.duration||NaN},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",(function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)}))}},t.prototype.supportsFullScreen=function(){if("function"===typeof this.el_.webkitEnterFullScreen){var e=r.navigator&&r.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},t.prototype.enterFullScreen=function(){var e=this.el_;e.paused&&e.networkState<=e.HAVE_METADATA?(this.el_.play(),this.setTimeout((function(){e.pause(),e.webkitEnterFullScreen()}),0)):e.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.setControls=function(e){this.el_.controls=!!e},t.prototype.addTextTrack=function(t,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,i):e.prototype.addTextTrack.call(this,t,n,i)},t.prototype.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=o.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t["default"]&&(n["default"]=t["default"]),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},t.prototype.addRemoteTextTrack=function(t,n){var i=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},t.prototype.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks){var n=this.$$("track"),i=n.length;while(i--)t!==n[i]&&t!==n[i].track||this.el().removeChild(n[i])}},t.prototype.getVideoPlaybackQuality=function(){if("function"===typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return"undefined"!==typeof this.el().webkitDroppedFrameCount&&"undefined"!==typeof this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),r.performance&&"function"===typeof r.performance.now?e.creationTime=r.performance.now():r.performance&&r.performance.timing&&"number"===typeof r.performance.timing.navigationStart&&(e.creationTime=r.Date.now()-r.performance.timing.navigationStart),e},t}(Cn);if(ne()){Dr.TEST_VID=o.createElement("video");var Ir=o.createElement("track");Ir.kind="captions",Ir.srclang="en",Ir.label="English",Dr.TEST_VID.appendChild(Ir)}Dr.isSupported=function(){try{Dr.TEST_VID.volume=.5}catch(e){return!1}return!(!Dr.TEST_VID||!Dr.TEST_VID.canPlayType)},Dr.canPlayType=function(e){return Dr.TEST_VID.canPlayType(e)},Dr.canPlaySource=function(e,t){return Dr.canPlayType(e.type)},Dr.canControlVolume=function(){try{var e=Dr.TEST_VID.volume;return Dr.TEST_VID.volume=e/2+.1,e!==Dr.TEST_VID.volume}catch(t){return!1}},Dr.canMuteVolume=function(){try{var e=Dr.TEST_VID.muted;return Dr.TEST_VID.muted=!e,Dr.TEST_VID.muted?me(Dr.TEST_VID,"muted","muted"):ve(Dr.TEST_VID,"muted","muted"),e!==Dr.TEST_VID.muted}catch(t){return!1}},Dr.canControlPlaybackRate=function(){if(y&&O&&k<58)return!1;try{var e=Dr.TEST_VID.playbackRate;return Dr.TEST_VID.playbackRate=e/2+.1,e!==Dr.TEST_VID.playbackRate}catch(t){return!1}},Dr.canOverrideAttributes=function(){if(L)return!1;try{var e=function(){};Object.defineProperty(o.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(o.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(o.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(o.createElement("audio"),"innerHTML",{get:e,set:e})}catch(t){return!1}return!0},Dr.supportsNativeTextTracks=function(){return I||v&&O},Dr.supportsNativeVideoTracks=function(){return!(!Dr.TEST_VID||!Dr.TEST_VID.videoTracks)},Dr.supportsNativeAudioTracks=function(){return!(!Dr.TEST_VID||!Dr.TEST_VID.audioTracks)},Dr.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],Dr.prototype.featuresVolumeControl=Dr.canControlVolume(),Dr.prototype.featuresMuteControl=Dr.canMuteVolume(),Dr.prototype.featuresPlaybackRate=Dr.canControlPlaybackRate(),Dr.prototype.featuresSourceset=Dr.canOverrideAttributes(),Dr.prototype.movingMediaElementInDOM=!v,Dr.prototype.featuresFullscreenResize=!0,Dr.prototype.featuresProgressEvents=!0,Dr.prototype.featuresTimeupdateEvents=!0,Dr.prototype.featuresNativeTextTracks=Dr.supportsNativeTextTracks(),Dr.prototype.featuresNativeVideoTracks=Dr.supportsNativeVideoTracks(),Dr.prototype.featuresNativeAudioTracks=Dr.supportsNativeAudioTracks();var Mr=Dr.TEST_VID&&Dr.TEST_VID.constructor.prototype.canPlayType,Tr=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,Ar=/^video\/mp4/i;Dr.patchCanPlayType=function(){_>=4&&!S&&!O?Dr.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&Tr.test(e)?"maybe":Mr.call(this,e)}:w&&(Dr.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&Ar.test(e)?"maybe":Mr.call(this,e)})},Dr.unpatchCanPlayType=function(){var e=Dr.TEST_VID.constructor.prototype.canPlayType;return Dr.TEST_VID.constructor.prototype.canPlayType=Mr,e},Dr.patchCanPlayType(),Dr.disposeMediaElement=function(e){if(e){e.parentNode&&e.parentNode.removeChild(e);while(e.hasChildNodes())e.removeChild(e.firstChild);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},Dr.resetMediaElement=function(e){if(e){var t=e.querySelectorAll("source"),n=t.length;while(n--)e.removeChild(t[n]);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){Dr.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){Dr.prototype["set"+mt(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach((function(e){Dr.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach((function(e){Dr.prototype["set"+mt(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){Dr.prototype[e]=function(){return this.el_[e]()}})),Cn.withSourceHandlers(Dr),Dr.nativeSourceHandler={},Dr.nativeSourceHandler.canPlayType=function(e){try{return Dr.TEST_VID.canPlayType(e)}catch(t){return""}},Dr.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Dr.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=on(e.src);return Dr.nativeSourceHandler.canPlayType("video/"+n)}return""},Dr.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},Dr.nativeSourceHandler.dispose=function(){},Dr.registerSourceHandler(Dr.nativeSourceHandler),Cn.registerTech("Html5",Dr);var Nr=F(["\n Using the tech directly can be dangerous. I hope you know what you're doing.\n See https://github.com/videojs/video.js/issues/2617 for more info.\n "],["\n Using the tech directly can be dangerous. I hope you know what you're doing.\n See https://github.com/videojs/video.js/issues/2617 for more info.\n "]),Pr=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],jr={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Rr=["tiny","xsmall","small","medium","large","xlarge","huge"],Fr={};Rr.forEach((function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Fr[e]="vjs-layout-"+t}));var Br={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Wr=function(e){function t(n,i,r){if(P(this,t),n.id=n.id||i.id||"vjs_video_"+Ae(),i=H(t.getTagSettings(n),i),i.initChildren=!1,i.createEl=!1,i.evented=!1,i.reportTouchActivity=!1,!i.language)if("function"===typeof n.closest){var o=n.closest("[lang]");o&&o.getAttribute&&(i.language=o.getAttribute("lang"))}else{var s=n;while(s&&1===s.nodeType){if(pe(s).hasOwnProperty("lang")){i.language=s.getAttribute("lang");break}s=s.parentNode}}var a=R(this,e.call(this,null,i,r));if(a.log=Z(a.id_),a.isPosterFromTech_=!1,a.queuedCallbacks_=[],a.isReady_=!1,a.hasStarted_=!1,a.userActive_=!1,!a.options_||!a.options_.techOrder||!a.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(a.tag=n,a.tagAttributes=n&&pe(n),a.language(a.options_.language),i.languages){var l={};Object.getOwnPropertyNames(i.languages).forEach((function(e){l[e.toLowerCase()]=i.languages[e]})),a.languages_=l}else a.languages_=t.prototype.options_.languages;a.cache_={},a.poster_=i.poster||"",a.controls_=!!i.controls,a.cache_.lastVolume=1,n.controls=!1,n.removeAttribute("controls"),n.hasAttribute("autoplay")?a.options_.autoplay=!0:a.autoplay(a.options_.autoplay),a.scrubbing_=!1,a.el_=a.createEl(),a.cache_.lastPlaybackRate=a.defaultPlaybackRate(),ft(a,{eventBusKey:"el_"});var c=bt(a.options_);if(i.plugins){var h=i.plugins;Object.keys(h).forEach((function(e){if("function"!==typeof this[e])throw new Error('plugin "'+e+'" does not exist');this[e](h[e])}),a)}a.options_.playerOptions=c,a.middleware_=[],a.initChildren(),a.isAudio("audio"===n.nodeName.toLowerCase()),a.controls()?a.addClass("vjs-controls-enabled"):a.addClass("vjs-controls-disabled"),a.el_.setAttribute("role","region"),a.isAudio()?a.el_.setAttribute("aria-label",a.localize("Audio Player")):a.el_.setAttribute("aria-label",a.localize("Video Player")),a.isAudio()&&a.addClass("vjs-audio"),a.flexNotSupported_()&&a.addClass("vjs-no-flex"),v||a.addClass("vjs-workinghover"),t.players[a.id_]=a;var d=u.split(".")[0];return a.addClass("vjs-v"+d),a.userActive(!0),a.reportUserActivity(),a.one("play",a.listenForUserActivity_),a.on("fullscreenchange",a.handleFullscreenChange_),a.on("stageclick",a.handleStageClick_),a.breakpoints(a.options_.breakpoints),a.responsive(a.options_.responsive),a.changingSrc_=!1,a.playWaitingForReady_=!1,a.playOnLoadstart_=null,a}return j(t,e),t.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),Rn(this),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var t=this.tag,n=void 0,i=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player"),s="video-js"===this.tag.tagName.toLowerCase();i?n=this.el_=t.parentNode:s||(n=this.el_=e.prototype.createEl.call(this,"div"));var a=pe(t);if(s){n=this.el_=t,t=this.tag=o.createElement("video");while(n.children.length)t.appendChild(n.firstChild);ce(n,"video-js")||ue(n,"video-js"),n.appendChild(t),i=this.playerElIngest_=n,["autoplay","controls","crossOrigin","defaultMuted","defaultPlaybackRate","loop","muted","playbackRate","src","volume"].forEach((function(e){"undefined"!==typeof n[e]&&(t[e]=n[e])}))}if(t.setAttribute("tabindex","-1"),a.tabindex="-1",E&&(t.setAttribute("role","application"),a.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in a&&delete a.width,"height"in a&&delete a.height,Object.getOwnPropertyNames(a).forEach((function(e){"class"===e?(n.className+=" "+a[e],s&&(t.className+=" "+a[e])):(n.setAttribute(e,a[e]),s&&t.setAttribute(e,a[e]))})),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=n.player=this,this.addClass("vjs-paused"),!0!==r.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Je("vjs-styles-dimensions");var l=De(".vjs-styles-defaults"),c=De("head");c.insertBefore(this.styleEl_,l?l.nextSibling:c.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var u=t.getElementsByTagName("a"),h=0;h<u.length;h++){var d=u.item(h);ue(d,"vjs-hidden"),d.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!i&&t.parentNode.insertBefore(n,t),le(t,n),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_=n,n},t.prototype.width=function(e){return this.dimension("width",e)},t.prototype.height=function(e){return this.dimension("height",e)},t.prototype.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t)return this[n]=void 0,void this.updateStyleEl_();var i=parseFloat(t);isNaN(i)?Y.error('Improper value "'+t+'" supplied for for '+e):(this[n]=i,this.updateStyleEl_())},t.prototype.fluid=function(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,e?(this.addClass("vjs-fluid"),this.fill(!1)):this.removeClass("vjs-fluid"),this.updateStyleEl_()},t.prototype.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},t.prototype.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},t.prototype.updateStyleEl_=function(){if(!0!==r.VIDEOJS_NO_DYNAMIC_STYLE){var e=void 0,t=void 0,n=void 0,i=void 0;n=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var o=n.split(":"),s=o[1]/o[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/s:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*s,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),et(this.styleEl_,"\n ."+i+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+i+".vjs-fluid {\n padding-top: "+100*s+"%;\n }\n ")}else{var a="number"===typeof this.width_?this.width_:this.options_.width,l="number"===typeof this.height_?this.height_:this.options_.height,c=this.tech_&&this.tech_.el();c&&(a>=0&&(c.width=a),l>=0&&(c.height=l))}},t.prototype.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var i=mt(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(Cn.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;var o="string"!==typeof this.autoplay()&&this.autoplay(),s={source:t,autoplay:o,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};_n.names.forEach((function(e){var t=_n[e];s[t.getterName]=n[t.privateName]})),H(s,this.options_[i]),H(s,this.options_[r]),H(s,this.options_[e.toLowerCase()]),this.tag&&(s.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(s.startTime=this.cache_.currentTime);var a=Cn.getTech(e);if(!a)throw new Error("No Tech named '"+i+"' exists! '"+i+"' should be registered using videojs.registerTech()'");this.tech_=new a(s),this.tech_.ready(tt(this,this.handleTechReady_),!0),Ft.jsonToTextTracks(this.textTracksJson_||[],this.tech_),Pr.forEach((function(e){n.on(n.tech_,e,n["handleTech"+mt(e)+"_"])})),Object.keys(jr).forEach((function(e){n.on(n.tech_,e,(function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+jr[e]+"_"].bind(n),event:t}):n["handleTech"+jr[e]+"_"](t)}))})),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||le(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},t.prototype.unloadTech_=function(){var e=this;_n.names.forEach((function(t){var n=_n[t];e[n.privateName]=e[n.getterName]()})),this.textTracksJson_=Ft.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},t.prototype.tech=function(e){return void 0===e&&Y.warn(s(Nr)),this.tech_},t.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},t.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},t.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused())try{delete this.tag.poster}catch(e){Y("deleting tag.poster throws in some browsers",e)}},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},t.prototype.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"===typeof e){var n=function(){var e=t.muted();t.muted(!0);var n=t.play();if(n&&n.then&&n["catch"])return n["catch"]((function(n){t.muted(e)}))},i=void 0;if("any"===e?(i=this.play(),i&&i.then&&i["catch"]&&i["catch"]((function(){return n()}))):i="muted"===e?n():this.play(),i&&i.then&&i["catch"])return i.then((function(){t.trigger({type:"autoplay-success",autoplay:e})}))["catch"]((function(n){t.trigger({type:"autoplay-failure",autoplay:e})}))}},t.prototype.updateSourceCaches_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e,n="";"string"!==typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=zn(this,t)),this.cache_.source=bt({},e,{src:t,type:n});for(var i=this.cache_.sources.filter((function(e){return e.src&&e.src===t})),r=[],o=this.$$("source"),s=[],a=0;a<o.length;a++){var l=pe(o[a]);r.push(l),l.src&&l.src===t&&s.push(l.src)}s.length&&!i.length?this.cache_.sources=r:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},t.prototype.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},i=this.currentSource().src,r=e.src;if(i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==i)&&(n=function(){}),n(r),!e.src){var o=function e(n){if("sourceset"!==n.type){var i=t.techGet("currentSrc");t.lastSource_.tech=i,t.updateSourceCaches_(i)}t.tech_.off(["sourceset","loadstart"],e)};this.tech_.one(["sourceset","loadstart"],o)}}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},t.prototype.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},t.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},t.prototype.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((function(e){return e.callback(e.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},t.prototype.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",(function(){return e.removeClass("vjs-waiting")}))},t.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},t.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},t.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},t.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},t.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},t.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(Y.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},t.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},t.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},t.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},t.prototype.handleTechClick_=function(e){Ee(e)&&this.controls_&&(this.paused()?Nt(this.play()):this.pause())},t.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},t.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},t.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},t.prototype.handleTechTouchEnd_=function(e){e.preventDefault()},t.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},t.prototype.handleStageClick_=function(){this.reportUserActivity()},t.prototype.handleTechFullscreenChange_=function(e,t){t&&this.isFullscreen(t.isFullscreen),this.trigger("fullscreenchange")},t.prototype.handleTechError_=function(){var e=this.tech_.error();this.error(e)},t.prototype.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(e,t){this.ready((function(){if(e in An)return In(this.middleware_,this.tech_,e,t);if(e in Nn)return Mn(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(n){throw Y(n),n}}),!0)},t.prototype.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Tn)return Dn(this.middleware_,this.tech_,e);if(e in Nn)return Mn(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw Y("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw Y("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw Y(t),t}}},t.prototype.play=function(){var e=this,t=this.options_.Promise||r.Promise;return t?new t((function(t){e.play_(t)})):this.play_()},t.prototype.play_=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nt;if(this.playOnLoadstart_&&this.off("loadstart",this.playOnLoadstart_),this.isReady_){if(!this.changingSrc_&&(this.src()||this.currentSrc()))return void t(this.techGet_("play"));this.playOnLoadstart_=function(){e.playOnLoadstart_=null,t(e.play())},this.one("loadstart",this.playOnLoadstart_)}else{if(this.playWaitingForReady_)return;this.playWaitingForReady_=!0,this.ready((function(){e.playWaitingForReady_=!1,t(e.play())}))}},t.prototype.pause=function(){this.techCall_("pause")},t.prototype.paused=function(){return!1!==this.techGet_("paused")},t.prototype.played=function(){return this.techGet_("played")||St(0,0)},t.prototype.scrubbing=function(e){if("undefined"===typeof e)return this.scrubbing_;this.scrubbing_=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},t.prototype.currentTime=function(e){return"undefined"!==typeof e?(e<0&&(e=0),void this.techCall_("setCurrentTime",e)):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},t.prototype.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;e=parseFloat(e),e<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))},t.prototype.remainingTime=function(){return this.duration()-this.currentTime()},t.prototype.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},t.prototype.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=St(0,0)),e},t.prototype.bufferedPercent=function(){return xt(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},t.prototype.volume=function(e){var t=void 0;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},t.prototype.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},t.prototype.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},t.prototype.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(e){if(void 0===e)return!!this.isFullscreen_;this.isFullscreen_=!!e},t.prototype.requestFullscreen=function(){var e=Ot;this.isFullscreen(!0),e.requestFullscreen?(Ue(o,e.fullscreenchange,tt(this,(function t(n){this.isFullscreen(o[e.fullscreenElement]),!1===this.isFullscreen()&&qe(o,e.fullscreenchange,t),this.trigger("fullscreenchange")}))),this.el_[e.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},t.prototype.exitFullscreen=function(){var e=Ot;this.isFullscreen(!1),e.requestFullscreen?o[e.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},t.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=o.documentElement.style.overflow,Ue(o,"keydown",tt(this,this.fullWindowOnEscKey)),o.documentElement.style.overflow="hidden",ue(o.body,"vjs-full-window"),this.trigger("enterFullWindow")},t.prototype.fullWindowOnEscKey=function(e){27===e.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1,qe(o,"keydown",this.fullWindowOnEscKey),o.documentElement.style.overflow=this.docOrigOverflow,he(o.body,"vjs-full-window"),this.trigger("exitFullWindow")},t.prototype.canPlayType=function(e){for(var t=void 0,n=0,i=this.options_.techOrder;n<i.length;n++){var r=i[n],o=Cn.getTech(r);if(o||(o=yt.getComponent(r)),o){if(o.isSupported()&&(t=o.canPlayType(e),t))return t}else Y.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},t.prototype.selectSource=function(e){var t=this,n=this.options_.techOrder.map((function(e){return[e,Cn.getTech(e)]})).filter((function(e){var t=e[0],n=e[1];return n?n.isSupported():(Y.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),i=function(e,t,n){var i=void 0;return e.some((function(e){return t.some((function(t){if(i=n(e,t),i)return!0}))})),i},r=void 0,o=function(e){return function(t,n){return e(n,t)}},s=function(e,n){var i=e[0],r=e[1];if(r.canPlaySource(n,t.options_[i.toLowerCase()]))return{source:n,tech:i}};return r=this.options_.sourceOrder?i(e,n,o(s)):i(n,e,s),r||!1},t.prototype.src=function(e){var t=this;if("undefined"===typeof e)return this.cache_.src||"";var n=Hn(e);n.length?(this.changingSrc_=!0,this.cache_.sources=n,this.updateSourceCaches_(n[0]),Ln(this,n[0],(function(e,i){t.middleware_=i,t.cache_.sources=n,t.updateSourceCaches_(e);var r=t.src_(e);if(r)return n.length>1?t.src(n.slice(1)):(t.changingSrc_=!1,t.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0),void t.triggerReady());En(i,t.tech_)}))):this.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0)},t.prototype.src_=function(e){var t=this,n=this.selectSource([e]);return!n||(vt(n.tech,this.techName_)?(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1}),!0),!1):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),this.tech_.ready((function(){t.changingSrc_=!1})),!1))},t.prototype.load=function(){this.techCall_("load")},t.prototype.reset=function(){this.tech_&&this.tech_.clearTracks("text"),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},t.prototype.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},t.prototype.currentSource=function(){return this.cache_.source||{}},t.prototype.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},t.prototype.currentType=function(){return this.currentSource()&&this.currentSource().type||""},t.prototype.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},t.prototype.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t=void 0;"string"===typeof e&&/(any|play|muted)/.test(e)?(this.options_.autoplay=e,this.manualAutoplay_(e),t=!1):this.options_.autoplay=!!e,t=t||this.options_.autoplay,this.tech_&&this.techCall_("setAutoplay",t)},t.prototype.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},t.prototype.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},t.prototype.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},t.prototype.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},t.prototype.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},t.prototype.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},t.prototype.error=function(e){return void 0===e?this.error_||null:null===e?(this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close())):(this.error_=new Mt(e),this.addClass("vjs-error"),Y.error("(CODE:"+this.error_.code+" "+Mt.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger("error"))},t.prototype.reportUserActivity=function(e){this.userActivity_=!0},t.prototype.userActive=function(e){if(void 0===e)return this.userActive_;if(e=!!e,e!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(e){e.stopPropagation(),e.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},t.prototype.listenForUserActivity_=function(){var e=void 0,t=void 0,n=void 0,i=tt(this,this.reportUserActivity),r=function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,i())},o=function(){i(),this.clearInterval(e),e=this.setInterval(i,250)},s=function(t){i(),this.clearInterval(e)};this.on("mousedown",o),this.on("mousemove",r),this.on("mouseup",s),this.on("keydown",i),this.on("keyup",i);var a=void 0;this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(a);var e=this.options_.inactivityTimeout;e<=0||(a=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}}),250)},t.prototype.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},t.prototype.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},t.prototype.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},t.prototype.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},t.prototype.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},t.prototype.removeRemoteTextTrack=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.track,n=void 0===t?arguments[0]:t;if(this.tech_)return this.tech_.removeRemoteTextTrack(n)},t.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},t.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},t.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},t.prototype.language=function(e){if(void 0===e)return this.language_;this.language_=String(e).toLowerCase()},t.prototype.languages=function(){return bt(t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var e=bt(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var i=t[n];i=bt(i),i.player=void 0,e.tracks[n]=i}return e},t.prototype.createModal=function(e,t){var n=this;t=t||{},t.content=e||"";var i=new Vt(this,t);return this.addChild(i),i.on("dispose",(function(){n.removeChild(i)})),i.open(),i},t.prototype.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<Rr.length;n++){var i=Rr[n],r=this.breakpoints_[i];if(t<=r){if(e===i)return;e&&this.removeClass(Fr[e]),this.addClass(Fr[i]),this.breakpoint_=i;break}}},t.prototype.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},t.prototype.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=H({},Br,e),this.updateCurrentBreakpoint_()),H(this.breakpoints_)},t.prototype.responsive=function(e){if(void 0===e)return this.responsive_;e=Boolean(e);var t=this.responsive_;return e!==t?(this.responsive_=e,e?(this.on("playerresize",this.updateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.updateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},t.prototype.currentBreakpoint=function(){return this.breakpoint_},t.prototype.currentBreakpointClass=function(){return Fr[this.breakpoint_]||""},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=pe(e),i=n["data-setup"];if(ce(e,"vjs-fill")&&(n.fill=!0),ce(e,"vjs-fluid")&&(n.fluid=!0),null!==i){var r=a(i||"{}"),o=r[0],s=r[1];o&&Y.error(o),H(n,s)}if(H(t,n),e.hasChildNodes())for(var l=e.childNodes,c=0,u=l.length;c<u;c++){var h=l[c],d=h.nodeName.toLowerCase();"source"===d?t.sources.push(pe(h)):"track"===d&&t.tracks.push(pe(h))}return t},t.prototype.flexNotSupported_=function(){var e=o.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},t}(yt);_n.names.forEach((function(e){var t=_n[e];Wr.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),Wr.players={};var Vr=r.navigator;Wr.prototype.options_={techOrder:Cn.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:Vr&&(Vr.languages&&Vr.languages[0]||Vr.userLanguage||Vr.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",breakpoints:{},responsive:!1},L||Wr.prototype.options_.children.push("resizeManager"),["ended","seeking","seekable","networkState","readyState"].forEach((function(e){Wr.prototype[e]=function(){return this.techGet_(e)}})),Pr.forEach((function(e){Wr.prototype["handleTech"+mt(e)+"_"]=function(){return this.trigger(e)}})),yt.registerComponent("Player",Wr);var zr="plugin",Hr="activePlugins_",Ur={},qr=function(e){return Ur.hasOwnProperty(e)},$r=function(e){return qr(e)?Ur[e]:void 0},Kr=function(e,t){e[Hr]=e[Hr]||{},e[Hr][t]=!0},Gr=function(e,t,n){var i=(n?"before":"")+"pluginsetup";e.trigger(i,t),e.trigger(i+":"+t.name,t)},Yr=function(e,t){var n=function(){Gr(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return Kr(this,e),Gr(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach((function(e){n[e]=t[e]})),n},Zr=function(e,t){return t.prototype.name=e,function(){Gr(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];var o=new(Function.prototype.bind.apply(t,[null].concat([this].concat(i))));return this[e]=function(){return o},Gr(this,o.getEventHash()),o}},Xr=function(){function e(t){if(P(this,e),this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,ft(this),delete this.trigger,gt(this,this.constructor.defaultState),Kr(t,this.name),this.dispose=tt(this,this.dispose),t.on("dispose",this.dispose)}return e.prototype.version=function(){return this.constructor.VERSION},e.prototype.getEventHash=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.name=this.name,e.plugin=this.constructor,e.instance=this,e},e.prototype.trigger=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return $e(this.eventBusEl_,e,this.getEventHash(t))},e.prototype.handleStateChanged=function(e){},e.prototype.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[Hr][e]=!1,this.player=this.state=null,t[e]=Zr(e,Ur[e])},e.isBasic=function(t){var n="string"===typeof t?$r(t):t;return"function"===typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!==typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+("undefined"===typeof t?"undefined":N(t))+".");if(qr(t))Y.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Wr.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!==typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+("undefined"===typeof n?"undefined":N(n))+".");return Ur[t]=n,t!==zr&&(e.isBasic(n)?Wr.prototype[t]=Yr(t,n):Wr.prototype[t]=Zr(t,n)),n},e.deregisterPlugin=function(e){if(e===zr)throw new Error("Cannot de-register base plugin.");qr(e)&&(delete Ur[e],delete Wr.prototype[e])},e.getPlugins=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.keys(Ur),t=void 0;return e.forEach((function(e){var n=$r(e);n&&(t=t||{},t[e]=n)})),t},e.getPluginVersion=function(e){var t=$r(e);return t&&t.VERSION||""},e}();Xr.getPlugin=$r,Xr.BASE_PLUGIN_NAME=zr,Xr.registerPlugin(zr,Xr),Wr.prototype.usingPlugin=function(e){return!!this[Hr]&&!0===this[Hr][e]},Wr.prototype.hasPlugin=function(e){return!!qr(e)};var Qr=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof t?"undefined":N(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.super_=t)},Jr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){e.apply(this,arguments)},i={};for(var r in"object"===("undefined"===typeof t?"undefined":N(t))?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),i=t):"function"===typeof t&&(n=t),Qr(n,e),i)i.hasOwnProperty(r)&&(n.prototype[r]=i[r]);return n};"undefined"===typeof HTMLVideoElement&&ne()&&(o.createElement("video"),o.createElement("audio"),o.createElement("track"),o.createElement("video-js"));var eo=function(e){return 0===e.indexOf("#")?e.slice(1):e};function to(e,t,n){var i=to.getPlayer(e);if(i)return t&&Y.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&i.ready(n),i;var r="string"===typeof e?De("#"+eo(e)):e;if(!ie(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");o.body.contains(r)||Y.warn("The element supplied is not included in the DOM"),t=t||{},to.hooks("beforesetup").forEach((function(e){var n=e(r,bt(t));U(n)&&!Array.isArray(n)?t=bt(t,n):Y.error("please return an object in beforesetup hooks")}));var s=yt.getComponent("Player");return i=new s(r,t,n),to.hooks("setup").forEach((function(e){return e(i)})),i}if(to.hooks_={},to.hooks=function(e,t){return to.hooks_[e]=to.hooks_[e]||[],t&&(to.hooks_[e]=to.hooks_[e].concat(t)),to.hooks_[e]},to.hook=function(e,t){to.hooks(e,t)},to.hookOnce=function(e,t){to.hooks(e,[].concat(t).map((function(t){var n=function n(){return to.removeHook(e,n),t.apply(void 0,arguments)};return n})))},to.removeHook=function(e,t){var n=to.hooks(e).indexOf(t);return!(n<=-1)&&(to.hooks_[e]=to.hooks_[e].slice(),to.hooks_[e].splice(n,1),!0)},!0!==r.VIDEOJS_NO_DYNAMIC_STYLE&&ne()){var no=De(".vjs-styles-defaults");if(!no){no=Je("vjs-styles-defaults");var io=De("head");io&&io.insertBefore(no,io.firstChild),et(no,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}Qe(1,to),to.VERSION=u,to.options=Wr.prototype.options_,to.getPlayers=function(){return Wr.players},to.getPlayer=function(e){var t=Wr.players,n=void 0;if("string"===typeof e){var i=eo(e),r=t[i];if(r)return r;n=De("#"+i)}else n=e;if(ie(n)){var o=n,s=o.player,a=o.playerId;if(s||t[a])return s||t[a]}},to.getAllPlayers=function(){return Object.keys(Wr.players).map((function(e){return Wr.players[e]})).filter(Boolean)},to.players=Wr.players,to.getComponent=yt.getComponent,to.registerComponent=function(e,t){Cn.isTech(t)&&Y.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),yt.registerComponent.call(yt,e,t)},to.getTech=Cn.getTech,to.registerTech=Cn.registerTech,to.use=kn,!L&&Object.defineProperty?(Object.defineProperty(to,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(to.middleware,"TERMINATOR",{value:On,writeable:!1,enumerable:!0})):to.middleware={TERMINATOR:On},to.browser=A,to.TOUCH_ENABLED=M,to.extend=Jr,to.mergeOptions=bt,to.bind=tt,to.registerPlugin=Xr.registerPlugin,to.deregisterPlugin=Xr.deregisterPlugin,to.plugin=function(e,t){return Y.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Xr.registerPlugin(e,t)},to.getPlugins=Xr.getPlugins,to.getPlugin=Xr.getPlugin,to.getPluginVersion=Xr.getPluginVersion,to.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),to.options.languages=bt(to.options.languages,(n={},n[e]=t,n)),to.options.languages[e]},to.log=Y,to.createLogger=Z,to.createTimeRange=to.createTimeRanges=St,to.formatTime=ci,to.setFormatTime=ai,to.resetFormatTime=li,to.parseUrl=nn,to.isCrossOrigin=sn,to.EventTarget=rt,to.on=Ue,to.one=Ke,to.off=qe,to.trigger=$e,to.xhr=l,to.TextTrack=un,to.AudioTrack=hn,to.VideoTrack=dn,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(e){to[e]=function(){return Y.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Me[e].apply(null,arguments)}})),to.computedStyle=X,to.dom=Me,to.url=an,e.exports=to},"3d37":function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return h}));var i=n("30db"),r=n("3742"),o=n("32b8");function s(e){return e.replace(/[\\/]/g,o["e"].sep)}function a(e){return-1===e.indexOf("/")&&(e=s(e)),/^[a-zA-Z]:(\/|$)/.test(e)&&(e="/"+e),e}function l(e,t,n,i=o["h"]){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){const n=Object(r["S"])(e,t);if(!n)return!1;if(t.length===e.length)return!0;let o=t.length;return t.charAt(t.length-1)===i&&o--,e.charAt(o)===i}return t.charAt(t.length-1)!==i&&(t+=i),0===e.indexOf(t)}function c(e){return e>=65&&e<=90||e>=97&&e<=122}function u(e){const t=Object(o["d"])(e);return i["j"]?!(e.length>3)&&(h(t)&&(2===e.length||92===t.charCodeAt(2))):t===o["e"].sep}function h(e){return!!i["j"]&&(c(e.charCodeAt(0))&&58===e.charCodeAt(1))}},"3d67":function(e,t,n){"use strict";n.r(t),n.d(t,"Stack",(function(){return c})),n.d(t,"Queue",(function(){return d})),n.d(t,"PriorityQueue",(function(){return v})),n.d(t,"Vector",(function(){return M})),n.d(t,"LinkList",(function(){return j})),n.d(t,"Deque",(function(){return H})),n.d(t,"OrderedSet",(function(){return se})),n.d(t,"OrderedMap",(function(){return de})),n.d(t,"HashSet",(function(){return we})),n.d(t,"HashMap",(function(){return ke}));var i=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=function(){function e(e){void 0===e&&(e=0),this.iteratorType=e}return e.prototype.equals=function(e){return this.o===e.o},e}(),o=function(){function e(){this.M=0}return Object.defineProperty(e.prototype,"length",{get:function(){return this.M},enumerable:!1,configurable:!0}),e.prototype.size=function(){return this.M},e.prototype.empty=function(){return 0===this.M},e}(),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(o),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(e){function t(t){void 0===t&&(t=[]);var n=e.call(this)||this;n.nt=[];var i=n;return t.forEach((function(e){i.push(e)})),n}return a(t,e),t.prototype.clear=function(){this.M=0,this.nt=[]},t.prototype.push=function(e){return this.nt.push(e),this.M+=1,this.M},t.prototype.pop=function(){if(0!==this.M)return this.M-=1,this.nt.pop()},t.prototype.top=function(){return this.nt[this.M-1]},t}(o),c=l,u=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),h=function(e){function t(t){void 0===t&&(t=[]);var n=e.call(this)||this;n.A=0,n.tt=[];var i=n;return t.forEach((function(e){i.push(e)})),n}return u(t,e),t.prototype.clear=function(){this.tt=[],this.M=this.A=0},t.prototype.push=function(e){var t=this.tt.length;if(this.A/t>.5&&this.A+this.M>=t&&t>4096){for(var n=this.M,i=0;i<n;++i)this.tt[i]=this.tt[this.A+i];this.A=0,this.tt[this.M]=e}else this.tt[this.A+this.M]=e;return++this.M},t.prototype.pop=function(){if(0!==this.M){var e=this.tt[this.A++];return this.M-=1,e}},t.prototype.front=function(){if(0!==this.M)return this.tt[this.A]},t}(o),d=h,f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),s=[];try{while((void 0===t||t-- >0)&&!(i=o.next()).done)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}return s},g=function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},m=function(e){function t(t,n,i){void 0===t&&(t=[]),void 0===n&&(n=function(e,t){return e>t?-1:e<t?1:0}),void 0===i&&(i=!0);var r=e.call(this)||this;if(r.$=n,Array.isArray(t))r.ii=i?g([],p(t),!1):t;else{r.ii=[];var o=r;t.forEach((function(e){o.ii.push(e)}))}r.M=r.ii.length;for(var s=r.M>>1,a=r.M-1>>1;a>=0;--a)r.ri(a,s);return r}return f(t,e),t.prototype.ti=function(e){var t=this.ii[e];while(e>0){var n=e-1>>1,i=this.ii[n];if(this.$(i,t)<=0)break;this.ii[e]=i,e=n}this.ii[e]=t},t.prototype.ri=function(e,t){var n=this.ii[e];while(e<t){var i=e<<1|1,r=i+1,o=this.ii[i];if(r<this.M&&this.$(o,this.ii[r])>0&&(i=r,o=this.ii[r]),this.$(o,n)>=0)break;this.ii[e]=o,e=i}this.ii[e]=n},t.prototype.clear=function(){this.M=0,this.ii.length=0},t.prototype.push=function(e){this.ii.push(e),this.ti(this.M),this.M+=1},t.prototype.pop=function(){if(0!==this.M){var e=this.ii[0],t=this.ii.pop();return this.M-=1,this.M&&(this.ii[0]=t,this.ri(0,this.M>>1)),e}},t.prototype.top=function(){return this.ii[0]},t.prototype.find=function(e){return this.ii.indexOf(e)>=0},t.prototype.remove=function(e){var t=this.ii.indexOf(e);return!(t<0)&&(0===t?this.pop():t===this.M-1?(this.ii.pop(),this.M-=1):(this.ii.splice(t,1,this.ii.pop()),this.M-=1,this.ti(t),this.ri(t,this.M>>1)),!0)},t.prototype.updateItem=function(e){var t=this.ii.indexOf(e);return!(t<0)&&(this.ti(t),this.ri(t,this.M>>1),!0)},t.prototype.toArray=function(){return g([],p(this.ii),!1)},t}(o),v=m,b=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return b(t,e),t}(s),_=y;function w(){throw new RangeError("Iterator access denied!")}var C=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),S=function(e){function t(t,n){var i=e.call(this,n)||this;return i.o=t,0===i.iteratorType?(i.pre=function(){return 0===this.o&&w(),this.o-=1,this},i.next=function(){return this.o===this.container.size()&&w(),this.o+=1,this}):(i.pre=function(){return this.o===this.container.size()-1&&w(),this.o+=1,this},i.next=function(){return-1===this.o&&w(),this.o-=1,this}),i}return C(t,e),Object.defineProperty(t.prototype,"pointer",{get:function(){return this.container.getElementByPos(this.o)},set:function(e){this.container.setElementByPos(this.o,e)},enumerable:!1,configurable:!0}),t}(r),x=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),O=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},k=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),s=[];try{while((void 0===t||t-- >0)&&!(i=o.next()).done)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}return s},L=function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},E=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},D=function(e){function t(t,n,i){var r=e.call(this,t,i)||this;return r.container=n,r}return x(t,e),t.prototype.copy=function(){return new t(this.o,this.container,this.iteratorType)},t}(S),I=function(e){function t(t,n){void 0===t&&(t=[]),void 0===n&&(n=!0);var i=e.call(this)||this;if(Array.isArray(t))i.J=n?L([],k(t),!1):t,i.M=t.length;else{i.J=[];var r=i;t.forEach((function(e){r.pushBack(e)}))}return i}return x(t,e),t.prototype.clear=function(){this.M=0,this.J.length=0},t.prototype.begin=function(){return new D(0,this)},t.prototype.end=function(){return new D(this.M,this)},t.prototype.rBegin=function(){return new D(this.M-1,this,1)},t.prototype.rEnd=function(){return new D(-1,this,1)},t.prototype.front=function(){return this.J[0]},t.prototype.back=function(){return this.J[this.M-1]},t.prototype.getElementByPos=function(e){if(e<0||e>this.M-1)throw new RangeError;return this.J[e]},t.prototype.eraseElementByPos=function(e){if(e<0||e>this.M-1)throw new RangeError;return this.J.splice(e,1),this.M-=1,this.M},t.prototype.eraseElementByValue=function(e){for(var t=0,n=0;n<this.M;++n)this.J[n]!==e&&(this.J[t++]=this.J[n]);return this.M=this.J.length=t,this.M},t.prototype.eraseElementByIterator=function(e){var t=e.o;return e=e.next(),this.eraseElementByPos(t),e},t.prototype.pushBack=function(e){return this.J.push(e),this.M+=1,this.M},t.prototype.popBack=function(){if(0!==this.M)return this.M-=1,this.J.pop()},t.prototype.setElementByPos=function(e,t){if(e<0||e>this.M-1)throw new RangeError;this.J[e]=t},t.prototype.insert=function(e,t,n){var i;if(void 0===n&&(n=1),e<0||e>this.M)throw new RangeError;return(i=this.J).splice.apply(i,L([e,0],k(new Array(n).fill(t)),!1)),this.M+=n,this.M},t.prototype.find=function(e){for(var t=0;t<this.M;++t)if(this.J[t]===e)return new D(t,this);return this.end()},t.prototype.reverse=function(){this.J.reverse()},t.prototype.unique=function(){for(var e=1,t=1;t<this.M;++t)this.J[t]!==this.J[t-1]&&(this.J[e++]=this.J[t]);return this.M=this.J.length=e,this.M},t.prototype.sort=function(e){this.J.sort(e)},t.prototype.forEach=function(e){for(var t=0;t<this.M;++t)e(this.J[t],t,this)},t.prototype[Symbol.iterator]=function(){return function(){return O(this,(function(e){switch(e.label){case 0:return[5,E(this.J)];case 1:return e.sent(),[2]}}))}.bind(this)()},t}(_),M=I,T=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),A=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},N=function(e){function t(t,n,i,r){var o=e.call(this,r)||this;return o.o=t,o.h=n,o.container=i,0===o.iteratorType?(o.pre=function(){return this.o.L===this.h&&w(),this.o=this.o.L,this},o.next=function(){return this.o===this.h&&w(),this.o=this.o.m,this}):(o.pre=function(){return this.o.m===this.h&&w(),this.o=this.o.m,this},o.next=function(){return this.o===this.h&&w(),this.o=this.o.L,this}),o}return T(t,e),Object.defineProperty(t.prototype,"pointer",{get:function(){return this.o===this.h&&w(),this.o.p},set:function(e){this.o===this.h&&w(),this.o.p=e},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.o,this.h,this.container,this.iteratorType)},t}(r),P=function(e){function t(t){void 0===t&&(t=[]);var n=e.call(this)||this;n.h={},n.H=n.l=n.h.L=n.h.m=n.h;var i=n;return t.forEach((function(e){i.pushBack(e)})),n}return T(t,e),t.prototype.G=function(e){var t=e.L,n=e.m;t.m=n,n.L=t,e===this.H&&(this.H=n),e===this.l&&(this.l=t),this.M-=1},t.prototype.F=function(e,t){var n=t.m,i={p:e,L:t,m:n};t.m=i,n.L=i,t===this.h&&(this.H=i),n===this.h&&(this.l=i),this.M+=1},t.prototype.clear=function(){this.M=0,this.H=this.l=this.h.L=this.h.m=this.h},t.prototype.begin=function(){return new N(this.H,this.h,this)},t.prototype.end=function(){return new N(this.h,this.h,this)},t.prototype.rBegin=function(){return new N(this.l,this.h,this,1)},t.prototype.rEnd=function(){return new N(this.h,this.h,this,1)},t.prototype.front=function(){return this.H.p},t.prototype.back=function(){return this.l.p},t.prototype.getElementByPos=function(e){if(e<0||e>this.M-1)throw new RangeError;var t=this.H;while(e--)t=t.m;return t.p},t.prototype.eraseElementByPos=function(e){if(e<0||e>this.M-1)throw new RangeError;var t=this.H;while(e--)t=t.m;return this.G(t),this.M},t.prototype.eraseElementByValue=function(e){var t=this.H;while(t!==this.h)t.p===e&&this.G(t),t=t.m;return this.M},t.prototype.eraseElementByIterator=function(e){var t=e.o;return t===this.h&&w(),e=e.next(),this.G(t),e},t.prototype.pushBack=function(e){return this.F(e,this.l),this.M},t.prototype.popBack=function(){if(0!==this.M){var e=this.l.p;return this.G(this.l),e}},t.prototype.pushFront=function(e){return this.F(e,this.h),this.M},t.prototype.popFront=function(){if(0!==this.M){var e=this.H.p;return this.G(this.H),e}},t.prototype.setElementByPos=function(e,t){if(e<0||e>this.M-1)throw new RangeError;var n=this.H;while(e--)n=n.m;n.p=t},t.prototype.insert=function(e,t,n){if(void 0===n&&(n=1),e<0||e>this.M)throw new RangeError;if(n<=0)return this.M;if(0===e)while(n--)this.pushFront(t);else if(e===this.M)while(n--)this.pushBack(t);else{for(var i=this.H,r=1;r<e;++r)i=i.m;var o=i.m;this.M+=n;while(n--)i.m={p:t,L:i},i.m.L=i,i=i.m;i.m=o,o.L=i}return this.M},t.prototype.find=function(e){var t=this.H;while(t!==this.h){if(t.p===e)return new N(t,this.h,this);t=t.m}return this.end()},t.prototype.reverse=function(){if(!(this.M<=1)){var e=this.H,t=this.l,n=0;while(n<<1<this.M){var i=e.p;e.p=t.p,t.p=i,e=e.m,t=t.L,n+=1}}},t.prototype.unique=function(){if(this.M<=1)return this.M;var e=this.H;while(e!==this.h){var t=e;while(t.m!==this.h&&t.p===t.m.p)t=t.m,this.M-=1;e.m=t.m,e.m.L=e,e=e.m}return this.M},t.prototype.sort=function(e){if(!(this.M<=1)){var t=[];this.forEach((function(e){t.push(e)})),t.sort(e);var n=this.H;t.forEach((function(e){n.p=e,n=n.m}))}},t.prototype.merge=function(e){var t=this;if(0===this.M)e.forEach((function(e){t.pushBack(e)}));else{var n=this.H;e.forEach((function(e){while(n!==t.h&&n.p<=e)n=n.m;t.F(e,n.L)}))}return this.M},t.prototype.forEach=function(e){var t=this.H,n=0;while(t!==this.h)e(t.p,n++,this),t=t.m},t.prototype[Symbol.iterator]=function(){return function(){var e;return A(this,(function(t){switch(t.label){case 0:if(0===this.M)return[2];e=this.H,t.label=1;case 1:return e===this.h?[3,3]:[4,e.p];case 2:return t.sent(),e=e.m,[3,1];case 3:return[2]}}))}.bind(this)()},t}(_),j=P,R=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),F=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},B=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),s=[];try{while((void 0===t||t-- >0)&&!(i=o.next()).done)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}return s},W=function(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},V=function(e){function t(t,n,i){var r=e.call(this,t,i)||this;return r.container=n,r}return R(t,e),t.prototype.copy=function(){return new t(this.o,this.container,this.iteratorType)},t}(S),z=function(e){function t(t,n){void 0===t&&(t=[]),void 0===n&&(n=4096);var i=e.call(this)||this;i.A=0,i.S=0,i.R=0,i.k=0,i.C=0,i.j=[];var r=function(){if("number"===typeof t.length)return t.length;if("number"===typeof t.size)return t.size;if("function"===typeof t.size)return t.size();throw new TypeError("Cannot get the length or size of the container")}();i.B=n,i.C=Math.max(Math.ceil(r/i.B),1);for(var o=0;o<i.C;++o)i.j.push(new Array(i.B));var s=Math.ceil(r/i.B);i.A=i.R=(i.C>>1)-(s>>1),i.S=i.k=i.B-r%i.B>>1;var a=i;return t.forEach((function(e){a.pushBack(e)})),i}return R(t,e),t.prototype.O=function(){for(var e=[],t=Math.max(this.C>>1,1),n=0;n<t;++n)e[n]=new Array(this.B);for(n=this.A;n<this.C;++n)e[e.length]=this.j[n];for(n=0;n<this.R;++n)e[e.length]=this.j[n];e[e.length]=W([],B(this.j[this.R]),!1),this.A=t,this.R=e.length-1;for(n=0;n<t;++n)e[e.length]=new Array(this.B);this.j=e,this.C=e.length},t.prototype.T=function(e){var t=this.S+e+1,n=t%this.B,i=n-1,r=this.A+(t-n)/this.B;return 0===n&&(r-=1),r%=this.C,i<0&&(i+=this.B),{curNodeBucketIndex:r,curNodePointerIndex:i}},t.prototype.clear=function(){this.j=[new Array(this.B)],this.C=1,this.A=this.R=this.M=0,this.S=this.k=this.B>>1},t.prototype.begin=function(){return new V(0,this)},t.prototype.end=function(){return new V(this.M,this)},t.prototype.rBegin=function(){return new V(this.M-1,this,1)},t.prototype.rEnd=function(){return new V(-1,this,1)},t.prototype.front=function(){if(0!==this.M)return this.j[this.A][this.S]},t.prototype.back=function(){if(0!==this.M)return this.j[this.R][this.k]},t.prototype.pushBack=function(e){return this.M&&(this.k<this.B-1?this.k+=1:this.R<this.C-1?(this.R+=1,this.k=0):(this.R=0,this.k=0),this.R===this.A&&this.k===this.S&&this.O()),this.M+=1,this.j[this.R][this.k]=e,this.M},t.prototype.popBack=function(){if(0!==this.M){var e=this.j[this.R][this.k];return 1!==this.M&&(this.k>0?this.k-=1:this.R>0?(this.R-=1,this.k=this.B-1):(this.R=this.C-1,this.k=this.B-1)),this.M-=1,e}},t.prototype.pushFront=function(e){return this.M&&(this.S>0?this.S-=1:this.A>0?(this.A-=1,this.S=this.B-1):(this.A=this.C-1,this.S=this.B-1),this.A===this.R&&this.S===this.k&&this.O()),this.M+=1,this.j[this.A][this.S]=e,this.M},t.prototype.popFront=function(){if(0!==this.M){var e=this.j[this.A][this.S];return 1!==this.M&&(this.S<this.B-1?this.S+=1:this.A<this.C-1?(this.A+=1,this.S=0):(this.A=0,this.S=0)),this.M-=1,e}},t.prototype.getElementByPos=function(e){if(e<0||e>this.M-1)throw new RangeError;var t=this.T(e),n=t.curNodeBucketIndex,i=t.curNodePointerIndex;return this.j[n][i]},t.prototype.setElementByPos=function(e,t){if(e<0||e>this.M-1)throw new RangeError;var n=this.T(e),i=n.curNodeBucketIndex,r=n.curNodePointerIndex;this.j[i][r]=t},t.prototype.insert=function(e,t,n){if(void 0===n&&(n=1),e<0||e>this.M)throw new RangeError;if(0===e)while(n--)this.pushFront(t);else if(e===this.M)while(n--)this.pushBack(t);else{for(var i=[],r=e;r<this.M;++r)i.push(this.getElementByPos(r));this.cut(e-1);for(r=0;r<n;++r)this.pushBack(t);for(r=0;r<i.length;++r)this.pushBack(i[r])}return this.M},t.prototype.cut=function(e){if(e<0)return this.clear(),0;var t=this.T(e),n=t.curNodeBucketIndex,i=t.curNodePointerIndex;return this.R=n,this.k=i,this.M=e+1,this.M},t.prototype.eraseElementByPos=function(e){if(e<0||e>this.M-1)throw new RangeError;if(0===e)this.popFront();else if(e===this.M-1)this.popBack();else{for(var t=[],n=e+1;n<this.M;++n)t.push(this.getElementByPos(n));this.cut(e),this.popBack();var i=this;t.forEach((function(e){i.pushBack(e)}))}return this.M},t.prototype.eraseElementByValue=function(e){if(0===this.M)return 0;for(var t=[],n=0;n<this.M;++n){var i=this.getElementByPos(n);i!==e&&t.push(i)}var r=t.length;for(n=0;n<r;++n)this.setElementByPos(n,t[n]);return this.cut(r-1)},t.prototype.eraseElementByIterator=function(e){var t=e.o;return this.eraseElementByPos(t),e=e.next(),e},t.prototype.find=function(e){for(var t=0;t<this.M;++t)if(this.getElementByPos(t)===e)return new V(t,this);return this.end()},t.prototype.reverse=function(){var e=0,t=this.M-1;while(e<t){var n=this.getElementByPos(e);this.setElementByPos(e,this.getElementByPos(t)),this.setElementByPos(t,n),e+=1,t-=1}},t.prototype.unique=function(){if(this.M<=1)return this.M;for(var e=1,t=this.getElementByPos(0),n=1;n<this.M;++n){var i=this.getElementByPos(n);i!==t&&(t=i,this.setElementByPos(e++,i))}while(this.M>e)this.popBack();return this.M},t.prototype.sort=function(e){for(var t=[],n=0;n<this.M;++n)t.push(this.getElementByPos(n));t.sort(e);for(n=0;n<this.M;++n)this.setElementByPos(n,t[n])},t.prototype.shrinkToFit=function(){if(0!==this.M){var e=[];this.forEach((function(t){e.push(t)})),this.C=Math.max(Math.ceil(this.M/this.B),1),this.M=this.A=this.R=this.S=this.k=0,this.j=[];for(var t=0;t<this.C;++t)this.j.push(new Array(this.B));for(t=0;t<e.length;++t)this.pushBack(e[t])}},t.prototype.forEach=function(e){for(var t=0;t<this.M;++t)e(this.getElementByPos(t),t,this)},t.prototype[Symbol.iterator]=function(){return function(){var e;return F(this,(function(t){switch(t.label){case 0:e=0,t.label=1;case 1:return e<this.M?[4,this.getElementByPos(e)]:[3,4];case 2:t.sent(),t.label=3;case 3:return++e,[3,1];case 4:return[2]}}))}.bind(this)()},t}(_),H=z,U=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),q=function(){function e(e,t){this.ee=1,this.u=void 0,this.p=void 0,this.K=void 0,this.N=void 0,this.rr=void 0,this.u=e,this.p=t}return e.prototype.L=function(){var e=this;if(1===e.ee&&e.rr.rr===e)e=e.N;else if(e.K){e=e.K;while(e.N)e=e.N}else{var t=e.rr;while(t.K===e)e=t,t=e.rr;e=t}return e},e.prototype.m=function(){var e=this;if(e.N){e=e.N;while(e.K)e=e.K;return e}var t=e.rr;while(t.N===e)e=t,t=e.rr;return e.N!==t?t:e},e.prototype.ne=function(){var e=this.rr,t=this.N,n=t.K;return e.rr===this?e.rr=t:e.K===this?e.K=t:e.N=t,t.rr=e,t.K=this,this.rr=t,this.N=n,n&&(n.rr=this),t},e.prototype.te=function(){var e=this.rr,t=this.K,n=t.N;return e.rr===this?e.rr=t:e.K===this?e.K=t:e.N=t,t.rr=e,t.N=this,this.rr=t,this.K=n,n&&(n.rr=this),t},e}(),$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.tr=1,t}return U(t,e),t.prototype.ne=function(){var t=e.prototype.ne.call(this);return this.ie(),t.ie(),t},t.prototype.te=function(){var t=e.prototype.te.call(this);return this.ie(),t.ie(),t},t.prototype.ie=function(){this.tr=1,this.K&&(this.tr+=this.K.tr),this.N&&(this.tr+=this.N.tr)},t}(q),K=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),G=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),s=[];try{while((void 0===t||t-- >0)&&!(i=o.next()).done)s.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}return s},Y=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Z=function(e){function t(t,n){void 0===t&&(t=function(e,t){return e<t?-1:e>t?1:0}),void 0===n&&(n=!1);var i=e.call(this)||this;return i.W=void 0,i.$=t,n?(i.re=$,i.v=function(e,t,n){var i=this.se(e,t,n);if(i){var r=i.rr;while(r!==this.h)r.tr+=1,r=r.rr;var o=this.fe(i);if(o){var s=o,a=s.parentNode,l=s.grandParent,c=s.curNode;a.ie(),l.ie(),c.ie()}}return this.M},i.G=function(e){var t=this.he(e);while(t!==this.h)t.tr-=1,t=t.rr}):(i.re=q,i.v=function(e,t,n){var i=this.se(e,t,n);return i&&this.fe(i),this.M},i.G=i.he),i.h=new i.re,i}return K(t,e),t.prototype.U=function(e,t){var n=this.h;while(e){var i=this.$(e.u,t);if(i<0)e=e.N;else{if(!(i>0))return e;n=e,e=e.K}}return n},t.prototype.X=function(e,t){var n=this.h;while(e){var i=this.$(e.u,t);i<=0?e=e.N:(n=e,e=e.K)}return n},t.prototype.Y=function(e,t){var n=this.h;while(e){var i=this.$(e.u,t);if(i<0)n=e,e=e.N;else{if(!(i>0))return e;e=e.K}}return n},t.prototype.Z=function(e,t){var n=this.h;while(e){var i=this.$(e.u,t);i<0?(n=e,e=e.N):e=e.K}return n},t.prototype.ue=function(e){while(1){var t=e.rr;if(t===this.h)return;if(1===e.ee)return void(e.ee=0);if(e===t.K){var n=t.N;if(1===n.ee)n.ee=0,t.ee=1,t===this.W?this.W=t.ne():t.ne();else{if(n.N&&1===n.N.ee)return n.ee=t.ee,t.ee=0,n.N.ee=0,void(t===this.W?this.W=t.ne():t.ne());n.K&&1===n.K.ee?(n.ee=1,n.K.ee=0,n.te()):(n.ee=1,e=t)}}else{n=t.K;if(1===n.ee)n.ee=0,t.ee=1,t===this.W?this.W=t.te():t.te();else{if(n.K&&1===n.K.ee)return n.ee=t.ee,t.ee=0,n.K.ee=0,void(t===this.W?this.W=t.te():t.te());n.N&&1===n.N.ee?(n.ee=1,n.N.ee=0,n.ne()):(n.ee=1,e=t)}}}},t.prototype.he=function(e){var t,n;if(1===this.M)return this.clear(),this.h;var i=e;while(i.K||i.N){if(i.N){i=i.N;while(i.K)i=i.K}else i=i.K;t=G([i.u,e.u],2),e.u=t[0],i.u=t[1],n=G([i.p,e.p],2),e.p=n[0],i.p=n[1],e=i}this.h.K===i?this.h.K=i.rr:this.h.N===i&&(this.h.N=i.rr),this.ue(i);var r=i.rr;return i===r.K?r.K=void 0:r.N=void 0,this.M-=1,this.W.ee=0,r},t.prototype.ae=function(e,t){if(void 0===e)return!1;var n=this.ae(e.K,t);return!!n||(!!t(e)||this.ae(e.N,t))},t.prototype.fe=function(e){while(1){var t=e.rr;if(0===t.ee)return;var n=t.rr;if(t===n.K){var i=n.N;if(i&&1===i.ee){if(i.ee=t.ee=0,n===this.W)return;n.ee=1,e=n;continue}if(e===t.N){if(e.ee=0,e.K&&(e.K.rr=t),e.N&&(e.N.rr=n),t.N=e.K,n.K=e.N,e.K=t,e.N=n,n===this.W)this.W=e,this.h.rr=e;else{var r=n.rr;r.K===n?r.K=e:r.N=e}return e.rr=n.rr,t.rr=e,n.rr=e,n.ee=1,{parentNode:t,grandParent:n,curNode:e}}t.ee=0,n===this.W?this.W=n.te():n.te(),n.ee=1}else{i=n.K;if(i&&1===i.ee){if(i.ee=t.ee=0,n===this.W)return;n.ee=1,e=n;continue}if(e===t.K){if(e.ee=0,e.K&&(e.K.rr=n),e.N&&(e.N.rr=t),n.N=e.K,t.K=e.N,e.K=n,e.N=t,n===this.W)this.W=e,this.h.rr=e;else{r=n.rr;r.K===n?r.K=e:r.N=e}return e.rr=n.rr,t.rr=e,n.rr=e,n.ee=1,{parentNode:t,grandParent:n,curNode:e}}t.ee=0,n===this.W?this.W=n.ne():n.ne(),n.ee=1}return}},t.prototype.se=function(e,t,n){if(void 0===this.W)return this.M+=1,this.W=new this.re(e,t),this.W.ee=0,this.W.rr=this.h,this.h.rr=this.W,this.h.K=this.W,void(this.h.N=this.W);var i,r=this.h.K,o=this.$(r.u,e);if(0!==o){if(o>0)r.K=new this.re(e,t),r.K.rr=r,i=r.K,this.h.K=i;else{var s=this.h.N,a=this.$(s.u,e);if(0===a)return void(s.p=t);if(a<0)s.N=new this.re(e,t),s.N.rr=s,i=s.N,this.h.N=i;else{if(void 0!==n){var l=n.o;if(l!==this.h){var c=this.$(l.u,e);if(0===c)return void(l.p=t);if(c>0){var u=l.L(),h=this.$(u.u,e);if(0===h)return void(u.p=t);h<0&&(i=new this.re(e,t),void 0===u.N?(u.N=i,i.rr=u):(l.K=i,i.rr=l))}}}if(void 0===i){i=this.W;while(1){var d=this.$(i.u,e);if(d>0){if(void 0===i.K){i.K=new this.re(e,t),i.K.rr=i,i=i.K;break}i=i.K}else{if(!(d<0))return void(i.p=t);if(void 0===i.N){i.N=new this.re(e,t),i.N.rr=i,i=i.N;break}i=i.N}}}}}return this.M+=1,i}r.p=t},t.prototype.g=function(e,t){while(e){var n=this.$(e.u,t);if(n<0)e=e.N;else{if(!(n>0))return e;e=e.K}}return e||this.h},t.prototype.clear=function(){this.M=0,this.W=void 0,this.h.rr=void 0,this.h.K=this.h.N=void 0},t.prototype.updateKeyByIterator=function(e,t){var n=e.o;if(n===this.h&&w(),1===this.M)return n.u=t,!0;if(n===this.h.K)return this.$(n.m().u,t)>0&&(n.u=t,!0);if(n===this.h.N)return this.$(n.L().u,t)<0&&(n.u=t,!0);var i=n.L().u;if(this.$(i,t)>=0)return!1;var r=n.m().u;return!(this.$(r,t)<=0)&&(n.u=t,!0)},t.prototype.eraseElementByPos=function(e){if(e<0||e>this.M-1)throw new RangeError;var t=0,n=this;return this.ae(this.W,(function(i){return e===t?(n.G(i),!0):(t+=1,!1)})),this.M},t.prototype.eraseElementByKey=function(e){if(0===this.M)return!1;var t=this.g(this.W,e);return t!==this.h&&(this.G(t),!0)},t.prototype.eraseElementByIterator=function(e){var t=e.o;t===this.h&&w();var n=void 0===t.N,i=0===e.iteratorType;return i?n&&e.next():n&&void 0!==t.K||e.next(),this.G(t),e},t.prototype.forEach=function(e){var t,n,i=0;try{for(var r=Y(this),o=r.next();!o.done;o=r.next()){var s=o.value;e(s,i++,this)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},t.prototype.getElementByPos=function(e){var t,n,i;if(e<0||e>this.M-1)throw new RangeError;var r=0;try{for(var o=Y(this),s=o.next();!s.done;s=o.next()){var a=s.value;if(r===e){i=a;break}r+=1}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i},t.prototype.getHeight=function(){if(0===this.M)return 0;var e=function(t){return t?Math.max(e(t.K),e(t.N))+1:0};return e(this.W)},t}(s),X=Z,Q=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),J=function(e){function t(t,n,i){var r=e.call(this,i)||this;return r.o=t,r.h=n,0===r.iteratorType?(r.pre=function(){return this.o===this.h.K&&w(),this.o=this.o.L(),this},r.next=function(){return this.o===this.h&&w(),this.o=this.o.m(),this}):(r.pre=function(){return this.o===this.h.N&&w(),this.o=this.o.m(),this},r.next=function(){return this.o===this.h&&w(),this.o=this.o.L(),this}),r}return Q(t,e),Object.defineProperty(t.prototype,"index",{get:function(){var e=this.o,t=this.h.rr;if(e===this.h)return t?t.tr-1:0;var n=0;e.K&&(n+=e.K.tr);while(e!==t){var i=e.rr;e===i.N&&(n+=1,i.K&&(n+=i.K.tr)),e=i}return n},enumerable:!1,configurable:!0}),t}(r),ee=J,te=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ne=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},ie=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},re=function(e){function t(t,n,i,r){var o=e.call(this,t,n,r)||this;return o.container=i,o}return te(t,e),Object.defineProperty(t.prototype,"pointer",{get:function(){return this.o===this.h&&w(),this.o.u},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.o,this.h,this.container,this.iteratorType)},t}(ee),oe=function(e){function t(t,n,i){void 0===t&&(t=[]);var r=e.call(this,n,i)||this,o=r;return t.forEach((function(e){o.insert(e)})),r}return te(t,e),t.prototype.P=function(e){return ne(this,(function(t){switch(t.label){case 0:return void 0===e?[2]:[5,ie(this.P(e.K))];case 1:return t.sent(),[4,e.u];case 2:return t.sent(),[5,ie(this.P(e.N))];case 3:return t.sent(),[2]}}))},t.prototype.begin=function(){return new re(this.h.K||this.h,this.h,this)},t.prototype.end=function(){return new re(this.h,this.h,this)},t.prototype.rBegin=function(){return new re(this.h.N||this.h,this.h,this,1)},t.prototype.rEnd=function(){return new re(this.h,this.h,this,1)},t.prototype.front=function(){return this.h.K?this.h.K.u:void 0},t.prototype.back=function(){return this.h.N?this.h.N.u:void 0},t.prototype.insert=function(e,t){return this.v(e,void 0,t)},t.prototype.find=function(e){var t=this.g(this.W,e);return new re(t,this.h,this)},t.prototype.lowerBound=function(e){var t=this.U(this.W,e);return new re(t,this.h,this)},t.prototype.upperBound=function(e){var t=this.X(this.W,e);return new re(t,this.h,this)},t.prototype.reverseLowerBound=function(e){var t=this.Y(this.W,e);return new re(t,this.h,this)},t.prototype.reverseUpperBound=function(e){var t=this.Z(this.W,e);return new re(t,this.h,this)},t.prototype.union=function(e){var t=this;return e.forEach((function(e){t.insert(e)})),this.M},t.prototype[Symbol.iterator]=function(){return this.P(this.W)},t}(X),se=oe,ae=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),le=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},ce=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ue=function(e){function t(t,n,i,r){var o=e.call(this,t,n,r)||this;return o.container=i,o}return ae(t,e),Object.defineProperty(t.prototype,"pointer",{get:function(){this.o===this.h&&w();var e=this;return new Proxy([],{get:function(t,n){return"0"===n?e.o.u:"1"===n?e.o.p:void 0},set:function(t,n,i){if("1"!==n)throw new TypeError("props must be 1");return e.o.p=i,!0}})},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.o,this.h,this.container,this.iteratorType)},t}(ee),he=function(e){function t(t,n,i){void 0===t&&(t=[]);var r=e.call(this,n,i)||this,o=r;return t.forEach((function(e){o.setElement(e[0],e[1])})),r}return ae(t,e),t.prototype.P=function(e){return le(this,(function(t){switch(t.label){case 0:return void 0===e?[2]:[5,ce(this.P(e.K))];case 1:return t.sent(),[4,[e.u,e.p]];case 2:return t.sent(),[5,ce(this.P(e.N))];case 3:return t.sent(),[2]}}))},t.prototype.begin=function(){return new ue(this.h.K||this.h,this.h,this)},t.prototype.end=function(){return new ue(this.h,this.h,this)},t.prototype.rBegin=function(){return new ue(this.h.N||this.h,this.h,this,1)},t.prototype.rEnd=function(){return new ue(this.h,this.h,this,1)},t.prototype.front=function(){if(0!==this.M){var e=this.h.K;return[e.u,e.p]}},t.prototype.back=function(){if(0!==this.M){var e=this.h.N;return[e.u,e.p]}},t.prototype.lowerBound=function(e){var t=this.U(this.W,e);return new ue(t,this.h,this)},t.prototype.upperBound=function(e){var t=this.X(this.W,e);return new ue(t,this.h,this)},t.prototype.reverseLowerBound=function(e){var t=this.Y(this.W,e);return new ue(t,this.h,this)},t.prototype.reverseUpperBound=function(e){var t=this.Z(this.W,e);return new ue(t,this.h,this)},t.prototype.setElement=function(e,t,n){return this.v(e,t,n)},t.prototype.find=function(e){var t=this.g(this.W,e);return new ue(t,this.h,this)},t.prototype.getElementByKey=function(e){var t=this.g(this.W,e);return t.p},t.prototype.union=function(e){var t=this;return e.forEach((function(e){t.setElement(e[0],e[1])})),this.M},t.prototype[Symbol.iterator]=function(){return this.P(this.W)},t}(X),de=he;function fe(e){var t=typeof e;return"object"===t&&null!==e||"function"===t}var pe=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),ge=function(e){function t(t,n,i){var r=e.call(this,i)||this;return r.o=t,r.h=n,0===r.iteratorType?(r.pre=function(){return this.o.L===this.h&&w(),this.o=this.o.L,this},r.next=function(){return this.o===this.h&&w(),this.o=this.o.m,this}):(r.pre=function(){return this.o.m===this.h&&w(),this.o=this.o.m,this},r.next=function(){return this.o===this.h&&w(),this.o=this.o.L,this}),r}return pe(t,e),t}(r),me=function(e){function t(){var t=e.call(this)||this;return t._=[],t.I={},t.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(t.I,null),t.h={},t.h.L=t.h.m=t.H=t.l=t.h,t}return pe(t,e),t.prototype.G=function(e){var t=e.L,n=e.m;t.m=n,n.L=t,e===this.H&&(this.H=n),e===this.l&&(this.l=t),this.M-=1},t.prototype.v=function(e,t,n){var i;if(void 0===n&&(n=fe(e)),n){var r=e[this.HASH_TAG];if(void 0!==r)return this._[r].p=t,this.M;Object.defineProperty(e,this.HASH_TAG,{value:this._.length,configurable:!0}),i={u:e,p:t,L:this.l,m:this.h},this._.push(i)}else{var o=this.I[e];if(o)return o.p=t,this.M;i={u:e,p:t,L:this.l,m:this.h},this.I[e]=i}return 0===this.M?(this.H=i,this.h.m=i):this.l.m=i,this.l=i,this.h.L=i,++this.M},t.prototype.g=function(e,t){if(void 0===t&&(t=fe(e)),t){var n=e[this.HASH_TAG];return void 0===n?this.h:this._[n]}return this.I[e]||this.h},t.prototype.clear=function(){var e=this.HASH_TAG;this._.forEach((function(t){delete t.u[e]})),this._=[],this.I={},Object.setPrototypeOf(this.I,null),this.M=0,this.H=this.l=this.h.L=this.h.m=this.h},t.prototype.eraseElementByKey=function(e,t){var n;if(void 0===t&&(t=fe(e)),t){var i=e[this.HASH_TAG];if(void 0===i)return!1;delete e[this.HASH_TAG],n=this._[i],delete this._[i]}else{if(n=this.I[e],void 0===n)return!1;delete this.I[e]}return this.G(n),!0},t.prototype.eraseElementByIterator=function(e){var t=e.o;return t===this.h&&w(),this.G(t),e.next()},t.prototype.eraseElementByPos=function(e){if(e<0||e>this.M-1)throw new RangeError;var t=this.H;while(e--)t=t.m;return this.G(t),this.M},t}(s),ve=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),be=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},ye=function(e){function t(t,n,i,r){var o=e.call(this,t,n,r)||this;return o.container=i,o}return ve(t,e),Object.defineProperty(t.prototype,"pointer",{get:function(){return this.o===this.h&&w(),this.o.u},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.o,this.h,this.container,this.iteratorType)},t}(ge),_e=function(e){function t(t){void 0===t&&(t=[]);var n=e.call(this)||this,i=n;return t.forEach((function(e){i.insert(e)})),n}return ve(t,e),t.prototype.begin=function(){return new ye(this.H,this.h,this)},t.prototype.end=function(){return new ye(this.h,this.h,this)},t.prototype.rBegin=function(){return new ye(this.l,this.h,this,1)},t.prototype.rEnd=function(){return new ye(this.h,this.h,this,1)},t.prototype.front=function(){return this.H.u},t.prototype.back=function(){return this.l.u},t.prototype.insert=function(e,t){return this.v(e,void 0,t)},t.prototype.getElementByPos=function(e){if(e<0||e>this.M-1)throw new RangeError;var t=this.H;while(e--)t=t.m;return t.u},t.prototype.find=function(e,t){var n=this.g(e,t);return new ye(n,this.h,this)},t.prototype.forEach=function(e){var t=0,n=this.H;while(n!==this.h)e(n.u,t++,this),n=n.m},t.prototype[Symbol.iterator]=function(){return function(){var e;return be(this,(function(t){switch(t.label){case 0:e=this.H,t.label=1;case 1:return e===this.h?[3,3]:[4,e.u];case 2:return t.sent(),e=e.m,[3,1];case 3:return[2]}}))}.bind(this)()},t}(me),we=_e,Ce=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Se=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},xe=function(e){function t(t,n,i,r){var o=e.call(this,t,n,r)||this;return o.container=i,o}return Ce(t,e),Object.defineProperty(t.prototype,"pointer",{get:function(){this.o===this.h&&w();var e=this;return new Proxy([],{get:function(t,n){return"0"===n?e.o.u:"1"===n?e.o.p:void 0},set:function(t,n,i){if("1"!==n)throw new TypeError("props must be 1");return e.o.p=i,!0}})},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.o,this.h,this.container,this.iteratorType)},t}(ge),Oe=function(e){function t(t){void 0===t&&(t=[]);var n=e.call(this)||this,i=n;return t.forEach((function(e){i.setElement(e[0],e[1])})),n}return Ce(t,e),t.prototype.begin=function(){return new xe(this.H,this.h,this)},t.prototype.end=function(){return new xe(this.h,this.h,this)},t.prototype.rBegin=function(){return new xe(this.l,this.h,this,1)},t.prototype.rEnd=function(){return new xe(this.h,this.h,this,1)},t.prototype.front=function(){if(0!==this.M)return[this.H.u,this.H.p]},t.prototype.back=function(){if(0!==this.M)return[this.l.u,this.l.p]},t.prototype.setElement=function(e,t,n){return this.v(e,t,n)},t.prototype.getElementByKey=function(e,t){if(void 0===t&&(t=fe(e)),t){var n=e[this.HASH_TAG];return void 0!==n?this._[n].p:void 0}var i=this.I[e];return i?i.p:void 0},t.prototype.getElementByPos=function(e){if(e<0||e>this.M-1)throw new RangeError;var t=this.H;while(e--)t=t.m;return[t.u,t.p]},t.prototype.find=function(e,t){var n=this.g(e,t);return new xe(n,this.h,this)},t.prototype.forEach=function(e){var t=0,n=this.H;while(n!==this.h)e([n.u,n.p],t++,this),n=n.m},t.prototype[Symbol.iterator]=function(){return function(){var e;return Se(this,(function(t){switch(t.label){case 0:e=this.H,t.label=1;case 1:return e===this.h?[3,3]:[4,[e.u,e.p]];case 2:return t.sent(),e=e.m,[3,1];case 3:return[2]}}))}.bind(this)()},t}(me),ke=Oe},"3e8a":function(e,t,n){},"3eb1":function(e,t,n){"use strict";var i=n("0f7c"),r=n("00ce"),o=n("d009"),s=n("0d25"),a=r("%Function.prototype.apply%"),l=r("%Function.prototype.call%"),c=r("%Reflect.apply%",!0)||i.call(l,a),u=n("71c9"),h=r("%Math.max%");e.exports=function(e){if("function"!==typeof e)throw new s("a function is required");var t=c(i,l,arguments);return o(t,1+h(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(i,a,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},"3f6b":function(e,t,n){e.exports={default:n("b9c7"),__esModule:!0}},"3f8c":function(e,t){e.exports={}},"3fb5":function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},"401b":function(e,t,n){"use strict";function i(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function r(e,t){return e[0]=t[0],e[1]=t[1],e}function o(e){return[e[0],e[1]]}function s(e,t,n){return e[0]=t,e[1]=n,e}function a(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function l(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e}function c(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function u(e){return Math.sqrt(d(e))}n.r(t),n.d(t,"create",(function(){return i})),n.d(t,"copy",(function(){return r})),n.d(t,"clone",(function(){return o})),n.d(t,"set",(function(){return s})),n.d(t,"add",(function(){return a})),n.d(t,"scaleAndAdd",(function(){return l})),n.d(t,"sub",(function(){return c})),n.d(t,"len",(function(){return u})),n.d(t,"length",(function(){return h})),n.d(t,"lenSquare",(function(){return d})),n.d(t,"lengthSquare",(function(){return f})),n.d(t,"mul",(function(){return p})),n.d(t,"div",(function(){return g})),n.d(t,"dot",(function(){return m})),n.d(t,"scale",(function(){return v})),n.d(t,"normalize",(function(){return b})),n.d(t,"distance",(function(){return y})),n.d(t,"dist",(function(){return _})),n.d(t,"distanceSquare",(function(){return w})),n.d(t,"distSquare",(function(){return C})),n.d(t,"negate",(function(){return S})),n.d(t,"lerp",(function(){return x})),n.d(t,"applyTransform",(function(){return O})),n.d(t,"min",(function(){return k})),n.d(t,"max",(function(){return L}));var h=u;function d(e){return e[0]*e[0]+e[1]*e[1]}var f=d;function p(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function g(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function m(e,t){return e[0]*t[0]+e[1]*t[1]}function v(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function b(e,t){var n=u(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function y(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var _=y;function w(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var C=w;function S(e,t){return e[0]=-t[0],e[1]=-t[1],e}function x(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e}function O(e,t,n){var i=t[0],r=t[1];return e[0]=n[0]*i+n[2]*r+n[4],e[1]=n[1]*i+n[3]*r+n[5],e}function k(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function L(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}},4035:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return g}));var i,r,o=n("6d8e"),s=n("3742");class a{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){const t=e.charCodeAt(0),n=this._value.charCodeAt(this._pos);return t-n}value(){return this._value[this._pos]}}class l{constructor(e=!0){this._caseSensitive=e}reset(e){return this._value=e,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){const t=this._value.charCodeAt(this._to);if(46===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?Object(s["h"])(e,this._value,0,e.length,this._from,this._to):Object(s["i"])(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class c{constructor(e=!0,t=!0){this._splitOnBackslash=e,this._caseSensitive=t}reset(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){const t=this._value.charCodeAt(this._to);if(47===t||this._splitOnBackslash&&92===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){return this._caseSensitive?Object(s["h"])(e,this._value,0,e.length,this._from,this._to):Object(s["i"])(e,this._value,0,e.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}class u{constructor(e){this._ignorePathCasing=e,this._states=[],this._stateIdx=0}reset(e){return this._value=e,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new c(!1,!this._ignorePathCasing(e)),this._pathIterator.reset(e.path),this._pathIterator.value()&&this._states.push(3)),this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5),this._stateIdx=0,this}next(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return 3===this._states[this._stateIdx]&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(e){if(1===this._states[this._stateIdx])return Object(s["g"])(e,this._value.scheme);if(2===this._states[this._stateIdx])return Object(s["g"])(e,this._value.authority);if(3===this._states[this._stateIdx])return this._pathIterator.cmp(e);if(4===this._states[this._stateIdx])return Object(s["f"])(e,this._value.query);if(5===this._states[this._stateIdx])return Object(s["f"])(e,this._value.fragment);throw new Error}value(){if(1===this._states[this._stateIdx])return this._value.scheme;if(2===this._states[this._stateIdx])return this._value.authority;if(3===this._states[this._stateIdx])return this._pathIterator.value();if(4===this._states[this._stateIdx])return this._value.query;if(5===this._states[this._stateIdx])return this._value.fragment;throw new Error}}class h{isEmpty(){return!this.left&&!this.mid&&!this.right&&!this.value}}class d{constructor(e){this._iter=e}static forUris(e=(()=>!1)){return new d(new u(e))}static forStrings(){return new d(new a)}static forConfigKeys(){return new d(new l)}clear(){this._root=void 0}set(e,t){const n=this._iter.reset(e);let i;this._root||(this._root=new h,this._root.segment=n.value()),i=this._root;while(1){const e=n.cmp(i.segment);if(e>0)i.left||(i.left=new h,i.left.segment=n.value()),i=i.left;else if(e<0)i.right||(i.right=new h,i.right.segment=n.value()),i=i.right;else{if(!n.hasNext())break;n.next(),i.mid||(i.mid=new h,i.mid.segment=n.value()),i=i.mid}}const r=i.value;return i.value=t,i.key=e,r}get(e){var t;return null===(t=this._getNode(e))||void 0===t?void 0:t.value}_getNode(e){const t=this._iter.reset(e);let n=this._root;while(n){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n}has(e){const t=this._getNode(e);return!(void 0===(null===t||void 0===t?void 0:t.value)&&void 0===(null===t||void 0===t?void 0:t.mid))}delete(e){return this._delete(e,!1)}deleteSuperstr(e){return this._delete(e,!0)}_delete(e,t){const n=this._iter.reset(e),i=[];let r=this._root;while(r){const e=n.cmp(r.segment);if(e>0)i.push([1,r]),r=r.left;else if(e<0)i.push([-1,r]),r=r.right;else{if(!n.hasNext()){t?(r.left=void 0,r.mid=void 0,r.right=void 0):r.value=void 0;while(i.length>0&&r.isEmpty()){let[e,t]=i.pop();switch(e){case 1:t.left=void 0;break;case 0:t.mid=void 0;break;case-1:t.right=void 0;break}r=t}break}n.next(),i.push([0,r]),r=r.mid}}}findSubstr(e){const t=this._iter.reset(e);let n=this._root,i=void 0;while(n){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),i=n.value||i,n=n.mid}}return n&&n.value||i}findSuperstr(e){const t=this._iter.reset(e);let n=this._root;while(n){const e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())return n.mid?this._entries(n.mid):void 0;t.next(),n=n.mid}}}forEach(e){for(const[t,n]of this)e(n,t)}*[Symbol.iterator](){yield*this._entries(this._root)}*_entries(e){if(!e)return;const t=[e];while(t.length>0){const e=t.pop();e&&(e.value&&(yield[e.key,e.value]),e.left&&t.push(e.left),e.mid&&t.push(e.mid),e.right&&t.push(e.right))}}}class f{constructor(e,t){this[i]="ResourceMap",e instanceof f?(this.map=new Map(e.map),this.toKey=null!==t&&void 0!==t?t:f.defaultToKey):(this.map=new Map,this.toKey=null!==e&&void 0!==e?e:f.defaultToKey)}set(e,t){return this.map.set(this.toKey(e),t),this}get(e){return this.map.get(this.toKey(e))}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e,t){"undefined"!==typeof t&&(e=e.bind(t));for(let[n,i]of this.map)e(i,o["a"].parse(n),this)}values(){return this.map.values()}*keys(){for(let e of this.map.keys())yield o["a"].parse(e)}*entries(){for(let e of this.map.entries())yield[o["a"].parse(e[0]),e[1]]}*[(i=Symbol.toStringTag,Symbol.iterator)](){for(let e of this.map)yield[o["a"].parse(e[0]),e[1]]}}f.defaultToKey=e=>e.toString();class p{constructor(){this[r]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var e;return null===(e=this._head)||void 0===e?void 0:e.value}get last(){var e;return null===(e=this._tail)||void 0===e?void 0:e.value}has(e){return this._map.has(e)}get(e,t=0){const n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let i=this._map.get(e);if(i)i.value=t,0!==n&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;while(i){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.key,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}values(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:n.value,done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}entries(){const e=this,t=this._state;let n=this._head;const i={[Symbol.iterator](){return i},next(){if(e._state!==t)throw new Error("LinkedMap got modified during iteration.");if(n){const e={value:[n.key,n.value],done:!1};return n=n.next,e}return{value:void 0,done:!0}}};return i}[(r=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;while(t&&n>e)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(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,this._state++}addItemLast(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,this._state++}removeItem(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{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(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;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(2===t){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}class g extends p{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get(e,t=2){return super.get(e,t)}peek(e){return super.get(e,0)}set(e,t){return super.set(e,t,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},4041:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var i=n("e0d3"),r=Object(i["o"])(),o=Object(i["o"])(),s=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var o=Object(i["r"])(this.get("color",!0)),s=this.get("colorLayer",!0);return c(this,r,o,s,e,t,n)},e.prototype.clearColorPalette=function(){u(this,r)},e}();function a(e,t,n,r){var s=Object(i["r"])(e.get(["aria","decal","decals"]));return c(e,o,s,null,t,n,r)}function l(e,t){for(var n=e.length,i=0;i<n;i++)if(e[i].length>t)return e[i];return e[n-1]}function c(e,t,n,i,r,o,s){o=o||e;var a=t(o),c=a.paletteIdx||0,u=a.paletteNameMap=a.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var h=null!=s&&i?l(i,s):n;if(h=h||n,h&&h.length){var d=h[c];return r&&(u[r]=d),a.paletteIdx=(c+1)%h.length,d}}function u(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}},4058:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return n.e("chunk-2d0c512b").then(n.bind(null,"3e14"))}})},"408a":function(e,t,n){var i=n("e330");e.exports=i(1..valueOf)},"40c2":function(e,t,n){},"40d5":function(e,t,n){var i=n("d039");e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4111:function(e,t,n){"use strict";n.d(t,"f",(function(){return l})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"e",(function(){return v})),n.d(t,"d",(function(){return b}));var i=n("e8e3"),r=n("e1b5"),o=n("7061"),s=n("6a89"),a=n("b707");function l(e){let t=0,n=0,i=0,r=0;for(let o=0,s=e.length;o<s;o++){const a=e.charCodeAt(o);13===a?(0===t&&(n=o),t++,o+1<s&&10===e.charCodeAt(o+1)?(r|=2,o++):r|=3,i=o+1):10===a&&(r|=1,0===t&&(n=o),t++,i=o+1)}return 0===t&&(n=e.length),[t,n,e.length-i,r]}function c(e){return(16384|e<<0|2<<23)>>>0}const u=new Uint32Array(0).buffer;class h{constructor(){this.tokens=[]}add(e,t){if(this.tokens.length>0){const n=this.tokens[this.tokens.length-1],i=n.startLineNumber+n.tokens.length-1;if(i+1===e)return void n.tokens.push(t)}this.tokens.push(new g(e,[t]))}}class d{constructor(e){this._tokens=e,this._tokenCount=e.length/4}toString(e){let t=[];for(let n=0;n<this._tokenCount;n++)t.push(`(${this._getDeltaLine(n)+e},${this._getStartCharacter(n)}-${this._getEndCharacter(n)})`);return`[${t.join(",")}]`}getMaxDeltaLine(){const e=this._getTokenCount();return 0===e?-1:this._getDeltaLine(e-1)}getRange(){const e=this._getTokenCount();if(0===e)return null;const t=this._getStartCharacter(0),n=this._getDeltaLine(e-1),i=this._getEndCharacter(e-1);return new s["a"](0,t+1,n,i+1)}_getTokenCount(){return this._tokenCount}_getDeltaLine(e){return this._tokens[4*e]}_getStartCharacter(e){return this._tokens[4*e+1]}_getEndCharacter(e){return this._tokens[4*e+2]}isEmpty(){return 0===this._getTokenCount()}getLineTokens(e){let t=0,n=this._getTokenCount()-1;while(t<n){const i=t+Math.floor((n-t)/2),r=this._getDeltaLine(i);if(r<e)t=i+1;else{if(!(r>e)){let r=i;while(r>t&&this._getDeltaLine(r-1)===e)r--;let o=i;while(o<n&&this._getDeltaLine(o+1)===e)o++;return new f(this._tokens.subarray(4*r,4*o+4))}n=i-1}}return this._getDeltaLine(t)===e?new f(this._tokens.subarray(4*t,4*t+4)):null}clear(){this._tokenCount=0}removeTokens(e,t,n,i){const r=this._tokens,o=this._tokenCount;let s=0,a=!1,l=0;for(let c=0;c<o;c++){const o=4*c,u=r[o],h=r[o+1],d=r[o+2],f=r[o+3];if((u>e||u===e&&d>=t)&&(u<n||u===n&&h<=i))a=!0;else{if(0===s&&(l=u),a){const e=4*s;r[e]=u-l,r[e+1]=h,r[e+2]=d,r[e+3]=f}s++}}return this._tokenCount=s,l}split(e,t,n,i){const r=this._tokens,o=this._tokenCount;let s=[],a=[],l=s,c=0,u=0;for(let h=0;h<o;h++){const o=4*h,s=r[o],d=r[o+1],f=r[o+2],p=r[o+3];if(s>e||s===e&&f>=t){if(s<n||s===n&&d<=i)continue;l!==a&&(l=a,c=0,u=s)}l[c++]=s-u,l[c++]=d,l[c++]=f,l[c++]=p}return[new d(new Uint32Array(s)),new d(new Uint32Array(a)),u]}acceptDeleteRange(e,t,n,i,r){const o=this._tokens,s=this._tokenCount,a=i-t;let l=0,c=!1;for(let u=0;u<s;u++){const h=4*u;let d=o[h],f=o[h+1],p=o[h+2];const g=o[h+3];if(d<t||d===t&&p<=n){l++;continue}if(d===t&&f<n)d===i&&p>r?p-=r-n:p=n;else if(d===t&&f===n){if(!(d===i&&p>r)){c=!0;continue}p-=r-n}else if(d<i||d===i&&f<r){if(!(d===i&&p>r)){c=!0;continue}d===t?(f=n,p=f+(p-r)):(f=0,p=f+(p-r))}else if(d>i){if(0===a&&!c){l=s;break}d-=a}else{if(!(d===i&&f>=r))throw new Error("Not possible!");e&&0===d&&(f+=e,p+=e),d-=a,f-=r-n,p-=r-n}const m=4*l;o[m]=d,o[m+1]=f,o[m+2]=p,o[m+3]=g,l++}this._tokenCount=l}acceptInsertText(e,t,n,i,r,o){const s=0===n&&1===i&&(o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122),a=this._tokens,l=this._tokenCount;for(let c=0;c<l;c++){const o=4*c;let l=a[o],u=a[o+1],h=a[o+2];if(!(l<e||l===e&&h<t)){if(l===e&&h===t){if(!s)continue;h+=1}else if(l===e&&u<t&&t<h)0===n?h+=i:h=t;else{if(l===e&&u===t&&s)continue;if(l===e)if(l+=n,0===n)u+=i,h+=i;else{const e=h-u;u=r+(u-t),h=u+e}else l+=n}a[o]=l,a[o+1]=u,a[o+2]=h}}}}class f{constructor(e){this._tokens=e}getCount(){return this._tokens.length/4}getStartCharacter(e){return this._tokens[4*e+1]}getEndCharacter(e){return this._tokens[4*e+2]}getMetadata(e){return this._tokens[4*e+3]}}class p{constructor(e,t){this.startLineNumber=e,this.tokens=t,this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}toString(){return this.tokens.toString(this.startLineNumber)}_updateEndLineNumber(){this.endLineNumber=this.startLineNumber+this.tokens.getMaxDeltaLine()}isEmpty(){return this.tokens.isEmpty()}getLineTokens(e){return this.startLineNumber<=e&&e<=this.endLineNumber?this.tokens.getLineTokens(e-this.startLineNumber):null}getRange(){const e=this.tokens.getRange();return e?new s["a"](this.startLineNumber+e.startLineNumber,e.startColumn,this.startLineNumber+e.endLineNumber,e.endColumn):e}removeTokens(e){const t=e.startLineNumber-this.startLineNumber,n=e.endLineNumber-this.startLineNumber;this.startLineNumber+=this.tokens.removeTokens(t,e.startColumn-1,n,e.endColumn-1),this._updateEndLineNumber()}split(e){const t=e.startLineNumber-this.startLineNumber,n=e.endLineNumber-this.startLineNumber,[i,r,o]=this.tokens.split(t,e.startColumn-1,n,e.endColumn-1);return[new p(this.startLineNumber,i),new p(this.startLineNumber+o,r)]}applyEdit(e,t){const[n,i,r]=l(t);this.acceptEdit(e,n,i,r,t.length>0?t.charCodeAt(0):0)}acceptEdit(e,t,n,i,r){this._acceptDeleteRange(e),this._acceptInsertText(new o["a"](e.startLineNumber,e.startColumn),t,n,i,r),this._updateEndLineNumber()}_acceptDeleteRange(e){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return;const t=e.startLineNumber-this.startLineNumber,n=e.endLineNumber-this.startLineNumber;if(n<0){const e=n-t;return void(this.startLineNumber-=e)}const i=this.tokens.getMaxDeltaLine();if(!(t>=i+1)){if(t<0&&n>=i+1)return this.startLineNumber=0,void this.tokens.clear();if(t<0){const i=-t;this.startLineNumber-=i,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)}}_acceptInsertText(e,t,n,i,r){if(0===t&&0===n)return;const o=e.lineNumber-this.startLineNumber;if(o<0)return void(this.startLineNumber+=t);const s=this.tokens.getMaxDeltaLine();o>=s+1||this.tokens.acceptInsertText(o,e.column-1,t,n,i,r)}}class g{constructor(e,t){this.startLineNumber=e,this.tokens=t}}function m(e){return e instanceof Uint32Array?e:new Uint32Array(e)}class v{constructor(){this._pieces=[],this._isComplete=!1}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return 0===this._pieces.length}set(e,t){this._pieces=e||[],this._isComplete=t}setPartial(e,t){let n=e;if(t.length>0){const i=t[0].getRange(),r=t[t.length-1].getRange();if(!i||!r)return e;n=e.plusRange(i).plusRange(r)}let r=null;for(let i=0,o=this._pieces.length;i<o;i++){const e=this._pieces[i];if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){r=r||{index:i};break}if(e.removeTokens(n),e.isEmpty()){this._pieces.splice(i,1),i--,o--;continue}if(e.endLineNumber<n.startLineNumber)continue;if(e.startLineNumber>n.endLineNumber){r=r||{index:i};continue}const[t,s]=e.split(n);t.isEmpty()?r=r||{index:i}:s.isEmpty()||(this._pieces.splice(i,1,t,s),i++,o++,r=r||{index:i})}return r=r||{index:this._pieces.length},t.length>0&&(this._pieces=i["b"](this._pieces,r.index,t)),n}isComplete(){return this._isComplete}addSemanticTokens(e,t){const n=this._pieces;if(0===n.length)return t;const i=v._findFirstPieceWithLine(n,e),o=n[i].getLineTokens(e);if(!o)return t;const s=t.getCount(),a=o.getCount();let l=0,c=[],u=0,h=0;const d=(e,t)=>{e!==h&&(h=e,c[u++]=e,c[u++]=t)};for(let r=0;r<a;r++){const e=o.getStartCharacter(r),n=o.getEndCharacter(r),i=o.getMetadata(r),a=((1&i?2048:0)|(2&i?4096:0)|(4&i?8192:0)|(8&i?8372224:0)|(16&i?4286578688:0))>>>0,c=~a>>>0;while(l<s&&t.getEndOffset(l)<=e)d(t.getEndOffset(l),t.getMetadata(l)),l++;l<s&&t.getStartOffset(l)<e&&d(e,t.getMetadata(l));while(l<s&&t.getEndOffset(l)<n)d(t.getEndOffset(l),t.getMetadata(l)&c|i&a),l++;if(l<s)d(n,t.getMetadata(l)&c|i&a),t.getEndOffset(l)===n&&l++;else{const e=Math.min(Math.max(0,l-1),s-1);d(n,t.getMetadata(e)&c|i&a)}}while(l<s)d(t.getEndOffset(l),t.getMetadata(l)),l++;return new r["a"](new Uint32Array(c),t.getLineContent())}static _findFirstPieceWithLine(e,t){let n=0,i=e.length-1;while(n<i){let r=n+Math.floor((i-n)/2);if(e[r].endLineNumber<t)n=r+1;else{if(!(e[r].startLineNumber>t)){while(r>n&&e[r-1].startLineNumber<=t&&t<=e[r-1].endLineNumber)r--;return r}i=r-1}}return n}acceptEdit(e,t,n,i,r){for(const o of this._pieces)o.acceptEdit(e,t,n,i,r)}}class b{constructor(){this._lineTokens=[],this._len=0}flush(){this._lineTokens=[],this._len=0}getTokens(e,t,n){let i=null;if(t<this._len&&(i=this._lineTokens[t]),null!==i&&i!==u)return new r["a"](m(i),n);let o=new Uint32Array(2);return o[0]=n.length,o[1]=c(e),new r["a"](o,n)}static _massageTokens(e,t,n){const i=n?m(n):null;if(0===t){let t=!1;if(i&&i.length>1&&(t=a["E"].getLanguageId(i[1])!==e),!t)return u}if(!i||0===i.length){const n=new Uint32Array(2);return n[0]=t,n[1]=c(e),n.buffer}return i[i.length-2]=t,0===i.byteOffset&&i.byteLength===i.buffer.byteLength?i.buffer:i}_ensureLine(e){while(e>=this._len)this._lineTokens[this._len]=null,this._len++}_deleteLines(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)}_insertLines(e,t){if(0===t)return;let n=[];for(let i=0;i<t;i++)n[i]=null;this._lineTokens=i["b"](this._lineTokens,e,n),this._len+=t}setTokens(e,t,n,i,r){const o=b._massageTokens(e,n,i);this._ensureLine(t);const s=this._lineTokens[t];return this._lineTokens[t]=o,!!r&&!b._equals(s,o)}static _equals(e,t){if(!e||!t)return!e&&!t;const n=m(e),i=m(t);if(n.length!==i.length)return!1;for(let r=0,o=n.length;r<o;r++)if(n[r]!==i[r])return!1;return!0}acceptEdit(e,t,n){this._acceptDeleteRange(e),this._acceptInsertText(new o["a"](e.startLineNumber,e.startColumn),t,n)}_acceptDeleteRange(e){const t=e.startLineNumber-1;if(t>=this._len)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;return void(this._lineTokens[t]=b._delete(this._lineTokens[t],e.startColumn-1,e.endColumn-1))}this._lineTokens[t]=b._deleteEnding(this._lineTokens[t],e.startColumn-1);const n=e.endLineNumber-1;let i=null;n<this._len&&(i=b._deleteBeginning(this._lineTokens[n],e.endColumn-1)),this._lineTokens[t]=b._append(this._lineTokens[t],i),this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t,n){if(0===t&&0===n)return;const i=e.lineNumber-1;i>=this._len||(0!==t?(this._lineTokens[i]=b._deleteEnding(this._lineTokens[i],e.column-1),this._lineTokens[i]=b._insert(this._lineTokens[i],e.column-1,n),this._insertLines(e.lineNumber,t)):this._lineTokens[i]=b._insert(this._lineTokens[i],e.column-1,n))}static _deleteBeginning(e,t){return null===e||e===u?e:b._delete(e,0,t)}static _deleteEnding(e,t){if(null===e||e===u)return e;const n=m(e),i=n[n.length-2];return b._delete(e,t,i)}static _delete(e,t,n){if(null===e||e===u||t===n)return e;const i=m(e),o=i.length>>>1;if(0===t&&i[i.length-2]===n)return u;const s=r["a"].findIndexInTokensArray(i,t),a=s>0?i[s-1<<1]:0,l=i[s<<1];if(n<l){const r=n-t;for(let e=s;e<o;e++)i[e<<1]-=r;return e}let c,h;a!==t?(i[s<<1]=t,c=s+1<<1,h=t):(c=s<<1,h=a);const d=n-t;for(let r=s+1;r<o;r++){const e=i[r<<1]-d;e>h&&(i[c++]=e,i[c++]=i[1+(r<<1)],h=e)}if(c===i.length)return e;let f=new Uint32Array(c);return f.set(i.subarray(0,c),0),f.buffer}static _append(e,t){if(t===u)return e;if(e===u)return t;if(null===e)return e;if(null===t)return null;const n=m(e),i=m(t),r=i.length>>>1;let o=new Uint32Array(n.length+i.length);o.set(n,0);let s=n.length;const a=n[n.length-2];for(let l=0;l<r;l++)o[s++]=i[l<<1]+a,o[s++]=i[1+(l<<1)];return o.buffer}static _insert(e,t,n){if(null===e||e===u)return e;const i=m(e),o=i.length>>>1;let s=r["a"].findIndexInTokensArray(i,t);if(s>0){const e=i[s-1<<1];e===t&&s--}for(let r=s;r<o;r++)i[r<<1]+=n;return e}}},4153:function(e,t,n){"use strict";n.d(t,"b",(function(){return _})),n.d(t,"g",(function(){return w})),n.d(t,"a",(function(){return S})),n.d(t,"c",(function(){return O})),n.d(t,"e",(function(){return L})),n.d(t,"d",(function(){return T})),n.d(t,"f",(function(){return N}));var i=n("fdcc"),r=n("b707"),o=n("7061"),s=n("4fc3"),a=n("2504"),l=n("6a89"),c=n("7e93"),u=n("a666"),h=n("7e32"),d=n("b800"),f=n("e58e"),p=n("9e74"),g=n("ef8e"),m=n("6d8e"),v=n("b78f"),b=n("dff7"),y=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const _={Visible:new s["c"]("suggestWidgetVisible",!1,Object(b["a"])("suggestWidgetVisible","Whether suggestion are visible")),DetailsVisible:new s["c"]("suggestWidgetDetailsVisible",!1,Object(b["a"])("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new s["c"]("suggestWidgetMultipleSuggestions",!1,Object(b["a"])("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new s["c"]("suggestionMakesTextEdit",!0,Object(b["a"])("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new s["c"]("acceptSuggestionOnEnter",!0,Object(b["a"])("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new s["c"]("suggestionHasInsertAndReplaceRange",!1,Object(b["a"])("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new s["c"]("suggestionInsertMode",void 0,{type:"string",description:Object(b["a"])("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new s["c"]("suggestionCanResolve",!1,Object(b["a"])("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},w=new h["b"]("suggestWidgetStatusBar");class C{constructor(e,t,n,i){this.position=e,this.completion=t,this.container=n,this.provider=i,this.isInvalid=!1,this.score=c["a"].Default,this.distance=0,this.textLabel="string"===typeof t.label?t.label:t.label.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),l["a"].isIRange(t.range)?(this.editStart=new o["a"](t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new o["a"](t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new o["a"](t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||l["a"].spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new o["a"](t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new o["a"](t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new o["a"](t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||l["a"].spansMultipleLines(t.range.insert)||l["a"].spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),"function"!==typeof i.resolveCompletionItem&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return y(this,void 0,void 0,(function*(){if(!this._resolveCache){const t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(e=>{Object.assign(this.completion,e),this._isResolved=!0,t.dispose()},e=>{Object(i["d"])(e)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache}))}}class S{constructor(e=2,t=new Set,n=new Set,i=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=n,this.showDeprecated=i}}let x;function O(){return x}S.default=new S;class k{constructor(e,t,n,i){this.items=e,this.needsClipboard=t,this.durations=n,this.disposable=i}}function L(e,t,n=S.default,o={triggerKind:0},s=a["a"].None){return y(this,void 0,void 0,(function*(){const a=new f["a"](!0);t=t.clone();const c=e.getWordAtPosition(t),h=c?new l["a"](t.lineNumber,c.startColumn,t.lineNumber,c.endColumn):l["a"].fromPositions(t),p={replace:h,insert:h.setEndPosition(t.lineNumber,t.column)},g=[],m=new u["b"],v=[];let b=!1;const _=(e,i,r)=>{var o,s,a;if(i){for(let r of i.suggestions)if(!n.kindFilter.has(r.kind)){if(!n.showDeprecated&&(null===(o=null===r||void 0===r?void 0:r.tags)||void 0===o?void 0:o.includes(1)))continue;r.range||(r.range=p),r.sortText||(r.sortText="string"===typeof r.label?r.label:r.label.label),!b&&r.insertTextRules&&4&r.insertTextRules&&(b=d["c"].guessNeedsClipboard(r.insertText)),g.push(new C(t,r,i,e))}Object(u["g"])(i)&&m.add(i),v.push({providerName:null!==(s=e._debugDisplayName)&&void 0!==s?s:"unkown_provider",elapsedProvider:null!==(a=i.duration)&&void 0!==a?a:-1,elapsedOverall:r.elapsed()})}},w=(()=>y(this,void 0,void 0,(function*(){if(!x||n.kindFilter.has(27))return;if(n.providerFilter.size>0&&!n.providerFilter.has(x))return;const i=new f["a"](!0),r=yield x.provideCompletionItems(e,t,o,s);_(x,r,i)})))();for(let l of r["d"].orderedGroups(e)){let r=g.length;if(yield Promise.all(l.map(r=>y(this,void 0,void 0,(function*(){if(!(n.providerFilter.size>0)||n.providerFilter.has(r))try{const n=new f["a"](!0),i=yield r.provideCompletionItems(e,t,o,s);_(r,i,n)}catch(a){Object(i["f"])(a)}})))),r!==g.length||s.isCancellationRequested)break}return yield w,s.isCancellationRequested?(m.dispose(),Promise.reject(Object(i["a"])())):new k(g.sort(T(n.snippetSortOrder)),b,{entries:v,elapsed:a.elapsed()},m)}))}function E(e,t){if(e.sortTextLow&&t.sortTextLow){if(e.sortTextLow<t.sortTextLow)return-1;if(e.sortTextLow>t.sortTextLow)return 1}return e.completion.label<t.completion.label?-1:e.completion.label>t.completion.label?1:e.completion.kind-t.completion.kind}function D(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return E(e,t)}function I(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return E(e,t)}const M=new Map;function T(e){return M.get(e)}M.set(0,D),M.set(2,I),M.set(1,E),p["a"].registerCommand("_executeCompletionItemProvider",(e,...t)=>y(void 0,void 0,void 0,(function*(){const[n,i,r,s]=t;Object(g["c"])(m["a"].isUri(n)),Object(g["c"])(o["a"].isIPosition(i)),Object(g["c"])("string"===typeof r||!r),Object(g["c"])("number"===typeof s||!s);const l=yield e.get(v["a"]).createModelReference(n);try{const e={incomplete:!1,suggestions:[]},t=[],n=yield L(l.object.textEditorModel,o["a"].lift(i),void 0,{triggerCharacter:r,triggerKind:r?1:0});for(const i of n.items)t.length<(null!==s&&void 0!==s?s:0)&&t.push(i.resolve(a["a"].None)),e.incomplete=e.incomplete||i.container.incomplete,e.suggestions.push(i.completion);try{return yield Promise.all(t),e}finally{setTimeout(()=>n.disposable.dispose(),100)}}finally{l.dispose()}})));const A=new class{constructor(){this.onlyOnceSuggestions=[]}provideCompletionItems(){let e=this.onlyOnceSuggestions.slice(0),t={suggestions:e};return this.onlyOnceSuggestions.length=0,t}};function N(e,t){setTimeout(()=>{A.onlyOnceSuggestions.push(...t),e.getContribution("editor.contrib.suggestController").triggerSuggest((new Set).add(A))},0)}r["d"].register("*",A)},"417f7":function(e,t,n){"use strict";e.exports=EvalError},"418f":function(e,t,n){"use strict";n.d(t,"a",(function(){return ce}));var i=n("dff7"),r=n("fdcc"),o=n("a666"),s=n("5717"),a=n("0a0f"),l=n("4fc3"),c=n("fbba"),u=n("03e8"),h=n("f68e"),d=(n("29a1"),n("11f7")),f=n("ceb8"),p=n("308f"),g=n("b589"),m=n("82c9"),v=n("d379"),b=n("6a89"),y=n("b57f"),_=n("b78f"),w=n("c4e3"),C=n("3bfb"),S=n("47cb"),x=n("b7d0"),O=n("a6d7"),k=n("debc"),L=n("6dec"),E=n("7e93"),D=n("ee56"),I=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},M=function(e,t){return function(n,i){t(n,i,e)}};let T=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof h["c"]||e instanceof h["a"]}getChildren(e){if(e instanceof h["c"])return e.groups;if(e instanceof h["a"])return e.resolve(this._resolverService).then(e=>e.children);throw new Error("bad tree")}};T=I([M(0,_["a"])],T);class A{getHeight(){return 23}getTemplateId(e){return e instanceof h["a"]?R.id:B.id}}let N=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof h["b"]){const n=null===(t=e.parent.getPreview(e))||void 0===t?void 0:t.preview(e.range);if(n)return n.value}return Object(m["b"])(e.uri)}};N=I([M(0,L["a"])],N);class P{getId(e){return e instanceof h["b"]?e.id:e.uri}}let j=class extends o["a"]{constructor(e,t,n){super(),this._uriLabel=t;const i=document.createElement("div");i.classList.add("reference-file"),this.file=this._register(new w["a"](i,{supportHighlights:!0})),this.badge=new C["a"](d["q"](i,d["a"](".count"))),this._register(Object(O["a"])(this.badge,n)),e.appendChild(i)}set(e,t){let n=Object(m["d"])(e.uri);this.file.setLabel(Object(k["a"])(e.uri),this._uriLabel.getUriLabel(n,{relative:!0}),{title:this._uriLabel.getUriLabel(e.uri),matches:t});const r=e.children.length;this.badge.setCount(r),r>1?this.badge.setTitleFormat(Object(i["a"])("referencesCount","{0} references",r)):this.badge.setTitleFormat(Object(i["a"])("referenceCount","{0} reference",r))}};j=I([M(1,S["a"]),M(2,x["b"])],j);let R=class e{constructor(t){this._instantiationService=t,this.templateId=e.id}renderTemplate(e){return this._instantiationService.createInstance(j,e)}renderElement(e,t,n){n.set(e.element,Object(E["c"])(e.filterData))}disposeTemplate(e){e.dispose()}};R.id="FileReferencesRenderer",R=I([M(0,a["a"])],R);class F{constructor(e){this.label=new D["a"](e,!1)}set(e,t){var n;const i=null===(n=e.parent.getPreview(e))||void 0===n?void 0:n.preview(e.range);if(i&&i.value){const{value:e,highlight:n}=i;t&&!E["a"].isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(e,Object(E["c"])(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(e,[n]))}else this.label.set(`${Object(m["b"])(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`)}}class B{constructor(){this.templateId=B.id}renderTemplate(e){return new F(e)}renderElement(e,t,n){n.set(e.element,e.filterData)}disposeTemplate(){}}B.id="OneReferenceRenderer";class W{getWidgetAriaLabel(){return Object(i["a"])("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}var V=n("93d9"),z=n("303e"),H=n("88d4"),U=n("e385"),q=n("3803"),$=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},K=function(e,t){return function(n,i){t(n,i,e)}},G=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class Y{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new o["b"],this._callOnModelChange=new o["b"],this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const e=this._editor.getModel();if(e)for(let t of this._model.references)if(t.uri.toString()===e.uri.toString())return void this._addDecorations(t.parent)}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const t=[],n=[];for(let r=0,o=e.children.length;r<o;r++){let i=e.children[r];this._decorationIgnoreSet.has(i.id)||i.uri.toString()===this._editor.getModel().uri.toString()&&(t.push({range:i.range,options:Y.DecorationOptions}),n.push(r))}const i=this._editor.deltaDecorations([],t);for(let r=0;r<i.length;r++)this._decorations.set(i[r],e.children[n[r]])}_onDecorationChanged(){const e=[],t=this._editor.getModel();if(t){for(let[n,i]of this._decorations){const r=t.getDecorationRange(n);if(!r)continue;let o=!1;if(!b["a"].equalsRange(r,i.range)){if(b["a"].spansMultipleLines(r))o=!0;else{const e=i.range.endColumn-i.range.startColumn,t=r.endColumn-r.startColumn;e!==t&&(o=!0)}o?(this._decorationIgnoreSet.add(i.id),e.push(n)):i.range=r}}for(let t=0,n=e.length;t<n;t++)this._decorations.delete(e[t]);this._editor.deltaDecorations(e,[])}}removeDecorations(){this._editor.deltaDecorations([...this._decorations.keys()],[]),this._decorations.clear()}}Y.DecorationOptions=y["a"].register({description:"reference-decoration",stickiness:1,className:"reference-decoration"});class Z{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(e){let t,n;try{const i=JSON.parse(e);t=i.ratio,n=i.heightInLines}catch(i){}return{ratio:t||.7,heightInLines:n||18}}}class X extends V["c"]{}let Q=class extends H["c"]{constructor(e,t,n,i,r,s,a,l,c,u){super(e,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0},s),this._defaultTreeKeyboardSupport=t,this.layoutData=n,this._textModelResolverService=r,this._instantiationService=s,this._peekViewService=a,this._uriLabel=l,this._undoRedoService=c,this._keybindingService=u,this._disposeOnNewModel=new o["b"],this._callOnDispose=new o["b"],this._onDidSelectReference=new p["b"],this.onDidSelectReference=this._onDidSelectReference.event,this._dim=new d["b"](0,0),this._applyTheme(i.getColorTheme()),this._callOnDispose.add(i.onDidColorThemeChange(this._applyTheme.bind(this))),this._peekViewService.addExclusiveWidget(e,this),this.create()}dispose(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),Object(o["f"])(this._preview),Object(o["f"])(this._previewNotAvailableMessage),Object(o["f"])(this._tree),Object(o["f"])(this._previewModelReference),this._splitView.dispose(),super.dispose()}_applyTheme(e){const t=e.getColor(H["e"])||f["a"].transparent;this.style({arrowColor:t,frameColor:t,headerBackgroundColor:e.getColor(H["p"])||f["a"].transparent,primaryHeadingColor:e.getColor(H["q"]),secondaryHeadingColor:e.getColor(H["r"])})}show(e){this.editor.revealRangeInCenterIfOutsideViewport(e,0),super.show(e,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this._tree.domFocus()}focusOnPreviewEditor(){this._preview.focus()}isPreviewEditorFocused(){return this._preview.hasTextFocus()}_onTitleClick(e){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:e.ctrlKey||e.metaKey||e.altKey?"side":"open",source:"title"})}_fillBody(e){this.setCssClass("reference-zone-widget"),this._messageContainer=d["q"](e,d["a"]("div.messages")),d["K"](this._messageContainer),this._splitView=new U["b"](e,{orientation:1}),this._previewContainer=d["q"](e,d["a"]("div.preview.inline"));let t={scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!1},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}};this._preview=this._instantiationService.createInstance(v["a"],this._previewContainer,t,this.editor),d["K"](this._previewContainer),this._previewNotAvailableMessage=new y["b"](i["a"]("missingPreviewMessage","no preview available"),y["b"].DEFAULT_CREATION_OPTIONS,null,null,this._undoRedoService),this._treeContainer=d["q"](e,d["a"]("div.ref-tree.inline"));const n={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new W,keyboardNavigationLabelProvider:this._instantiationService.createInstance(N),identityProvider:new P,openOnSingleClick:!0,selectionNavigation:!0,overrideStyles:{listBackground:H["j"]}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(d["o"](this._treeContainer,"keydown",e=>{e.equals(9)&&(this._keybindingService.dispatchEvent(e,e.target),e.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(X,"ReferencesWidget",this._treeContainer,new A,[this._instantiationService.createInstance(R),this._instantiationService.createInstance(B)],this._instantiationService.createInstance(T),n),this._splitView.addView({onDidChange:p["c"].None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:e=>{this._preview.layout({height:this._dim.height,width:e})}},U["a"].Distribute),this._splitView.addView({onDidChange:p["c"].None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:e=>{this._treeContainer.style.height=this._dim.height+"px",this._treeContainer.style.width=e+"px",this._tree.layout(this._dim.height,e)}},U["a"].Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));let r=(e,t)=>{e instanceof h["b"]&&("show"===t&&this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:t,source:"tree"}))};this._tree.onDidOpen(e=>{e.sideBySide?r(e.element,"side"):e.editorOptions.pinned?r(e.element,"goto"):r(e.element,"show")}),d["K"](this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new d["b"](t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=i["a"]("noResults","No results"),d["W"](this._messageContainer),Promise.resolve(void 0)):(d["K"](this._messageContainer),this._decorationsManager=new Y(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{const{event:t,target:n}=e;if(2!==t.detail)return;const i=this._getFocusedReference();i&&this._onDidSelectReference.fire({element:{uri:i.uri,range:n.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),d["W"](this._treeContainer),d["W"](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)}_getFocusedReference(){const[e]=this._tree.getFocus();return e instanceof h["b"]?e:e instanceof h["a"]&&e.children.length>0?e.children[0]:void 0}revealReference(e){return G(this,void 0,void 0,(function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})}))}_revealReference(e,t){return G(this,void 0,void 0,(function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==g["c"].inMemory?this.setTitle(Object(m["c"])(e.uri),this._uriLabel.getUriLabel(Object(m["d"])(e.uri))):this.setTitle(i["a"]("peekView.alternateTitle","References"));const n=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent||(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent)),this._tree.reveal(e);const r=yield n;if(!this._model)return void r.dispose();Object(o["f"])(this._previewModelReference);const s=r.object;if(s){const t=this._preview.getModel()===s.textEditorModel?0:1,n=b["a"].lift(e.range).collapseToStart();this._previewModelReference=r,this._preview.setModel(s.textEditorModel),this._preview.setSelection(n),this._preview.revealRangeInCenter(n,t)}else this._preview.setModel(this._previewNotAvailableMessage),r.dispose()}))}};Q=$([K(3,x["b"]),K(4,_["a"]),K(5,a["a"]),K(6,H["a"]),K(7,S["a"]),K(8,q["a"]),K(9,L["a"])],Q),Object(x["f"])((e,t)=>{const n=e.getColor(H["m"]);n&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: ${n}; }`);const i=e.getColor(H["h"]);i&&t.addRule(`.monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: ${i}; }`);const r=e.getColor(H["i"]);r&&t.addRule(`.monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid ${r}; box-sizing: border-box; }`);const o=e.getColor(z["b"]);o&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted ${o}; box-sizing: border-box; }`);const s=e.getColor(H["j"]);s&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree { background-color: ${s}; }`);const a=e.getColor(H["l"]);a&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree { color: ${a}; }`);const l=e.getColor(H["k"]);l&&t.addRule(`.monaco-editor .reference-zone-widget .ref-tree .reference-file { color: ${l}; }`);const c=e.getColor(H["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}; }`);const u=e.getColor(H["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; }`);const h=e.getColor(H["f"]);h&&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: ${h};}`);const d=e.getColor(H["g"]);d&&t.addRule(`.monaco-editor .reference-zone-widget .preview .monaco-editor .margin {\tbackground-color: ${d};}`)});var J=n("7061"),ee=n("b0cd"),te=n("5fe7"),ne=n("9eb8"),ie=n("fe45"),re=n("9e74"),oe=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},se=function(e,t){return function(n,i){t(n,i,e)}},ae=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const le=new l["c"]("referenceSearchVisible",!1,i["a"]("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let ce=class e{constructor(e,t,n,i,r,s,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=i,this._notificationService=r,this._instantiationService=s,this._storageService=a,this._configurationService=l,this._disposables=new o["b"],this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=le.bindTo(n)}static get(t){return t.getContribution(e.ID)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),null===(e=this._widget)||void 0===e||e.dispose(),null===(t=this._model)||void 0===t||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,n){let r;if(this._widget&&(r=this._widget.position),this.closeWidget(),r&&e.containsPosition(r))return;this._peekMode=n,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const o="peekViewLayout",s=Z.fromJSON(this._storageService.get(o,0,"{}"));this._widget=this._instantiationService.createInstance(Q,this._editor,this._defaultTreeKeyboardSupport,s),this._widget.setTitle(i["a"]("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(o,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(e=>{let{element:t,kind:i}=e;if(t)switch(i){case"open":"editor"===e.source&&this._configurationService.getValue("editor.stablePeek")||this.openReference(t,!1,!1);break;case"side":this.openReference(t,!0,!1);break;case"goto":n?this._gotoReference(t):this.openReference(t,!1,!0);break}}));const a=++this._requestIdPool;t.then(t=>{var n;if(a===this._requestIdPool&&this._widget)return null===(n=this._model)||void 0===n||n.dispose(),this._model=t,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(i["a"]("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));let t=this._editor.getModel().uri,n=new J["a"](e.startLineNumber,e.startColumn),r=this._model.nearestReference(t,n);if(r)return this._widget.setSelection(r).then(()=>{this._widget&&"editor"===this._editor.getOption(75)&&this._widget.focusOnPreviewEditor()})}});t.dispose()},e=>{this._notificationService.error(e)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return ae(this,void 0,void 0,(function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;const t=this._widget.position;if(!t)return;const n=this._model.nearestReference(this._editor.getModel().uri,t);if(!n)return;const i=this._model.nextOrPreviousReference(n,e),r=this._editor.hasTextFocus(),o=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(i),yield this._gotoReference(i),r?this._editor.focus():this._widget&&o&&this._widget.focusOnPreviewEditor()}))}revealReference(e){return ae(this,void 0,void 0,(function*(){this._editor.hasModel()&&this._model&&this._widget&&(yield this._widget.revealReference(e))}))}closeWidget(e=!0){var t,n;null===(t=this._widget)||void 0===t||t.dispose(),null===(n=this._model)||void 0===n||n.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(t){this._widget&&this._widget.hide(),this._ignoreModelChangeEvent=!0;const n=b["a"].lift(t.range).collapseToStart();return this._editorService.openCodeEditor({resource:t.uri,options:{selection:n}},this._editor).then(t=>{var i;if(this._ignoreModelChangeEvent=!1,t&&this._widget)if(this._editor===t)this._widget.show(n),this._widget.focusOnReferenceTree();else{const r=e.get(t),o=this._model.clone();this.closeWidget(),t.focus(),r.toggleWidget(n,Object(te["h"])(e=>Promise.resolve(o)),null!==(i=this._peekMode)&&void 0!==i&&i)}else this.closeWidget()},e=>{this._ignoreModelChangeEvent=!1,Object(r["e"])(e)})}openReference(e,t,n){t||this.closeWidget();const{uri:i,range:r}=e;this._editorService.openCodeEditor({resource:i,options:{selection:r,pinned:n}},this._editor,t)}};function ue(e,t){const n=Object(H["d"])(e);if(!n)return;let i=ce.get(n);i&&t(i)}ce.ID="editor.contrib.referencesController",ce=oe([se(2,l["b"]),se(3,s["a"]),se(4,ee["a"]),se(5,a["a"]),se(6,u["a"]),se(7,c["a"])],ce),ne["a"].registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:Object(ie["a"])(2089,60),when:l["a"].or(le,H["b"].inPeekEditor),handler(e){ue(e,e=>{e.changeFocusBetweenPreviewAndReferences()})}}),ne["a"].registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:l["a"].or(le,H["b"].inPeekEditor),handler(e){ue(e,e=>{e.goToNextOrPreviousReference(!0)})}}),ne["a"].registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:l["a"].or(le,H["b"].inPeekEditor),handler(e){ue(e,e=>{e.goToNextOrPreviousReference(!1)})}}),re["a"].registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),re["a"].registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),re["a"].registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),re["a"].registerCommand("closeReferenceSearch",e=>ue(e,e=>e.closeWidget())),ne["a"].registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:l["a"].and(H["b"].inPeekEditor,l["a"].not("config.editor.stablePeek"))}),ne["a"].registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:l["a"].and(le,l["a"].not("config.editor.stablePeek"))}),ne["a"].registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:l["a"].and(le,V["e"]),handler(e){var t;const n=e.get(V["a"]),i=null===(t=n.lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof h["b"]&&ue(e,e=>e.revealReference(i[0]))}}),ne["a"].registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:l["a"].and(le,V["e"]),handler(e){var t;const n=e.get(V["a"]),i=null===(t=n.lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof h["b"]&&ue(e,e=>e.openReference(i[0],!0,!0))}}),re["a"].registerCommand("openReference",e=>{var t;const n=e.get(V["a"]),i=null===(t=n.lastFocusedList)||void 0===t?void 0:t.getFocus();Array.isArray(i)&&i[0]instanceof h["b"]&&ue(e,e=>e.openReference(i[0],!1,!0))})},"41a0":function(e,t,n){},"41b2":function(e,t,n){"use strict";t.__esModule=!0;var i=n("3f6b"),r=o(i);function o(e){return e&&e.__esModule?e:{default:e}}t.default=r.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}},"41ef":function(e,t,n){"use strict";n.r(t),n.d(t,"parse",(function(){return b})),n.d(t,"lift",(function(){return w})),n.d(t,"toHex",(function(){return C})),n.d(t,"fastLerp",(function(){return S})),n.d(t,"fastMapToColor",(function(){return x})),n.d(t,"lerp",(function(){return O})),n.d(t,"mapToColor",(function(){return k})),n.d(t,"modifyHSL",(function(){return L})),n.d(t,"modifyAlpha",(function(){return E})),n.d(t,"stringify",(function(){return D})),n.d(t,"lum",(function(){return I})),n.d(t,"random",(function(){return M})),n.d(t,"liftColor",(function(){return A}));var i=n("d51b"),r=n("6d8b"),o={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function s(e){return e=Math.round(e),e<0?0:e>255?255:e}function a(e){return e=Math.round(e),e<0?0:e>360?360:e}function l(e){return e<0?0:e>1?1:e}function c(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?s(parseFloat(t)/100*255):s(parseInt(t,10))}function u(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?l(parseFloat(t)/100):l(parseFloat(t))}function h(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function d(e,t,n){return e+(t-e)*n}function f(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var g=new i["a"](20),m=null;function v(e,t){m&&p(m,t),m=g.put(e,m||t.slice())}function b(e,t){if(e){t=t||[];var n=g.get(e);if(n)return p(t,n);e+="";var i=e.replace(/ /g,"").toLowerCase();if(i in o)return p(t,o[i]),v(e,t),t;var r=i.length;if("#"!==i.charAt(0)){var s=i.indexOf("("),a=i.indexOf(")");if(-1!==s&&a+1===r){var l=i.substr(0,s),h=i.substr(s+1,a-(s+1)).split(","),d=1;switch(l){case"rgba":if(4!==h.length)return 3===h.length?f(t,+h[0],+h[1],+h[2],1):f(t,0,0,0,1);d=u(h.pop());case"rgb":return h.length>=3?(f(t,c(h[0]),c(h[1]),c(h[2]),3===h.length?d:u(h[3])),v(e,t),t):void f(t,0,0,0,1);case"hsla":return 4!==h.length?void f(t,0,0,0,1):(h[3]=u(h[3]),y(h,t),v(e,t),t);case"hsl":return 3!==h.length?void f(t,0,0,0,1):(y(h,t),v(e,t),t);default:return}}f(t,0,0,0,1)}else{if(4===r||5===r){var m=parseInt(i.slice(1,4),16);return m>=0&&m<=4095?(f(t,(3840&m)>>4|(3840&m)>>8,240&m|(240&m)>>4,15&m|(15&m)<<4,5===r?parseInt(i.slice(4),16)/15:1),v(e,t),t):void f(t,0,0,0,1)}if(7===r||9===r){m=parseInt(i.slice(1,7),16);return m>=0&&m<=16777215?(f(t,(16711680&m)>>16,(65280&m)>>8,255&m,9===r?parseInt(i.slice(7),16)/255:1),v(e,t),t):void f(t,0,0,0,1)}}}}function y(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=u(e[1]),r=u(e[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return t=t||[],f(t,s(255*h(a,o,n+1/3)),s(255*h(a,o,n)),s(255*h(a,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function _(e){if(e){var t,n,i=e[0]/255,r=e[1]/255,o=e[2]/255,s=Math.min(i,r,o),a=Math.max(i,r,o),l=a-s,c=(a+s)/2;if(0===l)t=0,n=0;else{n=c<.5?l/(a+s):l/(2-a-s);var u=((a-i)/6+l/2)/l,h=((a-r)/6+l/2)/l,d=((a-o)/6+l/2)/l;i===a?t=d-h:r===a?t=1/3+u-d:o===a&&(t=2/3+h-u),t<0&&(t+=1),t>1&&(t-=1)}var f=[360*t,n,c];return null!=e[3]&&f.push(e[3]),f}}function w(e,t){var n=b(e);if(n){for(var i=0;i<3;i++)n[i]=t<0?n[i]*(1-t)|0:(255-n[i])*t+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return D(n,4===n.length?"rgba":"rgb")}}function C(e){var t=b(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function S(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=t[r],c=t[o],u=i-r;return n[0]=s(d(a[0],c[0],u)),n[1]=s(d(a[1],c[1],u)),n[2]=s(d(a[2],c[2],u)),n[3]=l(d(a[3],c[3],u)),n}}var x=S;function O(e,t,n){if(t&&t.length&&e>=0&&e<=1){var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=b(t[r]),c=b(t[o]),u=i-r,h=D([s(d(a[0],c[0],u)),s(d(a[1],c[1],u)),s(d(a[2],c[2],u)),l(d(a[3],c[3],u))],"rgba");return n?{color:h,leftIndex:r,rightIndex:o,value:i}:h}}var k=O;function L(e,t,n,i){var r=b(e);if(e)return r=_(r),null!=t&&(r[0]=a(t)),null!=n&&(r[1]=u(n)),null!=i&&(r[2]=u(i)),D(y(r),"rgba")}function E(e,t){var n=b(e);if(n&&null!=t)return n[3]=l(t),D(n,"rgba")}function D(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function I(e,t){var n=b(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function M(){return D([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var T=new i["a"](100);function A(e){if(Object(r["isString"])(e)){var t=T.get(e);return t||(t=w(e,-.1),T.put(e,t)),t}if(Object(r["isGradientObject"])(e)){var n=Object(r["extend"])({},e);return n.colorStops=Object(r["map"])(e.colorStops,(function(e){return{offset:e.offset,color:w(e.color,-.1)}})),n}return e}},"41f6":function(e,t,n){},4220:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return n.e("chunk-2d0ea098").then(n.bind(null,"8fa5"))}})},"428f":function(e,t,n){var i=n("da84");e.exports=i},"42e3":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("308f"),r=n("a666");class o{constructor(e,t,n,i,r,o){this._scrollStateBrand=void 0,e|=0,t|=0,n|=0,i|=0,r|=0,o|=0,this.rawScrollLeft=n,this.rawScrollTop=o,e<0&&(e=0),n+e>t&&(n=t-e),n<0&&(n=0),i<0&&(i=0),o+i>r&&(o=r-i),o<0&&(o=0),this.width=e,this.scrollWidth=t,this.scrollLeft=n,this.height=i,this.scrollHeight=r,this.scrollTop=o}equals(e){return this.rawScrollLeft===e.rawScrollLeft&&this.rawScrollTop===e.rawScrollTop&&this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop}withScrollDimensions(e,t){return new o("undefined"!==typeof e.width?e.width:this.width,"undefined"!==typeof e.scrollWidth?e.scrollWidth:this.scrollWidth,t?this.rawScrollLeft:this.scrollLeft,"undefined"!==typeof e.height?e.height:this.height,"undefined"!==typeof e.scrollHeight?e.scrollHeight:this.scrollHeight,t?this.rawScrollTop:this.scrollTop)}withScrollPosition(e){return new o(this.width,this.scrollWidth,"undefined"!==typeof e.scrollLeft?e.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,"undefined"!==typeof e.scrollTop?e.scrollTop:this.rawScrollTop)}createScrollEvent(e,t){const n=this.width!==e.width,i=this.scrollWidth!==e.scrollWidth,r=this.scrollLeft!==e.scrollLeft,o=this.height!==e.height,s=this.scrollHeight!==e.scrollHeight,a=this.scrollTop!==e.scrollTop;return{inSmoothScrolling:t,oldWidth:e.width,oldScrollWidth:e.scrollWidth,oldScrollLeft:e.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:e.height,oldScrollHeight:e.scrollHeight,oldScrollTop:e.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:n,scrollWidthChanged:i,scrollLeftChanged:r,heightChanged:o,scrollHeightChanged:s,scrollTopChanged:a}}}class s extends r["a"]{constructor(e,t){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new i["b"]),this.onScroll=this._onScroll.event,this._smoothScrollDuration=e,this._scheduleAtNextAnimationFrame=t,this._state=new o(0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(e){this._smoothScrollDuration=e}validateScrollPosition(e){return this._state.withScrollPosition(e)}getScrollDimensions(){return this._state}setScrollDimensions(e,t){const n=this._state.withScrollDimensions(e,t);this._setState(n,Boolean(this._smoothScrolling)),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(e){const t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t,!1)}setScrollPositionSmooth(e,t){if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:"undefined"===typeof e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:"undefined"===typeof e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};const n=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===n.scrollLeft&&this._smoothScrolling.to.scrollTop===n.scrollTop)return;let i;i=t?new u(this._smoothScrolling.from,n,this._smoothScrolling.startTime,this._smoothScrolling.duration):this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=i}else{const t=this._state.withScrollPosition(e);this._smoothScrolling=u.start(this._state,t,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}_performSmoothScrolling(){if(!this._smoothScrolling)return;const e=this._smoothScrolling.tick(),t=this._state.withScrollPosition(e);return this._setState(t,!0),this._smoothScrolling?e.isDone?(this._smoothScrolling.dispose(),void(this._smoothScrolling=null)):void(this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})):void 0}_setState(e,t){const n=this._state;n.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(n,t)))}}class a{constructor(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n}}function l(e,t){const n=t-e;return function(t){return e+n*d(t)}}function c(e,t,n){return function(i){return i<n?e(i/n):t((i-n)/(1-n))}}class u{constructor(e,t,n,i){this.from=e,this.to=t,this.duration=i,this.startTime=n,this.animationFrameDisposable=null,this._initAnimations()}_initAnimations(){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)}_initAnimation(e,t,n){const i=Math.abs(e-t);if(i>2.5*n){let i,r;return e<t?(i=e+.75*n,r=t-.75*n):(i=e-.75*n,r=t+.75*n),c(l(e,i),l(r,t),.33)}return l(e,t)}dispose(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)}acceptScrollDimensions(e){this.to=e.withScrollPosition(this.to),this._initAnimations()}tick(){return this._tick(Date.now())}_tick(e){const t=(e-this.startTime)/this.duration;if(t<1){const e=this.scrollLeft(t),n=this.scrollTop(t);return new a(e,n,!1)}return new a(this.to.scrollLeft,this.to.scrollTop,!0)}combine(e,t,n){return u.start(e,t,n)}static start(e,t,n){n+=10;const i=Date.now()-10;return new u(e,t,i,n)}}function h(e){return Math.pow(e,3)}function d(e){return 1-h(1-e)}},"42e5":function(e,t,n){"use strict";var i=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();t["a"]=i},4319:function(e,t,n){"use strict";var i=n("22d1"),r=n("625e"),o=n("282b"),s=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],a=Object(o["a"])(s),l=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return a(this,e,t)},e}(),c=n("7837"),u=n("76a5"),h=["textStyle","color"],d=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],f=new u["a"],p=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(h):null)},e.prototype.getFont=function(){return Object(c["d"])({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<d.length;n++)t[d[n]]=this.getShallow(d[n]);return f.useStyle(t),f.update(),f.getBoundingRect()},e}(),g=p,m=n("3901"),v=n("551f"),b=n("6d8b"),y=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},e.prototype.mergeOption=function(e,t){Object(b["merge"])(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,i=null==n?n:n[e];if(null==i&&!t){var r=this.parentModel;r&&(i=r.getShallow(e))}return i},e.prototype.getModel=function(t,n){var i=null!=t,r=i?this.parsePath(t):null,o=i?this._doGet(r):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new e(o,n,this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(Object(b["clone"])(this.option))},e.prototype.parsePath=function(e){return"string"===typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!i["a"].node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var i=0;i<e.length;i++)if(e[i]&&(n=n&&"object"===typeof n?n[e[i]]:null,null==n))break;return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();Object(r["b"])(y),Object(r["a"])(y),Object(b["mixin"])(y,m["b"]),Object(b["mixin"])(y,v["b"]),Object(b["mixin"])(y,l),Object(b["mixin"])(y,g);t["a"]=y},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,i="/";t.cwd=function(){return i},t.chdir=function(t){e||(e=n("df7c")),i=e.resolve(t,i)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"438a":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("1e93"),r=n("6d8e");function o(e){let t=JSON.parse(e);return t=s(t),t}function s(e,t=0){if(!e||t>200)return e;if("object"===typeof e){switch(e.$mid){case 1:return r["a"].revive(e);case 2:return new RegExp(e.source,e.flags)}if(e instanceof i["a"]||e instanceof Uint8Array)return e;if(Array.isArray(e))for(let n=0;n<e.length;++n)e[n]=s(e[n],t+1);else for(const n in e)Object.hasOwnProperty.call(e,n)&&(e[n]=s(e[n],t+1))}return e}},"43ad":function(e,t,n){"use strict";n.r(t),n.d(t,"rename",(function(){return B})),n.d(t,"RenameAction",(function(){return V}));var i=n("dff7"),r=n("fdcc"),o=n("4fc3"),s=n("b539"),a=n("b2cc"),l=n("c101"),c=(n("0632"),n("a666")),u=n("7061"),h=n("303e"),d=n("b7d0"),f=n("6dec"),p=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},g=function(e,t){return function(n,i){t(n,i,e)}};const m=new o["c"]("renameInputVisible",!1,Object(i["a"])("renameInputVisible","Whether the rename input widget is visible"));let v=class{constructor(e,t,n,i,r){this._editor=e,this._acceptKeybindings=t,this._themeService=n,this._keybindingService=i,this._disposables=new c["b"],this.allowEditorOverflow=!0,this._visibleContextKey=m.bindTo(r),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(41)&&this._updateFont()})),this._disposables.add(n.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){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(i["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);const e=()=>{var e,t;const[n,r]=this._acceptKeybindings;this._keybindingService.lookupKeybinding(n),this._label.innerText=Object(i["a"])({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",null===(e=this._keybindingService.lookupKeybinding(n))||void 0===e?void 0:e.getLabel(),null===(t=this._keybindingService.lookupKeybinding(r))||void 0===t?void 0:t.getLabel())};e(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(e)),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())}return this._domNode}_updateStyles(e){var t,n,i,r;if(!this._input||!this._domNode)return;const o=e.getColor(h["Mc"]);this._domNode.style.backgroundColor=String(null!==(t=e.getColor(h["Y"]))&&void 0!==t?t:""),this._domNode.style.boxShadow=o?" 0 0 8px 2px "+o:"",this._domNode.style.color=String(null!==(n=e.getColor(h["lb"]))&&void 0!==n?n:""),this._input.style.backgroundColor=String(null!==(i=e.getColor(h["jb"]))&&void 0!==i?i:"");const s=e.getColor(h["kb"]);this._input.style.borderWidth=s?"1px":"0px",this._input.style.borderStyle=s?"solid":"none",this._input.style.borderColor=null!==(r=null===s||void 0===s?void 0:s.toString())&&void 0!==r?r:"none"}_updateFont(){if(!this._input||!this._label)return;const e=this._editor.getOption(41);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"}getPosition(){return this._visible?{position:this._position,preference:[2,1]}:null}afterRender(e){e||this.cancelInput(!0)}acceptInput(e){this._currentAcceptInput&&this._currentAcceptInput(e)}cancelInput(e){this._currentCancelInput&&this._currentCancelInput(e)}getInput(e,t,n,i,r,o){this._domNode.classList.toggle("preview",r),this._position=new u["a"](e.startLineNumber,e.startColumn),this._input.value=t,this._input.setAttribute("selectionStart",n.toString()),this._input.setAttribute("selectionEnd",i.toString()),this._input.size=Math.max(1.1*(e.endColumn-e.startColumn),20);const s=new c["b"];return new Promise(e=>{this._currentCancelInput=t=>(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,e(t),!0),this._currentAcceptInput=n=>{0!==this._input.value.trim().length&&this._input.value!==t?(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,e({newName:this._input.value,wantsPreview:r&&n})):this.cancelInput(!0)},o.onCancellationRequested(()=>this.cancelInput(!0)),s.add(this._editor.onDidBlurEditorWidget(()=>this.cancelInput(!1))),this._show()}).finally(()=>{s.dispose(),this._hide()})}_show(){this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(()=>{this._input.focus(),this._input.setSelectionRange(parseInt(this._input.getAttribute("selectionStart")),parseInt(this._input.getAttribute("selectionEnd")))},100)}_hide(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}};v=p([g(2,d["b"]),g(3,f["a"]),g(4,o["b"])],v);var b=n("b707"),y=n("3813"),_=n("6a89"),w=n("351f"),C=n("bc04"),S=n("b0cd"),x=n("c7f5"),O=n("6d8e"),k=n("5717"),L=n("2504"),E=n("5fe7"),D=n("d3d7"),I=n("0a0f"),M=n("89cd"),T=n("0910"),A=n("7b4a"),N=n("ef8e"),P=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},j=function(e,t){return function(n,i){t(n,i,e)}},R=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class F{constructor(e,t){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=b["z"].ordered(e)}hasProvider(){return this._providers.length>0}resolveRenameLocation(e){return R(this,void 0,void 0,(function*(){const t=[];for(this._providerRenameIdx=0;this._providerRenameIdx<this._providers.length;this._providerRenameIdx++){const n=this._providers[this._providerRenameIdx];if(!n.resolveRenameLocation)break;let i=yield n.resolveRenameLocation(this.model,this.position,e);if(i){if(!i.rejectReason)return i;t.push(i.rejectReason)}}const n=this.model.getWordAtPosition(this.position);return n?{range:new _["a"](this.position.lineNumber,n.startColumn,this.position.lineNumber,n.endColumn),text:n.word,rejectReason:t.length>0?t.join("\n"):void 0}:{range:_["a"].fromPositions(this.position),text:"",rejectReason:t.length>0?t.join("\n"):void 0}}))}provideRenameEdits(e,t){return R(this,void 0,void 0,(function*(){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)}))}_provideRenameEdits(e,t,n,r){return R(this,void 0,void 0,(function*(){const o=this._providers[t];if(!o)return{edits:[],rejectReason:n.join("\n")};const s=yield o.provideRenameEdits(this.model,this.position,e,r);return s?s.rejectReason?this._provideRenameEdits(e,t+1,n.concat(s.rejectReason),r):s:this._provideRenameEdits(e,t+1,n.concat(i["a"]("no result","No result.")),r)}))}}function B(e,t,n){return R(this,void 0,void 0,(function*(){const i=new F(e,t),r=yield i.resolveRenameLocation(L["a"].None);return(null===r||void 0===r?void 0:r.rejectReason)?{edits:[],rejectReason:r.rejectReason}:i.provideRenameEdits(n,L["a"].None)}))}let W=class e{constructor(e,t,n,i,r,o,s){this.editor=e,this._instaService=t,this._notificationService=n,this._bulkEditService=i,this._progressService=r,this._logService=o,this._configService=s,this._dispoableStore=new c["b"],this._cts=new L["b"],this._renameInputField=this._dispoableStore.add(new E["b"](()=>this._dispoableStore.add(this._instaService.createInstance(v,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))))}static get(t){return t.getContribution(e.ID)}dispose(){this._dispoableStore.dispose(),this._cts.dispose(!0)}run(){return R(this,void 0,void 0,(function*(){if(this._cts.dispose(!0),!this.editor.hasModel())return;const e=this.editor.getPosition(),t=new F(this.editor.getModel(),e);if(!t.hasProvider())return;let n;this._cts=new C["b"](this.editor,5);try{const e=t.resolveRenameLocation(this._cts.token);this._progressService.showWhile(e,250),n=yield e}catch(u){return void w["a"].get(this.editor).showMessage(u||i["a"]("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),e)}if(!n)return;if(n.rejectReason)return void w["a"].get(this.editor).showMessage(n.rejectReason,e);if(this._cts.token.isCancellationRequested)return;this._cts.dispose(),this._cts=new C["b"](this.editor,5,n.range);let r=this.editor.getSelection(),o=0,s=n.text.length;_["a"].isEmpty(r)||_["a"].spansMultipleLines(r)||!_["a"].containsRange(n.range,r)||(o=Math.max(0,r.startColumn-n.range.startColumn),s=Math.min(n.range.endColumn,r.endColumn)-n.range.startColumn);const a=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),l=yield this._renameInputField.value.getInput(n.range,n.text,o,s,a,this._cts.token);if("boolean"===typeof l)return void(l&&this.editor.focus());this.editor.focus();const c=Object(E["l"])(t.provideRenameEdits(l.newName,this._cts.token),this._cts.token).then(e=>R(this,void 0,void 0,(function*(){e&&this.editor.hasModel()&&(e.rejectReason?this._notificationService.info(e.rejectReason):this._bulkEditService.apply(x["b"].convert(e),{editor:this.editor,showPreview:l.wantsPreview,label:i["a"]("label","Renaming '{0}'",null===n||void 0===n?void 0:n.text),quotableLabel:i["a"]("quotableLabel","Renaming {0}",null===n||void 0===n?void 0:n.text)}).then(e=>{e.ariaSummary&&Object(y["a"])(i["a"]("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",n.text,l.newName,e.ariaSummary))}).catch(e=>{this._notificationService.error(i["a"]("rename.failedApply","Rename failed to apply edits")),this._logService.error(e)}))})),e=>{this._notificationService.error(i["a"]("rename.failed","Rename failed to compute edits")),this._logService.error(e)});return this._progressService.showWhile(c,250),c}))}acceptRenameInput(e){this._renameInputField.value.acceptInput(e)}cancelRenameInput(){this._renameInputField.value.cancelInput(!0)}};W.ID="editor.contrib.renameController",W=P([j(1,I["a"]),j(2,S["a"]),j(3,x["a"]),j(4,s["a"]),j(5,D["b"]),j(6,A["a"])],W);class V extends a["b"]{constructor(){super({id:"editor.action.rename",label:i["a"]("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:o["a"].and(l["a"].writable,l["a"].hasRenameProvider),kbOpts:{kbExpr:l["a"].editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){const n=e.get(k["a"]),[i,o]=Array.isArray(t)&&t||[void 0,void 0];return O["a"].isUri(i)&&u["a"].isIPosition(o)?n.openCodeEditor({resource:i},n.getActiveCodeEditor()).then(e=>{e&&(e.setPosition(o),e.invokeWithinContext(t=>(this.reportTelemetry(t,e),this.run(t,e))))},r["e"]):super.runCommand(e,t)}run(e,t){const n=W.get(t);return n?n.run():Promise.resolve()}}Object(a["l"])(W.ID,W),Object(a["j"])(V);const z=a["c"].bindToContribution(W.get);Object(a["k"])(new z({id:"acceptRenameInput",precondition:m,handler:e=>e.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:l["a"].focus,primary:3}})),Object(a["k"])(new z({id:"acceptRenameInputWithPreview",precondition:o["a"].and(m,o["a"].has("config.editor.rename.enablePreview")),handler:e=>e.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:l["a"].focus,primary:1027}})),Object(a["k"])(new z({id:"cancelRenameInput",precondition:m,handler:e=>e.cancelRenameInput(),kbOpts:{weight:199,kbExpr:l["a"].focus,primary:9,secondary:[1033]}})),Object(a["n"])("_executeDocumentRenameProvider",(function(e,t,...n){const[i]=n;return Object(N["c"])("string"===typeof i),B(e,t,i)})),M["a"].as(T["a"].Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:i["a"]("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},"448a":function(e,t,n){var i=n("2236"),r=n("11b0"),o=n("6613"),s=n("0676");function a(e){return i(e)||r(e)||o(e)||s()}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},"44ad":function(e,t,n){var i=n("e330"),r=n("d039"),o=n("c6b6"),s=Object,a=i("".split);e.exports=r((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?a(e,""):s(e)}:s},"44c7":function(e,t,n){},"44d2":function(e,t,n){var i=n("b622"),r=n("7c73"),o=n("9bf2").f,s=i("unscopables"),a=Array.prototype;void 0==a[s]&&o(a,s,{configurable:!0,value:r(null)}),e.exports=function(e){a[s][e]=!0}},"44de":function(e,t,n){var i=n("da84");e.exports=function(e,t){var n=i.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var i=n("861d"),r=n("c6b6"),o=n("b622"),s=o("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==r(e))}},"451f":function(e,t,n){},4573:function(e,t,n){"use strict";var i=n("9ab4"),r=n("cbe5"),o=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),s=function(e){function t(t){return e.call(this,t)||this}return Object(i["a"])(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,r,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,r,!0)},t}(r["b"]);s.prototype.type="ring",t["a"]=s},4656:function(e,t,n){},"466d":function(e,t,n){"use strict";var i=n("c65b"),r=n("d784"),o=n("825a"),s=n("7234"),a=n("50c4"),l=n("577e"),c=n("1d80"),u=n("dc4a"),h=n("8aa5"),d=n("14c3");r("match",(function(e,t,n){return[function(t){var n=c(this),r=s(t)?void 0:u(t,e);return r?i(r,t,n):new RegExp(t)[e](l(n))},function(e){var i=o(this),r=l(e),s=n(t,i,r);if(s.done)return s.value;if(!i.global)return d(i,r);var c=i.unicode;i.lastIndex=0;var u,f=[],p=0;while(null!==(u=d(i,r))){var g=l(u[0]);f[p]=g,""===g&&(i.lastIndex=h(r,a(i.lastIndex),c)),p++}return 0===p?null:f}]}))},"467f":function(e,t,n){"use strict";var i=n("2d83");e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(i("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"46bb6":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.grid=d;var r=i(n("278c")),o=i(n("9523")),s=n("18ad"),a=n("5557"),l=n("9d85"),c=n("becb");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){(0,o["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.grid;n=(0,c.deepMerge)((0,a.deepClone)(l.gridConfig,!0),n||{}),(0,s.doUpdate)({chart:e,series:[n],key:"grid",getGraphConfig:f})}function f(e,t){var n=e.animationCurve,i=e.animationFrame,r=e.rLevel,o=p(e,t),s=m(e);return t.chart.gridArea=h({},o),[{name:"rect",index:r,animationCurve:n,animationFrame:i,shape:o,style:s}]}function p(e,t){var n=(0,r["default"])(t.chart.render.area,2),i=n[0],o=n[1],s=g(e.left,i),a=g(e.right,i),l=g(e.top,o),c=g(e.bottom,o),u=i-s-a,h=o-l-c;return{x:s,y:l,w:u,h:h}}function g(e,t){return"number"===typeof e?e:"string"!==typeof e?0:t*parseInt(e)/100}function m(e){var t=e.style;return t}},"470c":function(e,t,n){},4738:function(e,t,n){var i=n("da84"),r=n("d256"),o=n("1626"),s=n("94ca"),a=n("8925"),l=n("b622"),c=n("6069"),u=n("6c59"),h=n("c430"),d=n("2d00"),f=r&&r.prototype,p=l("species"),g=!1,m=o(i.PromiseRejectionEvent),v=s("Promise",(function(){var e=a(r),t=e!==String(r);if(!t&&66===d)return!0;if(h&&(!f["catch"]||!f["finally"]))return!0;if(!d||d<51||!/native code/.test(e)){var n=new r((function(e){e(1)})),i=function(e){e((function(){}),(function(){}))},o=n.constructor={};if(o[p]=i,g=n.then((function(){}))instanceof i,!g)return!0}return!t&&(c||u)&&!m}));e.exports={CONSTRUCTOR:v,REJECTION_EVENT:m,SUBCLASSING:g}},4754:function(e,t){e.exports=function(e,t){return{value:e,done:t}}},4779:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var i=n("0a0f"),r=n("4fc3");const o=Object(i["c"])("accessibilityService"),s=new r["c"]("accessibilityModeEnabled",!1)},"47cb":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("0a0f");const r=Object(i["c"])("labelService")},4816:function(e,t,n){"use strict";n.r(t);n("41a0");var i=n("11f7"),r=n("6653"),o=n("31df"),s=n("3813"),a=n("1b7d"),l=n("a666"),c=n("30db"),u=n("3742"),h=n("6d8e"),d=n("b2cc"),f=n("c101"),p=n("93ba"),g=n("4fc3"),m=n("0a0f"),v=n("6dec"),b=n("5bd7"),y=n("303e"),_=n("b7d0"),w=n("03d9"),C=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},S=function(e,t){return function(n,i){t(n,i,e)}};const x=new g["c"]("accessibilityHelpWidgetVisible",!1);let O=class e extends l["a"]{constructor(e,t){super(),this._editor=e,this._widget=this._register(t.createInstance(L,this._editor))}static get(t){return t.getContribution(e.ID)}show(){this._widget.show()}hide(){this._widget.hide()}};function k(e,t){return e&&0!==e.length?1===e.length?t?u["w"](w["a"].singleSelectionRange,e[0].positionLineNumber,e[0].positionColumn,t):u["w"](w["a"].singleSelection,e[0].positionLineNumber,e[0].positionColumn):t?u["w"](w["a"].multiSelectionRange,e.length,t):e.length>0?u["w"](w["a"].multiSelection,e.length):"":w["a"].noSelection}O.ID="editor.contrib.accessibilityHelpController",O=C([S(1,m["a"])],O);let L=class e extends a["a"]{constructor(e,t,n,o){super(),this._contextKeyService=t,this._keybindingService=n,this._openerService=o,this._editor=e,this._isVisibleKey=x.bindTo(this._contextKeyService),this._domNode=Object(r["b"])(document.createElement("div")),this._domNode.setClassName("accessibilityHelpWidget"),this._domNode.setDisplay("none"),this._domNode.setAttribute("role","dialog"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode=Object(r["b"])(document.createElement("div")),this._contentDomNode.setAttribute("role","document"),this._domNode.appendChild(this._contentDomNode),this._isVisible=!1,this._register(this._editor.onDidLayoutChange(()=>{this._isVisible&&this._layout()})),this._register(i["o"](this._contentDomNode.domNode,"keydown",e=>{if(this._isVisible&&(e.equals(2083)&&(Object(s["a"])(w["a"].emergencyConfOn),this._editor.updateOptions({accessibilitySupport:"on"}),i["t"](this._contentDomNode.domNode),this._buildContent(),this._contentDomNode.domNode.focus(),e.preventDefault(),e.stopPropagation()),e.equals(2086))){Object(s["a"])(w["a"].openingDocs);let t=this._editor.getRawOptions().accessibilityHelpUrl;"undefined"===typeof t&&(t="https://go.microsoft.com/fwlink/?linkid=852450"),this._openerService.open(h["a"].parse(t)),e.preventDefault(),e.stopPropagation()}})),this.onblur(this._contentDomNode.domNode,()=>{this.hide()}),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return e.ID}getDomNode(){return this._domNode.domNode}getPosition(){return{preference:null}}show(){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())}_descriptionForCommand(e,t,n){let i=this._keybindingService.lookupKeybinding(e);return i?u["w"](t,i.getAriaLabel()):u["w"](n,e)}_buildContent(){const e=this._editor.getOptions(),t=this._editor.getSelections();let n=0;if(t){const e=this._editor.getModel();e&&t.forEach(t=>{n+=e.getValueLengthInRange(t)})}let i=k(t,n);e.get(52)?e.get(79)?i+=w["a"].readonlyDiffEditor:i+=w["a"].editableDiffEditor:e.get(79)?i+=w["a"].readonlyEditor:i+=w["a"].editableEditor;const r=c["f"]?w["a"].changeConfigToOnMac:w["a"].changeConfigToOnWinLinux;switch(e.get(2)){case 0:i+="\n\n - "+r;break;case 2:i+="\n\n - "+w["a"].auto_on;break;case 1:i+="\n\n - "+w["a"].auto_off,i+=" "+r;break}e.get(128)?i+="\n\n - "+this._descriptionForCommand(p["ToggleTabFocusModeAction"].ID,w["a"].tabFocusModeOnMsg,w["a"].tabFocusModeOnMsgNoKb):i+="\n\n - "+this._descriptionForCommand(p["ToggleTabFocusModeAction"].ID,w["a"].tabFocusModeOffMsg,w["a"].tabFocusModeOffMsgNoKb);const s=c["f"]?w["a"].openDocMac:w["a"].openDocWinLinux;i+="\n\n - "+s,i+="\n\n"+w["a"].outroMsg,this._contentDomNode.domNode.appendChild(Object(o["b"])(i)),this._contentDomNode.domNode.setAttribute("aria-label",i)}hide(){this._isVisible&&(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,i["t"](this._contentDomNode.domNode),this._editor.focus())}_layout(){let t=this._editor.getLayoutInfo(),n=Math.max(5,Math.min(e.WIDTH,t.width-40)),i=Math.max(5,Math.min(e.HEIGHT,t.height-40));this._domNode.setWidth(n),this._domNode.setHeight(i);let r=Math.round((t.height-i)/2);this._domNode.setTop(r);let o=Math.round((t.width-n)/2);this._domNode.setLeft(o)}};L.ID="editor.contrib.accessibilityHelpWidget",L.WIDTH=500,L.HEIGHT=300,L=C([S(1,g["b"]),S(2,v["a"]),S(3,b["a"])],L);class E extends d["b"]{constructor(){super({id:"editor.action.showAccessibilityHelp",label:w["a"].showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{primary:571,weight:100,linux:{primary:1595,secondary:[571]}}})}run(e,t){let n=O.get(t);n&&n.show()}}Object(d["l"])(O.ID,O),Object(d["j"])(E);const D=d["c"].bindToContribution(O.get);Object(d["k"])(new D({id:"closeAccessibilityHelp",precondition:x,handler:e=>e.hide(),kbOpts:{weight:200,kbExpr:f["a"].focus,primary:9,secondary:[1033]}})),Object(_["f"])((e,t)=>{const n=e.getColor(y["Y"]);n&&t.addRule(`.monaco-editor .accessibilityHelpWidget { background-color: ${n}; }`);const i=e.getColor(y["ab"]);i&&t.addRule(`.monaco-editor .accessibilityHelpWidget { color: ${i}; }`);const r=e.getColor(y["Mc"]);r&&t.addRule(`.monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px ${r}; }`);const o=e.getColor(y["h"]);o&&t.addRule(`.monaco-editor .accessibilityHelpWidget { border: 2px solid ${o}; }`)})},4840:function(e,t,n){var i=n("825a"),r=n("5087"),o=n("7234"),s=n("b622"),a=s("species");e.exports=function(e,t){var n,s=i(e).constructor;return void 0===s||o(n=i(s)[a])?t:r(n)}},"485a":function(e,t,n){var i=n("c65b"),r=n("1626"),o=n("861d"),s=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&r(n=e.toString)&&!o(a=i(n,e)))return a;if(r(n=e.valueOf)&&!o(a=i(n,e)))return a;if("string"!==t&&r(n=e.toString)&&!o(a=i(n,e)))return a;throw s("Can't convert object to primitive value")}},"48a9":function(e,t,n){"use strict";var i=n("9ab4"),r=n("42e5"),o=function(e){function t(t,n,i,r,o,s){var a=e.call(this,o)||this;return a.x=null==t?0:t,a.y=null==n?0:n,a.x2=null==i?1:i,a.y2=null==r?0:r,a.type="linear",a.global=s||!1,a}return Object(i["a"])(t,e),t}(r["a"]);t["a"]=o},"498a":function(e,t,n){"use strict";var i=n("23e7"),r=n("58a8").trim,o=n("c8d2");i({target:"String",proto:!0,forced:o("trim")},{trim:function(){return r(this)}})},"49bc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gridConfig=void 0;var i={left:"10%",right:"10%",top:60,bottom:60,style:{fill:"rgba(0, 0, 0, 0)"},rLevel:-30,animationCurve:"easeOutCubic",animationFrame:30};t.gridConfig=i},"49d9":function(e,t,n){"use strict";function i(e,t,n){return Math.min(Math.max(e,t),n)}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));class r{constructor(){this._n=1,this._val=0}update(e){return this._val=this._val+(e-this._val)/this._n,this._n+=1,this}get value(){return this._val}}},"4a3f":function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"f",(function(){return v})),n.d(t,"c",(function(){return b})),n.d(t,"g",(function(){return y})),n.d(t,"e",(function(){return _})),n.d(t,"d",(function(){return w})),n.d(t,"h",(function(){return C})),n.d(t,"i",(function(){return S})),n.d(t,"m",(function(){return x})),n.d(t,"j",(function(){return O})),n.d(t,"n",(function(){return k})),n.d(t,"l",(function(){return L})),n.d(t,"k",(function(){return E}));var i=n("401b"),r=Math.pow,o=Math.sqrt,s=1e-8,a=1e-4,l=o(3),c=1/3,u=Object(i["create"])(),h=Object(i["create"])(),d=Object(i["create"])();function f(e){return e>-s&&e<s}function p(e){return e>s||e<-s}function g(e,t,n,i,r){var o=1-r;return o*o*(o*e+3*r*t)+r*r*(r*i+3*o*n)}function m(e,t,n,i,r){var o=1-r;return 3*(((t-e)*o+2*(n-t)*r)*o+(i-n)*r*r)}function v(e,t,n,i,s,a){var u=i+3*(t-n)-e,h=3*(n-2*t+e),d=3*(t-e),p=e-s,g=h*h-3*u*d,m=h*d-9*u*p,v=d*d-3*h*p,b=0;if(f(g)&&f(m))if(f(h))a[0]=0;else{var y=-d/h;y>=0&&y<=1&&(a[b++]=y)}else{var _=m*m-4*g*v;if(f(_)){var w=m/g,C=(y=-h/u+w,-w/2);y>=0&&y<=1&&(a[b++]=y),C>=0&&C<=1&&(a[b++]=C)}else if(_>0){var S=o(_),x=g*h+1.5*u*(-m+S),O=g*h+1.5*u*(-m-S);x=x<0?-r(-x,c):r(x,c),O=O<0?-r(-O,c):r(O,c);y=(-h-(x+O))/(3*u);y>=0&&y<=1&&(a[b++]=y)}else{var k=(2*g*h-3*u*m)/(2*o(g*g*g)),L=Math.acos(k)/3,E=o(g),D=Math.cos(L),I=(y=(-h-2*E*D)/(3*u),C=(-h+E*(D+l*Math.sin(L)))/(3*u),(-h+E*(D-l*Math.sin(L)))/(3*u));y>=0&&y<=1&&(a[b++]=y),C>=0&&C<=1&&(a[b++]=C),I>=0&&I<=1&&(a[b++]=I)}}return b}function b(e,t,n,i,r){var s=6*n-12*t+6*e,a=9*t+3*i-3*e-9*n,l=3*t-3*e,c=0;if(f(a)){if(p(s)){var u=-l/s;u>=0&&u<=1&&(r[c++]=u)}}else{var h=s*s-4*a*l;if(f(h))r[0]=-s/(2*a);else if(h>0){var d=o(h),g=(u=(-s+d)/(2*a),(-s-d)/(2*a));u>=0&&u<=1&&(r[c++]=u),g>=0&&g<=1&&(r[c++]=g)}}return c}function y(e,t,n,i,r,o){var s=(t-e)*r+e,a=(n-t)*r+t,l=(i-n)*r+n,c=(a-s)*r+s,u=(l-a)*r+a,h=(u-c)*r+c;o[0]=e,o[1]=s,o[2]=c,o[3]=h,o[4]=h,o[5]=u,o[6]=l,o[7]=i}function _(e,t,n,r,s,l,c,f,p,m,v){var b,y,_,w,C,S=.005,x=1/0;u[0]=p,u[1]=m;for(var O=0;O<1;O+=.05)h[0]=g(e,n,s,c,O),h[1]=g(t,r,l,f,O),w=Object(i["distSquare"])(u,h),w<x&&(b=O,x=w);x=1/0;for(var k=0;k<32;k++){if(S<a)break;y=b-S,_=b+S,h[0]=g(e,n,s,c,y),h[1]=g(t,r,l,f,y),w=Object(i["distSquare"])(h,u),y>=0&&w<x?(b=y,x=w):(d[0]=g(e,n,s,c,_),d[1]=g(t,r,l,f,_),C=Object(i["distSquare"])(d,u),_<=1&&C<x?(b=_,x=C):S*=.5)}return v&&(v[0]=g(e,n,s,c,b),v[1]=g(t,r,l,f,b)),o(x)}function w(e,t,n,i,r,o,s,a,l){for(var c=e,u=t,h=0,d=1/l,f=1;f<=l;f++){var p=f*d,m=g(e,n,r,s,p),v=g(t,i,o,a,p),b=m-c,y=v-u;h+=Math.sqrt(b*b+y*y),c=m,u=v}return h}function C(e,t,n,i){var r=1-i;return r*(r*e+2*i*t)+i*i*n}function S(e,t,n,i){return 2*((1-i)*(t-e)+i*(n-t))}function x(e,t,n,i,r){var s=e-2*t+n,a=2*(t-e),l=e-i,c=0;if(f(s)){if(p(a)){var u=-l/a;u>=0&&u<=1&&(r[c++]=u)}}else{var h=a*a-4*s*l;if(f(h)){u=-a/(2*s);u>=0&&u<=1&&(r[c++]=u)}else if(h>0){var d=o(h),g=(u=(-a+d)/(2*s),(-a-d)/(2*s));u>=0&&u<=1&&(r[c++]=u),g>=0&&g<=1&&(r[c++]=g)}}return c}function O(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i}function k(e,t,n,i,r){var o=(t-e)*i+e,s=(n-t)*i+t,a=(s-o)*i+o;r[0]=e,r[1]=o,r[2]=a,r[3]=a,r[4]=s,r[5]=n}function L(e,t,n,r,s,l,c,f,p){var g,m=.005,v=1/0;u[0]=c,u[1]=f;for(var b=0;b<1;b+=.05){h[0]=C(e,n,s,b),h[1]=C(t,r,l,b);var y=Object(i["distSquare"])(u,h);y<v&&(g=b,v=y)}v=1/0;for(var _=0;_<32;_++){if(m<a)break;var w=g-m,S=g+m;h[0]=C(e,n,s,w),h[1]=C(t,r,l,w);y=Object(i["distSquare"])(h,u);if(w>=0&&y<v)g=w,v=y;else{d[0]=C(e,n,s,S),d[1]=C(t,r,l,S);var x=Object(i["distSquare"])(d,u);S<=1&&x<v?(g=S,v=x):m*=.5}}return p&&(p[0]=C(e,n,s,g),p[1]=C(t,r,l,g)),o(v)}function E(e,t,n,i,r,o,s){for(var a=e,l=t,c=0,u=1/s,h=1;h<=s;h++){var d=h*u,f=C(e,n,r,d),p=C(t,i,o,d),g=f-a,m=p-l;c+=Math.sqrt(g*g+m*m),a=f,l=p}return c}},"4a64":function(e,t,n){"use strict";n.d(t,"a",(function(){return fe}));n("94a7");var i,r=n("dff7"),o=n("11f7"),s=n("6653"),a=n("70c3"),l=n("5fe7"),c=n("308f"),u=n("a666"),h=n("1ddc"),d=n("bc04"),f=n("5717"),p=n("9c1d"),g=(n("0d30"),n("5aa5")),m=n("1898"),v=n("f070"),b=n("b2cc"),y=n("fd49"),_=n("e1b5"),w=n("7061"),C=n("918c"),S=n("6da2"),x=n("a8d0"),O=n("4fc3"),k=n("303e"),L=n("b7d0"),E=n("561a"),D=n("bf5b"),I=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const M=3;class T{constructor(e,t,n,i){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=n,this.modifiedLineEnd=i}getType(){return 0===this.originalLineStart?1:0===this.modifiedLineStart?2:0}}class A{constructor(e){this.entries=e}}const N=Object(D["b"])("diff-review-insert",E["b"].add,r["a"]("diffReviewInsertIcon","Icon for 'Insert' in diff review.")),P=Object(D["b"])("diff-review-remove",E["b"].remove,r["a"]("diffReviewRemoveIcon","Icon for 'Remove' in diff review.")),j=Object(D["b"])("diff-review-close",E["b"].close,r["a"]("diffReviewCloseIcon","Icon for 'Close' in diff review."));class R extends u["a"]{constructor(e){super(),this._width=0,this._diffEditor=e,this._isVisible=!1,this.shadow=Object(s["b"])(document.createElement("div")),this.shadow.setClassName("diff-review-shadow"),this.actionBarContainer=Object(s["b"])(document.createElement("div")),this.actionBarContainer.setClassName("diff-review-actions"),this._actionBar=this._register(new g["a"](this.actionBarContainer.domNode)),this._actionBar.push(new v["a"]("diffreview.close",r["a"]("label.close","Close"),"close-diff-review "+L["d"].asClassName(j),!0,()=>I(this,void 0,void 0,(function*(){return this.hide()}))),{label:!1,icon:!0}),this.domNode=Object(s["b"])(document.createElement("div")),this.domNode.setClassName("diff-review monaco-editor-background"),this._content=Object(s["b"])(document.createElement("div")),this._content.setClassName("diff-review-content"),this._content.setAttribute("role","code"),this.scrollbar=this._register(new m["a"](this._content.domNode,{})),this.domNode.domNode.appendChild(this.scrollbar.getDomNode()),this._register(e.onDidUpdateDiff(()=>{this._isVisible&&(this._diffs=this._compute(),this._render())})),this._register(e.getModifiedEditor().onDidChangeCursorPosition(()=>{this._isVisible&&this._render()})),this._register(o["o"](this.domNode.domNode,"click",e=>{e.preventDefault();let t=o["x"](e.target,"diff-review-row");t&&this._goToRow(t)})),this._register(o["o"](this.domNode.domNode,"keydown",e=>{(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),this._goToRow(this._getNextRow())),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),this._goToRow(this._getPrevRow())),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),this.hide()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),this.accept())})),this._diffs=[],this._currentDiff=null}prev(){let e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let t=-1;for(let e=0,n=this._diffs.length;e<n;e++)if(this._diffs[e]===this._currentDiff){t=e;break}e=this._diffs.length+t-1}else e=this._findDiffIndex(this._diffEditor.getPosition());if(0===this._diffs.length)return;e%=this._diffs.length;const t=this._diffs[e].entries;this._diffEditor.setPosition(new w["a"](t[0].modifiedLineStart,1)),this._diffEditor.setSelection({startColumn:1,startLineNumber:t[0].modifiedLineStart,endColumn:1073741824,endLineNumber:t[t.length-1].modifiedLineEnd}),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())}next(){let e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){let t=-1;for(let e=0,n=this._diffs.length;e<n;e++)if(this._diffs[e]===this._currentDiff){t=e;break}e=t+1}else e=this._findDiffIndex(this._diffEditor.getPosition());if(0===this._diffs.length)return;e%=this._diffs.length;const t=this._diffs[e].entries;this._diffEditor.setPosition(new w["a"](t[0].modifiedLineStart,1)),this._diffEditor.setSelection({startColumn:1,startLineNumber:t[0].modifiedLineStart,endColumn:1073741824,endLineNumber:t[t.length-1].modifiedLineEnd}),this._isVisible=!0,this._diffEditor.doLayout(),this._render(),this._goToRow(this._getNextRow())}accept(){let e=-1,t=this._getCurrentFocusedRow();if(t){let n=parseInt(t.getAttribute("data-line"),10);isNaN(n)||(e=n)}this.hide(),-1!==e&&(this._diffEditor.setPosition(new w["a"](e,1)),this._diffEditor.revealPosition(new w["a"](e,1),1))}hide(){this._isVisible=!1,this._diffEditor.updateOptions({readOnly:!1}),this._diffEditor.focus(),this._diffEditor.doLayout(),this._render()}_getPrevRow(){let e=this._getCurrentFocusedRow();return e?e.previousElementSibling?e.previousElementSibling:e:this._getFirstRow()}_getNextRow(){let e=this._getCurrentFocusedRow();return e?e.nextElementSibling?e.nextElementSibling:e:this._getFirstRow()}_getFirstRow(){return this.domNode.domNode.querySelector(".diff-review-row")}_getCurrentFocusedRow(){let e=document.activeElement;return e&&/diff-review-row/.test(e.className)?e:null}_goToRow(e){let t=this._getCurrentFocusedRow();e.tabIndex=0,e.focus(),t&&t!==e&&(t.tabIndex=-1),this.scrollbar.scanDomNode()}isVisible(){return this._isVisible}layout(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"))}_compute(){const e=this._diffEditor.getLineChanges();if(!e||0===e.length)return[];const t=this._diffEditor.getOriginalEditor().getModel(),n=this._diffEditor.getModifiedEditor().getModel();return t&&n?R._mergeAdjacent(e,t.getLineCount(),n.getLineCount()):[]}static _mergeAdjacent(e,t,n){if(!e||0===e.length)return[];let i=[],r=0;for(let l=0,c=e.length;l<c;l++){const o=e[l],s=o.originalStartLineNumber,a=o.originalEndLineNumber,u=o.modifiedStartLineNumber,h=o.modifiedEndLineNumber;let d=[],f=0;{const t=0===a?s:s-1,n=0===h?u:u-1;let i=1,r=1;if(l>0){const t=e[l-1];i=0===t.originalEndLineNumber?t.originalStartLineNumber+1:t.originalEndLineNumber+1,r=0===t.modifiedEndLineNumber?t.modifiedStartLineNumber+1:t.modifiedEndLineNumber+1}let o=t-M+1,c=n-M+1;if(o<i){const e=i-o;o+=e,c+=e}if(c<r){const e=r-c;o+=e,c+=e}d[f++]=new T(o,t,c,n)}0!==a&&(d[f++]=new T(s,a,0,0)),0!==h&&(d[f++]=new T(0,0,u,h));{const i=0===a?s+1:a+1,r=0===h?u+1:h+1;let o=t,p=n;if(l+1<c){const t=e[l+1];o=0===t.originalEndLineNumber?t.originalStartLineNumber:t.originalStartLineNumber-1,p=0===t.modifiedEndLineNumber?t.modifiedStartLineNumber:t.modifiedStartLineNumber-1}let g=i+M-1,m=r+M-1;if(g>o){const e=o-g;g+=e,m+=e}if(m>p){const e=p-m;g+=e,m+=e}d[f++]=new T(i,g,r,m)}i[r++]=new A(d)}let o=i[0].entries,s=[],a=0;for(let l=1,c=i.length;l<c;l++){const e=i[l].entries,t=o[o.length-1],n=e[0];0===t.getType()&&0===n.getType()&&n.originalLineStart<=t.originalLineEnd?(o[o.length-1]=new T(t.originalLineStart,n.originalLineEnd,t.modifiedLineStart,n.modifiedLineEnd),o=o.concat(e.slice(1))):(s[a++]=new A(o),o=e)}return s[a++]=new A(o),s}_findDiffIndex(e){const t=e.lineNumber;for(let n=0,i=this._diffs.length;n<i;n++){const e=this._diffs[n].entries,i=e[e.length-1].modifiedLineEnd;if(t<=i)return n}return 0}_render(){const e=this._diffEditor.getOriginalEditor().getOptions(),t=this._diffEditor.getModifiedEditor().getOptions(),n=this._diffEditor.getOriginalEditor().getModel(),i=this._diffEditor.getModifiedEditor().getModel(),s=n.getOptions(),a=i.getOptions();if(!this._isVisible||!n||!i)return o["t"](this._content.domNode),this._currentDiff=null,void this.scrollbar.scanDomNode();this._diffEditor.updateOptions({readOnly:!0});const l=this._findDiffIndex(this._diffEditor.getPosition());if(this._diffs[l]===this._currentDiff)return;this._currentDiff=this._diffs[l];const c=this._diffs[l].entries;let u=document.createElement("div");u.className="diff-review-table",u.setAttribute("role","list"),u.setAttribute("aria-label",'Difference review. Use "Stage | Unstage | Revert Selected Ranges" commands'),h["a"].applyFontInfoSlow(u,t.get(41));let d=0,f=0,p=0,g=0;for(let r=0,o=c.length;r<o;r++){const e=c[r],t=e.originalLineStart,n=e.originalLineEnd,i=e.modifiedLineStart,o=e.modifiedLineEnd;0!==t&&(0===d||t<d)&&(d=t),0!==n&&(0===f||n>f)&&(f=n),0!==i&&(0===p||i<p)&&(p=i),0!==o&&(0===g||o>g)&&(g=o)}let m=document.createElement("div");m.className="diff-review-row";let v=document.createElement("div");v.className="diff-review-cell diff-review-summary";const b=f-d+1,y=g-p+1;v.appendChild(document.createTextNode(`${l+1}/${this._diffs.length}: @@ -${d},${b} +${p},${y} @@`)),m.setAttribute("data-line",String(p));const _=e=>0===e?r["a"]("no_lines_changed","no lines changed"):1===e?r["a"]("one_line_changed","1 line changed"):r["a"]("more_lines_changed","{0} lines changed",e),w=_(b),C=_(y);m.setAttribute("aria-label",r["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 changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",l+1,this._diffs.length,d,w,p,C)),m.appendChild(v),m.setAttribute("role","listitem"),u.appendChild(m);const S=t.get(57);let x=p;for(let r=0,o=c.length;r<o;r++){const o=c[r];R._renderSection(u,o,x,S,this._width,e,n,s,t,i,a),0!==o.modifiedLineStart&&(x=o.modifiedLineEnd)}o["t"](this._content.domNode),this._content.domNode.appendChild(u),this.scrollbar.scanDomNode()}static _renderSection(e,t,n,i,o,s,a,l,c,u,h){const d=t.getType();let f="diff-review-row",p="";const g="diff-review-spacer";let m=null;switch(d){case 1:f="diff-review-row line-insert",p=" char-insert",m=N;break;case 2:f="diff-review-row line-delete",p=" char-delete",m=P;break}const v=t.originalLineStart,b=t.originalLineEnd,y=t.modifiedLineStart,_=t.modifiedLineEnd,w=Math.max(_-y,b-v),C=s.get(129),S=C.glyphMarginWidth+C.lineNumbersWidth,x=c.get(129),O=10+x.glyphMarginWidth+x.lineNumbersWidth;for(let k=0;k<=w;k++){const t=0===v?0:v+k,b=0===y?0:y+k,_=document.createElement("div");_.style.minWidth=o+"px",_.className=f,_.setAttribute("role","listitem"),0!==b&&(n=b),_.setAttribute("data-line",String(n));let w=document.createElement("div");w.className="diff-review-cell",w.style.height=i+"px",_.appendChild(w);const C=document.createElement("span");C.style.width=S+"px",C.style.minWidth=S+"px",C.className="diff-review-line-number"+p,0!==t?C.appendChild(document.createTextNode(String(t))):C.innerText=" ",w.appendChild(C);const x=document.createElement("span");x.style.width=O+"px",x.style.minWidth=O+"px",x.style.paddingRight="10px",x.className="diff-review-line-number"+p,0!==b?x.appendChild(document.createTextNode(String(b))):x.innerText=" ",w.appendChild(x);const E=document.createElement("span");if(E.className=g,m){const e=document.createElement("span");e.className=L["d"].asClassName(m),e.innerText=" ",E.appendChild(e)}else E.innerText=" ";let D;if(w.appendChild(E),0!==b){let e=this._renderLine(u,c,h.tabSize,b);R._ttPolicy&&(e=R._ttPolicy.createHTML(e)),w.insertAdjacentHTML("beforeend",e),D=u.getLineContent(b)}else{let e=this._renderLine(a,s,l.tabSize,t);R._ttPolicy&&(e=R._ttPolicy.createHTML(e)),w.insertAdjacentHTML("beforeend",e),D=a.getLineContent(t)}0===D.length&&(D=r["a"]("blankLine","blank"));let I="";switch(d){case 0:I=t===b?r["a"]({key:"unchangedLine",comment:["The placeholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",D,t):r["a"]("equalLine","{0} original line {1} modified line {2}",D,t,b);break;case 1:I=r["a"]("insertLine","+ {0} modified line {1}",D,b);break;case 2:I=r["a"]("deleteLine","- {0} original line {1}",D,t);break}_.setAttribute("aria-label",I),e.appendChild(_)}}static _renderLine(e,t,n,i){const r=e.getLineContent(i),o=t.get(41),s=_["a"].createEmpty(r),a=x["f"].isBasicASCII(r,e.mightContainNonBasicASCII()),l=x["f"].containsRTL(r,a,e.mightContainRTL()),c=Object(S["e"])(new S["c"](o.isMonospace&&!t.get(27),o.canUseHalfwidthRightwardsArrow,r,!1,a,l,0,s,[],n,0,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,t.get(104),t.get(87),t.get(81),t.get(42)!==y["e"].OFF,null));return c.html}}R._ttPolicy=null===(i=window.trustedTypes)||void 0===i?void 0:i.createPolicy("diffReview",{createHTML:e=>e}),Object(L["f"])((e,t)=>{const n=e.getColor(C["k"]);n&&t.addRule(`.monaco-diff-editor .diff-review-line-number { color: ${n}; }`);const i=e.getColor(k["yc"]);i&&t.addRule(`.monaco-diff-editor .diff-review-shadow { box-shadow: ${i} 0 -6px 6px -6px inset; }`)});class F extends b["b"]{constructor(){super({id:"editor.action.diffReview.next",label:r["a"]("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:O["a"].has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})}run(e,t){const n=W(e);n&&n.diffReviewNext()}}class B extends b["b"]{constructor(){super({id:"editor.action.diffReview.prev",label:r["a"]("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:O["a"].has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})}run(e,t){const n=W(e);n&&n.diffReviewPrev()}}function W(e){const t=e.get(f["a"]),n=t.listDiffEditors(),i=t.getActiveCodeEditor();if(!i)return null;for(let r=0,o=n.length;r<o;r++){const e=n[r];if(e.getModifiedEditor().getId()===i.getId()||e.getOriginalEditor().getId()===i.getId())return e}return null}Object(b["j"])(F),Object(b["j"])(B);var V=n("6a89"),z=n("7ab3"),H=n("8ae8"),U=n("b57f"),q=n("a40b"),$=n("32f2"),K=n("7416"),G=n("0a0f"),Y=n("f07b"),Z=n("b0cd"),X=n("533b"),Q=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class J extends u["a"]{constructor(e,t,n,i,s,a){super(),this._viewZoneId=e,this._marginDomNode=t,this.editor=n,this.diff=i,this._contextMenuService=s,this._clipboardService=a,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=E["b"].lightBulb.classNames+" lightbulb-glyph",this._diffActions.style.position="absolute";const l=n.getOption(57),c=n.getModel().getEOL();this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=l+"px",this._diffActions.style.lineHeight=l+"px",this._marginDomNode.appendChild(this._diffActions);const u=[];u.push(new v["a"]("diff.clipboard.copyDeletedContent",i.originalEndLineNumber>i.modifiedStartLineNumber?r["a"]("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):r["a"]("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,()=>Q(this,void 0,void 0,(function*(){const e=new V["a"](i.originalStartLineNumber,1,i.originalEndLineNumber+1,1),t=i.originalModel.getValueInRange(e);yield this._clipboardService.writeText(t)}))));let h=0,d=void 0;i.originalEndLineNumber>i.modifiedStartLineNumber&&(d=new v["a"]("diff.clipboard.copyDeletedLineContent",r["a"]("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",i.originalStartLineNumber),void 0,!0,()=>Q(this,void 0,void 0,(function*(){const e=i.originalModel.getLineContent(i.originalStartLineNumber+h);yield this._clipboardService.writeText(e)}))),u.push(d));const f=n.getOption(79);f||u.push(new v["a"]("diff.inline.revertChange",r["a"]("diff.inline.revertChange.label","Revert this change"),void 0,!0,()=>Q(this,void 0,void 0,(function*(){const e=new V["a"](i.originalStartLineNumber,1,i.originalEndLineNumber,i.originalModel.getLineMaxColumn(i.originalEndLineNumber)),t=i.originalModel.getValueInRange(e);if(0===i.modifiedEndLineNumber){const e=n.getModel().getLineMaxColumn(i.modifiedStartLineNumber);n.executeEdits("diffEditor",[{range:new V["a"](i.modifiedStartLineNumber,e,i.modifiedStartLineNumber,e),text:c+t}])}else{const e=n.getModel().getLineMaxColumn(i.modifiedEndLineNumber);n.executeEdits("diffEditor",[{range:new V["a"](i.modifiedStartLineNumber,1,i.modifiedEndLineNumber,e),text:t}])}}))));const p=(e,t)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:e,y:t}),getActions:()=>(d&&(d.label=r["a"]("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",i.originalStartLineNumber+h)),u),autoSelectFirstItem:!0})};this._register(o["o"](this._diffActions,"mousedown",e=>{const{top:t,height:n}=o["D"](this._diffActions);let i=Math.floor(l/3);e.preventDefault(),p(e.posx,t+n+i)})),this._register(n.onMouseMove(e=>{if(8===e.target.type||5===e.target.type){const t=e.target.detail.viewZoneId;t===this._viewZoneId?(this.visibility=!0,h=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,l)):this.visibility=!1}else this.visibility=!1})),this._register(n.onMouseDown(e=>{if(e.event.rightButton&&(8===e.target.type||5===e.target.type)){const t=e.target.detail.viewZoneId;t===this._viewZoneId&&(e.event.preventDefault(),h=this._updateLightBulbPosition(this._marginDomNode,e.event.browserEvent.y,l),p(e.event.posx,e.event.posy+l))}}))}get visibility(){return this._visibility}set visibility(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")}_updateLightBulbPosition(e,t,n){const{top:i}=o["D"](e),r=t-i,s=Math.floor(r/n),a=s*n;if(this._diffActions.style.top=a+"px",this.diff.viewLineCounts){let e=0;for(let t=0;t<this.diff.viewLineCounts.length;t++)if(e+=this.diff.viewLineCounts[t],s<e)return t}return s}}var ee,te=n("f577"),ne=n("fdcc"),ie=n("b539"),re=n("a37f"),oe=n("e75b"),se=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ae=function(e,t){return function(n,i){t(n,i,e)}};class le{constructor(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this._inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}getForeignViewZones(e){return e.filter(e=>!this._zonesMap[String(e.id)])}clean(e){this._zones.length>0&&e.changeViewZones(e=>{for(const t of this._zones)e.removeZone(t)}),this._zones=[],this._zonesMap={},this._decorations=e.deltaDecorations(this._decorations,[])}apply(e,t,n,i){const r=i?d["c"].capture(e):null;e.changeViewZones(t=>{for(const e of this._zones)t.removeZone(e);for(const e of this._inlineDiffMargins)e.dispose();this._zones=[],this._zonesMap={},this._inlineDiffMargins=[];for(let i=0,r=n.zones.length;i<r;i++){const r=n.zones[i];r.suppressMouseDown=!0;const o=t.addZone(r);this._zones.push(o),this._zonesMap[String(o)]=!0,n.zones[i].diff&&r.marginDomNode&&(r.suppressMouseDown=!1,this._inlineDiffMargins.push(new J(o,r.marginDomNode,e,n.zones[i].diff,this._contextMenuService,this._clipboardService)))}}),r&&r.restore(e),this._decorations=e.deltaDecorations(this._decorations,n.decorations),t&&t.setZones(n.overviewZones)}}let ce=0;const ue=Object(D["b"])("diff-insert",E["b"].add,r["a"]("diffInsertIcon","Line decoration for inserts in the diff editor.")),he=Object(D["b"])("diff-remove",E["b"].remove,r["a"]("diffRemoveIcon","Line decoration for removals in the diff editor.")),de=null===(ee=window.trustedTypes)||void 0===ee?void 0:ee.createPolicy("diffEditorWidget",{createHTML:e=>e});let fe=class e extends u["a"]{constructor(t,n,i,r,a,u,h,d,f,p,g,m){super(),this._editorProgressService=m,this._onDidDispose=this._register(new c["b"]),this.onDidDispose=this._onDidDispose.event,this._onDidUpdateDiff=this._register(new c["b"]),this.onDidUpdateDiff=this._onDidUpdateDiff.event,this._onDidContentSizeChange=this._register(new c["b"]),this._lastOriginalWarning=null,this._lastModifiedWarning=null,this._editorWorkerService=a,this._codeEditorService=d,this._contextKeyService=this._register(u.createScoped(t)),this._instantiationService=h.createChild(new Y["a"]([O["b"],this._contextKeyService])),this._contextKeyService.createKey("isInDiffEditor",!0),this._themeService=f,this._notificationService=p,this._id=++ce,this._state=0,this._updatingDiffProgress=null,this._domElement=t,n=n||{},this._renderSideBySide=!0,"undefined"!==typeof n.renderSideBySide&&(this._renderSideBySide=n.renderSideBySide),this._maxComputationTime=5e3,"undefined"!==typeof n.maxComputationTime&&(this._maxComputationTime=n.maxComputationTime),this._ignoreTrimWhitespace=!0,"undefined"!==typeof n.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=n.ignoreTrimWhitespace),this._renderIndicators=!0,"undefined"!==typeof n.renderIndicators&&(this._renderIndicators=n.renderIndicators),this._originalIsEditable=Object(y["k"])(n.originalEditable,!1),this._diffCodeLens=Object(y["k"])(n.diffCodeLens,!1),this._diffWordWrap=Se(n.diffWordWrap,"inherit"),"undefined"!==typeof n.isInEmbeddedEditor?this._contextKeyService.createKey("isInEmbeddedDiffEditor",n.isInEmbeddedEditor):this._contextKeyService.createKey("isInEmbeddedDiffEditor",!1),this._renderOverviewRuler=!0,"undefined"!==typeof n.renderOverviewRuler&&(this._renderOverviewRuler=Boolean(n.renderOverviewRuler)),this._updateDecorationsRunner=this._register(new l["e"](()=>this._updateDecorations(),0)),this._containerDomElement=document.createElement("div"),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._renderSideBySide),this._containerDomElement.style.position="relative",this._containerDomElement.style.height="100%",this._domElement.appendChild(this._containerDomElement),this._overviewViewportDomElement=Object(s["b"])(document.createElement("div")),this._overviewViewportDomElement.setClassName("diffViewport"),this._overviewViewportDomElement.setPosition("absolute"),this._overviewDomElement=document.createElement("div"),this._overviewDomElement.className="diffOverview",this._overviewDomElement.style.position="absolute",this._overviewDomElement.appendChild(this._overviewViewportDomElement.domNode),this._register(o["o"](this._overviewDomElement,"mousedown",e=>{this._modifiedEditor.delegateVerticalScrollbarMouseDown(e)})),this._renderOverviewRuler&&this._containerDomElement.appendChild(this._overviewDomElement),this._originalDomNode=document.createElement("div"),this._originalDomNode.className="editor original",this._originalDomNode.style.position="absolute",this._originalDomNode.style.height="100%",this._containerDomElement.appendChild(this._originalDomNode),this._modifiedDomNode=document.createElement("div"),this._modifiedDomNode.className="editor modified",this._modifiedDomNode.style.position="absolute",this._modifiedDomNode.style.height="100%",this._containerDomElement.appendChild(this._modifiedDomNode),this._beginUpdateDecorationsTimeout=-1,this._currentlyChangingViewZones=!1,this._diffComputationToken=0,this._originalEditorState=new le(g,r),this._modifiedEditorState=new le(g,r),this._isVisible=!0,this._isHandlingScrollEvent=!1,this._elementSizeObserver=this._register(new re["a"](this._containerDomElement,n.dimension,()=>this._onDidContainerSizeChanged())),n.automaticLayout&&this._elementSizeObserver.startObserving(),this._diffComputationResult=null,this._originalEditor=this._createLeftHandSideEditor(n,i.originalEditor||{}),this._modifiedEditor=this._createRightHandSideEditor(n,i.modifiedEditor||{}),this._originalOverviewRuler=null,this._modifiedOverviewRuler=null,this._reviewPane=new R(this),this._containerDomElement.appendChild(this._reviewPane.domNode.domNode),this._containerDomElement.appendChild(this._reviewPane.shadow.domNode),this._containerDomElement.appendChild(this._reviewPane.actionBarContainer.domNode),this._enableSplitViewResizing=!0,"undefined"!==typeof n.enableSplitViewResizing&&(this._enableSplitViewResizing=n.enableSplitViewResizing),this._renderSideBySide?this._setStrategy(new ye(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new we(this._createDataSource(),this._enableSplitViewResizing)),this._register(f.onDidColorThemeChange(t=>{this._strategy&&this._strategy.applyColors(t)&&this._updateDecorationsRunner.schedule(),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._renderSideBySide)}));const v=b["d"].getDiffEditorContributions();for(const e of v)try{this._register(h.createInstance(e.ctor,this))}catch(_){Object(ne["e"])(_)}this._codeEditorService.addDiffEditor(this)}_setState(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)))}diffReviewNext(){this._reviewPane.next()}diffReviewPrev(){this._reviewPane.prev()}static _getClassName(e,t){let n="monaco-diff-editor monaco-editor-background ";return t&&(n+="side-by-side "),n+=Object(L["e"])(e.type),n}_recreateOverviewRulers(){this._renderOverviewRuler&&(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())}_createLeftHandSideEditor(t,n){const i=this._createInnerEditor(this._instantiationService,this._originalDomNode,this._adjustOptionsForLeftHandSide(t),n);this._register(i.onDidScrollChange(e=>{this._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this._modifiedEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(i.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(i.onDidChangeConfiguration(e=>{i.getModel()&&(e.hasChanged(41)&&this._updateDecorationsRunner.schedule(),e.hasChanged(130)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(i.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()}));const r=this._contextKeyService.createKey("isInDiffLeftEditor",i.hasWidgetFocus());return this._register(i.onDidFocusEditorWidget(()=>r.set(!0))),this._register(i.onDidBlurEditorWidget(()=>r.set(!1))),this._register(i.onDidContentSizeChange(t=>{const n=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+e.ONE_OVERVIEW_WIDTH,i=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:i,contentWidth:n,contentHeightChanged:t.contentHeightChanged,contentWidthChanged:t.contentWidthChanged})})),i}_createRightHandSideEditor(t,n){const i=this._createInnerEditor(this._instantiationService,this._modifiedDomNode,this._adjustOptionsForRightHandSide(t),n);this._register(i.onDidScrollChange(e=>{this._isHandlingScrollEvent||(e.scrollTopChanged||e.scrollLeftChanged||e.scrollHeightChanged)&&(this._isHandlingScrollEvent=!0,this._originalEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),this._isHandlingScrollEvent=!1,this._layoutOverviewViewport())})),this._register(i.onDidChangeViewZones(()=>{this._onViewZonesChanged()})),this._register(i.onDidChangeConfiguration(e=>{i.getModel()&&(e.hasChanged(41)&&this._updateDecorationsRunner.schedule(),e.hasChanged(130)&&(this._updateDecorationsRunner.cancel(),this._updateDecorations()))})),this._register(i.onDidChangeModelContent(()=>{this._isVisible&&this._beginUpdateDecorationsSoon()})),this._register(i.onDidChangeModelOptions(e=>{e.tabSize&&this._updateDecorationsRunner.schedule()}));const r=this._contextKeyService.createKey("isInDiffRightEditor",i.hasWidgetFocus());return this._register(i.onDidFocusEditorWidget(()=>r.set(!0))),this._register(i.onDidBlurEditorWidget(()=>r.set(!1))),this._register(i.onDidContentSizeChange(t=>{const n=this._originalEditor.getContentWidth()+this._modifiedEditor.getContentWidth()+e.ONE_OVERVIEW_WIDTH,i=Math.max(this._modifiedEditor.getContentHeight(),this._originalEditor.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:i,contentWidth:n,contentHeightChanged:t.contentHeightChanged,contentWidthChanged:t.contentWidthChanged})})),i}_createInnerEditor(e,t,n,i){return e.createInstance(p["a"],t,n,i)}dispose(){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._renderOverviewRuler&&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(),super.dispose()}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return H["a"].IDiffEditor}getLineChanges(){return this._diffComputationResult?this._diffComputationResult.changes:null}getOriginalEditor(){return this._originalEditor}getModifiedEditor(){return this._modifiedEditor}updateOptions(t){let n=!1;"undefined"!==typeof t.renderSideBySide&&this._renderSideBySide!==t.renderSideBySide&&(this._renderSideBySide=t.renderSideBySide,n=!0),"undefined"!==typeof t.maxComputationTime&&(this._maxComputationTime=t.maxComputationTime,this._isVisible&&this._beginUpdateDecorationsSoon());let i=!1;"undefined"!==typeof t.ignoreTrimWhitespace&&this._ignoreTrimWhitespace!==t.ignoreTrimWhitespace&&(this._ignoreTrimWhitespace=t.ignoreTrimWhitespace,i=!0),"undefined"!==typeof t.renderIndicators&&this._renderIndicators!==t.renderIndicators&&(this._renderIndicators=t.renderIndicators,i=!0),i&&this._beginUpdateDecorations(),this._originalIsEditable=Object(y["k"])(t.originalEditable,this._originalIsEditable),this._diffCodeLens=Object(y["k"])(t.diffCodeLens,this._diffCodeLens),this._diffWordWrap=Se(t.diffWordWrap,this._diffWordWrap),this._modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(t)),this._originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(t)),"undefined"!==typeof t.enableSplitViewResizing&&(this._enableSplitViewResizing=t.enableSplitViewResizing),this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing),n&&(this._renderSideBySide?this._setStrategy(new ye(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new we(this._createDataSource(),this._enableSplitViewResizing)),this._containerDomElement.className=e._getClassName(this._themeService.getColorTheme(),this._renderSideBySide)),"undefined"!==typeof t.renderOverviewRuler&&this._renderOverviewRuler!==t.renderOverviewRuler&&(this._renderOverviewRuler=t.renderOverviewRuler,this._renderOverviewRuler?this._containerDomElement.appendChild(this._overviewDomElement):this._containerDomElement.removeChild(this._overviewDomElement))}getModel(){return{original:this._originalEditor.getModel(),modified:this._modifiedEditor.getModel()}}setModel(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()}getDomNode(){return this._domElement}getVisibleColumnFromPosition(e){return this._modifiedEditor.getVisibleColumnFromPosition(e)}getPosition(){return this._modifiedEditor.getPosition()}setPosition(e){this._modifiedEditor.setPosition(e)}revealLine(e,t=0){this._modifiedEditor.revealLine(e,t)}revealLineInCenter(e,t=0){this._modifiedEditor.revealLineInCenter(e,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealLineInCenterIfOutsideViewport(e,t)}revealLineNearTop(e,t=0){this._modifiedEditor.revealLineNearTop(e,t)}revealPosition(e,t=0){this._modifiedEditor.revealPosition(e,t)}revealPositionInCenter(e,t=0){this._modifiedEditor.revealPositionInCenter(e,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealPositionInCenterIfOutsideViewport(e,t)}revealPositionNearTop(e,t=0){this._modifiedEditor.revealPositionNearTop(e,t)}getSelection(){return this._modifiedEditor.getSelection()}getSelections(){return this._modifiedEditor.getSelections()}setSelection(e){this._modifiedEditor.setSelection(e)}setSelections(e){this._modifiedEditor.setSelections(e)}revealLines(e,t,n=0){this._modifiedEditor.revealLines(e,t,n)}revealLinesInCenter(e,t,n=0){this._modifiedEditor.revealLinesInCenter(e,t,n)}revealLinesInCenterIfOutsideViewport(e,t,n=0){this._modifiedEditor.revealLinesInCenterIfOutsideViewport(e,t,n)}revealLinesNearTop(e,t,n=0){this._modifiedEditor.revealLinesNearTop(e,t,n)}revealRange(e,t=0,n=!1,i=!0){this._modifiedEditor.revealRange(e,t,n,i)}revealRangeInCenter(e,t=0){this._modifiedEditor.revealRangeInCenter(e,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._modifiedEditor.revealRangeInCenterIfOutsideViewport(e,t)}revealRangeNearTop(e,t=0){this._modifiedEditor.revealRangeNearTop(e,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._modifiedEditor.revealRangeNearTopIfOutsideViewport(e,t)}revealRangeAtTop(e,t=0){this._modifiedEditor.revealRangeAtTop(e,t)}getSupportedActions(){return this._modifiedEditor.getSupportedActions()}saveViewState(){const e=this._originalEditor.saveViewState(),t=this._modifiedEditor.saveViewState();return{original:e,modified:t}}restoreViewState(e){if(e&&e.original&&e.modified){const t=e;this._originalEditor.restoreViewState(t.original),this._modifiedEditor.restoreViewState(t.modified)}}layout(e){this._elementSizeObserver.observe(e)}focus(){this._modifiedEditor.focus()}hasTextFocus(){return this._originalEditor.hasTextFocus()||this._modifiedEditor.hasTextFocus()}trigger(e,t,n){this._modifiedEditor.trigger(e,t,n)}changeDecorations(e){return this._modifiedEditor.changeDecorations(e)}_onDidContainerSizeChanged(){this._doLayout()}_getReviewHeight(){return this._reviewPane.isVisible()?this._elementSizeObserver.getHeight():0}_layoutOverviewRulers(){if(!this._renderOverviewRuler)return;if(!this._originalOverviewRuler||!this._modifiedOverviewRuler)return;const t=this._elementSizeObserver.getHeight(),n=this._getReviewHeight(),i=e.ENTIRE_DIFF_OVERVIEW_WIDTH-2*e.ONE_OVERVIEW_WIDTH,r=this._modifiedEditor.getLayoutInfo();r&&(this._originalOverviewRuler.setLayout({top:0,width:e.ONE_OVERVIEW_WIDTH,right:i+e.ONE_OVERVIEW_WIDTH,height:t-n}),this._modifiedOverviewRuler.setLayout({top:0,right:0,width:e.ONE_OVERVIEW_WIDTH,height:t-n}))}_onViewZonesChanged(){this._currentlyChangingViewZones||this._updateDecorationsRunner.schedule()}_beginUpdateDecorationsSoon(){-1!==this._beginUpdateDecorationsTimeout&&(window.clearTimeout(this._beginUpdateDecorationsTimeout),this._beginUpdateDecorationsTimeout=-1),this._beginUpdateDecorationsTimeout=window.setTimeout(()=>this._beginUpdateDecorations(),e.UPDATE_DIFF_DECORATIONS_DELAY)}static _equals(e,t){return!e&&!t||!(!e||!t)&&e.toString()===t.toString()}_beginUpdateDecorations(){this._beginUpdateDecorationsTimeout=-1;const t=this._originalEditor.getModel(),n=this._modifiedEditor.getModel();if(!t||!n)return;this._diffComputationToken++;const i=this._diffComputationToken;this._setState(1),this._editorWorkerService.canComputeDiff(t.uri,n.uri)?this._editorWorkerService.computeDiff(t.uri,n.uri,this._ignoreTrimWhitespace,this._maxComputationTime).then(e=>{i===this._diffComputationToken&&t===this._originalEditor.getModel()&&n===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=e,this._updateDecorationsRunner.schedule(),this._onDidUpdateDiff.fire())},e=>{i===this._diffComputationToken&&t===this._originalEditor.getModel()&&n===this._modifiedEditor.getModel()&&(this._setState(2),this._diffComputationResult=null,this._updateDecorationsRunner.schedule())}):e._equals(t.uri,this._lastOriginalWarning)&&e._equals(n.uri,this._lastModifiedWarning)||(this._lastOriginalWarning=t.uri,this._lastModifiedWarning=n.uri,this._notificationService.warn(r["a"]("diff.tooLarge","Cannot compare files because one file is too large.")))}_cleanViewZonesAndDecorations(){this._originalEditorState.clean(this._originalEditor),this._modifiedEditorState.clean(this._modifiedEditor)}_updateDecorations(){if(!this._originalEditor.getModel()||!this._modifiedEditor.getModel())return;const e=this._diffComputationResult?this._diffComputationResult.changes:[],t=this._originalEditorState.getForeignViewZones(this._originalEditor.getWhitespaces()),n=this._modifiedEditorState.getForeignViewZones(this._modifiedEditor.getWhitespaces()),i=this._strategy.getEditorsDiffDecorations(e,this._ignoreTrimWhitespace,this._renderIndicators,t,n);try{this._currentlyChangingViewZones=!0,this._originalEditorState.apply(this._originalEditor,this._originalOverviewRuler,i.original,!1),this._modifiedEditorState.apply(this._modifiedEditor,this._modifiedOverviewRuler,i.modified,!0)}finally{this._currentlyChangingViewZones=!1}}_adjustOptionsForSubEditor(e){const t=Object.assign({},e);return t.inDiffEditor=!0,t.automaticLayout=!1,t.scrollbar=Object.assign({},t.scrollbar||{}),t.scrollbar.vertical="visible",t.folding=!1,t.codeLens=this._diffCodeLens,t.fixedOverflowWidgets=!0,t.minimap=Object.assign({},t.minimap||{}),t.minimap.enabled=!1,t}_adjustOptionsForLeftHandSide(e){const t=this._adjustOptionsForSubEditor(e);return this._renderSideBySide?t.wordWrapOverride1=this._diffWordWrap:t.wordWrapOverride1="off",e.originalAriaLabel&&(t.ariaLabel=e.originalAriaLabel),t.readOnly=!this._originalIsEditable,t.extraEditorClassName="original-in-monaco-diff-editor",Object.assign(Object.assign({},t),{dimension:{height:0,width:0}})}_adjustOptionsForRightHandSide(t){const n=this._adjustOptionsForSubEditor(t);return t.modifiedAriaLabel&&(n.ariaLabel=t.modifiedAriaLabel),n.wordWrapOverride1=this._diffWordWrap,n.revealHorizontalRightPadding=y["g"].revealHorizontalRightPadding.defaultValue+e.ENTIRE_DIFF_OVERVIEW_WIDTH,n.scrollbar.verticalHasArrows=!1,n.extraEditorClassName="modified-in-monaco-diff-editor",Object.assign(Object.assign({},n),{dimension:{height:0,width:0}})}doLayout(){this._elementSizeObserver.observe(),this._doLayout()}_doLayout(){const t=this._elementSizeObserver.getWidth(),n=this._elementSizeObserver.getHeight(),i=this._getReviewHeight(),r=this._strategy.layout();this._originalDomNode.style.width=r+"px",this._originalDomNode.style.left="0px",this._modifiedDomNode.style.width=t-r+"px",this._modifiedDomNode.style.left=r+"px",this._overviewDomElement.style.top="0px",this._overviewDomElement.style.height=n-i+"px",this._overviewDomElement.style.width=e.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewDomElement.style.left=t-e.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",this._overviewViewportDomElement.setWidth(e.ENTIRE_DIFF_OVERVIEW_WIDTH),this._overviewViewportDomElement.setHeight(30),this._originalEditor.layout({width:r,height:n-i}),this._modifiedEditor.layout({width:t-r-(this._renderOverviewRuler?e.ENTIRE_DIFF_OVERVIEW_WIDTH:0),height:n-i}),(this._originalOverviewRuler||this._modifiedOverviewRuler)&&this._layoutOverviewRulers(),this._reviewPane.layout(n-i,t,i),this._layoutOverviewViewport()}_layoutOverviewViewport(){const e=this._computeOverviewViewport();e?(this._overviewViewportDomElement.setTop(e.top),this._overviewViewportDomElement.setHeight(e.height)):(this._overviewViewportDomElement.setTop(0),this._overviewViewportDomElement.setHeight(0))}_computeOverviewViewport(){const e=this._modifiedEditor.getLayoutInfo();if(!e)return null;const t=this._modifiedEditor.getScrollTop(),n=this._modifiedEditor.getScrollHeight(),i=Math.max(0,e.height),r=Math.max(0,i-0),o=n>0?r/n:0,s=Math.max(0,Math.floor(e.height*o)),a=Math.floor(t*o);return{height:s,top:a}}_createDataSource(){return{getWidth:()=>this._elementSizeObserver.getWidth(),getHeight:()=>this._elementSizeObserver.getHeight()-this._getReviewHeight(),getOptions:()=>({renderOverviewRuler:this._renderOverviewRuler}),getContainerDomNode:()=>this._containerDomElement,relayoutEditors:()=>{this._doLayout()},getOriginalEditor:()=>this._originalEditor,getModifiedEditor:()=>this._modifiedEditor}}_setStrategy(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getColorTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()}_getLineChangeAtOrBeforeLineNumber(e,t){const n=this._diffComputationResult?this._diffComputationResult.changes:[];if(0===n.length||e<t(n[0]))return null;let i=0,r=n.length-1;while(i<r){const o=Math.floor((i+r)/2),s=t(n[o]),a=o+1<=r?t(n[o+1]):1073741824;e<s?r=o-1:e>=a?i=o+1:(i=o,r=o)}return n[i]}_getEquivalentLineForOriginalLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,e=>e.originalStartLineNumber);if(!t)return e;const n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),r=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-n;return s<=r?i+Math.min(s,o):i+o-r+s}_getEquivalentLineForModifiedLineNumber(e){const t=this._getLineChangeAtOrBeforeLineNumber(e,e=>e.modifiedStartLineNumber);if(!t)return e;const n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),r=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-i;return s<=o?n+Math.min(s,r):n+r-o+s}getDiffLineInformationForOriginal(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null}getDiffLineInformationForModified(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null}};fe.ONE_OVERVIEW_WIDTH=15,fe.ENTIRE_DIFF_OVERVIEW_WIDTH=30,fe.UPDATE_DIFF_DECORATIONS_DELAY=200,fe=se([ae(3,te["a"]),ae(4,q["a"]),ae(5,O["b"]),ae(6,G["a"]),ae(7,f["a"]),ae(8,L["b"]),ae(9,Z["a"]),ae(10,X["a"]),ae(11,ie["a"])],fe);class pe extends u["a"]{constructor(e){super(),this._dataSource=e,this._insertColor=null,this._removeColor=null}applyColors(e){const t=(e.getColor(k["m"])||k["i"]).transparent(2),n=(e.getColor(k["o"])||k["j"]).transparent(2),i=!t.equals(this._insertColor)||!n.equals(this._removeColor);return this._insertColor=t,this._removeColor=n,i}getEditorsDiffDecorations(e,t,n,i,r){r=r.sort((e,t)=>e.afterLineNumber-t.afterLineNumber),i=i.sort((e,t)=>e.afterLineNumber-t.afterLineNumber);const o=this._getViewZones(e,i,r,n),s=this._getOriginalEditorDecorations(e,t,n),a=this._getModifiedEditorDecorations(e,t,n);return{original:{decorations:s.decorations,overviewZones:s.overviewZones,zones:o.original},modified:{decorations:a.decorations,overviewZones:a.overviewZones,zones:o.modified}}}}class ge{constructor(e){this._source=e,this._index=-1,this.current=null,this.advance()}advance(){this._index++,this._index<this._source.length?this.current=this._source[this._index]:this.current=null}}class me{constructor(e,t,n,i,r){this._lineChanges=e,this._originalForeignVZ=t,this._modifiedForeignVZ=n,this._originalEditor=i,this._modifiedEditor=r}static _getViewLineCount(e,t,n){const i=e.getModel(),r=e._getViewModel();if(i&&r){const e=Le(i,r,t,n);return e.endLineNumber-e.startLineNumber+1}return n-t+1}getViewZones(){const e=this._originalEditor.getOption(57),t=this._modifiedEditor.getOption(57),n=-1!==this._originalEditor.getOption(130).wrappingColumn,i=-1!==this._modifiedEditor.getOption(130).wrappingColumn,r=n||i,o=this._originalEditor.getModel(),s=this._originalEditor._getViewModel().coordinatesConverter,a=this._modifiedEditor._getViewModel().coordinatesConverter,l={original:[],modified:[]};let c=0,u=0,h=0,d=0,f=0,p=0;const g=(e,t)=>e.afterLineNumber-t.afterLineNumber,m=(e,t)=>{if(null===t.domNode&&e.length>0){const n=e[e.length-1];if(n.afterLineNumber===t.afterLineNumber&&null===n.domNode)return void(n.heightInLines+=t.heightInLines)}e.push(t)},v=new ge(this._modifiedForeignVZ),b=new ge(this._originalForeignVZ);let y=1,_=1;for(let w=0,C=this._lineChanges.length;w<=C;w++){const n=w<C?this._lineChanges[w]:null;null!==n?(h=n.originalStartLineNumber+(n.originalEndLineNumber>0?-1:0),d=n.modifiedStartLineNumber+(n.modifiedEndLineNumber>0?-1:0),u=n.originalEndLineNumber>0?me._getViewLineCount(this._originalEditor,n.originalStartLineNumber,n.originalEndLineNumber):0,c=n.modifiedEndLineNumber>0?me._getViewLineCount(this._modifiedEditor,n.modifiedStartLineNumber,n.modifiedEndLineNumber):0,f=Math.max(n.originalStartLineNumber,n.originalEndLineNumber),p=Math.max(n.modifiedStartLineNumber,n.modifiedEndLineNumber)):(h+=1e7+u,d+=1e7+c,f=h,p=d);let i=[],S=[];if(r){let e;e=n?n.originalEndLineNumber>0?n.originalStartLineNumber-y:n.modifiedStartLineNumber-_:o.getLineCount()-y;for(let t=0;t<e;t++){const e=y+t,n=_+t,r=s.getModelLineViewLineCount(e),o=a.getModelLineViewLineCount(n);r<o?i.push({afterLineNumber:e,heightInLines:o-r,domNode:null,marginDomNode:null}):r>o&&S.push({afterLineNumber:n,heightInLines:r-o,domNode:null,marginDomNode:null})}n&&(y=(n.originalEndLineNumber>0?n.originalEndLineNumber:n.originalStartLineNumber)+1,_=(n.modifiedEndLineNumber>0?n.modifiedEndLineNumber:n.modifiedStartLineNumber)+1)}while(v.current&&v.current.afterLineNumber<=p){let e;e=v.current.afterLineNumber<=d?h-d+v.current.afterLineNumber:f;let r=null;n&&n.modifiedStartLineNumber<=v.current.afterLineNumber&&v.current.afterLineNumber<=n.modifiedEndLineNumber&&(r=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),i.push({afterLineNumber:e,heightInLines:v.current.height/t,domNode:null,marginDomNode:r}),v.advance()}while(b.current&&b.current.afterLineNumber<=f){let t;t=b.current.afterLineNumber<=h?d-h+b.current.afterLineNumber:p,S.push({afterLineNumber:t,heightInLines:b.current.height/e,domNode:null}),b.advance()}if(null!==n&&xe(n)){const e=this._produceOriginalFromDiff(n,u,c);e&&i.push(e)}if(null!==n&&Oe(n)){const e=this._produceModifiedFromDiff(n,u,c);e&&S.push(e)}let x=0,O=0;i=i.sort(g),S=S.sort(g);while(x<i.length&&O<S.length){const e=i[x],t=S[O],n=e.afterLineNumber-h,r=t.afterLineNumber-d;n<r?(m(l.original,e),x++):r<n?(m(l.modified,t),O++):e.shouldNotShrink?(m(l.original,e),x++):t.shouldNotShrink?(m(l.modified,t),O++):e.heightInLines>=t.heightInLines?(e.heightInLines-=t.heightInLines,O++):(t.heightInLines-=e.heightInLines,x++)}while(x<i.length)m(l.original,i[x]),x++;while(O<S.length)m(l.modified,S[O]),O++}return{original:me._ensureDomNodes(l.original),modified:me._ensureDomNodes(l.modified)}}static _ensureDomNodes(e){return e.map(e=>(e.domNode||(e.domNode=ke()),e))}}function ve(e,t,n,i,r){return{range:new V["a"](e,t,n,i),options:r}}const be={charDelete:U["a"].register({description:"diff-editor-char-delete",className:"char-delete"}),charDeleteWholeLine:U["a"].register({description:"diff-editor-char-delete-whole-line",className:"char-delete",isWholeLine:!0}),charInsert:U["a"].register({description:"diff-editor-char-insert",className:"char-insert"}),charInsertWholeLine:U["a"].register({description:"diff-editor-char-insert-whole-line",className:"char-insert",isWholeLine:!0}),lineInsert:U["a"].register({description:"diff-editor-line-insert",className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:U["a"].register({description:"diff-editor-line-insert-with-sign",className:"line-insert",linesDecorationsClassName:"insert-sign "+L["d"].asClassName(ue),marginClassName:"line-insert",isWholeLine:!0}),lineDelete:U["a"].register({description:"diff-editor-line-delete",className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:U["a"].register({description:"diff-editor-line-delete-with-sign",className:"line-delete",linesDecorationsClassName:"delete-sign "+L["d"].asClassName(he),marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:U["a"].register({description:"diff-editor-line-delete-margin",marginClassName:"line-delete"})};class ye extends pe{constructor(e,t){super(e),this._disableSash=!1===t,this._sashRatio=null,this._sashPosition=null,this._startSashPosition=null,this._sash=this._register(new a["b"](this._dataSource.getContainerDomNode(),this,{orientation:0})),this._disableSash&&(this._sash.state=0),this._sash.onDidStart(()=>this._onSashDragStart()),this._sash.onDidChange(e=>this._onSashDrag(e)),this._sash.onDidEnd(()=>this._onSashDragEnd()),this._sash.onDidReset(()=>this._onSashReset())}setEnableSplitViewResizing(e){const t=!1===e;this._disableSash!==t&&(this._disableSash=t,this._sash.state=this._disableSash?0:3)}layout(e=this._sashRatio){const t=this._dataSource.getWidth(),n=t-(this._dataSource.getOptions().renderOverviewRuler?fe.ENTIRE_DIFF_OVERVIEW_WIDTH:0);let i=Math.floor((e||.5)*n);const r=Math.floor(.5*n);return i=this._disableSash?r:i||r,n>2*ye.MINIMUM_EDITOR_WIDTH?(i<ye.MINIMUM_EDITOR_WIDTH&&(i=ye.MINIMUM_EDITOR_WIDTH),i>n-ye.MINIMUM_EDITOR_WIDTH&&(i=n-ye.MINIMUM_EDITOR_WIDTH)):i=r,this._sashPosition!==i&&(this._sashPosition=i,this._sash.layout()),this._sashPosition}_onSashDragStart(){this._startSashPosition=this._sashPosition}_onSashDrag(e){const t=this._dataSource.getWidth(),n=t-(this._dataSource.getOptions().renderOverviewRuler?fe.ENTIRE_DIFF_OVERVIEW_WIDTH:0),i=this.layout((this._startSashPosition+(e.currentX-e.startX))/n);this._sashRatio=i/n,this._dataSource.relayoutEditors()}_onSashDragEnd(){this._sash.layout()}_onSashReset(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()}getVerticalSashTop(e){return 0}getVerticalSashLeft(e){return this._sashPosition}getVerticalSashHeight(e){return this._dataSource.getHeight()}_getViewZones(e,t,n){const i=this._dataSource.getOriginalEditor(),r=this._dataSource.getModifiedEditor(),o=new _e(e,t,n,i,r);return o.getViewZones()}_getOriginalEditorDecorations(e,t,n){const i=this._dataSource.getOriginalEditor(),r=String(this._removeColor),o={decorations:[],overviewZones:[]},s=i.getModel(),a=i._getViewModel();for(const l of e)if(Oe(l)){o.decorations.push({range:new V["a"](l.originalStartLineNumber,1,l.originalEndLineNumber,1073741824),options:n?be.lineDeleteWithSign:be.lineDelete}),xe(l)&&l.charChanges||o.decorations.push(ve(l.originalStartLineNumber,1,l.originalEndLineNumber,1073741824,be.charDeleteWholeLine));const e=Le(s,a,l.originalStartLineNumber,l.originalEndLineNumber);if(o.overviewZones.push(new $["a"](e.startLineNumber,e.endLineNumber,r)),l.charChanges)for(const n of l.charChanges)if(Oe(n))if(t)for(let e=n.originalStartLineNumber;e<=n.originalEndLineNumber;e++){let t,i;t=e===n.originalStartLineNumber?n.originalStartColumn:s.getLineFirstNonWhitespaceColumn(e),i=e===n.originalEndLineNumber?n.originalEndColumn:s.getLineLastNonWhitespaceColumn(e),o.decorations.push(ve(e,t,e,i,be.charDelete))}else o.decorations.push(ve(n.originalStartLineNumber,n.originalStartColumn,n.originalEndLineNumber,n.originalEndColumn,be.charDelete))}return o}_getModifiedEditorDecorations(e,t,n){const i=this._dataSource.getModifiedEditor(),r=String(this._insertColor),o={decorations:[],overviewZones:[]},s=i.getModel(),a=i._getViewModel();for(const l of e)if(xe(l)){o.decorations.push({range:new V["a"](l.modifiedStartLineNumber,1,l.modifiedEndLineNumber,1073741824),options:n?be.lineInsertWithSign:be.lineInsert}),Oe(l)&&l.charChanges||o.decorations.push(ve(l.modifiedStartLineNumber,1,l.modifiedEndLineNumber,1073741824,be.charInsertWholeLine));const e=Le(s,a,l.modifiedStartLineNumber,l.modifiedEndLineNumber);if(o.overviewZones.push(new $["a"](e.startLineNumber,e.endLineNumber,r)),l.charChanges)for(const n of l.charChanges)if(xe(n))if(t)for(let e=n.modifiedStartLineNumber;e<=n.modifiedEndLineNumber;e++){let t,i;t=e===n.modifiedStartLineNumber?n.modifiedStartColumn:s.getLineFirstNonWhitespaceColumn(e),i=e===n.modifiedEndLineNumber?n.modifiedEndColumn:s.getLineLastNonWhitespaceColumn(e),o.decorations.push(ve(e,t,e,i,be.charInsert))}else o.decorations.push(ve(n.modifiedStartLineNumber,n.modifiedStartColumn,n.modifiedEndLineNumber,n.modifiedEndColumn,be.charInsert))}return o}}ye.MINIMUM_EDITOR_WIDTH=100;class _e extends me{constructor(e,t,n,i,r){super(e,t,n,i,r)}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){return null}_produceOriginalFromDiff(e,t,n){return n>t?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n-t,domNode:null}:null}_produceModifiedFromDiff(e,t,n){return t>n?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-n,domNode:null}:null}}class we extends pe{constructor(e,t){super(e),this._decorationsLeft=e.getOriginalEditor().getLayoutInfo().decorationsLeft,this._register(e.getOriginalEditor().onDidLayoutChange(t=>{this._decorationsLeft!==t.decorationsLeft&&(this._decorationsLeft=t.decorationsLeft,e.relayoutEditors())}))}setEnableSplitViewResizing(e){}_getViewZones(e,t,n,i){const r=this._dataSource.getOriginalEditor(),o=this._dataSource.getModifiedEditor(),s=new Ce(e,t,n,r,o,i);return s.getViewZones()}_getOriginalEditorDecorations(e,t,n){const i=String(this._removeColor),r={decorations:[],overviewZones:[]},o=this._dataSource.getOriginalEditor(),s=o.getModel(),a=o._getViewModel();for(const l of e)if(Oe(l)){r.decorations.push({range:new V["a"](l.originalStartLineNumber,1,l.originalEndLineNumber,1073741824),options:be.lineDeleteMargin});const e=Le(s,a,l.originalStartLineNumber,l.originalEndLineNumber);r.overviewZones.push(new $["a"](e.startLineNumber,e.endLineNumber,i))}return r}_getModifiedEditorDecorations(e,t,n){const i=this._dataSource.getModifiedEditor(),r=String(this._insertColor),o={decorations:[],overviewZones:[]},s=i.getModel(),a=i._getViewModel();for(const l of e)if(xe(l)){o.decorations.push({range:new V["a"](l.modifiedStartLineNumber,1,l.modifiedEndLineNumber,1073741824),options:n?be.lineInsertWithSign:be.lineInsert});const e=Le(s,a,l.modifiedStartLineNumber,l.modifiedEndLineNumber);if(o.overviewZones.push(new $["a"](e.startLineNumber,e.endLineNumber,r)),l.charChanges){for(const n of l.charChanges)if(xe(n))if(t)for(let e=n.modifiedStartLineNumber;e<=n.modifiedEndLineNumber;e++){let t,i;t=e===n.modifiedStartLineNumber?n.modifiedStartColumn:s.getLineFirstNonWhitespaceColumn(e),i=e===n.modifiedEndLineNumber?n.modifiedEndColumn:s.getLineLastNonWhitespaceColumn(e),o.decorations.push(ve(e,t,e,i,be.charInsert))}else o.decorations.push(ve(n.modifiedStartLineNumber,n.modifiedStartColumn,n.modifiedEndLineNumber,n.modifiedEndColumn,be.charInsert))}else o.decorations.push(ve(l.modifiedStartLineNumber,1,l.modifiedEndLineNumber,1073741824,be.charInsertWholeLine))}return o}layout(){return Math.max(5,this._decorationsLeft)}}class Ce extends me{constructor(e,t,n,i,r,o){super(e,t,n,i,r),this._originalModel=i.getModel(),this._renderIndicators=o,this._pendingLineChange=[],this._pendingViewZones=[],this._lineBreaksComputer=this._modifiedEditor._getViewModel().createLineBreaksComputer()}getViewZones(){const e=super.getViewZones();return this._finalize(e),e}_createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion(){const e=document.createElement("div");return e.className="inline-added-margin-view-zone",e}_produceOriginalFromDiff(e,t,n){const i=document.createElement("div");return i.className="inline-added-margin-view-zone",{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n,domNode:document.createElement("div"),marginDomNode:i}}_produceModifiedFromDiff(e,t,n){const i=document.createElement("div");i.className="view-lines line-delete "+oe["a"];const r=document.createElement("div");r.className="inline-deleted-margin-view-zone";const o={shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,minWidthInPx:0,domNode:i,marginDomNode:r,diff:{originalStartLineNumber:e.originalStartLineNumber,originalEndLineNumber:e.originalEndLineNumber,modifiedStartLineNumber:e.modifiedStartLineNumber,modifiedEndLineNumber:e.modifiedEndLineNumber,originalModel:this._originalModel,viewLineCounts:null}};for(let s=e.originalStartLineNumber;s<=e.originalEndLineNumber;s++)this._lineBreaksComputer.addRequest(this._originalModel.getLineContent(s),null,null);return this._pendingLineChange.push(e),this._pendingViewZones.push(o),o}_finalize(e){const t=this._modifiedEditor.getOptions(),n=this._modifiedEditor.getModel().getOptions().tabSize,i=t.get(41),r=t.get(27),o=i.typicalHalfwidthCharacterWidth,s=t.get(92),a=this._originalModel.mightContainNonBasicASCII(),l=this._originalModel.mightContainRTL(),c=t.get(57),u=t.get(129),d=u.decorationsWidth,f=t.get(104),p=t.get(87),g=t.get(81),m=t.get(42),v=this._lineBreaksComputer.finalize();let b=0;for(let y=0;y<this._pendingLineChange.length;y++){const t=this._pendingLineChange[y],u=this._pendingViewZones[y],_=u.domNode;h["a"].applyFontInfoSlow(_,i);const w=u.marginDomNode;h["a"].applyFontInfoSlow(w,i);const C=[];if(t.charChanges)for(const e of t.charChanges)Oe(e)&&C.push(new x["a"](new V["a"](e.originalStartLineNumber,e.originalStartColumn,e.originalEndLineNumber,e.originalEndColumn),"char-delete",0));const S=C.length>0,O=Object(z["a"])(1e4);let k=0,L=0,E=null;for(let o=t.originalStartLineNumber;o<=t.originalEndLineNumber;o++){const s=o-t.originalStartLineNumber,h=this._originalModel.getLineTokens(o),y=h.getLineContent(),_=v[b++],x=K["a"].filter(C,o,1,y.length+1);if(_){let t=0;for(const e of _.breakOffsets){const o=h.sliceAndInflate(t,e,0),s=y.substring(t,e);k=Math.max(k,this._renderOriginalLine(L++,s,o,K["a"].extractWrapped(x,t,e),S,a,l,i,r,c,d,f,p,g,m,n,O,w)),t=e}E||(E=[]);while(E.length<s)E[E.length]=1;E[s]=_.breakOffsets.length,u.heightInLines+=_.breakOffsets.length-1;const v=document.createElement("div");v.className="line-delete",e.original.push({afterLineNumber:o,afterColumn:0,heightInLines:_.breakOffsets.length-1,domNode:ke(),marginDomNode:v})}else k=Math.max(k,this._renderOriginalLine(L++,y,h,x,S,a,l,i,r,c,d,f,p,g,m,n,O,w))}k+=s;const D=O.build(),I=de?de.createHTML(D):D;if(_.innerHTML=I,u.minWidthInPx=k*o,E){const e=t.originalEndLineNumber-t.originalStartLineNumber;while(E.length<=e)E[E.length]=1}u.diff.viewLineCounts=E}e.original.sort((e,t)=>e.afterLineNumber-t.afterLineNumber)}_renderOriginalLine(e,t,n,i,r,o,s,a,l,c,u,h,d,f,p,g,m,v){m.appendASCIIString('<div class="view-line'),r||m.appendASCIIString(" char-delete"),m.appendASCIIString('" style="top:'),m.appendASCIIString(String(e*c)),m.appendASCIIString('px;width:1000000px;">');const b=x["f"].isBasicASCII(t,o),_=x["f"].containsRTL(t,b,s),w=Object(S["d"])(new S["c"](a.isMonospace&&!l,a.canUseHalfwidthRightwardsArrow,t,!1,b,_,0,n,i,g,0,a.spaceWidth,a.middotWidth,a.wsmiddotWidth,h,d,f,p!==y["e"].OFF,null),m);if(m.appendASCIIString("</div>"),this._renderIndicators){const t=document.createElement("div");t.className="delete-sign "+L["d"].asClassName(he),t.setAttribute("style",`position:absolute;top:${e*c}px;width:${u}px;height:${c}px;right:0;`),v.appendChild(t)}return w.characterMapping.getAbsoluteOffset(w.characterMapping.length)}}function Se(e,t){return Object(y["n"])(e,t,["off","on","inherit"])}function xe(e){return e.modifiedEndLineNumber>0}function Oe(e){return e.originalEndLineNumber>0}function ke(){const e=document.createElement("div");return e.className="diagonal-fill",e}function Le(e,t,n,i){const r=e.getLineCount();return n=Math.min(r,Math.max(1,n)),i=Math.min(r,Math.max(1,i)),t.coordinatesConverter.convertModelRangeToViewRange(new V["a"](n,e.getLineMinColumn(n),i,e.getLineMaxColumn(i)))}Object(L["f"])((e,t)=>{const n=e.getColor(k["m"]);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}; }`));const i=e.getColor(k["o"]);i&&(t.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { background-color: ${i}; }`),t.addRule(`.monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: ${i}; }`),t.addRule(`.monaco-editor .inline-deleted-margin-view-zone { background-color: ${i}; }`));const r=e.getColor(k["n"]);r&&t.addRule(`.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ${"hc"===e.type?"dashed":"solid"} ${r}; }`);const o=e.getColor(k["p"]);o&&t.addRule(`.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ${"hc"===e.type?"dashed":"solid"} ${o}; }`);const s=e.getColor(k["yc"]);s&&t.addRule(`.monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ${s}; }`);const a=e.getColor(k["k"]);a&&t.addRule(`.monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid ${a}; }`);const l=e.getColor(k["Ac"]);l&&t.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport {\n\t\t\t\tbackground: ${l};\n\t\t\t}\n\t\t`);const c=e.getColor(k["Bc"]);c&&t.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport:hover {\n\t\t\t\tbackground: ${c};\n\t\t\t}\n\t\t`);const u=e.getColor(k["zc"]);u&&t.addRule(`\n\t\t\t.monaco-diff-editor .diffViewport:active {\n\t\t\t\tbackground: ${u};\n\t\t\t}\n\t\t`);const h=e.getColor(k["l"]);t.addRule(`\n\t.monaco-editor .diagonal-fill {\n\t\tbackground-image: linear-gradient(\n\t\t\t-45deg,\n\t\t\t${h} 12.5%,\n\t\t\t#0000 12.5%, #0000 50%,\n\t\t\t${h} 50%, ${h} 62.5%,\n\t\t\t#0000 62.5%, #0000 100%\n\t\t);\n\t\tbackground-size: 8px 8px;\n\t}\n\t`)})},"4a7b":function(e,t,n){"use strict";var i=n("c532");e.exports=function(e,t){t=t||{};var n={};function r(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function o(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function s(e){if(!i.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function l(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return i.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,r=t(e);i.isUndefined(r)&&t!==l||(n[e]=r)})),n}},"4aa2":function(e,t,n){"use strict";var i=n("9ab4"),r=n("cbe5"),o=n("6d8b"),s=Math.PI,a=2*s,l=Math.sin,c=Math.cos,u=Math.acos,h=Math.atan2,d=Math.abs,f=Math.sqrt,p=Math.max,g=Math.min,m=1e-4;function v(e,t,n,i,r,o,s,a){var l=n-e,c=i-t,u=s-r,h=a-o,d=h*l-u*c;if(!(d*d<m))return d=(u*(t-o)-h*(e-r))/d,[e+d*l,t+d*c]}function b(e,t,n,i,r,o,s){var a=e-n,l=t-i,c=(s?o:-o)/f(a*a+l*l),u=c*l,h=-c*a,d=e+u,g=t+h,m=n+u,v=i+h,b=(d+m)/2,y=(g+v)/2,_=m-d,w=v-g,C=_*_+w*w,S=r-o,x=d*v-m*g,O=(w<0?-1:1)*f(p(0,S*S*C-x*x)),k=(x*w-_*O)/C,L=(-x*_-w*O)/C,E=(x*w+_*O)/C,D=(-x*_+w*O)/C,I=k-b,M=L-y,T=E-b,A=D-y;return I*I+M*M>T*T+A*A&&(k=E,L=D),{cx:k,cy:L,x0:-u,y0:-h,x1:k*(r/S-1),y1:L*(r/S-1)}}function y(e){var t;if(Object(o["isArray"])(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}function _(e,t){var n,i=p(t.r,0),r=p(t.r0||0,0),o=i>0,_=r>0;if(o||_){if(o||(i=r,r=0),r>i){var w=i;i=r,r=w}var C=t.startAngle,S=t.endAngle;if(!isNaN(C)&&!isNaN(S)){var x=t.cx,O=t.cy,k=!!t.clockwise,L=d(S-C),E=L>a&&L%a;if(E>m&&(L=E),i>m)if(L>a-m)e.moveTo(x+i*c(C),O+i*l(C)),e.arc(x,O,i,C,S,!k),r>m&&(e.moveTo(x+r*c(S),O+r*l(S)),e.arc(x,O,r,S,C,k));else{var D=void 0,I=void 0,M=void 0,T=void 0,A=void 0,N=void 0,P=void 0,j=void 0,R=void 0,F=void 0,B=void 0,W=void 0,V=void 0,z=void 0,H=void 0,U=void 0,q=i*c(C),$=i*l(C),K=r*c(S),G=r*l(S),Y=L>m;if(Y){var Z=t.cornerRadius;Z&&(n=y(Z),D=n[0],I=n[1],M=n[2],T=n[3]);var X=d(i-r)/2;if(A=g(X,M),N=g(X,T),P=g(X,D),j=g(X,I),B=R=p(A,N),W=F=p(P,j),(R>m||F>m)&&(V=i*c(S),z=i*l(S),H=r*c(C),U=r*l(C),L<s)){var Q=v(q,$,H,U,V,z,K,G);if(Q){var J=q-Q[0],ee=$-Q[1],te=V-Q[0],ne=z-Q[1],ie=1/l(u((J*te+ee*ne)/(f(J*J+ee*ee)*f(te*te+ne*ne)))/2),re=f(Q[0]*Q[0]+Q[1]*Q[1]);B=g(R,(i-re)/(ie+1)),W=g(F,(r-re)/(ie-1))}}}if(Y)if(B>m){var oe=g(M,B),se=g(T,B),ae=b(H,U,q,$,i,oe,k),le=b(V,z,K,G,i,se,k);e.moveTo(x+ae.cx+ae.x0,O+ae.cy+ae.y0),B<R&&oe===se?e.arc(x+ae.cx,O+ae.cy,B,h(ae.y0,ae.x0),h(le.y0,le.x0),!k):(oe>0&&e.arc(x+ae.cx,O+ae.cy,oe,h(ae.y0,ae.x0),h(ae.y1,ae.x1),!k),e.arc(x,O,i,h(ae.cy+ae.y1,ae.cx+ae.x1),h(le.cy+le.y1,le.cx+le.x1),!k),se>0&&e.arc(x+le.cx,O+le.cy,se,h(le.y1,le.x1),h(le.y0,le.x0),!k))}else e.moveTo(x+q,O+$),e.arc(x,O,i,C,S,!k);else e.moveTo(x+q,O+$);if(r>m&&Y)if(W>m){oe=g(D,W),se=g(I,W),ae=b(K,G,V,z,r,-se,k),le=b(q,$,H,U,r,-oe,k);e.lineTo(x+ae.cx+ae.x0,O+ae.cy+ae.y0),W<F&&oe===se?e.arc(x+ae.cx,O+ae.cy,W,h(ae.y0,ae.x0),h(le.y0,le.x0),!k):(se>0&&e.arc(x+ae.cx,O+ae.cy,se,h(ae.y0,ae.x0),h(ae.y1,ae.x1),!k),e.arc(x,O,r,h(ae.cy+ae.y1,ae.cx+ae.x1),h(le.cy+le.y1,le.cx+le.x1),k),oe>0&&e.arc(x+le.cx,O+le.cy,oe,h(le.y1,le.x1),h(le.y0,le.x0),!k))}else e.lineTo(x+K,O+G),e.arc(x,O,r,S,C,k);else e.lineTo(x+K,O+G)}else e.moveTo(x,O);e.closePath()}}}var w=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return e}(),C=function(e){function t(t){return e.call(this,t)||this}return Object(i["a"])(t,e),t.prototype.getDefaultShape=function(){return new w},t.prototype.buildPath=function(e,t){_(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(r["b"]);C.prototype.type="sector";t["a"]=C},"4acc":function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}function n(e,t){if(e){if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function r(e,t){var i;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(i=n(e))||t&&e&&"number"===typeof e.length){i&&(e=i);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return i=e[Symbol.iterator](),i.next.bind(i)}function o(e){var t={exports:{}};return e(t,t.exports),t.exports}var s=o((function(e){function t(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function n(t){e.exports.defaults=t}e.exports={defaults:t(),getDefaults:t,changeDefaults:n}})),a=/[&<>"']/,l=/[&<>"']/g,c=/[<>"']|&(?!#?\w+;)/,u=/[<>"']|&(?!#?\w+;)/g,h={"&":"&","<":"<",">":">",'"':""","'":"'"},d=function(e){return h[e]};function f(e,t){if(t){if(a.test(e))return e.replace(l,d)}else if(c.test(e))return e.replace(u,d);return e}var p=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function g(e){return e.replace(p,(function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var m=/(^|[^\[])\^/g;function v(e,t){e=e.source||e,t=t||"";var n={replace:function(t,i){return i=i.source||i,i=i.replace(m,"$1"),e=e.replace(t,i),n},getRegex:function(){return new RegExp(e,t)}};return n}var b=/[^\w:]/g,y=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function _(e,t,n){if(e){var i;try{i=decodeURIComponent(g(n)).replace(b,"").toLowerCase()}catch(r){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!y.test(n)&&(n=O(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(r){return null}return n}var w={},C=/^[^:]+:\/*[^/]*$/,S=/^([^:]+:)[\s\S]*$/,x=/^([^:]+:\/*[^/]*)[\s\S]*$/;function O(e,t){w[" "+e]||(C.test(e)?w[" "+e]=e+"/":w[" "+e]=D(e,"/",!0)),e=w[" "+e];var n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(S,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(x,"$1")+t:e+t}var k={exec:function(){}};function L(e){for(var t,n,i=1;i<arguments.length;i++)for(n in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function E(e,t){var n=e.replace(/\|/g,(function(e,t,n){var i=!1,r=t;while(--r>=0&&"\\"===n[r])i=!i;return i?"|":" |"})),i=n.split(/ \|/),r=0;if(i.length>t)i.splice(t);else while(i.length<t)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(/\\\|/g,"|");return i}function D(e,t,n){var i=e.length;if(0===i)return"";var r=0;while(r<i){var o=e.charAt(i-r-1);if(o!==t||n){if(o===t||!n)break;r++}else r++}return e.substr(0,i-r)}function I(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,i=0,r=0;r<n;r++)if("\\"===e[r])r++;else if(e[r]===t[0])i++;else if(e[r]===t[1]&&(i--,i<0))return r;return-1}function M(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function T(e,t){if(t<1)return"";var n="";while(t>1)1&t&&(n+=e),t>>=1,e+=e;return n+e}var A={escape:f,unescape:g,edit:v,cleanUrl:_,resolveUrl:O,noopTest:k,merge:L,splitCells:E,rtrim:D,findClosingBracket:I,checkSanitizeDeprecation:M,repeatString:T},N=s.defaults,P=A.rtrim,j=A.splitCells,R=A.escape,F=A.findClosingBracket;function B(e,t,n){var i=t.href,r=t.title?R(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:n,href:i,title:r,text:o}:{type:"image",raw:n,href:i,title:r,text:R(o)}}function W(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var i=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);if(null===t)return e;var n=t[0];return n.length>=i.length?e.slice(i.length):e})).join("\n")}var V=function(){function e(e){this.options=e||N}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:P(n,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],i=W(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:i}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var i=P(n,"#");this.options.pedantic?n=i.trim():i&&!/ $/.test(i)||(n=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:j(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var i,r=n.align.length;for(i=0;i<r;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(r=n.cells.length,i=0;i<r;i++)n.cells[i]=j(n.cells[i],n.header.length);return n}}},t.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,i,r,o,s,a,l,c,u=t[0],h=t[2],d=h.length>1,f={type:"list",raw:u,ordered:d,start:d?+h.slice(0,-1):"",loose:!1,items:[]},p=t[0].match(this.rules.block.item),g=!1,m=p.length;r=this.rules.block.listItemStart.exec(p[0]);for(var v=0;v<m;v++){if(n=p[v],u=n,v!==m-1){if(o=this.rules.block.listItemStart.exec(p[v+1]),this.options.pedantic?o[1].length>r[1].length:o[1].length>r[0].length||o[1].length>3){p.splice(v,2,p[v]+"\n"+p[v+1]),v--,m--;continue}(!this.options.pedantic||this.options.smartLists?o[2][o[2].length-1]!==h[h.length-1]:d===(1===o[2].length))&&(s=p.slice(v+1).join("\n"),f.raw=f.raw.substring(0,f.raw.length-s.length),v=m-1),r=o}i=n.length,n=n.replace(/^ *([*+-]|\d+[.)]) ?/,""),~n.indexOf("\n ")&&(i-=n.length,n=this.options.pedantic?n.replace(/^ {1,4}/gm,""):n.replace(new RegExp("^ {1,"+i+"}","gm"),"")),a=g||/\n\n(?!\s*$)/.test(n),v!==m-1&&(g="\n"===n.charAt(n.length-1),a||(a=g)),a&&(f.loose=!0),this.options.gfm&&(l=/^\[[ xX]\] /.test(n),c=void 0,l&&(c=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,""))),f.items.push({type:"list_item",raw:u,task:l,checked:c,loose:a,text:n})}return f}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t)return{type:this.options.sanitize?"paragraph":"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):R(t[0]):t[0]}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));var n=t[1].toLowerCase().replace(/\s+/g," ");return{tag:n,raw:t[0],href:t[2],title:t[3]}}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:j(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var i,r=n.align.length;for(i=0;i<r;i++)/^ *-+: *$/.test(n.align[i])?n.align[i]="right":/^ *:-+: *$/.test(n.align[i])?n.align[i]="center":/^ *:-+ *$/.test(n.align[i])?n.align[i]="left":n.align[i]=null;for(r=n.cells.length,i=0;i<r;i++)n.cells[i]=j(n.cells[i].replace(/^ *\| *| *\| *$/g,""),n.header.length);return n}}},t.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1]}},t.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t)return{type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1]}},t.text=function(e){var t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0]}},t.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:R(t[1])}},t.tag=function(e,t,n){var i=this.rules.inline.tag.exec(e);if(i)return!t&&/^<a /i.test(i[0])?t=!0:t&&/^<\/a>/i.test(i[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(i[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(i[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:i[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):R(i[0]):i[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var i=P(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{var r=F(t[2],"()");if(r>-1){var o=0===t[0].indexOf("!")?5:4,s=o+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,s).trim(),t[3]=""}}var a=t[2],l="";if(this.options.pedantic){var c=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);c&&(a=c[1],l=c[3])}else l=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^</.test(a)&&(a=this.options.pedantic&&!/>$/.test(n)?a.slice(1):a.slice(1,-1)),B(t,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:l?l.replace(this.rules.inline._escapes,"$1"):l},t[0])}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var i=(n[2]||n[1]).replace(/\s+/g," ");if(i=t[i.toLowerCase()],!i||!i.href){var r=n[0].charAt(0);return{type:"text",raw:r,text:r}}return B(n,i,n[0])}},t.emStrong=function(e,t,n){void 0===n&&(n="");var i=this.rules.inline.emStrong.lDelim.exec(e);if(i&&(!i[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var o,s,a=i[0].length-1,l=a,c=0,u="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;u.lastIndex=0,t=t.slice(-1*e.length+a);while(null!=(i=u.exec(t)))if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],o)if(s=o.length,i[3]||i[4])l+=s;else if(!((i[5]||i[6])&&a%3)||(a+s)%3){if(l-=s,!(l>0)){if(l+c-s<=0&&!t.slice(u.lastIndex).match(u)&&(s=Math.min(s,s+l+c)),Math.min(a,s)%2)return{type:"em",raw:e.slice(0,a+i.index+s+1),text:e.slice(1,a+i.index+s)};if(Math.min(a,s)%2===0)return{type:"strong",raw:e.slice(0,a+i.index+s+1),text:e.slice(2,a+i.index+s-1)}}}else c+=s}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),i=/[^ ]/.test(n),r=/^ /.test(n)&&/ $/.test(n);return i&&r&&(n=n.substring(1,n.length-1)),n=R(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var n,i,r=this.rules.inline.autolink.exec(e);if(r)return"@"===r[2]?(n=R(this.options.mangle?t(r[1]):r[1]),i="mailto:"+n):(n=R(r[1]),i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var i,r;if("@"===n[2])i=R(this.options.mangle?t(n[0]):n[0]),r="mailto:"+i;else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);i=R(n[0]),r="www."===n[1]?"http://"+i:i}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},t.inlineText=function(e,t,n){var i,r=this.rules.inline.text.exec(e);if(r)return i=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):R(r[0]):r[0]:R(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:i}},e}(),z=A.noopTest,H=A.edit,U=A.merge,q={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\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+|$)/,nptable:z,table:z,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};q.def=H(q.def).replace("label",q._label).replace("title",q._title).getRegex(),q.bullet=/(?:[*+-]|\d{1,9}[.)])/,q.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,q.item=H(q.item,"gm").replace(/bull/g,q.bullet).getRegex(),q.listItemStart=H(/^( *)(bull)/).replace("bull",q.bullet).getRegex(),q.list=H(q.list).replace(/bull/g,q.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+q.def.source+")").getRegex(),q._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",q._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,q.html=H(q.html,"i").replace("comment",q._comment).replace("tag",q._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),q.paragraph=H(q._paragraph).replace("hr",q.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",q._tag).getRegex(),q.blockquote=H(q.blockquote).replace("paragraph",q.paragraph).getRegex(),q.normal=U({},q),q.gfm=U({},q.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),q.gfm.nptable=H(q.gfm.nptable).replace("hr",q.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",q._tag).getRegex(),q.gfm.table=H(q.gfm.table).replace("hr",q.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",q._tag).getRegex(),q.pedantic=U({},q.normal,{html:H("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",q._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+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:z,paragraph:H(q.normal._paragraph).replace("hr",q.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",q.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var $={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:z,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)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_]*?\*[^_]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^*]*?\_[^*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:z,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};$.punctuation=H($.punctuation).replace(/punctuation/g,$._punctuation).getRegex(),$.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,$.escapedEmSt=/\\\*|\\_/g,$._comment=H(q._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),$.emStrong.lDelim=H($.emStrong.lDelim).replace(/punct/g,$._punctuation).getRegex(),$.emStrong.rDelimAst=H($.emStrong.rDelimAst,"g").replace(/punct/g,$._punctuation).getRegex(),$.emStrong.rDelimUnd=H($.emStrong.rDelimUnd,"g").replace(/punct/g,$._punctuation).getRegex(),$._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,$._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,$._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])?)+(?![-_])/,$.autolink=H($.autolink).replace("scheme",$._scheme).replace("email",$._email).getRegex(),$._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,$.tag=H($.tag).replace("comment",$._comment).replace("attribute",$._attribute).getRegex(),$._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,$._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,$._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,$.link=H($.link).replace("label",$._label).replace("href",$._href).replace("title",$._title).getRegex(),$.reflink=H($.reflink).replace("label",$._label).getRegex(),$.reflinkSearch=H($.reflinkSearch,"g").replace("reflink",$.reflink).replace("nolink",$.nolink).getRegex(),$.normal=U({},$),$.pedantic=U({},$.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:H(/^!?\[(label)\]\((.*?)\)/).replace("label",$._label).getRegex(),reflink:H(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$._label).getRegex()}),$.gfm=U({},$.normal,{escape:H($.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~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),$.gfm.url=H($.gfm.url,"i").replace("email",$.gfm._extended_email).getRegex(),$.breaks=U({},$.gfm,{br:H($.br).replace("{2,}","*").getRegex(),text:H($.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var K={block:q,inline:$},G=s.defaults,Y=K.block,Z=K.inline,X=A.repeatString;function Q(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function J(e){var t,n,i="",r=e.length;for(t=0;t<r;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),i+="&#"+n+";";return i}var ee=function(){function e(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||G,this.options.tokenizer=this.options.tokenizer||new V,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:Y.normal,inline:Z.normal};this.options.pedantic?(t.block=Y.pedantic,t.inline=Z.pedantic):this.options.gfm&&(t.block=Y.gfm,this.options.breaks?t.inline=Z.breaks:t.inline=Z.gfm),this.tokenizer.rules=t}e.lex=function(t,n){var i=new e(n);return i.lex(t)},e.lexInline=function(t,n){var i=new e(n);return i.inlineTokens(t)};var n=e.prototype;return n.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},n.blockTokens=function(e,t,n){var i,r,o,s;void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));while(e)if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),i.type&&t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),s=t[t.length-1],s&&"paragraph"===s.type?(s.raw+="\n"+i.raw,s.text+="\n"+i.text):t.push(i);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.nptable(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),i.tokens=this.blockTokens(i.text,[],n),t.push(i);else if(i=this.tokenizer.list(e)){for(e=e.substring(i.raw.length),o=i.items.length,r=0;r<o;r++)i.items[r].tokens=this.blockTokens(i.items[r].text,[],!1);t.push(i)}else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(n&&(i=this.tokenizer.def(e)))e=e.substring(i.raw.length),this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else if(n&&(i=this.tokenizer.paragraph(e)))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.text(e))e=e.substring(i.raw.length),s=t[t.length-1],s&&"text"===s.type?(s.raw+="\n"+i.raw,s.text+="\n"+i.text):t.push(i);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return t},n.inline=function(e){var t,n,i,r,o,s,a=e.length;for(t=0;t<a;t++)switch(s=e[t],s.type){case"paragraph":case"text":case"heading":s.tokens=[],this.inlineTokens(s.text,s.tokens);break;case"table":for(s.tokens={header:[],cells:[]},r=s.header.length,n=0;n<r;n++)s.tokens.header[n]=[],this.inlineTokens(s.header[n],s.tokens.header[n]);for(r=s.cells.length,n=0;n<r;n++)for(o=s.cells[n],s.tokens.cells[n]=[],i=0;i<o.length;i++)s.tokens.cells[n][i]=[],this.inlineTokens(o[i],s.tokens.cells[n][i]);break;case"blockquote":this.inline(s.tokens);break;case"list":for(r=s.items.length,n=0;n<r;n++)this.inline(s.items[n].tokens);break}return e},n.inlineTokens=function(e,t,n,i){var r,o;void 0===t&&(t=[]),void 0===n&&(n=!1),void 0===i&&(i=!1);var s,a,l,c=e;if(this.tokens.links){var u=Object.keys(this.tokens.links);if(u.length>0)while(null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(c)))u.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,s.index)+"["+X("a",s[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}while(null!=(s=this.tokenizer.rules.inline.blockSkip.exec(c)))c=c.slice(0,s.index)+"["+X("a",s[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);while(null!=(s=this.tokenizer.rules.inline.escapedEmSt.exec(c)))c=c.slice(0,s.index)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);while(e)if(a||(l=""),a=!1,r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e,n,i)){e=e.substring(r.raw.length),n=r.inLink,i=r.inRawBlock;var h=t[t.length-1];h&&"text"===r.type&&"text"===h.type?(h.raw+=r.raw,h.text+=r.text):t.push(r)}else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,i)),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);var d=t[t.length-1];"link"===r.type?(r.tokens=this.inlineTokens(r.text,[],!0,i),t.push(r)):d&&"text"===r.type&&"text"===d.type?(d.raw+=r.raw,d.text+=r.text):t.push(r)}else if(r=this.tokenizer.emStrong(e,c,l))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.autolink(e,J))e=e.substring(r.raw.length),t.push(r);else if(n||!(r=this.tokenizer.url(e,J))){if(r=this.tokenizer.inlineText(e,i,Q))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(l=r.raw.slice(-1)),a=!0,o=t[t.length-1],o&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):t.push(r);else if(e){var f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}throw new Error(f)}}else e=e.substring(r.raw.length),t.push(r);return t},t(e,null,[{key:"rules",get:function(){return{block:Y,inline:Z}}}]),e}(),te=s.defaults,ne=A.cleanUrl,ie=A.escape,re=function(){function e(e){this.options=e||te}var t=e.prototype;return t.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,i);null!=r&&r!==e&&(n=!0,e=r)}return e=e.replace(/\n$/,"")+"\n",i?'<pre><code class="'+this.options.langPrefix+ie(i,!0)+'">'+(n?e:ie(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:ie(e,!0))+"</code></pre>\n"},t.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},t.html=function(e){return e},t.heading=function(e,t,n,i){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+i.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},t.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},t.list=function(e,t,n){var i=t?"ol":"ul",r=t&&1!==n?' start="'+n+'"':"";return"<"+i+r+">\n"+e+"</"+i+">\n"},t.listitem=function(e){return"<li>"+e+"</li>\n"},t.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},t.paragraph=function(e){return"<p>"+e+"</p>\n"},t.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},t.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},t.tablecell=function(e,t){var n=t.header?"th":"td",i=t.align?"<"+n+' align="'+t.align+'">':"<"+n+">";return i+e+"</"+n+">\n"},t.strong=function(e){return"<strong>"+e+"</strong>"},t.em=function(e){return"<em>"+e+"</em>"},t.codespan=function(e){return"<code>"+e+"</code>"},t.br=function(){return this.options.xhtml?"<br/>":"<br>"},t.del=function(e){return"<del>"+e+"</del>"},t.link=function(e,t,n){if(e=ne(this.options.sanitize,this.options.baseUrl,e),null===e)return n;var i='<a href="'+ie(e)+'"';return t&&(i+=' title="'+t+'"'),i+=">"+n+"</a>",i},t.image=function(e,t,n){if(e=ne(this.options.sanitize,this.options.baseUrl,e),null===e)return n;var i='<img src="'+e+'" alt="'+n+'"';return t&&(i+=' title="'+t+'"'),i+=this.options.xhtml?"/>":">",i},t.text=function(e){return e},e}(),oe=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),se=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,i=0;if(this.seen.hasOwnProperty(n)){i=this.seen[e];do{i++,n=e+"-"+i}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=i,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),ae=s.defaults,le=A.unescape,ce=function(){function e(e){this.options=e||ae,this.options.renderer=this.options.renderer||new re,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new oe,this.slugger=new se}e.parse=function(t,n){var i=new e(n);return i.parse(t)},e.parseInline=function(t,n){var i=new e(n);return i.parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,i,r,o,s,a,l,c,u,h,d,f,p,g,m,v,b,y,_="",w=e.length;for(n=0;n<w;n++)switch(h=e[n],h.type){case"space":continue;case"hr":_+=this.renderer.hr();continue;case"heading":_+=this.renderer.heading(this.parseInline(h.tokens),h.depth,le(this.parseInline(h.tokens,this.textRenderer)),this.slugger);continue;case"code":_+=this.renderer.code(h.text,h.lang,h.escaped);continue;case"table":for(c="",l="",o=h.header.length,i=0;i<o;i++)l+=this.renderer.tablecell(this.parseInline(h.tokens.header[i]),{header:!0,align:h.align[i]});for(c+=this.renderer.tablerow(l),u="",o=h.cells.length,i=0;i<o;i++){for(a=h.tokens.cells[i],l="",s=a.length,r=0;r<s;r++)l+=this.renderer.tablecell(this.parseInline(a[r]),{header:!1,align:h.align[r]});u+=this.renderer.tablerow(l)}_+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(h.tokens),_+=this.renderer.blockquote(u);continue;case"list":for(d=h.ordered,f=h.start,p=h.loose,o=h.items.length,u="",i=0;i<o;i++)m=h.items[i],v=m.checked,b=m.task,g="",m.task&&(y=this.renderer.checkbox(v),p?m.tokens.length>0&&"text"===m.tokens[0].type?(m.tokens[0].text=y+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=y+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:y}):g+=y),g+=this.parse(m.tokens,p),u+=this.renderer.listitem(g,b,v);_+=this.renderer.list(u,d,f);continue;case"html":_+=this.renderer.html(h.text);continue;case"paragraph":_+=this.renderer.paragraph(this.parseInline(h.tokens));continue;case"text":u=h.tokens?this.parseInline(h.tokens):h.text;while(n+1<w&&"text"===e[n+1].type)h=e[++n],u+="\n"+(h.tokens?this.parseInline(h.tokens):h.text);_+=t?this.renderer.paragraph(u):u;continue;default:var C='Token with "'+h.type+'" type was not found.';if(this.options.silent)return void console.error(C);throw new Error(C)}return _},t.parseInline=function(e,t){t=t||this.renderer;var n,i,r="",o=e.length;for(n=0;n<o;n++)switch(i=e[n],i.type){case"escape":r+=t.text(i.text);break;case"html":r+=t.html(i.text);break;case"link":r+=t.link(i.href,i.title,this.parseInline(i.tokens,t));break;case"image":r+=t.image(i.href,i.title,i.text);break;case"strong":r+=t.strong(this.parseInline(i.tokens,t));break;case"em":r+=t.em(this.parseInline(i.tokens,t));break;case"codespan":r+=t.codespan(i.text);break;case"br":r+=t.br();break;case"del":r+=t.del(this.parseInline(i.tokens,t));break;case"text":r+=t.text(i.text);break;default:var s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return void console.error(s);throw new Error(s)}return r},e}(),ue=A.merge,he=A.checkSanitizeDeprecation,de=A.escape,fe=s.getDefaults,pe=s.changeDefaults,ge=s.defaults;function me(e,t,n){if("undefined"===typeof e||null===e)throw new Error("marked(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"===typeof t&&(n=t,t=null),t=ue({},me.defaults,t||{}),he(t),n){var i,r=t.highlight;try{i=ee.lex(e,t)}catch(l){return n(l)}var o=function(e){var o;if(!e)try{o=ce.parse(i,t)}catch(l){e=l}return t.highlight=r,e?n(e):n(null,o)};if(!r||r.length<3)return o();if(delete t.highlight,!i.length)return o();var s=0;return me.walkTokens(i,(function(e){"code"===e.type&&(s++,setTimeout((function(){r(e.text,e.lang,(function(t,n){if(t)return o(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),s--,0===s&&o()}))}),0))})),void(0===s&&o())}try{var a=ee.lex(e,t);return t.walkTokens&&me.walkTokens(a,t.walkTokens),ce.parse(a,t)}catch(l){if(l.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+de(l.message+"",!0)+"</pre>";throw l}}me.options=me.setOptions=function(e){return ue(me.defaults,e),pe(me.defaults),me},me.getDefaults=fe,me.defaults=ge,me.use=function(e){var t=ue({},e);if(e.renderer&&function(){var n=me.defaults.renderer||new re,i=function(t){var i=n[t];n[t]=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a=e.renderer[t].apply(n,o);return!1===a&&(a=i.apply(n,o)),a}};for(var r in e.renderer)i(r);t.renderer=n}(),e.tokenizer&&function(){var n=me.defaults.tokenizer||new V,i=function(t){var i=n[t];n[t]=function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var a=e.tokenizer[t].apply(n,o);return!1===a&&(a=i.apply(n,o)),a}};for(var r in e.tokenizer)i(r);t.tokenizer=n}(),e.walkTokens){var n=me.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens(t),n&&n(t)}}me.setOptions(t)},me.walkTokens=function(e,t){for(var n,i=r(e);!(n=i()).done;){var o=n.value;switch(t(o),o.type){case"table":for(var s,a=r(o.tokens.header);!(s=a()).done;){var l=s.value;me.walkTokens(l,t)}for(var c,u=r(o.tokens.cells);!(c=u()).done;)for(var h,d=c.value,f=r(d);!(h=f()).done;){var p=h.value;me.walkTokens(p,t)}break;case"list":me.walkTokens(o.items,t);break;default:o.tokens&&me.walkTokens(o.tokens,t)}}},me.parseInline=function(e,t){if("undefined"===typeof e||null===e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=ue({},me.defaults,t||{}),he(t);try{var n=ee.lexInline(e,t);return t.walkTokens&&me.walkTokens(n,t.walkTokens),ce.parseInline(n,t)}catch(i){if(i.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+de(i.message+"",!0)+"</pre>";throw i}},me.Parser=ce,me.parser=ce.parse,me.Renderer=re,me.TextRenderer=oe,me.Lexer=ee,me.lexer=ee.lex,me.Tokenizer=V,me.Slugger=se,me.parse=me;var ve=me;return ve}))},"4af6":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return n.e("chunk-2d0afa49").then(n.bind(null,"0eca"))}})},"4b76":function(e,t,n){"use strict";var i,r=n("3742");(function(e){e[e["Ignore"]=0]="Ignore",e[e["Info"]=1]="Info",e[e["Warning"]=2]="Warning",e[e["Error"]=3]="Error"})(i||(i={})),function(e){const t="error",n="warning",i="warn",o="info",s="ignore";function a(s){return s?r["s"](t,s)?e.Error:r["s"](n,s)||r["s"](i,s)?e.Warning:r["s"](o,s)?e.Info:e.Ignore:e.Ignore}function l(i){switch(i){case e.Error:return t;case e.Warning:return n;case e.Info:return o;default:return s}}e.fromValue=a,e.toString=l}(i||(i={})),t["a"]=i},"4b8b":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"4bc4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o}));var i=1,r=2,o=4},"4d05":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l}));var i=n("3742"),r=n("e1b5"),o=n("8bf1");const s={getInitialState:()=>o["c"],tokenize2:(e,t,n,i)=>Object(o["e"])(0,e,n,i)};function a(e,t=s){return c(e,t||s)}function l(e,t,n,i,r,o,s){let a="<div>",l=i,c=0;for(let u=0,h=t.getCount();u<h;u++){const h=t.getEndOffset(u);if(h<=i)continue;let d="";for(;l<h&&l<r;l++){const t=e.charCodeAt(l);switch(t){case 9:let e=o-(l+c)%o;c+=e-1;while(e>0)d+=s?" ":" ",e--;break;case 60:d+="<";break;case 62:d+=">";break;case 38:d+="&";break;case 0:d+="�";break;case 65279:case 8232:case 8233:case 133:d+="<22>";break;case 13:d+="​";break;case 32:d+=s?" ":" ";break;default:d+=String.fromCharCode(t)}}if(a+=`<span style="${t.getInlineStyle(u,n)}">${d}</span>`,h>r||l>=r)break}return a+="</div>",a}function c(e,t){let n='<div class="monaco-tokenized-source">',o=i["R"](e),s=t.getInitialState();for(let a=0,l=o.length;a<l;a++){let e=o[a];a>0&&(n+="<br/>");let l=t.tokenize2(e,!0,s,0);r["a"].convertToEndOffset(l.tokens,e.length);let c=new r["a"](l.tokens,e),u=c.inflate(),h=0;for(let t=0,r=u.getCount();t<r;t++){const r=u.getClassName(t),o=u.getEndOffset(t);n+=`<span class="${r}">${i["t"](e.substring(h,o))}</span>`,h=o}s=l.endState}return n+="</div>",n}},"4d20":function(e,t,n){var i=n("1917"),r=n("10db"),o=n("6ca1"),s=n("3397"),a=n("9c0e"),l=n("faf5"),c=Object.getOwnPropertyDescriptor;t.f=n("0bad")?c:function(e,t){if(e=o(e),t=s(t,!0),l)try{return c(e,t)}catch(n){}if(a(e,t))return r(!i.f.call(e,t),e[t])}},"4d3d":function(e,t,n){},"4d63":function(e,t,n){var i=n("83ab"),r=n("da84"),o=n("e330"),s=n("94ca"),a=n("7156"),l=n("9112"),c=n("241c").f,u=n("3a9b"),h=n("44e7"),d=n("577e"),f=n("90d8"),p=n("9f7f"),g=n("aeb0"),m=n("cb2d"),v=n("d039"),b=n("1a2d"),y=n("69f3").enforce,_=n("2626"),w=n("b622"),C=n("fce3"),S=n("107c"),x=w("match"),O=r.RegExp,k=O.prototype,L=r.SyntaxError,E=o(k.exec),D=o("".charAt),I=o("".replace),M=o("".indexOf),T=o("".slice),A=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,N=/a/g,P=/a/g,j=new O(N)!==N,R=p.MISSED_STICKY,F=p.UNSUPPORTED_Y,B=i&&(!j||R||C||S||v((function(){return P[x]=!1,O(N)!=N||O(P)==P||"/a/i"!=O(N,"i")}))),W=function(e){for(var t,n=e.length,i=0,r="",o=!1;i<=n;i++)t=D(e,i),"\\"!==t?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),r+=t):r+="[\\s\\S]":r+=t+D(e,++i);return r},V=function(e){for(var t,n=e.length,i=0,r="",o=[],s={},a=!1,l=!1,c=0,u="";i<=n;i++){if(t=D(e,i),"\\"===t)t+=D(e,++i);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:E(A,T(e,i+1))&&(i+=2,l=!0),r+=t,c++;continue;case">"===t&&l:if(""===u||b(s,u))throw new L("Invalid capture group name");s[u]=!0,o[o.length]=[u,c],l=!1,u="";continue}l?u+=t:r+=t}return[r,o]};if(s("RegExp",B)){for(var z=function(e,t){var n,i,r,o,s,c,p=u(k,this),g=h(e),m=void 0===t,v=[],b=e;if(!p&&g&&m&&e.constructor===z)return e;if((g||u(k,e))&&(e=e.source,m&&(t=f(b))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),b=e,C&&"dotAll"in N&&(i=!!t&&M(t,"s")>-1,i&&(t=I(t,/s/g,""))),n=t,R&&"sticky"in N&&(r=!!t&&M(t,"y")>-1,r&&F&&(t=I(t,/y/g,""))),S&&(o=V(e),e=o[0],v=o[1]),s=a(O(e,t),p?this:k,z),(i||r||v.length)&&(c=y(s),i&&(c.dotAll=!0,c.raw=z(W(e),n)),r&&(c.sticky=!0),v.length&&(c.groups=v)),e!==b)try{l(s,"source",""===b?"(?:)":b)}catch(_){}return s},H=c(O),U=0;H.length>U;)g(z,O,H[U++]);k.constructor=z,z.prototype=k,m(r,"RegExp",z,{constructor:!0})}_("RegExp")},"4d64":function(e,t,n){var i=n("fc6a"),r=n("23cb"),o=n("07fa"),s=function(e){return function(t,n,s){var a,l=i(t),c=o(l),u=r(s,c);if(e&&n!=n){while(c>u)if(a=l[u++],a!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},"4d84":function(e,t,n){"use strict";const i=n("3d67").OrderedSet,r=n("34eb")("number-allocator:trace"),o=n("34eb")("number-allocator:error");function s(e,t){this.low=e,this.high=t}function a(e,t){if(!(this instanceof a))return new a(e,t);this.min=e,this.max=t,this.ss=new i([],(e,t)=>e.compare(t)),r("Create"),this.clear()}s.prototype.equals=function(e){return this.low===e.low&&this.high===e.high},s.prototype.compare=function(e){return this.low<e.low&&this.high<e.low?-1:e.low<this.low&&e.high<this.low?1:0},a.prototype.firstVacant=function(){return 0===this.ss.size()?null:this.ss.front().low},a.prototype.alloc=function(){if(0===this.ss.size())return r("alloc():empty"),null;const e=this.ss.begin(),t=e.pointer.low,n=e.pointer.high,i=t;return i+1<=n?this.ss.updateKeyByIterator(e,new s(t+1,n)):this.ss.eraseElementByPos(0),r("alloc():"+i),i},a.prototype.use=function(e){const t=new s(e,e),n=this.ss.lowerBound(t);if(!n.equals(this.ss.end())){const i=n.pointer.low,o=n.pointer.high;return n.pointer.equals(t)?(this.ss.eraseElementByIterator(n),r("use():"+e),!0):!(i>e)&&(i===e?(this.ss.updateKeyByIterator(n,new s(i+1,o)),r("use():"+e),!0):o===e?(this.ss.updateKeyByIterator(n,new s(i,o-1)),r("use():"+e),!0):(this.ss.updateKeyByIterator(n,new s(e+1,o)),this.ss.insert(new s(i,e-1)),r("use():"+e),!0))}return r("use():failed"),!1},a.prototype.free=function(e){if(e<this.min||e>this.max)return void o("free():"+e+" is out of range");const t=new s(e,e),n=this.ss.upperBound(t);if(n.equals(this.ss.end())){if(n.equals(this.ss.begin()))return void this.ss.insert(t);n.pre();const i=n.pointer.high,r=n.pointer.high;r+1===e?this.ss.updateKeyByIterator(n,new s(i,e)):this.ss.insert(t)}else if(n.equals(this.ss.begin()))if(e+1===n.pointer.low){const t=n.pointer.high;this.ss.updateKeyByIterator(n,new s(e,t))}else this.ss.insert(t);else{const i=n.pointer.low,r=n.pointer.high;n.pre();const o=n.pointer.low,a=n.pointer.high;a+1===e?e+1===i?(this.ss.eraseElementByIterator(n),this.ss.updateKeyByIterator(n,new s(o,r))):this.ss.updateKeyByIterator(n,new s(o,e)):e+1===i?(this.ss.eraseElementByIterator(n.next()),this.ss.insert(new s(e,r))):this.ss.insert(t)}r("free():"+e)},a.prototype.clear=function(){r("clear()"),this.ss.clear(),this.ss.insert(new s(this.min,this.max))},a.prototype.intervalCount=function(){return this.ss.size()},a.prototype.dump=function(){console.log("length:"+this.ss.size());for(const e of this.ss)console.log(e)},e.exports=a},"4d88":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"4da7":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:function(){return n.e("chunk-2d21ab79").then(n.bind(null,"bd67"))}})},"4dae":function(e,t,n){var i=n("23cb"),r=n("07fa"),o=n("8418"),s=Array,a=Math.max;e.exports=function(e,t,n){for(var l=r(e),c=i(t,l),u=i(void 0===n?l:n,l),h=s(a(u-c,0)),d=0;c<u;c++,d++)o(h,d,e[c]);return h.length=d,h}},"4dc7":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o}));class i{constructor(e,t,n){this._tokenBrand=void 0,this.offset=0|e,this.type=t,this.language=n}toString(){return"("+this.offset+", "+this.type+")"}}class r{constructor(e,t){this._tokenizationResultBrand=void 0,this.tokens=e,this.endState=t}}class o{constructor(e,t){this._tokenizationResult2Brand=void 0,this.tokens=e,this.endState=t}}},"4de4":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").filter,o=n("1dde"),s=o("filter");i({target:"Array",proto:!0,forced:!s},{filter:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var i=n("0366"),r=n("c65b"),o=n("7b0b"),s=n("9bdd"),a=n("e95a"),l=n("68ee"),c=n("07fa"),u=n("8418"),h=n("9a1f"),d=n("35a1"),f=Array;e.exports=function(e){var t=o(e),n=l(this),p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g;m&&(g=i(g,p>2?arguments[2]:void 0));var v,b,y,_,w,C,S=d(t),x=0;if(!S||this===f&&a(S))for(v=c(t),b=n?new this(v):f(v);v>x;x++)C=m?g(t[x],x):t[x],u(b,x,C);else for(_=h(t,S),w=_.next,b=n?new this:[];!(y=r(w,_)).done;x++)C=m?s(_,g,[y.value,x],!0):y.value,u(b,x,C);return b.length=x,b}},"4e71":function(e,t,n){n("e198")("observable")},"4e82":function(e,t,n){"use strict";var i=n("23e7"),r=n("e330"),o=n("59ed"),s=n("7b0b"),a=n("07fa"),l=n("083a"),c=n("577e"),u=n("d039"),h=n("addb"),d=n("a640"),f=n("04d1"),p=n("d998"),g=n("2d00"),m=n("512ce"),v=[],b=r(v.sort),y=r(v.push),_=u((function(){v.sort(void 0)})),w=u((function(){v.sort(null)})),C=d("sort"),S=!u((function(){if(g)return g<70;if(!(f&&f>3)){if(p)return!0;if(m)return m<603;var e,t,n,i,r="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(i=0;i<47;i++)v.push({k:t+i,v:n})}for(v.sort((function(e,t){return t.v-e.v})),i=0;i<v.length;i++)t=v[i].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return"DGBEFHACIJK"!==r}})),x=_||!w||!C||!S,O=function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}};i({target:"Array",proto:!0,forced:x},{sort:function(e){void 0!==e&&o(e);var t=s(this);if(S)return void 0===e?b(t):b(t,e);var n,i,r=[],c=a(t);for(i=0;i<c;i++)i in t&&y(r,t[i]);h(r,O(e)),n=a(r),i=0;while(i<n)t[i]=r[i++];while(i<c)l(t,i++);return t}})},"4e86":function(e,t,n){},"4ea4":function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"4eb1":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.radar=g;var r=i(n("9523")),o=i(n("7037")),s=i(n("278c")),a=i(n("448a")),l=n("18ad"),c=n("9d85"),u=n("5557"),h=n("a870"),d=n("becb");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,r["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.series;n||(n=[]);var i=(0,d.initNeedSeries)(n,c.radarConfig,"radar");i=m(i,e),i=v(i,e),i=b(i,e),(0,l.doUpdate)({chart:e,series:i,key:"radar",getGraphConfig:y,getStartGraphConfig:_,beforeChange:S}),(0,l.doUpdate)({chart:e,series:i,key:"radarPoint",getGraphConfig:x,getStartGraphConfig:O}),(0,l.doUpdate)({chart:e,series:i,key:"radarLabel",getGraphConfig:E})}function m(e,t){var n=t.radarAxis;if(!n)return[];var i=n.indicator,r=n.axisLineAngles,o=n.radius,s=n.centerPos;return e.forEach((function(e){var t=e.data;e.dataRadius=[],e.radarPosition=i.map((function(n,i){var l=n.max,c=n.min,h=t[i];"number"!==typeof l&&(l=h),"number"!==typeof c&&(c=0),"number"!==typeof h&&(h=c);var d=(h-c)/(l-c)*o;return e.dataRadius[i]=d,u.getCircleRadianPoint.apply(void 0,(0,a["default"])(s).concat([d,r[i]]))}))})),e}function v(e,t){var n=t.radarAxis;if(!n)return[];var i=n.centerPos,r=n.axisLineAngles;return e.forEach((function(e){var t=e.dataRadius,n=e.label,o=n.labelGap;e.labelPosition=t.map((function(e,t){return u.getCircleRadianPoint.apply(void 0,(0,a["default"])(i).concat([e+o,r[t]]))}))})),e}function b(e,t){var n=t.radarAxis;if(!n)return[];var i=(0,s["default"])(n.centerPos,2),r=i[0],o=i[1];return e.forEach((function(e){var t=e.labelPosition,n=t.map((function(e){var t=(0,s["default"])(e,2),n=t[0],i=t[1],a=n>r?"left":"right",l=i>o?"top":"bottom";return{textAlign:a,textBaseline:l}}));e.labelAlign=n})),e}function y(e){var t=e.animationCurve,n=e.animationFrame,i=e.rLevel;return[{name:"polyline",index:i,animationCurve:t,animationFrame:n,shape:w(e),style:C(e)}]}function _(e,t){var n=t.chart.radarAxis.centerPos,i=y(e)[0],r=i.shape.points.length,o=new Array(r).fill(0).map((function(e){return(0,a["default"])(n)}));return i.shape.points=o,[i]}function w(e){var t=e.radarPosition;return{points:t,close:!0}}function C(e){var t=e.radarStyle,n=e.color,i=(0,h.getRgbaValue)(n);i[3]=.5;var r={stroke:n,fill:(0,h.getColorFromRgbValue)(i)};return(0,d.deepMerge)(r,t)}function S(e,t){var n=t.shape,i=e.shape.points,r=i.length,o=n.points.length;if(o>r){var s=i.slice(-1)[0],l=new Array(o-r).fill(0).map((function(e){return(0,a["default"])(s)}));i.push.apply(i,(0,a["default"])(l))}else o<r&&i.splice(o)}function x(e){var t=e.radarPosition,n=e.animationCurve,i=e.animationFrame,r=e.rLevel;return t.map((function(t,o){return{name:"circle",index:r,animationCurve:n,animationFrame:i,visible:e.point.show,shape:k(e,o),style:L(e,o)}}))}function O(e){var t=x(e);return t.forEach((function(e){return e.shape.r=.01})),t}function k(e,t){var n=e.radarPosition,i=e.point,r=i.radius,o=n[t];return{rx:o[0],ry:o[1],r:r}}function L(e,t){var n=e.point,i=e.color,r=n.style;return(0,d.deepMerge)({stroke:i},r)}function E(e){var t=e.labelPosition,n=e.animationCurve,i=e.animationFrame,r=e.rLevel;return t.map((function(t,o){return{name:"text",index:r,visible:e.label.show,animationCurve:n,animationFrame:i,shape:D(e,o),style:M(e,o)}}))}function D(e,t){var n=e.labelPosition,i=e.label,r=e.data,s=i.offset,a=i.formatter,l=I(n[t],s),c=r[t]?r[t].toString():"0",u=(0,o["default"])(a);return"string"===u&&(c=a.replace("{value}",c)),"function"===u&&(c=a(c)),{content:c,position:l}}function I(e,t){var n=(0,s["default"])(e,2),i=n[0],r=n[1],o=(0,s["default"])(t,2),a=o[0],l=o[1];return[i+a,r+l]}function M(e,t){var n=e.label,i=e.color,r=e.labelAlign,o=n.style,s=p({fill:i},r[t]);return(0,d.deepMerge)(s,o)}},"4eb5":function(e,t,n){var i=n("6981"),r={autoSetContainer:!1,appendToBody:!0},o={install:function(e){var t="3."===e.version.slice(0,2)?e.config.globalProperties:e.prototype;t.$clipboardConfig=r,t.$copyText=function(e,t){return new Promise((function(n,o){var s=document.createElement("button"),a=new i(s,{text:function(){return e},action:function(){return"copy"},container:"object"===typeof t?t:document.body});a.on("success",(function(e){a.destroy(),n(e)})),a.on("error",(function(e){a.destroy(),o(e)})),r.appendToBody&&document.body.appendChild(s),s.click(),r.appendToBody&&document.body.removeChild(s)}))},e.directive("clipboard",{bind:function(e,t,n){if("success"===t.arg)e._vClipboard_success=t.value;else if("error"===t.arg)e._vClipboard_error=t.value;else{var o=new i(e,{text:function(){return t.value},action:function(){return"cut"===t.arg?"cut":"copy"},container:r.autoSetContainer?e:void 0});o.on("success",(function(t){var n=e._vClipboard_success;n&&n(t)})),o.on("error",(function(t){var n=e._vClipboard_error;n&&n(t)})),e._vClipboard=o}},update:function(e,t){"success"===t.arg?e._vClipboard_success=t.value:"error"===t.arg?e._vClipboard_error=t.value:(e._vClipboard.text=function(){return t.value},e._vClipboard.action=function(){return"cut"===t.arg?"cut":"copy"})},unbind:function(e,t){e._vClipboard&&("success"===t.arg?delete e._vClipboard_success:"error"===t.arg?delete e._vClipboard_error:(e._vClipboard.destroy(),delete e._vClipboard))}})},config:r};e.exports=o},"4ebc":function(e,t,n){var i=n("4d88");e.exports=Array.isArray||function(e){return"Array"==i(e)}},"4f85":function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var i=n("9ab4"),r=n("6d8b"),o=n("22d1"),s=n("e0d3"),a=n("6cb7"),l=n("4041"),c=n("38a2"),u=n("f934"),h=n("9fbc"),d=n("625e"),f=n("f72b"),p=n("f6d8"),g=s["o"]();function m(e,t){return e.getName(t)||e.getId(t)}var v="__universalTransitionEnabled",b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return Object(i["a"])(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Object(h["a"])({count:w,reset:C}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=g(this).sourceManager=new f["a"](this);i.prepareSource();var r=this.getInitialData(e,n);x(r,this),this.dataTask.context.data=r,g(this).dataBeforeProcessed=r,y(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Object(u["d"])(this),i=n?Object(u["f"])(e):{},o=this.subType;a["a"].hasClass(o)&&(o+="Series"),r["merge"](e,t.getTheme().get(this.subType)),r["merge"](e,this.getDefaultOption()),s["f"](e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Object(u["h"])(e,i,n)},t.prototype.mergeOption=function(e,t){e=r["merge"](this.option,e,!0),this.fillDataTextStyle(e.data);var n=Object(u["d"])(this);n&&Object(u["h"])(this.option,e,n);var i=g(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,t);x(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,g(this).dataBeforeProcessed=o,y(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!r["isTypedArray"](e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&s["f"](e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){var t=this.getRawData();t.appendData(e.data)},t.prototype.getData=function(e){var t=k(this);if(t){var n=t.context.data;return null!=e&&n.getLinkedData?n.getLinkedData(e):n}return g(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=k(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}g(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return r["createHashMap"](e)},t.prototype.getSourceManager=function(){return g(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return g(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return Object(p["a"])({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(o["a"].node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var i=this.ecModel,r=l["a"].prototype.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(t);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<e.length;o++){var s=e[o],a=m(r,s);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=r["keys"](e),n=[],i=0;i<t.length;i++){var o=e[t[i]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(t);return("all"===n||n[m(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[v])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,i,o=this.option,s=o.selectedMode,a=t.length;if(s&&a)if("series"===s)o.selectedMap="all";else if("multiple"===s){r["isObject"](o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,c=0;c<a;c++){var u=t[c],h=m(e,u);l[h]=!0,this._selectedDataIndicesMap[h]=e.getRawIndex(u)}}else if("single"===s||!0===s){var d=t[a-1];h=m(e,d);o.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=e.getRawIndex(d),i)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var i=e.getRawDataItem(n);i&&i.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return a["a"].registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(a["a"]);function y(e){var t=e.name;s["n"](e)||(e.name=_(e)||t)}function _(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),i=[];return r["each"](n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)})),i.join(" ")}function w(e){return e.model.getRawData().count()}function C(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),S}function S(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function x(e,t){r["each"](r["concatArray"](e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,r["curry"](O,t))}))}function O(e,t){var n=k(e);return n&&n.setOutputEnd((t||this).count()),t}function k(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}r["mixin"](b,c["a"]),r["mixin"](b,l["a"]),Object(d["e"])(b,a["a"]),t["b"]=b},"4fac":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("401b");function r(e,t,n,r){var o,s,a,l,c=[],u=[],h=[],d=[];if(r){a=[1/0,1/0],l=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)Object(i["min"])(a,a,e[f]),Object(i["max"])(l,l,e[f]);Object(i["min"])(a,a,r[0]),Object(i["max"])(l,l,r[1])}for(f=0,p=e.length;f<p;f++){var g=e[f];if(n)o=e[f?f-1:p-1],s=e[(f+1)%p];else{if(0===f||f===p-1){c.push(Object(i["clone"])(e[f]));continue}o=e[f-1],s=e[f+1]}Object(i["sub"])(u,s,o),Object(i["scale"])(u,u,t);var m=Object(i["distance"])(g,o),v=Object(i["distance"])(g,s),b=m+v;0!==b&&(m/=b,v/=b),Object(i["scale"])(h,u,-m),Object(i["scale"])(d,u,v);var y=Object(i["add"])([],g,h),_=Object(i["add"])([],g,d);r&&(Object(i["max"])(y,y,a),Object(i["min"])(y,y,l),Object(i["max"])(_,_,a),Object(i["min"])(_,_,l)),c.push(y),c.push(_)}return n&&c.push(c.shift()),c}function o(e,t,n){var i=t.smooth,o=t.points;if(o&&o.length>=2){if(i){var s=r(o,i,n,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var a=o.length,l=0;l<(n?a:a-1);l++){var c=s[2*l],u=s[2*l+1],h=o[(l+1)%a];e.bezierCurveTo(c[0],c[1],u[0],u[1],h[0],h[1])}}else{e.moveTo(o[0][0],o[0][1]);l=1;for(var d=o.length;l<d;l++)e.lineTo(o[l][0],o[l][1])}n&&e.closePath()}}},"4fad":function(e,t,n){var i=n("d039"),r=n("861d"),o=n("c6b6"),s=n("d86b"),a=Object.isExtensible,l=i((function(){a(1)}));e.exports=l||s?function(e){return!!r(e)&&((!s||"ArrayBuffer"!=o(e))&&(!a||a(e)))}:a},"4fc3":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return L})),n.d(t,"b",(function(){return E})),n.d(t,"d",(function(){return D}));var i=n("3742"),r=n("0a0f"),o=n("30db");let s=o["l"]||"";const a=new Map;a.set("false",!1),a.set("true",!0),a.set("isMac",o["f"]),a.set("isLinux",o["d"]),a.set("isWindows",o["j"]),a.set("isWeb",o["i"]),a.set("isMacNative",o["f"]&&!o["i"]),a.set("isEdge",s.indexOf("Edg/")>=0),a.set("isFirefox",s.indexOf("Firefox")>=0),a.set("isChrome",s.indexOf("Chrome")>=0),a.set("isSafari",s.indexOf("Safari")>=0);const l=Object.prototype.hasOwnProperty;class c{static has(e){return f.create(e)}static equals(e,t){return p.create(e,t)}static regex(e,t){return S.create(e,t)}static not(e){return b.create(e)}static and(...e){return O.create(e)}static or(...e){return k.create(e)}static deserialize(e,t=!1){if(e)return this._deserializeOrExpression(e,t)}static _deserializeOrExpression(e,t){let n=e.split("||");return k.create(n.map(e=>this._deserializeAndExpression(e,t)))}static _deserializeAndExpression(e,t){let n=e.split("&&");return O.create(n.map(e=>this._deserializeOne(e,t)))}static _deserializeOne(e,t){if(e=e.trim(),e.indexOf("!=")>=0){let n=e.split("!=");return v.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("==")>=0){let n=e.split("==");return p.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("=~")>=0){let n=e.split("=~");return S.create(n[0].trim(),this._deserializeRegexValue(n[1],t))}if(e.indexOf(" in ")>=0){let t=e.split(" in ");return g.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(e)){const t=e.split(">=");return _.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(e)){const t=e.split(">");return y.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(e)){const t=e.split("<=");return C.create(t[0].trim(),t[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(e)){const t=e.split("<");return w.create(t[0].trim(),t[1].trim())}return/^\!\s*/.test(e)?b.create(e.substr(1).trim()):f.create(e)}static _deserializeValue(e,t){if(e=e.trim(),"true"===e)return!0;if("false"===e)return!1;let n=/^'([^']*)'$/.exec(e);return n?n[1].trim():e}static _deserializeRegexValue(e,t){if(Object(i["D"])(e)){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let n=e.indexOf("/"),r=e.lastIndexOf("/");if(n===r||n<0){if(t)throw new Error(`bad regexp-value '${e}', missing /-enclosure`);return console.warn(`bad regexp-value '${e}', missing /-enclosure`),null}let o=e.slice(n+1,r),s="i"===e[r+1]?"i":"";try{return new RegExp(o,s)}catch(a){if(t)throw new Error(`bad regexp-value '${e}', parse error: ${a}`);return console.warn(`bad regexp-value '${e}', parse error: ${a}`),null}}}function u(e,t){return e.cmp(t)}class h{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return d.INSTANCE}}h.INSTANCE=new h;class d{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return h.INSTANCE}}d.INSTANCE=new d;class f{constructor(e){this.key=e,this.type=2}static create(e){const t=a.get(e);return"boolean"===typeof t?t?d.INSTANCE:h.INSTANCE:new f(e)}cmp(e){return e.type!==this.type?this.type-e.type:I(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return b.create(this.key)}}class p{constructor(e,t){this.key=e,this.value=t,this.type=4}static create(e,t){if("boolean"===typeof t)return t?f.create(e):b.create(e);const n=a.get(e);if("boolean"===typeof n){const e=n?"true":"false";return t===e?d.INSTANCE:h.INSTANCE}return new p(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:M(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return v.create(this.key,this.value)}}class g{constructor(e,t){this.key=e,this.valueKey=t,this.type=10}static create(e,t){return new g(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:M(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type&&(this.key===e.key&&this.valueKey===e.valueKey)}evaluate(e){const t=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(t)?t.indexOf(n)>=0:"string"===typeof n&&"object"===typeof t&&null!==t&&l.call(t,n)}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return m.create(this)}}class m{constructor(e){this._actual=e,this.type=11}static create(e){return new m(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class v{constructor(e,t){this.key=e,this.value=t,this.type=5}static create(e,t){if("boolean"===typeof t)return t?b.create(e):f.create(e);const n=a.get(e);if("boolean"===typeof n){const e=n?"true":"false";return t===e?h.INSTANCE:d.INSTANCE}return new v(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:M(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return p.create(this.key,this.value)}}class b{constructor(e){this.key=e,this.type=3}static create(e){const t=a.get(e);return"boolean"===typeof t?t?h.INSTANCE:d.INSTANCE:new b(e)}cmp(e){return e.type!==this.type?this.type-e.type:I(this.key,e.key)}equals(e){return e.type===this.type&&this.key===e.key}evaluate(e){return!e.getValue(this.key)}serialize(){return"!"+this.key}keys(){return[this.key]}negate(){return f.create(this.key)}}class y{constructor(e,t){this.key=e,this.value=t,this.type=12}static create(e,t){return new y(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:M(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}evaluate(e){return parseFloat(e.getValue(this.key))>parseFloat(this.value)}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return C.create(this.key,this.value)}}class _{constructor(e,t){this.key=e,this.value=t,this.type=13}static create(e,t){return new _(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:M(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}evaluate(e){return parseFloat(e.getValue(this.key))>=parseFloat(this.value)}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return w.create(this.key,this.value)}}class w{constructor(e,t){this.key=e,this.value=t,this.type=14}static create(e,t){return new w(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:M(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}evaluate(e){return parseFloat(e.getValue(this.key))<parseFloat(this.value)}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return _.create(this.key,this.value)}}class C{constructor(e,t){this.key=e,this.value=t,this.type=15}static create(e,t){return new C(e,t)}cmp(e){return e.type!==this.type?this.type-e.type:M(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type&&(this.key===e.key&&this.value===e.value)}evaluate(e){return parseFloat(e.getValue(this.key))<=parseFloat(this.value)}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return y.create(this.key,this.value)}}class S{constructor(e,t){this.key=e,this.regexp=t,this.type=7}static create(e,t){return new S(e,t)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.key<e.key)return-1;if(this.key>e.key)return 1;const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return t<n?-1:t>n?1:0}equals(e){if(e.type===this.type){const t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&t===n}return!1}evaluate(e){let t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return x.create(this)}}class x{constructor(e){this._actual=e,this.type=8}static create(e){return new x(e)}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type&&this._actual.equals(e._actual)}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class O{constructor(e){this.expr=e,this.type=6}static create(e){return O._normalizeArr(e)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=u(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0}static _normalizeArr(e){const t=[];let n=!1;for(const i of e)if(i)if(1!==i.type){if(0===i.type)return h.INSTANCE;6!==i.type?t.push(i):t.push(...i.expr)}else n=!0;if(0===t.length&&n)return d.INSTANCE;if(0!==t.length){if(1===t.length)return t[0];t.sort(u);while(t.length>1){const e=t[t.length-1];if(9!==e.type)break;t.pop();const n=t.pop(),i=k.create(e.expr.map(e=>O.create([e,n])));i&&(t.push(i),t.sort(u))}return 1===t.length?t[0]:new O(t)}}serialize(){return this.expr.map(e=>e.serialize()).join(" && ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){let e=[];for(let t of this.expr)e.push(t.negate());return k.create(e)}}class k{constructor(e){this.expr=e,this.type=9}static create(e){const t=k._normalizeArr(e);if(0!==t.length)return 1===t.length?t[0]:new k(t)}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.length<e.expr.length)return-1;if(this.expr.length>e.expr.length)return 1;for(let t=0,n=this.expr.length;t<n;t++){const n=u(this.expr[t],e.expr[t]);if(0!==n)return n}return 0}equals(e){if(e.type===this.type){if(this.expr.length!==e.expr.length)return!1;for(let t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].equals(e.expr[t]))return!1;return!0}return!1}evaluate(e){for(let t=0,n=this.expr.length;t<n;t++)if(this.expr[t].evaluate(e))return!0;return!1}static _normalizeArr(e){let t=[],n=!1;if(e){for(let i=0,r=e.length;i<r;i++){const r=e[i];if(r)if(0!==r.type){if(1===r.type)return[d.INSTANCE];9!==r.type?t.push(r):t=t.concat(r.expr)}else n=!0}if(0===t.length&&n)return[h.INSTANCE];t.sort(u)}return t}serialize(){return this.expr.map(e=>e.serialize()).join(" || ")}keys(){const e=[];for(let t of this.expr)e.push(...t.keys());return e}negate(){let e=[];for(let n of this.expr)e.push(n.negate());const t=e=>9===e.type?e.expr:[e];while(e.length>1){const n=e.shift(),i=e.shift(),r=[];for(const e of t(n))for(const n of t(i))r.push(c.and(e,n));e.unshift(c.or(...r))}return e[0]}}class L extends f{constructor(e,t,n){super(e),this._defaultValue=t,"object"===typeof n?L._info.push(Object.assign(Object.assign({},n),{key:e})):!0!==n&&L._info.push({key:e,description:n,type:null!==t&&void 0!==t?typeof t:void 0})}static all(){return L._info.values()}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return c.not(this.key)}isEqualTo(e){return c.equals(this.key,e)}}L._info=[];const E=Object(r["c"])("contextKeyService"),D="setContext";function I(e,t){return e<t?-1:e>t?1:0}function M(e,t,n,i){return e<n?-1:e>n?1:t<i?-1:t>i?1:0}},5029:function(e,t,n){},5087:function(e,t,n){var i=n("68ee"),r=n("0d51"),o=TypeError;e.exports=function(e){if(i(e))return e;throw o(r(e)+" is not a constructor")}},"50c4":function(e,t,n){var i=n("5926"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},"511f":function(e,t,n){n("0b99"),n("658f"),e.exports=n("fcd4").f("iterator")},"512c":function(e,t,n){var i=n("ef08"),r=n("5524"),o=n("9c0c"),s=n("051b"),a=n("9c0e"),l="prototype",c=function(e,t,n){var u,h,d,f=e&c.F,p=e&c.G,g=e&c.S,m=e&c.P,v=e&c.B,b=e&c.W,y=p?r:r[t]||(r[t]={}),_=y[l],w=p?i:g?i[t]:(i[t]||{})[l];for(u in p&&(n=t),n)h=!f&&w&&void 0!==w[u],h&&a(y,u)||(d=h?w[u]:n[u],y[u]=p&&"function"!=typeof w[u]?n[u]:v&&h?o(d,i):b&&w[u]==d?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t[l]=e[l],t}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((y.virtual||(y.virtual={}))[u]=d,e&c.R&&_&&!_[u]&&s(_,u,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"512ce":function(e,t,n){var i=n("342f"),r=i.match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},5156:function(e,t,n){"use strict";var i="undefined"!==typeof Symbol&&Symbol,r=n("1696");e.exports=function(){return"function"===typeof i&&("function"===typeof Symbol&&("symbol"===typeof i("foo")&&("symbol"===typeof Symbol("bar")&&r())))}},"51e9":function(e,t,n){"use strict";const i=n("f214").Duplex,r=n("3fb5"),o=n("3301");function s(e){if(!(this instanceof s))return new s(e);if("function"===typeof e){this._callback=e;const t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",(function(e){e.on("error",t)})),this.on("unpipe",(function(e){e.removeListener("error",t)})),e=null}o._init.call(this,e),i.call(this)}r(s,i),Object.assign(s.prototype,o.prototype),s.prototype._new=function(e){return new s(e)},s.prototype._write=function(e,t,n){this._appendBuffer(e),"function"===typeof n&&n()},s.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},s.prototype.end=function(e){i.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},s.prototype._destroy=function(e,t){this._bufs.length=0,this.length=0,t(e)},s.prototype._isBufferList=function(e){return e instanceof s||e instanceof o||s.isBufferList(e)},s.isBufferList=o.isBufferList,e.exports=s,e.exports.BufferListStream=s,e.exports.BufferList=o},"51eb":function(e,t,n){"use strict";var i=n("825a"),r=n("485a"),o=TypeError;e.exports=function(e){if(i(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw o("Incorrect hint");return r(this,e)}},5210:function(e,t,n){"use strict";n.d(t,"c",(function(){return _})),n.d(t,"b",(function(){return B})),n.d(t,"a",(function(){return W}));var i=n("19eb"),r=n("20c8"),o=n("5e76"),s=n("3437"),a=n("cbe5"),l=n("0da8"),c=n("dd4f"),u=n("6d8b"),h=n("8d1d"),d=n("4bc4"),f=n("726e"),p=new r["a"](!0);function g(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function m(e){return"string"===typeof e&&"none"!==e}function v(e){var t=e.fill;return null!=t&&"none"!==t}function b(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function y(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function _(e,t,n){var i=Object(o["a"])(t.image,t.__image,n);if(Object(o["c"])(i)){var r=e.createPattern(i,t.repeat||"repeat");if("function"===typeof DOMMatrix&&r&&r.setTransform){var s=new DOMMatrix;s.translateSelf(t.x||0,t.y||0),s.rotateSelf(0,0,(t.rotation||0)*u["RADIAN_TO_DEGREE"]),s.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(s)}return r}}function w(e,t,n,i){var r,o=g(n),a=v(n),l=n.strokePercent,c=l<1,u=!t.path;t.silent&&!c||!u||t.createPathProxy();var f=t.path||p,m=t.__dirty;if(!i){var w=n.fill,C=n.stroke,S=a&&!!w.colorStops,x=o&&!!C.colorStops,O=a&&!!w.image,k=o&&!!C.image,L=void 0,E=void 0,D=void 0,I=void 0,M=void 0;(S||x)&&(M=t.getBoundingRect()),S&&(L=m?Object(s["a"])(e,w,M):t.__canvasFillGradient,t.__canvasFillGradient=L),x&&(E=m?Object(s["a"])(e,C,M):t.__canvasStrokeGradient,t.__canvasStrokeGradient=E),O&&(D=m||!t.__canvasFillPattern?_(e,w,t):t.__canvasFillPattern,t.__canvasFillPattern=D),k&&(I=m||!t.__canvasStrokePattern?_(e,C,t):t.__canvasStrokePattern,t.__canvasStrokePattern=D),S?e.fillStyle=L:O&&(D?e.fillStyle=D:a=!1),x?e.strokeStyle=E:k&&(I?e.strokeStyle=I:o=!1)}var T,A,N=t.getGlobalScale();f.setScale(N[0],N[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(r=Object(h["a"])(t),T=r[0],A=r[1]);var P=!0;(u||m&d["b"])&&(f.setDPR(e.dpr),c?f.setContext(null):(f.setContext(e),P=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),P&&f.rebuildPath(e,c?l:1),T&&(e.setLineDash(T),e.lineDashOffset=A),i||(n.strokeFirst?(o&&y(e,n),a&&b(e,n)):(a&&b(e,n),o&&y(e,n))),T&&e.setLineDash([])}function C(e,t,n){var i=t.__image=Object(o["a"])(n.image,t.__image,t,t.onload);if(i&&Object(o["c"])(i)){var r=n.x||0,s=n.y||0,a=t.getWidth(),l=t.getHeight(),c=i.width/i.height;if(null==a&&null!=l?a=l*c:null==l&&null!=a?l=a/c:null==a&&null==l&&(a=i.width,l=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,h=n.sy||0;e.drawImage(i,u,h,n.sWidth,n.sHeight,r,s,a,l)}else if(n.sx&&n.sy){u=n.sx,h=n.sy;var d=a-u,f=l-h;e.drawImage(i,u,h,d,f,r,s,a,l)}else e.drawImage(i,r,s,a,l)}}function S(e,t,n){var i,r=n.text;if(null!=r&&(r+=""),r){e.font=n.font||f["a"],e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,s=void 0;e.setLineDash&&n.lineDash&&(i=Object(h["a"])(t),o=i[0],s=i[1]),o&&(e.setLineDash(o),e.lineDashOffset=s),n.strokeFirst?(g(n)&&e.strokeText(r,n.x,n.y),v(n)&&e.fillText(r,n.x,n.y)):(v(n)&&e.fillText(r,n.x,n.y),g(n)&&e.strokeText(r,n.x,n.y)),o&&e.setLineDash([])}}var x=["shadowBlur","shadowOffsetX","shadowOffsetY"],O=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function k(e,t,n,r,o){var s=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){R(e,o),s=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?i["b"].opacity:a}(r||t.blend!==n.blend)&&(s||(R(e,o),s=!0),e.globalCompositeOperation=t.blend||i["b"].blend);for(var l=0;l<x.length;l++){var c=x[l];(r||t[c]!==n[c])&&(s||(R(e,o),s=!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(s||(R(e,o),s=!0),e.shadowColor=t.shadowColor||i["b"].shadowColor),s}function L(e,t,n,i,r){var o=F(t,r.inHover),s=i?null:n&&F(n,r.inHover)||{};if(o===s)return!1;var a=k(e,o,s,i,r);if((i||o.fill!==s.fill)&&(a||(R(e,r),a=!0),m(o.fill)&&(e.fillStyle=o.fill)),(i||o.stroke!==s.stroke)&&(a||(R(e,r),a=!0),m(o.stroke)&&(e.strokeStyle=o.stroke)),(i||o.opacity!==s.opacity)&&(a||(R(e,r),a=!0),e.globalAlpha=null==o.opacity?1:o.opacity),t.hasStroke()){var l=o.lineWidth,c=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(a||(R(e,r),a=!0),e.lineWidth=c)}for(var u=0;u<O.length;u++){var h=O[u],d=h[0];(i||o[d]!==s[d])&&(a||(R(e,r),a=!0),e[d]=o[d]||h[1])}return a}function E(e,t,n,i,r){return k(e,F(t,r.inHover),n&&F(n,r.inHover),i,r)}function D(e,t){var n=t.transform,i=e.dpr||1;n?e.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):e.setTransform(i,0,0,i,0,0)}function I(e,t,n){for(var i=!1,r=0;r<e.length;r++){var o=e[r];i=i||o.isZeroArea(),D(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=i}function M(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var T=1,A=2,N=3,P=4;function j(e){var t=v(e),n=g(e);return!(e.lineDash||!(+t^+n)||t&&"string"!==typeof e.fill||n&&"string"!==typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function R(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function F(e,t){return t&&e.__hoverStyle||e.style}function B(e,t){W(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function W(e,t,n,i){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~d["a"],void(t.__isRendered=!1);var o=t.__clipPaths,u=n.prevElClipPaths,h=!1,f=!1;if(u&&!Object(s["c"])(o,u)||(u&&u.length&&(R(e,n),e.restore(),f=h=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(R(e,n),e.save(),I(o,e,n),h=!0),n.prevElClipPaths=o),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var p=n.prevEl;p||(f=h=!0);var g=t instanceof a["b"]&&t.autoBatch&&j(t.style);h||M(r,p.transform)?(R(e,n),D(e,t)):g||R(e,n);var m=F(t,n.inHover);t instanceof a["b"]?(n.lastDrawType!==T&&(f=!0,n.lastDrawType=T),L(e,t,p,f,n),g&&(n.batchFill||n.batchStroke)||e.beginPath(),w(e,t,m,g),g&&(n.batchFill=m.fill||"",n.batchStroke=m.stroke||"")):t instanceof c["a"]?(n.lastDrawType!==N&&(f=!0,n.lastDrawType=N),L(e,t,p,f,n),S(e,t,m)):t instanceof l["a"]?(n.lastDrawType!==A&&(f=!0,n.lastDrawType=A),E(e,t,p,f,n),C(e,t,m)):t.getTemporalDisplayables&&(n.lastDrawType!==P&&(f=!0,n.lastDrawType=P),V(e,t,n)),g&&i&&R(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}function V(e,t,n){var i=t.getDisplayables(),r=t.getTemporalDisplayables();e.save();var o,s,a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=t.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),W(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var c=0,u=r.length;c<u;c++){l=r[c];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),W(e,l,a,c===u-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}},5270:function(e,t,n){"use strict";var i=n("c532"),r=n("c401"),o=n("2e67"),s=n("2444"),a=n("7a77");function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a("canceled")}e.exports=function(e){l(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||s.adapter;return t(e).then((function(t){return l(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5319:function(e,t,n){"use strict";var i=n("2ba4"),r=n("c65b"),o=n("e330"),s=n("d784"),a=n("d039"),l=n("825a"),c=n("1626"),u=n("7234"),h=n("5926"),d=n("50c4"),f=n("577e"),p=n("1d80"),g=n("8aa5"),m=n("dc4a"),v=n("0cb2"),b=n("14c3"),y=n("b622"),_=y("replace"),w=Math.max,C=Math.min,S=o([].concat),x=o([].push),O=o("".indexOf),k=o("".slice),L=function(e){return void 0===e?e:String(e)},E=function(){return"$0"==="a".replace(/./,"$0")}(),D=function(){return!!/./[_]&&""===/./[_]("a","$0")}(),I=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));s("replace",(function(e,t,n){var o=D?"$":"$0";return[function(e,n){var i=p(this),o=u(e)?void 0:m(e,_);return o?r(o,e,i,n):r(t,f(i),e,n)},function(e,r){var s=l(this),a=f(e);if("string"==typeof r&&-1===O(r,o)&&-1===O(r,"$<")){var u=n(t,s,a,r);if(u.done)return u.value}var p=c(r);p||(r=f(r));var m=s.global;if(m){var y=s.unicode;s.lastIndex=0}var _=[];while(1){var E=b(s,a);if(null===E)break;if(x(_,E),!m)break;var D=f(E[0]);""===D&&(s.lastIndex=g(a,d(s.lastIndex),y))}for(var I="",M=0,T=0;T<_.length;T++){E=_[T];for(var A=f(E[0]),N=w(C(h(E.index),a.length),0),P=[],j=1;j<E.length;j++)x(P,L(E[j]));var R=E.groups;if(p){var F=S([A],P,N,a);void 0!==R&&x(F,R);var B=f(i(r,void 0,F))}else B=v(A,a,N,P,R,r);N>=M&&(I+=k(a,M,N)+B,M=N+A.length)}return I+k(a,M)}]}),!I||!E||D)},"533b":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var i=n("0a0f");const r=Object(i["c"])("contextViewService"),o=Object(i["c"])("contextMenuService")},5352:function(e,t,n){"use strict";n("e260");var i=n("23e7"),r=n("da84"),o=n("c65b"),s=n("e330"),a=n("83ab"),l=n("f354"),c=n("cb2d"),u=n("6964"),h=n("d44e"),d=n("dcc3"),f=n("69f3"),p=n("19aa"),g=n("1626"),m=n("1a2d"),v=n("0366"),b=n("f5df"),y=n("825a"),_=n("861d"),w=n("577e"),C=n("7c73"),S=n("5c6c"),x=n("9a1f"),O=n("35a1"),k=n("d6d6"),L=n("b622"),E=n("addb"),D=L("iterator"),I="URLSearchParams",M=I+"Iterator",T=f.set,A=f.getterFor(I),N=f.getterFor(M),P=Object.getOwnPropertyDescriptor,j=function(e){if(!a)return r[e];var t=P(r,e);return t&&t.value},R=j("fetch"),F=j("Request"),B=j("Headers"),W=F&&F.prototype,V=B&&B.prototype,z=r.RegExp,H=r.TypeError,U=r.decodeURIComponent,q=r.encodeURIComponent,$=s("".charAt),K=s([].join),G=s([].push),Y=s("".replace),Z=s([].shift),X=s([].splice),Q=s("".split),J=s("".slice),ee=/\+/g,te=Array(4),ne=function(e){return te[e-1]||(te[e-1]=z("((?:%[\\da-f]{2}){"+e+"})","gi"))},ie=function(e){try{return U(e)}catch(t){return e}},re=function(e){var t=Y(e,ee," "),n=4;try{return U(t)}catch(i){while(n)t=Y(t,ne(n--),ie);return t}},oe=/[!'()~]|%20/g,se={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ae=function(e){return se[e]},le=function(e){return Y(q(e),oe,ae)},ce=d((function(e,t){T(this,{type:M,iterator:x(A(e).entries),kind:t})}),"Iterator",(function(){var e=N(this),t=e.kind,n=e.iterator.next(),i=n.value;return n.done||(n.value="keys"===t?i.key:"values"===t?i.value:[i.key,i.value]),n}),!0),ue=function(e){this.entries=[],this.url=null,void 0!==e&&(_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===$(e,0)?J(e,1):e:w(e)))};ue.prototype={type:I,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,i,r,s,a,l,c=O(e);if(c){t=x(e,c),n=t.next;while(!(i=o(n,t)).done){if(r=x(y(i.value)),s=r.next,(a=o(s,r)).done||(l=o(s,r)).done||!o(s,r).done)throw H("Expected sequence with length 2");G(this.entries,{key:w(a.value),value:w(l.value)})}}else for(var u in e)m(e,u)&&G(this.entries,{key:u,value:w(e[u])})},parseQuery:function(e){if(e){var t,n,i=Q(e,"&"),r=0;while(r<i.length)t=i[r++],t.length&&(n=Q(t,"="),G(this.entries,{key:re(Z(n)),value:re(K(n,"="))}))}},serialize:function(){var e,t=this.entries,n=[],i=0;while(i<t.length)e=t[i++],G(n,le(e.key)+"="+le(e.value));return K(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var he=function(){p(this,de);var e=arguments.length>0?arguments[0]:void 0;T(this,new ue(e))},de=he.prototype;if(u(de,{append:function(e,t){k(arguments.length,2);var n=A(this);G(n.entries,{key:w(e),value:w(t)}),n.updateURL()},delete:function(e){k(arguments.length,1);var t=A(this),n=t.entries,i=w(e),r=0;while(r<n.length)n[r].key===i?X(n,r,1):r++;t.updateURL()},get:function(e){k(arguments.length,1);for(var t=A(this).entries,n=w(e),i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function(e){k(arguments.length,1);for(var t=A(this).entries,n=w(e),i=[],r=0;r<t.length;r++)t[r].key===n&&G(i,t[r].value);return i},has:function(e){k(arguments.length,1);var t=A(this).entries,n=w(e),i=0;while(i<t.length)if(t[i++].key===n)return!0;return!1},set:function(e,t){k(arguments.length,1);for(var n,i=A(this),r=i.entries,o=!1,s=w(e),a=w(t),l=0;l<r.length;l++)n=r[l],n.key===s&&(o?X(r,l--,1):(o=!0,n.value=a));o||G(r,{key:s,value:a}),i.updateURL()},sort:function(){var e=A(this);E(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){var t,n=A(this).entries,i=v(e,arguments.length>1?arguments[1]:void 0),r=0;while(r<n.length)t=n[r++],i(t.value,t.key,this)},keys:function(){return new ce(this,"keys")},values:function(){return new ce(this,"values")},entries:function(){return new ce(this,"entries")}},{enumerable:!0}),c(de,D,de.entries,{name:"entries"}),c(de,"toString",(function(){return A(this).serialize()}),{enumerable:!0}),h(he,I),i({global:!0,constructor:!0,forced:!l},{URLSearchParams:he}),!l&&g(B)){var fe=s(V.has),pe=s(V.set),ge=function(e){if(_(e)){var t,n=e.body;if(b(n)===I)return t=e.headers?new B(e.headers):new B,fe(t,"content-type")||pe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),C(e,{body:S(0,w(n)),headers:S(0,t)})}return e};if(g(R)&&i({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return R(e,arguments.length>1?ge(arguments[1]):{})}}),g(F)){var me=function(e){return p(this,W),new F(e,arguments.length>1?ge(arguments[1]):{})};W.constructor=me,me.prototype=W,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:me})}}e.exports={URLSearchParams:he,getState:A}},"538f":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("6d8b"),r=n("e86a"),o=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var o=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var s=t.get("min",!0);null==s&&(s=t.get("startValue",!0));var a=this._modelMinRaw=s;Object(i["isFunction"])(a)?this._modelMinNum=c(e,a({min:n[0],max:n[1]})):"dataMin"!==a&&(this._modelMinNum=c(e,a));var l=this._modelMaxRaw=t.get("max",!0);if(Object(i["isFunction"])(l)?this._modelMaxNum=c(e,l({min:n[0],max:n[1]})):"dataMax"!==l&&(this._modelMaxNum=c(e,l)),o)this._axisDataLen=t.getCategories().length;else{var u=t.get("boundaryGap"),h=Object(i["isArray"])(u)?u:[u||0,u||0];"boolean"===typeof h[0]||"boolean"===typeof h[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Object(r["g"])(h[0],1),Object(r["g"])(h[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,o=this._boundaryGapInner,s=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,c=null!=a,u=null!=l;null==a&&(a=e?r?0:NaN:t-o[0]*s),null==l&&(l=e?r?r-1:NaN:n+o[1]*s),(null==a||!isFinite(a))&&(a=NaN),(null==l||!isFinite(l))&&(l=NaN);var h=Object(i["eqNaN"])(a)||Object(i["eqNaN"])(l)||e&&!r;this._needCrossZero&&(a>0&&l>0&&!c&&(a=0),a<0&&l<0&&!u&&(l=0));var d=this._determinedMin,f=this._determinedMax;return null!=d&&(a=d,c=!0),null!=f&&(l=f,u=!0),{min:a,max:l,minFixed:c,maxFixed:u,isBlank:h}},e.prototype.modifyDataMinMax=function(e,t){this[a[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=s[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),s={min:"_determinedMin",max:"_determinedMax"},a={min:"_dataMin",max:"_dataMax"};function l(e,t,n){var i=e.rawExtentInfo;return i||(i=new o(e,t,n),e.rawExtentInfo=i,i)}function c(e,t){return null==t?null:Object(i["eqNaN"])(t)?NaN:e.parse(t)}},"53a8":function(e,t){e.exports=i;var n=Object.prototype.hasOwnProperty;function i(){for(var e={},t=0;t<arguments.length;t++){var i=arguments[t];for(var r in i)n.call(i,r)&&(e[r]=i[r])}return e}},"53ca":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0");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},i(e)}},5402:function(e,t,n){"use strict";var i=n("00ce"),r=n("545e"),o=n("2714"),s=n("0d25"),a=i("%WeakMap%",!0),l=i("%Map%",!0),c=r("WeakMap.prototype.get",!0),u=r("WeakMap.prototype.set",!0),h=r("WeakMap.prototype.has",!0),d=r("Map.prototype.get",!0),f=r("Map.prototype.set",!0),p=r("Map.prototype.has",!0),g=function(e,t){for(var n,i=e;null!==(n=i.next);i=n)if(n.key===t)return i.next=n.next,n.next=e.next,e.next=n,n},m=function(e,t){var n=g(e,t);return n&&n.value},v=function(e,t,n){var i=g(e,t);i?i.value=n:e.next={key:t,next:e.next,value:n}},b=function(e,t){return!!g(e,t)};e.exports=function(){var e,t,n,i={assert:function(e){if(!i.has(e))throw new s("Side channel does not contain "+o(e))},get:function(i){if(a&&i&&("object"===typeof i||"function"===typeof i)){if(e)return c(e,i)}else if(l){if(t)return d(t,i)}else if(n)return m(n,i)},has:function(i){if(a&&i&&("object"===typeof i||"function"===typeof i)){if(e)return h(e,i)}else if(l){if(t)return p(t,i)}else if(n)return b(n,i);return!1},set:function(i,r){a&&i&&("object"===typeof i||"function"===typeof i)?(e||(e=new a),u(e,i,r)):l?(t||(t=new l),f(t,i,r)):(n||(n={key:{},next:null}),v(n,i,r))}};return i}},"545e":function(e,t,n){"use strict";var i=n("00ce"),r=n("3eb1"),o=r(i("String.prototype.indexOf"));e.exports=function(e,t){var n=i(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?r(n):n}},"54f2":function(e,t,n){},"551f":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s}));var i=n("282b"),r=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],o=Object(i["a"])(r),s=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return o(this,e,t)},e}()},5524:function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},5530:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("a4d3"),n("4de4"),n("14d9"),n("e439"),n("dbb4"),n("b64b"),n("d3b7"),n("159b");var i=n("ade3");function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},5557:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.deepClone=p,t.eliminateBlur=g,t.checkPointIsInCircle=m,t.getTwoPointDistance=v,t.checkPointIsInPolygon=b,t.checkPointIsInSector=y,t.checkPointIsNearPolyline=w,t.checkPointIsInRect=C,t.getRotatePointPos=S,t.getScalePointPos=x,t.getTranslatePointPos=O,t.getDistanceBetweenPointAndLine=k,t.getCircleRadianPoint=L,t.getRegularPolygonPoints=E,t["default"]=void 0;var r=i(n("448a")),o=i(n("278c")),s=i(n("7037")),a=Math.abs,l=Math.sqrt,c=Math.sin,u=Math.cos,h=Math.max,d=Math.min,f=Math.PI;function p(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return e;var n=JSON.parse,i=JSON.stringify;if(!t)return n(i(e));var r=e instanceof Array?[]:{};if(e&&"object"===(0,s["default"])(e))for(var o in e)e.hasOwnProperty(o)&&(e[o]&&"object"===(0,s["default"])(e[o])?r[o]=p(e[o],!0):r[o]=e[o]);return r}function g(e){return e.map((function(e){var t=(0,o["default"])(e,2),n=t[0],i=t[1];return[parseInt(n)+.5,parseInt(i)+.5]}))}function m(e,t,n,i){return v(e,[t,n])<=i}function v(e,t){var n=(0,o["default"])(e,2),i=n[0],r=n[1],s=(0,o["default"])(t,2),c=s[0],u=s[1],h=a(i-c),d=a(r-u);return l(h*h+d*d)}function b(e,t){for(var n=0,i=(0,o["default"])(e,2),r=i[0],s=i[1],a=t.length,l=1,c=t[0];l<=a;l++){var u=t[l%a];if(r>d(c[0],u[0])&&r<=h(c[0],u[0])&&s<=h(c[1],u[1])&&c[0]!==u[0]){var f=(r-c[0])*(u[1]-c[1])/(u[0]-c[0])+c[1];(c[1]===u[1]||s<=f)&&n++}c=u}return n%2===1}function y(e,t,n,i,r,s,a){if(!e)return!1;if(v(e,[t,n])>i)return!1;if(!a){var l=p([s,r]),c=(0,o["default"])(l,2);r=c[0],s=c[1]}var u=r>s;if(u){var h=[s,r];r=h[0],s=h[1]}var d=s-r;if(d>=2*f)return!0;var g=(0,o["default"])(e,2),m=g[0],b=g[1],y=L(t,n,i,r),w=(0,o["default"])(y,2),C=w[0],S=w[1],x=L(t,n,i,s),O=(0,o["default"])(x,2),k=O[0],E=O[1],D=[m-t,b-n],I=[C-t,S-n],M=[k-t,E-n],T=d>f;if(T){var A=p([M,I]),N=(0,o["default"])(A,2);I=N[0],M=N[1]}var P=_(I,D)&&!_(M,D);return T&&(P=!P),u&&(P=!P),P}function _(e,t){var n=(0,o["default"])(e,2),i=n[0],r=n[1],s=(0,o["default"])(t,2),a=s[0],l=s[1];return-r*a+i*l>0}function w(e,t,n){var i=n/2,s=t.map((function(e){var t=(0,o["default"])(e,2),n=t[0],r=t[1];return[n,r-i]})),a=t.map((function(e){var t=(0,o["default"])(e,2),n=t[0],r=t[1];return[n,r+i]})),l=[].concat((0,r["default"])(s),(0,r["default"])(a.reverse()));return b(e,l)}function C(e,t,n,i,r){var s=(0,o["default"])(e,2),a=s[0],l=s[1];return!(a<t)&&(!(l<n)&&(!(a>t+i)&&!(l>n+r)))}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!t)return!1;if(e%360===0)return t;var i=(0,o["default"])(t,2),r=i[0],s=i[1],a=(0,o["default"])(n,2),l=a[0],h=a[1];return e*=f/180,[(r-l)*u(e)-(s-h)*c(e)+l,(r-l)*c(e)+(s-h)*u(e)+h]}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[1,1],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!t)return!1;if(1===e)return t;var i=(0,o["default"])(t,2),r=i[0],s=i[1],a=(0,o["default"])(n,2),l=a[0],c=a[1],u=(0,o["default"])(e,2),h=u[0],d=u[1],f=r-l,p=s-c;return[f*h+l,p*d+c]}function O(e,t){if(!e||!t)return!1;var n=(0,o["default"])(t,2),i=n[0],r=n[1],s=(0,o["default"])(e,2),a=s[0],l=s[1];return[i+a,r+l]}function k(e,t,n){if(!e||!t||!n)return!1;var i=(0,o["default"])(e,2),r=i[0],s=i[1],c=(0,o["default"])(t,2),u=c[0],h=c[1],d=(0,o["default"])(n,2),f=d[0],p=d[1],g=p-h,m=u-f,v=h*(f-u)-u*(p-h),b=a(g*r+m*s+v),y=l(g*g+m*m);return b/y}function L(e,t,n,i){return[e+u(i)*n,t+c(i)*n]}function E(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-.5*f,o=2*f/i,s=new Array(i).fill("").map((function(e,t){return t*o+r}));return s.map((function(i){return L(e,t,n,i)}))}var D={deepClone:p,eliminateBlur:g,checkPointIsInCircle:m,checkPointIsInPolygon:b,checkPointIsInSector:y,checkPointIsNearPolyline:w,getTwoPointDistance:v,getRotatePointPos:S,getScalePointPos:x,getTranslatePointPos:O,getCircleRadianPoint:L,getRegularPolygonPoints:E,getDistanceBetweenPointAndLine:k};t["default"]=D},"561a":function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u}));var i=n("308f");class r{constructor(){this._icons=new Map,this._onDidRegister=new i["b"]}add(e){const t=this._icons.get(e.id);t?e.description?t.description=e.description:console.error("Duplicate registration of codicon "+e.id):(this._icons.set(e.id,e),this._onDidRegister.fire(e))}get(e){return this._icons.get(e)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const o=new r,s=o;function a(e,t){return new c(e,t)}function l(e){return e?e.replace(/\$\((.*?)\)/g,(e,t)=>` ${t} `).trim():""}class c{constructor(e,t,n){this.id=e,this.definition=t,this.description=n,o.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var u;(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9\\-]+",e.iconModifierExpression="~[A-Za-z]+";const t=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function n(e){if(e instanceof c)return["codicon","codicon-"+e.id];const i=t.exec(e.id);if(!i)return n(c.error);let[,r,o]=i;const s=["codicon","codicon-"+r];return o&&s.push("codicon-modifier-"+o.substr(1)),s}function i(e){return n(e).join(" ")}function r(e){return"."+n(e).join(".")}e.asClassNameArray=n,e.asClassName=i,e.asCSSSelector=r})(u||(u={})),function(e){e.add=new e("add",{fontCharacter:"\\ea60"}),e.plus=new e("plus",{fontCharacter:"\\ea60"}),e.gistNew=new e("gist-new",{fontCharacter:"\\ea60"}),e.repoCreate=new e("repo-create",{fontCharacter:"\\ea60"}),e.lightbulb=new e("lightbulb",{fontCharacter:"\\ea61"}),e.lightBulb=new e("light-bulb",{fontCharacter:"\\ea61"}),e.repo=new e("repo",{fontCharacter:"\\ea62"}),e.repoDelete=new e("repo-delete",{fontCharacter:"\\ea62"}),e.gistFork=new e("gist-fork",{fontCharacter:"\\ea63"}),e.repoForked=new e("repo-forked",{fontCharacter:"\\ea63"}),e.gitPullRequest=new e("git-pull-request",{fontCharacter:"\\ea64"}),e.gitPullRequestAbandoned=new e("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),e.recordKeys=new e("record-keys",{fontCharacter:"\\ea65"}),e.keyboard=new e("keyboard",{fontCharacter:"\\ea65"}),e.tag=new e("tag",{fontCharacter:"\\ea66"}),e.tagAdd=new e("tag-add",{fontCharacter:"\\ea66"}),e.tagRemove=new e("tag-remove",{fontCharacter:"\\ea66"}),e.person=new e("person",{fontCharacter:"\\ea67"}),e.personFollow=new e("person-follow",{fontCharacter:"\\ea67"}),e.personOutline=new e("person-outline",{fontCharacter:"\\ea67"}),e.personFilled=new e("person-filled",{fontCharacter:"\\ea67"}),e.gitBranch=new e("git-branch",{fontCharacter:"\\ea68"}),e.gitBranchCreate=new e("git-branch-create",{fontCharacter:"\\ea68"}),e.gitBranchDelete=new e("git-branch-delete",{fontCharacter:"\\ea68"}),e.sourceControl=new e("source-control",{fontCharacter:"\\ea68"}),e.mirror=new e("mirror",{fontCharacter:"\\ea69"}),e.mirrorPublic=new e("mirror-public",{fontCharacter:"\\ea69"}),e.star=new e("star",{fontCharacter:"\\ea6a"}),e.starAdd=new e("star-add",{fontCharacter:"\\ea6a"}),e.starDelete=new e("star-delete",{fontCharacter:"\\ea6a"}),e.starEmpty=new e("star-empty",{fontCharacter:"\\ea6a"}),e.comment=new e("comment",{fontCharacter:"\\ea6b"}),e.commentAdd=new e("comment-add",{fontCharacter:"\\ea6b"}),e.alert=new e("alert",{fontCharacter:"\\ea6c"}),e.warning=new e("warning",{fontCharacter:"\\ea6c"}),e.search=new e("search",{fontCharacter:"\\ea6d"}),e.searchSave=new e("search-save",{fontCharacter:"\\ea6d"}),e.logOut=new e("log-out",{fontCharacter:"\\ea6e"}),e.signOut=new e("sign-out",{fontCharacter:"\\ea6e"}),e.logIn=new e("log-in",{fontCharacter:"\\ea6f"}),e.signIn=new e("sign-in",{fontCharacter:"\\ea6f"}),e.eye=new e("eye",{fontCharacter:"\\ea70"}),e.eyeUnwatch=new e("eye-unwatch",{fontCharacter:"\\ea70"}),e.eyeWatch=new e("eye-watch",{fontCharacter:"\\ea70"}),e.circleFilled=new e("circle-filled",{fontCharacter:"\\ea71"}),e.primitiveDot=new e("primitive-dot",{fontCharacter:"\\ea71"}),e.closeDirty=new e("close-dirty",{fontCharacter:"\\ea71"}),e.debugBreakpoint=new e("debug-breakpoint",{fontCharacter:"\\ea71"}),e.debugBreakpointDisabled=new e("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),e.debugHint=new e("debug-hint",{fontCharacter:"\\ea71"}),e.primitiveSquare=new e("primitive-square",{fontCharacter:"\\ea72"}),e.edit=new e("edit",{fontCharacter:"\\ea73"}),e.pencil=new e("pencil",{fontCharacter:"\\ea73"}),e.info=new e("info",{fontCharacter:"\\ea74"}),e.issueOpened=new e("issue-opened",{fontCharacter:"\\ea74"}),e.gistPrivate=new e("gist-private",{fontCharacter:"\\ea75"}),e.gitForkPrivate=new e("git-fork-private",{fontCharacter:"\\ea75"}),e.lock=new e("lock",{fontCharacter:"\\ea75"}),e.mirrorPrivate=new e("mirror-private",{fontCharacter:"\\ea75"}),e.close=new e("close",{fontCharacter:"\\ea76"}),e.removeClose=new e("remove-close",{fontCharacter:"\\ea76"}),e.x=new e("x",{fontCharacter:"\\ea76"}),e.repoSync=new e("repo-sync",{fontCharacter:"\\ea77"}),e.sync=new e("sync",{fontCharacter:"\\ea77"}),e.clone=new e("clone",{fontCharacter:"\\ea78"}),e.desktopDownload=new e("desktop-download",{fontCharacter:"\\ea78"}),e.beaker=new e("beaker",{fontCharacter:"\\ea79"}),e.microscope=new e("microscope",{fontCharacter:"\\ea79"}),e.vm=new e("vm",{fontCharacter:"\\ea7a"}),e.deviceDesktop=new e("device-desktop",{fontCharacter:"\\ea7a"}),e.file=new e("file",{fontCharacter:"\\ea7b"}),e.fileText=new e("file-text",{fontCharacter:"\\ea7b"}),e.more=new e("more",{fontCharacter:"\\ea7c"}),e.ellipsis=new e("ellipsis",{fontCharacter:"\\ea7c"}),e.kebabHorizontal=new e("kebab-horizontal",{fontCharacter:"\\ea7c"}),e.mailReply=new e("mail-reply",{fontCharacter:"\\ea7d"}),e.reply=new e("reply",{fontCharacter:"\\ea7d"}),e.organization=new e("organization",{fontCharacter:"\\ea7e"}),e.organizationFilled=new e("organization-filled",{fontCharacter:"\\ea7e"}),e.organizationOutline=new e("organization-outline",{fontCharacter:"\\ea7e"}),e.newFile=new e("new-file",{fontCharacter:"\\ea7f"}),e.fileAdd=new e("file-add",{fontCharacter:"\\ea7f"}),e.newFolder=new e("new-folder",{fontCharacter:"\\ea80"}),e.fileDirectoryCreate=new e("file-directory-create",{fontCharacter:"\\ea80"}),e.trash=new e("trash",{fontCharacter:"\\ea81"}),e.trashcan=new e("trashcan",{fontCharacter:"\\ea81"}),e.history=new e("history",{fontCharacter:"\\ea82"}),e.clock=new e("clock",{fontCharacter:"\\ea82"}),e.folder=new e("folder",{fontCharacter:"\\ea83"}),e.fileDirectory=new e("file-directory",{fontCharacter:"\\ea83"}),e.symbolFolder=new e("symbol-folder",{fontCharacter:"\\ea83"}),e.logoGithub=new e("logo-github",{fontCharacter:"\\ea84"}),e.markGithub=new e("mark-github",{fontCharacter:"\\ea84"}),e.github=new e("github",{fontCharacter:"\\ea84"}),e.terminal=new e("terminal",{fontCharacter:"\\ea85"}),e.console=new e("console",{fontCharacter:"\\ea85"}),e.repl=new e("repl",{fontCharacter:"\\ea85"}),e.zap=new e("zap",{fontCharacter:"\\ea86"}),e.symbolEvent=new e("symbol-event",{fontCharacter:"\\ea86"}),e.error=new e("error",{fontCharacter:"\\ea87"}),e.stop=new e("stop",{fontCharacter:"\\ea87"}),e.variable=new e("variable",{fontCharacter:"\\ea88"}),e.symbolVariable=new e("symbol-variable",{fontCharacter:"\\ea88"}),e.array=new e("array",{fontCharacter:"\\ea8a"}),e.symbolArray=new e("symbol-array",{fontCharacter:"\\ea8a"}),e.symbolModule=new e("symbol-module",{fontCharacter:"\\ea8b"}),e.symbolPackage=new e("symbol-package",{fontCharacter:"\\ea8b"}),e.symbolNamespace=new e("symbol-namespace",{fontCharacter:"\\ea8b"}),e.symbolObject=new e("symbol-object",{fontCharacter:"\\ea8b"}),e.symbolMethod=new e("symbol-method",{fontCharacter:"\\ea8c"}),e.symbolFunction=new e("symbol-function",{fontCharacter:"\\ea8c"}),e.symbolConstructor=new e("symbol-constructor",{fontCharacter:"\\ea8c"}),e.symbolBoolean=new e("symbol-boolean",{fontCharacter:"\\ea8f"}),e.symbolNull=new e("symbol-null",{fontCharacter:"\\ea8f"}),e.symbolNumeric=new e("symbol-numeric",{fontCharacter:"\\ea90"}),e.symbolNumber=new e("symbol-number",{fontCharacter:"\\ea90"}),e.symbolStructure=new e("symbol-structure",{fontCharacter:"\\ea91"}),e.symbolStruct=new e("symbol-struct",{fontCharacter:"\\ea91"}),e.symbolParameter=new e("symbol-parameter",{fontCharacter:"\\ea92"}),e.symbolTypeParameter=new e("symbol-type-parameter",{fontCharacter:"\\ea92"}),e.symbolKey=new e("symbol-key",{fontCharacter:"\\ea93"}),e.symbolText=new e("symbol-text",{fontCharacter:"\\ea93"}),e.symbolReference=new e("symbol-reference",{fontCharacter:"\\ea94"}),e.goToFile=new e("go-to-file",{fontCharacter:"\\ea94"}),e.symbolEnum=new e("symbol-enum",{fontCharacter:"\\ea95"}),e.symbolValue=new e("symbol-value",{fontCharacter:"\\ea95"}),e.symbolRuler=new e("symbol-ruler",{fontCharacter:"\\ea96"}),e.symbolUnit=new e("symbol-unit",{fontCharacter:"\\ea96"}),e.activateBreakpoints=new e("activate-breakpoints",{fontCharacter:"\\ea97"}),e.archive=new e("archive",{fontCharacter:"\\ea98"}),e.arrowBoth=new e("arrow-both",{fontCharacter:"\\ea99"}),e.arrowDown=new e("arrow-down",{fontCharacter:"\\ea9a"}),e.arrowLeft=new e("arrow-left",{fontCharacter:"\\ea9b"}),e.arrowRight=new e("arrow-right",{fontCharacter:"\\ea9c"}),e.arrowSmallDown=new e("arrow-small-down",{fontCharacter:"\\ea9d"}),e.arrowSmallLeft=new e("arrow-small-left",{fontCharacter:"\\ea9e"}),e.arrowSmallRight=new e("arrow-small-right",{fontCharacter:"\\ea9f"}),e.arrowSmallUp=new e("arrow-small-up",{fontCharacter:"\\eaa0"}),e.arrowUp=new e("arrow-up",{fontCharacter:"\\eaa1"}),e.bell=new e("bell",{fontCharacter:"\\eaa2"}),e.bold=new e("bold",{fontCharacter:"\\eaa3"}),e.book=new e("book",{fontCharacter:"\\eaa4"}),e.bookmark=new e("bookmark",{fontCharacter:"\\eaa5"}),e.debugBreakpointConditionalUnverified=new e("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),e.debugBreakpointConditional=new e("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),e.debugBreakpointConditionalDisabled=new e("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),e.debugBreakpointDataUnverified=new e("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),e.debugBreakpointData=new e("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),e.debugBreakpointDataDisabled=new e("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),e.debugBreakpointLogUnverified=new e("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),e.debugBreakpointLog=new e("debug-breakpoint-log",{fontCharacter:"\\eaab"}),e.debugBreakpointLogDisabled=new e("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),e.briefcase=new e("briefcase",{fontCharacter:"\\eaac"}),e.broadcast=new e("broadcast",{fontCharacter:"\\eaad"}),e.browser=new e("browser",{fontCharacter:"\\eaae"}),e.bug=new e("bug",{fontCharacter:"\\eaaf"}),e.calendar=new e("calendar",{fontCharacter:"\\eab0"}),e.caseSensitive=new e("case-sensitive",{fontCharacter:"\\eab1"}),e.check=new e("check",{fontCharacter:"\\eab2"}),e.checklist=new e("checklist",{fontCharacter:"\\eab3"}),e.chevronDown=new e("chevron-down",{fontCharacter:"\\eab4"}),e.chevronLeft=new e("chevron-left",{fontCharacter:"\\eab5"}),e.chevronRight=new e("chevron-right",{fontCharacter:"\\eab6"}),e.chevronUp=new e("chevron-up",{fontCharacter:"\\eab7"}),e.chromeClose=new e("chrome-close",{fontCharacter:"\\eab8"}),e.chromeMaximize=new e("chrome-maximize",{fontCharacter:"\\eab9"}),e.chromeMinimize=new e("chrome-minimize",{fontCharacter:"\\eaba"}),e.chromeRestore=new e("chrome-restore",{fontCharacter:"\\eabb"}),e.circleOutline=new e("circle-outline",{fontCharacter:"\\eabc"}),e.debugBreakpointUnverified=new e("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),e.circleSlash=new e("circle-slash",{fontCharacter:"\\eabd"}),e.circuitBoard=new e("circuit-board",{fontCharacter:"\\eabe"}),e.clearAll=new e("clear-all",{fontCharacter:"\\eabf"}),e.clippy=new e("clippy",{fontCharacter:"\\eac0"}),e.closeAll=new e("close-all",{fontCharacter:"\\eac1"}),e.cloudDownload=new e("cloud-download",{fontCharacter:"\\eac2"}),e.cloudUpload=new e("cloud-upload",{fontCharacter:"\\eac3"}),e.code=new e("code",{fontCharacter:"\\eac4"}),e.collapseAll=new e("collapse-all",{fontCharacter:"\\eac5"}),e.colorMode=new e("color-mode",{fontCharacter:"\\eac6"}),e.commentDiscussion=new e("comment-discussion",{fontCharacter:"\\eac7"}),e.compareChanges=new e("compare-changes",{fontCharacter:"\\eafd"}),e.creditCard=new e("credit-card",{fontCharacter:"\\eac9"}),e.dash=new e("dash",{fontCharacter:"\\eacc"}),e.dashboard=new e("dashboard",{fontCharacter:"\\eacd"}),e.database=new e("database",{fontCharacter:"\\eace"}),e.debugContinue=new e("debug-continue",{fontCharacter:"\\eacf"}),e.debugDisconnect=new e("debug-disconnect",{fontCharacter:"\\ead0"}),e.debugPause=new e("debug-pause",{fontCharacter:"\\ead1"}),e.debugRestart=new e("debug-restart",{fontCharacter:"\\ead2"}),e.debugStart=new e("debug-start",{fontCharacter:"\\ead3"}),e.debugStepInto=new e("debug-step-into",{fontCharacter:"\\ead4"}),e.debugStepOut=new e("debug-step-out",{fontCharacter:"\\ead5"}),e.debugStepOver=new e("debug-step-over",{fontCharacter:"\\ead6"}),e.debugStop=new e("debug-stop",{fontCharacter:"\\ead7"}),e.debug=new e("debug",{fontCharacter:"\\ead8"}),e.deviceCameraVideo=new e("device-camera-video",{fontCharacter:"\\ead9"}),e.deviceCamera=new e("device-camera",{fontCharacter:"\\eada"}),e.deviceMobile=new e("device-mobile",{fontCharacter:"\\eadb"}),e.diffAdded=new e("diff-added",{fontCharacter:"\\eadc"}),e.diffIgnored=new e("diff-ignored",{fontCharacter:"\\eadd"}),e.diffModified=new e("diff-modified",{fontCharacter:"\\eade"}),e.diffRemoved=new e("diff-removed",{fontCharacter:"\\eadf"}),e.diffRenamed=new e("diff-renamed",{fontCharacter:"\\eae0"}),e.diff=new e("diff",{fontCharacter:"\\eae1"}),e.discard=new e("discard",{fontCharacter:"\\eae2"}),e.editorLayout=new e("editor-layout",{fontCharacter:"\\eae3"}),e.emptyWindow=new e("empty-window",{fontCharacter:"\\eae4"}),e.exclude=new e("exclude",{fontCharacter:"\\eae5"}),e.extensions=new e("extensions",{fontCharacter:"\\eae6"}),e.eyeClosed=new e("eye-closed",{fontCharacter:"\\eae7"}),e.fileBinary=new e("file-binary",{fontCharacter:"\\eae8"}),e.fileCode=new e("file-code",{fontCharacter:"\\eae9"}),e.fileMedia=new e("file-media",{fontCharacter:"\\eaea"}),e.filePdf=new e("file-pdf",{fontCharacter:"\\eaeb"}),e.fileSubmodule=new e("file-submodule",{fontCharacter:"\\eaec"}),e.fileSymlinkDirectory=new e("file-symlink-directory",{fontCharacter:"\\eaed"}),e.fileSymlinkFile=new e("file-symlink-file",{fontCharacter:"\\eaee"}),e.fileZip=new e("file-zip",{fontCharacter:"\\eaef"}),e.files=new e("files",{fontCharacter:"\\eaf0"}),e.filter=new e("filter",{fontCharacter:"\\eaf1"}),e.flame=new e("flame",{fontCharacter:"\\eaf2"}),e.foldDown=new e("fold-down",{fontCharacter:"\\eaf3"}),e.foldUp=new e("fold-up",{fontCharacter:"\\eaf4"}),e.fold=new e("fold",{fontCharacter:"\\eaf5"}),e.folderActive=new e("folder-active",{fontCharacter:"\\eaf6"}),e.folderOpened=new e("folder-opened",{fontCharacter:"\\eaf7"}),e.gear=new e("gear",{fontCharacter:"\\eaf8"}),e.gift=new e("gift",{fontCharacter:"\\eaf9"}),e.gistSecret=new e("gist-secret",{fontCharacter:"\\eafa"}),e.gist=new e("gist",{fontCharacter:"\\eafb"}),e.gitCommit=new e("git-commit",{fontCharacter:"\\eafc"}),e.gitCompare=new e("git-compare",{fontCharacter:"\\eafd"}),e.gitMerge=new e("git-merge",{fontCharacter:"\\eafe"}),e.githubAction=new e("github-action",{fontCharacter:"\\eaff"}),e.githubAlt=new e("github-alt",{fontCharacter:"\\eb00"}),e.globe=new e("globe",{fontCharacter:"\\eb01"}),e.grabber=new e("grabber",{fontCharacter:"\\eb02"}),e.graph=new e("graph",{fontCharacter:"\\eb03"}),e.gripper=new e("gripper",{fontCharacter:"\\eb04"}),e.heart=new e("heart",{fontCharacter:"\\eb05"}),e.home=new e("home",{fontCharacter:"\\eb06"}),e.horizontalRule=new e("horizontal-rule",{fontCharacter:"\\eb07"}),e.hubot=new e("hubot",{fontCharacter:"\\eb08"}),e.inbox=new e("inbox",{fontCharacter:"\\eb09"}),e.issueClosed=new e("issue-closed",{fontCharacter:"\\eba4"}),e.issueReopened=new e("issue-reopened",{fontCharacter:"\\eb0b"}),e.issues=new e("issues",{fontCharacter:"\\eb0c"}),e.italic=new e("italic",{fontCharacter:"\\eb0d"}),e.jersey=new e("jersey",{fontCharacter:"\\eb0e"}),e.json=new e("json",{fontCharacter:"\\eb0f"}),e.kebabVertical=new e("kebab-vertical",{fontCharacter:"\\eb10"}),e.key=new e("key",{fontCharacter:"\\eb11"}),e.law=new e("law",{fontCharacter:"\\eb12"}),e.lightbulbAutofix=new e("lightbulb-autofix",{fontCharacter:"\\eb13"}),e.linkExternal=new e("link-external",{fontCharacter:"\\eb14"}),e.link=new e("link",{fontCharacter:"\\eb15"}),e.listOrdered=new e("list-ordered",{fontCharacter:"\\eb16"}),e.listUnordered=new e("list-unordered",{fontCharacter:"\\eb17"}),e.liveShare=new e("live-share",{fontCharacter:"\\eb18"}),e.loading=new e("loading",{fontCharacter:"\\eb19"}),e.location=new e("location",{fontCharacter:"\\eb1a"}),e.mailRead=new e("mail-read",{fontCharacter:"\\eb1b"}),e.mail=new e("mail",{fontCharacter:"\\eb1c"}),e.markdown=new e("markdown",{fontCharacter:"\\eb1d"}),e.megaphone=new e("megaphone",{fontCharacter:"\\eb1e"}),e.mention=new e("mention",{fontCharacter:"\\eb1f"}),e.milestone=new e("milestone",{fontCharacter:"\\eb20"}),e.mortarBoard=new e("mortar-board",{fontCharacter:"\\eb21"}),e.move=new e("move",{fontCharacter:"\\eb22"}),e.multipleWindows=new e("multiple-windows",{fontCharacter:"\\eb23"}),e.mute=new e("mute",{fontCharacter:"\\eb24"}),e.noNewline=new e("no-newline",{fontCharacter:"\\eb25"}),e.note=new e("note",{fontCharacter:"\\eb26"}),e.octoface=new e("octoface",{fontCharacter:"\\eb27"}),e.openPreview=new e("open-preview",{fontCharacter:"\\eb28"}),e.package_=new e("package",{fontCharacter:"\\eb29"}),e.paintcan=new e("paintcan",{fontCharacter:"\\eb2a"}),e.pin=new e("pin",{fontCharacter:"\\eb2b"}),e.play=new e("play",{fontCharacter:"\\eb2c"}),e.run=new e("run",{fontCharacter:"\\eb2c"}),e.plug=new e("plug",{fontCharacter:"\\eb2d"}),e.preserveCase=new e("preserve-case",{fontCharacter:"\\eb2e"}),e.preview=new e("preview",{fontCharacter:"\\eb2f"}),e.project=new e("project",{fontCharacter:"\\eb30"}),e.pulse=new e("pulse",{fontCharacter:"\\eb31"}),e.question=new e("question",{fontCharacter:"\\eb32"}),e.quote=new e("quote",{fontCharacter:"\\eb33"}),e.radioTower=new e("radio-tower",{fontCharacter:"\\eb34"}),e.reactions=new e("reactions",{fontCharacter:"\\eb35"}),e.references=new e("references",{fontCharacter:"\\eb36"}),e.refresh=new e("refresh",{fontCharacter:"\\eb37"}),e.regex=new e("regex",{fontCharacter:"\\eb38"}),e.remoteExplorer=new e("remote-explorer",{fontCharacter:"\\eb39"}),e.remote=new e("remote",{fontCharacter:"\\eb3a"}),e.remove=new e("remove",{fontCharacter:"\\eb3b"}),e.replaceAll=new e("replace-all",{fontCharacter:"\\eb3c"}),e.replace=new e("replace",{fontCharacter:"\\eb3d"}),e.repoClone=new e("repo-clone",{fontCharacter:"\\eb3e"}),e.repoForcePush=new e("repo-force-push",{fontCharacter:"\\eb3f"}),e.repoPull=new e("repo-pull",{fontCharacter:"\\eb40"}),e.repoPush=new e("repo-push",{fontCharacter:"\\eb41"}),e.report=new e("report",{fontCharacter:"\\eb42"}),e.requestChanges=new e("request-changes",{fontCharacter:"\\eb43"}),e.rocket=new e("rocket",{fontCharacter:"\\eb44"}),e.rootFolderOpened=new e("root-folder-opened",{fontCharacter:"\\eb45"}),e.rootFolder=new e("root-folder",{fontCharacter:"\\eb46"}),e.rss=new e("rss",{fontCharacter:"\\eb47"}),e.ruby=new e("ruby",{fontCharacter:"\\eb48"}),e.saveAll=new e("save-all",{fontCharacter:"\\eb49"}),e.saveAs=new e("save-as",{fontCharacter:"\\eb4a"}),e.save=new e("save",{fontCharacter:"\\eb4b"}),e.screenFull=new e("screen-full",{fontCharacter:"\\eb4c"}),e.screenNormal=new e("screen-normal",{fontCharacter:"\\eb4d"}),e.searchStop=new e("search-stop",{fontCharacter:"\\eb4e"}),e.server=new e("server",{fontCharacter:"\\eb50"}),e.settingsGear=new e("settings-gear",{fontCharacter:"\\eb51"}),e.settings=new e("settings",{fontCharacter:"\\eb52"}),e.shield=new e("shield",{fontCharacter:"\\eb53"}),e.smiley=new e("smiley",{fontCharacter:"\\eb54"}),e.sortPrecedence=new e("sort-precedence",{fontCharacter:"\\eb55"}),e.splitHorizontal=new e("split-horizontal",{fontCharacter:"\\eb56"}),e.splitVertical=new e("split-vertical",{fontCharacter:"\\eb57"}),e.squirrel=new e("squirrel",{fontCharacter:"\\eb58"}),e.starFull=new e("star-full",{fontCharacter:"\\eb59"}),e.starHalf=new e("star-half",{fontCharacter:"\\eb5a"}),e.symbolClass=new e("symbol-class",{fontCharacter:"\\eb5b"}),e.symbolColor=new e("symbol-color",{fontCharacter:"\\eb5c"}),e.symbolConstant=new e("symbol-constant",{fontCharacter:"\\eb5d"}),e.symbolEnumMember=new e("symbol-enum-member",{fontCharacter:"\\eb5e"}),e.symbolField=new e("symbol-field",{fontCharacter:"\\eb5f"}),e.symbolFile=new e("symbol-file",{fontCharacter:"\\eb60"}),e.symbolInterface=new e("symbol-interface",{fontCharacter:"\\eb61"}),e.symbolKeyword=new e("symbol-keyword",{fontCharacter:"\\eb62"}),e.symbolMisc=new e("symbol-misc",{fontCharacter:"\\eb63"}),e.symbolOperator=new e("symbol-operator",{fontCharacter:"\\eb64"}),e.symbolProperty=new e("symbol-property",{fontCharacter:"\\eb65"}),e.wrench=new e("wrench",{fontCharacter:"\\eb65"}),e.wrenchSubaction=new e("wrench-subaction",{fontCharacter:"\\eb65"}),e.symbolSnippet=new e("symbol-snippet",{fontCharacter:"\\eb66"}),e.tasklist=new e("tasklist",{fontCharacter:"\\eb67"}),e.telescope=new e("telescope",{fontCharacter:"\\eb68"}),e.textSize=new e("text-size",{fontCharacter:"\\eb69"}),e.threeBars=new e("three-bars",{fontCharacter:"\\eb6a"}),e.thumbsdown=new e("thumbsdown",{fontCharacter:"\\eb6b"}),e.thumbsup=new e("thumbsup",{fontCharacter:"\\eb6c"}),e.tools=new e("tools",{fontCharacter:"\\eb6d"}),e.triangleDown=new e("triangle-down",{fontCharacter:"\\eb6e"}),e.triangleLeft=new e("triangle-left",{fontCharacter:"\\eb6f"}),e.triangleRight=new e("triangle-right",{fontCharacter:"\\eb70"}),e.triangleUp=new e("triangle-up",{fontCharacter:"\\eb71"}),e.twitter=new e("twitter",{fontCharacter:"\\eb72"}),e.unfold=new e("unfold",{fontCharacter:"\\eb73"}),e.unlock=new e("unlock",{fontCharacter:"\\eb74"}),e.unmute=new e("unmute",{fontCharacter:"\\eb75"}),e.unverified=new e("unverified",{fontCharacter:"\\eb76"}),e.verified=new e("verified",{fontCharacter:"\\eb77"}),e.versions=new e("versions",{fontCharacter:"\\eb78"}),e.vmActive=new e("vm-active",{fontCharacter:"\\eb79"}),e.vmOutline=new e("vm-outline",{fontCharacter:"\\eb7a"}),e.vmRunning=new e("vm-running",{fontCharacter:"\\eb7b"}),e.watch=new e("watch",{fontCharacter:"\\eb7c"}),e.whitespace=new e("whitespace",{fontCharacter:"\\eb7d"}),e.wholeWord=new e("whole-word",{fontCharacter:"\\eb7e"}),e.window=new e("window",{fontCharacter:"\\eb7f"}),e.wordWrap=new e("word-wrap",{fontCharacter:"\\eb80"}),e.zoomIn=new e("zoom-in",{fontCharacter:"\\eb81"}),e.zoomOut=new e("zoom-out",{fontCharacter:"\\eb82"}),e.listFilter=new e("list-filter",{fontCharacter:"\\eb83"}),e.listFlat=new e("list-flat",{fontCharacter:"\\eb84"}),e.listSelection=new e("list-selection",{fontCharacter:"\\eb85"}),e.selection=new e("selection",{fontCharacter:"\\eb85"}),e.listTree=new e("list-tree",{fontCharacter:"\\eb86"}),e.debugBreakpointFunctionUnverified=new e("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),e.debugBreakpointFunction=new e("debug-breakpoint-function",{fontCharacter:"\\eb88"}),e.debugBreakpointFunctionDisabled=new e("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),e.debugStackframeActive=new e("debug-stackframe-active",{fontCharacter:"\\eb89"}),e.debugStackframeDot=new e("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),e.debugStackframe=new e("debug-stackframe",{fontCharacter:"\\eb8b"}),e.debugStackframeFocused=new e("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),e.debugBreakpointUnsupported=new e("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),e.symbolString=new e("symbol-string",{fontCharacter:"\\eb8d"}),e.debugReverseContinue=new e("debug-reverse-continue",{fontCharacter:"\\eb8e"}),e.debugStepBack=new e("debug-step-back",{fontCharacter:"\\eb8f"}),e.debugRestartFrame=new e("debug-restart-frame",{fontCharacter:"\\eb90"}),e.callIncoming=new e("call-incoming",{fontCharacter:"\\eb92"}),e.callOutgoing=new e("call-outgoing",{fontCharacter:"\\eb93"}),e.menu=new e("menu",{fontCharacter:"\\eb94"}),e.expandAll=new e("expand-all",{fontCharacter:"\\eb95"}),e.feedback=new e("feedback",{fontCharacter:"\\eb96"}),e.groupByRefType=new e("group-by-ref-type",{fontCharacter:"\\eb97"}),e.ungroupByRefType=new e("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),e.account=new e("account",{fontCharacter:"\\eb99"}),e.bellDot=new e("bell-dot",{fontCharacter:"\\eb9a"}),e.debugConsole=new e("debug-console",{fontCharacter:"\\eb9b"}),e.library=new e("library",{fontCharacter:"\\eb9c"}),e.output=new e("output",{fontCharacter:"\\eb9d"}),e.runAll=new e("run-all",{fontCharacter:"\\eb9e"}),e.syncIgnored=new e("sync-ignored",{fontCharacter:"\\eb9f"}),e.pinned=new e("pinned",{fontCharacter:"\\eba0"}),e.githubInverted=new e("github-inverted",{fontCharacter:"\\eba1"}),e.debugAlt=new e("debug-alt",{fontCharacter:"\\eb91"}),e.serverProcess=new e("server-process",{fontCharacter:"\\eba2"}),e.serverEnvironment=new e("server-environment",{fontCharacter:"\\eba3"}),e.pass=new e("pass",{fontCharacter:"\\eba4"}),e.stopCircle=new e("stop-circle",{fontCharacter:"\\eba5"}),e.playCircle=new e("play-circle",{fontCharacter:"\\eba6"}),e.record=new e("record",{fontCharacter:"\\eba7"}),e.debugAltSmall=new e("debug-alt-small",{fontCharacter:"\\eba8"}),e.vmConnect=new e("vm-connect",{fontCharacter:"\\eba9"}),e.cloud=new e("cloud",{fontCharacter:"\\ebaa"}),e.merge=new e("merge",{fontCharacter:"\\ebab"}),e.exportIcon=new e("export",{fontCharacter:"\\ebac"}),e.graphLeft=new e("graph-left",{fontCharacter:"\\ebad"}),e.magnet=new e("magnet",{fontCharacter:"\\ebae"}),e.notebook=new e("notebook",{fontCharacter:"\\ebaf"}),e.redo=new e("redo",{fontCharacter:"\\ebb0"}),e.checkAll=new e("check-all",{fontCharacter:"\\ebb1"}),e.pinnedDirty=new e("pinned-dirty",{fontCharacter:"\\ebb2"}),e.passFilled=new e("pass-filled",{fontCharacter:"\\ebb3"}),e.circleLargeFilled=new e("circle-large-filled",{fontCharacter:"\\ebb4"}),e.circleLargeOutline=new e("circle-large-outline",{fontCharacter:"\\ebb5"}),e.combine=new e("combine",{fontCharacter:"\\ebb6"}),e.gather=new e("gather",{fontCharacter:"\\ebb6"}),e.table=new e("table",{fontCharacter:"\\ebb7"}),e.variableGroup=new e("variable-group",{fontCharacter:"\\ebb8"}),e.typeHierarchy=new e("type-hierarchy",{fontCharacter:"\\ebb9"}),e.typeHierarchySub=new e("type-hierarchy-sub",{fontCharacter:"\\ebba"}),e.typeHierarchySuper=new e("type-hierarchy-super",{fontCharacter:"\\ebbb"}),e.gitPullRequestCreate=new e("git-pull-request-create",{fontCharacter:"\\ebbc"}),e.runAbove=new e("run-above",{fontCharacter:"\\ebbd"}),e.runBelow=new e("run-below",{fontCharacter:"\\ebbe"}),e.notebookTemplate=new e("notebook-template",{fontCharacter:"\\ebbf"}),e.debugRerun=new e("debug-rerun",{fontCharacter:"\\ebc0"}),e.workspaceTrusted=new e("workspace-trusted",{fontCharacter:"\\ebc1"}),e.workspaceUntrusted=new e("workspace-untrusted",{fontCharacter:"\\ebc2"}),e.workspaceUnspecified=new e("workspace-unspecified",{fontCharacter:"\\ebc3"}),e.terminalCmd=new e("terminal-cmd",{fontCharacter:"\\ebc4"}),e.terminalDebian=new e("terminal-debian",{fontCharacter:"\\ebc5"}),e.terminalLinux=new e("terminal-linux",{fontCharacter:"\\ebc6"}),e.terminalPowershell=new e("terminal-powershell",{fontCharacter:"\\ebc7"}),e.terminalTmux=new e("terminal-tmux",{fontCharacter:"\\ebc8"}),e.terminalUbuntu=new e("terminal-ubuntu",{fontCharacter:"\\ebc9"}),e.terminalBash=new e("terminal-bash",{fontCharacter:"\\ebca"}),e.arrowSwap=new e("arrow-swap",{fontCharacter:"\\ebcb"}),e.copy=new e("copy",{fontCharacter:"\\ebcc"}),e.personAdd=new e("person-add",{fontCharacter:"\\ebcd"}),e.filterFilled=new e("filter-filled",{fontCharacter:"\\ebce"}),e.wand=new e("wand",{fontCharacter:"\\ebcf"}),e.debugLineByLine=new e("debug-line-by-line",{fontCharacter:"\\ebd0"}),e.inspect=new e("inspect",{fontCharacter:"\\ebd1"}),e.layers=new e("layers",{fontCharacter:"\\ebd2"}),e.layersDot=new e("layers-dot",{fontCharacter:"\\ebd3"}),e.layersActive=new e("layers-active",{fontCharacter:"\\ebd4"}),e.compass=new e("compass",{fontCharacter:"\\ebd5"}),e.compassDot=new e("compass-dot",{fontCharacter:"\\ebd6"}),e.compassActive=new e("compass-active",{fontCharacter:"\\ebd7"}),e.azure=new e("azure",{fontCharacter:"\\ebd8"}),e.issueDraft=new e("issue-draft",{fontCharacter:"\\ebd9"}),e.gitPullRequestClosed=new e("git-pull-request-closed",{fontCharacter:"\\ebda"}),e.gitPullRequestDraft=new e("git-pull-request-draft",{fontCharacter:"\\ebdb"}),e.debugAll=new e("debug-all",{fontCharacter:"\\ebdc"}),e.debugCoverage=new e("debug-coverage",{fontCharacter:"\\ebdd"}),e.dropDownButton=new e("drop-down-button",e.chevronDown.definition)}(c||(c={}))},"566b":function(e,t,n){var i=n("d633");function r(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}e.exports=i(r),e.exports.strict=i(o),r.proto=r((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return r(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},5692:function(e,t,n){var i=n("c430"),r=n("c6cd");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.3",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.3/LICENSE",source:"https://github.com/zloirock/core-js"})},"56dc":function(e,t,n){},"56ef":function(e,t,n){var i=n("d066"),r=n("e330"),o=n("241c"),s=n("7418"),a=n("825a"),l=r([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=s.f;return n?l(t,n(e)):t}},"56f3":function(e,t,n){},5717:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("0a0f");const r=Object(i["c"])("codeEditorService")},"577e":function(e,t,n){var i=n("f5df"),r=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return r(e)}},5798:function(e,t,n){},"57b9":function(e,t,n){var i=n("c65b"),r=n("d066"),o=n("b622"),s=n("cb2d");e.exports=function(){var e=r("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,a=o("toPrimitive");t&&!t[a]&&s(t,a,(function(e){return i(n,this)}),{arity:1})}},"580d":function(e,t,n){"use strict";function i(e,t){let n=0;for(let i=0;i<e.length;i++)"\t"===e.charAt(i)?n+=t:n++;return n}function r(e,t,n){e=e<0?0:e;let i="";if(!n){let n=Math.floor(e/t);e%=t;for(let e=0;e<n;e++)i+="\t"}for(let r=0;r<e;r++)i+=" ";return i}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}))},5818:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("0a0f");const r=Object(i["c"])("modeService")},5899:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(e,t,n){var i=n("e330"),r=n("1d80"),o=n("577e"),s=n("5899"),a=i("".replace),l="["+s+"]",c=RegExp("^"+l+l+"*"),u=RegExp(l+l+"*$"),h=function(e){return function(t){var n=o(r(t));return 1&e&&(n=a(n,c,"")),2&e&&(n=a(n,u,"")),n}};e.exports={start:h(1),end:h(2),trim:h(3)}},"58c9":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var i={};function r(e,t){i[e]=t}function o(e){return i[e]}},"58ca":function(e,t,n){"use strict";(function(e){var i=n("2554"),r=n.n(i),o="2.4.0";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},s(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 l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){return h(e)||d(e)||f(e)||g()}function h(e){if(Array.isArray(e))return p(e)}function d(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function f(e,t){if(e){if("string"===typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=f(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function v(e){return Array.isArray(e)}function b(e){return"undefined"===typeof e}function y(e){return"object"===s(e)}function _(e){return"object"===s(e)&&null!==e}function w(e){return"function"===typeof e}function C(e){return"string"===typeof e}function S(){try{return!b(window)}catch(e){return!1}}var x=S(),O=x?window:e,k=O.console||{};function L(e){k&&k.warn&&k.warn(e)}var E=function(){return L("This vue app/component has no vue-meta configuration")},D={title:void 0,titleChunk:"",titleTemplate:"%s",htmlAttrs:{},bodyAttrs:{},headAttrs:{},base:[],link:[],meta:[],style:[],script:[],noscript:[],__dangerouslyDisableSanitizers:[],__dangerouslyDisableSanitizersByTagID:{}},I="_vueMeta",M="metaInfo",T="data-vue-meta",A="data-vue-meta-server-rendered",N="vmid",P="template",j="content",R="ssr",F=10,B=!0,W={keyName:M,attribute:T,ssrAttribute:A,tagIDKeyName:N,contentKeyName:j,metaTemplateKeyName:P,waitOnDestroyed:B,debounceWait:F,ssrAppId:R},V=Object.keys(D),z=[V[12],V[13]],H=[V[1],V[2],"changed"].concat(z),U=[V[3],V[4],V[5]],q=["link","style","script"],$=["base","meta","link"],K=["noscript","script","style"],G=["innerHTML","cssText","json"],Y=["once","skip","template"],Z=["body","pbody"],X=["allowfullscreen","amp","amp-boilerplate","async","autofocus","autoplay","checked","compact","controls","declare","default","defaultchecked","defaultmuted","defaultselected","defer","disabled","enabled","formnovalidate","hidden","indeterminate","inert","ismap","itemscope","loop","multiple","muted","nohref","noresize","noshade","novalidate","nowrap","open","pauseonexit","readonly","required","reversed","scoped","seamless","selected","sortable","truespeed","typemustmatch","visible"],Q=null;function J(e,t,n){var i=e.debounceWait;t[I].initialized||!t[I].initializing&&"watcher"!==n||(t[I].initialized=null),t[I].initialized&&!t[I].pausing&&ee((function(){t.$meta().refresh()}),i)}function ee(e,t){if(t=void 0===t?10:t,t)return clearTimeout(Q),Q=setTimeout((function(){e()}),t),Q;e()}function te(e,t,n){if(Array.prototype.find)return e.find(t,n);for(var i=0;i<e.length;i++)if(t.call(n,e[i],i,e))return e[i]}function ne(e,t,n){if(!Array.prototype.findIndex){for(var i=0;i<e.length;i++)if(t.call(n,e[i],i,e))return i;return-1}return e.findIndex(t,n)}function ie(e){return Array.from?Array.from(e):Array.prototype.slice.call(e)}function re(e,t){if(!Array.prototype.includes){for(var n in e)if(e[n]===t)return!0;return!1}return e.includes(t)}var oe=function(e,t){return(t||document).querySelectorAll(e)};function se(e,t){return e[t]||(e[t]=document.getElementsByTagName(t)[0]),e[t]}function ae(e){var t=e.body,n=e.pbody;return t?"body":n?"pbody":"head"}function le(e,t,n){var i=t.appId,r=t.attribute,o=t.type,s=t.tagIDKeyName;n=n||{};var a=["".concat(o,"[").concat(r,'="').concat(i,'"]'),"".concat(o,"[data-").concat(s,"]")].map((function(e){for(var t in n){var i=n[t],r=i&&!0!==i?'="'.concat(i,'"'):"";e+="[data-".concat(t).concat(r,"]")}return e}));return ie(oe(a.join(", "),e))}function ce(e,t){var n=e.attribute;ie(oe("[".concat(n,'="').concat(t,'"]'))).map((function(e){return e.remove()}))}function ue(e,t){e.removeAttribute(t)}function he(e){return e=e||this,e&&(!0===e[I]||y(e[I]))}function de(e){return e=e||this,e&&!b(e[I])}function fe(e,t){return e[I].pausing=!0,function(){return pe(e,t)}}function pe(e,t){if(e[I].pausing=!1,t||void 0===t)return e.$meta().refresh()}function ge(e){var t=e.$router;!e[I].navGuards&&t&&(e[I].navGuards=!0,t.beforeEach((function(t,n,i){fe(e),i()})),t.afterEach((function(){e.$nextTick((function(){var t=pe(e),n=t.metaInfo;n&&w(n.afterNavigation)&&n.afterNavigation(n)}))})))}var me=1;function ve(e,t){var n=["activated","deactivated","beforeMount"],i=!1;return{beforeCreate:function(){var r=this,o="$root",s=this[o],a=this.$options,l=e.config.devtools;if(Object.defineProperty(this,"_hasMetaInfo",{configurable:!0,get:function(){return l&&!s[I].deprecationWarningShown&&(L("VueMeta DeprecationWarning: _hasMetaInfo has been deprecated and will be removed in a future version. Please use hasMetaInfo(vm) instead"),s[I].deprecationWarningShown=!0),he(this)}}),this===s&&s.$once("hook:beforeMount",(function(){if(i=this.$el&&1===this.$el.nodeType&&this.$el.hasAttribute("data-server-rendered"),!i&&s[I]&&1===s[I].appId){var e=se({},"html");i=e&&e.hasAttribute(t.ssrAttribute)}})),!b(a[t.keyName])&&null!==a[t.keyName]){if(s[I]||(s[I]={appId:me},me++,l&&s.$options[t.keyName]&&this.$nextTick((function(){var e=te(s.$children,(function(e){return e.$vnode&&e.$vnode.fnOptions}));e&&e.$vnode.fnOptions[t.keyName]&&L("VueMeta has detected a possible global mixin which adds a ".concat(t.keyName," property to all Vue components on the page. This could cause severe performance issues. If possible, use $meta().addApp to add meta information instead"))}))),!this[I]){this[I]=!0;var c=this.$parent;while(c&&c!==s)b(c[I])&&(c[I]=!1),c=c.$parent}w(a[t.keyName])&&(a.computed=a.computed||{},a.computed.$metaInfo=a[t.keyName],this.$isServer||this.$on("hook:created",(function(){this.$watch("$metaInfo",(function(){J(t,this[o],"watcher")}))}))),b(s[I].initialized)&&(s[I].initialized=this.$isServer,s[I].initialized||(s[I].initializedSsr||(s[I].initializedSsr=!0,this.$on("hook:beforeMount",(function(){var e=this[o];i&&(e[I].appId=t.ssrAppId)}))),this.$on("hook:mounted",(function(){var e=this[o];e[I].initialized||(e[I].initializing=!0,this.$nextTick((function(){var n=e.$meta().refresh(),i=n.tags,r=n.metaInfo;!1===i&&null===e[I].initialized&&this.$nextTick((function(){return J(t,e,"init")})),e[I].initialized=!0,delete e[I].initializing,!t.refreshOnceOnNavigation&&r.afterNavigation&&ge(e)})))})),t.refreshOnceOnNavigation&&ge(s))),this.$on("hook:destroyed",(function(){var e=this;this.$parent&&he(this)&&(delete this._hasMetaInfo,this.$nextTick((function(){if(t.waitOnDestroyed&&e.$el&&e.$el.offsetParent)var n=setInterval((function(){e.$el&&null!==e.$el.offsetParent||(clearInterval(n),J(t,e.$root,"destroyed"))}),50);else J(t,e.$root,"destroyed")})))})),this.$isServer||n.forEach((function(e){r.$on("hook:".concat(e),(function(){J(t,this[o],e)}))}))}}}}function be(e){return e=y(e)?e:{},{keyName:e["keyName"]||W.keyName,attribute:e["attribute"]||W.attribute,ssrAttribute:e["ssrAttribute"]||W.ssrAttribute,tagIDKeyName:e["tagIDKeyName"]||W.tagIDKeyName,contentKeyName:e["contentKeyName"]||W.contentKeyName,metaTemplateKeyName:e["metaTemplateKeyName"]||W.metaTemplateKeyName,debounceWait:b(e["debounceWait"])?W.debounceWait:e["debounceWait"],waitOnDestroyed:b(e["waitOnDestroyed"])?W.waitOnDestroyed:e["waitOnDestroyed"],ssrAppId:e["ssrAppId"]||W.ssrAppId,refreshOnceOnNavigation:!!e["refreshOnceOnNavigation"]}}function ye(e){var t={};for(var n in e)t[n]=e[n];return t}function _e(e,t){return t&&y(e)?(v(e[t])||(e[t]=[]),e):v(e)?e:[]}var we=[[/&/g,"&"],[/</g,"<"],[/>/g,">"],[/"/g,"""],[/'/g,"'"]],Ce=[[/&/g,"&"],[/</g,"<"],[/>/g,">"],[/"/g,'"'],[/'/g,"'"]];function Se(e,t,n,i){var r=t.tagIDKeyName,o=n.doEscape,s=void 0===o?function(e){return e}:o,a={};for(var l in e){var c=e[l];if(re(H,l))a[l]=c;else{var u=z[0];if(n[u]&&re(n[u],l))a[l]=c;else{var h=e[r];if(h&&(u=z[1],n[u]&&n[u][h]&&re(n[u][h],l)))a[l]=c;else if(C(c)?a[l]=s(c):v(c)?a[l]=c.map((function(e){return _(e)?Se(e,t,n,!0):s(e)})):_(c)?a[l]=Se(c,t,n,!0):a[l]=c,i){var d=s(l);l!==d&&(a[d]=a[l],delete a[l])}}}}return a}function xe(e,t,n){n=n||[];var i={doEscape:function(e){return n.reduce((function(e,t){return e.replace(t[0],t[1])}),e)}};return z.forEach((function(e,n){if(0===n)_e(t,e);else if(1===n)for(var r in t[e])_e(t[e],r);i[e]=t[e]})),Se(t,e,i)}function Oe(e,t,n,i){var r=e.component,o=e.metaTemplateKeyName,s=e.contentKeyName;return!0!==n&&!0!==t[o]&&(b(n)&&t[o]&&(n=t[o],t[o]=!0),n?(b(i)&&(i=t[s]),t[s]=w(n)?n.call(r,i):n.replace(/%s/g,i),!0):(delete t[o],!1))}function ke(e,t,n){var i=e.component,r=e.tagIDKeyName,o=e.metaTemplateKeyName,s=e.contentKeyName,a=[];return t.length||n.length?(t.forEach((function(e,t){if(e[r]){var l=ne(n,(function(t){return t[r]===e[r]})),c=n[l];if(-1!==l){if(s in c&&void 0===c[s]||"innerHTML"in c&&void 0===c.innerHTML)return a.push(e),void n.splice(l,1);if(null!==c[s]&&null!==c.innerHTML){var u=e[o];if(u){var h=c[o];if(!h)return Oe({component:i,metaTemplateKeyName:o,contentKeyName:s},c,u),void(c.template=!0);c[s]||Oe({component:i,metaTemplateKeyName:o,contentKeyName:s},c,void 0,e[s])}}else n.splice(l,1)}else a.push(e)}else a.push(e)})),a.concat(n)):a}var Le=!1;function Ee(e,t,n){return n=n||{},void 0===t.title&&delete t.title,U.forEach((function(e){if(t[e])for(var n in t[e])n in t[e]&&void 0===t[e][n]&&(re(X,n)&&!Le&&(L("VueMeta: Please note that since v2 the value undefined is not used to indicate boolean attributes anymore, see migration guide for details"),Le=!0),delete t[e][n])})),r()(e,t,{arrayMerge:function(e,t){return ke(n,e,t)}})}function De(e,t){return Ie(e||{},t,D)}function Ie(e,t,n){if(n=n||{},t._inactive)return n;e=e||{};var i=e,r=i.keyName,o=t.$metaInfo,s=t.$options,a=t.$children;if(s[r]){var l=o||s[r];y(l)&&(n=Ee(n,l,e))}return a.length&&a.forEach((function(t){de(t)&&(n=Ie(e,t,n))})),n}var Me=[];function Te(e){return"complete"===(e||document).readyState}function Ae(e,t){1===arguments.length&&(t=e,e=""),Me.push([e,t])}function Ne(e,t,n,i){var r=e.tagIDKeyName,o=!1;return n.forEach((function(e){e[r]&&e.callback&&(o=!0,Ae("".concat(t,"[data-").concat(r,'="').concat(e[r],'"]'),e.callback))})),i&&o?Pe():o}function Pe(){Te()?je():document.onreadystatechange=function(){je()}}function je(e){Me.forEach((function(t){var n=t[0],i=t[1],r="".concat(n,'[onload="this.__vm_l=1"]'),o=[];e||(o=ie(oe(r))),e&&e.matches(r)&&(o=[e]),o.forEach((function(e){if(!e.__vm_cb){var t=function(){e.__vm_cb=!0,ue(e,"onload"),i(e)};e.__vm_l?t():e.__vm_ev||(e.__vm_ev=!0,e.addEventListener("load",t))}}))}))}var Re,Fe={};function Be(e,t,n,i,r){var o=t||{},s=o.attribute,a=r.getAttribute(s);a&&(Fe[n]=JSON.parse(decodeURI(a)),ue(r,s));var l=Fe[n]||{},c=[];for(var u in l)void 0!==l[u]&&e in l[u]&&(c.push(u),i[u]||delete l[u][e]);for(var h in i){var d=l[h];d&&d[e]===i[h]||(c.push(h),void 0!==i[h]&&(l[h]=l[h]||{},l[h][e]=i[h]))}for(var f=0,p=c;f<p.length;f++){var g=p[f],m=l[g],v=[];for(var b in m)Array.prototype.push.apply(v,[].concat(m[b]));if(v.length){var y=re(X,g)&&v.some(Boolean)?"":v.filter((function(e){return void 0!==e})).join(" ");r.setAttribute(g,y)}else ue(r,g)}Fe[n]=l}function We(e){(e||""===e)&&(document.title=e)}function Ve(e,t,n,i,r,o){var s=t||{},a=s.attribute,l=s.tagIDKeyName,c=Z.slice();c.push(l);var u=[],h={appId:e,attribute:a,type:n,tagIDKeyName:l},d={head:le(r,h),pbody:le(o,h,{pbody:!0}),body:le(o,h,{body:!0})};if(i.length>1){var f=[];i=i.filter((function(e){var t=JSON.stringify(e),n=!re(f,t);return f.push(t),n}))}i.forEach((function(t){if(!t.skip){var i=document.createElement(n);t.once||i.setAttribute(a,e),Object.keys(t).forEach((function(e){if(!re(Y,e))if("innerHTML"!==e)if("json"!==e)if("cssText"!==e)if("callback"!==e){var n=re(c,e)?"data-".concat(e):e,r=re(X,e);if(!r||t[e]){var o=r?"":t[e];i.setAttribute(n,o)}}else i.onload=function(){return t[e](i)};else i.styleSheet?i.styleSheet.cssText=t.cssText:i.appendChild(document.createTextNode(t.cssText));else i.innerHTML=JSON.stringify(t.json);else i.innerHTML=t.innerHTML}));var r,o=d[ae(t)],s=o.some((function(e,t){return r=t,i.isEqualNode(e)}));s&&(r||0===r)?o.splice(r,1):u.push(i)}}));var p=[];for(var g in d)Array.prototype.push.apply(p,d[g]);return p.forEach((function(e){e.parentNode.removeChild(e)})),u.forEach((function(e){e.hasAttribute("data-body")?o.appendChild(e):e.hasAttribute("data-pbody")?o.insertBefore(e,o.firstChild):r.appendChild(e)})),{oldTags:p,newTags:u}}function ze(e,t,n){t=t||{};var i=t,r=i.ssrAttribute,o=i.ssrAppId,s={},a=se(s,"html");if(e===o&&a.hasAttribute(r)){ue(a,r);var l=!1;return q.forEach((function(e){n[e]&&Ne(t,e,n[e])&&(l=!0)})),l&&Pe(),!1}var c={},u={};for(var h in n)if(!re(H,h))if("title"!==h){if(re(U,h)){var d=h.substr(0,4);Be(e,t,h,n[h],se(s,d))}else if(v(n[h])){var f=Ve(e,t,h,n[h],se(s,"head"),se(s,"body")),p=f.oldTags,g=f.newTags;g.length&&(c[h]=g,u[h]=p)}}else We(n.title);return{tagsAdded:c,tagsRemoved:u}}function He(e,t,n){return{set:function(i){return Ue(e,t,n,i)},remove:function(){return qe(e,t,n)}}}function Ue(e,t,n,i){if(e&&e.$el)return ze(t,n,i);Re=Re||{},Re[t]=i}function qe(e,t,n){if(e&&e.$el){var i,r={},o=m(U);try{for(o.s();!(i=o.n()).done;){var s=i.value,a=s.substr(0,4);Be(t,n,s,{},se(r,a))}}catch(l){o.e(l)}finally{o.f()}return ce(n,t)}Re[t]&&(delete Re[t],Ke())}function $e(){return Re}function Ke(e){!e&&Object.keys(Re).length||(Re=void 0)}function Ge(e,t,n,i){e=e||{},n=n||[];var r=e,o=r.tagIDKeyName;return t.title&&(t.titleChunk=t.title),t.titleTemplate&&"%s"!==t.titleTemplate&&Oe({component:i,contentKeyName:"title"},t,t.titleTemplate,t.titleChunk||""),t.base&&(t.base=Object.keys(t.base).length?[t.base]:[]),t.meta&&(t.meta=t.meta.filter((function(e,t,n){var i=!!e[o];if(!i)return!0;var r=t===ne(n,(function(t){return t[o]===e[o]}));return r})),t.meta.forEach((function(t){return Oe(e,t)}))),xe(e,t,n)}function Ye(e,t){if(t=t||{},!e[I])return E(),{};var n=De(t,e),i=Ge(t,n,Ce,e),r=e[I].appId,o=ze(r,t,i);o&&w(i.changed)&&(i.changed(i,o.tagsAdded,o.tagsRemoved),o={addedTags:o.tagsAdded,removedTags:o.tagsRemoved});var s=$e();if(s){for(var a in s)ze(a,t,s[a]),delete s[a];Ke(!0)}return{vm:e,metaInfo:i,tags:o}}function Ze(e,t,n,i){var r=i.addSsrAttribute,o=e||{},s=o.attribute,a=o.ssrAttribute,l="";for(var c in n){var h=n[c],d=[];for(var f in h)d.push.apply(d,u([].concat(h[f])));d.length&&(l+=X.includes(c)&&d.some(Boolean)?"".concat(c):"".concat(c,'="').concat(d.join(" "),'"'),l+=" ")}return l&&(l+="".concat(s,'="').concat(encodeURI(JSON.stringify(n)),'"')),"htmlAttrs"===t&&r?"".concat(a).concat(l?" ":"").concat(l):l}function Xe(e,t,n,i){var r=i||{},o=r.ln;return n?"<".concat(t,">").concat(n,"</").concat(t,">").concat(o?"\n":""):""}function Qe(e,t,n,i){var r=e||{},o=r.ssrAppId,s=r.attribute,a=r.tagIDKeyName,l=i||{},c=l.appId,h=l.isSSR,d=void 0===h||h,f=l.body,p=void 0!==f&&f,g=l.pbody,m=void 0!==g&&g,v=l.ln,b=void 0!==v&&v,y=[a].concat(u(Z));return n&&n.length?n.reduce((function(e,n){if(n.skip)return e;var i=Object.keys(n);if(0===i.length)return e;if(Boolean(n.body)!==p||Boolean(n.pbody)!==m)return e;var r=n.once?"":" ".concat(s,'="').concat(c||(!1===d?"1":o),'"');for(var a in n)if(!G.includes(a)&&!Y.includes(a))if("callback"!==a){var l="";y.includes(a)&&(l="data-");var u=!l&&X.includes(a);u&&!n[a]||(r+=" ".concat(l).concat(a)+(u?"":'="'.concat(n[a],'"')))}else r+=' onload="this.__vm_l=1"';var h="";n.json&&(h=JSON.stringify(n.json));var f=n.innerHTML||n.cssText||h,g=!$.includes(t),v=g&&K.includes(t);return"".concat(e,"<").concat(t).concat(r).concat(!v&&g?"/":"",">")+(v?"".concat(f,"</").concat(t,">"):"")+(b?"\n":"")}),""):""}function Je(e,t,n){var i={data:t,extraData:void 0,addInfo:function(e,t){this.extraData=this.extraData||{},this.extraData[e]=t},callInjectors:function(e){var t=this.injectors;return(e.body||e.pbody?"":t.title.text(e))+t.meta.text(e)+t.base.text(e)+t.link.text(e)+t.style.text(e)+t.script.text(e)+t.noscript.text(e)},injectors:{head:function(e){return i.callInjectors(c(c({},n),{},{ln:e}))},bodyPrepend:function(e){return i.callInjectors(c(c({},n),{},{ln:e,pbody:!0}))},bodyAppend:function(e){return i.callInjectors(c(c({},n),{},{ln:e,body:!0}))}}},r=function(t){if(H.includes(t))return"continue";i.injectors[t]={text:function(r){var o=!0===r;if(r=c(c({addSsrAttribute:o},n),r),"title"===t)return Xe(e,t,i.data[t],r);if(U.includes(t)){var s={},l=i.data[t];if(l){var u=!1===r.isSSR?"1":e.ssrAppId;for(var h in l)s[h]=a({},u,l[h])}if(i.extraData)for(var d in i.extraData){var f=i.extraData[d][t];if(f)for(var p in f)s[p]=c(c({},s[p]),{},a({},d,f[p]))}return Ze(e,t,s,r)}var g=Qe(e,t,i.data[t],r);if(i.extraData)for(var m in i.extraData){var v=i.extraData[m][t],b=Qe(e,t,v,c({appId:m},r));g="".concat(g).concat(b)}return g}}};for(var o in D)r(o);return i}function et(e,t,n){if(!e[I])return E(),{};var i=De(t,e),r=Ge(t,i,we,e),o=Je(t,r,n),s=$e();if(s){for(var a in s)o.addInfo(a,s[a]),delete s[a];Ke(!0)}return o.injectors}function tt(e){e=e||{};var t=this.$root;return{getOptions:function(){return ye(e)},setOptions:function(n){var i="refreshOnceOnNavigation";n&&n[i]&&(e.refreshOnceOnNavigation=!!n[i],ge(t));var r="debounceWait";if(n&&r in n){var o=parseInt(n[r]);isNaN(o)||(e.debounceWait=o)}var s="waitOnDestroyed";n&&s in n&&(e.waitOnDestroyed=!!n[s])},refresh:function(){return Ye(t,e)},inject:function(n){return et(t,e,n)},pause:function(){return fe(t)},resume:function(){return pe(t)},addApp:function(n){return He(t,n,e)}}}function nt(e,t){t=be(t);var n=Ge(t,e,we),i=Je(t,n);return i.injectors}function it(e,t){e.__vuemeta_installed||(e.__vuemeta_installed=!0,t=be(t),e.prototype.$meta=function(){return tt.call(this,t)},e.mixin(ve(e,t)))}var rt={version:o,install:it,generate:function(e,t){return nt(e,t)},hasMetaInfo:he};t["a"]=rt}).call(this,n("c8ba"))},5926:function(e,t,n){var i=n("b42e");e.exports=function(e){var t=+e;return t!==t||0===t?0:i(t)}},"597f":function(e,t){e.exports=function(e,t,n,i){var r,o=0;function s(){var s=this,a=Number(new Date)-o,l=arguments;function c(){o=Number(new Date),n.apply(s,l)}function u(){r=void 0}i&&!r&&c(),r&&clearTimeout(r),void 0===i&&a>e?c():!0!==t&&(r=setTimeout(i?u:c,void 0===i?e-a:e))}return"boolean"!==typeof t&&(i=n,n=t,t=void 0),s}},"59a4":function(e,t,n){"use strict";n.d(t,"a",(function(){return B}));var i=n("e8e3"),r=n("a666"),o=n("3742"),s=(n("7457"),n("d3f4")),a=n("6a89"),l=n("8025"),c=n("b57f"),u=n("1165"),h=n("0a0f"),d=n("b800"),f=n("dff7"),p=n("32b8"),g=n("82c9"),m=n("70cb"),v=n("6d8e");const b="code-workspace";function y(e){const t=e;return"string"===typeof(null===t||void 0===t?void 0:t.id)&&v["a"].isUri(t.uri)}function _(e){return e.configuration?{id:e.id,configPath:e.configuration}:1===e.folders.length?{id:e.id,uri:e.folders[0].uri}:void 0}var w=n("debc");const C=new Uint8Array(16),S=[];for(let W=0;W<256;W++)S.push(W.toString(16).padStart(2,"0"));let x;function O(){x(C),C[6]=15&C[6]|64,C[8]=63&C[8]|128;let e=0,t="";return t+=S[C[e++]],t+=S[C[e++]],t+=S[C[e++]],t+=S[C[e++]],t+="-",t+=S[C[e++]],t+=S[C[e++]],t+="-",t+=S[C[e++]],t+=S[C[e++]],t+="-",t+=S[C[e++]],t+=S[C[e++]],t+="-",t+=S[C[e++]],t+=S[C[e++]],t+=S[C[e++]],t+=S[C[e++]],t+=S[C[e++]],t+=S[C[e++]],t}x="object"===typeof crypto&&"function"===typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random());return e};class k{constructor(e){this._delegates=e}resolve(e){for(const t of this._delegates){let n=t.resolve(e);if(void 0!==n)return n}}}class L{constructor(e,t,n,i){this._model=e,this._selection=t,this._selectionIdx=n,this._overtypingCapturer=i}resolve(e){const{name:t}=e;if("SELECTION"===t||"TM_SELECTED_TEXT"===t){let t=this._model.getValueInRange(this._selection)||void 0,n=this._selection.startLineNumber!==this._selection.endLineNumber;if(!t&&this._overtypingCapturer){const e=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);e&&(t=e.value,n=e.multiline)}if(t&&n&&e.snippet){const n=this._model.getLineContent(this._selection.startLineNumber),i=Object(o["y"])(n,0,this._selection.startColumn-1);let r=i;e.snippet.walk(t=>t!==e&&(t instanceof d["d"]&&(r=Object(o["y"])(Object(o["R"])(t.value).pop())),!0));const s=Object(o["d"])(r,i);t=t.replace(/(\r\n|\r|\n)(.*)/g,(e,t,n)=>`${t}${r.substr(s)}${n}`)}return t}if("TM_CURRENT_LINE"===t)return this._model.getLineContent(this._selection.positionLineNumber);if("TM_CURRENT_WORD"===t){const e=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return e&&e.word||void 0}return"TM_LINE_INDEX"===t?String(this._selection.positionLineNumber-1):"TM_LINE_NUMBER"===t?String(this._selection.positionLineNumber):void 0}}class E{constructor(e,t){this._labelService=e,this._model=t}resolve(e){const{name:t}=e;if("TM_FILENAME"===t)return p["a"](this._model.uri.fsPath);if("TM_FILENAME_BASE"===t){const e=p["a"](this._model.uri.fsPath),t=e.lastIndexOf(".");return t<=0?e:e.slice(0,t)}return"TM_DIRECTORY"===t&&this._labelService?"."===p["b"](this._model.uri.fsPath)?"":this._labelService.getUriLabel(Object(g["d"])(this._model.uri)):"TM_FILEPATH"===t&&this._labelService?this._labelService.getUriLabel(this._model.uri):"RELATIVE_FILEPATH"===t&&this._labelService?this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0}):void 0}}class D{constructor(e,t,n,i){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=n,this._spread=i}resolve(e){if("CLIPBOARD"!==e.name)return;const t=this._readClipboardText();if(t){if(this._spread){const e=t.split(/\r\n|\n|\r/).filter(e=>!Object(o["D"])(e));if(e.length===this._selectionCount)return e[this._selectionIdx]}return t}}}class I{constructor(e,t){this._model=e,this._selection=t}resolve(e){const{name:t}=e,n=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),i=m["a"].getComments(n);if(i)return"LINE_COMMENT"===t?i.lineCommentToken||void 0:"BLOCK_COMMENT_START"===t?i.blockCommentStartToken||void 0:"BLOCK_COMMENT_END"===t&&i.blockCommentEndToken||void 0}}class M{constructor(){this._date=new Date}resolve(e){const{name:t}=e;return"CURRENT_YEAR"===t?String(this._date.getFullYear()):"CURRENT_YEAR_SHORT"===t?String(this._date.getFullYear()).slice(-2):"CURRENT_MONTH"===t?String(this._date.getMonth().valueOf()+1).padStart(2,"0"):"CURRENT_DATE"===t?String(this._date.getDate().valueOf()).padStart(2,"0"):"CURRENT_HOUR"===t?String(this._date.getHours().valueOf()).padStart(2,"0"):"CURRENT_MINUTE"===t?String(this._date.getMinutes().valueOf()).padStart(2,"0"):"CURRENT_SECOND"===t?String(this._date.getSeconds().valueOf()).padStart(2,"0"):"CURRENT_DAY_NAME"===t?M.dayNames[this._date.getDay()]:"CURRENT_DAY_NAME_SHORT"===t?M.dayNamesShort[this._date.getDay()]:"CURRENT_MONTH_NAME"===t?M.monthNames[this._date.getMonth()]:"CURRENT_MONTH_NAME_SHORT"===t?M.monthNamesShort[this._date.getMonth()]:"CURRENT_SECONDS_UNIX"===t?String(Math.floor(this._date.getTime()/1e3)):void 0}}M.dayNames=[f["a"]("Sunday","Sunday"),f["a"]("Monday","Monday"),f["a"]("Tuesday","Tuesday"),f["a"]("Wednesday","Wednesday"),f["a"]("Thursday","Thursday"),f["a"]("Friday","Friday"),f["a"]("Saturday","Saturday")],M.dayNamesShort=[f["a"]("SundayShort","Sun"),f["a"]("MondayShort","Mon"),f["a"]("TuesdayShort","Tue"),f["a"]("WednesdayShort","Wed"),f["a"]("ThursdayShort","Thu"),f["a"]("FridayShort","Fri"),f["a"]("SaturdayShort","Sat")],M.monthNames=[f["a"]("January","January"),f["a"]("February","February"),f["a"]("March","March"),f["a"]("April","April"),f["a"]("May","May"),f["a"]("June","June"),f["a"]("July","July"),f["a"]("August","August"),f["a"]("September","September"),f["a"]("October","October"),f["a"]("November","November"),f["a"]("December","December")],M.monthNamesShort=[f["a"]("JanuaryShort","Jan"),f["a"]("FebruaryShort","Feb"),f["a"]("MarchShort","Mar"),f["a"]("AprilShort","Apr"),f["a"]("MayShort","May"),f["a"]("JuneShort","Jun"),f["a"]("JulyShort","Jul"),f["a"]("AugustShort","Aug"),f["a"]("SeptemberShort","Sep"),f["a"]("OctoberShort","Oct"),f["a"]("NovemberShort","Nov"),f["a"]("DecemberShort","Dec")];class T{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;const t=_(this._workspaceService.getWorkspace());return t?"WORKSPACE_NAME"===e.name?this._resolveWorkspaceName(t):"WORKSPACE_FOLDER"===e.name?this._resoveWorkspacePath(t):void 0:void 0}_resolveWorkspaceName(e){if(y(e))return p["a"](e.uri.path);let t=p["a"](e.configPath.path);return t.endsWith(b)&&(t=t.substr(0,t.length-b.length-1)),t}_resoveWorkspacePath(e){if(y(e))return Object(w["b"])(e.uri.fsPath);let t=p["a"](e.configPath.path),n=e.configPath.fsPath;return n.endsWith(t)&&(n=n.substr(0,n.length-t.length-1)),n?Object(w["b"])(n):"/"}}class A{resolve(e){const{name:t}=e;return"RANDOM"===t?Math.random().toString().slice(-6):"RANDOM_HEX"===t?Math.random().toString(16).slice(-6):"UUID"===t?O():void 0}}var N=n("b7d0"),P=n("303e"),j=n("47cb");Object(N["f"])((e,t)=>{function n(t){const n=e.getColor(t);return n?n.toString():"transparent"}t.addRule(`.monaco-editor .snippet-placeholder { background-color: ${n(P["Ec"])}; outline-color: ${n(P["Fc"])}; }`),t.addRule(`.monaco-editor .finish-snippet-placeholder { background-color: ${n(P["Cc"])}; outline-color: ${n(P["Dc"])}; }`)});class R{constructor(e,t,n,r){this._editor=e,this._snippet=t,this._offset=n,this._snippetLineLeadingWhitespace=r,this._nestingLevel=1,this._placeholderGroups=Object(i["l"])(t.placeholders,d["b"].compareByIndex),this._placeholderGroupsIdx=-1}dispose(){this._placeholderDecorations&&this._editor.deltaDecorations([...this._placeholderDecorations.values()],[]),this._placeholderGroups.length=0}_initDecorations(){if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const e=this._editor.getModel();this._editor.changeDecorations(t=>{for(const n of this._snippet.placeholders){const i=this._snippet.offset(n),r=this._snippet.fullLen(n),o=a["a"].fromPositions(e.getPositionAt(this._offset+i),e.getPositionAt(this._offset+i+r)),s=n.isFinalTabstop?R._decor.inactiveFinal:R._decor.inactive,l=t.addDecoration(o,s);this._placeholderDecorations.set(n,l)}})}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){let e=[];for(const t of this._placeholderGroups[this._placeholderGroupsIdx])if(t.transform){const n=this._placeholderDecorations.get(t),i=this._editor.getModel().getDecorationRange(n),r=this._editor.getModel().getValueInRange(i),o=t.transform.resolve(r).split(/\r\n|\r|\n/);for(let e=1;e<o.length;e++)o[e]=this._editor.getModel().normalizeIndentation(this._snippetLineLeadingWhitespace+o[e]);e.push(s["a"].replace(i,o.join(this._editor.getModel().getEOL())))}e.length>0&&this._editor.executeEdits("snippet.placeholderTransform",e)}let t=!1;!0===e&&this._placeholderGroupsIdx<this._placeholderGroups.length-1?(this._placeholderGroupsIdx+=1,t=!0):!1===e&&this._placeholderGroupsIdx>0&&(this._placeholderGroupsIdx-=1,t=!0);const n=this._editor.getModel().changeDecorations(e=>{const n=new Set,i=[];for(const r of this._placeholderGroups[this._placeholderGroupsIdx]){const o=this._placeholderDecorations.get(r),s=this._editor.getModel().getDecorationRange(o);i.push(new l["a"](s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(r),e.changeDecorationOptions(o,r.isFinalTabstop?R._decor.activeFinal:R._decor.active),n.add(r);for(const t of this._snippet.enclosingPlaceholders(r)){const i=this._placeholderDecorations.get(t);e.changeDecorationOptions(i,t.isFinalTabstop?R._decor.activeFinal:R._decor.active),n.add(t)}}for(const[t,r]of this._placeholderDecorations)n.has(t)||e.changeDecorationOptions(r,t.isFinalTabstop?R._decor.inactiveFinal:R._decor.inactive);return i});return t?this.move(e):null!==n&&void 0!==n?n:[]}_hasPlaceholderBeenCollapsed(e){let t=e;while(t){if(t instanceof d["b"]){const e=this._placeholderDecorations.get(t),n=this._editor.getModel().getDecorationRange(e);if(n.isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||0===this._placeholderGroups.length}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}computePossibleSelections(){const e=new Map;for(const t of this._placeholderGroups){let n;for(const i of t){if(i.isFinalTabstop)break;n||(n=[],e.set(i.index,n));const t=this._placeholderDecorations.get(i),r=this._editor.getModel().getDecorationRange(t);if(!r){e.delete(i.index);break}n.push(r)}}return e}get choice(){return this._placeholderGroups[this._placeholderGroupsIdx][0].choice}merge(e){const t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(n=>{for(const i of this._placeholderGroups[this._placeholderGroupsIdx]){const r=e.shift();console.assert(!r._placeholderDecorations);const o=r._snippet.placeholderInfo.last.index;for(const e of r._snippet.placeholderInfo.all)e.isFinalTabstop?e.index=i.index+(o+1)/this._nestingLevel:e.index=i.index+e.index/this._nestingLevel;this._snippet.replace(i,r._snippet.children);const s=this._placeholderDecorations.get(i);n.removeDecoration(s),this._placeholderDecorations.delete(i);for(const e of r._snippet.placeholders){const i=r._snippet.offset(e),o=r._snippet.fullLen(e),s=a["a"].fromPositions(t.getPositionAt(r._offset+i),t.getPositionAt(r._offset+i+o)),l=n.addDecoration(s,R._decor.inactive);this._placeholderDecorations.set(e,l)}}this._placeholderGroups=Object(i["l"])(this._snippet.placeholders,d["b"].compareByIndex)})}}R._decor={active:c["a"].register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:c["a"].register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:c["a"].register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:c["a"].register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};const F={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};class B{constructor(e,t,n=F){this._templateMerges=[],this._snippets=[],this._editor=e,this._template=t,this._options=n}static adjustWhitespace(e,t,n,i,r){const s=e.getLineContent(t.lineNumber),a=Object(o["y"])(s,0,t.column-1);let l;return n.walk(t=>{if(!(t instanceof d["d"])||t.parent instanceof d["a"])return!0;const r=t.value.split(/\r\n|\r|\n/);if(i){const i=n.offset(t);if(0===i)r[0]=e.normalizeIndentation(r[0]);else{l=null!==l&&void 0!==l?l:n.toString();let t=l.charCodeAt(i-1);10!==t&&13!==t||(r[0]=e.normalizeIndentation(a+r[0]))}for(let t=1;t<r.length;t++)r[t]=e.normalizeIndentation(a+r[t])}const o=r.join(e.getEOL());return o!==t.value&&(t.parent.replace(t,[new d["d"](o)]),l=void 0),!0}),a}static adjustSelection(e,t,n,i){if(0!==n||0!==i){const{positionLineNumber:r,positionColumn:o}=t,s=o-n,a=o+i,c=e.validateRange({startLineNumber:r,startColumn:s,endLineNumber:r,endColumn:a});t=l["a"].createWithDirection(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn,t.getDirection())}return t}static createEditsAndSnippets(e,t,n,i,r,o,l,c){const f=[],p=[];if(!e.hasModel())return{edits:f,snippets:p};const g=e.getModel(),m=e.invokeWithinContext(e=>e.get(u["a"],h["d"])),v=e.invokeWithinContext(e=>new E(e.get(j["a"],h["d"]),g)),b=()=>l;let y=0,_=g.getValueInRange(B.adjustSelection(g,e.getSelection(),n,0)),w=g.getValueInRange(B.adjustSelection(g,e.getSelection(),0,i)),C=g.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber);const S=e.getSelections().map((e,t)=>({selection:e,idx:t})).sort((e,t)=>a["a"].compareRangesUsingStarts(e.selection,t.selection));for(const{selection:a,idx:u}of S){let l=B.adjustSelection(g,a,n,0),h=B.adjustSelection(g,a,0,i);_!==g.getValueInRange(l)&&(l=a),w!==g.getValueInRange(h)&&(h=a);const x=a.setStartPosition(l.startLineNumber,l.startColumn).setEndPosition(h.endLineNumber,h.endColumn),O=(new d["c"]).parse(t,!0,r),E=x.getStartPosition(),N=B.adjustWhitespace(g,E,O,o||u>0&&C!==g.getLineFirstNonWhitespaceColumn(a.positionLineNumber),!0);O.resolveVariables(new k([v,new D(b,u,S.length,"spread"===e.getOption(69)),new L(g,a,u,c),new I(g,a),new M,new T(m),new A]));const P=g.getOffsetAt(E)+y;y+=O.toString().length-g.getValueLengthInRange(x),f[u]=s["a"].replace(x,O.toString()),f[u].identifier={major:u,minor:0},p[u]=new R(e,O,P,N)}return{edits:f,snippets:p}}dispose(){Object(r["f"])(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:e,snippets:t}=B.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer);this._snippets=t,this._editor.executeEdits("snippet",e,e=>this._snippets[0].hasPlaceholder?this._move(!0):e.filter(e=>!!e.identifier).map(e=>l["a"].fromPositions(e.range.getEndPosition()))),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=F){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);const{edits:n,snippets:i}=B.createEditsAndSnippets(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer);this._editor.executeEdits("snippet",n,e=>{for(const t of this._snippets)t.merge(i);return console.assert(0===i.length),this._snippets[0].hasPlaceholder?this._move(void 0):e.filter(e=>!!e.identifier).map(e=>l["a"].fromPositions(e.range.getEndPosition()))})}next(){const e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){const e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){const t=[];for(const n of this._snippets){const i=n.move(e);t.push(...i)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get choice(){return this._snippets[0].choice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const e=this._editor.getSelections();if(e.length<this._snippets.length)return!1;let t=new Map;for(const n of this._snippets){const i=n.computePossibleSelections();if(0===t.size)for(const[n,r]of i){r.sort(a["a"].compareRangesUsingStarts);for(const i of e)if(r[0].containsRange(i)){t.set(n,[]);break}}if(0===t.size)return!1;t.forEach((e,t)=>{e.push(...i.get(t))})}e.sort(a["a"].compareRangesUsingStarts);for(let[n,i]of t)if(i.length===e.length){i.sort(a["a"].compareRangesUsingStarts);for(let r=0;r<i.length;r++)i[r].containsRange(e[r])||t.delete(n)}else t.delete(n);return t.size>0}}},"59ed":function(e,t,n){var i=n("1626"),r=n("0d51"),o=TypeError;e.exports=function(e){if(i(e))return e;throw o(r(e)+" is not a function")}},"5a34":function(e,t,n){var i=n("44e7"),r=TypeError;e.exports=function(e){if(i(e))throw r("The method doesn't accept regular expressions");return e}},"5a43":function(e,t){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"5a47":function(e,t,n){var i=n("23e7"),r=n("04f8"),o=n("d039"),s=n("7418"),a=n("7b0b"),l=!r||o((function(){s.f(1)}));i({target:"Object",stat:!0,forced:l},{getOwnPropertySymbols:function(e){var t=s.f;return t?t(a(e)):[]}})},"5a94":function(e,t,n){var i=n("b367")("keys"),r=n("8b1a");e.exports=function(e){return i[e]||(i[e]=r(e))}},"5aa5":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));n("c84a");var i=n("a666"),r=n("f070"),o=n("11f7"),s=n("ef8e"),a=n("b835"),l=n("308f"),c=n("eff2"),u=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class h extends i["a"]{constructor(e,t={}){var n,i,s,u,h,d;let f,p;switch(super(),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new l["b"]),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new l["b"]({onFirstListenerAdd:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new l["b"]),this.onDidRun=this._onDidRun.event,this._onBeforeRun=this._register(new l["b"]),this.onBeforeRun=this._onBeforeRun.event,this.options=t,this._context=null!==(n=t.context)&&void 0!==n?n:null,this._orientation=null!==(i=this.options.orientation)&&void 0!==i?i:0,this._triggerKeys={keyDown:null!==(u=null===(s=this.options.triggerKeys)||void 0===s?void 0:s.keyDown)&&void 0!==u&&u,keys:null!==(d=null===(h=this.options.triggerKeys)||void 0===h?void 0:h.keys)&&void 0!==d?d:[3,10]},this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new r["b"],this._register(this._actionRunner)),this._register(this._actionRunner.onDidRun(e=>this._onDidRun.fire(e))),this._register(this._actionRunner.onBeforeRun(e=>this._onBeforeRun.fire(e))),this._actionIds=[],this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",!1!==t.animated&&this.domNode.classList.add("animated"),this._orientation){case 0:f=[15],p=[17];break;case 1:f=[16],p=[18],this.domNode.className+=" vertical";break}this._register(o["i"](this.domNode,o["d"].KEY_DOWN,e=>{const t=new a["a"](e);let n=!0;const i="number"===typeof this.focusedItem?this.viewItems[this.focusedItem]:void 0;f&&(t.equals(f[0])||t.equals(f[1]))?n=this.focusPrevious():p&&(t.equals(p[0])||t.equals(p[1]))?n=this.focusNext():t.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():t.equals(14)?n=this.focusFirst():t.equals(13)?n=this.focusLast():t.equals(2)&&i instanceof c["b"]&&i.trapsArrowNavigation?n=this.focusNext():this.isTriggerKeyEvent(t)?this._triggerKeys.keyDown?this.doTrigger(t):this.triggerKeyDown=!0:n=!1,n&&(t.preventDefault(),t.stopPropagation())})),this._register(o["i"](this.domNode,o["d"].KEY_UP,e=>{const t=new a["a"](e);this.isTriggerKeyEvent(t)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(t)),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&this.updateFocusedItem()})),this.focusTracker=this._register(o["Y"](this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{o["y"]()!==this.domNode&&o["L"](o["y"](),this.domNode)||(this._onDidBlur.fire(),this.focusedItem=void 0,this.triggerKeyDown=!1)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role","toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),e.appendChild(this.domNode)}isTriggerKeyEvent(e){let t=!1;return this._triggerKeys.keys.forEach(n=>{t=t||e.equals(n)}),t}updateFocusedItem(){for(let e=0;e<this.actionsList.children.length;e++){const t=this.actionsList.children[e];if(o["L"](o["y"](),t)){this.focusedItem=e;break}}}get context(){return this._context}set context(e){this._context=e,this.viewItems.forEach(t=>t.setActionContext(e))}get actionRunner(){return this._actionRunner}set actionRunner(e){e&&(this._actionRunner=e,this.viewItems.forEach(t=>t.actionRunner=e))}getContainer(){return this.domNode}push(e,t={}){const n=Array.isArray(e)?e:[e];let i=s["i"](t.index)?t.index:null;n.forEach(e=>{const n=document.createElement("li");let r;n.className="action-item",n.setAttribute("role","presentation"),this.options.allowContextMenu||this._register(o["i"](n,o["d"].CONTEXT_MENU,e=>{o["c"].stop(e,!0)})),this.options.actionViewItemProvider&&(r=this.options.actionViewItemProvider(e)),r||(r=new c["a"](this.context,e,t)),r.actionRunner=this._actionRunner,r.setActionContext(this.context),r.render(n),this.focusable&&r instanceof c["b"]&&0===this.viewItems.length&&r.setFocusable(!0),null===i||i<0||i>=this.actionsList.children.length?(this.actionsList.appendChild(n),this.viewItems.push(r),this._actionIds.push(e.id)):(this.actionsList.insertBefore(n,this.actionsList.children[i]),this.viewItems.splice(i,0,r),this._actionIds.splice(i,0,e.id),i++)}),"number"===typeof this.focusedItem&&this.focus(this.focusedItem)}clear(){Object(i["f"])(this.viewItems),this.viewItems=[],this._actionIds=[],o["t"](this.actionsList)}length(){return this.viewItems.length}focus(e){let t=!1,n=void 0;if(void 0===e?t=!0:"number"===typeof e?n=e:"boolean"===typeof e&&(t=e),t&&"undefined"===typeof this.focusedItem){const e=this.viewItems.findIndex(e=>e.isEnabled());this.focusedItem=-1===e?void 0:e,this.updateFocus()}else void 0!==n&&(this.focusedItem=n),this.updateFocus()}focusFirst(){return this.focusedItem=this.length()>1?1:0,this.focusPrevious()}focusLast(){return this.focusedItem=this.length()<2?0:this.length()-2,this.focusNext()}focusNext(){if("undefined"===typeof this.focusedItem)this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const e=this.focusedItem;let t;do{if(this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=e,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,t=this.viewItems[this.focusedItem]}while(this.focusedItem!==e&&this.options.focusOnlyEnabledItems&&!t.isEnabled());return this.updateFocus(),!0}focusPrevious(){if("undefined"===typeof this.focusedItem)this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const e=this.focusedItem;let t;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(this.options.preventLoopNavigation)return this.focusedItem=e,!1;this.focusedItem=this.viewItems.length-1}t=this.viewItems[this.focusedItem]}while(this.focusedItem!==e&&this.options.focusOnlyEnabledItems&&!t.isEnabled());return this.updateFocus(!0),!0}updateFocus(e,t){"undefined"===typeof this.focusedItem&&this.actionsList.focus({preventScroll:t});for(let n=0;n<this.viewItems.length;n++){const i=this.viewItems[n],r=i;if(n===this.focusedItem){let n=!0;s["h"](r.focus)||(n=!1),this.options.focusOnlyEnabledItems&&s["h"](i.isEnabled)&&!i.isEnabled()&&(n=!1),n?r.focus(e):this.actionsList.focus({preventScroll:t})}else s["h"](r.blur)&&r.blur()}}doTrigger(e){if("undefined"===typeof this.focusedItem)return;const t=this.viewItems[this.focusedItem];if(t instanceof c["b"]){const n=null===t._context||void 0===t._context?e:t._context;this.run(t._action,n)}}run(e,t){return u(this,void 0,void 0,(function*(){yield this._actionRunner.run(e,t)}))}dispose(){Object(i["f"])(this.viewItems),this.viewItems=[],this._actionIds=[],this.getContainer().remove(),super.dispose()}}},"5b02":function(e,t,n){"use strict";n.r(t),n.d(t,"TriggerParameterHintsAction",(function(){return G}));var i=n("dff7"),r=n("a666"),o=n("0a0f"),s=n("c101"),a=n("4fc3"),l=n("b2cc"),c=n("11f7"),u=n("3813"),h=n("1898"),d=n("308f"),f=(n("cab5"),n("5818")),p=n("bfa1"),g=n("fdcc"),m=n("7061"),v=n("b707"),b=n("2504"),y=n("9e74"),_=n("6d8e"),w=n("ef8e"),C=n("b78f"),S=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const x={Visible:new a["c"]("parameterHintsVisible",!1),MultipleSignatures:new a["c"]("parameterHintsMultipleSignatures",!1)};function O(e,t,n,i){return S(this,void 0,void 0,(function*(){const r=v["B"].ordered(e);for(const s of r)try{const r=yield s.provideSignatureHelp(e,t,i,n);if(r)return r}catch(o){Object(g["f"])(o)}}))}y["a"].registerCommand("_executeSignatureHelpProvider",(e,...t)=>S(void 0,void 0,void 0,(function*(){const[n,i,r]=t;Object(w["c"])(_["a"].isUri(n)),Object(w["c"])(m["a"].isIPosition(i)),Object(w["c"])("string"===typeof r||!r);const o=yield e.get(C["a"]).createModelReference(n);try{const e=yield O(o.object.textEditorModel,m["a"].lift(i),{triggerKind:v["C"].Invoke,isRetrigger:!1,triggerCharacter:r},b["a"].None);if(!e)return;return setTimeout(()=>e.dispose(),0),e.value}finally{o.dispose()}})));var k,L=n("5bd7"),E=n("303e"),D=n("b7d0"),I=n("5fe7"),M=n("3170"),T=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};(function(e){e.Default={type:0};class t{constructor(e,t){this.request=e,this.previouslyActiveHints=t,this.type=2}}e.Pending=t;class n{constructor(e){this.hints=e,this.type=1}}e.Active=n})(k||(k={}));class A extends r["a"]{constructor(e,t=A.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new d["b"]),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=k.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new r["d"]),this.triggerChars=new M["b"],this.retriggerChars=new M["b"],this.triggerId=0,this.editor=e,this.throttledDelayer=new I["a"](t),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(e=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(e=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(e=>this.onCursorChange(e))),this._register(this.editor.onDidChangeModelContent(e=>this.onModelContentChange())),this._register(v["B"].onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(e=>this.onDidType(e))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){2===this._state.type&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=k.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){const n=this.editor.getModel();if(!n||!v["B"].has(n))return;const i=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger(()=>this.doTrigger(i),t).catch(g["e"])}next(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=t%e===e-1,i=this.editor.getOption(74).cycle;!(e<2||n)||i?this.updateActiveSignature(n&&i?0:t+1):this.cancel()}previous(){if(1!==this.state.type)return;const e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=0===t,i=this.editor.getOption(74).cycle;!(e<2||n)||i?this.updateActiveSignature(n&&i?e-1:t-1):this.cancel()}updateActiveSignature(e){1===this.state.type&&(this.state=new k.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))}doTrigger(e){return T(this,void 0,void 0,(function*(){const t=1===this.state.type||2===this.state.type,n=this.getLastActiveHints();if(this.cancel(!0),0===this._pendingTriggers.length)return!1;const i=this._pendingTriggers.reduce(N);this._pendingTriggers=[];const r={triggerKind:i.triggerKind,triggerCharacter:i.triggerCharacter,isRetrigger:t,activeSignatureHelp:n};if(!this.editor.hasModel())return!1;const o=this.editor.getModel(),s=this.editor.getPosition();this.state=new k.Pending(Object(I["h"])(e=>O(o,s,r,e)),n);try{const t=yield this.state.request;return e!==this.triggerId?(null===t||void 0===t||t.dispose(),!1):t&&t.value.signatures&&0!==t.value.signatures.length?(this.state=new k.Active(t.value),this._lastSignatureHelpResult.value=t,this._onChangedHints.fire(this.state.hints),!0):(null===t||void 0===t||t.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1)}catch(a){return e===this.triggerId&&(this.state=k.Default),Object(g["e"])(a),!1}}))}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return 1===this.state.type||2===this.state.type||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars=new M["b"],this.retriggerChars=new M["b"];const e=this.editor.getModel();if(e)for(const t of v["B"].ordered(e)){for(const e of t.signatureHelpTriggerCharacters||[])this.triggerChars.add(e.charCodeAt(0)),this.retriggerChars.add(e.charCodeAt(0));for(const e of t.signatureHelpRetriggerCharacters||[])this.retriggerChars.add(e.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;const t=e.length-1,n=e.charCodeAt(t);(this.triggerChars.has(n)||this.isTriggered&&this.retriggerChars.has(n))&&this.trigger({triggerKind:v["C"].TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){"mouse"===e.source?this.cancel():this.isTriggered&&this.trigger({triggerKind:v["C"].ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:v["C"].ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(74).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}function N(e,t){switch(t.triggerKind){case v["C"].Invoke:return t;case v["C"].ContentChange:return e;case v["C"].TriggerCharacter:default:return t}}A.DEFAULT_DELAY=120;var P=n("3742"),j=n("561a"),R=n("9c41"),F=n("bf5b"),B=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},W=function(e,t){return function(n,i){t(n,i,e)}};const V=c["a"],z=Object(F["b"])("parameter-hints-next",j["b"].chevronDown,i["a"]("parameterHintsNextIcon","Icon for show next parameter hint.")),H=Object(F["b"])("parameter-hints-previous",j["b"].chevronUp,i["a"]("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let U=class e extends r["a"]{constructor(e,t,n,i){super(),this.editor=e,this.renderDisposeables=this._register(new r["b"]),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new p["a"]({editor:e},i,n)),this.model=this._register(new A(e)),this.keyVisible=x.Visible.bindTo(t),this.keyMultipleSignatures=x.MultipleSignatures.bindTo(t),this._register(this.model.onChangedHints(e=>{e?(this.show(),this.render(e)):this.hide()}))}createParameterHintDOMNodes(){const e=V(".editor-widget.parameter-hints-widget"),t=c["q"](e,V(".phwrapper"));t.tabIndex=-1;const n=c["q"](t,V(".controls")),i=c["q"](n,V(".button"+D["d"].asCSSSelector(H))),r=c["q"](n,V(".overloads")),o=c["q"](n,V(".button"+D["d"].asCSSSelector(z)));this._register(c["i"](i,"click",e=>{c["c"].stop(e),this.previous()})),this._register(c["i"](o,"click",e=>{c["c"].stop(e),this.next()}));const s=V(".body"),a=new h["a"](s,{});this._register(a),t.appendChild(a.getDomNode());const l=c["q"](s,V(".signature")),u=c["q"](s,V(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:l,overloads:r,docs:u,scrollbar:a},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(e=>{this.visible&&this.editor.layoutContentWidget(this)}));const f=()=>{if(!this.domNodes)return;const e=this.editor.getOption(41);this.domNodes.element.style.fontSize=e.fontSize+"px"};f(),this._register(d["c"].chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(e=>e.hasChanged(41)).on(f,null)),this._register(this.editor.onDidLayoutChange(e=>this.updateMaxHeight())),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(()=>{this.domNodes&&this.domNodes.element.classList.add("visible")},100),this.editor.layoutContentWidget(this))}hide(){this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes&&this.domNodes.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){var t;if(this.renderDisposeables.clear(),!this.domNodes)return;const n=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",n),this.keyMultipleSignatures.set(n),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const r=e.signatures[e.activeSignature];if(!r)return;const o=c["q"](this.domNodes.signature,V(".code")),s=this.editor.getOption(41);o.style.fontSize=s.fontSize+"px",o.style.fontFamily=s.fontFamily;const a=r.parameters.length>0,l=null!==(t=r.activeParameter)&&void 0!==t?t:e.activeParameter;if(a)this.renderParameters(o,r,l);else{const e=c["q"](o,V("span"));e.textContent=r.label}const h=r.parameters[l];if(null===h||void 0===h?void 0:h.documentation){const e=V("span.documentation");if("string"===typeof h.documentation)e.textContent=h.documentation;else{const t=this.renderMarkdownDocs(h.documentation);e.appendChild(t.element)}c["q"](this.domNodes.docs,V("p",{},e))}if(void 0===r.documentation);else if("string"===typeof r.documentation)c["q"](this.domNodes.docs,V("p",{},r.documentation));else{const e=this.renderMarkdownDocs(r.documentation);c["q"](this.domNodes.docs,e.element)}const d=this.hasDocs(r,h);if(this.domNodes.signature.classList.toggle("has-docs",d),this.domNodes.docs.classList.toggle("empty",!d),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,h){const e=this.getParameterLabel(r,l);this.announcedLabel!==e&&(u["a"](i["a"]("hint","{0}, hint",e)),this.announcedLabel=e)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){const t=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{var e;null===(e=this.domNodes)||void 0===e||e.scrollbar.scanDomNode()}}));return t.element.classList.add("markdown-docs"),t}hasDocs(e,t){return!!(t&&"string"===typeof t.documentation&&Object(w["a"])(t.documentation).length>0)||(!!(t&&"object"===typeof t.documentation&&Object(w["a"])(t.documentation).value.length>0)||(!!(e.documentation&&"string"===typeof e.documentation&&Object(w["a"])(e.documentation).length>0)||!!(e.documentation&&"object"===typeof e.documentation&&Object(w["a"])(e.documentation.value).length>0)))}renderParameters(e,t,n){const[i,r]=this.getParameterLabelOffsets(t,n),o=document.createElement("span");o.textContent=t.label.substring(0,i);const s=document.createElement("span");s.textContent=t.label.substring(i,r),s.className="parameter active";const a=document.createElement("span");a.textContent=t.label.substring(r),c["q"](e,o,s,a)}getParameterLabel(e,t){const n=e.parameters[t];return Array.isArray(n.label)?e.label.substring(n.label[0],n.label[1]):n.label}getParameterLabelOffsets(e,t){const n=e.parameters[t];if(n){if(Array.isArray(n.label))return n.label;if(n.label.length){const t=new RegExp(`(\\W|^)${Object(P["u"])(n.label)}(?=\\W|$)`,"g");t.test(e.label);const i=t.lastIndex-n.label.length;return i>=0?[i,t.lastIndex]:[0,0]}return[0,0]}return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}cancel(){this.model.cancel()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return e.ID}trigger(e){this.model.trigger(e,0)}updateMaxHeight(){if(!this.domNodes)return;const e=Math.max(this.editor.getLayoutInfo().height/4,250),t=e+"px";this.domNodes.element.style.maxHeight=t;const n=this.domNodes.element.getElementsByClassName("phwrapper");n.length&&(n[0].style.maxHeight=t)}};U.ID="editor.widget.parameterHintsWidget",U=B([W(1,a["b"]),W(2,L["a"]),W(3,f["a"])],U),Object(D["f"])((e,t)=>{const n=e.getColor(E["F"]);if(n){const i=e.type===R["a"].HIGH_CONTRAST?2:1;t.addRule(`.monaco-editor .parameter-hints-widget { border: ${i}px solid ${n}; }`),t.addRule(`.monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid ${n.transparent(.5)}; }`),t.addRule(`.monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid ${n.transparent(.5)}; }`)}const i=e.getColor(E["E"]);i&&t.addRule(`.monaco-editor .parameter-hints-widget { background-color: ${i}; }`);const r=e.getColor(E["Jc"]);r&&t.addRule(`.monaco-editor .parameter-hints-widget a { color: ${r}; }`);const o=e.getColor(E["G"]);o&&t.addRule(`.monaco-editor .parameter-hints-widget { color: ${o}; }`);const s=e.getColor(E["Hc"]);s&&t.addRule(`.monaco-editor .parameter-hints-widget code { background-color: ${s}; }`)});var q=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},$=function(e,t){return function(n,i){t(n,i,e)}};let K=class e extends r["a"]{constructor(e,t){super(),this.editor=e,this.widget=this._register(t.createInstance(U,this.editor))}static get(t){return t.getContribution(e.ID)}cancel(){this.widget.cancel()}previous(){this.widget.previous()}next(){this.widget.next()}trigger(e){this.widget.trigger(e)}};K.ID="editor.controller.parameterHints",K=q([$(1,o["a"])],K);class G extends l["b"]{constructor(){super({id:"editor.action.triggerParameterHints",label:i["a"]("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:s["a"].hasSignatureHelpProvider,kbOpts:{kbExpr:s["a"].editorTextFocus,primary:3082,weight:100}})}run(e,t){const n=K.get(t);n&&n.trigger({triggerKind:v["C"].Invoke})}}Object(l["l"])(K.ID,K),Object(l["j"])(G);const Y=175,Z=l["c"].bindToContribution(K.get);Object(l["k"])(new Z({id:"closeParameterHints",precondition:x.Visible,handler:e=>e.cancel(),kbOpts:{weight:Y,kbExpr:s["a"].focus,primary:9,secondary:[1033]}})),Object(l["k"])(new Z({id:"showPrevParameterHint",precondition:a["a"].and(x.Visible,x.MultipleSignatures),handler:e=>e.previous(),kbOpts:{weight:Y,kbExpr:s["a"].focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),Object(l["k"])(new Z({id:"showNextParameterHint",precondition:a["a"].and(x.Visible,x.MultipleSignatures),handler:e=>e.next(),kbOpts:{weight:Y,kbExpr:s["a"].focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},"5bd7":function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u}));var i=n("a666"),r=n("3742"),o=n("6d8e"),s=n("0a0f"),a=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const l=Object(s["c"])("openerService"),c=Object.freeze({_serviceBrand:void 0,registerOpener(){return i["a"].None},registerValidator(){return i["a"].None},registerExternalUriResolver(){return i["a"].None},setDefaultExternalOpener(){},registerExternalOpener(){return i["a"].None},open(){return a(this,void 0,void 0,(function*(){return!1}))},resolveExternalUri(e){return a(this,void 0,void 0,(function*(){return{resolved:e,dispose(){}}}))}});function u(e,t){return o["a"].isUri(e)?Object(r["s"])(e.scheme,t):Object(r["S"])(e,t+":")}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5cce":function(e,t){e.exports={version:"0.24.0"}},"5d08":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return n.e("chunk-2d238465").then(n.bind(null,"ff4c"))}})},"5d28":function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a}));var i=n("0f70"),r=n("e757"),o=n("30db");class s{constructor(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);let t=r["a"].getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left,this.posy-=t.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class a{constructor(e,t=0,n=0){if(this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=n,this.deltaX=t,e){let t=e,n=e;if("undefined"!==typeof t.wheelDeltaY)this.deltaY=t.wheelDeltaY/120;else if("undefined"!==typeof n.VERTICAL_AXIS&&n.axis===n.VERTICAL_AXIS)this.deltaY=-n.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?i["g"]&&!o["f"]?this.deltaY=-e.deltaY/3:this.deltaY=-e.deltaY:this.deltaY=-e.deltaY/40}if("undefined"!==typeof t.wheelDeltaX)i["h"]&&o["j"]?this.deltaX=-t.wheelDeltaX/120:this.deltaX=t.wheelDeltaX/120;else if("undefined"!==typeof n.HORIZONTAL_AXIS&&n.axis===n.HORIZONTAL_AXIS)this.deltaX=-e.detail/3;else if("wheel"===e.type){const t=e;t.deltaMode===t.DOM_DELTA_LINE?i["g"]&&!o["f"]?this.deltaX=-e.deltaX/3:this.deltaX=-e.deltaX:this.deltaX=-e.deltaX/40}0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation()}}},"5d70":function(e,t,n){},"5d75":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("0a0f");const r=Object(i["c"])("telemetryService")},"5e07":function(e,t,n){},"5e76":function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return c}));var i=n("d51b"),r=n("726e"),o=new i["a"](50);function s(e){if("string"===typeof e){var t=o.get(e);return t&&t.image}return e}function a(e,t,n,i,s){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var a=o.get(e),u={hostEl:n,cb:i,cbPayload:s};return a?(t=a.image,!c(t)&&a.pending.push(u)):(t=r["d"].loadImage(e,l,l),t.__zrImageSrc=e,o.put(e,t.__cachedImgObj={image:t,pending:[u]})),t}return e}return t}function l(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function c(e){return e&&e.width&&e.height}},"5e77":function(e,t,n){var i=n("83ab"),r=n("1a2d"),o=Function.prototype,s=i&&Object.getOwnPropertyDescriptor,a=r(o,"name"),l=a&&"something"===function(){}.name,c=a&&(!i||i&&s(o,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},"5e7e":function(e,t,n){"use strict";var i,r,o,s,a=n("23e7"),l=n("c430"),c=n("605d"),u=n("da84"),h=n("c65b"),d=n("cb2d"),f=n("d2bb"),p=n("d44e"),g=n("2626"),m=n("59ed"),v=n("1626"),b=n("861d"),y=n("19aa"),_=n("4840"),w=n("2cf49").set,C=n("b575"),S=n("44de"),x=n("e667"),O=n("01b4"),k=n("69f3"),L=n("d256"),E=n("4738"),D=n("f069"),I="Promise",M=E.CONSTRUCTOR,T=E.REJECTION_EVENT,A=E.SUBCLASSING,N=k.getterFor(I),P=k.set,j=L&&L.prototype,R=L,F=j,B=u.TypeError,W=u.document,V=u.process,z=D.f,H=z,U=!!(W&&W.createEvent&&u.dispatchEvent),q="unhandledrejection",$="rejectionhandled",K=0,G=1,Y=2,Z=1,X=2,Q=function(e){var t;return!(!b(e)||!v(t=e.then))&&t},J=function(e,t){var n,i,r,o=t.value,s=t.state==G,a=s?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{a?(s||(t.rejection===X&&re(t),t.rejection=Z),!0===a?n=o:(u&&u.enter(),n=a(o),u&&(u.exit(),r=!0)),n===e.promise?c(B("Promise-chain cycle")):(i=Q(n))?h(i,n,l,c):l(n)):c(o)}catch(d){u&&!r&&u.exit(),c(d)}},ee=function(e,t){e.notified||(e.notified=!0,C((function(){var n,i=e.reactions;while(n=i.get())J(n,e);e.notified=!1,t&&!e.rejection&&ne(e)})))},te=function(e,t,n){var i,r;U?(i=W.createEvent("Event"),i.promise=t,i.reason=n,i.initEvent(e,!1,!0),u.dispatchEvent(i)):i={promise:t,reason:n},!T&&(r=u["on"+e])?r(i):e===q&&S("Unhandled promise rejection",n)},ne=function(e){h(w,u,(function(){var t,n=e.facade,i=e.value,r=ie(e);if(r&&(t=x((function(){c?V.emit("unhandledRejection",i,n):te(q,n,i)})),e.rejection=c||ie(e)?X:Z,t.error))throw t.value}))},ie=function(e){return e.rejection!==Z&&!e.parent},re=function(e){h(w,u,(function(){var t=e.facade;c?V.emit("rejectionHandled",t):te($,t,e.value)}))},oe=function(e,t,n){return function(i){e(t,i,n)}},se=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=Y,ee(e,!0))},ae=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw B("Promise can't be resolved itself");var i=Q(t);i?C((function(){var n={done:!1};try{h(i,t,oe(ae,n,e),oe(se,n,e))}catch(r){se(n,r,e)}})):(e.value=t,e.state=G,ee(e,!1))}catch(r){se({done:!1},r,e)}}};if(M&&(R=function(e){y(this,F),m(e),h(i,this);var t=N(this);try{e(oe(ae,t),oe(se,t))}catch(n){se(t,n)}},F=R.prototype,i=function(e){P(this,{type:I,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:K,value:void 0})},i.prototype=d(F,"then",(function(e,t){var n=N(this),i=z(_(this,R));return n.parent=!0,i.ok=!v(e)||e,i.fail=v(t)&&t,i.domain=c?V.domain:void 0,n.state==K?n.reactions.add(i):C((function(){J(i,n)})),i.promise})),r=function(){var e=new i,t=N(e);this.promise=e,this.resolve=oe(ae,t),this.reject=oe(se,t)},D.f=z=function(e){return e===R||e===o?new r(e):H(e)},!l&&v(L)&&j!==Object.prototype)){s=j.then,A||d(j,"then",(function(e,t){var n=this;return new R((function(e,t){h(s,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete j.constructor}catch(le){}f&&f(j,F)}a({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:R}),p(R,I,!1,!0),g(I)},"5e81":function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("9ab4"),r=n("6cb7"),o=n("b12f"),s=n("07fd"),a=n("f72b"),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return Object(i["a"])(t,e),t.prototype.init=function(t,n,i){e.prototype.init.call(this,t,n,i),this._sourceManager=new a["a"](this),Object(a["b"])(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Object(a["b"])(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:s["a"]},t}(r["a"]),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return Object(i["a"])(t,e),t.type="dataset",t}(o["a"]);function u(e){e.registerComponentModel(l),e.registerComponentView(c)}},"5ed2":function(e,t,n){"use strict";n.r(t),n.d(t,"getOccurrencesAtPosition",(function(){return E}));var i=n("dff7"),r=n("e8e3"),o=n("5fe7"),s=n("2504"),a=n("fdcc"),l=n("a666"),c=n("b2cc"),u=n("6a89"),h=n("c101"),d=n("3352"),f=n("b57f"),p=n("b707"),g=n("4fc3"),m=n("303e"),v=n("b7d0"),b=n("3813"),y=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},_=function(e,t){return function(n,i){t(n,i,e)}};const w=Object(m["wc"])("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),C=Object(m["wc"])("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),S=Object(m["wc"])("editor.wordHighlightBorder",{light:null,dark:null,hc:m["b"]},i["a"]("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),x=Object(m["wc"])("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:m["b"]},i["a"]("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),O=Object(m["wc"])("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),k=Object(m["wc"])("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),L=new g["c"]("hasWordHighlights",!1);function E(e,t,n){const i=p["i"].ordered(e);return Object(o["j"])(i.map(i=>()=>Promise.resolve(i.provideDocumentHighlights(e,t,n)).then(void 0,a["f"])),r["n"])}class D{constructor(e,t,n){this._wordRange=this._getCurrentWordRange(e,t),this.result=Object(o["h"])(i=>this._compute(e,t,n,i))}_getCurrentWordRange(e,t){const n=e.getWordAtPosition(t.getPosition());return n?new u["a"](t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):null}isValid(e,t,n){const i=t.startLineNumber,r=t.startColumn,o=t.endColumn,s=this._getCurrentWordRange(e,t);let a=Boolean(this._wordRange&&this._wordRange.equalsRange(s));for(let l=0,c=n.length;!a&&l<c;l++){let t=e.getDecorationRange(n[l]);t&&t.startLineNumber===i&&t.startColumn<=r&&t.endColumn>=o&&(a=!0)}return a}cancel(){this.result.cancel()}}class I extends D{_compute(e,t,n,i){return E(e,t.getPosition(),i).then(e=>e||[])}}class M extends D{constructor(e,t,n){super(e,t,n),this._selectionIsEmpty=t.isEmpty()}_compute(e,t,n,i){return Object(o["n"])(250,i).then(()=>{if(!t.isEmpty())return[];const i=e.getWordAtPosition(t.getPosition());if(!i||i.word.length>1e3)return[];const r=e.findMatches(i.word,!0,!1,!0,n,!1);return r.map(e=>({range:e.range,kind:p["h"].Text}))})}isValid(e,t,n){const i=t.isEmpty();return this._selectionIsEmpty===i&&super.isValid(e,t,n)}}function T(e,t,n){return p["i"].has(e)?new I(e,t,n):new M(e,t,n)}Object(c["n"])("_executeDocumentHighlights",(e,t)=>E(e,t,s["a"].None));class A{constructor(e,t){this.toUnhook=new l["b"],this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this._hasWordHighlights=L.bindTo(t),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(70),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(e=>{this._ignorePositionChangeEvent||this.occurrencesHighlight&&this._onPositionChanged(e)})),this.toUnhook.add(e.onDidChangeModelContent(e=>{this._stopAll()})),this.toUnhook.add(e.onDidChangeConfiguration(e=>{let t=this.editor.getOption(70);this.occurrencesHighlight!==t&&(this.occurrencesHighlight=t,this._stopAll())})),this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}hasDecorations(){return this._decorationIds.length>0}restore(){this.occurrencesHighlight&&this._run()}_getSortedHighlights(){return r["e"](this._decorationIds.map(e=>this.model.getDecorationRange(e)).sort(u["a"].compareRangesUsingStarts))}moveNext(){let e=this._getSortedHighlights(),t=e.findIndex(e=>e.containsPosition(this.editor.getPosition())),n=(t+1)%e.length,i=e[n];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);const t=this._getWord();if(t){const r=this.editor.getModel().getLineContent(i.startLineNumber);Object(b["a"])(`${r}, ${n+1} of ${e.length} for '${t.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){let e=this._getSortedHighlights(),t=e.findIndex(e=>e.containsPosition(this.editor.getPosition())),n=(t-1+e.length)%e.length,i=e[n];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(i.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(i);const t=this._getWord();if(t){const r=this.editor.getModel().getLineContent(i.startLineNumber);Object(b["a"])(`${r}, ${n+1} of ${e.length} for '${t.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeDecorations(){this._decorationIds.length>0&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))}_stopAll(){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)}_onPositionChanged(e){this.occurrencesHighlight&&3===e.reason?this._run():this._stopAll()}_getWord(){let e=this.editor.getSelection(),t=e.startLineNumber,n=e.startColumn;return this.model.getWordAtPosition({lineNumber:t,column:n})}_run(){let e=this.editor.getSelection();if(e.startLineNumber!==e.endLineNumber)return void this._stopAll();let t=e.startColumn,n=e.endColumn;const i=this._getWord();if(!i||i.startColumn>t||i.endColumn<n)return void this._stopAll();const r=this.workerRequest&&this.workerRequest.isValid(this.model,e,this._decorationIds);if(this.lastCursorPositionChangeTime=(new Date).getTime(),r)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();let e=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=T(this.model,this.editor.getSelection(),this.editor.getOption(115)),this.workerRequest.result.then(t=>{e===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=t||[],this._beginRenderDecorations())},a["e"])}}_beginRenderDecorations(){let e=(new Date).getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},t-e)}renderDecorations(){this.renderDecorationsTimer=-1;let e=[];for(const t of this.workerRequestValue)t.range&&e.push({range:t.range,options:A._getDecorationOptions(t.kind)});this._decorationIds=this.editor.deltaDecorations(this._decorationIds,e),this._hasWordHighlights.set(this.hasDecorations())}static _getDecorationOptions(e){return e===p["h"].Write?this._WRITE_OPTIONS:e===p["h"].Text?this._TEXT_OPTIONS:this._REGULAR_OPTIONS}dispose(){this._stopAll(),this.toUnhook.dispose()}}A._WRITE_OPTIONS=f["a"].register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Object(v["g"])(k),position:d["d"].Center}}),A._TEXT_OPTIONS=f["a"].register({description:"selection-highlight",stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(v["g"])(m["jc"]),position:d["d"].Center}}),A._REGULAR_OPTIONS=f["a"].register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:Object(v["g"])(O),position:d["d"].Center}});let N=class e extends l["a"]{constructor(e,t){super(),this.wordHighlighter=null;const n=()=>{e.hasModel()&&(this.wordHighlighter=new A(e,t))};this._register(e.onDidChangeModel(e=>{this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),n()})),n()}static get(t){return t.getContribution(e.ID)}saveViewState(){return!(!this.wordHighlighter||!this.wordHighlighter.hasDecorations())}moveNext(){this.wordHighlighter&&this.wordHighlighter.moveNext()}moveBack(){this.wordHighlighter&&this.wordHighlighter.moveBack()}restoreViewState(e){this.wordHighlighter&&e&&this.wordHighlighter.restore()}dispose(){this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),super.dispose()}};N.ID="editor.contrib.wordHighlighter",N=y([_(1,g["b"])],N);class P extends c["b"]{constructor(e,t){super(t),this._isNext=e}run(e,t){const n=N.get(t);n&&(this._isNext?n.moveNext():n.moveBack())}}class j extends P{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:i["a"]("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:L,kbOpts:{kbExpr:h["a"].editorTextFocus,primary:65,weight:100}})}}class R extends P{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:i["a"]("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:L,kbOpts:{kbExpr:h["a"].editorTextFocus,primary:1089,weight:100}})}}class F extends c["b"]{constructor(){super({id:"editor.action.wordHighlight.trigger",label:i["a"]("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:L.toNegated(),kbOpts:{kbExpr:h["a"].editorTextFocus,primary:0,weight:100}})}run(e,t,n){const i=N.get(t);i&&i.restoreViewState(!0)}}Object(c["l"])(N.ID,N),Object(c["j"])(j),Object(c["j"])(R),Object(c["j"])(F),Object(v["f"])((e,t)=>{const n=e.getColor(m["T"]);n&&(t.addRule(`.monaco-editor .focused .selectionHighlight { background-color: ${n}; }`),t.addRule(`.monaco-editor .selectionHighlight { background-color: ${n.transparent(.5)}; }`));const i=e.getColor(w);i&&t.addRule(`.monaco-editor .wordHighlight { background-color: ${i}; }`);const r=e.getColor(C);r&&t.addRule(`.monaco-editor .wordHighlightStrong { background-color: ${r}; }`);const o=e.getColor(m["U"]);o&&t.addRule(`.monaco-editor .selectionHighlight { border: 1px ${"hc"===e.type?"dotted":"solid"} ${o}; box-sizing: border-box; }`);const s=e.getColor(S);s&&t.addRule(`.monaco-editor .wordHighlight { border: 1px ${"hc"===e.type?"dashed":"solid"} ${s}; box-sizing: border-box; }`);const a=e.getColor(x);a&&t.addRule(`.monaco-editor .wordHighlightStrong { border: 1px ${"hc"===e.type?"dashed":"solid"} ${a}; box-sizing: border-box; }`)})},"5eed":function(e,t,n){var i=n("d256"),r=n("1c7e"),o=n("4738").CONSTRUCTOR;e.exports=o||!r((function(e){i.all(e).then(void 0,(function(){}))}))},"5f02":function(e,t,n){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},"5fe7":function(e,t,n){"use strict";n.d(t,"k",(function(){return a})),n.d(t,"h",(function(){return l})),n.d(t,"l",(function(){return c})),n.d(t,"a",(function(){return h})),n.d(t,"f",(function(){return d})),n.d(t,"n",(function(){return f})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return g})),n.d(t,"g",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"e",(function(){return b})),n.d(t,"m",(function(){return y})),n.d(t,"b",(function(){return _})),n.d(t,"d",(function(){return w}));var i=n("2504"),r=n("fdcc"),o=n("a666"),s=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function a(e){return!!e&&"function"===typeof e.then}function l(e){const t=new i["b"],n=e(t.token),o=new Promise((e,i)=>{const o=t.token.onCancellationRequested(()=>{o.dispose(),t.dispose(),i(Object(r["a"])())});Promise.resolve(n).then(n=>{o.dispose(),t.dispose(),e(n)},e=>{o.dispose(),t.dispose(),i(e)})});return new class{cancel(){t.cancel()}then(e,t){return o.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return o.finally(e)}}}function c(e,t,n){return Promise.race([e,new Promise(e=>t.onCancellationRequested(()=>e(n)))])}class u{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const e=()=>{this.queuedPromise=null;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise(t=>{this.activePromise.then(e,e).then(t)})}return new Promise((e,t)=>{this.queuedPromise.then(e,t)})}return this.activePromise=e(),new Promise((e,t)=>{this.activePromise.then(t=>{this.activePromise=null,e(t)},e=>{this.activePromise=null,t(e)})})}}class h{constructor(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,t=this.defaultDelay){return this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const e=this.task;return this.task=null,e()}})),this.timeout=setTimeout(()=>{this.timeout=null,this.doResolve&&this.doResolve(null)},t),this.completionPromise}isTriggered(){return null!==this.timeout}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(Object(r["a"])()),this.completionPromise=null)}cancelTimeout(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancel()}}class d{constructor(e){this.delayer=new h(e),this.throttler=new u}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}dispose(){this.delayer.dispose()}}function f(e,t){return t?new Promise((n,i)=>{const o=setTimeout(()=>{s.dispose(),n()},e),s=t.onCancellationRequested(()=>{clearTimeout(o),s.dispose(),i(Object(r["a"])())})}):l(t=>f(e,t))}function p(e,t=0){const n=setTimeout(e,t);return Object(o["i"])(()=>clearTimeout(n))}function g(e,t=(e=>!!e),n=null){let i=0;const r=e.length,o=()=>{if(i>=r)return Promise.resolve(n);const s=e[i++],a=Promise.resolve(s());return a.then(e=>t(e)?Promise.resolve(e):o())};return o()}class m{constructor(e,t){this._token=-1,"function"===typeof e&&"number"===typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}class v{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}class b{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}let y;(function(){if("function"!==typeof requestIdleCallback||"function"!==typeof cancelIdleCallback){const e=Object.freeze({didTimeout:!0,timeRemaining(){return 15}});y=t=>{const n=setTimeout(()=>t(e));let i=!1;return{dispose(){i||(i=!0,clearTimeout(n))}}}}else y=(e,t)=>{const n=requestIdleCallback(e,"number"===typeof t?{timeout:t}:void 0);let i=!1;return{dispose(){i||(i=!0,cancelIdleCallback(n))}}}})();class _{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(t){this._error=t}finally{this._didRun=!0}},this._handle=y(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}}var w;(function(e){function t(e){return s(this,void 0,void 0,(function*(){let t=void 0;const n=yield Promise.all(e.map(e=>e.then(e=>e,e=>{t||(t=e)})));if("undefined"!==typeof t)throw t;return n}))}e.settled=t})(w||(w={}))},"605d":function(e,t,n){var i=n("c6b6"),r=n("da84");e.exports="process"==i(r.process)},6062:function(e,t,n){n("1c59")},6069:function(e,t,n){var i=n("6c59"),r=n("605d");e.exports=!i&&!r&&"object"==typeof window&&"object"==typeof document},"607c":function(e,t,n){},"607d":function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"a",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"g",(function(){return g})),n.d(t,"d",(function(){return m}));var i=n("22d1"),r=n("65ed"),o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,s=[],a=i["a"].browser.firefox&&+i["a"].browser.version.split(".")[0]<39;function l(e,t,n,i){return n=n||{},i?c(e,t,n):a&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):c(e,t,n),n}function c(e,t,n){if(i["a"].domSupported&&e.getBoundingClientRect){var o=t.clientX,a=t.clientY;if(Object(r["b"])(e)){var l=e.getBoundingClientRect();return n.zrX=o-l.left,void(n.zrY=a-l.top)}if(Object(r["c"])(s,e,o,a))return n.zrX=s[0],void(n.zrY=s[1])}n.zrX=n.zrY=0}function u(e){return e||window.event}function h(e,t,n){if(t=u(t),null!=t.zrX)return t;var i=t.type,r=i&&i.indexOf("touch")>=0;if(r){var s="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];s&&l(e,s,t,n)}else{l(e,t,t,n);var a=d(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var c=t.button;return null==t.which&&void 0!==c&&o.test(t.type)&&(t.which=1&c?1:2&c?3:4&c?2:0),t}function d(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,i=e.deltaY;if(null==n||null==i)return t;var r=0!==i?Math.abs(i):Math.abs(n),o=i>0?-1:i<0?1:n>0?-1:1;return 3*r*o}function f(e,t,n,i){e.addEventListener(t,n,i)}function p(e,t,n,i){e.removeEventListener(t,n,i)}var g=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function m(e){return 2===e.which||3===e.which}},"60da":function(e,t,n){"use strict";var i=n("83ab"),r=n("e330"),o=n("c65b"),s=n("d039"),a=n("df75"),l=n("7418"),c=n("d1e7"),u=n("7b0b"),h=n("44ad"),d=Object.assign,f=Object.defineProperty,p=r([].concat);e.exports=!d||s((function(){if(i&&1!==d({b:1},d(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=d({},e)[n]||a(d({},t)).join("")!=r}))?function(e,t){var n=u(e),r=arguments.length,s=1,d=l.f,f=c.f;while(r>s){var g,m=h(arguments[s++]),v=d?p(a(m),d(m)):a(m),b=v.length,y=0;while(b>y)g=v[y++],i&&!o(f,m,g)||(n[g]=m[g])}return n}:d},"60f1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.legendConfig=void 0;var i={show:!0,orient:"horizontal",left:"auto",right:"auto",top:"auto",bottom:"auto",itemGap:10,iconWidth:25,iconHeight:10,selectAble:!0,data:[],textStyle:{fontFamily:"Arial",fontSize:13,fill:"#000"},iconStyle:{},textUnselectedStyle:{fontFamily:"Arial",fontSize:13,fill:"#999"},iconUnselectedStyle:{fill:"#999"},rLevel:20,animationCurve:"easeOutCubic",animationFrame:50};t.legendConfig=i},"60f7":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.legend=h;var r=i(n("9523")),o=i(n("278c")),s=i(n("7037")),a=n("18ad"),l=n("5557"),c=n("9d85"),u=n("becb");function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.legend;n?(n=(0,u.deepMerge)((0,l.deepClone)(c.legendConfig,!0),n),n=d(n),n=f(n,t,e),n=p(n,e),n=v(n,e),n=[n]):n=[],(0,a.doUpdate)({chart:e,series:n,key:"legendIcon",getGraphConfig:E}),(0,a.doUpdate)({chart:e,series:n,key:"legendText",getGraphConfig:M})}function d(e){var t=e.data;return e.data=t.map((function(e){var t=(0,s["default"])(e);return"string"===t?{name:e}:"object"===t?e:{name:""}})),e}function f(e,t,n){var i=t.series,r=n.legendStatus,o=e.data.filter((function(e){var t=e.name,n=i.find((function(e){var n=e.name;return t===n}));return!!n&&(e.color||(e.color=n.color),e.icon||(e.icon=n.type),e)}));return r&&r.length===e.data.length||(r=new Array(e.data.length).fill(!0)),o.forEach((function(e,t){return e.status=r[t]})),e.data=o,n.legendStatus=r,e}function p(e,t){var n=t.render.ctx,i=e.data,r=e.textStyle,o=e.textUnselectedStyle;return i.forEach((function(e){var t=e.status,i=e.name;e.textWidth=g(n,i,t?r:o)})),e}function g(e,t,n){return e.font=m(n),e.measureText(t).width}function m(e){var t=e.fontFamily,n=e.fontSize;return"".concat(n,"px ").concat(t)}function v(e,t){var n=e.orient;return"vertical"===n?x(e,t):b(e,t),e}function b(e,t){var n=e.iconHeight,i=e.itemGap,r=y(e,t),o=r.map((function(n){return w(n,e,t)})),s=C(e,t),a={textAlign:"left",textBaseline:"middle"};r.forEach((function(e,t){return e.forEach((function(e){var r=e.iconPosition,l=e.textPosition,c=o[t],u=s+t*(i+n);e.iconPosition=S(r,[c,u]),e.textPosition=S(l,[c,u]),e.align=a}))}))}function y(e,t){var n=e.data,i=e.iconWidth,r=t.render.area[0],o=0,s=[[]];return n.forEach((function(t,n){var a=_(o,n,e),l=a+i+5+t.textWidth;l>=r&&(o=n,a=_(o,n,e),s.push([])),t.iconPosition=[a,0],t.textPosition=[a+i+5,0],s.slice(-1)[0].push(t)})),s}function _(e,t,n){var i=n.data,r=n.iconWidth,o=n.itemGap,s=i.slice(e,t);return(0,u.mulAdd)(s.map((function(e){var t=e.textWidth;return t})))+(t-e)*(o+5+r)}function w(e,t,n){var i=t.left,r=t.right,o=t.iconWidth,s=t.itemGap,a=n.render.area[0],l=e.length,c=(0,u.mulAdd)(e.map((function(e){var t=e.textWidth;return t})))+l*(5+o)+(l-1)*s,h=[i,r].findIndex((function(e){return"auto"!==e}));return-1===h?(a-c)/2:0===h?"number"===typeof i?i:parseInt(i)/100*a:("number"!==typeof r&&(r=parseInt(r)/100*a),a-(c+r))}function C(e,t){var n=e.top,i=e.bottom,r=e.iconHeight,o=t.render.area[1],s=[n,i].findIndex((function(e){return"auto"!==e})),a=r/2;if(-1===s){var l=t.gridArea,c=l.y,u=l.h;return c+u+45-a}return 0===s?"number"===typeof n?n-a:parseInt(n)/100*o-a:("number"!==typeof i&&(i=parseInt(i)/100*o),o-i-a)}function S(e,t){var n=(0,o["default"])(e,2),i=n[0],r=n[1],s=(0,o["default"])(t,2),a=s[0],l=s[1];return[i+a,r+l]}function x(e,t){var n=O(e,t),i=(0,o["default"])(n,2),r=i[0],s=i[1],a=k(e,t);L(e,r);var l={textAlign:"left",textBaseline:"middle"};e.data.forEach((function(e){var t=e.textPosition,n=e.iconPosition;e.textPosition=S(t,[s,a]),e.iconPosition=S(n,[s,a]),e.align=l}))}function O(e,t){var n=e.left,i=e.right,r=t.render.area[0],o=[n,i].findIndex((function(e){return"auto"!==e}));if(-1===o)return[!0,r-10];var s=[n,i][o];return"number"!==typeof s&&(s=parseInt(s)/100*r),[Boolean(o),s]}function k(e,t){var n=e.iconHeight,i=e.itemGap,r=e.data,o=e.top,s=e.bottom,a=t.render.area[1],l=r.length,c=l*n+(l-1)*i,u=[o,s].findIndex((function(e){return"auto"!==e}));if(-1===u)return(a-c)/2;var h=[o,s][u];return"number"!==typeof h&&(h=parseInt(h)/100*a),1===u&&(h=a-h-c),h}function L(e,t){var n=e.data,i=e.iconWidth,r=e.iconHeight,o=e.itemGap,s=r/2;n.forEach((function(e,n){var a=e.textWidth,l=(r+o)*n+s,c=t?0-i:0,u=t?c-5-a:i+5;e.iconPosition=[c,l],e.textPosition=[u,l]}))}function E(e,t){var n=e.data,i=e.selectAble,o=e.animationCurve,s=e.animationFrame,a=e.rLevel;return n.map((function(n,l){return(0,r["default"])({name:"line"===n.icon?"lineIcon":"rect",index:a,visible:e.show,hover:i,click:i,animationCurve:o,animationFrame:s,shape:D(e,l),style:I(e,l)},"click",P(e,l,t))}))}function D(e,t){var n=e.data,i=e.iconWidth,r=e.iconHeight,s=(0,o["default"])(n[t].iconPosition,2),a=s[0],l=s[1],c=r/2;return{x:a,y:l-c,w:i,h:r}}function I(e,t){var n=e.data,i=e.iconStyle,r=e.iconUnselectedStyle,o=n[t],s=o.status,a=o.color,l=s?i:r;return(0,u.deepMerge)({fill:a},l)}function M(e,t){var n=e.data,i=e.selectAble,r=e.animationCurve,o=e.animationFrame,s=e.rLevel;return n.map((function(n,a){return{name:"text",index:s,visible:e.show,hover:i,animationCurve:r,animationFrame:o,hoverRect:N(e,a),shape:T(e,a),style:A(e,a),click:P(e,a,t)}}))}function T(e,t){var n=e.data[t],i=n.textPosition,r=n.name;return{content:r,position:i}}function A(e,t){var n=e.textStyle,i=e.textUnselectedStyle,r=e.data[t],o=r.status,s=r.align,a=o?n:i;return(0,u.deepMerge)((0,l.deepClone)(a,!0),s)}function N(e,t){var n=e.textStyle,i=e.textUnselectedStyle,r=e.data[t],s=r.status,a=(0,o["default"])(r.textPosition,2),l=a[0],c=a[1],u=r.textWidth,h=s?n:i,d=h.fontSize;return[l,c-d/2,u,d]}function P(e,t,n){var i=e.data[t].name;return function(){var e=n.chart,r=e.legendStatus,o=e.option,s=!r[t],a=o.series.find((function(e){var t=e.name;return t===i}));a.show=s,r[t]=s,n.chart.setOption(o)}}},6155:function(e,t,n){const i=n("4d84");e.exports.NumberAllocator=i},"625e":function(e,t,n){"use strict";n.d(t,"f",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"a",(function(){return g})),n.d(t,"c",(function(){return b}));var i=n("9ab4"),r=n("6d8b"),o=".",s="___EC__COMPONENT__CONTAINER___",a="___EC__EXTENDED_CLASS___";function l(e){var t={main:"",sub:""};if(e){var n=e.split(o);t.main=n[0]||"",t.sub=n[1]||""}return t}function c(e){r["assert"](/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function u(e){return!(!e||!e[a])}function h(e,t){e.$constructor=e,e.extend=function(e){var t,n=this;return d(n)?t=function(e){function t(){return e.apply(this,arguments)||this}return Object(i["a"])(t,e),t}(n):(t=function(){(e.$constructor||n).apply(this,arguments)},r["inherits"](t,this)),r["extend"](t.prototype,e),t[a]=!0,t.extend=this.extend,t.superCall=m,t.superApply=v,t.superClass=n,t}}function d(e){return r["isFunction"](e)&&/^class\s/.test(Function.prototype.toString.call(e))}function f(e,t){e.extend=t.extend}var p=Math.round(10*Math.random());function g(e){var t=["__\0is_clz",p++].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function m(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,n)}function v(e,t,n){return this.superClass.prototype[t].apply(e,n)}function b(e){var t={};function n(e){var n=t[e.main];return n&&n[s]||(n=t[e.main]={},n[s]=!0),n}e.registerClass=function(e){var i=e.type||e.prototype.type;if(i){c(i),e.prototype.type=i;var r=l(i);if(r.sub){if(r.sub!==s){var o=n(r);o[r.sub]=e}}else t[r.main]=e}return e},e.getClass=function(e,n,i){var r=t[e];if(r&&r[s]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return r},e.getClassesByMainType=function(e){var n=l(e),i=[],o=t[n.main];return o&&o[s]?r["each"](o,(function(e,t){t!==s&&i.push(e)})):i.push(o),i},e.hasClass=function(e){var n=l(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return r["each"](t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=l(e),i=t[n.main];return i&&i[s]}}},"62bd":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("308f");const r=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new i["b"],this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"62fd":function(e,t,n){},6374:function(e,t,n){var i=n("da84"),r=Object.defineProperty;e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},"63f00":function(e,t,n){"use strict";const i=n("2fae"),r=Symbol("max"),o=Symbol("length"),s=Symbol("lengthCalculator"),a=Symbol("allowStale"),l=Symbol("maxAge"),c=Symbol("dispose"),u=Symbol("noDisposeOnSet"),h=Symbol("lruList"),d=Symbol("cache"),f=Symbol("updateAgeOnGet"),p=()=>1;class g{constructor(e){if("number"===typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!==typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[r]=e.max||1/0;const t=e.length||p;if(this[s]="function"!==typeof t?p:t,this[a]=e.stale||!1,e.maxAge&&"number"!==typeof e.maxAge)throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0,this[c]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[f]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!==typeof e||e<0)throw new TypeError("max must be a non-negative number");this[r]=e||1/0,b(this)}get max(){return this[r]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!==typeof e)throw new TypeError("maxAge must be a non-negative number");this[l]=e,b(this)}get maxAge(){return this[l]}set lengthCalculator(e){"function"!==typeof e&&(e=p),e!==this[s]&&(this[s]=e,this[o]=0,this[h].forEach(e=>{e.length=this[s](e.value,e.key),this[o]+=e.length})),b(this)}get lengthCalculator(){return this[s]}get length(){return this[o]}get itemCount(){return this[h].length}rforEach(e,t){t=t||this;for(let n=this[h].tail;null!==n;){const i=n.prev;w(this,e,n,t),n=i}}forEach(e,t){t=t||this;for(let n=this[h].head;null!==n;){const i=n.next;w(this,e,n,t),n=i}}keys(){return this[h].toArray().map(e=>e.key)}values(){return this[h].toArray().map(e=>e.value)}reset(){this[c]&&this[h]&&this[h].length&&this[h].forEach(e=>this[c](e.key,e.value)),this[d]=new Map,this[h]=new i,this[o]=0}dump(){return this[h].map(e=>!v(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[h]}set(e,t,n){if(n=n||this[l],n&&"number"!==typeof n)throw new TypeError("maxAge must be a number");const i=n?Date.now():0,a=this[s](t,e);if(this[d].has(e)){if(a>this[r])return y(this,this[d].get(e)),!1;const s=this[d].get(e),l=s.value;return this[c]&&(this[u]||this[c](e,l.value)),l.now=i,l.maxAge=n,l.value=t,this[o]+=a-l.length,l.length=a,this.get(e),b(this),!0}const f=new _(e,t,a,i,n);return f.length>this[r]?(this[c]&&this[c](e,t),!1):(this[o]+=f.length,this[h].unshift(f),this[d].set(e,this[h].head),b(this),!0)}has(e){if(!this[d].has(e))return!1;const t=this[d].get(e).value;return!v(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[h].tail;return e?(y(this,e),e.value):null}del(e){y(this,this[d].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const i=e[n],r=i.e||0;if(0===r)this.set(i.k,i.v);else{const e=r-t;e>0&&this.set(i.k,i.v,e)}}}prune(){this[d].forEach((e,t)=>m(this,t,!1))}}const m=(e,t,n)=>{const i=e[d].get(t);if(i){const t=i.value;if(v(e,t)){if(y(e,i),!e[a])return}else n&&(e[f]&&(i.value.now=Date.now()),e[h].unshiftNode(i));return t.value}},v=(e,t)=>{if(!t||!t.maxAge&&!e[l])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[l]&&n>e[l]},b=e=>{if(e[o]>e[r])for(let t=e[h].tail;e[o]>e[r]&&null!==t;){const n=t.prev;y(e,t),t=n}},y=(e,t)=>{if(t){const n=t.value;e[c]&&e[c](n.key,n.value),e[o]-=n.length,e[d].delete(n.key),e[h].removeNode(t)}};class _{constructor(e,t,n,i,r){this.key=e,this.value=t,this.length=n,this.now=i,this.maxAge=r||0}}const w=(e,t,n,i)=>{let r=n.value;v(e,r)&&(y(e,n),e[a]||(r=void 0)),r&&t.call(i,r.value,r.key,e)};e.exports=g},6424:function(e,t,n){"use strict";function i(e,t,n){let i=null,r=null;if("function"===typeof n.value?(i="value",r=n.value,0!==r.length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"===typeof n.get&&(i="get",r=n.get),!r)throw new Error("not supported");const o="$memoize$"+t;n[i]=function(...e){return this.hasOwnProperty(o)||Object.defineProperty(this,o,{configurable:!1,enumerable:!1,writable:!1,value:r.apply(this,e)}),this[o]}}n.d(t,"a",(function(){return i}))},6438:function(e,t,n){var i=n("03d6"),r=n("9742").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},6444:function(e,t){var n=function(e){return e.replace(/^\s+|\s+$/g,"")},i=function(e){return"[object Array]"===Object.prototype.toString.call(e)};e.exports=function(e){if(!e)return{};for(var t={},r=n(e).split("\n"),o=0;o<r.length;o++){var s=r[o],a=s.indexOf(":"),l=n(s.slice(0,a)).toLowerCase(),c=n(s.slice(a+1));"undefined"===typeof t[l]?t[l]=c:i(t[l])?t[l].push(c):t[l]=[t[l],c]}return t}},6483:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return h}));var i=n("2504"),r=n("fdcc"),o=n("6d8e"),s=n("6a89"),a=n("b707"),l=n("1b69"),c=n("9e74");function u(e,t){const n=[],i=a["c"].ordered(e).reverse(),r=i.map(i=>Promise.resolve(i.provideDocumentColors(e,t)).then(e=>{if(Array.isArray(e))for(let t of e)n.push({colorInfo:t,provider:i})}));return Promise.all(r).then(()=>n)}function h(e,t,n,i){return Promise.resolve(n.provideColorPresentations(e,t,i))}c["a"].registerCommand("_executeDocumentColorProvider",(function(e,...t){const[n]=t;if(!(n instanceof o["a"]))throw Object(r["b"])();const s=e.get(l["a"]).getModel(n);if(!s)throw Object(r["b"])();const c=[],u=a["c"].ordered(s).reverse(),h=u.map(e=>Promise.resolve(e.provideDocumentColors(s,i["a"].None)).then(e=>{if(Array.isArray(e))for(let t of e)c.push({range:t.range,color:[t.color.red,t.color.green,t.color.blue,t.color.alpha]})}));return Promise.all(h).then(()=>c)})),c["a"].registerCommand("_executeColorPresentationProvider",(function(e,...t){const[n,c]=t,{uri:u,range:h}=c;if(!(u instanceof o["a"])||!Array.isArray(n)||4!==n.length||!s["a"].isIRange(h))throw Object(r["b"])();const[d,f,p,g]=n,m=e.get(l["a"]).getModel(u);if(!m)throw Object(r["b"])();const v={range:h,color:{red:d,green:f,blue:p,alpha:g}},b=[],y=a["c"].ordered(m).reverse(),_=y.map(e=>Promise.resolve(e.provideColorPresentations(m,v,i["a"].None)).then(e=>{Array.isArray(e)&&b.push(...e)}));return Promise.all(_).then(()=>b)}))},"64b0":function(e,t,n){"use strict";var i=n("71c9"),r=function(){return!!i};r.hasArrayLengthDefineBug=function(){if(!i)return null;try{return 1!==i([],"length",{value:1}).length}catch(e){return!0}},e.exports=r},"650e":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s}));var i=n("b9b4");const r={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:i["a"].text,TERMINALS:"Terminals"};class o{constructor(e){this.data=e}update(){}getData(){return this.data}}const s={CurrentDragAndDropData:void 0}},"652a":function(e,t,n){"use strict";var i;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var o=n("fbd7").codes,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function c(e){return e.setHeader&&"function"===typeof e.abort}function u(e,t,o,s){s=r(s);var l=!1;e.on("close",(function(){l=!0})),void 0===i&&(i=n("d9e1")),i(e,{readable:t,writable:o},(function(e){if(e)return s(e);l=!0,s()}));var u=!1;return function(t){if(!l&&!u)return u=!0,c(e)?e.abort():"function"===typeof e.destroy?e.destroy():void s(t||new a("pipe"))}}function h(e){e()}function d(e,t){return e.pipe(t)}function f(e){return e.length?"function"!==typeof e[e.length-1]?l:e.pop():l}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i,r=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new s("streams");var o=t.map((function(e,n){var s=n<t.length-1,a=n>0;return u(e,s,a,(function(e){i||(i=e),e&&o.forEach(h),s||(o.forEach(h),r(i))}))}));return t.reduce(d)}e.exports=p},6547:function(e,t,n){var i=n("e330"),r=n("5926"),o=n("577e"),s=n("1d80"),a=i("".charAt),l=i("".charCodeAt),c=i("".slice),u=function(e){return function(t,n){var i,u,h=o(s(t)),d=r(n),f=h.length;return d<0||d>=f?e?"":void 0:(i=l(h,d),i<55296||i>56319||d+1===f||(u=l(h,d+1))<56320||u>57343?e?a(h,d):i:e?c(h,d,d+2):u-56320+(i-55296<<10)+65536)}};e.exports={codeAt:u(!1),charAt:u(!0)}},6566:function(e,t,n){"use strict";var i=n("9bf2").f,r=n("7c73"),o=n("6964"),s=n("0366"),a=n("19aa"),l=n("7234"),c=n("2266"),u=n("c6d2"),h=n("4754"),d=n("2626"),f=n("83ab"),p=n("f183").fastKey,g=n("69f3"),m=g.set,v=g.getterFor;e.exports={getConstructor:function(e,t,n,u){var h=e((function(e,i){a(e,d),m(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),f||(e.size=0),l(i)||c(i,e[u],{that:e,AS_ENTRIES:n})})),d=h.prototype,g=v(t),b=function(e,t,n){var i,r,o=g(e),s=y(e,t);return s?s.value=n:(o.last=s={index:r=p(t,!0),key:t,value:n,previous:i=o.last,next:void 0,removed:!1},o.first||(o.first=s),i&&(i.next=s),f?o.size++:e.size++,"F"!==r&&(o.index[r]=s)),e},y=function(e,t){var n,i=g(e),r=p(t);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==t)return n};return o(d,{clear:function(){var e=this,t=g(e),n=t.index,i=t.first;while(i)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;t.first=t.last=void 0,f?t.size=0:e.size=0},delete:function(e){var t=this,n=g(t),i=y(t,e);if(i){var r=i.next,o=i.previous;delete n.index[i.index],i.removed=!0,o&&(o.next=r),r&&(r.previous=o),n.first==i&&(n.first=r),n.last==i&&(n.last=o),f?n.size--:t.size--}return!!i},forEach:function(e){var t,n=g(this),i=s(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:n.first){i(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!y(this,e)}}),o(d,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return b(this,0===e?0:e,t)}}:{add:function(e){return b(this,e=0===e?0:e,e)}}),f&&i(d,"size",{get:function(){return g(this).size}}),h},setStrong:function(e,t,n){var i=t+" Iterator",r=v(t),o=v(i);u(e,t,(function(e,t){m(this,{type:i,target:e,state:r(e),kind:t,last:void 0})}),(function(){var e=o(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?h("keys"==t?n.key:"values"==t?n.value:[n.key,n.value],!1):(e.target=void 0,h(void 0,!0))}),n?"entries":"values",!n,!0),d(t)}}},"658f":function(e,t,n){n("6858");for(var i=n("ef08"),r=n("051b"),o=n("8a0d"),s=n("cc15")("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<a.length;l++){var c=a[l],u=i[c],h=u&&u.prototype;h&&!h[s]&&r(h,s,c),o[c]=o.Array}},"65ed":function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return m}));var i=n("22d1"),r=Math.log(2);function o(e,t,n,i,s,a){var l=i+"-"+s,c=e.length;if(a.hasOwnProperty(l))return a[l];if(1===t){var u=Math.round(Math.log((1<<c)-1&~s)/r);return e[n][u]}var h=i|1<<n,d=n+1;while(i&1<<d)d++;for(var f=0,p=0,g=0;p<c;p++){var m=1<<p;m&s||(f+=(g%2?-1:1)*e[n][p]*o(e,t-1,d,h,s|m,a),g++)}return a[l]=f,f}function s(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},r=o(n,8,0,0,0,i);if(0!==r){for(var s=[],a=0;a<8;a++)for(var l=0;l<8;l++)null==s[l]&&(s[l]=0),s[l]+=((a+l)%2?-1:1)*o(n,7,0===a?1:0,1<<a,1<<l,i)/r*t[a];return function(e,t,n){var i=t*s[6]+n*s[7]+1;e[0]=(t*s[0]+n*s[1]+s[2])/i,e[1]=(t*s[3]+n*s[4]+s[5])/i}}}var a="___zrEVENTSAVED",l=[];function c(e,t,n,i,r){return u(l,t,i,r,!0)&&u(e,n,l[0],l[1])}function u(e,t,n,r,o){if(t.getBoundingClientRect&&i["a"].domSupported&&!f(t)){var s=t[a]||(t[a]={}),l=h(t,s),c=d(l,s,o);if(c)return c(e,n,r),!0}return!1}function h(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var s=document.createElement("div"),a=s.style,l=o%2,c=(o>>1)%2;a.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[c]+":0",i[1-l]+":auto",r[1-c]+":auto",""].join("!important;"),e.appendChild(s),n.push(s)}return n}function d(e,t,n){for(var i=n?"invTrans":"trans",r=t[i],o=t.srcCoords,a=[],l=[],c=!0,u=0;u<4;u++){var h=e[u].getBoundingClientRect(),d=2*u,f=h.left,p=h.top;a.push(f,p),c=c&&o&&f===o[d]&&p===o[d+1],l.push(e[u].offsetLeft,e[u].offsetTop)}return c&&r?r:(t.srcCoords=a,t[i]=n?s(l,a):s(a,l))}function f(e){return"CANVAS"===e.nodeName.toUpperCase()}var p=/([&<>"'])/g,g={"&":"&","<":"<",">":">",'"':""","'":"'"};function m(e){return null==e?"":(e+"").replace(p,(function(e,t){return g[t]}))}},"65f0":function(e,t,n){var i=n("0b42");e.exports=function(e,t){return new(i(e))(0===t?0:t)}},6613:function(e,t,n){n("a630"),n("fb6a"),n("b0c0"),n("d3b7"),n("ac1f"),n("00b4"),n("25f0"),n("3ca3");var i=n("5a43");function r(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},6640:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:function(){return n.e("chunk-2d0af08c").then(n.bind(null,"0d35"))}})},6653:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));class i{constructor(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",this._boxShadow=""}setMaxWidth(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px")}setWidth(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px")}setHeight(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px")}setTop(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px")}unsetTop(){-1!==this._top&&(this._top=-1,this.domNode.style.top="")}setLeft(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px")}setBottom(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px")}setRight(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px")}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px")}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setLineHeight(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px")}setLetterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px")}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function r(e){return new i(e)}},"66bd":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("0a0f"),r=n("cdd6");n.d(t,"b",(function(){return r["a"]}));const o=Object(i["c"])("quickInputService")},"66f1":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return n.e("chunk-2d217e5b").then(n.bind(null,"c94c"))}})},"675a":function(e,t,n){},"67b4":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("7061"),r=n("6a89"),o=n("db88"),s=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class a{provideSelectionRanges(e,t){return s(this,void 0,void 0,(function*(){const n=[];for(const i of t){const t=[];n.push(t);const r=new Map;yield new Promise(t=>a._bracketsRightYield(t,0,e,i,r)),yield new Promise(n=>a._bracketsLeftYield(n,0,e,i,r,t))}return n}))}static _bracketsRightYield(e,t,n,i,r){const s=new Map,l=Date.now();while(1){if(t>=a._maxRounds){e();break}if(!i){e();break}let c=n.findNextBracket(i);if(!c){e();break}let u=Date.now()-l;if(u>a._maxDuration){setTimeout(()=>a._bracketsRightYield(e,t+1,n,i,r));break}const h=c.close[0];if(c.isOpen){let e=s.has(h)?s.get(h):0;s.set(h,e+1)}else{let e=s.has(h)?s.get(h):0;if(e-=1,s.set(h,Math.max(0,e)),e<0){let e=r.get(h);e||(e=new o["a"],r.set(h,e)),e.push(c.range)}}i=c.range.getEndPosition()}}static _bracketsLeftYield(e,t,n,i,o,s){const l=new Map,c=Date.now();while(1){if(t>=a._maxRounds&&0===o.size){e();break}if(!i){e();break}let u=n.findPrevBracket(i);if(!u){e();break}let h=Date.now()-c;if(h>a._maxDuration){setTimeout(()=>a._bracketsLeftYield(e,t+1,n,i,o,s));break}const d=u.close[0];if(u.isOpen){let e=l.has(d)?l.get(d):0;if(e-=1,l.set(d,Math.max(0,e)),e<0){let e=o.get(d);if(e){let t=e.shift();0===e.size&&o.delete(d);const i=r["a"].fromPositions(u.range.getEndPosition(),t.getStartPosition()),l=r["a"].fromPositions(u.range.getStartPosition(),t.getEndPosition());s.push({range:i}),s.push({range:l}),a._addBracketLeading(n,l,s)}}}else{let e=l.has(d)?l.get(d):0;l.set(d,e+1)}i=u.range.getStartPosition()}}static _addBracketLeading(e,t,n){if(t.startLineNumber===t.endLineNumber)return;const o=t.startLineNumber,s=e.getLineFirstNonWhitespaceColumn(o);0!==s&&s!==t.startColumn&&(n.push({range:r["a"].fromPositions(new i["a"](o,s),t.getEndPosition())}),n.push({range:r["a"].fromPositions(new i["a"](o,1),t.getEndPosition())}));const a=o-1;if(a>0){const o=e.getLineFirstNonWhitespaceColumn(a);o===t.startColumn&&o!==e.getLineLastNonWhitespaceColumn(a)&&(n.push({range:r["a"].fromPositions(new i["a"](a,o),t.getEndPosition())}),n.push({range:r["a"].fromPositions(new i["a"](a,1),t.getEndPosition())}))}}}a._maxDuration=30,a._maxRounds=2},"67d9":function(e,t,n){"use strict";e.exports=URIError},"67ee":function(e,t,n){"use strict";e.exports=SyntaxError},6816:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i=n("a666"),r=n("308f"),o=n("30db");function s(e,t){return!!e[t]}class a{constructor(e,t){this.target=e.target,this.hasTriggerModifier=s(e.event,t.triggerModifier),this.hasSideBySideModifier=s(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}}class l{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=s(e,t.triggerModifier)}}class c{constructor(e,t,n,i){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=n,this.triggerSideBySideModifier=i}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}}function u(e){return"altKey"===e?o["f"]?new c(57,"metaKey",6,"altKey"):new c(5,"ctrlKey",6,"altKey"):o["f"]?new c(6,"altKey",57,"metaKey"):new c(6,"altKey",5,"ctrlKey")}class h extends i["a"]{constructor(e){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new r["b"]),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new r["b"]),this.onExecute=this._onExecute.event,this._onCancel=this._register(new r["b"]),this.onCancel=this._onCancel.event,this._editor=e,this._opts=u(this._editor.getOption(68)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(e=>{if(e.hasChanged(68)){const e=u(this._editor.getOption(68));if(this._opts.equals(e))return;this._opts=e,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(e=>this._onEditorMouseMove(new a(e,this._opts)))),this._register(this._editor.onMouseDown(e=>this._onEditorMouseDown(new a(e,this._opts)))),this._register(this._editor.onMouseUp(e=>this._onEditorMouseUp(new a(e,this._opts)))),this._register(this._editor.onKeyDown(e=>this._onEditorKeyDown(new l(e,this._opts)))),this._register(this._editor.onKeyUp(e=>this._onEditorKeyUp(new l(e,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(e=>this._onDidChangeCursorSelection(e))),this._register(this._editor.onDidChangeModel(e=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(e=>{(e.scrollTopChanged||e.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){const t=e.target.position?e.target.position.lineNumber:0;this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}},6858:function(e,t,n){"use strict";var i=n("2f9a"),r=n("ea34"),o=n("8a0d"),s=n("6ca1");e.exports=n("393a")(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},"688e":function(e,t,n){"use strict";var i="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,o=Math.max,s="[object Function]",a=function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var r=0;r<t.length;r+=1)n[r+e.length]=t[r];return n},l=function(e,t){for(var n=[],i=t||0,r=0;i<e.length;i+=1,r+=1)n[r]=e[i];return n},c=function(e,t){for(var n="",i=0;i<e.length;i+=1)n+=e[i],i+1<e.length&&(n+=t);return n};e.exports=function(e){var t=this;if("function"!==typeof t||r.apply(t)!==s)throw new TypeError(i+t);for(var n,u=l(arguments,1),h=function(){if(this instanceof n){var i=t.apply(this,a(u,arguments));return Object(i)===i?i:this}return t.apply(e,a(u,arguments))},d=o(0,t.length-u.length),f=[],p=0;p<d;p++)f[p]="$"+p;if(n=Function("binder","return function ("+c(f,",")+"){ return binder.apply(this,arguments); }")(h),t.prototype){var g=function(){};g.prototype=t.prototype,n.prototype=new g,g.prototype=null}return n}},"68ab":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("4a3f");function r(e,t,n,r,o,s,a,l,c){if(0===a)return!1;var u=a;if(c>t+u&&c>r+u&&c>s+u||c<t-u&&c<r-u&&c<s-u||l>e+u&&l>n+u&&l>o+u||l<e-u&&l<n-u&&l<o-u)return!1;var h=Object(i["l"])(e,t,n,r,o,s,l,c,null);return h<=u/2}},"68ee":function(e,t,n){var i=n("e330"),r=n("d039"),o=n("1626"),s=n("f5df"),a=n("d066"),l=n("8925"),c=function(){},u=[],h=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=i(d.exec),p=!d.exec(c),g=function(e){if(!o(e))return!1;try{return h(c,u,e),!0}catch(t){return!1}},m=function(e){if(!o(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(d,l(e))}catch(t){return!0}};m.sham=!0,e.exports=!h||r((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?m:g},"693d":function(e,t,n){"use strict";var i=n("ef08"),r=n("9c0e"),o=n("0bad"),s=n("512c"),a=n("ba01"),l=n("e34a").KEY,c=n("4b8b"),u=n("b367"),h=n("92f0"),d=n("8b1a"),f=n("cc15"),p=n("fcd4"),g=n("e198"),m=n("0ae2"),v=n("4ebc"),b=n("77e9"),y=n("7a41"),_=n("0983"),w=n("6ca1"),C=n("3397"),S=n("10db"),x=n("6f4f"),O=n("1836"),k=n("4d20"),L=n("fed5"),E=n("1a14"),D=n("9876"),I=k.f,M=E.f,T=O.f,A=i.Symbol,N=i.JSON,P=N&&N.stringify,j="prototype",R=f("_hidden"),F=f("toPrimitive"),B={}.propertyIsEnumerable,W=u("symbol-registry"),V=u("symbols"),z=u("op-symbols"),H=Object[j],U="function"==typeof A&&!!L.f,q=i.QObject,$=!q||!q[j]||!q[j].findChild,K=o&&c((function(){return 7!=x(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=I(H,t);i&&delete H[t],M(e,t,n),i&&e!==H&&M(H,t,i)}:M,G=function(e){var t=V[e]=x(A[j]);return t._k=e,t},Y=U&&"symbol"==typeof A.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof A},Z=function(e,t,n){return e===H&&Z(z,t,n),b(e),t=C(t,!0),b(n),r(V,t)?(n.enumerable?(r(e,R)&&e[R][t]&&(e[R][t]=!1),n=x(n,{enumerable:S(0,!1)})):(r(e,R)||M(e,R,S(1,{})),e[R][t]=!0),K(e,t,n)):M(e,t,n)},X=function(e,t){b(e);var n,i=m(t=w(t)),r=0,o=i.length;while(o>r)Z(e,n=i[r++],t[n]);return e},Q=function(e,t){return void 0===t?x(e):X(x(e),t)},J=function(e){var t=B.call(this,e=C(e,!0));return!(this===H&&r(V,e)&&!r(z,e))&&(!(t||!r(this,e)||!r(V,e)||r(this,R)&&this[R][e])||t)},ee=function(e,t){if(e=w(e),t=C(t,!0),e!==H||!r(V,t)||r(z,t)){var n=I(e,t);return!n||!r(V,t)||r(e,R)&&e[R][t]||(n.enumerable=!0),n}},te=function(e){var t,n=T(w(e)),i=[],o=0;while(n.length>o)r(V,t=n[o++])||t==R||t==l||i.push(t);return i},ne=function(e){var t,n=e===H,i=T(n?z:w(e)),o=[],s=0;while(i.length>s)!r(V,t=i[s++])||n&&!r(H,t)||o.push(V[t]);return o};U||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(z,n),r(this,R)&&r(this[R],e)&&(this[R][e]=!1),K(this,e,S(1,n))};return o&&$&&K(H,e,{configurable:!0,set:t}),G(e)},a(A[j],"toString",(function(){return this._k})),k.f=ee,E.f=Z,n("6438").f=O.f=te,n("1917").f=J,L.f=ne,o&&!n("e444")&&a(H,"propertyIsEnumerable",J,!0),p.f=function(e){return G(f(e))}),s(s.G+s.W+s.F*!U,{Symbol:A});for(var ie="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ie.length>re;)f(ie[re++]);for(var oe=D(f.store),se=0;oe.length>se;)g(oe[se++]);s(s.S+s.F*!U,"Symbol",{for:function(e){return r(W,e+="")?W[e]:W[e]=A(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in W)if(W[t]===e)return t},useSetter:function(){$=!0},useSimple:function(){$=!1}}),s(s.S+s.F*!U,"Object",{create:Q,defineProperty:Z,defineProperties:X,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var ae=c((function(){L.f(1)}));s(s.S+s.F*ae,"Object",{getOwnPropertySymbols:function(e){return L.f(_(e))}}),N&&s(s.S+s.F*(!U||c((function(){var e=A();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))}))),"JSON",{stringify:function(e){var t,n,i=[e],r=1;while(arguments.length>r)i.push(arguments[r++]);if(n=t=i[1],(y(t)||void 0!==e)&&!Y(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),i[1]=t,P.apply(N,i)}}),A[j][F]||n("051b")(A[j],F,A[j].valueOf),h(A,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},6964:function(e,t,n){var i=n("cb2d");e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},"697e":function(e,t,n){"use strict";n.d(t,"f",(function(){return k})),n.d(t,"i",(function(){return E})),n.d(t,"a",(function(){return D})),n.d(t,"g",(function(){return I})),n.d(t,"h",(function(){return M})),n.d(t,"c",(function(){return T})),n.d(t,"b",(function(){return A})),n.d(t,"e",(function(){return P})),n.d(t,"j",(function(){return j})),n.d(t,"d",(function(){return R})),n.d(t,"k",(function(){return F}));var i=n("6d8b"),r=n("18c0"),o=n("89e3"),s=n("e0d8"),a=n("9d57"),l=n("9850"),c=n("216a"),u=n("9ab4"),h=n("3842"),d=n("944e"),f=s["a"].prototype,p=o["a"].prototype,g=h["w"],m=Math.floor,v=Math.ceil,b=Math.pow,y=Math.log,_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new o["a"],t._interval=0,t}return Object(u["a"])(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent(),o=p.getTicks.call(this,e);return i["map"](o,(function(e){var t=e.value,i=h["w"](b(this.base,t));return i=t===n[0]&&this._fixMin?C(i,r[0]):i,i=t===n[1]&&this._fixMax?C(i,r[1]):i,{value:i}}),this)},t.prototype.setExtent=function(e,t){var n=y(this.base);e=y(Math.max(0,e))/n,t=y(Math.max(0,t))/n,p.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=f.getExtent.call(this);t[0]=b(e,t[0]),t[1]=b(e,t[1]);var n=this._originalScale,i=n.getExtent();return this._fixMin&&(t[0]=C(t[0],i[0])),this._fixMax&&(t[1]=C(t[1],i[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=y(e[0])/y(t),e[1]=y(e[1])/y(t),f.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var i=h["s"](n),r=e/n*i;r<=.5&&(i*=10);while(!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0)i*=10;var o=[h["w"](v(t[0]/i)*i),h["w"](m(t[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){p.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=y(e)/y(this.base),d["a"](e,this._extent)},t.prototype.normalize=function(e){return e=y(e)/y(this.base),d["f"](e,this._extent)},t.prototype.scale=function(e){return e=d["g"](e,this._extent),b(this.base,e)},t.type="log",t}(s["a"]),w=_.prototype;function C(e,t){return g(e,h["h"](t))}w.getMinorTicks=p.getMinorTicks,w.getLabel=p.getLabel,s["a"].registerClass(_);var S=_,x=n("ee1a"),O=n("538f");function k(e,t){var n=e.type,r=Object(O["a"])(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var o=r.min,s=r.max,l=t.ecModel;if(l&&"time"===n){var c=Object(a["e"])("bar",l),u=!1;if(i["each"](c,(function(e){u=u||e.getBaseAxis()===t.axis})),u){var h=Object(a["d"])(c),d=L(o,s,t,h);o=d.min,s=d.max}}return{extent:[o,s],fixMin:r.minFixed,fixMax:r.maxFixed}}function L(e,t,n,r){var o=n.axis.getExtent(),s=o[1]-o[0],l=Object(a["f"])(r,n.axis);if(void 0===l)return{min:e,max:t};var c=1/0;i["each"](l,(function(e){c=Math.min(e.offset,c)}));var u=-1/0;i["each"](l,(function(e){u=Math.max(e.offset+e.width,u)})),c=Math.abs(c),u=Math.abs(u);var h=c+u,d=t-e,f=1-(c+u)/s,p=d/f-d;return t+=p*(u/h),e-=p*(c/h),{min:e,max:t}}function E(e,t){var n=t,i=k(e,n),r=i.extent,o=n.get("splitNumber");e instanceof S&&(e.base=n.get("logBase"));var s=e.type,a=n.get("interval"),l="interval"===s||"time"===s;e.setExtent(r[0],r[1]),e.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=a&&e.setInterval&&e.setInterval(a)}function D(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new r["a"]({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new c["a"]({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(s["a"].getClass(t)||o["a"])}}function I(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}function M(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(n,i){return e.scale.getFormattedLabel(n,i,t)}}(t):i["isString"](t)?function(t){return function(n){var i=e.scale.getLabel(n),r=t.replace("{value}",null!=i?i:"");return r}}(t):i["isFunction"](t)?function(t){return function(i,r){return null!=n&&(r=i.value-n),t(T(e,i),r,null!=i.level?{level:i.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function T(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function A(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var i,o,s=n.getExtent();n instanceof r["a"]?o=n.count():(i=n.getTicks(),o=i.length);var a,l=e.getLabelModel(),c=M(e),u=1;o>40&&(u=Math.ceil(o/40));for(var h=0;h<o;h+=u){var d=i?i[h]:{value:s[0]+h},f=c(d,h),p=l.getTextRect(f),g=N(p,l.get("rotate")||0);a?a.union(g):a=g}return a}}function N(e,t){var n=t*Math.PI/180,i=e.width,r=e.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),s=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n)),a=new l["a"](e.x,e.y,o,s);return a}function P(e){var t=e.get("interval");return null==t?"auto":t}function j(e){return"category"===e.type&&0===P(e.getLabelModel())}function R(e,t){var n={};return i["each"](e.mapDimensionsAll(t),(function(t){n[Object(x["b"])(e,t)]=!0})),i["keys"](n)}function F(e,t,n){t&&i["each"](R(t,n),(function(n){var i=t.getApproximateExtent(n);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])}))}},"697e7":function(e,t,n){"use strict";n.r(t),n.d(t,"init",(function(){return me})),n.d(t,"dispose",(function(){return ve})),n.d(t,"disposeAll",(function(){return be})),n.d(t,"getInstance",(function(){return ye})),n.d(t,"registerPainter",(function(){return _e})),n.d(t,"getElementSSRData",(function(){return we})),n.d(t,"registerSSRDataGetter",(function(){return Ce})),n.d(t,"version",(function(){return Se}));var i=n("22d1"),r=n("6d8b"),o=n("9ab4"),s=n("401b"),a=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),l=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){var t=e.target;while(t&&!t.draggable)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new a(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,t.drift(r,o,e),this.handler.dispatchToElement(new a(t,e),"drag",e.event);var s=this.handler.findHover(n,i,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new a(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new a(s,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new a(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new a(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),c=l,u=n("6fd3"),h=n("607d"),d=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var r={points:[],touches:[],target:t,event:e},o=0,s=i.length;o<s;o++){var a=i[o],l=h["b"](n,a,{});r.points.push([l.zrX,l.zrY]),r.touches.push(a)}this._track.push(r)}},e.prototype._recognize=function(e){for(var t in g)if(g.hasOwnProperty(t)){var n=g[t](this._track,e);if(n)return n}},e}();function f(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function p(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var g={pinch:function(e,t){var n=e.length;if(n){var i=(e[n-1]||{}).points,r=(e[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=f(i)/f(r);!isFinite(o)&&(o=1),t.pinchScale=o;var s=p(i);return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}},m=n("9850"),v="silent";function b(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:y}}function y(){h["g"](this.event)}var _=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return Object(o["a"])(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(u["a"]),w=function(){function e(e,t){this.x=e,this.y=t}return e}(),C=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],S=new m["a"](0,0,0,0),x=function(e){function t(t,n,i,r,o){var s=e.call(this)||this;return s._hovered=new w(0,0),s.storage=t,s.painter=n,s.painterRoot=r,s._pointerSize=o,i=i||new _,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new c(s),s}return Object(o["a"])(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(r["each"](C,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,i=L(this,t,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var s=this._hovered=i?new w(t,n):this.findHover(t,n),a=s.target,l=this.proxy;l.setCursor&&l.setCursor(a?a.cursor:"default"),o&&a!==o&&this.dispatchToElement(r,"mouseout",e),this.dispatchToElement(s,"mousemove",e),a&&a!==o&&this.dispatchToElement(s,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new w(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e=e||{};var i=e.target;if(!i||!i.silent){var r="on"+t,o=b(t,e,n);while(i)if(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(t,o),i=i.__hostTarget?i.__hostTarget:i.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[r]&&e[r].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){var i=this.storage.getDisplayList(),r=new w(e,t);if(k(i,r,e,t,n),this._pointerSize&&!r.target){for(var o=[],s=this._pointerSize,a=s/2,l=new m["a"](e-a,t-a,s,s),c=i.length-1;c>=0;c--){var u=i[c];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(S.copy(u.getBoundingRect()),u.transform&&S.applyTransform(u.transform),S.intersect(l)&&o.push(u))}if(o.length)for(var h=4,d=Math.PI/12,f=2*Math.PI,p=0;p<a;p+=h)for(var g=0;g<f;g+=d){var v=e+p*Math.cos(g),b=t+p*Math.sin(g);if(k(o,r,v,b,n),r.target)return r}}return r},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new d);var n=this._gestureMgr;"start"===t&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),i){var r=i.type;e.gestureEvent=r;var o=new w;o.target=i.target,this.dispatchToElement(o,r,i.event)}},t}(u["a"]);function O(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){var i=e,r=void 0,o=!1;while(i){if(i.ignoreClip&&(o=!0),!o){var s=i.getClipPath();if(s&&!s.contain(t,n))return!1}i.silent&&(r=!0);var a=i.__hostTarget;i=a||i.parent}return!r||v}return!1}function k(e,t,n,i,r){for(var o=e.length-1;o>=0;o--){var s=e[o],a=void 0;if(s!==r&&!s.ignore&&(a=O(s,n,i))&&(!t.topTarget&&(t.topTarget=s),a!==v)){t.target=s;break}}}function L(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}r["each"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){x.prototype[e]=function(t){var n,i,r=t.zrX,o=t.zrY,a=L(this,r,o);if("mouseup"===e&&a||(n=this.findHover(r,o),i=n.target),"mousedown"===e)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===e)this._upEl=i;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||s["dist"](this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var E=x,D=n("04f6"),I=n("4bc4"),M=!1;function T(){M||(M=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function A(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var N=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=A}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,r=t.length;i<r;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,Object(D["a"])(n,A)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)t=null;else if(i){t=t?t.slice():[];var r=i,o=e;while(r)r.parent=o,r.updateTransform(),t.push(r),o=r,r=r.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),a=0;a<s.length;a++){var l=s[a];e.__dirty&&(l.__dirty|=I["a"]),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(T(),c.z=0),isNaN(c.z2)&&(T(),c.z2=0),isNaN(c.zlevel)&&(T(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,t,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var i=r["indexOf"](this._roots,e);i>=0&&this._roots.splice(i,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),P=N,j=n("98b7"),R=n("06ad");function F(){return(new Date).getTime()}var B=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return Object(o["a"])(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){var t=F()-this._pausedTime,n=t-this._time,i=this._head;while(i){var r=i.next,o=i.step(t,n);o?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;function t(){e._running&&(Object(j["a"])(t),!e._paused&&e.update())}this._running=!0,Object(j["a"])(t)},t.prototype.start=function(){this._running||(this._time=F(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=F(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=F()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){var e=this._head;while(e){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new R["b"](e,t.loop);return this.addAnimator(n),n},t}(u["a"]),W=B,V=300,z=i["a"].domSupported,H=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=r["map"](e,(function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:i}}(),U={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},q=!1;function $(e){var t=e.pointerType;return"pen"===t||"touch"===t}function K(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function G(e){e&&(e.zrByTouch=!0)}function Y(e,t){return Object(h["e"])(e.dom,new X(e,t),!0)}function Z(e,t){var n=t,i=!1;while(n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return i}var X=function(){function e(e,t){this.stopPropagation=r["noop"],this.stopImmediatePropagation=r["noop"],this.preventDefault=r["noop"],this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Q={mousedown:function(e){e=Object(h["e"])(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Object(h["e"])(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Object(h["e"])(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Object(h["e"])(this.dom,e);var t=e.toElement||e.relatedTarget;Z(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){q=!0,e=Object(h["e"])(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){q||(e=Object(h["e"])(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Object(h["e"])(this.dom,e),G(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Q.mousemove.call(this,e),Q.mousedown.call(this,e)},touchmove:function(e){e=Object(h["e"])(this.dom,e),G(e),this.handler.processGesture(e,"change"),Q.mousemove.call(this,e)},touchend:function(e){e=Object(h["e"])(this.dom,e),G(e),this.handler.processGesture(e,"end"),Q.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<V&&Q.click.call(this,e)},pointerdown:function(e){Q.mousedown.call(this,e)},pointermove:function(e){$(e)||Q.mousemove.call(this,e)},pointerup:function(e){Q.mouseup.call(this,e)},pointerout:function(e){$(e)||Q.mouseout.call(this,e)}};r["each"](["click","dblclick","contextmenu"],(function(e){Q[e]=function(t){t=Object(h["e"])(this.dom,t),this.trigger(e,t)}}));var J={pointermove:function(e){$(e)||J.mousemove.call(this,e)},pointerup:function(e){J.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function ee(e,t){var n=t.domHandlers;i["a"].pointerEventsSupported?r["each"](H.pointer,(function(i){ne(t,i,(function(t){n[i].call(e,t)}))})):(i["a"].touchEventsSupported&&r["each"](H.touch,(function(i){ne(t,i,(function(r){n[i].call(e,r),K(t)}))})),r["each"](H.mouse,(function(i){ne(t,i,(function(r){r=Object(h["c"])(r),t.touching||n[i].call(e,r)}))})))}function te(e,t){function n(n){function i(i){i=Object(h["c"])(i),Z(e,i.target)||(i=Y(e,i),t.domHandlers[n].call(e,i))}ne(t,n,i,{capture:!0})}i["a"].pointerEventsSupported?r["each"](U.pointer,n):i["a"].touchEventsSupported||r["each"](U.mouse,n)}function ne(e,t,n,i){e.mounted[t]=n,e.listenerOpts[t]=i,Object(h["a"])(e.domTarget,t,n,i)}function ie(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&Object(h["f"])(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var re=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),oe=function(e){function t(t,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=n,i._localHandlerScope=new re(t,Q),z&&(i._globalHandlerScope=new re(document,J)),ee(i,i._localHandlerScope),i}return Object(o["a"])(t,e),t.prototype.dispose=function(){ie(this._localHandlerScope),z&&ie(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,z&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?te(this,t):ie(t)}},t}(u["a"]),se=oe,ae=n("41ef"),le=n("2cf4"),ce=n("2dc5"),ue={},he={};function de(e){delete he[e]}function fe(e){if(!e)return!1;if("string"===typeof e)return Object(ae["lum"])(e,1)<le["b"];if(e.colorStops){for(var t=e.colorStops,n=0,i=t.length,r=0;r<i;r++)n+=Object(ae["lum"])(t[r].color,1);return n/=i,n<le["b"]}return!1}var pe,ge=function(){function e(e,t,n){var o=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var s=new P,a=n.renderer||"canvas";ue[a]||(a=r["keys"](ue)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var l=new ue[a](t,s,n,e),c=n.ssr||l.ssrOnly;this.storage=s,this.painter=l;var u,h=i["a"].node||i["a"].worker||c?null:new se(l.getViewportRoot(),l.root),d=n.useCoarsePointer,f=null==d||"auto"===d?i["a"].touchEventsSupported:!!d,p=44;f&&(u=r["retrieve2"](n.pointerSize,p)),this.handler=new E(s,l,h,l.root,u),this.animation=new W({stage:{update:c?null:function(){return o._flush(!0)}}}),c||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=fe(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=F();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var i=F();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof ce["a"]&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,de(this.id))},e}();function me(e,t){var n=new ge(r["guid"](),e,t);return he[n.id]=n,n}function ve(e){e.dispose()}function be(){for(var e in he)he.hasOwnProperty(e)&&he[e].dispose();he={}}function ye(e){return he[e]}function _e(e,t){ue[e]=t}function we(e){if("function"===typeof pe)return pe(e)}function Ce(e){pe=e}var Se="5.6.0"},6981:function(e,t,n){
|
||
/*!
|
||
* clipboard.js v2.0.8
|
||
* https://clipboardjs.com/
|
||
*
|
||
* Licensed MIT © Zeno Rocha
|
||
*/
|
||
!function(t,n){e.exports=n()}(0,(function(){return t={134:function(e,t,n){"use strict";n.d(t,{default:function(){return g}});t=n(279);var i=n.n(t),r=(t=n(370),n.n(t)),o=(t=n(817),n.n(t));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 a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var l=function(){function e(t){!function(t){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this),this.resolveOptions(t),this.initSelection()}var t,n,i;return t=e,(n=[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var e="rtl"===document.documentElement.getAttribute("dir");return this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px",e=window.pageYOffset||document.documentElement.scrollTop,this.fakeElem.style.top="".concat(e,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var e=this,t=this.createFakeElement();this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(t),this.selectedText=o()(t),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=o()(this.target),this.copyText()}},{key:"copyText",value:function(){var e;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==s(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}])&&a(t.prototype,n),i&&a(t,i),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 u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var e,i=f(t);return e=n?(e=f(this).constructor,Reflect.construct(i,arguments,e)):i.apply(this,arguments),i=this,!(e=e)||"object"!==c(e)&&"function"!=typeof e?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(i):e}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){if(e="data-clipboard-".concat(e),t.hasAttribute(e))return t.getAttribute(e)}var g=function(){!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)}(s,i());var e,t,n,o=d(s);function s(e,t){var n;return function(e){if(!(e instanceof s))throw new TypeError("Cannot call a class as a function")}(this),(n=o.call(this)).resolveOptions(t),n.listenClick(e),n}return e=s,n=[{key:"isSupported",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t=(e="string"==typeof e?[e]:e,!!document.queryCommandSupported);return e.forEach((function(e){t=t&&!!document.queryCommandSupported(e)})),t}}],(t=[{key:"resolveOptions",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===c(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=r()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){e=e.delegateTarget||e.currentTarget,this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(e){return p("action",e)}},{key:"defaultTarget",value:function(e){if(e=p("target",e),e)return document.querySelector(e)}},{key:"defaultText",value:function(e){return p("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}])&&u(e.prototype,t),n&&u(e,n),s}()},828:function(e){var t;"undefined"==typeof Element||Element.prototype.matches||((t=Element.prototype).matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector),e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var i=n(828);function r(e,t,n,r,o){var s=function(e,t,n,r){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&r.call(e,n)}}.apply(this,arguments);return e.addEventListener(n,s,o),{destroy:function(){e.removeEventListener(n,s,o)}}}e.exports=function(e,t,n,i,o){return"function"==typeof e.addEventListener?r.apply(null,arguments):"function"==typeof n?r.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return r(e,t,n,i,o)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var i=n(879),r=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!i.string(t))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(e))return c=t,u=n,(l=e).addEventListener(c,u),{destroy:function(){l.removeEventListener(c,u)}};if(i.nodeList(e))return o=e,s=t,a=n,Array.prototype.forEach.call(o,(function(e){e.addEventListener(s,a)})),{destroy:function(){Array.prototype.forEach.call(o,(function(e){e.removeEventListener(s,a)}))}};if(i.string(e))return e=e,t=t,n=n,r(document.body,e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,s,a,l,c,u}},817:function(e){e.exports=function(e){var t,n="SELECT"===e.nodeName?(e.focus(),e.value):"INPUT"===e.nodeName||"TEXTAREA"===e.nodeName?((t=e.hasAttribute("readonly"))||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),t||e.removeAttribute("readonly"),e.value):(e.hasAttribute("contenteditable")&&e.focus(),n=window.getSelection(),(t=document.createRange()).selectNodeContents(e),n.removeAllRanges(),n.addRange(t),n.toString());return n}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var i=this;function r(){i.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,r=n.length;i<r;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],r=[];if(i&&t)for(var o=0,s=i.length;o<s;o++)i[o].fn!==t&&i[o].fn._!==t&&r.push(i[o]);return r.length?n[e]=r:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},n={},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e(134).default;function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{}};return t[i](r,r.exports,e),r.exports}var t,n}))},"69f3":function(e,t,n){var i,r,o,s=n("cdce"),a=n("da84"),l=n("e330"),c=n("861d"),u=n("9112"),h=n("1a2d"),d=n("c6cd"),f=n("f772"),p=n("d012"),g="Object already initialized",m=a.TypeError,v=a.WeakMap,b=function(e){return o(e)?r(e):i(e,{})},y=function(e){return function(t){var n;if(!c(t)||(n=r(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}};if(s||d.state){var _=d.state||(d.state=new v),w=l(_.get),C=l(_.has),S=l(_.set);i=function(e,t){if(C(_,e))throw m(g);return t.facade=e,S(_,e,t),t},r=function(e){return w(_,e)||{}},o=function(e){return C(_,e)}}else{var x=f("state");p[x]=!0,i=function(e,t){if(h(e,x))throw m(g);return t.facade=e,u(e,x,t),t},r=function(e){return h(e,x)?e[x]:{}},o=function(e){return h(e,x)}}e.exports={set:i,get:r,has:o,enforce:b,getterFor:y}},"6a38":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return n.e("chunk-2d0abc00").then(n.bind(null,"1737"))}})},"6a5d":function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p}));var i=n("308f"),r=n("eda7"),o=n("a666"),s=n("4035"),a=n("49d9"),l=n("9768"),c=n("32b8");function u(e,t,n,i){if(Array.isArray(e)){let r=0;for(const o of e){const e=u(o,t,n,i);if(10===e)return e;e>r&&(r=e)}return r}if("string"===typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){const{language:r,pattern:o,scheme:s,hasAccessToAllModels:a}=e;if(!i&&!a)return 0;let u=0;if(s)if(s===t.scheme)u=10;else{if("*"!==s)return 0;u=5}if(r)if(r===n)u=10;else{if("*"!==r)return 0;u=Math.max(u,5)}if(o){let e;if(e="string"===typeof o?o:Object.assign(Object.assign({},o),{base:Object(c["d"])(o.base)}),e!==t.fsPath&&!Object(l["a"])(e,t.fsPath))return 0;u=10}return u}return 0}var h=n("1b69");function d(e){return"string"!==typeof e&&(Array.isArray(e)?e.every(d):!!e.exclusive)}class f{constructor(){this._clock=0,this._entries=[],this._onDidChange=new i["b"]}get onDidChange(){return this._onDidChange.event}register(e,t){let n={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(n),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(o["i"])(()=>{if(n){let e=this._entries.indexOf(n);e>=0&&(this._entries.splice(e,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),n=void 0)}})}has(e){return this.all(e).length>0}all(e){if(!e)return[];this._updateScores(e);const t=[];for(let n of this._entries)n._score>0&&t.push(n.provider);return t}ordered(e){const t=[];return this._orderedForEach(e,e=>t.push(e.provider)),t}orderedGroups(e){const t=[];let n,i;return this._orderedForEach(e,e=>{n&&i===e._score?n.push(e.provider):(i=e._score,n=[e.provider],t.push(n))}),t}_orderedForEach(e,t){if(e){this._updateScores(e);for(const e of this._entries)e._score>0&&t(e)}}_updateScores(e){let 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(let t of this._entries)if(t._score=u(t.selector,e.uri,e.getLanguageIdentifier().language,Object(h["b"])(e)),d(t.selector)&&t._score>0){for(let e of this._entries)e._score=0;t._score=1e3;break}this._entries.sort(f._compareByScoreAndTime)}}static _compareByScoreAndTime(e,t){return e._score<t._score?1:e._score>t._score?-1:e._time<t._time?1:e._time>t._time?-1:0}}class p{constructor(e,t,n=Number.MAX_SAFE_INTEGER){this._registry=e,this.min=t,this.max=n,this._cache=new s["a"](50,.7)}_key(e){return e.id+Object(r["b"])(this._registry.all(e))}_clamp(e){return void 0===e?this.min:Math.min(this.max,Math.max(this.min,Math.floor(1.3*e)))}get(e){const t=this._key(e),n=this._cache.get(t);return this._clamp(null===n||void 0===n?void 0:n.value)}update(e,t){const n=this._key(e);let i=this._cache.get(n);return i||(i=new a["a"],this._cache.set(n,i)),i.update(t),this.get(e)}}},"6a89":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("7061");class r{constructor(e,t,n,i){e>n||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return r.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return r.containsPosition(this,e)}static containsPosition(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))}containsRange(e){return r.containsRange(this,e)}static containsRange(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)))}strictContainsRange(e){return r.strictContainsRange(this,e)}static strictContainsRange(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)))}plusRange(e){return r.plusRange(this,e)}static plusRange(e,t){let n,i,o,s;return t.startLineNumber<e.startLineNumber?(n=t.startLineNumber,i=t.startColumn):t.startLineNumber===e.startLineNumber?(n=t.startLineNumber,i=Math.min(t.startColumn,e.startColumn)):(n=e.startLineNumber,i=e.startColumn),t.endLineNumber>e.endLineNumber?(o=t.endLineNumber,s=t.endColumn):t.endLineNumber===e.endLineNumber?(o=t.endLineNumber,s=Math.max(t.endColumn,e.endColumn)):(o=e.endLineNumber,s=e.endColumn),new r(n,i,o,s)}intersectRanges(e){return r.intersectRanges(this,e)}static intersectRanges(e,t){let n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,s=e.endColumn,a=t.startLineNumber,l=t.startColumn,c=t.endLineNumber,u=t.endColumn;return n<a?(n=a,i=l):n===a&&(i=Math.max(i,l)),o>c?(o=c,s=u):o===c&&(s=Math.min(s,u)),n>o||n===o&&i>s?null:new r(n,i,o,s)}equalsRange(e){return r.equalsRange(this,e)}static equalsRange(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn}getEndPosition(){return r.getEndPosition(this)}static getEndPosition(e){return new i["a"](e.endLineNumber,e.endColumn)}getStartPosition(){return r.getStartPosition(this)}static getStartPosition(e){return new i["a"](e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,t){return new r(this.startLineNumber,this.startColumn,e,t)}setStartPosition(e,t){return new r(e,t,this.endLineNumber,this.endColumn)}collapseToStart(){return r.collapseToStart(this)}static collapseToStart(e){return new r(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,t=e){return new r(e.lineNumber,e.column,t.lineNumber,t.column)}static lift(e){return e?new r(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}static areIntersectingOrTouching(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)}static areIntersecting(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)}static compareRangesUsingStarts(e,t){if(e&&t){const n=0|e.startLineNumber,i=0|t.startLineNumber;if(n===i){const n=0|e.startColumn,i=0|t.startColumn;if(n===i){const n=0|e.endLineNumber,i=0|t.endLineNumber;if(n===i){const n=0|e.endColumn,i=0|t.endColumn;return n-i}return n-i}return n-i}return n-i}const n=e?1:0,i=t?1:0;return n-i}static compareRangesUsingEnds(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}static spansMultipleLines(e){return e.endLineNumber>e.startLineNumber}}},"6b75":function(e,t,n){"use strict";function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}n.d(t,"a",(function(){return i}))},"6c02":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"changeDefaultConfig",{enumerable:!0,get:function(){return o.changeDefaultConfig}}),t["default"]=void 0;var r=i(n("04fb")),o=n("9d85"),s=r["default"];t["default"]=s},"6c29":function(e,t,n){"use strict";n("62fd");var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dv-active-ring-chart"},[n("div",{ref:"active-ring-chart",staticClass:"active-ring-chart-container"}),n("div",{staticClass:"active-ring-info"},[n("dv-digital-flop",{attrs:{config:e.digitalFlop}}),n("div",{staticClass:"active-ring-name",style:e.fontSize},[e._v(e._s(e.ringName))])],1)])},r=[],o=n("2909"),s=n("5530"),a=(n("d81d"),n("13d5"),n("b0c0"),n("d3b7"),n("159b"),n("6c02")),l=n.n(a),c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dv-digital-flop"},[n("canvas",{ref:"digital-flop"})])},u=[],h=n("3835"),d=(n("b680"),n("9886")),f=n.n(d),p=(n("0ca1"),n("becb")),g=n("5557"),m={name:"DvDigitalFlop",props:{config:{type:Object,default:function(){return{}}}},data:function(){return{renderer:null,defaultConfig:{number:[],content:"",toFixed:0,textAlign:"center",rowGap:0,style:{fontSize:30,fill:"#3de7c9"},formatter:void 0,animationCurve:"easeOutCubic",animationFrame:50},mergedConfig:null,graph:null}},watch:{config:function(){var e=this.update;e()}},methods:{init:function(){var e=this.initRender,t=this.mergeConfig,n=this.initGraph;e(),t(),n()},initRender:function(){var e=this.$refs;this.renderer=new f.a(e["digital-flop"])},mergeConfig:function(){var e=this.defaultConfig,t=this.config;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||{})},initGraph:function(){var e=this.getShape,t=this.getStyle,n=this.renderer,i=this.mergedConfig,r=i.animationCurve,o=i.animationFrame,s=e(),a=t();this.graph=n.add({name:"numberText",animationCurve:r,animationFrame:o,shape:s,style:a})},getShape:function(){var e=this.mergedConfig,t=e.number,n=e.content,i=e.toFixed,r=e.textAlign,o=e.rowGap,s=e.formatter,a=Object(h["a"])(this.renderer.area,2),l=a[0],c=a[1],u=[l/2,c/2];return"left"===r&&(u[0]=0),"right"===r&&(u[0]=l),{number:t,content:n,toFixed:i,position:u,rowGap:o,formatter:s}},getStyle:function(){var e=this.mergedConfig,t=e.style,n=e.textAlign;return Object(p["deepMerge"])(t,{textAlign:n,textBaseline:"middle"})},update:function(){var e=this.mergeConfig,t=this.mergeShape,n=this.getShape,i=this.getStyle,r=this.graph,o=this.mergedConfig;if(r.animationEnd(),e(),r){var s=o.animationCurve,a=o.animationFrame,l=n(),c=i();t(r,l),r.animationCurve=s,r.animationFrame=a,r.animation("style",c,!0),r.animation("shape",l)}},mergeShape:function(e,t){var n=e.shape.number.length,i=t.number.length;n!==i&&(e.shape.number=t.number)}},mounted:function(){var e=this.init;e()}},v=m,b=n("2877"),y=Object(b["a"])(v,c,u,!1,null,null,null),_=y.exports,w={name:"DvActiveRingChart",components:{dvDigitalFlop:_},props:{config:{type:Object,default:function(){return{}}}},data:function(){return{defaultConfig:{radius:"50%",activeRadius:"55%",data:[{name:"",value:0}],lineWidth:20,activeTimeGap:3e3,color:[],digitalFlopStyle:{fontSize:25,fill:"#fff"},digitalFlopToFixed:0,digitalFlopUnit:"",animationCurve:"easeOutCubic",animationFrame:50,showOriginValue:!1},mergedConfig:null,chart:null,activeIndex:0,animationHandler:""}},computed:{digitalFlop:function(){var e=this.mergedConfig,t=this.activeIndex;if(!e)return{};var n,i=e.digitalFlopStyle,r=e.digitalFlopToFixed,o=e.data,s=e.showOriginValue,a=e.digitalFlopUnit,l=o.map((function(e){var t=e.value;return t}));if(s)n=l[t];else{var c=l.reduce((function(e,t){return e+t}),0),u=parseFloat(l[t]/c*100)||0;n=u}return{content:"{nt}".concat(s?a:a||"%"),number:[n],style:i,toFixed:r}},ringName:function(){var e=this.mergedConfig,t=this.activeIndex;return e?e.data[t].name:""},fontSize:function(){var e=this.mergedConfig;return e?"font-size: ".concat(e.digitalFlopStyle.fontSize,"px;"):""}},watch:{config:function(){var e=this.animationHandler,t=this.mergeConfig,n=this.setRingOption;clearTimeout(e),this.activeIndex=0,t(),n()}},methods:{init:function(){var e=this.initChart,t=this.mergeConfig,n=this.setRingOption;e(),t(),n()},initChart:function(){var e=this.$refs;this.chart=new l.a(e["active-ring-chart"])},mergeConfig:function(){var e=this.defaultConfig,t=this.config;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||{})},setRingOption:function(){var e=this.getRingOption,t=this.chart,n=this.ringAnimation,i=e();t.setOption(i,!0),n()},getRingOption:function(){var e=this.mergedConfig,t=this.getRealRadius,n=t();return e.data.forEach((function(e){e.radius=n})),{series:[Object(s["a"])(Object(s["a"])({type:"pie"},e),{},{outsideLabel:{show:!1}})],color:e.color}},getRealRadius:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.mergedConfig,n=this.chart,i=t.radius,r=t.activeRadius,s=t.lineWidth,a=Math.min.apply(Math,Object(o["a"])(n.render.area))/2,l=s/2,c=e?r:i;"number"!==typeof c&&(c=parseInt(c)/100*a);var u=c-l,h=c+l;return[u,h]},ringAnimation:function(){var e=this,t=this.activeIndex,n=this.getRingOption,i=this.chart,r=this.getRealRadius,o=r(),s=r(!0),a=n(),l=a.series[0].data;l.forEach((function(e,n){e.radius=n===t?s:o})),i.setOption(a,!0);var c=a.series[0].activeTimeGap;this.animationHandler=setTimeout((function(n){t+=1,t>=l.length&&(t=0),e.activeIndex=t,e.ringAnimation()}),c)}},mounted:function(){var e=this.init;e()},beforeDestroy:function(){var e=this.animationHandler;clearTimeout(e)}},C=w,S=Object(b["a"])(C,i,r,!1,null,null,null),x=S.exports,O=function(e){e.component(x.name,x)},k=(n("fe7b"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-1"},[n("svg",{staticClass:"border",attrs:{width:e.width,height:e.height}},[n("polygon",{attrs:{fill:e.backgroundColor,points:"10, 27 10, "+(e.height-27)+" 13, "+(e.height-24)+" 13, "+(e.height-21)+" 24, "+(e.height-11)+"\n 38, "+(e.height-11)+" 41, "+(e.height-8)+" 73, "+(e.height-8)+" 75, "+(e.height-10)+" 81, "+(e.height-10)+"\n 85, "+(e.height-6)+" "+(e.width-85)+", "+(e.height-6)+" "+(e.width-81)+", "+(e.height-10)+" "+(e.width-75)+", "+(e.height-10)+"\n "+(e.width-73)+", "+(e.height-8)+" "+(e.width-41)+", "+(e.height-8)+" "+(e.width-38)+", "+(e.height-11)+"\n "+(e.width-24)+", "+(e.height-11)+" "+(e.width-13)+", "+(e.height-21)+" "+(e.width-13)+", "+(e.height-24)+"\n "+(e.width-10)+", "+(e.height-27)+" "+(e.width-10)+", 27 "+(e.width-13)+", 25 "+(e.width-13)+", 21\n "+(e.width-24)+", 11 "+(e.width-38)+", 11 "+(e.width-41)+", 8 "+(e.width-73)+", 8 "+(e.width-75)+", 10\n "+(e.width-81)+", 10 "+(e.width-85)+", 6 85, 6 81, 10 75, 10 73, 8 41, 8 38, 11 24, 11 13, 21 13, 24"}})]),e._l(e.border,(function(t){return n("svg",{key:t,class:t+" border",attrs:{width:"150px",height:"150px"}},[n("polygon",{attrs:{fill:e.mergedColor[0],points:"6,66 6,18 12,12 18,12 24,6 27,6 30,9 36,9 39,6 84,6 81,9 75,9 73.2,7 40.8,7 37.8,10.2 24,10.2 12,21 12,24 9,27 9,51 7.8,54 7.8,63"}},[n("animate",{attrs:{attributeName:"fill",values:e.mergedColor[0]+";"+e.mergedColor[1]+";"+e.mergedColor[0],dur:"0.5s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{fill:e.mergedColor[1],points:"27.599999999999998,4.8 38.4,4.8 35.4,7.8 30.599999999999998,7.8"}},[n("animate",{attrs:{attributeName:"fill",values:e.mergedColor[1]+";"+e.mergedColor[0]+";"+e.mergedColor[1],dur:"0.5s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{fill:e.mergedColor[0],points:"9,54 9,63 7.199999999999999,66 7.199999999999999,75 7.8,78 7.8,110 8.4,110 8.4,66 9.6,66 9.6,54"}},[n("animate",{attrs:{attributeName:"fill",values:e.mergedColor[0]+";"+e.mergedColor[1]+";transparent",dur:"1s",begin:"0s",repeatCount:"indefinite"}})])])})),n("div",{staticClass:"border-box-content"},[e._t("default")],2)],2)}),L=[];function E(e,t){return 1===arguments.length?parseInt(Math.random()*e+1,10):parseInt(Math.random()*(t-e+1)+e,10)}function D(e,t){let n;return function(){clearTimeout(n);const[i,r]=[this,arguments];n=setTimeout(()=>{t.apply(i,r)},e)}}function I(e,t){const n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,i=new n(t);return i.observe(e,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0}),i}function M(e,t){const n=Math.abs(e[0]-t[0]),i=Math.abs(e[1]-t[1]);return Math.sqrt(n*n+i*i)}function T(e){return(e?"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx":"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx").replace(/[xy]/g,(function(e){const t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)}))}var A={data(){return{dom:"",width:0,height:0,debounceInitWHFun:"",domObserver:""}},methods:{async autoResizeMixinInit(){const{initWH:e,getDebounceInitWHFun:t,bindDomResizeCallback:n,afterAutoResizeMixinInit:i}=this;await e(!1),t(),n(),"function"===typeof i&&i()},initWH(e=!0){const{$nextTick:t,$refs:n,ref:i,onResize:r}=this;return new Promise(o=>{t(t=>{const s=this.dom=n[i];this.width=s?s.clientWidth:0,this.height=s?s.clientHeight:0,s?this.width&&this.height||console.warn("DataV: Component width or height is 0px, rendering abnormality may occur!"):console.warn("DataV: Failed to get dom node, component rendering may be abnormal!"),"function"===typeof r&&e&&r(),o()})})},getDebounceInitWHFun(){const{initWH:e}=this;this.debounceInitWHFun=D(100,e)},bindDomResizeCallback(){const{dom:e,debounceInitWHFun:t}=this;this.domObserver=I(e,t),window.addEventListener("resize",t)},unbindDomResizeCallback(){let{domObserver:e,debounceInitWHFun:t}=this;e&&(e.disconnect(),e.takeRecords(),e=null,window.removeEventListener("resize",t))}},mounted(){const{autoResizeMixinInit:e}=this;e()},beforeDestroy(){const{unbindDomResizeCallback:e}=this;e()}},N={name:"DvBorderBox1",mixins:[A],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-1",border:["left-top","right-top","left-bottom","right-bottom"],defaultColor:["#4fd2dd","#235fa7"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},P=N,j=Object(b["a"])(P,k,L,!1,null,null,null),R=j.exports,F=function(e){e.component(R.name,R)},B=(n("6ccd"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-10",style:"box-shadow: inset 0 0 25px 3px "+e.mergedColor[0]},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("polygon",{attrs:{fill:e.backgroundColor,points:"\n 4, 0 "+(e.width-4)+", 0 "+e.width+", 4 "+e.width+", "+(e.height-4)+" "+(e.width-4)+", "+e.height+"\n 4, "+e.height+" 0, "+(e.height-4)+" 0, 4\n "}})]),e._l(e.border,(function(t){return n("svg",{key:t,class:t+" dv-border-svg-container",attrs:{width:"150px",height:"150px"}},[n("polygon",{attrs:{fill:e.mergedColor[1],points:"40, 0 5, 0 0, 5 0, 16 3, 19 3, 7 7, 3 35, 3"}})])})),n("div",{staticClass:"border-box-content"},[e._t("default")],2)],2)}),W=[],V={name:"DvBorderBox10",mixins:[A],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-10",border:["left-top","right-top","left-bottom","right-bottom"],defaultColor:["#1d48c4","#d3e1f8"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},z=V,H=Object(b["a"])(z,B,W,!1,null,null,null),U=H.exports,q=function(e){e.component(U.name,U)},$=(n("4656"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-11"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("defs",[n("filter",{attrs:{id:e.filterId,height:"150%",width:"150%",x:"-25%",y:"-25%"}},[n("feMorphology",{attrs:{operator:"dilate",radius:"2",in:"SourceAlpha",result:"thicken"}}),n("feGaussianBlur",{attrs:{in:"thicken",stdDeviation:"3",result:"blurred"}}),n("feFlood",{attrs:{"flood-color":e.mergedColor[1],result:"glowColor"}}),n("feComposite",{attrs:{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"}}),n("feMerge",[n("feMergeNode",{attrs:{in:"softGlowColored"}}),n("feMergeNode",{attrs:{in:"SourceGraphic"}})],1)],1)]),n("polygon",{attrs:{fill:e.backgroundColor,points:"\n 20, 32 "+(.5*e.width-e.titleWidth/2)+", 32 "+(.5*e.width-e.titleWidth/2+20)+", 53\n "+(.5*e.width+e.titleWidth/2-20)+", 53 "+(.5*e.width+e.titleWidth/2)+", 32\n "+(e.width-20)+", 32 "+(e.width-8)+", 48 "+(e.width-8)+", "+(e.height-25)+" "+(e.width-20)+", "+(e.height-8)+"\n 20, "+(e.height-8)+" 8, "+(e.height-25)+" 8, 50\n "}}),n("polyline",{attrs:{stroke:e.mergedColor[0],filter:"url(#"+e.filterId+")",points:"\n "+(e.width-e.titleWidth)/2+", 30\n 20, 30 7, 50 7, "+(50+(e.height-167)/2)+"\n 13, "+(55+(e.height-167)/2)+" 13, "+(135+(e.height-167)/2)+"\n 7, "+(140+(e.height-167)/2)+" 7, "+(e.height-27)+"\n 20, "+(e.height-7)+" "+(e.width-20)+", "+(e.height-7)+" "+(e.width-7)+", "+(e.height-27)+"\n "+(e.width-7)+", "+(140+(e.height-167)/2)+" "+(e.width-13)+", "+(135+(e.height-167)/2)+"\n "+(e.width-13)+", "+(55+(e.height-167)/2)+" "+(e.width-7)+", "+(50+(e.height-167)/2)+"\n "+(e.width-7)+", 50 "+(e.width-20)+", 30 "+(e.width+e.titleWidth)/2+", 30\n "+((e.width+e.titleWidth)/2-20)+", 7 "+((e.width-e.titleWidth)/2+20)+", 7\n "+(e.width-e.titleWidth)/2+", 30 "+((e.width-e.titleWidth)/2+20)+", 52\n "+((e.width+e.titleWidth)/2-20)+", 52 "+(e.width+e.titleWidth)/2+", 30\n "}}),n("polygon",{attrs:{stroke:e.mergedColor[0],fill:"transparent",points:"\n "+((e.width+e.titleWidth)/2-5)+", 30 "+((e.width+e.titleWidth)/2-21)+", 11\n "+((e.width+e.titleWidth)/2-27)+", 11 "+((e.width+e.titleWidth)/2-8)+", 34\n "}}),n("polygon",{attrs:{stroke:e.mergedColor[0],fill:"transparent",points:"\n "+((e.width-e.titleWidth)/2+5)+", 30 "+((e.width-e.titleWidth)/2+22)+", 49\n "+((e.width-e.titleWidth)/2+28)+", 49 "+((e.width-e.titleWidth)/2+8)+", 26\n "}}),n("polygon",{attrs:{stroke:e.mergedColor[0],fill:e.fade(e.mergedColor[1]||e.defaultColor[1],30),filter:"url(#"+e.filterId+")",points:"\n "+((e.width+e.titleWidth)/2-11)+", 37 "+((e.width+e.titleWidth)/2-32)+", 11\n "+((e.width-e.titleWidth)/2+23)+", 11 "+((e.width-e.titleWidth)/2+11)+", 23\n "+((e.width-e.titleWidth)/2+33)+", 49 "+((e.width+e.titleWidth)/2-22)+", 49\n "}}),n("polygon",{attrs:{filter:"url(#"+e.filterId+")",fill:e.mergedColor[0],opacity:"1",points:"\n "+((e.width-e.titleWidth)/2-10)+", 37 "+((e.width-e.titleWidth)/2-31)+", 37\n "+((e.width-e.titleWidth)/2-25)+", 46 "+((e.width-e.titleWidth)/2-4)+", 46\n "}},[n("animate",{attrs:{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{filter:"url(#"+e.filterId+")",fill:e.mergedColor[0],opacity:"0.7",points:"\n "+((e.width-e.titleWidth)/2-40)+", 37 "+((e.width-e.titleWidth)/2-61)+", 37\n "+((e.width-e.titleWidth)/2-55)+", 46 "+((e.width-e.titleWidth)/2-34)+", 46\n "}},[n("animate",{attrs:{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{filter:"url(#"+e.filterId+")",fill:e.mergedColor[0],opacity:"0.5",points:"\n "+((e.width-e.titleWidth)/2-70)+", 37 "+((e.width-e.titleWidth)/2-91)+", 37\n "+((e.width-e.titleWidth)/2-85)+", 46 "+((e.width-e.titleWidth)/2-64)+", 46\n "}},[n("animate",{attrs:{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{filter:"url(#"+e.filterId+")",fill:e.mergedColor[0],opacity:"1",points:"\n "+((e.width+e.titleWidth)/2+30)+", 37 "+((e.width+e.titleWidth)/2+9)+", 37\n "+((e.width+e.titleWidth)/2+3)+", 46 "+((e.width+e.titleWidth)/2+24)+", 46\n "}},[n("animate",{attrs:{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{filter:"url(#"+e.filterId+")",fill:e.mergedColor[0],opacity:"0.7",points:"\n "+((e.width+e.titleWidth)/2+60)+", 37 "+((e.width+e.titleWidth)/2+39)+", 37\n "+((e.width+e.titleWidth)/2+33)+", 46 "+((e.width+e.titleWidth)/2+54)+", 46\n "}},[n("animate",{attrs:{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{filter:"url(#"+e.filterId+")",fill:e.mergedColor[0],opacity:"0.5",points:"\n "+((e.width+e.titleWidth)/2+90)+", 37 "+((e.width+e.titleWidth)/2+69)+", 37\n "+((e.width+e.titleWidth)/2+63)+", 46 "+((e.width+e.titleWidth)/2+84)+", 46\n "}},[n("animate",{attrs:{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),n("text",{staticClass:"dv-border-box-11-title",attrs:{x:""+e.width/2,y:"32",fill:"#fff","font-size":"18","text-anchor":"middle","dominant-baseline":"middle"}},[e._v(" "+e._s(e.title)+" ")]),n("polygon",{attrs:{fill:e.mergedColor[0],filter:"url(#"+e.filterId+")",points:"\n 7, "+(53+(e.height-167)/2)+" 11, "+(57+(e.height-167)/2)+"\n 11, "+(133+(e.height-167)/2)+" 7, "+(137+(e.height-167)/2)+"\n "}}),n("polygon",{attrs:{fill:e.mergedColor[0],filter:"url(#"+e.filterId+")",points:"\n "+(e.width-7)+", "+(53+(e.height-167)/2)+" "+(e.width-11)+", "+(57+(e.height-167)/2)+"\n "+(e.width-11)+", "+(133+(e.height-167)/2)+" "+(e.width-7)+", "+(137+(e.height-167)/2)+"\n "}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),K=[],G=(n("a9e3"),n("a870")),Y={name:"DvBorderBox11",mixins:[A],props:{color:{type:Array,default:function(){return[]}},titleWidth:{type:Number,default:250},title:{type:String,default:""},backgroundColor:{type:String,default:"transparent"}},data:function(){var e=T();return{ref:"border-box-11",filterId:"border-box-11-filterId-".concat(e),defaultColor:["#8aaafb","#1f33a2"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])},fade:G["fade"]},mounted:function(){var e=this.mergeColor;e()}},Z=Y,X=Object(b["a"])(Z,$,K,!1,null,null,null),Q=X.exports,J=function(e){e.component(Q.name,Q)},ee=(n("3c0e"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-12"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("defs",[n("filter",{attrs:{id:e.filterId,height:"150%",width:"150%",x:"-25%",y:"-25%"}},[n("feMorphology",{attrs:{operator:"dilate",radius:"1",in:"SourceAlpha",result:"thicken"}}),n("feGaussianBlur",{attrs:{in:"thicken",stdDeviation:"2",result:"blurred"}}),n("feFlood",{attrs:{"flood-color":e.fade(e.mergedColor[1]||e.defaultColor[1],70),result:"glowColor"}},[n("animate",{attrs:{attributeName:"flood-color",values:"\n "+e.fade(e.mergedColor[1]||e.defaultColor[1],70)+";\n "+e.fade(e.mergedColor[1]||e.defaultColor[1],30)+";\n "+e.fade(e.mergedColor[1]||e.defaultColor[1],70)+";\n ",dur:"3s",begin:"0s",repeatCount:"indefinite"}})]),n("feComposite",{attrs:{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"}}),n("feMerge",[n("feMergeNode",{attrs:{in:"softGlowColored"}}),n("feMergeNode",{attrs:{in:"SourceGraphic"}})],1)],1)]),e.width&&e.height?n("path",{attrs:{fill:e.backgroundColor,"stroke-width":"2",stroke:e.mergedColor[0],d:"\n M15 5 L "+(e.width-15)+" 5 Q "+(e.width-5)+" 5, "+(e.width-5)+" 15\n L "+(e.width-5)+" "+(e.height-15)+" Q "+(e.width-5)+" "+(e.height-5)+", "+(e.width-15)+" "+(e.height-5)+"\n L 15, "+(e.height-5)+" Q 5 "+(e.height-5)+" 5 "+(e.height-15)+" L 5 15\n Q 5 5 15 5\n "}}):e._e(),n("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#"+e.filterId+")",stroke:e.mergedColor[1],d:"M 20 5 L 15 5 Q 5 5 5 15 L 5 20"}}),n("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#"+e.filterId+")",stroke:e.mergedColor[1],d:"M "+(e.width-20)+" 5 L "+(e.width-15)+" 5 Q "+(e.width-5)+" 5 "+(e.width-5)+" 15 L "+(e.width-5)+" 20"}}),n("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#"+e.filterId+")",stroke:e.mergedColor[1],d:"\n M "+(e.width-20)+" "+(e.height-5)+" L "+(e.width-15)+" "+(e.height-5)+"\n Q "+(e.width-5)+" "+(e.height-5)+" "+(e.width-5)+" "+(e.height-15)+"\n L "+(e.width-5)+" "+(e.height-20)+"\n "}}),n("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#"+e.filterId+")",stroke:e.mergedColor[1],d:"\n M 20 "+(e.height-5)+" L 15 "+(e.height-5)+"\n Q 5 "+(e.height-5)+" 5 "+(e.height-15)+"\n L 5 "+(e.height-20)+"\n "}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),te=[],ne={name:"DvBorderBox12",mixins:[A],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){var e=T();return{ref:"border-box-12",filterId:"borderr-box-12-filterId-".concat(e),defaultColor:["#2e6099","#7ce7fd"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])},fade:G["fade"]},mounted:function(){var e=this.mergeColor;e()}},ie=ne,re=Object(b["a"])(ie,ee,te,!1,null,null,null),oe=re.exports,se=function(e){e.component(oe.name,oe)},ae=(n("470c"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-13"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("path",{attrs:{fill:e.backgroundColor,stroke:e.mergedColor[0],d:"\n M 5 20 L 5 10 L 12 3 L 60 3 L 68 10\n L "+(e.width-20)+" 10 L "+(e.width-5)+" 25\n L "+(e.width-5)+" "+(e.height-5)+" L 20 "+(e.height-5)+"\n L 5 "+(e.height-20)+" L 5 20\n "}}),n("path",{attrs:{fill:"transparent","stroke-width":"3","stroke-linecap":"round","stroke-dasharray":"10, 5",stroke:e.mergedColor[0],d:"M 16 9 L 61 9"}}),n("path",{attrs:{fill:"transparent",stroke:e.mergedColor[1],d:"M 5 20 L 5 10 L 12 3 L 60 3 L 68 10"}}),n("path",{attrs:{fill:"transparent",stroke:e.mergedColor[1],d:"M "+(e.width-5)+" "+(e.height-30)+" L "+(e.width-5)+" "+(e.height-5)+" L "+(e.width-30)+" "+(e.height-5)}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),le=[],ce={name:"DvBorderBox13",mixins:[A],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-13",defaultColor:["#6586ec","#2cf7fe"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},ue=ce,he=Object(b["a"])(ue,ae,le,!1,null,null,null),de=he.exports,fe=function(e){e.component(de.name,de)},pe=(n("b72d"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-2"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("polygon",{attrs:{fill:e.backgroundColor,points:"\n 7, 7 "+(e.width-7)+", 7 "+(e.width-7)+", "+(e.height-7)+" 7, "+(e.height-7)+"\n "}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:"2, 2 "+(e.width-2)+" ,2 "+(e.width-2)+", "+(e.height-2)+" 2, "+(e.height-2)+" 2, 2"}}),n("polyline",{attrs:{stroke:e.mergedColor[1],points:"6, 6 "+(e.width-6)+", 6 "+(e.width-6)+", "+(e.height-6)+" 6, "+(e.height-6)+" 6, 6"}}),n("circle",{attrs:{fill:e.mergedColor[0],cx:"11",cy:"11",r:"1"}}),n("circle",{attrs:{fill:e.mergedColor[0],cx:e.width-11,cy:"11",r:"1"}}),n("circle",{attrs:{fill:e.mergedColor[0],cx:e.width-11,cy:e.height-11,r:"1"}}),n("circle",{attrs:{fill:e.mergedColor[0],cx:"11",cy:e.height-11,r:"1"}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),ge=[],me={name:"DvBorderBox2",mixins:[A],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-2",defaultColor:["#fff","rgba(255, 255, 255, 0.6)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},ve=me,be=Object(b["a"])(ve,pe,ge,!1,null,null,null),ye=be.exports,_e=function(e){e.component(ye.name,ye)},we=(n("1e4c"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-3"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("polygon",{attrs:{fill:e.backgroundColor,points:"\n 23, 23 "+(e.width-24)+", 23 "+(e.width-24)+", "+(e.height-24)+" 23, "+(e.height-24)+"\n "}}),n("polyline",{staticClass:"dv-bb3-line1",attrs:{stroke:e.mergedColor[0],points:"4, 4 "+(e.width-22)+" ,4 "+(e.width-22)+", "+(e.height-22)+" 4, "+(e.height-22)+" 4, 4"}}),n("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:e.mergedColor[1],points:"10, 10 "+(e.width-16)+", 10 "+(e.width-16)+", "+(e.height-16)+" 10, "+(e.height-16)+" 10, 10"}}),n("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:e.mergedColor[1],points:"16, 16 "+(e.width-10)+", 16 "+(e.width-10)+", "+(e.height-10)+" 16, "+(e.height-10)+" 16, 16"}}),n("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:e.mergedColor[1],points:"22, 22 "+(e.width-4)+", 22 "+(e.width-4)+", "+(e.height-4)+" 22, "+(e.height-4)+" 22, 22"}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),Ce=[],Se={name:"DvBorderBox3",mixins:[A],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-3",defaultColor:["#2862b7","#2862b7"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},xe=Se,Oe=Object(b["a"])(xe,we,Ce,!1,null,null,null),ke=Oe.exports,Le=function(e){e.component(ke.name,ke)},Ee=(n("1dac"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-4"},[n("svg",{class:"dv-border-svg-container "+(e.reverse&&"dv-reverse"),attrs:{width:e.width,height:e.height}},[n("polygon",{attrs:{fill:e.backgroundColor,points:"\n "+(e.width-15)+", 22 170, 22 150, 7 40, 7 28, 21 32, 24\n 16, 42 16, "+(e.height-32)+" 41, "+(e.height-7)+" "+(e.width-15)+", "+(e.height-7)+"\n "}}),n("polyline",{staticClass:"dv-bb4-line-1",attrs:{stroke:e.mergedColor[0],points:"145, "+(e.height-5)+" 40, "+(e.height-5)+" 10, "+(e.height-35)+"\n 10, 40 40, 5 150, 5 170, 20 "+(e.width-15)+", 20"}}),n("polyline",{staticClass:"dv-bb4-line-2",attrs:{stroke:e.mergedColor[1],points:"245, "+(e.height-1)+" 36, "+(e.height-1)+" 14, "+(e.height-23)+"\n 14, "+(e.height-100)}}),n("polyline",{staticClass:"dv-bb4-line-3",attrs:{stroke:e.mergedColor[0],points:"7, "+(e.height-40)+" 7, "+(e.height-75)}}),n("polyline",{staticClass:"dv-bb4-line-4",attrs:{stroke:e.mergedColor[0],points:"28, 24 13, 41 13, 64"}}),n("polyline",{staticClass:"dv-bb4-line-5",attrs:{stroke:e.mergedColor[0],points:"5, 45 5, 140"}}),n("polyline",{staticClass:"dv-bb4-line-6",attrs:{stroke:e.mergedColor[1],points:"14, 75 14, 180"}}),n("polyline",{staticClass:"dv-bb4-line-7",attrs:{stroke:e.mergedColor[1],points:"55, 11 147, 11 167, 26 250, 26"}}),n("polyline",{staticClass:"dv-bb4-line-8",attrs:{stroke:e.mergedColor[1],points:"158, 5 173, 16"}}),n("polyline",{staticClass:"dv-bb4-line-9",attrs:{stroke:e.mergedColor[0],points:"200, 17 "+(e.width-10)+", 17"}}),n("polyline",{staticClass:"dv-bb4-line-10",attrs:{stroke:e.mergedColor[1],points:"385, 17 "+(e.width-10)+", 17"}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),De=[],Ie={name:"DvBorderBox4",mixins:[A],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-4",defaultColor:["red","rgba(0,0,255,0.8)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Me=Ie,Te=Object(b["a"])(Me,Ee,De,!1,null,null,null),Ae=Te.exports,Ne=function(e){e.component(Ae.name,Ae)},Pe=(n("042d"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-5"},[n("svg",{class:"dv-border-svg-container "+(e.reverse&&"dv-reverse"),attrs:{width:e.width,height:e.height}},[n("polygon",{attrs:{fill:e.backgroundColor,points:"\n 10, 22 "+(e.width-22)+", 22 "+(e.width-22)+", "+(e.height-86)+" "+(e.width-84)+", "+(e.height-24)+" 10, "+(e.height-24)+"\n "}}),n("polyline",{staticClass:"dv-bb5-line-1",attrs:{stroke:e.mergedColor[0],points:"8, 5 "+(e.width-5)+", 5 "+(e.width-5)+", "+(e.height-100)+"\n "+(e.width-100)+", "+(e.height-5)+" 8, "+(e.height-5)+" 8, 5"}}),n("polyline",{staticClass:"dv-bb5-line-2",attrs:{stroke:e.mergedColor[1],points:"3, 5 "+(e.width-20)+", 5 "+(e.width-20)+", "+(e.height-60)+"\n "+(e.width-74)+", "+(e.height-5)+" 3, "+(e.height-5)+" 3, 5"}}),n("polyline",{staticClass:"dv-bb5-line-3",attrs:{stroke:e.mergedColor[1],points:"50, 13 "+(e.width-35)+", 13"}}),n("polyline",{staticClass:"dv-bb5-line-4",attrs:{stroke:e.mergedColor[1],points:"15, 20 "+(e.width-35)+", 20"}}),n("polyline",{staticClass:"dv-bb5-line-5",attrs:{stroke:e.mergedColor[1],points:"15, "+(e.height-20)+" "+(e.width-110)+", "+(e.height-20)}}),n("polyline",{staticClass:"dv-bb5-line-6",attrs:{stroke:e.mergedColor[1],points:"15, "+(e.height-13)+" "+(e.width-110)+", "+(e.height-13)}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),je=[],Re={name:"DvBorderBox5",mixins:[A],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-5",defaultColor:["rgba(255, 255, 255, 0.35)","rgba(255, 255, 255, 0.20)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Fe=Re,Be=Object(b["a"])(Fe,Pe,je,!1,null,null,null),We=Be.exports,Ve=function(e){e.component(We.name,We)},ze=(n("4e86"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-6"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("polygon",{attrs:{fill:e.backgroundColor,points:"\n 9, 7 "+(e.width-9)+", 7 "+(e.width-9)+", "+(e.height-7)+" 9, "+(e.height-7)+"\n "}}),n("circle",{attrs:{fill:e.mergedColor[1],cx:"5",cy:"5",r:"2"}}),n("circle",{attrs:{fill:e.mergedColor[1],cx:e.width-5,cy:"5",r:"2"}}),n("circle",{attrs:{fill:e.mergedColor[1],cx:e.width-5,cy:e.height-5,r:"2"}}),n("circle",{attrs:{fill:e.mergedColor[1],cx:"5",cy:e.height-5,r:"2"}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:"10, 4 "+(e.width-10)+", 4"}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:"10, "+(e.height-4)+" "+(e.width-10)+", "+(e.height-4)}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:"5, 70 5, "+(e.height-70)}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:e.width-5+", 70 "+(e.width-5)+", "+(e.height-70)}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:"3, 10, 3, 50"}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:"7, 30 7, 80"}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:e.width-3+", 10 "+(e.width-3)+", 50"}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:e.width-7+", 30 "+(e.width-7)+", 80"}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:"3, "+(e.height-10)+" 3, "+(e.height-50)}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:"7, "+(e.height-30)+" 7, "+(e.height-80)}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:e.width-3+", "+(e.height-10)+" "+(e.width-3)+", "+(e.height-50)}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:e.width-7+", "+(e.height-30)+" "+(e.width-7)+", "+(e.height-80)}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),He=[],Ue={name:"DvBorderBox6",mixins:[A],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-6",defaultColor:["rgba(255, 255, 255, 0.35)","gray"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},qe=Ue,$e=Object(b["a"])(qe,ze,He,!1,null,null,null),Ke=$e.exports,Ge=function(e){e.component(Ke.name,Ke)},Ye=(n("3648"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-7",style:"box-shadow: inset 0 0 40px "+e.mergedColor[0]+"; border: 1px solid "+e.mergedColor[0]+"; background-color: "+e.backgroundColor},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:e.mergedColor[0],points:"0, 25 0, 0 25, 0"}}),n("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:e.mergedColor[0],points:e.width-25+", 0 "+e.width+", 0 "+e.width+", 25"}}),n("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:e.mergedColor[0],points:e.width-25+", "+e.height+" "+e.width+", "+e.height+" "+e.width+", "+(e.height-25)}}),n("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:e.mergedColor[0],points:"0, "+(e.height-25)+" 0, "+e.height+" 25, "+e.height}}),n("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:e.mergedColor[1],points:"0, 10 0, 0 10, 0"}}),n("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:e.mergedColor[1],points:e.width-10+", 0 "+e.width+", 0 "+e.width+", 10"}}),n("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:e.mergedColor[1],points:e.width-10+", "+e.height+" "+e.width+", "+e.height+" "+e.width+", "+(e.height-10)}}),n("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:e.mergedColor[1],points:"0, "+(e.height-10)+" 0, "+e.height+" 10, "+e.height}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),Ze=[],Xe={name:"DvBorderBox7",mixins:[A],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-7",defaultColor:["rgba(128,128,128,0.3)","rgba(128,128,128,0.5)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Qe=Xe,Je=Object(b["a"])(Qe,Ye,Ze,!1,null,null,null),et=Je.exports,tt=function(e){e.component(et.name,et)},nt=(n("733c"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-8"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("defs",[n("path",{attrs:{id:e.path,d:e.pathD,fill:"transparent"}}),n("radialGradient",{attrs:{id:e.gradient,cx:"50%",cy:"50%",r:"50%"}},[n("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"1"}}),n("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"0"}})],1),n("mask",{attrs:{id:e.mask}},[n("circle",{attrs:{cx:"0",cy:"0",r:"150",fill:"url(#"+e.gradient+")"}},[n("animateMotion",{attrs:{dur:e.dur+"s",path:e.pathD,rotate:"auto",repeatCount:"indefinite"}})],1)])],1),n("polygon",{attrs:{fill:e.backgroundColor,points:"5, 5 "+(e.width-5)+", 5 "+(e.width-5)+" "+(e.height-5)+" 5, "+(e.height-5)}}),n("use",{attrs:{stroke:e.mergedColor[0],"stroke-width":"1","xlink:href":"#"+e.path}}),n("use",{attrs:{stroke:e.mergedColor[1],"stroke-width":"3","xlink:href":"#"+e.path,mask:"url(#"+e.mask+")"}},[n("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, "+e.length,to:e.length+", 0",dur:e.dur+"s",repeatCount:"indefinite"}})])]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),it=[],rt=(n("99af"),{name:"DvBorderBox8",mixins:[A],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:3},backgroundColor:{type:String,default:"transparent"},reverse:{type:Boolean,default:!1}},data:function(){var e=T();return{ref:"border-box-8",path:"border-box-8-path-".concat(e),gradient:"border-box-8-gradient-".concat(e),mask:"border-box-8-mask-".concat(e),defaultColor:["#235fa7","#4fd2dd"],mergedColor:[]}},computed:{length:function(){var e=this.width,t=this.height;return 2*(e+t-5)},pathD:function(){var e=this.reverse,t=this.width,n=this.height;return e?"M 2.5, 2.5 L 2.5, ".concat(n-2.5," L ").concat(t-2.5,", ").concat(n-2.5," L ").concat(t-2.5,", 2.5 L 2.5, 2.5"):"M2.5, 2.5 L".concat(t-2.5,", 2.5 L").concat(t-2.5,", ").concat(n-2.5," L2.5, ").concat(n-2.5," L2.5, 2.5")}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}}),ot=rt,st=Object(b["a"])(ot,nt,it,!1,null,null,null),at=st.exports,lt=function(e){e.component(at.name,at)},ct=(n("6fc2"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-9"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("defs",[n("linearGradient",{attrs:{id:e.gradientId,x1:"0%",y1:"0%",x2:"100%",y2:"100%"}},[n("animate",{attrs:{attributeName:"x1",values:"0%;100%;0%",dur:"10s",begin:"0s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"x2",values:"100%;0%;100%",dur:"10s",begin:"0s",repeatCount:"indefinite"}}),n("stop",{attrs:{offset:"0%","stop-color":e.mergedColor[0]}},[n("animate",{attrs:{attributeName:"stop-color",values:e.mergedColor[0]+";"+e.mergedColor[1]+";"+e.mergedColor[0],dur:"10s",begin:"0s",repeatCount:"indefinite"}})]),n("stop",{attrs:{offset:"100%","stop-color":e.mergedColor[1]}},[n("animate",{attrs:{attributeName:"stop-color",values:e.mergedColor[1]+";"+e.mergedColor[0]+";"+e.mergedColor[1],dur:"10s",begin:"0s",repeatCount:"indefinite"}})])],1),n("mask",{attrs:{id:e.maskId}},[n("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:"8, "+.4*e.height+" 8, 3, "+(.4*e.width+7)+", 3"}}),n("polyline",{attrs:{fill:"#fff",points:"8, "+.15*e.height+" 8, 3, "+(.1*e.width+7)+", 3\n "+.1*e.width+", 8 14, 8 14, "+(.15*e.height-7)+"\n "}}),n("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:.5*e.width+", 3 "+(e.width-3)+", 3, "+(e.width-3)+", "+.25*e.height}}),n("polyline",{attrs:{fill:"#fff",points:"\n "+.52*e.width+", 3 "+.58*e.width+", 3\n "+(.58*e.width-7)+", 9 "+(.52*e.width+7)+", 9\n "}}),n("polyline",{attrs:{fill:"#fff",points:"\n "+.9*e.width+", 3 "+(e.width-3)+", 3 "+(e.width-3)+", "+.1*e.height+"\n "+(e.width-9)+", "+(.1*e.height-7)+" "+(e.width-9)+", 9 "+(.9*e.width+7)+", 9\n "}}),n("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:"8, "+.5*e.height+" 8, "+(e.height-3)+" "+(.3*e.width+7)+", "+(e.height-3)}}),n("polyline",{attrs:{fill:"#fff",points:"\n 8, "+.55*e.height+" 8, "+.7*e.height+"\n 2, "+(.7*e.height-7)+" 2, "+(.55*e.height+7)+"\n "}}),n("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:.35*e.width+", "+(e.height-3)+" "+(e.width-3)+", "+(e.height-3)+" "+(e.width-3)+", "+.35*e.height}}),n("polyline",{attrs:{fill:"#fff",points:"\n "+.92*e.width+", "+(e.height-3)+" "+(e.width-3)+", "+(e.height-3)+" "+(e.width-3)+", "+.8*e.height+"\n "+(e.width-9)+", "+(.8*e.height+7)+" "+(e.width-9)+", "+(e.height-9)+" "+(.92*e.width+7)+", "+(e.height-9)+"\n "}})])],1),n("polygon",{attrs:{fill:e.backgroundColor,points:"\n 15, 9 "+(.1*e.width+1)+", 9 "+(.1*e.width+4)+", 6 "+(.52*e.width+2)+", 6\n "+(.52*e.width+6)+", 10 "+(.58*e.width-7)+", 10 "+(.58*e.width-2)+", 6\n "+(.9*e.width+2)+", 6 "+(.9*e.width+6)+", 10 "+(e.width-10)+", 10 "+(e.width-10)+", "+(.1*e.height-6)+"\n "+(e.width-6)+", "+(.1*e.height-1)+" "+(e.width-6)+", "+(.8*e.height+1)+" "+(e.width-10)+", "+(.8*e.height+6)+"\n "+(e.width-10)+", "+(e.height-10)+" "+(.92*e.width+7)+", "+(e.height-10)+" "+(.92*e.width+2)+", "+(e.height-6)+"\n 11, "+(e.height-6)+" 11, "+(.15*e.height-2)+" 15, "+(.15*e.height-7)+"\n "}}),n("rect",{attrs:{x:"0",y:"0",width:e.width,height:e.height,fill:"url(#"+e.gradientId+")",mask:"url(#"+e.maskId+")"}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),ut=[],ht={name:"DvBorderBox9",mixins:[A],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){var e=T();return{ref:"border-box-9",gradientId:"border-box-9-gradient-".concat(e),maskId:"border-box-9-mask-".concat(e),defaultColor:["#11eefd","#0078d2"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},dt=ht,ft=Object(b["a"])(dt,ct,ut,!1,null,null,null),pt=ft.exports,gt=function(e){e.component(pt.name,pt)},mt=(n("335d"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dv-capsule-chart"},[e.mergedConfig?[n("div",{staticClass:"label-column"},[e._l(e.mergedConfig.data,(function(t){return n("div",{key:t.name},[e._v(e._s(t.name))])})),n("div")],2),n("div",{staticClass:"capsule-container"},[e._l(e.capsuleLength,(function(t,i){return n("div",{key:i,staticClass:"capsule-item"},[n("div",{staticClass:"capsule-item-column",style:"width: "+100*t+"%; background-color: "+e.mergedConfig.colors[i%e.mergedConfig.colors.length]+";"},[e.mergedConfig.showValue?n("div",{staticClass:"capsule-item-value"},[e._v(e._s(e.capsuleValue[i]))]):e._e()])])})),n("div",{staticClass:"unit-label"},e._l(e.labelData,(function(t,i){return n("div",{key:t+i},[e._v(e._s(t))])})),0)],2),e.mergedConfig.unit?n("div",{staticClass:"unit-text"},[e._v(e._s(e.mergedConfig.unit))]):e._e()]:e._e()],2)}),vt=[],bt=(n("cb29"),n("a630"),n("6062"),n("3ca3"),n("ddb0"),{name:"DvCapsuleChart",props:{config:{type:Object,default:function(){return{}}}},data:function(){return{defaultConfig:{data:[],colors:["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293"],unit:"",showValue:!1},mergedConfig:null,capsuleLength:[],capsuleValue:[],labelData:[],labelDataLength:[]}},watch:{config:function(){var e=this.calcData;e()}},methods:{calcData:function(){var e=this.mergeConfig,t=this.calcCapsuleLengthAndLabelData;e(),t()},mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||{})},calcCapsuleLengthAndLabelData:function(){var e=this.mergedConfig.data;if(e.length){var t=e.map((function(e){var t=e.value;return t})),n=Math.max.apply(Math,Object(o["a"])(t));this.capsuleValue=t,this.capsuleLength=t.map((function(e){return n?e/n:0}));var i=n/5,r=Array.from(new Set(new Array(6).fill(0).map((function(e,t){return Math.ceil(t*i)}))));this.labelData=r,this.labelDataLength=Array.from(r).map((function(e){return n?e/n:0}))}}},mounted:function(){var e=this.calcData;e()}}),yt=bt,_t=Object(b["a"])(yt,mt,vt,!1,null,null,null),wt=_t.exports,Ct=function(e){e.component(wt.name,wt)},St=(n("8261"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-charts-container"},[n("div",{ref:e.chartRef,staticClass:"charts-canvas-container"})])}),xt=[],Ot={name:"DvCharts",mixins:[A],props:{option:{type:Object,default:function(){return{}}}},data:function(){var e=T();return{ref:"charts-container-".concat(e),chartRef:"chart-".concat(e),chart:null}},watch:{option:function(){var e=this.chart,t=this.option;e&&(t||(t={}),e.setOption(t,!0))}},methods:{afterAutoResizeMixinInit:function(){var e=this.initChart;e()},initChart:function(){var e=this.$refs,t=this.chartRef,n=this.option,i=this.chart=new l.a(e[t]);n&&i.setOption(n)},onResize:function(){var e=this.chart;e&&e.resize()}}},kt=Ot,Lt=Object(b["a"])(kt,St,xt,!1,null,null,null),Et=Lt.exports,Dt=function(e){e.component(Et.name,Et)},It=(n("7ed3"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-conical-column-chart"},[n("svg",{attrs:{width:e.width,height:e.height}},e._l(e.column,(function(t,i){return n("g",{key:i},[n("path",{attrs:{d:t.d,fill:e.mergedConfig.columnColor}}),n("text",{style:"fontSize:"+e.mergedConfig.fontSize+"px",attrs:{fill:e.mergedConfig.textColor,x:t.x,y:e.height-4}},[e._v(" "+e._s(t.name)+" ")]),e.mergedConfig.img.length?n("image",{attrs:{"xlink:href":e.mergedConfig.img[i%e.mergedConfig.img.length],width:e.mergedConfig.imgSideLength,height:e.mergedConfig.imgSideLength,x:t.x-e.mergedConfig.imgSideLength/2,y:t.y-e.mergedConfig.imgSideLength}}):e._e(),e.mergedConfig.showValue?n("text",{style:"fontSize:"+e.mergedConfig.fontSize+"px",attrs:{fill:e.mergedConfig.textColor,x:t.x,y:t.textY}},[e._v(" "+e._s(t.value)+" ")]):e._e()])})),0)])}),Mt=[],Tt=(n("4e82"),{name:"DvConicalColumnChart",mixins:[A],props:{config:{type:Object,default:function(){return{}}}},data:function(){return{ref:"conical-column-chart",defaultConfig:{data:[],img:[],fontSize:12,imgSideLength:30,columnColor:"rgba(0, 194, 255, 0.4)",textColor:"#fff",showValue:!1},mergedConfig:null,column:[]}},watch:{config:function(){var e=this.calcData;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcData;e()},onResize:function(){var e=this.calcData;e()},calcData:function(){var e=this.mergeConfig,t=this.initData,n=this.calcSVGPath;e(),t(),n()},mergeConfig:function(){var e=this.defaultConfig,t=this.config;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||{})},initData:function(){var e=this.mergedConfig,t=e.data;t=Object(g["deepClone"])(t,!0),t.sort((function(e,t){var n=e.value,i=t.value;return n>i?-1:n<i?1:n===i?0:void 0}));var n=t[0]?t[0].value:10;t=t.map((function(e){return Object(s["a"])(Object(s["a"])({},e),{},{percent:e.value/n})})),e.data=t},calcSVGPath:function(){var e=this.mergedConfig,t=this.width,n=this.height,i=e.imgSideLength,r=e.fontSize,o=e.data,a=o.length,l=t/(a+1),c=n-i-r-5,u=n-r-5;this.column=o.map((function(e,t){var n=e.percent,i=l*(t+1),o=l*t,a=l*(t+2),h=u-c*n,d=c*n*.6+h,f="\n M".concat(o,", ").concat(u,"\n Q").concat(i,", ").concat(d," ").concat(i,",").concat(h,"\n M").concat(i,",").concat(h,"\n Q").concat(i,", ").concat(d," ").concat(a,",").concat(u,"\n L").concat(o,", ").concat(u,"\n Z\n "),p=(u+h)/2+r/2;return Object(s["a"])(Object(s["a"])({},e),{},{d:f,x:i,y:h,textY:p})}))}}}),At=Tt,Nt=Object(b["a"])(At,It,Mt,!1,null,null,null),Pt=Nt.exports,jt=function(e){e.component(Pt.name,Pt)},Rt=(n("11b09"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-1"},[n("svg",{style:"transform:scale("+e.svgScale[0]+","+e.svgScale[1]+");",attrs:{width:e.svgWH[0]+"px",height:e.svgWH[1]+"px"}},[e._l(e.points,(function(t,i){return[Math.random()>.6?n("rect",{key:i,attrs:{fill:e.mergedColor[0],x:t[0]-e.halfPointSideLength,y:t[1]-e.halfPointSideLength,width:e.pointSideLength,height:e.pointSideLength}},[Math.random()>.6?n("animate",{attrs:{attributeName:"fill",values:e.mergedColor[0]+";transparent",dur:"1s",begin:2*Math.random(),repeatCount:"indefinite"}}):e._e()]):e._e()]})),e.rects[0]?n("rect",{attrs:{fill:e.mergedColor[1],x:e.rects[0][0]-e.pointSideLength,y:e.rects[0][1]-e.pointSideLength,width:2*e.pointSideLength,height:2*e.pointSideLength}},[n("animate",{attrs:{attributeName:"width",values:"0;"+2*e.pointSideLength,dur:"2s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"height",values:"0;"+2*e.pointSideLength,dur:"2s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"x",values:e.rects[0][0]+";"+(e.rects[0][0]-e.pointSideLength),dur:"2s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"y",values:e.rects[0][1]+";"+(e.rects[0][1]-e.pointSideLength),dur:"2s",repeatCount:"indefinite"}})]):e._e(),e.rects[1]?n("rect",{attrs:{fill:e.mergedColor[1],x:e.rects[1][0]-40,y:e.rects[1][1]-e.pointSideLength,width:40,height:2*e.pointSideLength}},[n("animate",{attrs:{attributeName:"width",values:"0;40;0",dur:"2s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"x",values:e.rects[1][0]+";"+(e.rects[1][0]-40)+";"+e.rects[1][0],dur:"2s",repeatCount:"indefinite"}})]):e._e()],2)])}),Ft=[],Bt={name:"DvDecoration1",mixins:[A],props:{color:{type:Array,default:function(){return[]}}},data:function(){var e=2.5;return{ref:"decoration-1",svgWH:[200,50],svgScale:[1,1],rowNum:4,rowPoints:20,pointSideLength:e,halfPointSideLength:e/2,points:[],rects:[],defaultColor:["#fff","#0de7c2"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcSVGData;e()},calcSVGData:function(){var e=this.calcPointsPosition,t=this.calcRectsPosition,n=this.calcScale;e(),t(),n()},calcPointsPosition:function(){var e=this.svgWH,t=this.rowNum,n=this.rowPoints,i=Object(h["a"])(e,2),r=i[0],s=i[1],a=r/(n+1),l=s/(t+1),c=new Array(t).fill(0).map((function(e,t){return new Array(n).fill(0).map((function(e,n){return[a*(n+1),l*(t+1)]}))}));this.points=c.reduce((function(e,t){return[].concat(Object(o["a"])(e),Object(o["a"])(t))}),[])},calcRectsPosition:function(){var e=this.points,t=this.rowPoints,n=e[2*t-1],i=e[2*t-3];this.rects=[n,i]},calcScale:function(){var e=this.width,t=this.height,n=this.svgWH,i=Object(h["a"])(n,2),r=i[0],o=i[1];this.svgScale=[e/r,t/o]},onResize:function(){var e=this.calcSVGData;e()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Wt=Bt,Vt=Object(b["a"])(Wt,Rt,Ft,!1,null,null,null),zt=Vt.exports,Ht=function(e){e.component(zt.name,zt)},Ut=(n("c423"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-10"},[n("svg",{attrs:{width:e.width,height:e.height}},[n("polyline",{attrs:{stroke:e.mergedColor[1],"stroke-width":"2",points:"0, "+e.height/2+" "+e.width+", "+e.height/2}}),n("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",points:"5, "+e.height/2+" "+(.2*e.width-3)+", "+e.height/2,"stroke-dasharray":"0, "+.2*e.width,fill:"freeze"}},[n("animate",{attrs:{id:e.animationId2,attributeName:"stroke-dasharray",values:"0, "+.2*e.width+";"+.2*e.width+", 0;",dur:"3s",begin:e.animationId1+".end",fill:"freeze"}}),n("animate",{attrs:{attributeName:"stroke-dasharray",values:.2*e.width+", 0;0, "+.2*e.width,dur:"0.01s",begin:e.animationId7+".end",fill:"freeze"}})]),n("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",points:.2*e.width+3+", "+e.height/2+" "+(.8*e.width-3)+", "+e.height/2,"stroke-dasharray":"0, "+.6*e.width}},[n("animate",{attrs:{id:e.animationId4,attributeName:"stroke-dasharray",values:"0, "+.6*e.width+";"+.6*e.width+", 0",dur:"3s",begin:e.animationId3+".end + 1s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"stroke-dasharray",values:.6*e.width+", 0;0, "+.6*e.width,dur:"0.01s",begin:e.animationId7+".end",fill:"freeze"}})]),n("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",points:.8*e.width+3+", "+e.height/2+" "+(e.width-5)+", "+e.height/2,"stroke-dasharray":"0, "+.2*e.width}},[n("animate",{attrs:{id:e.animationId6,attributeName:"stroke-dasharray",values:"0, "+.2*e.width+";"+.2*e.width+", 0",dur:"3s",begin:e.animationId5+".end + 1s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"stroke-dasharray",values:.2*e.width+", 0;0, "+.3*e.width,dur:"0.01s",begin:e.animationId7+".end",fill:"freeze"}})]),n("circle",{attrs:{cx:"2",cy:e.height/2,r:"2",fill:e.mergedColor[1]}},[n("animate",{attrs:{id:e.animationId1,attributeName:"fill",values:e.mergedColor[1]+";"+e.mergedColor[0],begin:"0s;"+e.animationId7+".end",dur:"0.3s",fill:"freeze"}})]),n("circle",{attrs:{cx:.2*e.width,cy:e.height/2,r:"2",fill:e.mergedColor[1]}},[n("animate",{attrs:{id:e.animationId3,attributeName:"fill",values:e.mergedColor[1]+";"+e.mergedColor[0],begin:e.animationId2+".end",dur:"0.3s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"fill",values:e.mergedColor[1]+";"+e.mergedColor[1],dur:"0.01s",begin:e.animationId7+".end",fill:"freeze"}})]),n("circle",{attrs:{cx:.8*e.width,cy:e.height/2,r:"2",fill:e.mergedColor[1]}},[n("animate",{attrs:{id:e.animationId5,attributeName:"fill",values:e.mergedColor[1]+";"+e.mergedColor[0],begin:e.animationId4+".end",dur:"0.3s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"fill",values:e.mergedColor[1]+";"+e.mergedColor[1],dur:"0.01s",begin:e.animationId7+".end",fill:"freeze"}})]),n("circle",{attrs:{cx:e.width-2,cy:e.height/2,r:"2",fill:e.mergedColor[1]}},[n("animate",{attrs:{id:e.animationId7,attributeName:"fill",values:e.mergedColor[1]+";"+e.mergedColor[0],begin:e.animationId6+".end",dur:"0.3s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"fill",values:e.mergedColor[1]+";"+e.mergedColor[1],dur:"0.01s",begin:e.animationId7+".end",fill:"freeze"}})])])])}),qt=[],$t={name:"DvDecoration10",mixins:[A],props:{color:{type:Array,default:function(){return[]}}},data:function(){var e=T();return{ref:"decoration-10",animationId1:"d10ani1".concat(e),animationId2:"d10ani2".concat(e),animationId3:"d10ani3".concat(e),animationId4:"d10ani4".concat(e),animationId5:"d10ani5".concat(e),animationId6:"d10ani6".concat(e),animationId7:"d10ani7".concat(e),defaultColor:["#00c2ff","rgba(0, 194, 255, 0.3)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Kt=$t,Gt=Object(b["a"])(Kt,Ut,qt,!1,null,null,null),Yt=Gt.exports,Zt=function(e){e.component(Yt.name,Yt)},Xt=(n("3e8a"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-11"},[n("svg",{attrs:{width:e.width,height:e.height}},[n("polygon",{attrs:{fill:e.fade(e.mergedColor[1]||e.defaultColor[1],10),stroke:e.mergedColor[1],points:"20 10, 25 4, 55 4 60 10"}}),n("polygon",{attrs:{fill:e.fade(e.mergedColor[1]||e.defaultColor[1],10),stroke:e.mergedColor[1],points:"20 "+(e.height-10)+", 25 "+(e.height-4)+", 55 "+(e.height-4)+" 60 "+(e.height-10)}}),n("polygon",{attrs:{fill:e.fade(e.mergedColor[1]||e.defaultColor[1],10),stroke:e.mergedColor[1],points:e.width-20+" 10, "+(e.width-25)+" 4, "+(e.width-55)+" 4 "+(e.width-60)+" 10"}}),n("polygon",{attrs:{fill:e.fade(e.mergedColor[1]||e.defaultColor[1],10),stroke:e.mergedColor[1],points:e.width-20+" "+(e.height-10)+", "+(e.width-25)+" "+(e.height-4)+", "+(e.width-55)+" "+(e.height-4)+" "+(e.width-60)+" "+(e.height-10)}}),n("polygon",{attrs:{fill:e.fade(e.mergedColor[0]||e.defaultColor[0],20),stroke:e.mergedColor[0],points:"\n 20 10, 5 "+e.height/2+" 20 "+(e.height-10)+"\n "+(e.width-20)+" "+(e.height-10)+" "+(e.width-5)+" "+e.height/2+" "+(e.width-20)+" 10\n "}}),n("polyline",{attrs:{fill:"transparent",stroke:e.fade(e.mergedColor[0]||e.defaultColor[0],70),points:"25 18, 15 "+e.height/2+" 25 "+(e.height-18)}}),n("polyline",{attrs:{fill:"transparent",stroke:e.fade(e.mergedColor[0]||e.defaultColor[0],70),points:e.width-25+" 18, "+(e.width-15)+" "+e.height/2+" "+(e.width-25)+" "+(e.height-18)}})]),n("div",{staticClass:"decoration-content"},[e._t("default")],2)])}),Qt=[],Jt={name:"DvDecoration11",mixins:[A],props:{color:{type:Array,default:function(){return[]}}},data:function(){return{ref:"decoration-11",defaultColor:["#1a98fc","#2cf7fe"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])},fade:G["fade"]},mounted:function(){var e=this.mergeColor;e()}},en=Jt,tn=Object(b["a"])(en,Xt,Qt,!1,null,null,null),nn=tn.exports,rn=function(e){e.component(nn.name,nn)},on=(n("e11f"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-12"},[n("svg",{attrs:{width:e.width,height:e.height}},[n("defs",[n("g",{attrs:{id:e.gId}},e._l(e.pathD,(function(t,i){return n("path",{key:t,attrs:{stroke:e.pathColor[i],"stroke-width":e.width/2,fill:"transparent",d:t}})})),0),n("radialGradient",{attrs:{id:e.gradientId,cx:"50%",cy:"50%",r:"50%"}},[n("stop",{attrs:{offset:"0%","stop-color":"transparent","stop-opacity":"1"}}),n("stop",{attrs:{offset:"100%","stop-color":e.fade(e.mergedColor[1]||e.defaultColor[1],30),"stop-opacity":"1"}})],1)],1),e._l(e.circleR,(function(t){return n("circle",{key:t,attrs:{r:t,cx:e.x,cy:e.y,stroke:e.mergedColor[1],"stroke-width":.5,fill:"transparent"}})})),n("circle",{attrs:{r:"1",cx:e.x,cy:e.y,stroke:"transparent",fill:"url(#"+e.gradientId+")"}},[n("animate",{attrs:{attributeName:"r",values:"1;"+e.width/2,dur:e.haloDur+"s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:e.haloDur+"s",repeatCount:"indefinite"}})]),n("circle",{attrs:{r:"2",cx:e.x,cy:e.y,fill:e.mergedColor[1]}}),e.showSplitLine?n("g",e._l(e.splitLinePoints,(function(t){return n("polyline",{key:t,attrs:{points:t,stroke:e.mergedColor[1],"stroke-width":.5,opacity:"0.5"}})})),0):e._e(),e._l(e.arcD,(function(t){return n("path",{key:t,attrs:{d:t,stroke:e.mergedColor[1],"stroke-width":"2",fill:"transparent"}})})),n("use",{attrs:{"xlink:href":"#"+e.gId}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0, "+e.x+" "+e.y+";360, "+e.x+" "+e.y,dur:e.scanDur+"s",repeatCount:"indefinite"}})],1)],2),n("div",{staticClass:"decoration-content"},[e._t("default")],2)])}),sn=[],an=(n("a15b"),{name:"DvDecoration12",mixins:[A],props:{color:{type:Array,default:function(){return[]}},scanDur:{type:Number,default:3},haloDur:{type:Number,default:2}},data:function(){var e=T();return{ref:"decoration-12",gId:"decoration-12-g-".concat(e),gradientId:"decoration-12-gradient-".concat(e),defaultColor:["#2783ce","#2cf7fe"],mergedColor:[],pathD:[],pathColor:[],circleR:[],splitLinePoints:[],arcD:[],segment:30,sectorAngle:Math.PI/3,ringNum:3,ringWidth:1,showSplitLine:!0}},watch:{color:function(){var e=this.mergeColor;e()}},computed:{x:function(){var e=this.width;return e/2},y:function(){var e=this.height;return e/2}},methods:{init:function(){var e=this.mergeColor,t=this.calcPathD,n=this.calcPathColor,i=this.calcCircleR,r=this.calcSplitLinePoints,o=this.calcArcD;e(),t(),n(),i(),r(),o()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])},calcPathD:function(){var e=this.x,t=this.y,n=this.width,i=this.segment,r=this.sectorAngle,o=-Math.PI/2,s=r/i,a=n/4,l=Object(g["getCircleRadianPoint"])(e,t,a,o);this.pathD=new Array(i).fill("").map((function(n,i){var r=Object(g["getCircleRadianPoint"])(e,t,a,o-(i+1)*s).map((function(e){return e.toFixed(5)})),c="M".concat(l.join(",")," A").concat(a,", ").concat(a," 0 0 0 ").concat(r.join(","));return l=r,c}))},calcPathColor:function(){var e=Object(h["a"])(this.mergedColor,1),t=e[0],n=this.segment,i=100/(n-1);this.pathColor=new Array(n).fill(t).map((function(e,n){return Object(G["fade"])(t,100-n*i)}))},calcCircleR:function(){this.segment;var e=this.ringNum,t=this.width,n=this.ringWidth,i=(t/2-n/2)/e;this.circleR=new Array(e).fill(0).map((function(e,t){return i*(t+1)}))},calcSplitLinePoints:function(){var e=this.x,t=this.y,n=this.width,i=Math.PI/6,r=n/2;this.splitLinePoints=new Array(6).fill("").map((function(n,o){var s=i*(o+1),a=s+Math.PI,l=Object(g["getCircleRadianPoint"])(e,t,r,s),c=Object(g["getCircleRadianPoint"])(e,t,r,a);return"".concat(l.join(",")," ").concat(c.join(","))}))},calcArcD:function(){var e=this.x,t=this.y,n=this.width,i=Math.PI/6,r=n/2-1;this.arcD=new Array(4).fill("").map((function(n,o){var s=i*(3*o+1),a=s+i,l=Object(g["getCircleRadianPoint"])(e,t,r,s),c=Object(g["getCircleRadianPoint"])(e,t,r,a);return"M".concat(l.join(",")," A").concat(e,", ").concat(t," 0 0 1 ").concat(c.join(","))}))},afterAutoResizeMixinInit:function(){var e=this.init;e()},fade:G["fade"]}}),ln=an,cn=Object(b["a"])(ln,on,sn,!1,null,null,null),un=cn.exports,hn=function(e){e.component(un.name,un)},dn=(n("9b06"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-2"},[n("svg",{attrs:{width:e.width+"px",height:e.height+"px"}},[n("rect",{attrs:{x:e.x,y:e.y,width:e.w,height:e.h,fill:e.mergedColor[0]}},[n("animate",{attrs:{attributeName:e.reverse?"height":"width",from:"0",to:e.reverse?e.height:e.width,dur:e.dur+"s",calcMode:"spline",keyTimes:"0;1",keySplines:".42,0,.58,1",repeatCount:"indefinite"}})]),n("rect",{attrs:{x:e.x,y:e.y,width:"1",height:"1",fill:e.mergedColor[1]}},[n("animate",{attrs:{attributeName:e.reverse?"y":"x",from:"0",to:e.reverse?e.height:e.width,dur:e.dur+"s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.42,0,0.58,1",repeatCount:"indefinite"}})])])])}),fn=[],pn={name:"DvDecoration2",mixins:[A],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},dur:{type:Number,default:6}},data:function(){return{ref:"decoration-2",x:0,y:0,w:0,h:0,defaultColor:["#3faacb","#fff"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()},reverse:function(){var e=this.calcSVGData;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcSVGData;e()},calcSVGData:function(){var e=this.reverse,t=this.width,n=this.height;e?(this.w=1,this.h=n,this.x=t/2,this.y=0):(this.w=t,this.h=1,this.x=0,this.y=n/2)},onResize:function(){var e=this.calcSVGData;e()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},gn=pn,mn=Object(b["a"])(gn,dn,fn,!1,null,null,null),vn=mn.exports,bn=function(e){e.component(vn.name,vn)},yn=(n("5e07"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-3"},[n("svg",{style:"transform:scale("+e.svgScale[0]+","+e.svgScale[1]+");",attrs:{width:e.svgWH[0]+"px",height:e.svgWH[1]+"px"}},[e._l(e.points,(function(t,i){return[n("rect",{key:i,attrs:{fill:e.mergedColor[0],x:t[0]-e.halfPointSideLength,y:t[1]-e.halfPointSideLength,width:e.pointSideLength,height:e.pointSideLength}},[Math.random()>.6?n("animate",{attrs:{attributeName:"fill",values:""+e.mergedColor.join(";"),dur:Math.random()+1+"s",begin:2*Math.random(),repeatCount:"indefinite"}}):e._e()])]}))],2)])}),_n=[],wn={name:"DvDecoration3",mixins:[A],props:{color:{type:Array,default:function(){return[]}}},data:function(){var e=7;return{ref:"decoration-3",svgWH:[300,35],svgScale:[1,1],rowNum:2,rowPoints:25,pointSideLength:e,halfPointSideLength:e/2,points:[],defaultColor:["#7acaec","transparent"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcSVGData;e()},calcSVGData:function(){var e=this.calcPointsPosition,t=this.calcScale;e(),t()},calcPointsPosition:function(){var e=this.svgWH,t=this.rowNum,n=this.rowPoints,i=Object(h["a"])(e,2),r=i[0],s=i[1],a=r/(n+1),l=s/(t+1),c=new Array(t).fill(0).map((function(e,t){return new Array(n).fill(0).map((function(e,n){return[a*(n+1),l*(t+1)]}))}));this.points=c.reduce((function(e,t){return[].concat(Object(o["a"])(e),Object(o["a"])(t))}),[])},calcScale:function(){var e=this.width,t=this.height,n=this.svgWH,i=Object(h["a"])(n,2),r=i[0],o=i[1];this.svgScale=[e/r,t/o]},onResize:function(){var e=this.calcSVGData;e()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Cn=wn,Sn=Object(b["a"])(Cn,yn,_n,!1,null,null,null),xn=Sn.exports,On=function(e){e.component(xn.name,xn)},kn=(n("c2ca"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-4"},[n("div",{class:"container "+(e.reverse?"reverse":"normal"),style:e.reverse?"width:"+e.width+"px;height:5px;animation-duration:"+e.dur+"s":"width:5px;height:"+e.height+"px;animation-duration:"+e.dur+"s"},[n("svg",{attrs:{width:e.reverse?e.width:5,height:e.reverse?5:e.height}},[n("polyline",{attrs:{stroke:e.mergedColor[0],points:e.reverse?"0, 2.5 "+e.width+", 2.5":"2.5, 0 2.5, "+e.height}}),n("polyline",{staticClass:"bold-line",attrs:{stroke:e.mergedColor[1],"stroke-width":"3","stroke-dasharray":"20, 80","stroke-dashoffset":"-30",points:e.reverse?"0, 2.5 "+e.width+", 2.5":"2.5, 0 2.5, "+e.height}})])])])}),Ln=[],En={name:"DvDecoration4",mixins:[A],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},dur:{type:Number,default:3}},data:function(){return{ref:"decoration-4",defaultColor:["rgba(255, 255, 255, 0.3)","rgba(255, 255, 255, 0.3)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Dn=En,In=Object(b["a"])(Dn,kn,Ln,!1,null,null,null),Mn=In.exports,Tn=function(e){e.component(Mn.name,Mn)},An=(n("2848"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-5"},[n("svg",{attrs:{width:e.width,height:e.height}},[n("polyline",{attrs:{fill:"transparent",stroke:e.mergedColor[0],"stroke-width":"3",points:e.line1Points}},[n("animate",{attrs:{attributeName:"stroke-dasharray",attributeType:"XML",from:"0, "+e.line1Length/2+", 0, "+e.line1Length/2,to:"0, 0, "+e.line1Length+", 0",dur:e.dur+"s",begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.4,1,0.49,0.98",repeatCount:"indefinite"}})]),n("polyline",{attrs:{fill:"transparent",stroke:e.mergedColor[1],"stroke-width":"2",points:e.line2Points}},[n("animate",{attrs:{attributeName:"stroke-dasharray",attributeType:"XML",from:"0, "+e.line2Length/2+", 0, "+e.line2Length/2,to:"0, 0, "+e.line2Length+", 0",dur:e.dur+"s",begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:".4,1,.49,.98",repeatCount:"indefinite"}})])])])}),Nn=[],Pn={name:"DvDecoration5",mixins:[A],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:1.2}},data:function(){return{ref:"decoration-5",line1Points:"",line2Points:"",line1Length:0,line2Length:0,defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcSVGData;e()},calcSVGData:function(){var e=this.width,t=this.height,n=[[0,.2*t],[.18*e,.2*t],[.2*e,.4*t],[.25*e,.4*t],[.27*e,.6*t],[.72*e,.6*t],[.75*e,.4*t],[.8*e,.4*t],[.82*e,.2*t],[e,.2*t]],i=[[.3*e,.8*t],[.7*e,.8*t]],r=Object(p["getPolylineLength"])(n),o=Object(p["getPolylineLength"])(i);n=n.map((function(e){return e.join(",")})).join(" "),i=i.map((function(e){return e.join(",")})).join(" "),this.line1Points=n,this.line2Points=i,this.line1Length=r,this.line2Length=o},onResize:function(){var e=this.calcSVGData;e()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},jn=Pn,Rn=Object(b["a"])(jn,An,Nn,!1,null,null,null),Fn=Rn.exports,Bn=function(e){e.component(Fn.name,Fn)},Wn=(n("c7c8"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-6"},[n("svg",{style:"transform:scale("+e.svgScale[0]+","+e.svgScale[1]+");",attrs:{width:e.svgWH[0]+"px",height:e.svgWH[1]+"px"}},[e._l(e.points,(function(t,i){return[n("rect",{key:i,attrs:{fill:e.mergedColor[Math.random()>.5?0:1],x:t[0]-e.halfRectWidth,y:t[1]-e.heights[i]/2,width:e.rectWidth,height:e.heights[i]}},[n("animate",{attrs:{attributeName:"y",values:t[1]-e.minHeights[i]/2+";"+(t[1]-e.heights[i]/2)+";"+(t[1]-e.minHeights[i]/2),dur:e.randoms[i]+"s",keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"height",values:e.minHeights[i]+";"+e.heights[i]+";"+e.minHeights[i],dur:e.randoms[i]+"s",keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"}})])]}))],2)])}),Vn=[],zn={name:"DvDecoration6",mixins:[A],props:{color:{type:Array,default:function(){return[]}}},data:function(){var e=7;return{ref:"decoration-6",svgWH:[300,35],svgScale:[1,1],rowNum:1,rowPoints:40,rectWidth:e,halfRectWidth:e/2,points:[],heights:[],minHeights:[],randoms:[],defaultColor:["#7acaec","#7acaec"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcSVGData;e()},calcSVGData:function(){var e=this.calcPointsPosition,t=this.calcScale;e(),t()},calcPointsPosition:function(){var e=this.svgWH,t=this.rowNum,n=this.rowPoints,i=Object(h["a"])(e,2),r=i[0],s=i[1],a=r/(n+1),l=s/(t+1),c=new Array(t).fill(0).map((function(e,t){return new Array(n).fill(0).map((function(e,n){return[a*(n+1),l*(t+1)]}))}));this.points=c.reduce((function(e,t){return[].concat(Object(o["a"])(e),Object(o["a"])(t))}),[]);var u=this.heights=new Array(t*n).fill(0).map((function(e){return Math.random()>.8?E(.7*s,s):E(.2*s,.5*s)}));this.minHeights=new Array(t*n).fill(0).map((function(e,t){return u[t]*Math.random()})),this.randoms=new Array(t*n).fill(0).map((function(e){return Math.random()+1.5}))},calcScale:function(){var e=this.width,t=this.height,n=this.svgWH,i=Object(h["a"])(n,2),r=i[0],o=i[1];this.svgScale=[e/r,t/o]},onResize:function(){var e=this.calcSVGData;e()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Hn=zn,Un=Object(b["a"])(Hn,Wn,Vn,!1,null,null,null),qn=Un.exports,$n=function(e){e.component(qn.name,qn)},Kn=(n("d51d"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dv-decoration-7"},[n("svg",{attrs:{width:"21px",height:"20px"}},[n("polyline",{attrs:{"stroke-width":"4",fill:"transparent",stroke:e.mergedColor[0],points:"10, 0 19, 10 10, 20"}}),n("polyline",{attrs:{"stroke-width":"2",fill:"transparent",stroke:e.mergedColor[1],points:"2, 0 11, 10 2, 20"}})]),e._t("default"),n("svg",{attrs:{width:"21px",height:"20px"}},[n("polyline",{attrs:{"stroke-width":"4",fill:"transparent",stroke:e.mergedColor[0],points:"11, 0 2, 10 11, 20"}}),n("polyline",{attrs:{"stroke-width":"2",fill:"transparent",stroke:e.mergedColor[1],points:"19, 0 10, 10 19, 20"}})])],2)}),Gn=[],Yn={name:"DvDecoration7",props:{color:{type:Array,default:function(){return[]}}},data:function(){return{defaultColor:["#1dc1f5","#1dc1f5"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Zn=Yn,Xn=Object(b["a"])(Zn,Kn,Gn,!1,null,null,null),Qn=Xn.exports,Jn=function(e){e.component(Qn.name,Qn)},ei=(n("357d"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-8"},[n("svg",{attrs:{width:e.width,height:e.height}},[n("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",fill:"transparent",points:e.xPos(0)+", 0 "+e.xPos(30)+", "+e.height/2}}),n("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",fill:"transparent",points:e.xPos(20)+", 0 "+e.xPos(50)+", "+e.height/2+" "+e.xPos(e.width)+", "+e.height/2}}),n("polyline",{attrs:{stroke:e.mergedColor[1],fill:"transparent","stroke-width":"3",points:e.xPos(0)+", "+(e.height-3)+", "+e.xPos(200)+", "+(e.height-3)}})])])}),ti=[],ni={name:"DvDecoration8",mixins:[A],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1}},data:function(){return{ref:"decoration-8",defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{xPos:function(e){var t=this.reverse,n=this.width;return t?n-e:e},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},ii=ni,ri=Object(b["a"])(ii,ei,ti,!1,null,null,null),oi=ri.exports,si=function(e){e.component(oi.name,oi)},ai=(n("9ab49"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-9"},[n("svg",{style:"transform:scale("+e.svgScale[0]+","+e.svgScale[1]+");",attrs:{width:e.svgWH[0]+"px",height:e.svgWH[1]+"px"}},[n("defs",[n("polygon",{attrs:{id:e.polygonId,points:"15, 46.5, 21, 47.5, 21, 52.5, 15, 53.5"}})]),n("circle",{attrs:{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:e.mergedColor[1],"stroke-width":"10","stroke-dasharray":"80, 100, 30, 100"}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:e.dur+"s",repeatCount:"indefinite"}})],1),n("circle",{attrs:{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:e.mergedColor[0],"stroke-width":"6","stroke-dasharray":"50, 66, 100, 66"}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 50 50;-360 50 50",dur:e.dur+"s",repeatCount:"indefinite"}})],1),n("circle",{attrs:{cx:"50",cy:"50",r:"38",fill:"transparent",stroke:e.fade(e.mergedColor[1]||e.defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"}}),e._l(new Array(20).fill(0),(function(t,i){return n("use",{key:i,attrs:{"xlink:href":"#"+e.polygonId,stroke:e.mergedColor[1],fill:Math.random()>.4?"transparent":e.mergedColor[0]}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:e.dur+"s",begin:i*e.dur/20+"s",repeatCount:"indefinite"}})],1)})),n("circle",{attrs:{cx:"50",cy:"50",r:"26",fill:"transparent",stroke:e.fade(e.mergedColor[1]||e.defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"}})],2),e._t("default")],2)}),li=[],ci={name:"DvDecoration9",mixins:[A],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:3}},data:function(){var e=T();return{ref:"decoration-9",polygonId:"decoration-9-polygon-".concat(e),svgWH:[100,100],svgScale:[1,1],defaultColor:["rgba(3, 166, 224, 0.8)","rgba(3, 166, 224, 0.5)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcScale;e()},calcScale:function(){var e=this.width,t=this.height,n=this.svgWH,i=Object(h["a"])(n,2),r=i[0],o=i[1];this.svgScale=[e/r,t/o]},onResize:function(){var e=this.calcScale;e()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||[])},fade:G["fade"]},mounted:function(){var e=this.mergeColor;e()}},ui=ci,hi=Object(b["a"])(ui,ai,li,!1,null,null,null),di=hi.exports,fi=function(e){e.component(di.name,di)},pi=(n("bc96"),function(e){e.component(_.name,_)}),gi=(n("41f6"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"dv-flyline-chart",staticClass:"dv-flyline-chart",style:"background-image: url("+(e.mergedConfig?e.mergedConfig.bgImgUrl:"")+")",on:{click:e.consoleClickPos}},[e.mergedConfig?n("svg",{attrs:{width:e.width,height:e.height}},[n("defs",[n("radialGradient",{attrs:{id:e.gradientId,cx:"50%",cy:"50%",r:"50%"}},[n("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"1"}}),n("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"0"}})],1),n("radialGradient",{attrs:{id:e.gradient2Id,cx:"50%",cy:"50%",r:"50%"}},[n("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"0"}}),n("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"1"}})],1),e.paths[0]?n("circle",{attrs:{id:"circle"+e.paths[0].toString(),cx:e.paths[0][2][0],cy:e.paths[0][2][1]}},[n("animate",{attrs:{attributeName:"r",values:"1;"+e.mergedConfig.halo.radius,dur:e.mergedConfig.halo.duration/10+"s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:e.mergedConfig.halo.duration/10+"s",repeatCount:"indefinite"}})]):e._e()],1),e.paths[0]?n("image",{attrs:{"xlink:href":e.mergedConfig.centerPointImg.url,width:e.mergedConfig.centerPointImg.width,height:e.mergedConfig.centerPointImg.height,x:e.paths[0][2][0]-e.mergedConfig.centerPointImg.width/2,y:e.paths[0][2][1]-e.mergedConfig.centerPointImg.height/2}}):e._e(),n("mask",{attrs:{id:"maskhalo"+e.paths[0].toString()}},[e.paths[0]?n("use",{attrs:{"xlink:href":"#circle"+e.paths[0].toString(),fill:"url(#"+e.gradient2Id+")"}}):e._e()]),e.paths[0]&&e.mergedConfig.halo.show?n("use",{attrs:{"xlink:href":"#circle"+e.paths[0].toString(),fill:e.mergedConfig.halo.color,mask:"url(#maskhalo"+e.paths[0].toString()+")"}}):e._e(),e._l(e.paths,(function(t,i){return n("g",{key:i},[n("defs",[n("path",{ref:"path"+i,refInFor:!0,attrs:{id:"path"+t.toString(),d:"M"+t[0].toString()+" Q"+t[1].toString()+" "+t[2].toString(),fill:"transparent"}})]),n("use",{attrs:{"xlink:href":"#path"+t.toString(),"stroke-width":e.mergedConfig.lineWidth,stroke:e.mergedConfig.orbitColor}}),e.lengths[i]?n("use",{attrs:{"xlink:href":"#path"+t.toString(),"stroke-width":e.mergedConfig.lineWidth,stroke:e.mergedConfig.flylineColor,mask:"url(#mask"+e.unique+t.toString()+")"}},[n("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, "+e.lengths[i],to:e.lengths[i]+", 0",dur:e.times[i]||0,repeatCount:"indefinite"}})]):e._e(),n("mask",{attrs:{id:"mask"+e.unique+t.toString()}},[n("circle",{attrs:{cx:"0",cy:"0",r:e.mergedConfig.flylineRadius,fill:"url(#"+e.gradientId+")"}},[n("animateMotion",{attrs:{dur:e.times[i]||0,path:"M"+t[0].toString()+" Q"+t[1].toString()+" "+t[2].toString(),rotate:"auto",repeatCount:"indefinite"}})],1)]),n("image",{attrs:{"xlink:href":e.mergedConfig.pointsImg.url,width:e.mergedConfig.pointsImg.width,height:e.mergedConfig.pointsImg.height,x:t[0][0]-e.mergedConfig.pointsImg.width/2,y:t[0][1]-e.mergedConfig.pointsImg.height/2}}),n("text",{style:"fontSize:"+e.mergedConfig.text.fontSize+"px;",attrs:{fill:e.mergedConfig.text.color,x:t[0][0]+e.mergedConfig.text.offset[0],y:t[0][1]+e.mergedConfig.text.offset[1]}},[e._v(" "+e._s(e.texts[i])+" ")])])}))],2):e._e()])}),mi=[],vi=n("c7eb"),bi=n("1da1"),yi={name:"DvFlylineChart",mixins:[A],props:{config:{type:Object,default:function(){return{}}},dev:{type:Boolean,default:!1}},data:function(){var e=T();return{ref:"dv-flyline-chart",unique:Math.random(),maskId:"flyline-mask-id-".concat(e),maskCircleId:"mask-circle-id-".concat(e),gradientId:"gradient-id-".concat(e),gradient2Id:"gradient2-id-".concat(e),defaultConfig:{centerPoint:[0,0],points:[],lineWidth:1,orbitColor:"rgba(103, 224, 227, .2)",flylineColor:"#ffde93",k:-.5,curvature:5,flylineRadius:100,duration:[20,30],relative:!0,bgImgUrl:"",text:{offset:[0,15],color:"#ffdb5c",fontSize:12},halo:{show:!0,duration:30,color:"#fb7293",radius:120},centerPointImg:{width:40,height:40,url:""},pointsImg:{width:15,height:15,url:""}},mergedConfig:null,paths:[],lengths:[],times:[],texts:[]}},watch:{config:function(){var e=this.calcData;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcData;e()},onResize:function(){var e=this.calcData;e()},calcData:function(){var e=this;return Object(bi["a"])(Object(vi["a"])().mark((function t(){var n,i,r,o,s;return Object(vi["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.mergeConfig,i=e.createFlylinePaths,r=e.calcLineLengths,n(),i(),t.next=5,r();case 5:o=e.calcTimes,s=e.calcTexts,o(),s();case 8:case"end":return t.stop()}}),t)})))()},mergeConfig:function(){var e=this.config,t=this.defaultConfig,n=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||{}),i=n.points;n.points=i.map((function(e){return e instanceof Array?{position:e,text:""}:e})),this.mergedConfig=n},createFlylinePaths:function(){var e=this.getPath,t=this.mergedConfig,n=this.width,i=this.height,r=t.centerPoint,o=t.points,s=t.relative;o=o.map((function(e){var t=e.position;return t})),s&&(r=[n*r[0],i*r[1]],o=o.map((function(e){var t=Object(h["a"])(e,2),r=t[0],o=t[1];return[n*r,i*o]}))),this.paths=o.map((function(t){return e(r,t)}))},getPath:function(e,t){var n=this.getControlPoint,i=n(e,t);return[t,i,e]},getControlPoint:function(e,t){var n=Object(h["a"])(e,2),i=n[0],r=n[1],o=Object(h["a"])(t,2),s=o[0],a=o[1],l=this.getKLinePointByx,c=this.mergedConfig,u=c.curvature,d=c.k,f=(i+s)/2,p=(r+a)/2,g=M([i,r],[s,a]),m=g/u,v=m/2,b=f,y=p;do{b+=v,y=l(d,[f,p],b)[1]}while(M([f,p],[b,y])<m);return[b,y]},getKLinePointByx:function(e,t,n){var i=Object(h["a"])(t,2),r=i[0],o=i[1],s=o-e*r+e*n;return[n,s]},calcLineLengths:function(){var e=this;return Object(bi["a"])(Object(vi["a"])().mark((function t(){var n,i,r;return Object(vi["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$nextTick,i=e.paths,r=e.$refs,t.next=3,n();case 3:e.lengths=i.map((function(e,t){return r["path".concat(t)][0].getTotalLength()}));case 4:case"end":return t.stop()}}),t)})))()},calcTimes:function(){var e=this.mergedConfig,t=e.duration,n=e.points;this.times=n.map((function(e){return E.apply(void 0,Object(o["a"])(t))/10}))},calcTexts:function(){var e=this.mergedConfig.points;this.texts=e.map((function(e){var t=e.text;return t}))},consoleClickPos:function(e){var t=e.offsetX,n=e.offsetY,i=this.width,r=this.height,o=this.dev;if(o){var s=(t/i).toFixed(2),a=(n/r).toFixed(2);console.warn("dv-flyline-chart DEV: \n Click Position is [".concat(t,", ").concat(n,"] \n Relative Position is [").concat(s,", ").concat(a,"]"))}}}},_i=yi,wi=Object(b["a"])(_i,gi,mi,!1,null,null,null),Ci=wi.exports,Si=function(e){e.component(Ci.name,Ci)},xi=(n("dbbf"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-flyline-chart-enhanced",style:"background-image: url("+(e.mergedConfig?e.mergedConfig.bgImgSrc:"")+")",on:{click:e.consoleClickPos}},[e.flylines.length?n("svg",{attrs:{width:e.width,height:e.height}},[n("defs",[n("radialGradient",{attrs:{id:e.flylineGradientId,cx:"50%",cy:"50%",r:"50%"}},[n("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"1"}}),n("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"0"}})],1),n("radialGradient",{attrs:{id:e.haloGradientId,cx:"50%",cy:"50%",r:"50%"}},[n("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"0"}}),n("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"1"}})],1)],1),e._l(e.flylinePoints,(function(t){return n("g",{key:t.key+Math.random()},[n("defs",[t.halo.show?n("circle",{attrs:{id:"halo"+e.unique+t.key,cx:t.coordinate[0],cy:t.coordinate[1]}},[n("animate",{attrs:{attributeName:"r",values:"1;"+t.halo.radius,dur:t.halo.time+"s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:t.halo.time+"s",repeatCount:"indefinite"}})]):e._e()]),n("mask",{attrs:{id:"mask"+e.unique+t.key}},[t.halo.show?n("use",{attrs:{"xlink:href":"#halo"+e.unique+t.key,fill:"url(#"+e.haloGradientId+")"}}):e._e()]),t.halo.show?n("use",{attrs:{"xlink:href":"#halo"+e.unique+t.key,fill:t.halo.color,mask:"url(#mask"+e.unique+t.key+")"}}):e._e(),t.icon.show?n("image",{attrs:{"xlink:href":t.icon.src,width:t.icon.width,height:t.icon.height,x:t.icon.x,y:t.icon.y}}):e._e(),t.text.show?n("text",{style:"fontSize:"+t.text.fontSize+"px;color:"+t.text.color,attrs:{fill:t.text.color,x:t.text.x,y:t.text.y}},[e._v(" "+e._s(t.name)+" ")]):e._e()])})),e._l(e.flylines,(function(t,i){return n("g",{key:t.key+Math.random()},[n("defs",[n("path",{ref:t.key,refInFor:!0,attrs:{id:t.key,d:t.d,fill:"transparent"}})]),n("use",{attrs:{"xlink:href":"#"+t.key,"stroke-width":t.width,stroke:t.orbitColor}}),n("mask",{attrs:{id:"mask"+e.unique+t.key}},[n("circle",{attrs:{cx:"0",cy:"0",r:t.radius,fill:"url(#"+e.flylineGradientId+")"}},[n("animateMotion",{attrs:{dur:t.time,path:t.d,rotate:"auto",repeatCount:"indefinite"}})],1)]),e.flylineLengths[i]?n("use",{attrs:{"xlink:href":"#"+t.key,"stroke-width":t.width,stroke:t.color,mask:"url(#mask"+e.unique+t.key+")"}},[n("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, "+e.flylineLengths[i],to:e.flylineLengths[i]+", 0",dur:t.time,repeatCount:"indefinite"}})]):e._e()])}))],2):e._e()])}),Oi=[],ki=(n("7db0"),n("25f0"),{name:"DvFlylineChartEnhanced",mixins:[A],props:{config:{type:Object,default:function(){return{}}},dev:{type:Boolean,default:!1}},data:function(){var e=T();return{ref:"dv-flyline-chart-enhanced",unique:Math.random(),flylineGradientId:"flyline-gradient-id-".concat(e),haloGradientId:"halo-gradient-id-".concat(e),defaultConfig:{points:[],lines:[],halo:{show:!1,duration:[20,30],color:"#fb7293",radius:120},text:{show:!1,offset:[0,15],color:"#ffdb5c",fontSize:12},icon:{show:!1,src:"",width:15,height:15},line:{width:1,color:"#ffde93",orbitColor:"rgba(103, 224, 227, .2)",duration:[20,30],radius:100},bgImgSrc:"",k:-.5,curvature:5,relative:!0},flylines:[],flylineLengths:[],flylinePoints:[],mergedConfig:null}},watch:{config:function(){var e=this.calcData;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcData;e()},onResize:function(){var e=this.calcData;e()},calcData:function(){var e=this;return Object(bi["a"])(Object(vi["a"])().mark((function t(){var n,i,r,o;return Object(vi["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.mergeConfig,i=e.calcflylinePoints,r=e.calcLinePaths,n(),i(),r(),o=e.calcLineLengths,t.next=7,o();case 7:case"end":return t.stop()}}),t)})))()},mergeConfig:function(){var e=this.config,t=this.defaultConfig,n=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||{}),i=n.points,r=n.lines,o=n.halo,s=n.text,a=n.icon,l=n.line;n.points=i.map((function(e){return e.halo=Object(p["deepMerge"])(Object(g["deepClone"])(o,!0),e.halo||{}),e.text=Object(p["deepMerge"])(Object(g["deepClone"])(s,!0),e.text||{}),e.icon=Object(p["deepMerge"])(Object(g["deepClone"])(a,!0),e.icon||{}),e})),n.lines=r.map((function(e){return Object(p["deepMerge"])(Object(g["deepClone"])(l,!0),e)})),this.mergedConfig=n},calcflylinePoints:function(){var e=this.mergedConfig,t=this.width,n=this.height,i=e.relative,r=e.points;this.flylinePoints=r.map((function(e,r){var s=Object(h["a"])(e.coordinate,2),a=s[0],l=s[1],c=e.halo,u=e.icon,d=e.text;i&&(e.coordinate=[a*t,l*n]),e.halo.time=E.apply(void 0,Object(o["a"])(c.duration))/10;var f=u.width,p=u.height;e.icon.x=e.coordinate[0]-f/2,e.icon.y=e.coordinate[1]-p/2;var g=Object(h["a"])(d.offset,2),m=g[0],v=g[1];return e.text.x=e.coordinate[0]+m,e.text.y=e.coordinate[1]+v,e.key="".concat(e.coordinate.toString()).concat(r),e}))},calcLinePaths:function(){var e=this.getPath,t=this.mergedConfig,n=t.points,i=t.lines;this.flylines=i.map((function(t){var i=t.source,r=t.target,a=t.duration,l=n.find((function(e){var t=e.name;return t===i})).coordinate,c=n.find((function(e){var t=e.name;return t===r})).coordinate,u=e(l,c).map((function(e){return e.map((function(e){return parseFloat(e.toFixed(10))}))})),h="M".concat(u[0].toString()," Q").concat(u[1].toString()," ").concat(u[2].toString()),d="path".concat(u.toString()),f=E.apply(void 0,Object(o["a"])(a))/10;return Object(s["a"])(Object(s["a"])({},t),{},{path:u,key:d,d:h,time:f})}))},getPath:function(e,t){var n=this.getControlPoint,i=n(e,t);return[e,i,t]},getControlPoint:function(e,t){var n=Object(h["a"])(e,2),i=n[0],r=n[1],o=Object(h["a"])(t,2),s=o[0],a=o[1],l=this.getKLinePointByx,c=this.mergedConfig,u=c.curvature,d=c.k,f=(i+s)/2,p=(r+a)/2,g=M([i,r],[s,a]),m=g/u,v=m/2,b=f,y=p;do{b+=v,y=l(d,[f,p],b)[1]}while(M([f,p],[b,y])<m);return[b,y]},getKLinePointByx:function(e,t,n){var i=Object(h["a"])(t,2),r=i[0],o=i[1],s=o-e*r+e*n;return[n,s]},calcLineLengths:function(){var e=this;return Object(bi["a"])(Object(vi["a"])().mark((function t(){var n,i,r;return Object(vi["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$nextTick,i=e.flylines,r=e.$refs,t.next=3,n();case 3:e.flylineLengths=i.map((function(e){var t=e.key;return r[t][0].getTotalLength()}));case 4:case"end":return t.stop()}}),t)})))()},consoleClickPos:function(e){var t=e.offsetX,n=e.offsetY,i=this.width,r=this.height,o=this.dev;if(o){var s=(t/i).toFixed(2),a=(n/r).toFixed(2);console.warn("dv-flyline-chart-enhanced DEV: \n Click Position is [".concat(t,", ").concat(n,"] \n Relative Position is [").concat(s,", ").concat(a,"]"))}}}}),Li=ki,Ei=Object(b["a"])(Li,xi,Oi,!1,null,null,null),Di=Ei.exports,Ii=function(e){e.component(Di.name,Di)},Mi=(n("7cc8"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,attrs:{id:"dv-full-screen-container"}},[e.ready?[e._t("default")]:e._e()],2)}),Ti=[],Ai={name:"DvFullScreenContainer",mixins:[A],data:function(){return{ref:"full-screen-container",allWidth:0,scale:0,datavRoot:"",ready:!1}},methods:{afterAutoResizeMixinInit:function(){var e=this.initConfig,t=this.setAppScale;e(),t(),this.ready=!0},initConfig:function(){var e=this.dom,t=screen,n=t.width,i=t.height;this.allWidth=n,e.style.width="".concat(n,"px"),e.style.height="".concat(i,"px")},setAppScale:function(){var e=this.allWidth,t=this.dom,n=document.body.clientWidth;t.style.transform="scale(".concat(n/e,")")},onResize:function(){var e=this.setAppScale;e()}}},Ni=Ai,Pi=Object(b["a"])(Ni,Mi,Ti,!1,null,null,null),ji=Pi.exports,Ri=function(e){e.component(ji.name,ji)},Fi=(n("84cd"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dv-loading"},[n("svg",{attrs:{width:"50px",height:"50px"}},[n("circle",{attrs:{cx:"25",cy:"25",r:"20",fill:"transparent","stroke-width":"3","stroke-dasharray":"31.415, 31.415",stroke:"#02bcfe","stroke-linecap":"round"}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0, 25 25;360, 25 25",dur:"1.5s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"stroke",values:"#02bcfe;#3be6cb;#02bcfe",dur:"3s",repeatCount:"indefinite"}})],1),n("circle",{attrs:{cx:"25",cy:"25",r:"10",fill:"transparent","stroke-width":"3","stroke-dasharray":"15.7, 15.7",stroke:"#3be6cb","stroke-linecap":"round"}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"360, 25 25;0, 25 25",dur:"1.5s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"stroke",values:"#3be6cb;#02bcfe;#3be6cb",dur:"3s",repeatCount:"indefinite"}})],1)]),n("div",{staticClass:"loading-tip"},[e._t("default")],2)])}),Bi=[],Wi={name:"DvLoading"},Vi=Wi,zi=Object(b["a"])(Vi,Fi,Bi,!1,null,null,null),Hi=zi.exports,Ui=function(e){e.component(Hi.name,Hi)},qi=(n("a157"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"percent-pond",staticClass:"dv-percent-pond"},[n("svg",[n("defs",[n("linearGradient",{attrs:{id:e.gradientId1,x1:"0%",y1:"0%",x2:"100%",y2:"0%"}},e._l(e.linearGradient,(function(e){return n("stop",{key:e[0],attrs:{offset:e[0]+"%","stop-color":e[1]}})})),1),n("linearGradient",{attrs:{id:e.gradientId2,x1:"0%",y1:"0%",x2:e.gradient2XPos,y2:"0%"}},e._l(e.linearGradient,(function(e){return n("stop",{key:e[0],attrs:{offset:e[0]+"%","stop-color":e[1]}})})),1)],1),n("rect",{attrs:{x:e.mergedConfig?e.mergedConfig.borderWidth/2:"0",y:e.mergedConfig?e.mergedConfig.borderWidth/2:"0",rx:e.mergedConfig?e.mergedConfig.borderRadius:"0",ry:e.mergedConfig?e.mergedConfig.borderRadius:"0",fill:"transparent","stroke-width":e.mergedConfig?e.mergedConfig.borderWidth:"0",stroke:"url(#"+e.gradientId1+")",width:e.rectWidth>0?e.rectWidth:0,height:e.rectHeight>0?e.rectHeight:0}}),n("polyline",{attrs:{"stroke-width":e.polylineWidth,"stroke-dasharray":e.mergedConfig?e.mergedConfig.lineDash.join(","):"0",stroke:"url(#"+e.polylineGradient+")",points:e.points}}),n("text",{attrs:{stroke:e.mergedConfig?e.mergedConfig.textColor:"#fff",fill:e.mergedConfig?e.mergedConfig.textColor:"#fff",x:e.width/2,y:e.height/2}},[e._v(" "+e._s(e.details)+" ")])])])}),$i=[],Ki=(n("ac1f"),n("5319"),{name:"DvPercentPond",props:{config:{type:Object,default:function(){return{}}}},data:function(){var e=T();return{gradientId1:"percent-pond-gradientId1-".concat(e),gradientId2:"percent-pond-gradientId2-".concat(e),width:0,height:0,defaultConfig:{value:0,colors:["#3DE7C9","#00BAFF"],borderWidth:3,borderGap:3,lineDash:[5,1],textColor:"#fff",borderRadius:5,localGradient:!1,formatter:"{value}%"},mergedConfig:null}},computed:{rectWidth:function(){var e=this.mergedConfig,t=this.width;if(!e)return 0;var n=e.borderWidth;return t-n},rectHeight:function(){var e=this.mergedConfig,t=this.height;if(!e)return 0;var n=e.borderWidth;return t-n},points:function(){var e=this.mergedConfig,t=this.width,n=this.height,i=n/2;if(!e)return"0, ".concat(i," 0, ").concat(i);var r=e.borderWidth,o=e.borderGap,s=e.value,a=(t-2*(r+o))/100*s;return"\n ".concat(r+o,", ").concat(i,"\n ").concat(r+o+a,", ").concat(i+.001,"\n ")},polylineWidth:function(){var e=this.mergedConfig,t=this.height;if(!e)return 0;var n=e.borderWidth,i=e.borderGap;return t-2*(n+i)},linearGradient:function(){var e=this.mergedConfig;if(!e)return[];var t=e.colors,n=t.length,i=100/(n-1);return t.map((function(e,t){return[i*t,e]}))},polylineGradient:function(){var e=this.gradientId1,t=this.gradientId2,n=this.mergedConfig;return n&&n.localGradient?e:t},gradient2XPos:function(){var e=this.mergedConfig;if(!e)return"100%";var t=e.value;return"".concat(200-t,"%")},details:function(){var e=this.mergedConfig;if(!e)return"";var t=e.value,n=e.formatter;return n.replace("{value}",t)}},watch:{config:function(){var e=this.mergeConfig;e()}},methods:{init:function(){var e=this;return Object(bi["a"])(Object(vi["a"])().mark((function t(){var n,i,r;return Object(vi["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.initWH,i=e.config,r=e.mergeConfig,t.next=3,n();case 3:if(i){t.next=5;break}return t.abrupt("return");case 5:r();case 6:case"end":return t.stop()}}),t)})))()},initWH:function(){var e=this;return Object(bi["a"])(Object(vi["a"])().mark((function t(){var n,i,r,o,s;return Object(vi["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$nextTick,i=e.$refs,t.next=3,n();case 3:r=i["percent-pond"],o=r.clientWidth,s=r.clientHeight,e.width=o,e.height=s;case 6:case"end":return t.stop()}}),t)})))()},mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||{})}},mounted:function(){var e=this.init;e()}}),Gi=Ki,Yi=Object(b["a"])(Gi,qi,$i,!1,null,null,null),Zi=Yi.exports,Xi=function(e){e.component(Zi.name,Zi)},Qi=(n("037e"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-scroll-board"},[e.header.length&&e.mergedConfig?n("div",{staticClass:"header",style:"background-color: "+e.mergedConfig.headerBGC+";"},e._l(e.header,(function(t,i){return n("div",{key:""+t+i,staticClass:"header-item",style:"\n height: "+e.mergedConfig.headerHeight+"px;\n line-height: "+e.mergedConfig.headerHeight+"px;\n width: "+e.widths[i]+"px;\n ",attrs:{align:e.aligns[i]},domProps:{innerHTML:e._s(t)}})})),0):e._e(),e.mergedConfig?n("div",{staticClass:"rows",style:"height: "+(e.height-(e.header.length?e.mergedConfig.headerHeight:0))+"px;"},e._l(e.rows,(function(t,i){return n("div",{key:""+t.toString()+t.scroll,staticClass:"row-item",style:"\n height: "+e.heights[i]+"px;\n line-height: "+e.heights[i]+"px;\n background-color: "+e.mergedConfig[t.rowIndex%2===0?"evenRowBGC":"oddRowBGC"]+";\n "},e._l(t.ceils,(function(r,o){return n("div",{key:""+r+i+o,staticClass:"ceil",style:"width: "+e.widths[o]+"px;",attrs:{align:e.aligns[o]},domProps:{innerHTML:e._s(r)},on:{click:function(n){return e.emitEvent("click",i,o,t,r)},mouseenter:function(n){return e.handleHover(!0,i,o,t,r)},mouseleave:function(t){return e.handleHover(!1)}}})})),0)})),0):e._e()])}),Ji=[],er=(n("14d9"),n("fb6a"),n("a434"),{name:"DvScrollBoard",mixins:[A],props:{config:{type:Object,default:function(){return{}}}},data:function(){return{ref:"scroll-board",defaultConfig:{header:[],data:[],rowNum:5,headerBGC:"#00BAFF",oddRowBGC:"#003B51",evenRowBGC:"#0A2732",waitTime:2e3,headerHeight:35,columnWidth:[],align:[],index:!1,indexHeader:"#",carousel:"single",hoverPause:!0},mergedConfig:null,header:[],rowsData:[],rows:[],widths:[],heights:[],avgHeight:0,aligns:[],animationIndex:0,animationHandler:"",updater:0,needCalc:!1}},watch:{config:function(){var e=this.stopAnimation,t=this.calcData;e(),this.animationIndex=0,t()}},methods:{handleHover:function(e,t,n,i,r){var o=this.mergedConfig,s=this.emitEvent,a=this.stopAnimation,l=this.animation;e&&s("mouseover",t,n,i,r),o.hoverPause&&(e?a():l(!0))},afterAutoResizeMixinInit:function(){var e=this.calcData;e()},onResize:function(){var e=this.mergedConfig,t=this.calcWidths,n=this.calcHeights;e&&(t(),n())},calcData:function(){var e=this.mergeConfig,t=this.calcHeaderData,n=this.calcRowsData;e(),t(),n();var i=this.calcWidths,r=this.calcHeights,o=this.calcAligns;i(),r(),o();var s=this.animation;s(!0)},mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||{})},calcHeaderData:function(){var e=this.mergedConfig,t=e.header,n=e.index,i=e.indexHeader;t.length?(t=Object(o["a"])(t),n&&t.unshift(i),this.header=t):this.header=[]},calcRowsData:function(){var e=this.mergedConfig,t=e.data,n=e.index,i=e.headerBGC,r=e.rowNum;n&&(t=t.map((function(e,t){e=Object(o["a"])(e);var n='<span class="index" style="background-color: '.concat(i,';">').concat(t+1,"</span>");return e.unshift(n),e}))),t=t.map((function(e,t){return{ceils:e,rowIndex:t}}));var a=t.length;a>r&&a<2*r&&(t=[].concat(Object(o["a"])(t),Object(o["a"])(t))),t=t.map((function(e,t){return Object(s["a"])(Object(s["a"])({},e),{},{scroll:t})})),this.rowsData=t,this.rows=t},calcWidths:function(){var e=this.width,t=this.mergedConfig,n=this.rowsData,i=t.columnWidth,r=t.header,o=i.reduce((function(e,t){return e+t}),0),s=0;n[0]?s=n[0].ceils.length:r.length&&(s=r.length);var a=(e-o)/(s-i.length),l=new Array(s).fill(a);this.widths=Object(p["deepMerge"])(l,i)},calcHeights:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.height,n=this.mergedConfig,i=this.header,r=n.headerHeight,o=n.rowNum,s=n.data,a=t;i.length&&(a-=r);var l=a/o;this.avgHeight=l,e||(this.heights=new Array(s.length).fill(l))},calcAligns:function(){var e=this.header,t=this.mergedConfig,n=e.length,i=new Array(n).fill("left"),r=t.align;this.aligns=Object(p["deepMerge"])(i,r)},animation:function(){var e=arguments,t=this;return Object(bi["a"])(Object(vi["a"])().mark((function n(){var i,r,s,a,l,c,u,h,d,f,p,g,m,v,b,y,_,w;return Object(vi["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=e.length>0&&void 0!==e[0]&&e[0],s=t.needCalc,a=t.calcHeights,l=t.calcRowsData,s&&(l(),a(),t.needCalc=!1),c=t.avgHeight,u=t.animationIndex,h=t.mergedConfig,d=t.rowsData,f=t.animation,p=t.updater,g=h.waitTime,m=h.carousel,v=h.rowNum,b=d.length,!(v>=b)){n.next=8;break}return n.abrupt("return");case 8:if(!r){n.next=13;break}return n.next=11,new Promise((function(e){return setTimeout(e,g)}));case 11:if(p===t.updater){n.next=13;break}return n.abrupt("return");case 13:return y="single"===m?1:v,_=d.slice(u),_.push.apply(_,Object(o["a"])(d.slice(0,u))),t.rows=_.slice(0,"page"===m?2*v:v+1),t.heights=new Array(b).fill(c),n.next=20,new Promise((function(e){return setTimeout(e,300)}));case 20:if(p===t.updater){n.next=22;break}return n.abrupt("return");case 22:(i=t.heights).splice.apply(i,[0,y].concat(Object(o["a"])(new Array(y).fill(0)))),u+=y,w=u-b,w>=0&&(u=w),t.animationIndex=u,t.animationHandler=setTimeout(f,g-300);case 28:case"end":return n.stop()}}),n)})))()},stopAnimation:function(){var e=this.animationHandler,t=this.updater;this.updater=(t+1)%999999,e&&clearTimeout(e)},emitEvent:function(e,t,n,i,r){var o=i.ceils,s=i.rowIndex;this.$emit(e,{row:o,ceil:r,rowIndex:s,columnIndex:n})},updateRows:function(e,t){var n=this.mergedConfig,i=this.animationHandler,r=this.animation;this.mergedConfig=Object(s["a"])(Object(s["a"])({},n),{},{data:Object(o["a"])(e)}),this.needCalc=!0,"number"===typeof t&&(this.animationIndex=t),i||r(!0)}},destroyed:function(){var e=this.stopAnimation;e()}}),tr=er,nr=Object(b["a"])(tr,Qi,Ji,!1,null,null,null),ir=nr.exports,rr=function(e){e.component(ir.name,ir)},or=(n("c280"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-scroll-ranking-board"},e._l(e.rows,(function(t,i){return n("div",{key:t.toString()+t.scroll,staticClass:"row-item",style:"height: "+e.heights[i]+"px;"},[n("div",{staticClass:"ranking-info"},[n("div",{staticClass:"rank"},[e._v("No."+e._s(t.ranking))]),n("div",{staticClass:"info-name",domProps:{innerHTML:e._s(t.name)}}),n("div",{staticClass:"ranking-value"},[e._v(e._s(e.mergedConfig.valueFormatter?e.mergedConfig.valueFormatter(t):t.value+e.mergedConfig.unit))])]),n("div",{staticClass:"ranking-column"},[n("div",{staticClass:"inside-column",style:"width: "+t.percent+"%;"},[n("div",{staticClass:"shine"})])])])})),0)}),sr=[],ar={name:"DvScrollRankingBoard",mixins:[A],props:{config:{type:Object,default:function(){return{}}}},data:function(){return{ref:"scroll-ranking-board",defaultConfig:{data:[],rowNum:5,waitTime:2e3,carousel:"single",unit:"",sort:!0,valueFormatter:null},mergedConfig:null,rowsData:[],rows:[],heights:[],animationIndex:0,animationHandler:"",updater:0}},watch:{config:function(){var e=this.stopAnimation,t=this.calcData;e(),t()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcData;e()},onResize:function(){var e=this.mergedConfig,t=this.calcHeights;e&&t(!0)},calcData:function(){var e=this.mergeConfig,t=this.calcRowsData;e(),t();var n=this.calcHeights;n();var i=this.animation;i(!0)},mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||{})},calcRowsData:function(){var e=this.mergedConfig,t=e.data,n=e.rowNum,i=e.sort;i&&t.sort((function(e,t){var n=e.value,i=t.value;return n>i?-1:n<i?1:n===i?0:void 0}));var r=t.map((function(e){var t=e.value;return t})),a=Math.min.apply(Math,Object(o["a"])(r))||0,l=Math.abs(a),c=Math.max.apply(Math,Object(o["a"])(r))||0,u=(Math.abs(c),c+l);t=t.map((function(e,t){return Object(s["a"])(Object(s["a"])({},e),{},{ranking:t+1,percent:(e.value+l)/u*100})}));var h=t.length;h>n&&h<2*n&&(t=[].concat(Object(o["a"])(t),Object(o["a"])(t))),t=t.map((function(e,t){return Object(s["a"])(Object(s["a"])({},e),{},{scroll:t})})),this.rowsData=t,this.rows=t},calcHeights:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.height,n=this.mergedConfig,i=n.rowNum,r=n.data,o=t/i;this.avgHeight=o,e||(this.heights=new Array(r.length).fill(o))},animation:function(){var e=arguments,t=this;return Object(bi["a"])(Object(vi["a"])().mark((function n(){var i,r,s,a,l,c,u,h,d,f,p,g,m,v,b;return Object(vi["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=e.length>0&&void 0!==e[0]&&e[0],s=t.avgHeight,a=t.animationIndex,l=t.mergedConfig,c=t.rowsData,u=t.animation,h=t.updater,d=l.waitTime,f=l.carousel,p=l.rowNum,g=c.length,!(p>=g)){n.next=6;break}return n.abrupt("return");case 6:if(!r){n.next=11;break}return n.next=9,new Promise((function(e){return setTimeout(e,d)}));case 9:if(h===t.updater){n.next=11;break}return n.abrupt("return");case 11:return m="single"===f?1:p,v=c.slice(a),v.push.apply(v,Object(o["a"])(c.slice(0,a))),t.rows=v.slice(0,p+1),t.heights=new Array(g).fill(s),n.next=18,new Promise((function(e){return setTimeout(e,300)}));case 18:if(h===t.updater){n.next=20;break}return n.abrupt("return");case 20:(i=t.heights).splice.apply(i,[0,m].concat(Object(o["a"])(new Array(m).fill(0)))),a+=m,b=a-g,b>=0&&(a=b),t.animationIndex=a,t.animationHandler=setTimeout(u,d-300);case 26:case"end":return n.stop()}}),n)})))()},stopAnimation:function(){var e=this.animationHandler,t=this.updater;this.updater=(t+1)%999999,e&&clearTimeout(e)}},destroyed:function(){var e=this.stopAnimation;e()}},lr=ar,cr=Object(b["a"])(lr,or,sr,!1,null,null,null),ur=cr.exports,hr=function(e){e.component(ur.name,ur)},dr=(n("fa10"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dv-water-pond-level"},[e.renderer?n("svg",[n("defs",[n("linearGradient",{attrs:{id:e.gradientId,x1:"0%",y1:"0%",x2:"0%",y2:"100%"}},e._l(e.svgBorderGradient,(function(e){return n("stop",{key:e[0],attrs:{offset:e[0],"stop-color":e[1]}})})),1)],1),e.renderer?n("text",{attrs:{stroke:"url(#"+e.gradientId+")",fill:"url(#"+e.gradientId+")",x:e.renderer.area[0]/2+8,y:e.renderer.area[1]/2+8}},[e._v(" "+e._s(e.details)+" ")]):e._e(),e.shape&&"round"!==e.shape?n("rect",{attrs:{x:"2",y:"2",rx:"roundRect"===e.shape?10:0,ry:"roundRect"===e.shape?10:0,width:e.renderer.area[0]+12,height:e.renderer.area[1]+12,stroke:"url(#"+e.gradientId+")"}}):n("ellipse",{attrs:{cx:e.renderer.area[0]/2+8,cy:e.renderer.area[1]/2+8,rx:e.renderer.area[0]/2+5,ry:e.renderer.area[1]/2+5,stroke:"url(#"+e.gradientId+")"}})]):e._e(),n("canvas",{ref:"water-pond-level",style:"border-radius: "+e.radius+";"})])}),fr=[];n("d9e2");var pr={name:"DvWaterLevelPond",props:{config:Object,default:function(){return{}}},data:function(){var e=T();return{gradientId:"water-level-pond-".concat(e),defaultConfig:{data:[],shape:"rect",waveNum:3,waveHeight:40,waveOpacity:.4,colors:["#3DE7C9","#00BAFF"],formatter:"{value}%"},mergedConfig:{},renderer:null,svgBorderGradient:[],details:"",waves:[],animation:!1}},computed:{radius:function(){var e=this.mergedConfig.shape;return"round"===e?"50%":"rect"===e?"0":"roundRect"===e?"10px":"0"},shape:function(){var e=this.mergedConfig.shape;return e||"rect"}},watch:{config:function(){var e=this.calcData,t=this.renderer;t.delAllGraph(),this.waves=[],setTimeout(e,0)}},methods:{init:function(){var e=this.initRender,t=this.config,n=this.calcData;e(),t&&n()},initRender:function(){var e=this.$refs;this.renderer=new f.a(e["water-pond-level"])},calcData:function(){var e=this.mergeConfig,t=this.calcSvgBorderGradient,n=this.calcDetails;e(),t(),n();var i=this.addWave,r=this.animationWave;i(),r()},mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e)},calcSvgBorderGradient:function(){var e=this.mergedConfig.colors,t=e.length,n=100/(t-1);this.svgBorderGradient=e.map((function(e,t){return[n*t,e]}))},calcDetails:function(){var e=this.mergedConfig,t=e.data,n=e.formatter;if(t.length){var i=Math.max.apply(Math,Object(o["a"])(t));this.details=n.replace("{value}",i)}else this.details=""},addWave:function(){var e=this.renderer,t=this.getWaveShapes,n=this.getWaveStyle,i=this.drawed,r=t(),o=n();this.waves=r.map((function(t){return e.add({name:"smoothline",animationFrame:300,shape:t,style:o,drawed:i})}))},getWaveShapes:function(){var e=this.mergedConfig,t=this.renderer,n=this.mergeOffset,i=e.waveNum,r=e.waveHeight,o=e.data,s=Object(h["a"])(t.area,2),a=s[0],l=s[1],c=4*i+4,u=a/i/2;return o.map((function(e){var t=new Array(c).fill(0).map((function(t,n){var i=a-u*n,o=(1-e/100)*l,s=n%2===0?o:o-r;return[i,s]}));return t=t.map((function(e){return n(e,[2*u,0])})),{points:t}}))},mergeOffset:function(e,t){var n=Object(h["a"])(e,2),i=n[0],r=n[1],o=Object(h["a"])(t,2),s=o[0],a=o[1];return[i+s,r+a]},getWaveStyle:function(){var e=this.renderer,t=this.mergedConfig,n=e.area[1];return{gradientColor:t.colors,gradientType:"linear",gradientParams:[0,0,0,n],gradientWith:"fill",opacity:t.waveOpacity,translate:[0,0]}},drawed:function(e,t){var n=e.shape.points,i=t.ctx,r=t.area,o=n[0],s=n.slice(-1)[0],a=r[1];i.lineTo(s[0],a),i.lineTo(o[0],a),i.closePath(),i.fill()},animationWave:function(){var e=arguments,t=this;return Object(bi["a"])(Object(vi["a"])().mark((function n(){var i,r,o,s,a;return Object(vi["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e.length>0&&void 0!==e[0]?e[0]:1,r=t.waves,o=t.renderer,s=t.animation,!s){n.next=4;break}return n.abrupt("return");case 4:return t.animation=!0,a=o.area[0],r.forEach((function(e){e.attr("style",{translate:[0,0]}),e.animation("style",{translate:[a,0]},!0)})),n.next=9,o.launchAnimation();case 9:if(t.animation=!1,o.graphs.length){n.next=12;break}return n.abrupt("return");case 12:t.animationWave(i+1);case 13:case"end":return n.stop()}}),n)})))()}},mounted:function(){var e=this.init;e()},beforeDestroy:function(){var e=this.renderer;e.delAllGraph(),this.waves=[]}},gr=pr,mr=Object(b["a"])(gr,dr,fr,!1,null,null,null),vr=mr.exports,br=function(e){e.component(vr.name,vr)};t["a"]=function(e){e.use(Ri),e.use(Ui),e.use(F),e.use(_e),e.use(Le),e.use(Ne),e.use(Ve),e.use(Ge),e.use(tt),e.use(lt),e.use(gt),e.use(q),e.use(J),e.use(se),e.use(fe),e.use(Ht),e.use(bn),e.use(On),e.use(Tn),e.use(Bn),e.use($n),e.use(Jn),e.use(si),e.use(fi),e.use(Zt),e.use(rn),e.use(hn),e.use(Dt),e.use(O),e.use(Ct),e.use(br),e.use(Xi),e.use(Si),e.use(Ii),e.use(jt),e.use(pi),e.use(rr),e.use(hr)}},"6c57":function(e,t,n){var i=n("23e7"),r=n("da84");i({global:!0,forced:r.globalThis!==r},{globalThis:r})},"6c59":function(e,t){e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},"6c8c":function(e,t,n){"use strict";n.r(t);var i=n("89cd"),r=n("2f1e"),o=n("03d9"),s=n("66bd"),a=n("dff7"),l=n("a666"),c=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},u=function(e,t){return function(n,i){t(n,i,e)}};let h=class e{constructor(e){this.quickInputService=e,this.registry=i["a"].as(r["b"].Quickaccess)}provide(t){const n=new l["b"];n.add(t.onDidAccept(()=>{const[e]=t.selectedItems;e&&this.quickInputService.quickAccess.show(e.prefix,{preserveValue:!0})})),n.add(t.onDidChangeValue(t=>{const n=this.registry.getQuickAccessProvider(t.substr(e.PREFIX.length));n&&n.prefix&&n.prefix!==e.PREFIX&&this.quickInputService.quickAccess.show(n.prefix,{preserveValue:!0})}));const{editorProviders:i,globalProviders:r}=this.getQuickAccessProviders();return t.items=0===i.length||0===r.length?[...0===i.length?r:i]:[{label:Object(a["a"])("globalCommands","global commands"),type:"separator"},...r,{label:Object(a["a"])("editorCommands","editor commands"),type:"separator"},...i],n}getQuickAccessProviders(){const t=[],n=[];for(const i of this.registry.getQuickAccessProviders().sort((e,t)=>e.prefix.localeCompare(t.prefix)))if(i.prefix!==e.PREFIX)for(const e of i.helpEntries){const r=e.prefix||i.prefix,o=r||"…";(e.needsEditor?n:t).push({prefix:r,label:o,ariaLabel:Object(a["a"])("helpPickAriaLabel","{0}, {1}",o,e.description),description:e.description})}return{editorProviders:n,globalProviders:t}}};h.PREFIX="?",h=c([u(0,s["a"])],h),i["a"].as(r["b"].Quickaccess).registerQuickAccessProvider({ctor:h,prefix:"",helpEntries:[{description:o["e"].helpQuickAccessActionLabel,needsEditor:!0}]})},"6ca1":function(e,t,n){var i=n("9fbb"),r=n("c901");e.exports=function(e){return i(r(e))}},"6cb7":function(e,t,n){"use strict";var i=n("9ab4"),r=n("6d8b"),o=n("4319"),s=n("8918"),a=n("625e"),l=n("e0d3"),c=n("f934"),u=Object(l["o"])(),h=function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.uid=s["c"]("ec_cpt_model"),r}return Object(i["a"])(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=c["d"](this),i=n?c["f"](e):{},o=t.getTheme();r["merge"](e,o.get(this.mainType)),r["merge"](e,this.getDefaultOption()),n&&c["h"](e,i,n)},t.prototype.mergeOption=function(e,t){r["merge"](this.option,e,!0);var n=c["d"](this);n&&c["h"](this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Object(a["d"])(e))return e.defaultOption;var t=u(this);if(!t.defaultOption){var n=[],i=e;while(i){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=r["merge"](s,n[l],!0);t.defaultOption=s}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",i=e+"Id";return Object(l["v"])(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(o["a"]);function d(e){var t=[];return r["each"](h.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=r["map"](t,(function(e){return Object(a["f"])(e).main})),"dataset"!==e&&r["indexOf"](t,"dataset")<=0&&t.unshift("dataset"),t}Object(a["e"])(h,o["a"]),Object(a["c"])(h),s["a"](h),s["b"](h,d),t["a"]=h},"6ccd":function(e,t,n){},"6d61":function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("e330"),s=n("94ca"),a=n("cb2d"),l=n("f183"),c=n("2266"),u=n("19aa"),h=n("1626"),d=n("7234"),f=n("861d"),p=n("d039"),g=n("1c7e"),m=n("d44e"),v=n("7156");e.exports=function(e,t,n){var b=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),_=b?"set":"add",w=r[e],C=w&&w.prototype,S=w,x={},O=function(e){var t=o(C[e]);a(C,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!f(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return y&&!f(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!f(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})},k=s(e,!h(w)||!(y||C.forEach&&!p((function(){(new w).entries().next()}))));if(k)S=n.getConstructor(t,e,b,_),l.enable();else if(s(e,!0)){var L=new S,E=L[_](y?{}:-0,1)!=L,D=p((function(){L.has(1)})),I=g((function(e){new w(e)})),M=!y&&p((function(){var e=new w,t=5;while(t--)e[_](t,t);return!e.has(-0)}));I||(S=t((function(e,t){u(e,C);var n=v(new w,e,S);return d(t)||c(t,n[_],{that:n,AS_ENTRIES:b}),n})),S.prototype=C,C.constructor=S),(D||M)&&(O("delete"),O("has"),b&&O("get")),(M||E)&&O(_),y&&C.clear&&delete C.clear}return x[e]=S,i({global:!0,constructor:!0,forced:S!=w},x),m(S,e),y||n.setStrong(S,e,b),S}},"6d8b":function(e,t,n){"use strict";n.r(t),n.d(t,"guid",(function(){return m})),n.d(t,"logError",(function(){return v})),n.d(t,"clone",(function(){return b})),n.d(t,"merge",(function(){return y})),n.d(t,"mergeAll",(function(){return _})),n.d(t,"extend",(function(){return w})),n.d(t,"defaults",(function(){return C})),n.d(t,"createCanvas",(function(){return S})),n.d(t,"indexOf",(function(){return x})),n.d(t,"inherits",(function(){return O})),n.d(t,"mixin",(function(){return k})),n.d(t,"isArrayLike",(function(){return L})),n.d(t,"each",(function(){return E})),n.d(t,"map",(function(){return D})),n.d(t,"reduce",(function(){return I})),n.d(t,"filter",(function(){return M})),n.d(t,"find",(function(){return T})),n.d(t,"keys",(function(){return A})),n.d(t,"bind",(function(){return P})),n.d(t,"curry",(function(){return j})),n.d(t,"isArray",(function(){return R})),n.d(t,"isFunction",(function(){return F})),n.d(t,"isString",(function(){return B})),n.d(t,"isStringSafe",(function(){return W})),n.d(t,"isNumber",(function(){return V})),n.d(t,"isObject",(function(){return z})),n.d(t,"isBuiltInObject",(function(){return H})),n.d(t,"isTypedArray",(function(){return U})),n.d(t,"isDom",(function(){return q})),n.d(t,"isGradientObject",(function(){return $})),n.d(t,"isImagePatternObject",(function(){return K})),n.d(t,"isRegExp",(function(){return G})),n.d(t,"eqNaN",(function(){return Y})),n.d(t,"retrieve",(function(){return Z})),n.d(t,"retrieve2",(function(){return X})),n.d(t,"retrieve3",(function(){return Q})),n.d(t,"slice",(function(){return J})),n.d(t,"normalizeCssArray",(function(){return ee})),n.d(t,"assert",(function(){return te})),n.d(t,"trim",(function(){return ne})),n.d(t,"setAsPrimitive",(function(){return re})),n.d(t,"isPrimitive",(function(){return oe})),n.d(t,"HashMap",(function(){return ce})),n.d(t,"createHashMap",(function(){return ue})),n.d(t,"concatArray",(function(){return he})),n.d(t,"createObject",(function(){return de})),n.d(t,"disableUserSelect",(function(){return fe})),n.d(t,"hasOwn",(function(){return pe})),n.d(t,"noop",(function(){return ge})),n.d(t,"RADIAN_TO_DEGREE",(function(){return me}));var i=n("726e"),r=I(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),o=I(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),s=Object.prototype.toString,a=Array.prototype,l=a.forEach,c=a.filter,u=a.slice,h=a.map,d=function(){}.constructor,f=d?d.prototype:null,p="__proto__",g=2311;function m(){return g++}function v(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!==typeof console&&console.error.apply(console,e)}function b(e){if(null==e||"object"!==typeof e)return e;var t=e,n=s.call(e);if("[object Array]"===n){if(!oe(e)){t=[];for(var i=0,a=e.length;i<a;i++)t[i]=b(e[i])}}else if(o[n]){if(!oe(e)){var l=e.constructor;if(l.from)t=l.from(e);else{t=new l(e.length);for(i=0,a=e.length;i<a;i++)t[i]=e[i]}}}else if(!r[n]&&!oe(e)&&!q(e))for(var c in t={},e)e.hasOwnProperty(c)&&c!==p&&(t[c]=b(e[c]));return t}function y(e,t,n){if(!z(t)||!z(e))return n?b(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==p){var r=e[i],o=t[i];!z(o)||!z(r)||R(o)||R(r)||q(o)||q(r)||H(o)||H(r)||oe(o)||oe(r)?!n&&i in e||(e[i]=b(t[i])):y(r,o,n)}return e}function _(e,t){for(var n=e[0],i=1,r=e.length;i<r;i++)n=y(n,e[i],t);return n}function w(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==p&&(e[n]=t[n]);return e}function C(e,t,n){for(var i=A(t),r=0;r<i.length;r++){var o=i[r];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}var S=i["d"].createCanvas;function x(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return-1}function O(e,t){var n=e.prototype;function i(){}for(var r in i.prototype=t.prototype,e.prototype=new i,n)n.hasOwnProperty(r)&&(e.prototype[r]=n[r]);e.prototype.constructor=e,e.superClass=t}function k(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}else C(e,t,n)}function L(e){return!!e&&("string"!==typeof e&&"number"===typeof e.length)}function E(e,t,n){if(e&&t)if(e.forEach&&e.forEach===l)e.forEach(t,n);else if(e.length===+e.length)for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function D(e,t,n){if(!e)return[];if(!t)return J(e);if(e.map&&e.map===h)return e.map(t,n);for(var i=[],r=0,o=e.length;r<o;r++)i.push(t.call(n,e[r],r,e));return i}function I(e,t,n,i){if(e&&t){for(var r=0,o=e.length;r<o;r++)n=t.call(i,n,e[r],r,e);return n}}function M(e,t,n){if(!e)return[];if(!t)return J(e);if(e.filter&&e.filter===c)return e.filter(t,n);for(var i=[],r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)&&i.push(e[r]);return i}function T(e,t,n){if(e&&t)for(var i=0,r=e.length;i<r;i++)if(t.call(n,e[i],i,e))return e[i]}function A(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function N(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return e.apply(t,n.concat(u.call(arguments)))}}var P=f&&F(f.bind)?f.call.bind(f.bind):N;function j(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(u.call(arguments)))}}function R(e){return Array.isArray?Array.isArray(e):"[object Array]"===s.call(e)}function F(e){return"function"===typeof e}function B(e){return"string"===typeof e}function W(e){return"[object String]"===s.call(e)}function V(e){return"number"===typeof e}function z(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function H(e){return!!r[s.call(e)]}function U(e){return!!o[s.call(e)]}function q(e){return"object"===typeof e&&"number"===typeof e.nodeType&&"object"===typeof e.ownerDocument}function $(e){return null!=e.colorStops}function K(e){return null!=e.image}function G(e){return"[object RegExp]"===s.call(e)}function Y(e){return e!==e}function Z(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e.length;n<i;n++)if(null!=e[n])return e[n]}function X(e,t){return null!=e?e:t}function Q(e,t,n){return null!=e?e:null!=t?t:n}function J(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return u.apply(e,t)}function ee(e){if("number"===typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function te(e,t){if(!e)throw new Error(t)}function ne(e){return null==e?null:"function"===typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ie="__ec_primitive__";function re(e){e[ie]=!0}function oe(e){return e[ie]}var se=function(){function e(){this.data={}}return e.prototype["delete"]=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return A(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),ae="function"===typeof Map;function le(){return ae?new Map:new se}var ce=function(){function e(t){var n=R(t);this.data=le();var i=this;function r(e,t){n?i.set(e,t):i.set(t,e)}t instanceof e?t.each(r):t&&E(t,r)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach((function(n,i){e.call(t,n,i)}))},e.prototype.keys=function(){var e=this.data.keys();return ae?Array.from(e):e},e.prototype.removeKey=function(e){this.data["delete"](e)},e}();function ue(e){return new ce(e)}function he(e,t){for(var n=new e.constructor(e.length+t.length),i=0;i<e.length;i++)n[i]=e[i];var r=e.length;for(i=0;i<t.length;i++)n[i+r]=t[i];return n}function de(e,t){var n;if(Object.create)n=Object.create(e);else{var i=function(){};i.prototype=e,n=new i}return t&&w(n,t),n}function fe(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function pe(e,t){return e.hasOwnProperty(t)}function ge(){}var me=180/Math.PI},"6d8e":function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return _}));var i=n("30db"),r=n("32b8");const o=/^\w[\w\d+.-]*$/,s=/^\//,a=/^\/\//;function l(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&&!o.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!s.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(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}function c(e,t){return e||t?e:"file"}function u(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==d&&(t=d+t):t=d;break}return t}const h="",d="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class p{constructor(e,t,n,i,r,o=!1){"object"===typeof e?(this.scheme=e.scheme||h,this.authority=e.authority||h,this.path=e.path||h,this.query=e.query||h,this.fragment=e.fragment||h):(this.scheme=c(e,o),this.authority=t||h,this.path=u(this.scheme,n||h),this.query=i||h,this.fragment=r||h,l(this,o))}static isUri(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&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}get fsPath(){return _(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:i,query:r,fragment:o}=e;return void 0===t?t=this.scheme:null===t&&(t=h),void 0===n?n=this.authority:null===n&&(n=h),void 0===i?i=this.path:null===i&&(i=h),void 0===r?r=this.query:null===r&&(r=h),void 0===o?o=this.fragment:null===o&&(o=h),t===this.scheme&&n===this.authority&&i===this.path&&r===this.query&&o===this.fragment?this:new m(t,n,i,r,o)}static parse(e,t=!1){const n=f.exec(e);return n?new m(n[2]||h,x(n[4]||h),x(n[5]||h),x(n[7]||h),x(n[9]||h),t):new m(h,h,h,h,h)}static file(e){let t=h;if(i["j"]&&(e=e.replace(/\\/g,d)),e[0]===d&&e[1]===d){const n=e.indexOf(d,2);-1===n?(t=e.substring(2),e=d):(t=e.substring(2,n),e=e.substring(n)||d)}return new m("file",t,e,h,h)}static from(e){const t=new m(e.scheme,e.authority,e.path,e.query,e.fragment);return l(t,!0),t}static joinPath(e,...t){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return n=i["j"]&&"file"===e.scheme?p.file(r["i"].join(_(e,!0),...t)).path:r["e"].join(e.path,...t),e.with({path:n})}toString(e=!1){return w(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof p)return e;{const t=new m(e);return t._formatted=e.external,t._fsPath=e._sep===g?e.fsPath:null,t}}return e}}const g=i["j"]?1:void 0;class m extends p{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_(this,!1)),this._fsPath}toString(e=!1){return e?w(this,!0):(this._formatted||(this._formatted=w(this,!1)),this._formatted)}toJSON(){const 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}}const v={[58]:"%3A",[47]:"%2F",[63]:"%3F",[35]:"%23",[91]:"%5B",[93]:"%5D",[64]:"%40",[33]:"%21",[36]:"%24",[38]:"%26",[39]:"%27",[40]:"%28",[41]:"%29",[42]:"%2A",[43]:"%2B",[44]:"%2C",[59]:"%3B",[61]:"%3D",[32]:"%20"};function b(e,t){let n=void 0,i=-1;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),void 0!==n&&(n+=e.charAt(r));else{void 0===n&&(n=e.substr(0,r));const t=v[o];void 0!==t?(-1!==i&&(n+=encodeURIComponent(e.substring(i,r)),i=-1),n+=t):-1===i&&(i=r)}}return-1!==i&&(n+=encodeURIComponent(e.substring(i))),void 0!==n?n:e}function y(e){let t=void 0;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);35===i||63===i?(void 0===t&&(t=e.substr(0,n)),t+=v[i]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function _(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,i["j"]&&(n=n.replace(/\//g,"\\")),n}function w(e,t){const n=t?y:b;let i="",{scheme:r,authority:o,path:s,query:a,fragment:l}=e;if(r&&(i+=r,i+=":"),(o||"file"===r)&&(i+=d,i+=d),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),e=t.indexOf(":"),-1===e?i+=n(t,!1):(i+=n(t.substr(0,e),!1),i+=":",i+=n(t.substr(e+1),!1)),i+="@"}o=o.toLowerCase(),e=o.indexOf(":"),-1===e?i+=n(o,!1):(i+=n(o.substr(0,e),!1),i+=o.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){const e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){const e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}i+=n(s,!0)}return a&&(i+="?",i+=n(a,!1)),l&&(i+="#",i+=t?l:b(l,!1)),i}function C(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+C(e.substr(3)):e}}const S=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function x(e){return e.match(S)?e.replace(S,e=>C(e)):e}},"6da2":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return p}));var i=n("3742"),r=n("7ab3"),o=n("7416");class s{constructor(e,t,n){this._linePartBrand=void 0,this.endIndex=e,this.type=t,this.metadata=n}isWhitespace(){return!!(1&this.metadata)}isPseudoAfter(){return!!(4&this.metadata)}}class a{constructor(e,t){this.startOffset=e,this.endOffset=t}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class l{constructor(e,t,n,i,r,s,a,l,c,u,h,d,f,p,g,m,v,b,y){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.continuesWithWrappedLine=i,this.isBasicASCII=r,this.containsRTL=s,this.fauxIndentLength=a,this.lineTokens=l,this.lineDecorations=c.sort(o["a"].compare),this.tabSize=u,this.startVisibleColumn=h,this.spaceWidth=d,this.stopRenderingLineAfter=g,this.renderWhitespace="all"===m?4:"boundary"===m?1:"selection"===m?2:"trailing"===m?3:0,this.renderControlCharacters=v,this.fontLigatures=b,this.selectionsOnLine=y&&y.sort((e,t)=>e.startOffset<t.startOffset?-1:1);const _=Math.abs(p-d),w=Math.abs(f-d);_<w?(this.renderSpaceWidth=p,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=f,this.renderSpaceCharCode=183)}sameSelection(e){if(null===this.selectionsOnLine)return null===e;if(null===e)return!1;if(e.length!==this.selectionsOnLine.length)return!1;for(let t=0;t<this.selectionsOnLine.length;t++)if(!this.selectionsOnLine[t].equals(e[t]))return!1;return!0}equals(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.renderSpaceWidth===e.renderSpaceWidth&&this.renderSpaceCharCode===e.renderSpaceCharCode&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&o["a"].equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)&&this.sameSelection(e.selectionsOnLine)}}class c{constructor(e,t){this.partIndex=e,this.charIndex=t}}class u{constructor(e,t){this.length=e,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}static getPartIndex(e){return(4294901760&e)>>>16}static getCharIndex(e){return(65535&e)>>>0}setColumnInfo(e,t,n,i){const r=(t<<16|n<<0)>>>0;this._data[e-1]=r,this._absoluteOffsets[e-1]=i+n}getAbsoluteOffset(e){return 0===this._absoluteOffsets.length?0:this._absoluteOffsets[e-1]}charOffsetToPartData(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const t=this.charOffsetToPartData(e-1),n=u.getPartIndex(t),i=u.getCharIndex(t);return new c(n,i)}getColumn(e,t){const n=this.partDataToCharOffset(e.partIndex,t,e.charIndex);return n+1}partDataToCharOffset(e,t,n){if(0===this.length)return 0;let i=(e<<16|n<<0)>>>0,r=0,o=this.length-1;while(r+1<o){let e=r+o>>>1,t=this._data[e];if(t===i)return e;t>i?o=e:r=e}if(r===o)return r;let s=this._data[r],a=this._data[o];if(s===i)return r;if(a===i)return o;let l,c=u.getPartIndex(s),h=u.getCharIndex(s),d=u.getPartIndex(a);l=c!==d?t:u.getCharIndex(a);let f=n-h,p=l-n;return f<=p?r:o}}class h{constructor(e,t,n){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n}}function d(e,t){if(0===e.lineContent.length){if(e.lineDecorations.length>0){t.appendASCIIString("<span>");let n=0,i=0,r=0;for(const s of e.lineDecorations)1!==s.type&&2!==s.type||(t.appendASCIIString('<span class="'),t.appendASCIIString(s.className),t.appendASCIIString('"></span>'),1===s.type&&(r|=1,n++),2===s.type&&(r|=2,i++));t.appendASCIIString("</span>");const o=new u(1,n+i);return o.setColumnInfo(1,n,0,0),new h(o,!1,r)}return t.appendASCIIString("<span><span></span></span>"),new h(new u(0,0),!1,0)}return w(m(e),t)}class f{constructor(e,t,n,i){this.characterMapping=e,this.html=t,this.containsRTL=n,this.containsForeignElements=i}}function p(e){let t=Object(r["a"])(1e4),n=d(e,t);return new f(n.characterMapping,t.build(),n.containsRTL,n.containsForeignElements)}class g{constructor(e,t,n,i,r,o,s,a,l,c,u,h,d,f,p){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.len=i,this.isOverflowing=r,this.parts=o,this.containsForeignElements=s,this.fauxIndentLength=a,this.tabSize=l,this.startVisibleColumn=c,this.containsRTL=u,this.spaceWidth=h,this.renderSpaceCharCode=d,this.renderWhitespace=f,this.renderControlCharacters=p}}function m(e){const t=e.lineContent;let n,i;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<t.length?(n=!0,i=e.stopRenderingLineAfter):(n=!1,i=t.length);let r=v(e.lineTokens,e.fauxIndentLength,i);(4===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine||3===e.renderWhitespace)&&(r=y(e,t,i,r));let o=0;if(e.lineDecorations.length>0){for(let t=0,n=e.lineDecorations.length;t<n;t++){const n=e.lineDecorations[t];3===n.type||1===n.type?o|=1:2===n.type&&(o|=2)}r=_(t,i,r,e.lineDecorations)}return e.containsRTL||(r=b(t,r,!e.isBasicASCII||e.fontLigatures)),new g(e.useMonospaceOptimizations,e.canUseHalfwidthRightwardsArrow,t,i,n,r,o,e.fauxIndentLength,e.tabSize,e.startVisibleColumn,e.containsRTL,e.spaceWidth,e.renderSpaceCharCode,e.renderWhitespace,e.renderControlCharacters)}function v(e,t,n){let i=[],r=0;t>0&&(i[r++]=new s(t,"",0));for(let o=0,a=e.getCount();o<a;o++){const a=e.getEndOffset(o);if(a<=t)continue;const l=e.getClassName(o);if(a>=n){i[r++]=new s(n,l,0);break}i[r++]=new s(a,l,0)}return i}function b(e,t,n){let i=0,r=[],o=0;if(n)for(let a=0,l=t.length;a<l;a++){const n=t[a],l=n.endIndex;if(i+50<l){const t=n.type,a=n.metadata;let c=-1,u=i;for(let n=i;n<l;n++)32===e.charCodeAt(n)&&(c=n),-1!==c&&n-u>=50&&(r[o++]=new s(c+1,t,a),u=c+1,c=-1);u!==l&&(r[o++]=new s(l,t,a))}else r[o++]=n;i=l}else for(let a=0,l=t.length;a<l;a++){const e=t[a],n=e.endIndex;let l=n-i;if(l>50){const t=e.type,a=e.metadata,c=Math.ceil(l/50);for(let e=1;e<c;e++){let n=i+50*e;r[o++]=new s(n,t,a)}r[o++]=new s(n,t,a)}else r[o++]=e;i=n}return r}function y(e,t,n,r){const o=e.continuesWithWrappedLine,a=e.fauxIndentLength,l=e.tabSize,c=e.startVisibleColumn,u=e.useMonospaceOptimizations,h=e.selectionsOnLine,d=1===e.renderWhitespace,f=3===e.renderWhitespace,p=e.renderSpaceWidth!==e.spaceWidth;let g=[],m=0,v=0,b=r[v].type,y=r[v].endIndex;const _=r.length;let w,C=!1,S=i["v"](t);-1===S?(C=!0,S=n,w=n):w=i["J"](t);let x=!1,O=0,k=h&&h[O],L=c%l;for(let D=a;D<n;D++){const e=t.charCodeAt(D);let o;if(k&&D>=k.endOffset&&(O++,k=h&&h[O]),D<S||D>w)o=!0;else if(9===e)o=!0;else if(32===e)if(d)if(x)o=!0;else{const e=D+1<n?t.charCodeAt(D+1):0;o=32===e||9===e}else o=!0;else o=!1;if(o&&h&&(o=!!k&&k.startOffset<=D&&k.endOffset>D),o&&f&&(o=C||D>w),x){if(!o||!u&&L>=l){if(p){const e=m>0?g[m-1].endIndex:a;for(let t=e+1;t<=D;t++)g[m++]=new s(t,"mtkw",1)}else g[m++]=new s(D,"mtkw",1);L%=l}}else(D===y||o&&D>a)&&(g[m++]=new s(D,b,0),L%=l);9===e?L=l:i["E"](e)?L+=2:L++,x=o;while(D===y){if(v++,!(v<_))break;b=r[v].type,y=r[v].endIndex}}let E=!1;if(x)if(o&&d){let e=n>0?t.charCodeAt(n-1):0,i=n>1?t.charCodeAt(n-2):0,r=32===e&&32!==i&&9!==i;r||(E=!0)}else E=!0;if(E)if(p){const e=m>0?g[m-1].endIndex:a;for(let t=e+1;t<=n;t++)g[m++]=new s(t,"mtkw",1)}else g[m++]=new s(n,"mtkw",1);else g[m++]=new s(n,b,0);return g}function _(e,t,n,i){i.sort(o["a"].compare);const r=o["b"].normalize(e,i),a=r.length;let l=0,c=[],u=0,h=0;for(let o=0,f=n.length;o<f;o++){const e=n[o],t=e.endIndex,i=e.type,d=e.metadata;while(l<a&&r[l].startOffset<t){const e=r[l];if(e.startOffset>h&&(h=e.startOffset,c[u++]=new s(h,i,d)),!(e.endOffset+1<=t)){h=t,c[u++]=new s(h,i+" "+e.className,d|e.metadata);break}h=e.endOffset+1,c[u++]=new s(h,i+" "+e.className,d|e.metadata),l++}t>h&&(h=t,c[u++]=new s(h,i,d))}const d=n[n.length-1].endIndex;if(l<a&&r[l].startOffset===d)while(l<a&&r[l].startOffset===d){const e=r[l];c[u++]=new s(h,e.className,e.metadata),l++}return c}function w(e,t){const n=e.fontIsMonospace,r=e.canUseHalfwidthRightwardsArrow,o=e.containsForeignElements,s=e.lineContent,a=e.len,l=e.isOverflowing,c=e.parts,d=e.fauxIndentLength,f=e.tabSize,p=e.startVisibleColumn,g=e.containsRTL,m=e.spaceWidth,v=e.renderSpaceCharCode,b=e.renderWhitespace,y=e.renderControlCharacters,_=new u(a+1,c.length);let w=!1,C=0,S=p,x=0,O=0,k=0,L=0;g?t.appendASCIIString('<span dir="ltr">'):t.appendASCIIString("<span>");for(let u=0,h=c.length;u<h;u++){L+=k;const e=c[u],l=e.endIndex,h=e.type,p=0!==b&&e.isWhitespace(),g=p&&!n&&("mtkw"===h||!o),E=C===l&&e.isPseudoAfter();if(x=0,t.appendASCIIString('<span class="'),t.appendASCIIString(g?"mtkz":h),t.appendASCII(34),p){let e=0;{let t=C,n=S;for(;t<l;t++){const i=s.charCodeAt(t),r=0|(9===i?f-n%f:1);e+=r,t>=d&&(n+=r)}}for(g&&(t.appendASCIIString(' style="width:'),t.appendASCIIString(String(m*e)),t.appendASCIIString('px"')),t.appendASCII(62);C<l;C++){_.setColumnInfo(C+1,u-O,x,L),O=0;const e=s.charCodeAt(C);let n;if(9===e){n=f-S%f|0,!r||n>1?t.write1(8594):t.write1(65515);for(let e=2;e<=n;e++)t.write1(160)}else n=1,t.write1(v);x+=n,C>=d&&(S+=n)}k=e}else{let e=0;for(t.appendASCII(62);C<l;C++){_.setColumnInfo(C+1,u-O,x,L),O=0;const n=s.charCodeAt(C);let r=1,o=1;switch(n){case 9:r=f-S%f,o=r;for(let e=1;e<=r;e++)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:y?t.write1(9216):t.appendASCIIString("�");break;case 65279:case 8232:case 8233:case 133:t.write1(65533);break;default:i["E"](n)&&o++,y&&n<32?t.write1(9216+n):y&&127===n?t.write1(9249):t.write1(n)}x+=r,e+=r,C>=d&&(S+=o)}k=e}E?O++:O=0,C>=a&&!w&&e.isPseudoAfter()&&(w=!0,_.setColumnInfo(C+1,u,x,L)),t.appendASCIIString("</span>")}return w||_.setColumnInfo(a+1,c.length-1,x,L),l&&t.appendASCIIString("<span>…</span>"),t.appendASCIIString("</span>"),new h(_,g,o)}},"6daf":function(e,t,n){"use strict";n.r(t);var i=n("dff7"),r=n("b2cc"),o=n("2c29"),s=n("6a89"),a=n("c101"),l=n("f85a");class c extends r["b"]{constructor(){super({id:"editor.action.transposeLetters",label:i["a"]("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:a["a"].writable,kbOpts:{kbExpr:a["a"].textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let n=t.getModel(),i=[],r=t.getSelections();for(let a of r){if(!a.isEmpty())continue;let e=a.startLineNumber,t=a.startColumn,r=n.getLineMaxColumn(e);if(1===e&&(1===t||2===t&&2===r))continue;let c=t===r?a.getPosition():l["a"].rightPosition(n,a.getPosition().lineNumber,a.getPosition().column),u=l["a"].leftPosition(n,c),h=l["a"].leftPosition(n,u),d=n.getValueInRange(s["a"].fromPositions(h,u)),f=n.getValueInRange(s["a"].fromPositions(u,c)),p=s["a"].fromPositions(h,c);i.push(new o["a"](p,f+d))}i.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop())}}Object(r["j"])(c)},"6dd8":function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];e.call(t,r[1],r[0])}},t}()}(),i="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,r=function(){return"undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),s=2;function a(e,t){var n=!1,i=!1,r=0;function a(){n&&(n=!1,e()),i&&c()}function l(){o(a)}function c(){var e=Date.now();if(n){if(e-r<s)return;i=!0}else n=!0,i=!1,setTimeout(l,t);r=e}return c}var l=20,c=["top","right","bottom","left","width","height","size","weight"],u="undefined"!==typeof MutationObserver,h=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=a(this.refresh.bind(this),l)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,i=c.some((function(e){return!!~n.indexOf(e)}));i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||r},p=x(0,0,0,0);function g(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var i=e["border-"+n+"-width"];return t+g(i)}),0)}function v(e){for(var t=["top","right","bottom","left"],n={},i=0,r=t;i<r.length;i++){var o=r[i],s=e["padding-"+o];n[o]=g(s)}return n}function b(e){var t=e.getBBox();return x(0,0,t.width,t.height)}function y(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var i=f(e).getComputedStyle(e),r=v(i),o=r.left+r.right,s=r.top+r.bottom,a=g(i.width),l=g(i.height);if("border-box"===i.boxSizing&&(Math.round(a+o)!==t&&(a-=m(i,"left","right")+o),Math.round(l+s)!==n&&(l-=m(i,"top","bottom")+s)),!w(e)){var c=Math.round(a+o)-t,u=Math.round(l+s)-n;1!==Math.abs(c)&&(a-=c),1!==Math.abs(u)&&(l-=u)}return x(r.left,r.top,a,l)}var _=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"===typeof e.getBBox}}();function w(e){return e===f(e).document.documentElement}function C(e){return i?_(e)?b(e):y(e):p}function S(e){var t=e.x,n=e.y,i=e.width,r=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(o.prototype);return d(s,{x:t,y:n,width:i,height:r,top:n,right:t+i,bottom:r+n,left:t}),s}function x(e,t,n,i){return{x:e,y:t,width:n,height:i}}var O=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=x(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=C(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),k=function(){function e(e,t){var n=S(t);d(this,{target:e,contentRect:n})}return e}(),L=function(){function e(e,t,i){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new O(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new k(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),E="undefined"!==typeof WeakMap?new WeakMap:new n,D=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=h.getInstance(),i=new L(t,n,this);E.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach((function(e){D.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}}));var I=function(){return"undefined"!==typeof r.ResizeObserver?r.ResizeObserver:D}();t["default"]=I}.call(this,n("c8ba"))},"6dec":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("0a0f");const r=Object(i["c"])("keybindingService")},"6df4":function(e,t,n){"use strict";n.r(t);var i=n("dff7"),r=n("b2cc"),o=n("62bd");class s extends r["b"]{constructor(){super({id:"editor.action.fontZoomIn",label:i["a"]("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})}run(e,t){o["a"].setZoomLevel(o["a"].getZoomLevel()+1)}}class a extends r["b"]{constructor(){super({id:"editor.action.fontZoomOut",label:i["a"]("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})}run(e,t){o["a"].setZoomLevel(o["a"].getZoomLevel()-1)}}class l extends r["b"]{constructor(){super({id:"editor.action.fontZoomReset",label:i["a"]("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})}run(e,t){o["a"].setZoomLevel(0)}}Object(r["j"])(s),Object(r["j"])(a),Object(r["j"])(l)},"6e4e":function(e,t,n){"use strict";n.r(t),n.d(t,"BracketMatchingController",(function(){return w}));n("f004");var i=n("dff7"),r=n("5fe7"),o=n("a666"),s=n("b2cc"),a=n("7061"),l=n("6a89"),c=n("8025"),u=n("c101"),h=n("3352"),d=n("b57f"),f=n("918c"),p=n("303e"),g=n("b7d0"),m=n("7e32");const v=Object(p["wc"])("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},i["a"]("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class b extends s["b"]{constructor(){super({id:"editor.action.jumpToBracket",label:i["a"]("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:u["a"].editorTextFocus,primary:3160,weight:100}})}run(e,t){let n=w.get(t);n&&n.jumpToBracket()}}class y extends s["b"]{constructor(){super({id:"editor.action.selectToBracket",label:i["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}}}}]}})}run(e,t,n){const i=w.get(t);if(!i)return;let r=!0;n&&!1===n.selectBrackets&&(r=!1),i.selectToBracket(r)}}class _{constructor(e,t,n){this.position=e,this.brackets=t,this.options=n}}class w extends o["a"]{constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=[],this._updateBracketsSoon=this._register(new r["e"](()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(62),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(e=>{"never"!==this._matchBrackets&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(e=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(e=>{this._lastBracketsData=[],this._decorations=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(e=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(e=>{e.hasChanged(62)&&(this._matchBrackets=this._editor.getOption(62),this._decorations=this._editor.deltaDecorations(this._decorations,[]),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())}))}static get(e){return e.getContribution(w.ID)}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(t=>{const n=t.getStartPosition(),i=e.matchBracket(n);let r=null;if(i)i[0].containsPosition(n)?r=i[1].getStartPosition():i[1].containsPosition(n)&&(r=i[0].getStartPosition());else{const t=e.findEnclosingBrackets(n);if(t)r=t[0].getStartPosition();else{const t=e.findNextBracket(n);t&&t.range&&(r=t.range.getStartPosition())}}return r?new c["a"](r.lineNumber,r.column,r.lineNumber,r.column):new c["a"](n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),n=[];this._editor.getSelections().forEach(i=>{const r=i.getStartPosition();let o=t.matchBracket(r);if(!o&&(o=t.findEnclosingBrackets(r),!o)){const e=t.findNextBracket(r);e&&e.range&&(o=t.matchBracket(e.range.getStartPosition()))}let s=null,a=null;if(o){o.sort(l["a"].compareRangesUsingStarts);const[t,n]=o;s=e?t.getStartPosition():t.getEndPosition(),a=e?n.getEndPosition():n.getStartPosition()}s&&a&&n.push(new c["a"](s.lineNumber,s.column,a.lineNumber,a.column))}),n.length>0&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}_updateBrackets(){if("never"===this._matchBrackets)return;this._recomputeBrackets();let e=[],t=0;for(const n of this._lastBracketsData){let i=n.brackets;i&&(e[t++]={range:i[0],options:n.options},e[t++]={range:i[1],options:n.options})}this._decorations=this._editor.deltaDecorations(this._decorations,e)}_recomputeBrackets(){if(!this._editor.hasModel())return this._lastBracketsData=[],void(this._lastVersionId=0);const e=this._editor.getSelections();if(e.length>100)return this._lastBracketsData=[],void(this._lastVersionId=0);const t=this._editor.getModel(),n=t.getVersionId();let i=[];this._lastVersionId===n&&(i=this._lastBracketsData);let r=[],o=0;for(let a=0,h=e.length;a<h;a++){let t=e[a];t.isEmpty()&&(r[o++]=t.getStartPosition())}r.length>1&&r.sort(a["a"].compare);let s=[],l=0,c=0,u=i.length;for(let a=0,h=r.length;a<h;a++){let e=r[a];while(c<u&&i[c].position.isBefore(e))c++;if(c<u&&i[c].position.equals(e))s[l++]=i[c];else{let n=t.matchBracket(e),i=w._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;n||"always"!==this._matchBrackets||(n=t.findEnclosingBrackets(e,20),i=w._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),s[l++]=new _(e,n,i)}}this._lastBracketsData=s,this._lastVersionId=n}}w.ID="editor.contrib.bracketMatchingController",w._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=d["a"].register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:Object(g["g"])(v),position:h["d"].Center}}),w._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=d["a"].register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"}),Object(s["l"])(w.ID,w),Object(s["j"])(y),Object(s["j"])(b),Object(g["f"])((e,t)=>{const n=e.getColor(f["c"]);n&&t.addRule(`.monaco-editor .bracket-match { background-color: ${n}; }`);const i=e.getColor(f["d"]);i&&t.addRule(`.monaco-editor .bracket-match { border: 1px solid ${i}; }`)}),m["d"].appendMenuItem(m["b"].MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:i["a"]({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},"6e62":function(e,t,n){"use strict";n.r(t),n.d(t,"getInlayHints",(function(){return k})),n.d(t,"InlayHintsController",(function(){return L}));var i=n("5fe7"),r=n("fdcc"),o=n("eda7"),s=n("a666"),a=n("b2cc"),l=n("5717"),c=n("b707"),u=n("e8e3"),h=n("303e"),d=n("2504"),f=n("b7d0"),p=n("6a89"),g=n("6a5d"),m=n("9e74"),v=n("6d8e"),b=n("ef8e"),y=n("b78f"),_=n("7061"),w=n("fbba"),C=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},S=function(e,t){return function(n,i){t(n,i,e)}},x=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const O=500;function k(e,t,n){return x(this,void 0,void 0,(function*(){const i=[],o=c["r"].ordered(e).reverse(),s=Object(u["k"])(o.map(o=>t.map(t=>Promise.resolve(o.provideInlayHints(e,t,n)).then(e=>{e&&i.push({list:e,provider:o})},e=>{Object(r["f"])(e)}))));return yield Promise.all(s),i}))}let L=class{constructor(e,t,n,i){this._editor=e,this._codeEditorService=t,this._themeService=n,this._configurationService=i,this._disposables=new s["b"],this._sessionDisposables=new s["b"],this._getInlayHintsDelays=new g["b"](c["r"],25,2500),this._decorationsTypeIds=[],this._decorationIds=[],this._disposables.add(c["r"].onDidChange(()=>this._update())),this._disposables.add(n.onDidColorThemeChange(()=>this._update())),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(e=>{e.hasChanged(125)&&this._update()})),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(125).enabled)return void this._removeAllDecorations();const e=this._editor.getModel();if(!e||!c["r"].has(e))return void this._removeAllDecorations();const t=new i["e"](()=>x(this,void 0,void 0,(function*(){const n=Date.now(),i=new d["b"];this._sessionDisposables.add(Object(s["i"])(()=>i.dispose(!0)));const r=this._editor.getVisibleRangesPlusViewportAboveBelow(),o=yield k(e,r,i.token),a=this._getInlayHintsDelays.update(e,Date.now()-n);t.delay=a,this._updateHintsDecorators(o)})),this._getInlayHintsDelays.get(e));this._sessionDisposables.add(t),this._sessionDisposables.add(this._editor.onDidChangeModelContent(()=>t.schedule())),this._disposables.add(this._editor.onDidScrollChange(()=>t.schedule())),t.schedule();const n=new s["b"];this._sessionDisposables.add(n);for(const i of c["r"].all(e))"function"===typeof i.onDidChangeInlayHints&&n.add(i.onDidChangeInlayHints(()=>t.schedule()))}_updateHintsDecorators(e){const{fontSize:t,fontFamily:n}=this._getLayoutInfo(),i=this._themeService.getColorTheme().getColor(h["N"]),r=this._themeService.getColorTheme().getColor(h["O"]),s=[],a=[],l="--inlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(l,n);const c=this._configurationService.getValue("editor.useInjectedText"),u=void 0===c||!!c;for(const{list:h}of e)for(let e=0;e<h.length&&a.length<O;e++){const{text:n,position:c,whitespaceBefore:d,whitespaceAfter:f}=h[e],g=d?t/3|0:0,m=f?t/3|0:0,v=E(n),b={contentText:v,backgroundColor:""+i,color:""+r,margin:`0px ${m}px 0px ${g}px`,fontSize:t+"px",fontFamily:`var(${l})`,padding:`0px ${t/4|0}px`,borderRadius:(t/4|0)+"px"},y="inlayHints-"+Object(o["b"])(b).toString(16);this._codeEditorService.registerDecorationType("inlay-hints-controller",y,u?{beforeInjectedText:Object.assign(Object.assign({},b),{affectsLetterSpacing:!0})}:{before:b},void 0,this._editor),s.push(y);const _=this._codeEditorService.resolveDecorationOptions(y,!0);a.push({range:p["a"].fromPositions(c),options:_})}this._decorationsTypeIds.forEach(this._codeEditorService.removeDecorationType,this._codeEditorService),this._decorationsTypeIds=s,this._decorationIds=this._editor.deltaDecorations(this._decorationIds,a)}_getLayoutInfo(){const e=this._editor.getOption(125),t=this._editor.getOption(43);let n=e.fontSize;(!n||n<5||n>t)&&(n=.9*t|0);const i=e.fontFamily||this._editor.getOption(40);return{fontSize:n,fontFamily:i}}_removeAllDecorations(){this._decorationIds=this._editor.deltaDecorations(this._decorationIds,[]),this._decorationsTypeIds.forEach(this._codeEditorService.removeDecorationType,this._codeEditorService),this._decorationsTypeIds=[]}};function E(e){const t=" ";return e.replace(/[ \t]/g,t)}L.ID="editor.contrib.InlayHints",L=C([S(1,l["a"]),S(2,f["b"]),S(3,w["a"])],L),Object(a["l"])(L.ID,L),m["a"].registerCommand("_executeInlayHintProvider",(e,...t)=>x(void 0,void 0,void 0,(function*(){const[n,i]=t;Object(b["c"])(v["a"].isUri(n)),Object(b["c"])(p["a"].isIRange(i));const r=yield e.get(y["a"]).createModelReference(n);try{const e=yield k(r.object.textEditorModel,[p["a"].lift(i)],d["a"].None);return Object(u["k"])(e.map(e=>e.list)).sort((e,t)=>_["a"].compare(e.position,t.position))}finally{r.dispose()}})))},"6eb9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lineConfig=void 0;var i={show:!0,name:"",stack:"",smooth:!1,xAxisIndex:0,yAxisIndex:0,data:[],lineStyle:{lineWidth:1},linePoint:{show:!0,radius:2,style:{fill:"#fff",lineWidth:1}},lineArea:{show:!1,gradient:[],style:{opacity:.5}},label:{show:!1,position:"top",offset:[0,-10],formatter:null,style:{fontSize:10}},rLevel:10,animationCurve:"easeOutCubic",animationFrame:50};t.lineConfig=i},"6f4f":function(e,t,n){var i=n("77e9"),r=n("85e7"),o=n("9742"),s=n("5a94")("IE_PROTO"),a=function(){},l="prototype",c=function(){var e,t=n("05f5")("iframe"),i=o.length,r="<",s=">";t.style.display="none",n("9141").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+s+"document.F=Object"+r+"/script"+s),e.close(),c=e.F;while(i--)delete c[l][o[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a[l]=i(e),n=new a,a[l]=null,n[s]=e):n=c(),void 0===t?n:r(n,t)}},"6fc2":function(e,t,n){},"6fd3":function(e,t,n){"use strict";var i=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"===typeof t&&(i=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),r[e]||(r[e]=[]);for(var s=0;s<r[e].length;s++)if(r[e][s].h===n)return this;var a={h:n,query:t,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[e].length-1,c=r[e][l];return c&&c.callAtLast?r[e].splice(l,0,a):r[e].push(a),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],r=0,o=n[e].length;r<o;r++)n[e][r].h!==t&&i.push(n[e][r]);n[e]=i}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],r=this._$eventProcessor;if(i)for(var o=t.length,s=i.length,a=0;a<s;a++){var l=i[a];if(!r||!r.filter||null==l.query||r.filter(e,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],r=this._$eventProcessor;if(i)for(var o=t.length,s=t[o-1],a=i.length,l=0;l<a;l++){var c=i[l];if(!r||!r.filter||null==c.query||r.filter(e,c.query))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,t[0]);break;case 2:c.h.call(s,t[0],t[1]);break;default:c.h.apply(s,t.slice(1,o-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}();t["a"]=i},7037:function(e,t,n){function i(t){return e.exports=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.exports.__esModule=!0,e.exports["default"]=e.exports,i(t)}n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0"),e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},7058:function(e,t,n){"use strict";e.exports=r;var i=n("3ca2");function r(e){if(!(this instanceof r))return new r(e);i.call(this,e)}n("3fb5")(r,i),r.prototype._transform=function(e,t,n){n(null,e)}},7061:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new i(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return i.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return i.isBefore(this,e)}static isBefore(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return i.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){let n=0|e.lineNumber,i=0|t.lineNumber;if(n===i){let n=0|e.column,i=0|t.column;return n-i}return n-i}clone(){return new i(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new i(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"===typeof e.lineNumber&&"number"===typeof e.column}}},7082:function(e,t,n){"use strict";n.r(t);var i=n("e8e3"),r=n("2504"),o=n("fe45"),s=n("a666"),a=n("b2cc"),l=n("5717"),c=n("3170"),u=n("6a89"),h=n("c101"),d=n("b707"),f=n("a40b"),p=n("84df"),g=n("09db"),m=n("dff7"),v=n("9e74"),b=n("4fc3"),y=n("0a0f"),_=n("fdcc"),w=n("b539"),C=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},S=function(e,t){return function(n,i){t(n,i,e)}},x=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let O=class{constructor(e,t){this._workerService=t,this._callOnDispose=new s["b"],this._callOnModel=new s["b"],this._editor=e,this._callOnDispose.add(e.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(e.onDidChangeModel(()=>this._update())),this._callOnDispose.add(e.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(d["x"].onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){if(this._callOnModel.clear(),!this._editor.getOption(46))return;if(!this._editor.hasModel())return;const e=this._editor.getModel(),[t]=d["x"].ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;let n=new c["b"];for(let i of t.autoFormatTriggerCharacters)n.add(i.charCodeAt(0));this._callOnModel.add(this._editor.onDidType(e=>{let t=e.charCodeAt(e.length-1);n.has(t)&&this._trigger(String.fromCharCode(t))}))}_trigger(e){if(!this._editor.hasModel())return;if(this._editor.getSelections().length>1)return;const t=this._editor.getModel(),n=this._editor.getPosition();let r=!1;const o=this._editor.onDidChangeModelContent(e=>{if(e.isFlush)return r=!0,void o.dispose();for(let t=0,i=e.changes.length;t<i;t++){const i=e.changes[t];if(i.range.endLineNumber<=n.lineNumber)return r=!0,void o.dispose()}});Object(p["e"])(this._workerService,t,n,e,t.getFormattingOptions()).then(e=>{o.dispose(),r||Object(i["n"])(e)&&(g["a"].execute(this._editor,e,!0),Object(p["b"])(e))},e=>{throw o.dispose(),e})}};O.ID="editor.contrib.autoFormat",O=C([S(1,f["a"])],O);let k=class{constructor(e,t){this.editor=e,this._instantiationService=t,this._callOnDispose=new s["b"],this._callOnModel=new s["b"],this._callOnDispose.add(e.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(e.onDidChangeModel(()=>this._update())),this._callOnDispose.add(e.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(d["j"].onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(45)&&this.editor.hasModel()&&d["j"].has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste(({range:e})=>this._trigger(e)))}_trigger(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(p["c"],this.editor,e,2,w["b"].None,r["a"].None).catch(_["e"]))}};k.ID="editor.contrib.formatOnPaste",k=C([S(1,y["a"])],k);class L extends a["b"]{constructor(){super({id:"editor.action.formatDocument",label:m["a"]("formatDocument.label","Format Document"),alias:"Format Document",precondition:b["a"].and(h["a"].notInCompositeEditor,h["a"].writable,h["a"].hasDocumentFormattingProvider),kbOpts:{kbExpr:h["a"].editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}run(e,t){return x(this,void 0,void 0,(function*(){if(t.hasModel()){const n=e.get(y["a"]),i=e.get(w["a"]);yield i.showWhile(n.invokeFunction(p["d"],t,1,w["b"].None,r["a"].None),250)}}))}}class E extends a["b"]{constructor(){super({id:"editor.action.formatSelection",label:m["a"]("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:b["a"].and(h["a"].writable,h["a"].hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:h["a"].editorTextFocus,primary:Object(o["a"])(2089,2084),weight:100},contextMenuOpts:{when:h["a"].hasNonEmptySelection,group:"1_modification",order:1.31}})}run(e,t){return x(this,void 0,void 0,(function*(){if(!t.hasModel())return;const n=e.get(y["a"]),i=t.getModel(),o=t.getSelections().map(e=>e.isEmpty()?new u["a"](e.startLineNumber,1,e.startLineNumber,i.getLineMaxColumn(e.startLineNumber)):e),s=e.get(w["a"]);yield s.showWhile(n.invokeFunction(p["c"],t,o,1,w["b"].None,r["a"].None),250)}))}}Object(a["l"])(O.ID,O),Object(a["l"])(k.ID,k),Object(a["j"])(L),Object(a["j"])(E),v["a"].registerCommand("editor.action.format",e=>x(void 0,void 0,void 0,(function*(){const t=e.get(l["a"]).getFocusedCodeEditor();if(!t||!t.hasModel())return;const n=e.get(v["b"]);t.getSelection().isEmpty()?yield n.executeCommand("editor.action.formatDocument"):yield n.executeCommand("editor.action.formatSelection")})))},"708a":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("2e5d");class r{static whitespaceVisibleColumn(e,t,n){const r=e.length;let o=0,s=-1,a=-1;for(let l=0;l<r;l++){if(l===t)return[s,a,o];o%n===0&&(s=l,a=o);const r=e.charCodeAt(l);switch(r){case 32:o+=1;break;case 9:o=i["a"].nextRenderTabStop(o,n);break;default:return[-1,-1,-1]}}return t===r?[s,a,o]:[-1,-1,-1]}static atomicPosition(e,t,n,o){const s=e.length,[a,l,c]=r.whitespaceVisibleColumn(e,t,n);if(-1===c)return-1;let u;switch(o){case 0:u=!0;break;case 1:u=!1;break;case 2:if(c%n===0)return t;u=c%n<=n/2;break}if(u){if(-1===a)return-1;let t=l;for(let r=a;r<s;++r){if(t===l+n)return a;const o=e.charCodeAt(r);switch(o){case 32:t+=1;break;case 9:t=i["a"].nextRenderTabStop(t,n);break;default:return-1}}return t===l+n?a:-1}const h=i["a"].nextRenderTabStop(c,n);let d=c;for(let r=t;r<s;r++){if(d===h)return r;const t=e.charCodeAt(r);switch(t){case 32:d+=1;break;case 9:d=i["a"].nextRenderTabStop(d,n);break;default:return-1}}return d===h?s:-1}}},"70c3":function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return w}));n("ba77");var i=n("a666"),r=n("30db"),o=n("a60f"),s=n("308f"),a=n("11f7"),l=n("e32d"),c=n("5fe7"),u=n("6424"),h=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};let d=!1;var f;(function(e){e["North"]="north",e["South"]="south",e["East"]="east",e["West"]="west"})(f||(f={}));let p=4;const g=new s["b"];let m=300;const v=new s["b"];class b{constructor(){this.disposables=new i["b"]}get onPointerMove(){return this.disposables.add(new l["a"](window,"mousemove")).event}get onPointerUp(){return this.disposables.add(new l["a"](window,"mouseup")).event}dispose(){this.disposables.dispose()}}h([u["a"]],b.prototype,"onPointerMove",null),h([u["a"]],b.prototype,"onPointerUp",null);class y{constructor(e){this.el=e,this.disposables=new i["b"]}get onPointerMove(){return this.disposables.add(new l["a"](this.el,o["a"].Change)).event}get onPointerUp(){return this.disposables.add(new l["a"](this.el,o["a"].End)).event}dispose(){this.disposables.dispose()}}h([u["a"]],y.prototype,"onPointerMove",null),h([u["a"]],y.prototype,"onPointerUp",null);class _{constructor(e){this.factory=e}get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}dispose(){}}h([u["a"]],_.prototype,"onPointerMove",null),h([u["a"]],_.prototype,"onPointerUp",null);class w extends i["a"]{constructor(e,t,n){super(),this.hoverDelay=m,this.hoverDelayer=this._register(new c["a"](this.hoverDelay)),this._state=3,this._onDidEnablementChange=this._register(new s["b"]),this.onDidEnablementChange=this._onDidEnablementChange.event,this._onDidStart=this._register(new s["b"]),this.onDidStart=this._onDidStart.event,this._onDidChange=this._register(new s["b"]),this.onDidChange=this._onDidChange.event,this._onDidReset=this._register(new s["b"]),this.onDidReset=this._onDidReset.event,this._onDidEnd=this._register(new s["b"]),this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.orthogonalStartSashDisposables=this._register(new i["b"]),this.orthogonalStartDragHandleDisposables=this._register(new i["b"]),this.orthogonalEndSashDisposables=this._register(new i["b"]),this.orthogonalEndDragHandleDisposables=this._register(new i["b"]),this.el=Object(a["q"])(e,Object(a["a"])(".monaco-sash")),n.orthogonalEdge&&this.el.classList.add("orthogonal-edge-"+n.orthogonalEdge),r["f"]&&this.el.classList.add("mac");const u=this._register(new l["a"](this.el,"mousedown")).event;this._register(u(e=>this.onPointerStart(e,new b),this));const h=this._register(new l["a"](this.el,"dblclick")).event;this._register(h(this.onPointerDoublePress,this));const f=this._register(new l["a"](this.el,"mouseenter")).event;this._register(f(()=>w.onMouseEnter(this)));const _=this._register(new l["a"](this.el,"mouseleave")).event;this._register(_(()=>w.onMouseLeave(this))),this._register(o["b"].addTarget(this.el));const C=s["c"].map(this._register(new l["a"](this.el,o["a"].Start)).event,e=>{var t;return Object.assign(Object.assign({},e),{target:null!==(t=e.initialTarget)&&void 0!==t?t:null})});this._register(C(e=>this.onPointerStart(e,new y(this.el)),this));const S=this._register(new l["a"](this.el,o["a"].Tap)).event,x=s["c"].map(s["c"].filter(s["c"].debounce(S,(e,t)=>{var n;return{event:t,count:(null!==(n=null===e||void 0===e?void 0:e.count)&&void 0!==n?n:0)+1}},250),({count:e})=>2===e),({event:e})=>{var t;return Object.assign(Object.assign({},e),{target:null!==(t=e.initialTarget)&&void 0!==t?t:null})});this._register(x(this.onPointerDoublePress,this)),"number"===typeof n.size?(this.size=n.size,0===n.orientation?this.el.style.width=this.size+"px":this.el.style.height=this.size+"px"):(this.size=p,this._register(g.event(e=>{this.size=e,this.layout()}))),this._register(v.event(e=>this.hoverDelay=e)),this.hidden=!1,this.layoutProvider=t,this.orthogonalStartSash=n.orthogonalStartSash,this.orthogonalEndSash=n.orthogonalEndSash,this.orientation=n.orientation||0,1===this.orientation?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",d),this.layout()}get state(){return this._state}set state(e){this._state!==e&&(this.el.classList.toggle("disabled",0===e),this.el.classList.toggle("minimum",1===e),this.el.classList.toggle("maximum",2===e),this._state=e,this._onDidEnablementChange.fire(e))}get orthogonalStartSash(){return this._orthogonalStartSash}set orthogonalStartSash(e){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),e){const t=t=>{this.orthogonalStartDragHandleDisposables.clear(),0!==t&&(this._orthogonalStartDragHandle=Object(a["q"])(this.el,Object(a["a"])(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add(Object(i["i"])(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(new l["a"](this._orthogonalStartDragHandle,"mouseenter")).event(()=>w.onMouseEnter(e),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new l["a"](this._orthogonalStartDragHandle,"mouseleave")).event(()=>w.onMouseLeave(e),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(e.onDidEnablementChange(t,this)),t(e.state)}this._orthogonalStartSash=e}get orthogonalEndSash(){return this._orthogonalEndSash}set orthogonalEndSash(e){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),e){const t=t=>{this.orthogonalEndDragHandleDisposables.clear(),0!==t&&(this._orthogonalEndDragHandle=Object(a["q"])(this.el,Object(a["a"])(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add(Object(i["i"])(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(new l["a"](this._orthogonalEndDragHandle,"mouseenter")).event(()=>w.onMouseEnter(e),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new l["a"](this._orthogonalEndDragHandle,"mouseleave")).event(()=>w.onMouseLeave(e),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(e.onDidEnablementChange(t,this)),t(e.state)}this._orthogonalEndSash=e}onPointerStart(e,t){a["c"].stop(e);let n=!1;if(!e.__orthogonalSashEvent){const i=this.getOrthogonalSash(e);i&&(n=!0,e.__orthogonalSashEvent=!0,i.onPointerStart(e,new _(t)))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onPointerStart(e,new _(t))),!this.state)return;const o=Object(a["E"])("iframe");for(const i of o)i.style.pointerEvents="none";const s=e.pageX,l=e.pageY,c=e.altKey,u={startX:s,currentX:s,startY:l,currentY:l,altKey:c};this.el.classList.add("active"),this._onDidStart.fire(u);const h=Object(a["w"])(this.el),d=()=>{let e="";e=n?"all-scroll":1===this.orientation?1===this.state?"s-resize":2===this.state?"n-resize":r["f"]?"row-resize":"ns-resize":1===this.state?"e-resize":2===this.state?"w-resize":r["f"]?"col-resize":"ew-resize",h.textContent=`* { cursor: ${e} !important; }`},f=new i["b"];d(),n||this.onDidEnablementChange(d,null,f);const p=e=>{a["c"].stop(e,!1);const t={startX:s,currentX:e.pageX,startY:l,currentY:e.pageY,altKey:c};this._onDidChange.fire(t)},g=e=>{a["c"].stop(e,!1),this.el.removeChild(h),this.el.classList.remove("active"),this._onDidEnd.fire(),f.dispose();for(const t of o)t.style.pointerEvents="auto"};t.onPointerMove(p,null,f),t.onPointerUp(g,null,f),f.add(t)}onPointerDoublePress(e){const t=this.getOrthogonalSash(e);t&&t._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(e,t=!1){e.el.classList.contains("active")?(e.hoverDelayer.cancel(),e.el.classList.add("hover")):e.hoverDelayer.trigger(()=>e.el.classList.add("hover"),e.hoverDelay).then(void 0,()=>{}),!t&&e.linkedSash&&w.onMouseEnter(e.linkedSash,!0)}static onMouseLeave(e,t=!1){e.hoverDelayer.cancel(),e.el.classList.remove("hover"),!t&&e.linkedSash&&w.onMouseLeave(e.linkedSash,!0)}clearSashHoverState(){w.onMouseLeave(this)}layout(){if(0===this.orientation){const e=this.layoutProvider;this.el.style.left=e.getVerticalSashLeft(this)-this.size/2+"px",e.getVerticalSashTop&&(this.el.style.top=e.getVerticalSashTop(this)+"px"),e.getVerticalSashHeight&&(this.el.style.height=e.getVerticalSashHeight(this)+"px")}else{const e=this.layoutProvider;this.el.style.top=e.getHorizontalSashTop(this)-this.size/2+"px",e.getHorizontalSashLeft&&(this.el.style.left=e.getHorizontalSashLeft(this)+"px"),e.getHorizontalSashWidth&&(this.el.style.width=e.getHorizontalSashWidth(this)+"px")}}hide(){this.hidden=!0,this.el.style.display="none",this.el.setAttribute("aria-hidden","true")}getOrthogonalSash(e){if(e.target&&e.target instanceof HTMLElement)return e.target.classList.contains("orthogonal-drag-handle")?e.target.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash:void 0}dispose(){super.dispose(),this.el.remove()}}},"70cb":function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var i=n("308f"),r=n("a666"),o=n("3742"),s=n("d093"),a=n("2837"),l=n("045b");class c{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(e=>new a["c"](e)):e.brackets?this._autoClosingPairs=e.brackets.map(e=>new a["c"]({open:e[0],close:e[1]})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const t=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new a["c"]({open:t.open,close:t.close||""}))}this._autoCloseBefore="string"===typeof e.autoCloseBefore?e.autoCloseBefore:c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(){return this._autoCloseBefore}static shouldAutoClosePair(e,t,n){if(0===t.getTokenCount())return!0;const i=t.findTokenIndexAtOffset(n-2),r=t.getStandardTokenType(i);return e.isOK(r)}getSurroundingPairs(){return this._surroundingPairs}}c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=";:.,=}])> \n\t";var u=n("1080");class h{constructor(e){this._richEditBrackets=e}getElectricCharacters(){let e=[];if(this._richEditBrackets)for(const t of this._richEditBrackets.brackets)for(const n of t.close){const t=n.charAt(n.length-1);e.push(t)}return e=e.filter((e,t,n)=>n.indexOf(e)===t),e}onElectricCharacter(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;const i=t.findTokenIndexAtOffset(n-1);if(Object(l["b"])(t.getStandardTokenType(i)))return null;const r=this._richEditBrackets.reversedRegex,o=t.getLineContent().substring(0,n-1)+e,s=u["a"].findPrevBracketInRange(r,1,o,0,o.length);if(!s)return null;const a=o.substring(s.startColumn-1,s.endColumn-1).toLowerCase(),c=this._richEditBrackets.textIsOpenBracket[a];if(c)return null;const h=t.getActualLineContentBefore(s.startColumn-1);return/^\s*$/.test(h)?{matchOpenBracket:a}:null}}function d(e){return e.global&&(e.lastIndex=0),!0}class f{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&d(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&d(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&d(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&d(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t}}var p=n("fdcc");class g{constructor(e){e=e||{},e.brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(e=>{const t=g._createOpenBracketRegExp(e[0]),n=g._createCloseBracketRegExp(e[1]);t&&n&&this._brackets.push({open:e[0],openRegExp:t,close:e[1],closeRegExp:n})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,t,n,i){if(e>=3)for(let r=0,o=this._regExpRules.length;r<o;r++){let e=this._regExpRules[r];const o=[{reg:e.beforeText,text:n},{reg:e.afterText,text:i},{reg:e.previousLineText,text:t}].every(e=>!e.reg||(e.reg.lastIndex=0,e.reg.test(e.text)));if(o)return e.action}if(e>=2&&n.length>0&&i.length>0)for(let r=0,o=this._brackets.length;r<o;r++){let e=this._brackets[r];if(e.openRegExp.test(n)&&e.closeRegExp.test(i))return{indentAction:a["b"].IndentOutdent}}if(e>=2&&n.length>0)for(let r=0,o=this._brackets.length;r<o;r++){let e=this._brackets[r];if(e.openRegExp.test(n))return{indentAction:a["b"].Indent}}return null}static _createOpenBracketRegExp(e){let t=o["u"](e);return/\B/.test(t.charAt(0))||(t="\\b"+t),t+="\\s*$",g._safeRegExp(t)}static _createCloseBracketRegExp(e){let t=o["u"](e);return/\B/.test(t.charAt(t.length-1))||(t+="\\b"),t="^\\s*"+t,g._safeRegExp(t)}static _safeRegExp(e){try{return new RegExp(e)}catch(t){return Object(p["e"])(t),null}}}class m{constructor(e,t){this._languageIdentifier=e,this._brackets=null,this._electricCharacter=null,this._conf=t,this._onEnterSupport=this._conf.brackets||this._conf.indentationRules||this._conf.onEnterRules?new g(this._conf):null,this.comments=m._handleComments(this._conf),this.characterPair=new c(this._conf),this.wordDefinition=this._conf.wordPattern||s["a"],this.indentationRules=this._conf.indentationRules,this._conf.indentationRules?this.indentRulesSupport=new f(this._conf.indentationRules):this.indentRulesSupport=null,this.foldingRules=this._conf.folding||{}}get brackets(){return!this._brackets&&this._conf.brackets&&(this._brackets=new u["b"](this._languageIdentifier,this._conf.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new h(this.brackets)),this._electricCharacter}onEnter(e,t,n,i){return this._onEnterSupport?this._onEnterSupport.onEnter(e,t,n,i):null}static _handleComments(e){let t=e.comments;if(!t)return null;let n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){let[e,i]=t.blockComment;n.blockCommentStartToken=e,n.blockCommentEndToken=i}return n}}class v{constructor(e){this.languageIdentifier=e}}class b{constructor(e,t,n){this.configuration=e,this.priority=t,this.order=n}static cmp(e,t){return e.priority===t.priority?e.order-t.order:e.priority-t.priority}}class y{constructor(e){this.languageIdentifier=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,t){const n=new b(e,t,++this._order);return this._entries.push(n),this._resolved=null,Object(r["i"])(()=>{for(let e=0;e<this._entries.length;e++)if(this._entries[e]===n){this._entries.splice(e,1),this._resolved=null;break}})}getRichEditSupport(){if(!this._resolved){const e=this._resolve();e&&(this._resolved=new m(this.languageIdentifier,e))}return this._resolved}_resolve(){if(0===this._entries.length)return null;this._entries.sort(b.cmp);const e={};for(const t of this._entries){const n=t.configuration;e.comments=n.comments||e.comments,e.brackets=n.brackets||e.brackets,e.wordPattern=n.wordPattern||e.wordPattern,e.indentationRules=n.indentationRules||e.indentationRules,e.onEnterRules=n.onEnterRules||e.onEnterRules,e.autoClosingPairs=n.autoClosingPairs||e.autoClosingPairs,e.surroundingPairs=n.surroundingPairs||e.surroundingPairs,e.autoCloseBefore=n.autoCloseBefore||e.autoCloseBefore,e.folding=n.folding||e.folding,e.__electricCharacterSupport=n.__electricCharacterSupport||e.__electricCharacterSupport}return e}}class _{constructor(){this._entries2=new Map,this._onDidChange=new i["b"],this.onDidChange=this._onDidChange.event}register(e,t,n=0){let i=this._entries2.get(e.id);i||(i=new y(e),this._entries2.set(e.id,i));const o=i.register(t,n);return this._onDidChange.fire(new v(e)),Object(r["i"])(()=>{o.dispose(),this._onDidChange.fire(new v(e))})}_getRichEditSupport(e){const t=this._entries2.get(e);return t?t.getRichEditSupport():null}getIndentationRules(e){const t=this._getRichEditSupport(e);return t&&t.indentationRules||null}_getElectricCharacterSupport(e){let t=this._getRichEditSupport(e);return t&&t.electricCharacter||null}getElectricCharacters(e){let t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]}onElectricCharacter(e,t,n){let i=Object(l["a"])(t,n-1),r=this._getElectricCharacterSupport(i.languageId);return r?r.onElectricCharacter(e,i,n-i.firstCharOffset):null}getComments(e){let t=this._getRichEditSupport(e);return t&&t.comments||null}_getCharacterPairSupport(e){let t=this._getRichEditSupport(e);return t&&t.characterPair||null}getAutoClosingPairs(e){const t=this._getCharacterPairSupport(e);return new a["a"](t?t.getAutoClosingPairs():[])}getAutoCloseBeforeSet(e){let t=this._getCharacterPairSupport(e);return t?t.getAutoCloseBeforeSet():c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED}getSurroundingPairs(e){let t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]}shouldAutoClosePair(e,t,n){const i=Object(l["a"])(t,n-1);return c.shouldAutoClosePair(e,i,n-i.firstCharOffset)}getWordDefinition(e){let t=this._getRichEditSupport(e);return t?Object(s["c"])(t.wordDefinition||null):Object(s["c"])(null)}getFoldingRules(e){let t=this._getRichEditSupport(e);return t?t.foldingRules:{}}getIndentRulesSupport(e){let t=this._getRichEditSupport(e);return t&&t.indentRulesSupport||null}getPrecedingValidLine(e,t,n){let i=e.getLanguageIdAtPosition(t,0);if(t>1){let r,o=-1;for(r=t-1;r>=1;r--){if(e.getLanguageIdAtPosition(r,0)!==i)return o;let t=e.getLineContent(r);if(!n.shouldIgnore(t)&&!/^\s+$/.test(t)&&""!==t)return r;o=r}}return-1}getInheritIndentForLine(e,t,n,i=!0){if(e<4)return null;const r=this.getIndentRulesSupport(t.getLanguageIdentifier().id);if(!r)return null;if(n<=1)return{indentation:"",action:null};const s=this.getPrecedingValidLine(t,n,r);if(s<0)return null;if(s<1)return{indentation:"",action:null};const l=t.getLineContent(s);if(r.shouldIncrease(l)||r.shouldIndentNextLine(l))return{indentation:o["y"](l),action:a["b"].Indent,line:s};if(r.shouldDecrease(l))return{indentation:o["y"](l),action:null,line:s};{if(1===s)return{indentation:o["y"](t.getLineContent(s)),action:null,line:s};const e=s-1,n=r.getIndentMetadata(t.getLineContent(e));if(!(3&n)&&4&n){let n=0;for(let i=e-1;i>0;i--)if(!r.shouldIndentNextLine(t.getLineContent(i))){n=i;break}return{indentation:o["y"](t.getLineContent(n+1)),action:null,line:n+1}}if(i)return{indentation:o["y"](t.getLineContent(s)),action:null,line:s};for(let i=s;i>0;i--){const e=t.getLineContent(i);if(r.shouldIncrease(e))return{indentation:o["y"](e),action:a["b"].Indent,line:i};if(r.shouldIndentNextLine(e)){let e=0;for(let n=i-1;n>0;n--)if(!r.shouldIndentNextLine(t.getLineContent(i))){e=n;break}return{indentation:o["y"](t.getLineContent(e+1)),action:null,line:e+1}}if(r.shouldDecrease(e))return{indentation:o["y"](e),action:null,line:i}}return{indentation:o["y"](t.getLineContent(1)),action:null,line:1}}}getGoodIndentForLine(e,t,n,i,r){if(e<4)return null;const s=this._getRichEditSupport(n);if(!s)return null;const l=this.getIndentRulesSupport(n);if(!l)return null;const c=this.getInheritIndentForLine(e,t,i),u=t.getLineContent(i);if(c){const n=c.line;if(void 0!==n){const i=s.onEnter(e,"",t.getLineContent(n),"");if(i){let e=o["y"](t.getLineContent(n));return i.removeText&&(e=e.substring(0,e.length-i.removeText)),i.indentAction===a["b"].Indent||i.indentAction===a["b"].IndentOutdent?e=r.shiftIndent(e):i.indentAction===a["b"].Outdent&&(e=r.unshiftIndent(e)),l.shouldDecrease(u)&&(e=r.unshiftIndent(e)),i.appendText&&(e+=i.appendText),o["y"](e)}}return l.shouldDecrease(u)?c.action===a["b"].Indent?c.indentation:r.unshiftIndent(c.indentation):c.action===a["b"].Indent?r.shiftIndent(c.indentation):c.indentation}return null}getIndentForEnter(e,t,n,i){if(e<4)return null;t.forceTokenization(n.startLineNumber);const r=t.getLineTokens(n.startLineNumber),s=Object(l["a"])(r,n.startColumn-1),c=s.getLineContent();let u,h,d=!1;if(s.firstCharOffset>0&&r.getLanguageId(0)!==s.languageId?(d=!0,u=c.substr(0,n.startColumn-1-s.firstCharOffset)):u=r.getLineContent().substring(0,n.startColumn-1),n.isEmpty())h=c.substr(n.startColumn-1-s.firstCharOffset);else{const e=this.getScopedLineTokens(t,n.endLineNumber,n.endColumn);h=e.getLineContent().substr(n.endColumn-1-s.firstCharOffset)}const f=this.getIndentRulesSupport(s.languageId);if(!f)return null;const p=u,g=o["y"](u),m={getLineTokens:e=>t.getLineTokens(e),getLanguageIdentifier:()=>t.getLanguageIdentifier(),getLanguageIdAtPosition:(e,n)=>t.getLanguageIdAtPosition(e,n),getLineContent:e=>e===n.startLineNumber?p:t.getLineContent(e)},v=o["y"](r.getLineContent()),b=this.getInheritIndentForLine(e,m,n.startLineNumber+1);if(!b){const e=d?v:g;return{beforeEnter:e,afterEnter:e}}let y=d?v:b.indentation;return b.action===a["b"].Indent&&(y=i.shiftIndent(y)),f.shouldDecrease(h)&&(y=i.unshiftIndent(y)),{beforeEnter:d?v:g,afterEnter:y}}getIndentActionForType(e,t,n,i,r){if(e<4)return null;const o=this.getScopedLineTokens(t,n.startLineNumber,n.startColumn);if(o.firstCharOffset)return null;const s=this.getIndentRulesSupport(o.languageId);if(!s)return null;const l=o.getLineContent(),c=l.substr(0,n.startColumn-1-o.firstCharOffset);let u;if(n.isEmpty())u=l.substr(n.startColumn-1-o.firstCharOffset);else{const e=this.getScopedLineTokens(t,n.endLineNumber,n.endColumn);u=e.getLineContent().substr(n.endColumn-1-o.firstCharOffset)}if(!s.shouldDecrease(c+u)&&s.shouldDecrease(c+i+u)){const i=this.getInheritIndentForLine(e,t,n.startLineNumber,!1);if(!i)return null;let o=i.indentation;return i.action!==a["b"].Indent&&(o=r.unshiftIndent(o)),o}return null}getIndentMetadata(e,t){const n=this.getIndentRulesSupport(e.getLanguageIdentifier().id);return n?t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null}getEnterAction(e,t,n){const i=this.getScopedLineTokens(t,n.startLineNumber,n.startColumn),r=this._getRichEditSupport(i.languageId);if(!r)return null;const o=i.getLineContent(),s=o.substr(0,n.startColumn-1-i.firstCharOffset);let l;if(n.isEmpty())l=o.substr(n.startColumn-1-i.firstCharOffset);else{const e=this.getScopedLineTokens(t,n.endLineNumber,n.endColumn);l=e.getLineContent().substr(n.endColumn-1-i.firstCharOffset)}let c="";if(n.startLineNumber>1&&0===i.firstCharOffset){const e=this.getScopedLineTokens(t,n.startLineNumber-1);e.languageId===i.languageId&&(c=e.getLineContent())}const u=r.onEnter(e,c,s,l);if(!u)return null;const h=u.indentAction;let d=u.appendText;const f=u.removeText||0;d?h===a["b"].Indent&&(d="\t"+d):d=h===a["b"].Indent||h===a["b"].IndentOutdent?"\t":"";let p=this.getIndentationAtPosition(t,n.startLineNumber,n.startColumn);return f&&(p=p.substring(0,p.length-f)),{indentAction:h,appendText:d,removeText:f,indentation:p}}getIndentationAtPosition(e,t,n){const i=e.getLineContent(t);let r=o["y"](i);return r.length>n-1&&(r=r.substring(0,n-1)),r}getScopedLineTokens(e,t,n){e.forceTokenization(t);const i=e.getLineTokens(t),r="undefined"===typeof n?e.getLineMaxColumn(t)-1:n-1;return Object(l["a"])(i,r)}getBracketsSupport(e){const t=this._getRichEditSupport(e);return t&&t.brackets||null}}const w=new _},"70f5":function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var i=n("e8e3"),r=n("2504"),o=n("fdcc"),s=n("4035"),a=n("6a89"),l=n("b707"),c=n("258a"),u=n("6a5d");class h{remove(){this.parent&&this.parent.children.delete(this.id)}static findId(e,t){let n;"string"===typeof e?n=`${t.id}/${e}`:(n=`${t.id}/${e.name}`,void 0!==t.children.get(n)&&(n=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let i=n;for(let r=0;void 0!==t.children.get(i);r++)i=`${n}_${r}`;return i}static empty(e){return 0===e.children.size}}class d extends h{constructor(e,t,n){super(),this.id=e,this.parent=t,this.symbol=n,this.children=new Map}}class f extends h{constructor(e,t,n,i){super(),this.id=e,this.parent=t,this.label=n,this.order=i,this.children=new Map}}class p extends h{constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}static create(e,t){let n=this._keys.for(e,!0),i=p._requests.get(n);if(!i){let t=new r["b"];i={promiseCnt:0,source:t,promise:p._create(e,t.token),model:void 0},p._requests.set(n,i);const o=Date.now();i.promise.then(()=>{this._requestDurations.update(e,Date.now()-o)})}return i.model?Promise.resolve(i.model):(i.promiseCnt+=1,t.onCancellationRequested(()=>{0===--i.promiseCnt&&(i.source.cancel(),p._requests.delete(n))}),new Promise((e,t)=>{i.promise.then(t=>{i.model=t,e(t)},e=>{p._requests.delete(n),t(e)})}))}static _create(e,t){const n=new r["b"](t),s=new p(e.uri),a=l["m"].ordered(e),c=a.map((t,i)=>{var r;let a=h.findId("provider_"+i,s),l=new f(a,s,null!==(r=t.displayName)&&void 0!==r?r:"Unknown Outline Provider",i);return Promise.resolve(t.provideDocumentSymbols(e,n.token)).then(e=>{for(const t of e||[])p._makeOutlineElement(t,l);return l},e=>(Object(o["f"])(e),l)).then(e=>{h.empty(e)?e.remove():s._groups.set(a,e)})}),u=l["m"].onDidChange(()=>{const t=l["m"].ordered(e);Object(i["h"])(t,a)||n.cancel()});return Promise.all(c).then(()=>n.token.isCancellationRequested&&!t.isCancellationRequested?p._create(e,t):s._compact()).finally(()=>{u.dispose()})}static _makeOutlineElement(e,t){let n=h.findId(e,t),i=new d(n,t,e);if(e.children)for(const r of e.children)p._makeOutlineElement(r,i);t.children.set(i.id,i)}_compact(){let e=0;for(const[t,n]of this._groups)0===n.children.size?this._groups.delete(t):e+=1;if(1!==e)this.children=this._groups;else{let e=c["a"].first(this._groups.values());for(let[,t]of e.children)t.parent=this,this.children.set(t.id,t)}return this}getTopLevelSymbols(){const e=[];for(const t of this.children.values())t instanceof d?e.push(t.symbol):e.push(...c["a"].map(t.children.values(),e=>e.symbol));return e.sort((e,t)=>a["a"].compareRangesUsingStarts(e.range,t.range))}asListOfDocumentSymbols(){const e=this.getTopLevelSymbols(),t=[];return p._flattenDocumentSymbols(t,e,""),t.sort((e,t)=>a["a"].compareRangesUsingStarts(e.range,t.range))}static _flattenDocumentSymbols(e,t,n){for(const i of t)e.push({kind:i.kind,tags:i.tags,name:i.name,detail:i.detail,containerName:i.containerName||n,range:i.range,selectionRange:i.selectionRange,children:void 0}),i.children&&p._flattenDocumentSymbols(e,i.children,i.name)}}p._requestDurations=new u["b"](l["m"],350),p._requests=new s["a"](9,.75),p._keys=new class{constructor(){this._counter=1,this._data=new WeakMap}for(e,t){return`${e.id}/${t?e.getVersionId():""}/${this._hash(l["m"].all(e))}`}_hash(e){let t="";for(const n of e){let e=this._data.get(n);"undefined"===typeof e&&(e=this._counter++,this._data.set(n,e)),t+=e}return t}}},7135:function(e,t,n){(function(t){const i=n("b289"),r=t.allocUnsafe(0),o=t.from([0]),s=n("f0cb"),a=n("966d").nextTick,l=n("34eb")("mqtt-packet:writeToStream"),c=s.cache,u=s.generateNumber,h=s.generateCache,d=s.genBufVariableByteInt,f=s.generate4ByteBuffer;let p=A,g=!0;function m(e,t,n){switch(l("generate called"),t.cork&&(t.cork(),a(v,t)),g&&(g=!1,h()),l("generate: packet.cmd: %s",e.cmd),e.cmd){case"connect":return b(e,t,n);case"connack":return y(e,t,n);case"publish":return _(e,t,n);case"puback":case"pubrec":case"pubrel":case"pubcomp":return w(e,t,n);case"subscribe":return C(e,t,n);case"suback":return S(e,t,n);case"unsubscribe":return x(e,t,n);case"unsuback":return O(e,t,n);case"pingreq":case"pingresp":return k(e,t,n);case"disconnect":return L(e,t,n);case"auth":return E(e,t,n);default:return t.emit("error",new Error("Unknown command")),!1}}function v(e){e.uncork()}function b(e,n,r){const o=e||{},s=o.protocolId||"MQTT";let a=o.protocolVersion||4;const l=o.will;let c=o.clean;const u=o.keepalive||0,h=o.clientId||"",d=o.username,f=o.password,g=o.properties;void 0===c&&(c=!0);let m=0;if(!s||"string"!==typeof s&&!t.isBuffer(s))return n.emit("error",new Error("Invalid protocolId")),!1;if(m+=s.length+2,3!==a&&4!==a&&5!==a)return n.emit("error",new Error("Invalid protocol version")),!1;if(m+=1,("string"===typeof h||t.isBuffer(h))&&(h||a>=4)&&(h||c))m+=t.byteLength(h)+2;else{if(a<4)return n.emit("error",new Error("clientId must be supplied before 3.1.1")),!1;if(1*c===0)return n.emit("error",new Error("clientId must be given if cleanSession set to 0")),!1}if("number"!==typeof u||u<0||u>65535||u%1!==0)return n.emit("error",new Error("Invalid keepalive")),!1;if(m+=2,m+=1,5===a){var v=R(n,g);if(!v)return!1;m+=v.length}if(l){if("object"!==typeof l)return n.emit("error",new Error("Invalid will")),!1;if(!l.topic||"string"!==typeof l.topic)return n.emit("error",new Error("Invalid will topic")),!1;if(m+=t.byteLength(l.topic)+2,m+=2,l.payload){if(!(l.payload.length>=0))return n.emit("error",new Error("Invalid will payload")),!1;"string"===typeof l.payload?m+=t.byteLength(l.payload):m+=l.payload.length}var b={};if(5===a){if(b=R(n,l.properties),!b)return!1;m+=b.length}}let y=!1;if(null!=d){if(!z(d))return n.emit("error",new Error("Invalid username")),!1;y=!0,m+=t.byteLength(d)+2}if(null!=f){if(!y)return n.emit("error",new Error("Username is required to use password")),!1;if(!z(f))return n.emit("error",new Error("Invalid password")),!1;m+=V(f)+2}n.write(i.CONNECT_HEADER),I(n,m),j(n,s),o.bridgeMode&&(a+=128),n.write(131===a?i.VERSION131:132===a?i.VERSION132:4===a?i.VERSION4:5===a?i.VERSION5:i.VERSION3);let _=0;return _|=null!=d?i.USERNAME_MASK:0,_|=null!=f?i.PASSWORD_MASK:0,_|=l&&l.retain?i.WILL_RETAIN_MASK:0,_|=l&&l.qos?l.qos<<i.WILL_QOS_SHIFT:0,_|=l?i.WILL_FLAG_MASK:0,_|=c?i.CLEAN_SESSION_MASK:0,n.write(t.from([_])),p(n,u),5===a&&v.write(),j(n,h),l&&(5===a&&b.write(),M(n,l.topic),j(n,l.payload)),null!=d&&j(n,d),null!=f&&j(n,f),!0}function y(e,n,r){const s=r?r.protocolVersion:4,a=e||{},l=5===s?a.reasonCode:a.returnCode,c=a.properties;let u=2;if("number"!==typeof l)return n.emit("error",new Error("Invalid return code")),!1;let h=null;if(5===s){if(h=R(n,c),!h)return!1;u+=h.length}return n.write(i.CONNACK_HEADER),I(n,u),n.write(a.sessionPresent?i.SESSIONPRESENT_HEADER:o),n.write(t.from([l])),null!=h&&h.write(),!0}function _(e,n,o){l("publish: packet: %o",e);const s=o?o.protocolVersion:4,a=e||{},c=a.qos||0,u=a.retain?i.RETAIN_MASK:0,h=a.topic,d=a.payload||r,f=a.messageId,g=a.properties;let m=0;if("string"===typeof h)m+=t.byteLength(h)+2;else{if(!t.isBuffer(h))return n.emit("error",new Error("Invalid topic")),!1;m+=h.length+2}if(t.isBuffer(d)?m+=d.length:m+=t.byteLength(d),c&&"number"!==typeof f)return n.emit("error",new Error("Invalid messageId")),!1;c&&(m+=2);let v=null;if(5===s){if(v=R(n,g),!v)return!1;m+=v.length}return n.write(i.PUBLISH_HEADER[c][a.dup?1:0][u?1:0]),I(n,m),p(n,V(h)),n.write(h),c>0&&p(n,f),null!=v&&v.write(),l("publish: payload: %o",d),n.write(d)}function w(e,n,r){const o=r?r.protocolVersion:4,s=e||{},a=s.cmd||"puback",l=s.messageId,c=s.dup&&"pubrel"===a?i.DUP_MASK:0;let u=0;const h=s.reasonCode,d=s.properties;let f=5===o?3:2;if("pubrel"===a&&(u=1),"number"!==typeof l)return n.emit("error",new Error("Invalid messageId")),!1;let g=null;if(5===o&&"object"===typeof d){if(g=F(n,d,r,f),!g)return!1;f+=g.length}return n.write(i.ACKS[a][u][c][0]),I(n,f),p(n,l),5===o&&n.write(t.from([h])),null!==g&&g.write(),!0}function C(e,n,r){l("subscribe: packet: ");const o=r?r.protocolVersion:4,s=e||{},a=s.dup?i.DUP_MASK:0,c=s.messageId,u=s.subscriptions,h=s.properties;let d=0;if("number"!==typeof c)return n.emit("error",new Error("Invalid messageId")),!1;d+=2;let f=null;if(5===o){if(f=R(n,h),!f)return!1;d+=f.length}if("object"!==typeof u||!u.length)return n.emit("error",new Error("Invalid subscriptions")),!1;for(let i=0;i<u.length;i+=1){const e=u[i].topic,r=u[i].qos;if("string"!==typeof e)return n.emit("error",new Error("Invalid subscriptions - invalid topic")),!1;if("number"!==typeof r)return n.emit("error",new Error("Invalid subscriptions - invalid qos")),!1;if(5===o){const e=u[i].nl||!1;if("boolean"!==typeof e)return n.emit("error",new Error("Invalid subscriptions - invalid No Local")),!1;const t=u[i].rap||!1;if("boolean"!==typeof t)return n.emit("error",new Error("Invalid subscriptions - invalid Retain as Published")),!1;const r=u[i].rh||0;if("number"!==typeof r||r>2)return n.emit("error",new Error("Invalid subscriptions - invalid Retain Handling")),!1}d+=t.byteLength(e)+2+1}l("subscribe: writing to stream: %o",i.SUBSCRIBE_HEADER),n.write(i.SUBSCRIBE_HEADER[1][a?1:0][0]),I(n,d),p(n,c),null!==f&&f.write();let g=!0;for(const l of u){const e=l.topic,r=l.qos,s=+l.nl,a=+l.rap,c=l.rh;let u;M(n,e),u=i.SUBSCRIBE_OPTIONS_QOS[r],5===o&&(u|=s?i.SUBSCRIBE_OPTIONS_NL:0,u|=a?i.SUBSCRIBE_OPTIONS_RAP:0,u|=c?i.SUBSCRIBE_OPTIONS_RH[c]:0),g=n.write(t.from([u]))}return g}function S(e,n,r){const o=r?r.protocolVersion:4,s=e||{},a=s.messageId,l=s.granted,c=s.properties;let u=0;if("number"!==typeof a)return n.emit("error",new Error("Invalid messageId")),!1;if(u+=2,"object"!==typeof l||!l.length)return n.emit("error",new Error("Invalid qos vector")),!1;for(let t=0;t<l.length;t+=1){if("number"!==typeof l[t])return n.emit("error",new Error("Invalid qos vector")),!1;u+=1}let h=null;if(5===o){if(h=F(n,c,r,u),!h)return!1;u+=h.length}return n.write(i.SUBACK_HEADER),I(n,u),p(n,a),null!==h&&h.write(),n.write(t.from(l))}function x(e,n,r){const o=r?r.protocolVersion:4,s=e||{},a=s.messageId,l=s.dup?i.DUP_MASK:0,c=s.unsubscriptions,u=s.properties;let h=0;if("number"!==typeof a)return n.emit("error",new Error("Invalid messageId")),!1;if(h+=2,"object"!==typeof c||!c.length)return n.emit("error",new Error("Invalid unsubscriptions")),!1;for(let i=0;i<c.length;i+=1){if("string"!==typeof c[i])return n.emit("error",new Error("Invalid unsubscriptions")),!1;h+=t.byteLength(c[i])+2}let d=null;if(5===o){if(d=R(n,u),!d)return!1;h+=d.length}n.write(i.UNSUBSCRIBE_HEADER[1][l?1:0][0]),I(n,h),p(n,a),null!==d&&d.write();let f=!0;for(let t=0;t<c.length;t++)f=M(n,c[t]);return f}function O(e,n,r){const o=r?r.protocolVersion:4,s=e||{},a=s.messageId,l=s.dup?i.DUP_MASK:0,c=s.granted,u=s.properties,h=s.cmd,d=0;let f=2;if("number"!==typeof a)return n.emit("error",new Error("Invalid messageId")),!1;if(5===o){if("object"!==typeof c||!c.length)return n.emit("error",new Error("Invalid qos vector")),!1;for(let e=0;e<c.length;e+=1){if("number"!==typeof c[e])return n.emit("error",new Error("Invalid qos vector")),!1;f+=1}}let g=null;if(5===o){if(g=F(n,u,r,f),!g)return!1;f+=g.length}return n.write(i.ACKS[h][d][l][0]),I(n,f),p(n,a),null!==g&&g.write(),5===o&&n.write(t.from(c)),!0}function k(e,t,n){return t.write(i.EMPTY[e.cmd])}function L(e,n,r){const o=r?r.protocolVersion:4,s=e||{},a=s.reasonCode,l=s.properties;let c=5===o?1:0,u=null;if(5===o){if(u=F(n,l,r,c),!u)return!1;c+=u.length}return n.write(t.from([i.codes.disconnect<<4])),I(n,c),5===o&&n.write(t.from([a])),null!==u&&u.write(),!0}function E(e,n,r){const o=r?r.protocolVersion:4,s=e||{},a=s.reasonCode,l=s.properties;let c=5===o?1:0;5!==o&&n.emit("error",new Error("Invalid mqtt version for auth packet"));const u=F(n,l,r,c);return!!u&&(c+=u.length,n.write(t.from([i.codes.auth<<4])),I(n,c),n.write(t.from([a])),null!==u&&u.write(),!0)}Object.defineProperty(m,"cacheNumbers",{get(){return p===A},set(e){e?(c&&0!==Object.keys(c).length||(g=!0),p=A):(g=!1,p=N)}});const D={};function I(e,t){if(t>i.VARBYTEINT_MAX)return e.emit("error",new Error("Invalid variable byte integer: "+t)),!1;let n=D[t];return n||(n=d(t),t<16384&&(D[t]=n)),l("writeVarByteInt: writing to stream: %o",n),e.write(n)}function M(e,n){const i=t.byteLength(n);return p(e,i),l("writeString: %s",n),e.write(n,"utf8")}function T(e,t,n){M(e,t),M(e,n)}function A(e,t){return l("writeNumberCached: number: %d",t),l("writeNumberCached: %o",c[t]),e.write(c[t])}function N(e,t){const n=u(t);return l("writeNumberGenerated: %o",n),e.write(n)}function P(e,t){const n=f(t);return l("write4ByteNumber: %o",n),e.write(n)}function j(e,t){"string"===typeof t?M(e,t):t?(p(e,t.length),e.write(t)):p(e,0)}function R(e,n){if("object"!==typeof n||null!=n.length)return{length:1,write(){W(e,{},0)}};let r=0;function o(n,r){const o=i.propertiesTypes[n];let s=0;switch(o){case"byte":if("boolean"!==typeof r)return e.emit("error",new Error(`Invalid ${n}: ${r}`)),!1;s+=2;break;case"int8":if("number"!==typeof r||r<0||r>255)return e.emit("error",new Error(`Invalid ${n}: ${r}`)),!1;s+=2;break;case"binary":if(r&&null===r)return e.emit("error",new Error(`Invalid ${n}: ${r}`)),!1;s+=1+t.byteLength(r)+2;break;case"int16":if("number"!==typeof r||r<0||r>65535)return e.emit("error",new Error(`Invalid ${n}: ${r}`)),!1;s+=3;break;case"int32":if("number"!==typeof r||r<0||r>4294967295)return e.emit("error",new Error(`Invalid ${n}: ${r}`)),!1;s+=5;break;case"var":if("number"!==typeof r||r<0||r>268435455)return e.emit("error",new Error(`Invalid ${n}: ${r}`)),!1;s+=1+t.byteLength(d(r));break;case"string":if("string"!==typeof r)return e.emit("error",new Error(`Invalid ${n}: ${r}`)),!1;s+=3+t.byteLength(r.toString());break;case"pair":if("object"!==typeof r)return e.emit("error",new Error(`Invalid ${n}: ${r}`)),!1;s+=Object.getOwnPropertyNames(r).reduce((e,n)=>{const i=r[n];return Array.isArray(i)?e+=i.reduce((e,i)=>(e+=3+t.byteLength(n.toString())+2+t.byteLength(i.toString()),e),0):e+=3+t.byteLength(n.toString())+2+t.byteLength(r[n].toString()),e},0);break;default:return e.emit("error",new Error(`Invalid property ${n}: ${r}`)),!1}return s}if(n)for(const t in n){let e=0,i=0;const s=n[t];if(Array.isArray(s))for(let n=0;n<s.length;n++){if(i=o(t,s[n]),!i)return!1;e+=i}else{if(i=o(t,s),!i)return!1;e=i}if(!e)return!1;r+=e}const s=t.byteLength(d(r));return{length:s+r,write(){W(e,n,r)}}}function F(e,t,n,i){const r=["reasonString","userProperties"],o=n&&n.properties&&n.properties.maximumPacketSize?n.properties.maximumPacketSize:0;let s=R(e,t);if(o)while(i+s.length>o){const n=r.shift();if(!n||!t[n])return!1;delete t[n],s=R(e,t)}return s}function B(e,n,r){const o=i.propertiesTypes[n];switch(o){case"byte":e.write(t.from([i.properties[n]])),e.write(t.from([+r]));break;case"int8":e.write(t.from([i.properties[n]])),e.write(t.from([r]));break;case"binary":e.write(t.from([i.properties[n]])),j(e,r);break;case"int16":e.write(t.from([i.properties[n]])),p(e,r);break;case"int32":e.write(t.from([i.properties[n]])),P(e,r);break;case"var":e.write(t.from([i.properties[n]])),I(e,r);break;case"string":e.write(t.from([i.properties[n]])),M(e,r);break;case"pair":Object.getOwnPropertyNames(r).forEach(o=>{const s=r[o];Array.isArray(s)?s.forEach(r=>{e.write(t.from([i.properties[n]])),T(e,o.toString(),r.toString())}):(e.write(t.from([i.properties[n]])),T(e,o.toString(),s.toString()))});break;default:return e.emit("error",new Error(`Invalid property ${n} value: ${r}`)),!1}}function W(e,t,n){I(e,n);for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&null!==t[i]){const n=t[i];if(Array.isArray(n))for(let t=0;t<n.length;t++)B(e,i,n[t]);else B(e,i,n)}}function V(e){return e?e instanceof t?e.length:t.byteLength(e):0}function z(e){return"string"===typeof e||e instanceof t}e.exports=m}).call(this,n("1c35").Buffer)},7149:function(e,t,n){"use strict";var i=n("23e7"),r=n("d066"),o=n("c430"),s=n("d256"),a=n("4738").CONSTRUCTOR,l=n("cdf9"),c=r("Promise"),u=o&&!a;i({target:"Promise",stat:!0,forced:o||a},{resolve:function(e){return l(u&&this===c?s:this,e)}})},7156:function(e,t,n){var i=n("1626"),r=n("861d"),o=n("d2bb");e.exports=function(e,t,n){var s,a;return o&&i(s=t.constructor)&&s!==n&&r(a=s.prototype)&&a!==n.prototype&&o(e,a),e}},"71c9":function(e,t,n){"use strict";var i=n("00ce"),r=i("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(o){r=!1}e.exports=r},"722f9":function(e,t,n){},7234:function(e,t){e.exports=function(e){return null===e||void 0===e}},7257:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"javascript",extensions:[".js",".es6",".jsx",".mjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return n.e("chunk-7532b3ea").then(n.bind(null,"ed79"))}})},"725e":function(e,t,n){},"726e":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 o})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return d}));var i=12,r="sans-serif",o=i+"px "+r,s=20,a=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function c(e){var t={};if("undefined"===typeof JSON)return t;for(var n=0;n<e.length;n++){var i=String.fromCharCode(n+32),r=(e.charCodeAt(n)-s)/a;t[i]=r}return t}var u=c(l),h={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var s=h.createCanvas();e=s&&s.getContext("2d")}if(e)return t!==r&&(t=e.font=r||o),e.measureText(n);n=n||"",r=r||o;var a=/((?:\d+)?\.?\d*)px/.exec(r),l=a&&+a[1]||i,c=0;if(r.indexOf("mono")>=0)c=l*n.length;else for(var d=0;d<n.length;d++){var f=u[n[d]];c+=null==f?l:f*l}return{width:c}}}(),loadImage:function(e,t,n){var i=new Image;return i.onload=t,i.onerror=n,i.src=e,i}};function d(e){for(var t in h)e[t]&&(h[t]=e[t])}},"729e":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.pie=p;var r=i(n("9523")),o=i(n("7037")),s=i(n("278c")),a=i(n("448a")),l=n("18ad"),c=n("222a"),u=n("5557"),h=n("becb");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,r["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.series;n||(n=[]);var i=(0,h.initNeedSeries)(n,c.pieConfig,"pie");i=g(i,e),i=m(i,e),i=b(i,e),i=w(i),i=x(i,e),i=k(i),i=E(i),i=D(i),(0,l.doUpdate)({chart:e,series:i,key:"pie",getGraphConfig:P,getStartGraphConfig:j,beforeChange:R}),(0,l.doUpdate)({chart:e,series:i,key:"pieInsideLabel",getGraphConfig:W}),(0,l.doUpdate)({chart:e,series:i,key:"pieOutsideLabelLine",getGraphConfig:H,getStartGraphConfig:U}),(0,l.doUpdate)({chart:e,series:i,key:"pieOutsideLabel",getGraphConfig:K,getStartGraphConfig:G})}function g(e,t){var n=t.render.area;return e.forEach((function(e){var t=e.center;t=t.map((function(e,t){return"number"===typeof e?e:parseInt(e)/100*n[t]})),e.center=t})),e}function m(e,t){var n=Math.min.apply(Math,(0,a["default"])(t.render.area))/2;return e.forEach((function(e){var t=e.radius,i=e.data;t=v(t,n),i.forEach((function(e){var i=e.radius;i||(i=t),i=v(i,n),e.radius=i})),e.radius=t})),e}function v(e,t){return e instanceof Array||(e=[0,e]),e=e.map((function(e){return"number"===typeof e?e:parseInt(e)/100*t})),e}function b(e,t){var n=e.filter((function(e){var t=e.roseType;return t}));return n.forEach((function(e){var t=e.radius,n=e.data,i=e.roseSort,r=_(e),o=(0,a["default"])(n);n=y(n),n.forEach((function(e,n){e.radius[1]=t[1]-r*n})),i?n.reverse():e.data=o,e.roseIncrement=r})),e}function y(e){return e.sort((function(e,t){var n=e.value,i=t.value;return n===i?0:n>i?-1:n<i?1:void 0}))}function _(e){var t=e.radius,n=e.roseIncrement;if("number"===typeof n)return n;if("auto"===n){var i=e.data,r=i.reduce((function(e,t){var n=t.radius;return[].concat((0,a["default"])(e),(0,a["default"])(n))}),[]),o=Math.min.apply(Math,(0,a["default"])(r)),s=Math.max.apply(Math,(0,a["default"])(r));return.6*(s-o)/(i.length-1||1)}return parseInt(n)/100*t[1]}function w(e){return e.forEach((function(e){var t=e.data,n=e.percentToFixed,i=S(t);t.forEach((function(e){var t=e.value;e.percent=t/i*100,e.percentForLabel=C(t/i*100,n)}));var r=(0,h.mulAdd)(t.slice(0,-1).map((function(e){var t=e.percent;return t})));t.slice(-1)[0].percent=100-r,t.slice(-1)[0].percentForLabel=C(100-r,n)})),e}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.toString(),i=n.split("."),r=i[1]||"0",o=r.slice(0,t);return i[1]=o,parseFloat(i.join("."))}function S(e){return(0,h.mulAdd)(e.map((function(e){var t=e.value;return t})))}function x(e){return e.forEach((function(e){var t=e.startAngle,n=e.data;n.forEach((function(e,i){var r=O(n,i),o=(0,s["default"])(r,2),a=o[0],l=o[1];e.startAngle=t+a,e.endAngle=t+l}))})),e}function O(e,t){var n=2*Math.PI,i=e.slice(0,t+1),r=(0,h.mulAdd)(i.map((function(e){var t=e.percent;return t}))),o=e[t].percent,s=r-o;return[n*s/100,n*r/100]}function k(e){return e.forEach((function(e){var t=e.data;t.forEach((function(t){t.insideLabelPos=L(e,t)}))})),e}function L(e,t){var n=e.center,i=t.startAngle,r=t.endAngle,o=(0,s["default"])(t.radius,2),l=o[0],c=o[1],h=(l+c)/2,d=(i+r)/2;return u.getCircleRadianPoint.apply(void 0,(0,a["default"])(n).concat([h,d]))}function E(e){return e.forEach((function(e){var t=e.data,n=e.center;t.forEach((function(e){var t=e.startAngle,i=e.endAngle,r=e.radius,o=(t+i)/2,s=u.getCircleRadianPoint.apply(void 0,(0,a["default"])(n).concat([r[1],o]));e.edgeCenterPos=s}))})),e}function D(e){return e.forEach((function(e){var t=T(e),n=T(e,!1);t=A(t),n=A(n),N(t,e),N(n,e,!1)})),e}function I(e){var t=e.outsideLabel.labelLineBendGap,n=M(e);return"number"!==typeof t&&(t=parseInt(t)/100*n),t+n}function M(e){var t=e.data,n=t.map((function(e){var t=(0,s["default"])(e.radius,2),n=(t[0],t[1]);return n}));return Math.max.apply(Math,(0,a["default"])(n))}function T(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.data,i=e.center,r=i[0];return n.filter((function(e){var n=e.edgeCenterPos,i=n[0];return t?i<=r:i>r}))}function A(e){return e.sort((function(e,t){var n=(0,s["default"])(e.edgeCenterPos,2),i=(n[0],n[1]),r=(0,s["default"])(t.edgeCenterPos,2),o=(r[0],r[1]);return i>o?1:i<o?-1:i===o?0:void 0})),e}function N(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.center,r=t.outsideLabel,o=I(t);e.forEach((function(e){var t=e.edgeCenterPos,s=e.startAngle,l=e.endAngle,c=r.labelLineEndLength,d=(s+l)/2,f=u.getCircleRadianPoint.apply(void 0,(0,a["default"])(i).concat([o,d])),p=(0,a["default"])(f);p[0]+=c*(n?-1:1),e.labelLine=[t,f,p],e.labelLineLength=(0,h.getPolylineLength)(e.labelLine),e.align={textAlign:"left",textBaseline:"middle"},n&&(e.align.textAlign="right")}))}function P(e){var t=e.data,n=e.animationCurve,i=e.animationFrame,r=e.rLevel;return t.map((function(t,o){return{name:"pie",index:r,animationCurve:n,animationFrame:i,shape:F(e,o),style:B(e,o)}}))}function j(e){var t=e.animationDelayGap,n=e.startAnimationCurve,i=P(e);return i.forEach((function(e,i){e.animationCurve=n,e.animationDelay=i*t,e.shape.or=e.shape.ir})),i}function R(e){e.animationDelay=0}function F(e,t){var n=e.center,i=e.data,r=i[t],o=r.radius,s=r.startAngle,a=r.endAngle;return{startAngle:s,endAngle:a,ir:o[0],or:o[1],rx:n[0],ry:n[1]}}function B(e,t){var n=e.pieStyle,i=e.data,r=i[t],o=r.color;return(0,h.deepMerge)({fill:o},n)}function W(e){var t=e.animationCurve,n=e.animationFrame,i=e.data,r=e.rLevel;return i.map((function(i,o){return{name:"text",index:r,visible:e.insideLabel.show,animationCurve:t,animationFrame:n,shape:V(e,o),style:z(e,o)}}))}function V(e,t){var n=e.insideLabel,i=e.data,r=n.formatter,s=i[t],a=(0,o["default"])(r),l="";return"string"===a&&(l=r.replace("{name}",s.name),l=l.replace("{percent}",s.percentForLabel),l=l.replace("{value}",s.value)),"function"===a&&(l=r(s)),{content:l,position:s.insideLabelPos}}function z(e,t){var n=e.insideLabel.style;return n}function H(e){var t=e.animationCurve,n=e.animationFrame,i=e.data,r=e.rLevel;return i.map((function(i,o){return{name:"polyline",index:r,visible:e.outsideLabel.show,animationCurve:t,animationFrame:n,shape:q(e,o),style:$(e,o)}}))}function U(e){var t=e.data,n=H(e);return n.forEach((function(e,n){e.style.lineDash=[0,t[n].labelLineLength]})),n}function q(e,t){var n=e.data,i=n[t];return{points:i.labelLine}}function $(e,t){var n=e.outsideLabel,i=e.data,r=n.labelLineStyle,o=i[t].color;return(0,h.deepMerge)({stroke:o,lineDash:[i[t].labelLineLength,0]},r)}function K(e){var t=e.animationCurve,n=e.animationFrame,i=e.data,r=e.rLevel;return i.map((function(i,o){return{name:"text",index:r,visible:e.outsideLabel.show,animationCurve:t,animationFrame:n,shape:Y(e,o),style:Z(e,o)}}))}function G(e){var t=e.data,n=K(e);return n.forEach((function(e,n){e.shape.position=t[n].labelLine[1]})),n}function Y(e,t){var n=e.outsideLabel,i=e.data,r=n.formatter,s=i[t],a=s.labelLine,l=s.name,c=s.percentForLabel,u=s.value,h=(0,o["default"])(r),d="";return"string"===h&&(d=r.replace("{name}",l),d=d.replace("{percent}",c),d=d.replace("{value}",u)),"function"===h&&(d=r(i[t])),{content:d,position:a[2]}}function Z(e,t){var n=e.outsideLabel,i=e.data,r=i[t],o=r.color,s=r.align,a=n.style;return(0,h.deepMerge)(f({fill:o},s),a)}},"72a7":function(e,t,n){"use strict";n.d(t,"e",(function(){return D})),n.d(t,"f",(function(){return I})),n.d(t,"a",(function(){return T})),n.d(t,"h",(function(){return P})),n.d(t,"g",(function(){return j})),n.d(t,"d",(function(){return B})),n.d(t,"b",(function(){return W})),n.d(t,"c",(function(){return Z}));n("e2b8");var i=n("a666"),r=n("ef8e"),o=n("e8e3"),s=n("6424"),a=n("30db"),l=n("a60f"),c=n("b835"),u=n("308f"),h=n("e32d");class d extends Error{constructor(e,t){super(`ListError [${e}] ${t}`)}}var f=n("7de1"),p=n("ceb8"),g=n("aa3d");class m{constructor(e){this.spliceables=e}splice(e,t,n){this.spliceables.forEach(i=>i.splice(e,t,n))}}var v,b=n("49d9"),y=n("7e93"),_=n("3813"),w=n("11f7"),C=n("5fe7"),S=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},x=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class O{constructor(e){this.trait=e,this.renderedElements=[]}get templateId(){return"template:"+this.trait.trait}renderTemplate(e){return e}renderElement(e,t,n){const i=this.renderedElements.findIndex(e=>e.templateData===n);if(i>=0){const e=this.renderedElements[i];this.trait.unrender(n),e.index=t}else{const e={index:t,templateData:n};this.renderedElements.push(e)}this.trait.renderIndex(t,n)}splice(e,t,n){const i=[];for(const r of this.renderedElements)r.index<e?i.push(r):r.index>=e+t&&i.push({index:r.index+n-t,templateData:r.templateData});this.renderedElements=i}renderIndexes(e){for(const{index:t,templateData:n}of this.renderedElements)e.indexOf(t)>-1&&this.trait.renderIndex(t,n)}disposeTemplate(e){const t=this.renderedElements.findIndex(t=>t.templateData===e);t<0||this.renderedElements.splice(t,1)}}class k{constructor(e){this._trait=e,this.length=0,this.indexes=[],this.sortedIndexes=[],this._onChange=new u["b"],this.onChange=this._onChange.event}get trait(){return this._trait}get renderer(){return new O(this)}splice(e,t,n){var i;t=Math.max(0,Math.min(t,this.length-e));const r=n.length-t,o=e+t,s=[...this.sortedIndexes.filter(t=>t<e),...n.map((t,n)=>t?n+e:-1).filter(e=>-1!==e),...this.sortedIndexes.filter(e=>e>=o).map(e=>e+r)],a=this.length+r;if(this.sortedIndexes.length>0&&0===s.length&&a>0){const t=null!==(i=this.sortedIndexes.find(t=>t>=e))&&void 0!==i?i:a-1;s.push(Math.min(t,a-1))}this.renderer.splice(e,t,n.length),this._set(s,s),this.length=a}renderIndex(e,t){t.classList.toggle(this._trait,this.contains(e))}unrender(e){e.classList.remove(this._trait)}set(e,t){return this._set(e,[...e].sort($),t)}_set(e,t,n){const i=this.indexes,r=this.sortedIndexes;this.indexes=e,this.sortedIndexes=t;const o=U(r,e);return this.renderer.renderIndexes(o),this._onChange.fire({indexes:e,browserEvent:n}),i}get(){return this.indexes}contains(e){return Object(o["d"])(this.sortedIndexes,e,$)>=0}dispose(){Object(i["f"])(this._onChange)}}S([s["a"]],k.prototype,"renderer",null);class L extends k{constructor(e){super("selected"),this.setAriaSelected=e}renderIndex(e,t){super.renderIndex(e,t),this.setAriaSelected&&(this.contains(e)?t.setAttribute("aria-selected","true"):t.setAttribute("aria-selected","false"))}}class E{constructor(e,t,n){this.trait=e,this.view=t,this.identityProvider=n}splice(e,t,n){if(!this.identityProvider)return this.trait.splice(e,t,n.map(()=>!1));const i=this.trait.get().map(e=>this.identityProvider.getId(this.view.element(e)).toString()),r=n.map(e=>i.indexOf(this.identityProvider.getId(e).toString())>-1);this.trait.splice(e,t,r)}}function D(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}function I(e){return!!e.classList.contains("monaco-editor")||!e.classList.contains("monaco-list")&&(!!e.parentElement&&I(e.parentElement))}class M{constructor(e,t,n){this.list=e,this.view=t,this.disposables=new i["b"],this.multipleSelectionDisposables=new i["b"],this.onKeyDown.filter(e=>3===e.keyCode).on(this.onEnter,this,this.disposables),this.onKeyDown.filter(e=>16===e.keyCode).on(this.onUpArrow,this,this.disposables),this.onKeyDown.filter(e=>18===e.keyCode).on(this.onDownArrow,this,this.disposables),this.onKeyDown.filter(e=>11===e.keyCode).on(this.onPageUpArrow,this,this.disposables),this.onKeyDown.filter(e=>12===e.keyCode).on(this.onPageDownArrow,this,this.disposables),this.onKeyDown.filter(e=>9===e.keyCode).on(this.onEscape,this,this.disposables),!1!==n.multipleSelectionSupport&&this.onKeyDown.filter(e=>(a["f"]?e.metaKey:e.ctrlKey)&&31===e.keyCode).on(this.onCtrlA,this,this.multipleSelectionDisposables)}get onKeyDown(){return u["c"].chain(this.disposables.add(new h["a"](this.view.domNode,"keydown")).event).filter(e=>!D(e.target)).map(e=>new c["a"](e))}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionDisposables.clear(),e.multipleSelectionSupport&&this.onKeyDown.filter(e=>(a["f"]?e.metaKey:e.ctrlKey)&&31===e.keyCode).on(this.onCtrlA,this,this.multipleSelectionDisposables))}onEnter(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent)}onUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onPageUpArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onPageDownArrow(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()}onCtrlA(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(Object(o["r"])(this.list.length),e.browserEvent),this.view.domNode.focus()}onEscape(e){this.list.getSelection().length&&(e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}S([s["a"]],M.prototype,"onKeyDown",null),function(e){e[e["Idle"]=0]="Idle",e[e["Typing"]=1]="Typing"}(v||(v={}));const T=new class{mightProducePrintableCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=93&&e.keyCode<=102||e.keyCode>=80&&e.keyCode<=90)}};class A{constructor(e,t,n,r){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=n,this.delegate=r,this.enabled=!1,this.state=v.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new i["b"],this.disposables=new i["b"],this.updateOptions(e.options)}updateOptions(e){const t="undefined"===typeof e.enableKeyboardNavigation||!!e.enableKeyboardNavigation;t?this.enable():this.disable(),"undefined"!==typeof e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation)}enable(){if(this.enabled)return;const e=u["c"].chain(this.enabledDisposables.add(new h["a"](this.view.domNode,"keydown")).event).filter(e=>!D(e.target)).filter(()=>this.automaticKeyboardNavigation||this.triggered).map(e=>new c["a"](e)).filter(e=>this.delegate.mightProducePrintableCharacter(e)).forEach(e=>{e.stopPropagation(),e.preventDefault()}).map(e=>e.browserEvent.key).event,t=u["c"].debounce(e,()=>null,800),n=u["c"].reduce(u["c"].any(e,t),(e,t)=>null===t?null:(e||"")+t);n(this.onInput,this,this.enabledDisposables),t(this.onClear,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var e;const t=this.list.getFocus();if(t.length>0&&t[0]===this.previouslyFocused){const n=null===(e=this.list.options.accessibilityProvider)||void 0===e?void 0:e.getAriaLabel(this.list.element(t[0]));n&&Object(_["a"])(n)}this.previouslyFocused=-1}onInput(e){if(!e)return this.state=v.Idle,void(this.triggered=!1);const t=this.list.getFocus(),n=t.length>0?t[0]:0,i=this.state===v.Idle?1:0;this.state=v.Typing;for(let r=0;r<this.list.length;r++){const t=(n+r+i)%this.list.length,o=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(this.view.element(t)),s=o&&o.toString();if("undefined"===typeof s||Object(y["h"])(e,s))return this.previouslyFocused=n,this.list.setFocus([t]),void this.list.reveal(t)}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class N{constructor(e,t){this.list=e,this.view=t,this.disposables=new i["b"];const n=u["c"].chain(this.disposables.add(new h["a"](t.domNode,"keydown")).event).filter(e=>!D(e.target)).map(e=>new c["a"](e));n.filter(e=>2===e.keyCode&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey).on(this.onTab,this,this.disposables)}onTab(e){if(e.target!==this.view.domNode)return;const t=this.list.getFocus();if(0===t.length)return;const n=this.view.domElement(t[0]);if(!n)return;const i=n.querySelector("[tabIndex]");if(!i||!(i instanceof HTMLElement)||-1===i.tabIndex)return;const r=window.getComputedStyle(i);"hidden"!==r.visibility&&"none"!==r.display&&(e.preventDefault(),e.stopPropagation(),i.focus())}dispose(){this.disposables.dispose()}}function P(e){return a["f"]?e.browserEvent.metaKey:e.browserEvent.ctrlKey}function j(e){return e.browserEvent.shiftKey}function R(e){return e instanceof MouseEvent&&2===e.button}const F={isSelectionSingleChangeEvent:P,isSelectionRangeChangeEvent:j};class B{constructor(e){this.list=e,this.disposables=new i["b"],this._onPointer=new u["b"],this.onPointer=this._onPointer.event,!1!==e.options.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||F),this.mouseSupport="undefined"===typeof e.options.mouseSupport||!!e.options.mouseSupport,this.mouseSupport&&(e.onMouseDown(this.onMouseDown,this,this.disposables),e.onContextMenu(this.onContextMenu,this,this.disposables),e.onMouseDblClick(this.onDoubleClick,this,this.disposables),e.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(l["b"].addTarget(e.getHTMLElement()))),u["c"].any(e.onMouseClick,e.onMouseMiddleClick,e.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(e){void 0!==e.multipleSelectionSupport&&(this.multipleSelectionController=void 0,e.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||F))}isSelectionSingleChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionSingleChangeEvent(e)}isSelectionRangeChangeEvent(e){return!!this.multipleSelectionController&&this.multipleSelectionController.isSelectionRangeChangeEvent(e)}isSelectionChangeEvent(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)}onMouseDown(e){I(e.browserEvent.target)||document.activeElement!==e.browserEvent.target&&this.list.domFocus()}onContextMenu(e){if(I(e.browserEvent.target))return;const t="undefined"===typeof e.index?[]:[e.index];this.list.setFocus(t,e.browserEvent)}onViewPointer(e){if(!this.mouseSupport)return;if(D(e.browserEvent.target)||I(e.browserEvent.target))return;const t=e.index;return"undefined"===typeof t?(this.list.setFocus([],e.browserEvent),this.list.setSelection([],e.browserEvent),void this.list.setAnchor(void 0)):this.isSelectionRangeChangeEvent(e)||this.isSelectionChangeEvent(e)?this.changeSelection(e):(this.list.setFocus([t],e.browserEvent),this.list.setAnchor(t),R(e.browserEvent)||this.list.setSelection([t],e.browserEvent),void this._onPointer.fire(e))}onDoubleClick(e){if(D(e.browserEvent.target)||I(e.browserEvent.target))return;if(this.isSelectionChangeEvent(e))return;const t=this.list.getFocus();this.list.setSelection(t,e.browserEvent)}changeSelection(e){const t=e.index;let n=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(e)){if("undefined"===typeof n){const e=this.list.getFocus()[0];n=null!==e&&void 0!==e?e:t,this.list.setAnchor(n)}const i=Math.min(n,t),r=Math.max(n,t),s=Object(o["r"])(i,r+1),a=this.list.getSelection(),l=H(U(a,[n]),n);if(0===l.length)return;const c=U(s,q(a,l));this.list.setSelection(c,e.browserEvent),this.list.setFocus([t],e.browserEvent)}else if(this.isSelectionSingleChangeEvent(e)){const n=this.list.getSelection(),i=n.filter(e=>e!==t);this.list.setFocus([t]),this.list.setAnchor(t),n.length===i.length?this.list.setSelection([...i,t],e.browserEvent):this.list.setSelection(i,e.browserEvent)}}dispose(){this.disposables.dispose()}}class W{constructor(e,t){this.styleElement=e,this.selectorSuffix=t}style(e){const t=this.selectorSuffix&&"."+this.selectorSuffix,n=[];e.listBackground&&(e.listBackground.isOpaque()?n.push(`.monaco-list${t} .monaco-list-rows { background: ${e.listBackground}; }`):a["f"]||console.warn(`List with id '${this.selectorSuffix}' was styled with a non-opaque background color. This will break sub-pixel antialiasing.`)),e.listFocusBackground&&(n.push(`.monaco-list${t}:focus .monaco-list-row.focused { background-color: ${e.listFocusBackground}; }`),n.push(`.monaco-list${t}:focus .monaco-list-row.focused:hover { background-color: ${e.listFocusBackground}; }`)),e.listFocusForeground&&n.push(`.monaco-list${t}:focus .monaco-list-row.focused { color: ${e.listFocusForeground}; }`),e.listActiveSelectionBackground&&(n.push(`.monaco-list${t}:focus .monaco-list-row.selected { background-color: ${e.listActiveSelectionBackground}; }`),n.push(`.monaco-list${t}:focus .monaco-list-row.selected:hover { background-color: ${e.listActiveSelectionBackground}; }`)),e.listActiveSelectionForeground&&n.push(`.monaco-list${t}:focus .monaco-list-row.selected { color: ${e.listActiveSelectionForeground}; }`),e.listActiveSelectionIconForeground&&n.push(`.monaco-list${t}:focus .monaco-list-row.selected .codicon { color: ${e.listActiveSelectionIconForeground}; }`),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.listInactiveFocusForeground&&(n.push(`.monaco-list${t} .monaco-list-row.focused { color: ${e.listInactiveFocusForeground}; }`),n.push(`.monaco-list${t} .monaco-list-row.focused:hover { color: ${e.listInactiveFocusForeground}; }`)),e.listInactiveSelectionIconForeground&&n.push(`.monaco-list${t} .monaco-list-row.focused .codicon { color: ${e.listInactiveSelectionIconForeground}; }`),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}; }`),e.tableColumnsBorder&&n.push(`\n\t\t\t\t.monaco-table:hover > .monaco-split-view2,\n\t\t\t\t.monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\t\t\tborder-color: ${e.tableColumnsBorder};\n\t\t\t}`),this.styleElement.textContent=n.join("\n")}}const V={listFocusBackground:p["a"].fromHex("#7FB0D0"),listActiveSelectionBackground:p["a"].fromHex("#0E639C"),listActiveSelectionForeground:p["a"].fromHex("#FFFFFF"),listActiveSelectionIconForeground:p["a"].fromHex("#FFFFFF"),listFocusAndSelectionBackground:p["a"].fromHex("#094771"),listFocusAndSelectionForeground:p["a"].fromHex("#FFFFFF"),listInactiveSelectionBackground:p["a"].fromHex("#3F3F46"),listInactiveSelectionIconForeground:p["a"].fromHex("#FFFFFF"),listHoverBackground:p["a"].fromHex("#2A2D2E"),listDropBackground:p["a"].fromHex("#383B3D"),treeIndentGuidesStroke:p["a"].fromHex("#a9a9a9"),tableColumnsBorder:p["a"].fromHex("#cccccc").transparent(.2)},z={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}}};function H(e,t){const n=e.indexOf(t);if(-1===n)return[];const i=[];let r=n-1;while(r>=0&&e[r]===t-(n-r))i.push(e[r--]);i.reverse(),r=n;while(r<e.length&&e[r]===t+(r-n))i.push(e[r++]);return i}function U(e,t){const n=[];let i=0,r=0;while(i<e.length||r<t.length)if(i>=e.length)n.push(t[r++]);else if(r>=t.length)n.push(e[i++]);else{if(e[i]===t[r]){n.push(e[i]),i++,r++;continue}e[i]<t[r]?n.push(e[i++]):n.push(t[r++])}return n}function q(e,t){const n=[];let i=0,r=0;while(i<e.length||r<t.length)if(i>=e.length)n.push(t[r++]);else if(r>=t.length)n.push(e[i++]);else{if(e[i]===t[r]){i++,r++;continue}e[i]<t[r]?n.push(e[i++]):r++}return n}const $=(e,t)=>e-t;class K{constructor(e,t){this._templateId=e,this.renderers=t}get templateId(){return this._templateId}renderTemplate(e){return this.renderers.map(t=>t.renderTemplate(e))}renderElement(e,t,n,i){let r=0;for(const o of this.renderers)o.renderElement(e,t,n[r++],i)}disposeElement(e,t,n,i){let r=0;for(const o of this.renderers)o.disposeElement&&o.disposeElement(e,t,n[r],i),r+=1}disposeTemplate(e){let t=0;for(const n of this.renderers)n.disposeTemplate(e[t++])}}class G{constructor(e){this.accessibilityProvider=e,this.templateId="a18n"}renderTemplate(e){return e}renderElement(e,t,n){const i=this.accessibilityProvider.getAriaLabel(e);i?n.setAttribute("aria-label",i):n.removeAttribute("aria-label");const r=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(e);"number"===typeof r?n.setAttribute("aria-level",""+r):n.removeAttribute("aria-level")}disposeTemplate(e){}}class Y{constructor(e,t){this.list=e,this.dnd=t}getDragElements(e){const t=this.list.getSelectedElements(),n=t.indexOf(e)>-1?t:[e];return n}getDragURI(e){return this.dnd.getDragURI(e)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e,t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(e,t)}onDragOver(e,t,n,i){return this.dnd.onDragOver(e,t,n,i)}onDragLeave(e,t,n,i){var r,o;null===(o=(r=this.dnd).onDragLeave)||void 0===o||o.call(r,e,t,n,i)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}drop(e,t,n,i){this.dnd.drop(e,t,n,i)}}class Z{constructor(e,t,n,r,o=z){var s;this.user=e,this._options=o,this.focus=new k("focused"),this.anchor=new k("anchor"),this.eventBufferer=new u["d"],this._ariaLabel="",this.disposables=new i["b"],this._onDidDispose=new u["b"],this.onDidDispose=this._onDidDispose.event;const a=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?null===(s=this._options.accessibilityProvider)||void 0===s?void 0:s.getWidgetRole():"list";this.selection=new L("listbox"!==a),Object(g["f"])(o,V,!1);const l=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=o.accessibilityProvider,this.accessibilityProvider&&(l.push(new G(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),r=r.map(e=>new K(e.templateId,[...l,e]));const c=Object.assign(Object.assign({},o),{dnd:o.dnd&&new Y(this,o.dnd)});if(this.view=new f["b"](t,n,r,c),this.view.domNode.setAttribute("role",a),o.styleController)this.styleController=o.styleController(this.view.domId);else{const e=Object(w["w"])(this.view.domNode);this.styleController=new W(e,this.view.domId)}if(this.spliceable=new m([new E(this.focus,this.view,o.identityProvider),new E(this.selection,this.view,o.identityProvider),new E(this.anchor,this.view,o.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new N(this,this.view)),("boolean"!==typeof o.keyboardSupport||o.keyboardSupport)&&(this.keyboardController=new M(this,this.view,o),this.disposables.add(this.keyboardController)),o.keyboardNavigationLabelProvider){const e=o.keyboardNavigationDelegate||T;this.typeLabelController=new A(this,this.view,o.keyboardNavigationLabelProvider,e),this.disposables.add(this.typeLabelController)}this.mouseController=this.createMouseController(o),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),!1!==this._options.multipleSelectionSupport&&this.view.domNode.setAttribute("aria-multiselectable","true")}get onDidChangeFocus(){return u["c"].map(this.eventBufferer.wrapEvent(this.focus.onChange),e=>this.toListEvent(e))}get onDidChangeSelection(){return u["c"].map(this.eventBufferer.wrapEvent(this.selection.onChange),e=>this.toListEvent(e))}get domId(){return this.view.domId}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let e=!1;const t=u["c"].chain(this.disposables.add(new h["a"](this.view.domNode,"keydown")).event).map(e=>new c["a"](e)).filter(t=>e=58===t.keyCode||t.shiftKey&&68===t.keyCode).map(h["b"]).filter(()=>!1).event,n=u["c"].chain(this.disposables.add(new h["a"](this.view.domNode,"keyup")).event).forEach(()=>e=!1).map(e=>new c["a"](e)).filter(e=>58===e.keyCode||e.shiftKey&&68===e.keyCode).map(h["b"]).map(({browserEvent:e})=>{const t=this.getFocus(),n=t.length?t[0]:void 0,i="undefined"!==typeof n?this.view.element(n):void 0,r="undefined"!==typeof n?this.view.domElement(n):this.view.domNode;return{index:n,element:i,anchor:r,browserEvent:e}}).event,i=u["c"].chain(this.view.onContextMenu).filter(t=>!e).map(({element:e,index:t,browserEvent:n})=>({element:e,index:t,anchor:{x:n.pageX+1,y:n.pageY},browserEvent:n})).event;return u["c"].any(t,n,i)}get onKeyDown(){return this.disposables.add(new h["a"](this.view.domNode,"keydown")).event}get onDidFocus(){return u["c"].signal(this.disposables.add(new h["a"](this.view.domNode,"focus",!0)).event)}createMouseController(e){return new B(this)}updateOptions(e={}){var t;this._options=Object.assign(Object.assign({},this._options),e),this.typeLabelController&&this.typeLabelController.updateOptions(this._options),void 0!==this._options.multipleSelectionController&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(e),null===(t=this.keyboardController)||void 0===t||t.updateOptions(e),this.view.updateOptions(e)}get options(){return this._options}splice(e,t,n=[]){if(e<0||e>this.view.length)throw new d(this.user,"Invalid start index: "+e);if(t<0)throw new d(this.user,"Invalid delete count: "+t);0===t&&0===n.length||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(e,t,n))}rerender(){this.view.rerender()}element(e){return this.view.element(e)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(e){this.view.setScrollTop(e)}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){this._ariaLabel=e,this.view.domNode.setAttribute("aria-label",e)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(e,t){this.view.layout(e,t)}setSelection(e,t){for(const n of e)if(n<0||n>=this.length)throw new d(this.user,"Invalid index "+n);this.selection.set(e,t)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(e=>this.view.element(e))}setAnchor(e){if("undefined"!==typeof e){if(e<0||e>=this.length)throw new d(this.user,"Invalid index "+e);this.anchor.set([e])}else this.anchor.set([])}getAnchor(){return Object(o["j"])(this.anchor.get(),void 0)}getAnchorElement(){const e=this.getAnchor();return"undefined"===typeof e?void 0:this.element(e)}setFocus(e,t){for(const n of e)if(n<0||n>=this.length)throw new d(this.user,"Invalid index "+n);this.focus.set(e,t)}focusNext(e=1,t=!1,n,i){if(0===this.length)return;const r=this.focus.get(),o=this.findNextIndex(r.length>0?r[0]+e:0,t,i);o>-1&&this.setFocus([o],n)}focusPrevious(e=1,t=!1,n,i){if(0===this.length)return;const r=this.focus.get(),o=this.findPreviousIndex(r.length>0?r[0]-e:0,t,i);o>-1&&this.setFocus([o],n)}focusNextPage(e,t){return x(this,void 0,void 0,(function*(){let n=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);n=0===n?0:n-1;const i=this.view.element(n),r=this.getFocusedElements()[0];if(r!==i){const i=this.findPreviousIndex(n,!1,t);i>-1&&r!==this.view.element(i)?this.setFocus([i],e):this.setFocus([n],e)}else{const i=this.view.getScrollTop();this.view.setScrollTop(i+this.view.renderHeight-this.view.elementHeight(n)),this.view.getScrollTop()!==i&&(this.setFocus([]),yield Object(C["n"])(0),yield this.focusNextPage(e,t))}}))}focusPreviousPage(e,t){return x(this,void 0,void 0,(function*(){let n;const i=this.view.getScrollTop();n=0===i?this.view.indexAt(i):this.view.indexAfter(i-1);const r=this.view.element(n),o=this.getFocusedElements()[0];if(o!==r){const i=this.findNextIndex(n,!1,t);i>-1&&o!==this.view.element(i)?this.setFocus([i],e):this.setFocus([n],e)}else{const n=i;this.view.setScrollTop(i-this.view.renderHeight),this.view.getScrollTop()!==n&&(this.setFocus([]),yield Object(C["n"])(0),yield this.focusPreviousPage(e,t))}}))}focusLast(e,t){if(0===this.length)return;const n=this.findPreviousIndex(this.length-1,!1,t);n>-1&&this.setFocus([n],e)}focusFirst(e,t){this.focusNth(0,e,t)}focusNth(e,t,n){if(0===this.length)return;const i=this.findNextIndex(e,!1,n);i>-1&&this.setFocus([i],t)}findNextIndex(e,t=!1,n){for(let i=0;i<this.length;i++){if(e>=this.length&&!t)return-1;if(e%=this.length,!n||n(this.element(e)))return e;e++}return-1}findPreviousIndex(e,t=!1,n){for(let i=0;i<this.length;i++){if(e<0&&!t)return-1;if(e=(this.length+e%this.length)%this.length,!n||n(this.element(e)))return e;e--}return-1}getFocus(){return this.focus.get()}getFocusedElements(){return this.getFocus().map(e=>this.view.element(e))}reveal(e,t){if(e<0||e>=this.length)throw new d(this.user,"Invalid index "+e);const n=this.view.getScrollTop(),i=this.view.elementTop(e),o=this.view.elementHeight(e);if(Object(r["i"])(t)){const e=o-this.view.renderHeight;this.view.setScrollTop(e*Object(b["b"])(t,0,1)+i)}else{const e=i+o,t=n+this.view.renderHeight;i<n&&e>=t||(i<n||e>=t&&o>=this.view.renderHeight?this.view.setScrollTop(i):e>=t&&this.view.setScrollTop(e-this.view.renderHeight))}}getRelativeTop(e){if(e<0||e>=this.length)throw new d(this.user,"Invalid index "+e);const t=this.view.getScrollTop(),n=this.view.elementTop(e),i=this.view.elementHeight(e);if(n<t||n+i>t+this.view.renderHeight)return null;const r=i-this.view.renderHeight;return Math.abs((t-n)/r)}getHTMLElement(){return this.view.domNode}style(e){this.styleController.style(e)}toListEvent({indexes:e,browserEvent:t}){return{indexes:e,elements:e.map(e=>this.view.element(e)),browserEvent:t}}_onFocusChange(){const e=this.focus.get();this.view.domNode.classList.toggle("element-focused",e.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var e;const t=this.focus.get();if(t.length>0){let n;(null===(e=this.accessibilityProvider)||void 0===e?void 0:e.getActiveDescendantId)&&(n=this.accessibilityProvider.getActiveDescendantId(this.view.element(t[0]))),this.view.domNode.setAttribute("aria-activedescendant",n||this.view.getElementDomId(t[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const e=this.selection.get();this.view.domNode.classList.toggle("selection-none",0===e.length),this.view.domNode.classList.toggle("selection-single",1===e.length),this.view.domNode.classList.toggle("selection-multiple",e.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}S([s["a"]],Z.prototype,"onDidChangeFocus",null),S([s["a"]],Z.prototype,"onDidChangeSelection",null),S([s["a"]],Z.prototype,"onContextMenu",null),S([s["a"]],Z.prototype,"onKeyDown",null),S([s["a"]],Z.prototype,"onDidFocus",null)},"733c":function(e,t,n){},7367:function(e,t,n){"use strict";n.r(t),n.d(t,"htmlLanguageService",(function(){return f})),n.d(t,"htmlDefaults",(function(){return p})),n.d(t,"handlebarLanguageService",(function(){return g})),n.d(t,"handlebarDefaults",(function(){return m})),n.d(t,"razorLanguageService",(function(){return v})),n.d(t,"razorDefaults",(function(){return b})),n.d(t,"registerHTMLLanguageService",(function(){return _}));n("33f9");var i=n("3502"),r=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))},o=function(e,t){var n,i,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(s)try{if(n=1,i&&(r=2&o[0]?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(r=s.trys,!(r=r.length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},s=function(){function e(e,t,n){this._onDidChange=new i["Emitter"],this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),e.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},e.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},e}(),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"},l={format:a,suggest:{},data:{useDefaultDataProvider:!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",h="handlebars",d="razor",f=_(u,l,c(u)),p=f.defaults,g=_(h,l,c(h)),m=g.defaults,v=_(d,l,c(d)),b=v.defaults;function y(){return n.e("chunk-1e2736cd").then(n.bind(null,"fa5b"))}function _(e,t,n){var a=this;void 0===t&&(t=l),void 0===n&&(n=c(e));var u,h=new s(e,t,n),d=i["languages"].onLanguage(e,(function(){return r(a,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,y()];case 1:return u=e.sent().setupMode(h),[2]}}))}))}));return{defaults:h,dispose:function(){d.dispose(),null===u||void 0===u||u.dispose(),u=void 0}}}i["languages"].html={htmlDefaults:p,razorDefaults:b,handlebarDefaults:m,htmlLanguageService:f,handlebarLanguageService:g,razorLanguageService:v,registerHTMLLanguageService:_}},"73d3":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return n.e("chunk-2d0bff92").then(n.bind(null,"4099"))}})},7416:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var i=n("3742");class r{constructor(e,t,n,i){this.startColumn=e,this.endColumn=t,this.className=n,this.type=i,this._lineDecorationBrand=void 0}static _equals(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type}static equalsArr(e,t){const n=e.length,i=t.length;if(n!==i)return!1;for(let o=0;o<n;o++)if(!r._equals(e[o],t[o]))return!1;return!0}static extractWrapped(e,t,n){if(0===e.length)return e;const i=t+1,o=n+1,s=n-t,a=[];let l=0;for(const c of e)c.endColumn<=i||c.startColumn>=o||(a[l++]=new r(Math.max(1,c.startColumn-i+1),Math.min(s+1,c.endColumn-i+1),c.className,c.type));return a}static filter(e,t,n,i){if(0===e.length)return[];let o=[],s=0;for(let a=0,l=e.length;a<l;a++){const l=e[a],c=l.range;if(c.endLineNumber<t||c.startLineNumber>t)continue;if(c.isEmpty()&&(0===l.type||3===l.type))continue;const u=c.startLineNumber===t?c.startColumn:n,h=c.endLineNumber===t?c.endColumn:i;o[s++]=new r(u,h,l.inlineClassName,l.type)}return o}static _typeCompare(e,t){const n=[2,0,1,3];return n[e]-n[t]}static compare(e,t){if(e.startColumn!==t.startColumn)return e.startColumn-t.startColumn;if(e.endColumn!==t.endColumn)return e.endColumn-t.endColumn;const n=r._typeCompare(e.type,t.type);return 0!==n?n:e.className!==t.className?e.className<t.className?-1:1:0}}class o{constructor(e,t,n,i){this.startOffset=e,this.endOffset=t,this.className=n,this.metadata=i}}class s{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}static _metadata(e){let t=0;for(let n=0,i=e.length;n<i;n++)t|=e[n];return t}consumeLowerThan(e,t,n){while(this.count>0&&this.stopOffsets[0]<e){let e=0;while(e+1<this.count&&this.stopOffsets[e]===this.stopOffsets[e+1])e++;n.push(new o(t,this.stopOffsets[e],this.classNames.join(" "),s._metadata(this.metadata))),t=this.stopOffsets[e]+1,this.stopOffsets.splice(0,e+1),this.classNames.splice(0,e+1),this.metadata.splice(0,e+1),this.count-=e+1}return this.count>0&&t<e&&(n.push(new o(t,e-1,this.classNames.join(" "),s._metadata(this.metadata))),t=e),t}insert(e,t,n){if(0===this.count||this.stopOffsets[this.count-1]<=e)this.stopOffsets.push(e),this.classNames.push(t),this.metadata.push(n);else for(let i=0;i<this.count;i++)if(this.stopOffsets[i]>=e){this.stopOffsets.splice(i,0,e),this.classNames.splice(i,0,t),this.metadata.splice(i,0,n);break}this.count++}}class a{static normalize(e,t){if(0===t.length)return[];let n=[];const r=new s;let o=0;for(let s=0,a=t.length;s<a;s++){const a=t[s];let l=a.startColumn,c=a.endColumn;const u=a.className,h=1===a.type?2:2===a.type?4:0;if(l>1){const t=e.charCodeAt(l-2);i["F"](t)&&l--}if(c>1){const t=e.charCodeAt(c-2);i["F"](t)&&c--}const d=l-1,f=c-2;o=r.consumeLowerThan(d,o,n),0===r.count&&(o=d),r.insert(f,u,h)}return r.consumeLowerThan(1073741824,o,n),n}}},7418:function(e,t){t.f=Object.getOwnPropertySymbols},7457:function(e,t,n){},"747f":function(e,t,n){"use strict";n.r(t),n.d(t,"DuplicateSelectionAction",(function(){return I})),n.d(t,"AbstractSortLinesAction",(function(){return N})),n.d(t,"SortLinesAscendingAction",(function(){return P})),n.d(t,"SortLinesDescendingAction",(function(){return j})),n.d(t,"TrimTrailingWhitespaceAction",(function(){return R})),n.d(t,"DeleteLinesAction",(function(){return F})),n.d(t,"IndentLinesAction",(function(){return B})),n.d(t,"InsertLineBeforeAction",(function(){return V})),n.d(t,"InsertLineAfterAction",(function(){return z})),n.d(t,"AbstractDeleteAllToBoundaryAction",(function(){return H})),n.d(t,"DeleteAllLeftAction",(function(){return U})),n.d(t,"DeleteAllRightAction",(function(){return q})),n.d(t,"JoinLinesAction",(function(){return $})),n.d(t,"TransposeAction",(function(){return K})),n.d(t,"AbstractCaseAction",(function(){return G})),n.d(t,"UpperCaseAction",(function(){return Y})),n.d(t,"LowerCaseAction",(function(){return Z})),n.d(t,"TitleCaseAction",(function(){return X})),n.d(t,"SnakeCaseAction",(function(){return J}));var i=n("dff7"),r=n("fe45"),o=n("d585"),s=n("b2cc"),a=n("2c29"),l=n("3742"),c=n("d3f4"),u=n("6a89");class h{constructor(e,t){this._selection=e,this._cursors=t,this._selectionId=null}getEditOperations(e,t){let n=d(e,this._cursors);for(let i=0,r=n.length;i<r;i++){let e=n[i];t.addEditOperation(e.range,e.text)}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}function d(e,t){t.sort((e,t)=>e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber);for(let s=t.length-2;s>=0;s--)t[s].lineNumber===t[s+1].lineNumber&&t.splice(s,1);let n=[],i=0,r=0,o=t.length;for(let s=1,a=e.getLineCount();s<=a;s++){let a=e.getLineContent(s),h=a.length+1,d=0;if(r<o&&t[r].lineNumber===s&&(d=t[r].column,r++,d===h))continue;if(0===a.length)continue;let f=l["J"](a),p=0;if(-1===f)p=1;else{if(f===a.length-1)continue;p=f+2}p=Math.max(d,p),n[i++]=c["a"].delete(new u["a"](s,p,s,h))}return n}var f=n("191f"),p=n("7061"),g=n("8025"),m=n("c101");class v{constructor(e,t,n){this._selection=e,this._isCopyingDown=t,this._noop=n||!1,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(e,t){let 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)));let i=[];for(let o=n.startLineNumber;o<=n.endLineNumber;o++)i.push(e.getLineContent(o));const r=i.join("\n");""===r&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._noop?t.addEditOperation(new u["a"](n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber+1,1),n.endLineNumber===e.getLineCount()?"":"\n"):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()}computeCursorState(e,t){let n=t.getTrackedSelection(this._selectionId);if(0!==this._startLineNumberDelta||0!==this._endLineNumberDelta){let e=n.startLineNumber,t=n.startColumn,i=n.endLineNumber,r=n.endColumn;0!==this._startLineNumberDelta&&(e+=this._startLineNumberDelta,t=1),0!==this._endLineNumberDelta&&(i+=this._endLineNumberDelta,r=1),n=g["a"].createWithDirection(e,t,i,r,this._selectionDirection)}return n}}var b=n("ccde"),y=n("2837"),_=n("70cb"),w=n("580d");class C{constructor(e,t,n){this._selection=e,this._isMovingDown=t,this._autoIndent=n,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){let n=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===n)return void(this._selectionId=t.trackSelection(this._selection));if(!this._isMovingDown&&1===this._selection.startLineNumber)return void(this._selectionId=t.trackSelection(this._selection));this._moveEndPositionDown=!1;let i=this._selection;i.startLineNumber<i.endLineNumber&&1===i.endColumn&&(this._moveEndPositionDown=!0,i=i.setEndPosition(i.endLineNumber-1,e.getLineMaxColumn(i.endLineNumber-1)));const{tabSize:r,indentSize:o,insertSpaces:s}=e.getOptions();let a=this.buildIndentConverter(r,o,s),c={getLineTokens:t=>e.getLineTokens(t),getLanguageIdentifier:()=>e.getLanguageIdentifier(),getLanguageIdAtPosition:(t,n)=>e.getLanguageIdAtPosition(t,n),getLineContent:null};if(i.startLineNumber===i.endLineNumber&&1===e.getLineMaxColumn(i.startLineNumber)){let n=i.startLineNumber,r=this._isMovingDown?n+1:n-1;1===e.getLineMaxColumn(r)?t.addEditOperation(new u["a"](1,1,1,1),null):(t.addEditOperation(new u["a"](n,1,n,1),e.getLineContent(r)),t.addEditOperation(new u["a"](r,1,r,e.getLineMaxColumn(r)),null)),i=new g["a"](r,1,r,1)}else{let n,o;if(this._isMovingDown){n=i.endLineNumber+1,o=e.getLineContent(n),t.addEditOperation(new u["a"](n-1,e.getLineMaxColumn(n-1),n,e.getLineMaxColumn(n)),null);let h=o;if(this.shouldAutoIndent(e,i)){let d=this.matchEnterRule(e,a,r,n,i.startLineNumber-1);if(null!==d){let t=l["y"](e.getLineContent(n)),i=d+w["b"](t,r),a=w["a"](i,r,s);h=a+this.trimLeft(o)}else{c.getLineContent=t=>t===i.startLineNumber?e.getLineContent(n):e.getLineContent(t);let t=_["a"].getGoodIndentForLine(this._autoIndent,c,e.getLanguageIdAtPosition(n,1),i.startLineNumber,a);if(null!==t){let i=l["y"](e.getLineContent(n)),a=w["b"](t,r),c=w["b"](i,r);if(a!==c){let e=w["a"](a,r,s);h=e+this.trimLeft(o)}}}t.addEditOperation(new u["a"](i.startLineNumber,1,i.startLineNumber,1),h+"\n");let f=this.matchEnterRuleMovingDown(e,a,r,i.startLineNumber,n,h);if(null!==f)0!==f&&this.getIndentEditsOfMovingBlock(e,t,i,r,s,f);else{c.getLineContent=t=>t===i.startLineNumber?h:t>=i.startLineNumber+1&&t<=i.endLineNumber+1?e.getLineContent(t-1):e.getLineContent(t);let o=_["a"].getGoodIndentForLine(this._autoIndent,c,e.getLanguageIdAtPosition(n,1),i.startLineNumber+1,a);if(null!==o){const n=l["y"](e.getLineContent(i.startLineNumber)),a=w["b"](o,r),c=w["b"](n,r);if(a!==c){const n=a-c;this.getIndentEditsOfMovingBlock(e,t,i,r,s,n)}}}}else t.addEditOperation(new u["a"](i.startLineNumber,1,i.startLineNumber,1),h+"\n")}else if(n=i.startLineNumber-1,o=e.getLineContent(n),t.addEditOperation(new u["a"](n,1,n+1,1),null),t.addEditOperation(new u["a"](i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+o),this.shouldAutoIndent(e,i)){c.getLineContent=t=>t===n?e.getLineContent(i.startLineNumber):e.getLineContent(t);let o=this.matchEnterRule(e,a,r,i.startLineNumber,i.startLineNumber-2);if(null!==o)0!==o&&this.getIndentEditsOfMovingBlock(e,t,i,r,s,o);else{let o=_["a"].getGoodIndentForLine(this._autoIndent,c,e.getLanguageIdAtPosition(i.startLineNumber,1),n,a);if(null!==o){let n=l["y"](e.getLineContent(i.startLineNumber)),a=w["b"](o,r),c=w["b"](n,r);if(a!==c){let n=a-c;this.getIndentEditsOfMovingBlock(e,t,i,r,s,n)}}}}}this._selectionId=t.trackSelection(i)}buildIndentConverter(e,t,n){return{shiftIndent:i=>b["a"].shiftIndent(i,i.length+1,e,t,n),unshiftIndent:i=>b["a"].unshiftIndent(i,i.length+1,e,t,n)}}parseEnterResult(e,t,n,i,r){if(r){let o=r.indentation;r.indentAction===y["b"].None||r.indentAction===y["b"].Indent?o=r.indentation+r.appendText:r.indentAction===y["b"].IndentOutdent?o=r.indentation:r.indentAction===y["b"].Outdent&&(o=t.unshiftIndent(r.indentation)+r.appendText);let s=e.getLineContent(i);if(this.trimLeft(s).indexOf(this.trimLeft(o))>=0){let r=l["y"](e.getLineContent(i)),s=l["y"](o),a=_["a"].getIndentMetadata(e,i);null!==a&&2&a&&(s=t.unshiftIndent(s));let c=w["b"](s,n),u=w["b"](r,n);return c-u}}return null}matchEnterRuleMovingDown(e,t,n,i,r,o){if(l["J"](o)>=0){let o=e.getLineMaxColumn(r),s=_["a"].getEnterAction(this._autoIndent,e,new u["a"](r,o,r,o));return this.parseEnterResult(e,t,n,i,s)}{let r=i-1;while(r>=1){let t=e.getLineContent(r),n=l["J"](t);if(n>=0)break;r--}if(r<1||i>e.getLineCount())return null;let o=e.getLineMaxColumn(r),s=_["a"].getEnterAction(this._autoIndent,e,new u["a"](r,o,r,o));return this.parseEnterResult(e,t,n,i,s)}}matchEnterRule(e,t,n,i,r,o){let s=r;while(s>=1){let t;t=s===r&&void 0!==o?o:e.getLineContent(s);let n=l["J"](t);if(n>=0)break;s--}if(s<1||i>e.getLineCount())return null;let a=e.getLineMaxColumn(s),c=_["a"].getEnterAction(this._autoIndent,e,new u["a"](s,a,s,a));return this.parseEnterResult(e,t,n,i,c)}trimLeft(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4)return!1;if(!e.isCheapToTokenize(t.startLineNumber))return!1;let n=e.getLanguageIdAtPosition(t.startLineNumber,1),i=e.getLanguageIdAtPosition(t.endLineNumber,1);return n===i&&null!==_["a"].getIndentRulesSupport(n)}getIndentEditsOfMovingBlock(e,t,n,i,r,o){for(let s=n.startLineNumber;s<=n.endLineNumber;s++){let a=e.getLineContent(s),c=l["y"](a),h=w["b"](c,i),d=h+o,f=w["a"](d,i,r);f!==c&&(t.addEditOperation(new u["a"](s,1,s,c.length+1),f),s===n.endLineNumber&&n.endColumn<=c.length+1&&""===f&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let 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}}class S{constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}static getCollator(){return S._COLLATOR||(S._COLLATOR=new Intl.Collator),S._COLLATOR}getEditOperations(e,t){let n=O(e,this.selection,this.descending);n&&t.addEditOperation(n.range,n.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,n){if(null===e)return!1;let i=x(e,t,n);if(!i)return!1;for(let r=0,o=i.before.length;r<o;r++)if(i.before[r]!==i.after[r])return!0;return!1}}function x(e,t,n){let i=t.startLineNumber,r=t.endLineNumber;if(1===t.endColumn&&r--,i>=r)return null;let o=[];for(let a=i;a<=r;a++)o.push(e.getLineContent(a));let s=o.slice(0);return s.sort(S.getCollator().compare),!0===n&&(s=s.reverse()),{startLineNumber:i,endLineNumber:r,before:o,after:s}}function O(e,t,n){let i=x(e,t,n);return i?c["a"].replace(new u["a"](i.startLineNumber,1,i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),i.after.join("\n")):null}S._COLLATOR=null;var k=n("7e32");class L extends s["b"]{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;const n=t.getSelections().map((e,t)=>({selection:e,index:t,ignore:!1}));n.sort((e,t)=>u["a"].compareRangesUsingStarts(e.selection,t.selection));let i=n[0];for(let o=1;o<n.length;o++){const e=n[o];i.selection.endLineNumber===e.selection.startLineNumber&&(i.index<e.index?e.ignore=!0:(i.ignore=!0,i=e))}const r=[];for(const o of n)r.push(new v(o.selection,this.down,o.ignore));t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}class E extends L{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:i["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:k["b"].MenubarSelectionMenu,group:"2_line",title:i["a"]({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}}class D extends L{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:i["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:k["b"].MenubarSelectionMenu,group:"2_line",title:i["a"]({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}}class I extends s["b"]{constructor(){super({id:"editor.action.duplicateSelection",label:i["a"]("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:m["a"].writable,menuOpts:{menuId:k["b"].MenubarSelectionMenu,group:"2_line",title:i["a"]({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})}run(e,t,n){if(!t.hasModel())return;const i=[],r=t.getSelections(),o=t.getModel();for(const s of r)if(s.isEmpty())i.push(new v(s,!0));else{const e=new g["a"](s.endLineNumber,s.endColumn,s.endLineNumber,s.endColumn);i.push(new a["c"](e,o.getValueInRange(s)))}t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class M extends s["b"]{constructor(e,t){super(t),this.down=e}run(e,t){let n=[],i=t.getSelections()||[];const r=t.getOption(9);for(const o of i)n.push(new C(o,this.down,r));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}}class T extends M{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:i["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:k["b"].MenubarSelectionMenu,group:"2_line",title:i["a"]({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}}class A extends M{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:i["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:k["b"].MenubarSelectionMenu,group:"2_line",title:i["a"]({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}}class N extends s["b"]{constructor(e,t){super(t),this.descending=e}run(e,t){const n=t.getSelections()||[];for(const r of n)if(!S.canRun(t.getModel(),r,this.descending))return;let i=[];for(let r=0,o=n.length;r<o;r++)i[r]=new S(n[r],this.descending);t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class P extends N{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:i["a"]("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:m["a"].writable})}}class j extends N{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:i["a"]("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:m["a"].writable})}}class R extends s["b"]{constructor(){super({id:R.ID,label:i["a"]("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].editorTextFocus,primary:Object(r["a"])(2089,2102),weight:100}})}run(e,t,n){let i=[];"auto-save"===n.reason&&(i=(t.getSelections()||[]).map(e=>new p["a"](e.positionLineNumber,e.positionColumn)));let r=t.getSelection();if(null===r)return;let o=new h(r,i);t.pushUndoStop(),t.executeCommands(this.id,[o]),t.pushUndoStop()}}R.ID="editor.action.trimTrailingWhitespace";class F extends s["b"]{constructor(){super({id:"editor.action.deleteLines",label:i["a"]("lines.delete","Delete Line"),alias:"Delete Line",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;let n=this._getLinesToRemove(t),i=t.getModel();if(1===i.getLineCount()&&1===i.getLineMaxColumn(1))return;let r=0,o=[],s=[];for(let a=0,l=n.length;a<l;a++){const e=n[a];let t=e.startLineNumber,l=e.endLineNumber,u=1,h=i.getLineMaxColumn(l);l<i.getLineCount()?(l+=1,h=1):t>1&&(t-=1,u=i.getLineMaxColumn(t)),o.push(c["a"].replace(new g["a"](t,u,l,h),"")),s.push(new g["a"](t-r,e.positionColumn,t-r,e.positionColumn)),r+=e.endLineNumber-e.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,o,s),t.pushUndoStop()}_getLinesToRemove(e){let t=e.getSelections().map(e=>{let t=e.endLineNumber;return e.startLineNumber<e.endLineNumber&&1===e.endColumn&&(t-=1),{startLineNumber:e.startLineNumber,selectionStartColumn:e.selectionStartColumn,endLineNumber:t,positionColumn:e.positionColumn}});t.sort((e,t)=>e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber);let n=[],i=t[0];for(let r=1;r<t.length;r++)i.endLineNumber+1>=t[r].startLineNumber?i.endLineNumber=t[r].endLineNumber:(n.push(i),i=t[r]);return n.push(i),n}}class B extends s["b"]{constructor(){super({id:"editor.action.indentLines",label:i["a"]("lines.indent","Indent Line"),alias:"Indent Line",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].editorTextFocus,primary:2137,weight:100}})}run(e,t){const n=t._getViewModel();n&&(t.pushUndoStop(),t.executeCommands(this.id,f["a"].indent(n.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}}class W extends s["b"]{constructor(){super({id:"editor.action.outdentLines",label:i["a"]("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].editorTextFocus,primary:2135,weight:100}})}run(e,t){o["CoreEditingCommands"].Outdent.runEditorCommand(e,t,null)}}class V extends s["b"]{constructor(){super({id:"editor.action.insertLineBefore",label:i["a"]("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].editorTextFocus,primary:3075,weight:100}})}run(e,t){const n=t._getViewModel();n&&(t.pushUndoStop(),t.executeCommands(this.id,f["a"].lineInsertBefore(n.cursorConfig,t.getModel(),t.getSelections())))}}class z extends s["b"]{constructor(){super({id:"editor.action.insertLineAfter",label:i["a"]("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].editorTextFocus,primary:2051,weight:100}})}run(e,t){const n=t._getViewModel();n&&(t.pushUndoStop(),t.executeCommands(this.id,f["a"].lineInsertAfter(n.cursorConfig,t.getModel(),t.getSelections())))}}class H extends s["b"]{run(e,t){if(!t.hasModel())return;const n=t.getSelection();let i=this._getRangesToDelete(t),r=[];for(let a=0,l=i.length-1;a<l;a++){let e=i[a],t=i[a+1];null===u["a"].intersectRanges(e,t)?r.push(e):i[a+1]=u["a"].plusRange(e,t)}r.push(i[i.length-1]);let o=this._getEndCursorState(n,r),s=r.map(e=>c["a"].replace(e,""));t.pushUndoStop(),t.executeEdits(this.id,s,o),t.pushUndoStop()}}class U extends H{constructor(){super({id:"deleteAllLeft",label:i["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}})}_getEndCursorState(e,t){let n=null,i=[],r=0;return t.forEach(t=>{let o;if(1===t.endColumn&&r>0){let e=t.startLineNumber-r;o=new g["a"](e,t.startColumn,e,t.startColumn)}else o=new g["a"](t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn);r+=t.endLineNumber-t.startLineNumber,t.intersectRanges(e)?n=o:i.push(o)}),n&&i.unshift(n),i}_getRangesToDelete(e){let t=e.getSelections();if(null===t)return[];let n=t,i=e.getModel();return null===i?[]:(n.sort(u["a"].compareRangesUsingStarts),n=n.map(e=>{if(e.isEmpty()){if(1===e.startColumn){let t=Math.max(1,e.startLineNumber-1),n=1===e.startLineNumber?1:i.getLineContent(t).length+1;return new u["a"](t,n,e.startLineNumber,1)}return new u["a"](e.startLineNumber,1,e.startLineNumber,e.startColumn)}return new u["a"](e.startLineNumber,1,e.endLineNumber,e.endColumn)}),n)}}class q extends H{constructor(){super({id:"deleteAllRight",label:i["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}})}_getEndCursorState(e,t){let n=null,i=[];for(let r=0,o=t.length,s=0;r<o;r++){let o=t[r],a=new g["a"](o.startLineNumber-s,o.startColumn,o.startLineNumber-s,o.startColumn);o.intersectRanges(e)?n=a:i.push(a)}return n&&i.unshift(n),i}_getRangesToDelete(e){let t=e.getModel();if(null===t)return[];let n=e.getSelections();if(null===n)return[];let i=n.map(e=>{if(e.isEmpty()){const 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 i.sort(u["a"].compareRangesUsingStarts),i}}class $ extends s["b"]{constructor(){super({id:"editor.action.joinLines",label:i["a"]("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:m["a"].writable,kbOpts:{kbExpr:m["a"].editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){let n=t.getSelections();if(null===n)return;let i=t.getSelection();if(null===i)return;n.sort(u["a"].compareRangesUsingStarts);let r=[],o=n.reduce((e,t)=>e.isEmpty()?e.endLineNumber===t.startLineNumber?(i.equalsSelection(e)&&(i=t),t):t.startLineNumber>e.endLineNumber+1?(r.push(e),t):new g["a"](e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(r.push(e),t):new g["a"](e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn));r.push(o);let s=t.getModel();if(null===s)return;let a=[],l=[],h=i,d=0;for(let f=0,p=r.length;f<p;f++){let e,t,n=r[f],o=n.startLineNumber,p=1,m=0,v=s.getLineContent(n.endLineNumber).length-n.endColumn;if(n.isEmpty()||n.startLineNumber===n.endLineNumber){let i=n.getStartPosition();i.lineNumber<s.getLineCount()?(e=o+1,t=s.getLineMaxColumn(e)):(e=i.lineNumber,t=s.getLineMaxColumn(i.lineNumber))}else e=n.endLineNumber,t=s.getLineMaxColumn(e);let b=s.getLineContent(o);for(let i=o+1;i<=e;i++){let e=s.getLineContent(i),t=s.getLineFirstNonWhitespaceColumn(i);if(t>=1){let n=!0;""===b&&(n=!1),!n||" "!==b.charAt(b.length-1)&&"\t"!==b.charAt(b.length-1)||(n=!1,b=b.replace(/[\s\uFEFF\xA0]+$/g," "));let i=e.substr(t-1);b+=(n?" ":"")+i,m=n?i.length+1:i.length}else m=0}let y=new u["a"](o,p,e,t);if(!y.isEmpty()){let e;n.isEmpty()?(a.push(c["a"].replace(y,b)),e=new g["a"](y.startLineNumber-d,b.length-m+1,o-d,b.length-m+1)):n.startLineNumber===n.endLineNumber?(a.push(c["a"].replace(y,b)),e=new g["a"](n.startLineNumber-d,n.startColumn,n.endLineNumber-d,n.endColumn)):(a.push(c["a"].replace(y,b)),e=new g["a"](n.startLineNumber-d,n.startColumn,n.startLineNumber-d,b.length-v)),null!==u["a"].intersectRanges(y,i)?h=e:l.push(e)}d+=y.endLineNumber-y.startLineNumber}l.unshift(h),t.pushUndoStop(),t.executeEdits(this.id,a,l),t.pushUndoStop()}}class K extends s["b"]{constructor(){super({id:"editor.action.transpose",label:i["a"]("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:m["a"].writable})}run(e,t){let n=t.getSelections();if(null===n)return;let i=t.getModel();if(null===i)return;let r=[];for(let o=0,s=n.length;o<s;o++){let e=n[o];if(!e.isEmpty())continue;let t=e.getStartPosition(),s=i.getLineMaxColumn(t.lineNumber);if(t.column>=s){if(t.lineNumber===i.getLineCount())continue;let e=new u["a"](t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),n=i.getValueInRange(e).split("").reverse().join("");r.push(new a["a"](new g["a"](t.lineNumber,Math.max(1,t.column-1),t.lineNumber+1,1),n))}else{let e=new u["a"](t.lineNumber,Math.max(1,t.column-1),t.lineNumber,t.column+1),n=i.getValueInRange(e).split("").reverse().join("");r.push(new a["b"](e,n,new g["a"](t.lineNumber,t.column+1,t.lineNumber,t.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}}class G extends s["b"]{run(e,t){const n=t.getSelections();if(null===n)return;const i=t.getModel();if(null===i)return;const r=t.getOption(115),o=[];for(const s of n)if(s.isEmpty()){const e=s.getStartPosition(),n=t.getConfiguredWordAtPosition(e);if(!n)continue;const a=new u["a"](e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),l=i.getValueInRange(a);o.push(c["a"].replace(a,this._modifyText(l,r)))}else{const e=i.getValueInRange(s);o.push(c["a"].replace(s,this._modifyText(e,r)))}t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop()}}class Y extends G{constructor(){super({id:"editor.action.transformToUppercase",label:i["a"]("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:m["a"].writable})}_modifyText(e,t){return e.toLocaleUpperCase()}}class Z extends G{constructor(){super({id:"editor.action.transformToLowercase",label:i["a"]("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:m["a"].writable})}_modifyText(e,t){return e.toLocaleLowerCase()}}class X extends G{constructor(){super({id:"editor.action.transformToTitlecase",label:i["a"]("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:m["a"].writable})}_modifyText(e,t){const n="\r\n\t "+t,i=n.split("");let r="",o=!0;for(let s=0;s<e.length;s++){let t=e[s];i.indexOf(t)>=0?(o=!0,r+=t):o?(o=!1,r+=t.toLocaleUpperCase()):r+=t.toLocaleLowerCase()}return r}}class Q{constructor(e,t){this._pattern=e,this._flags=t,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch(e){}}return this._actual}isSupported(){return null!==this.get()}}class J extends G{constructor(){super({id:"editor.action.transformToSnakecase",label:i["a"]("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:m["a"].writable})}_modifyText(e,t){const n=J.regExp1.get(),i=J.regExp2.get();return n&&i?e.replace(n,"$1_$2").replace(i,"$1_$2$3").toLocaleLowerCase():e}}J.regExp1=new Q("(\\p{Ll})(\\p{Lu})","gmu"),J.regExp2=new Q("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu"),Object(s["j"])(E),Object(s["j"])(D),Object(s["j"])(I),Object(s["j"])(T),Object(s["j"])(A),Object(s["j"])(P),Object(s["j"])(j),Object(s["j"])(R),Object(s["j"])(F),Object(s["j"])(B),Object(s["j"])(W),Object(s["j"])(V),Object(s["j"])(z),Object(s["j"])(U),Object(s["j"])(q),Object(s["j"])($),Object(s["j"])(K),Object(s["j"])(Y),Object(s["j"])(Z),Object(s["j"])(X),J.regExp1.isSupported()&&J.regExp2.isSupported()&&Object(s["j"])(J)},"74ce":function(e,t,n){"use strict";n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return y})),n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return C}));var i=n("2504"),r=n("fdcc"),o=n("6d8e"),s=n("b707"),a=n("1b69"),l=n("9e74"),c=n("ef8e"),u=n("1e93"),h=n("30db");function d(e){for(let t=0,n=e.length;t<n;t+=4){const n=e[t+0],i=e[t+1],r=e[t+2],o=e[t+3];e[t+0]=o,e[t+1]=r,e[t+2]=i,e[t+3]=n}}function f(e){const t=new Uint8Array(e.buffer,e.byteOffset,4*e.length);return h["e"]()||d(t),u["a"].wrap(t)}function p(e){const t=new Uint32Array(g(e));let n=0;if(t[n++]=e.id,"full"===e.type)t[n++]=1,t[n++]=e.data.length,t.set(e.data,n),n+=e.data.length;else{t[n++]=2,t[n++]=e.deltas.length;for(const i of e.deltas)t[n++]=i.start,t[n++]=i.deleteCount,i.data?(t[n++]=i.data.length,t.set(i.data,n),n+=i.data.length):t[n++]=0}return f(t)}function g(e){let t=0;if(t+=2,"full"===e.type)t+=1+e.data.length;else{t+=1,t+=3*e.deltas.length;for(const n of e.deltas)n.data&&(t+=n.data.length)}return t}var m=n("6a89"),v=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function b(e){return e&&!!e.data}function y(e){return e&&Array.isArray(e.edits)}function _(e,t,n){const i=w(e);return i?{provider:i,request:Promise.resolve(i.provideDocumentSemanticTokens(e,t,n))}:null}function w(e){const t=s["l"].ordered(e);return t.length>0?t[0]:null}function C(e){const t=s["k"].ordered(e);return t.length>0?t[0]:null}l["a"].registerCommand("_provideDocumentSemanticTokensLegend",(e,...t)=>v(void 0,void 0,void 0,(function*(){const[n]=t;Object(c["c"])(n instanceof o["a"]);const i=e.get(a["a"]).getModel(n);if(!i)return;const r=w(i);return r?r.getLegend():e.get(l["b"]).executeCommand("_provideDocumentRangeSemanticTokensLegend",n)}))),l["a"].registerCommand("_provideDocumentSemanticTokens",(e,...t)=>v(void 0,void 0,void 0,(function*(){const[n]=t;Object(c["c"])(n instanceof o["a"]);const s=e.get(a["a"]).getModel(n);if(!s)return;const u=_(s,null,i["a"].None);if(!u)return e.get(l["b"]).executeCommand("_provideDocumentRangeSemanticTokens",n,s.getFullModelRange());const{provider:h,request:d}=u;let f;try{f=yield d}catch(m){return void Object(r["f"])(m)}if(!f||!b(f))return;const g=p({id:0,type:"full",data:f.data});return f.resultId&&h.releaseDocumentSemanticTokens(f.resultId),g}))),l["a"].registerCommand("_provideDocumentRangeSemanticTokensLegend",(e,...t)=>v(void 0,void 0,void 0,(function*(){const[n]=t;Object(c["c"])(n instanceof o["a"]);const i=e.get(a["a"]).getModel(n);if(!i)return;const r=C(i);return r?r.getLegend():void 0}))),l["a"].registerCommand("_provideDocumentRangeSemanticTokens",(e,...t)=>v(void 0,void 0,void 0,(function*(){const[n,s]=t;Object(c["c"])(n instanceof o["a"]),Object(c["c"])(m["a"].isIRange(s));const l=e.get(a["a"]).getModel(n);if(!l)return;const u=C(l);if(!u)return;let h;try{h=yield u.provideDocumentRangeSemanticTokens(l,m["a"].lift(s),i["a"].None)}catch(d){return void Object(r["f"])(d)}return h&&b(h)?p({id:0,type:"full",data:h.data}):void 0})))},"75d2":function(e,t,n){"use strict";var i=n("e142").codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}function o(e,t,n,o){var s=r(t,o,n);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0){var a=o?n:"highWaterMark";throw new i(a,s)}return Math.floor(s)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},7605:function(e,t,n){"use strict";n.r(t),n.d(t,"FoldingController",(function(){return ue})),n.d(t,"foldBackgroundBackground",(function(){return De})),n.d(t,"editorFoldForeground",(function(){return Ie}));n("0a33");var i=n("dff7"),r=n("ef8e"),o=n("3742"),s=n("5fe7"),a=n("fe45"),l=n("a666"),c=n("b2cc"),u=n("308f");const h=65535,d=16777215,f=4278190080;class p{constructor(e,t,n){if(e.length!==t.length||e.length>h)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}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;let e=[],t=(t,n)=>{let i=e[e.length-1];return this.getStartLineNumber(i)<=t&&this.getEndLineNumber(i)>=n};for(let n=0,i=this._startIndexes.length;n<i;n++){let i=this._startIndexes[n],r=this._endIndexes[n];if(i>d||r>d)throw new Error("startLineNumber or endLineNumber must not exceed "+d);while(e.length>0&&!t(i,r))e.pop();let o=e.length>0?e[e.length-1]:-1;e.push(n),this._startIndexes[n]=i+((255&o)<<24),this._endIndexes[n]=r+((65280&o)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&d}getEndLineNumber(e){return this._endIndexes[e]&d}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){let t=e/32|0,n=e%32;return 0!==(this._collapseStates[t]&1<<n)}setCollapsed(e,t){let n=e/32|0,i=e%32,r=this._collapseStates[n];this._collapseStates[n]=t?r|1<<i:r&~(1<<i)}setCollapsedAllOfType(e,t){let n=!1;if(this._types)for(let i=0;i<this._types.length;i++)this._types[i]===e&&(this.setCollapsed(i,t),n=!0);return n}toRegion(e){return new g(this,e)}getParentIndex(e){this.ensureParentIndices();let t=((this._startIndexes[e]&f)>>>24)+((this._endIndexes[e]&f)>>>16);return t===h?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,n=this._startIndexes.length;if(0===n)return-1;while(t<n){let i=Math.floor((t+n)/2);e<this.getStartLineNumber(i)?n=i:t=i+1}return t-1}findRange(e){let t=this.findIndex(e);if(t>=0){let n=this.getEndLineNumber(t);if(n>=e)return t;t=this.getParentIndex(t);while(-1!==t){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){let e=[];for(let t=0;t<this.length;t++)e[t]=`[${this.isCollapsed(t)?"+":"-"}] ${this.getStartLineNumber(t)}/${this.getEndLineNumber(t)}`;return e.join(", ")}}class g{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}class m{constructor(e,t){this._updateEventEmitter=new u["b"],this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new p(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}get regions(){return this._regions}get textModel(){return this._textModel}get isInitialized(){return this._isInitialized}toggleCollapseState(e){if(!e.length)return;e=e.sort((e,t)=>e.regionIndex-t.regionIndex);const t={};this._decorationProvider.changeDecorations(n=>{let i=0,r=-1,o=-1;const s=e=>{while(i<e){const e=this._regions.getEndLineNumber(i),t=this._regions.isCollapsed(i);e<=r&&n.changeDecorationOptions(this._editorDecorationIds[i],this._decorationProvider.getDecorationOption(t,e<=o)),t&&e>o&&(o=e),i++}};for(let a of e){let e=a.regionIndex,n=this._editorDecorationIds[e];if(n&&!t[n]){t[n]=!0,s(e);let i=!this._regions.isCollapsed(e);this._regions.setCollapsed(e,i),r=Math.max(r,this._regions.getEndLineNumber(e))}}s(this._regions.length)}),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}update(e,t=[]){let n=[],i=(e,n)=>{for(let i of t)if(e<i&&i<=n)return!0;return!1},r=-1,o=(t,o)=>{const s=e.getStartLineNumber(t),a=e.getEndLineNumber(t);o||(o=e.isCollapsed(t)),o&&i(s,a)&&(o=!1),e.setCollapsed(t,o);const l=this._textModel.getLineMaxColumn(s),c={startLineNumber:s,startColumn:Math.max(l-1,1),endLineNumber:s,endColumn:l};n.push({range:c,options:this._decorationProvider.getDecorationOption(o,a<=r)}),o&&a>r&&(r=a)},s=0,a=()=>{while(s<this._regions.length){let e=this._regions.isCollapsed(s);if(s++,e)return s-1}return-1},l=0,c=a();while(-1!==c&&l<e.length){let t=this._textModel.getDecorationRange(this._editorDecorationIds[c]);if(t){let n=t.startLineNumber;if(t.startColumn===Math.max(t.endColumn-1,1)&&this._textModel.getLineMaxColumn(n)===t.endColumn)while(l<e.length){let t=e.getStartLineNumber(l);if(!(n>=t))break;o(l,n===t),l++}}c=a()}while(l<e.length)o(l,!1),l++;this._editorDecorationIds=this._decorationProvider.deltaDecorations(this._editorDecorationIds,n),this._regions=e,this._isInitialized=!0,this._updateEventEmitter.fire({model:this})}getMemento(){let e=[];for(let t=0;t<this._regions.length;t++)if(this._regions.isCollapsed(t)){let n=this._textModel.getDecorationRange(this._editorDecorationIds[t]);if(n){let i=n.startLineNumber,r=n.endLineNumber+this._regions.getEndLineNumber(t)-this._regions.getStartLineNumber(t);e.push({startLineNumber:i,endLineNumber:r})}}if(e.length>0)return e}applyMemento(e){if(!Array.isArray(e))return;let t=[];for(let n of e){let e=this.getRegionAtLine(n.startLineNumber);e&&!e.isCollapsed&&t.push(e)}this.toggleCollapseState(t)}dispose(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])}getAllRegionsAtLine(e,t){let n=[];if(this._regions){let i=this._regions.findRange(e),r=1;while(i>=0){let e=this._regions.toRegion(i);t&&!t(e,r)||n.push(e),r++,i=e.parentIndex}}return n}getRegionAtLine(e){if(this._regions){let t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){let n=[],i=e?e.regionIndex+1:0,r=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length){const e=[];for(let o=i,s=this._regions.length;o<s;o++){let i=this._regions.toRegion(o);if(!(this._regions.getStartLineNumber(o)<r))break;while(e.length>0&&!i.containedBy(e[e.length-1]))e.pop();e.push(i),t(i,e.length)&&n.push(i)}}else for(let o=i,s=this._regions.length;o<s;o++){let e=this._regions.toRegion(o);if(!(this._regions.getStartLineNumber(o)<r))break;t&&!t(e)||n.push(e)}return n}}function v(e,t,n){let i=[];for(let r of n){let n=e.getRegionAtLine(r);if(n){const r=!n.isCollapsed;if(i.push(n),t>1){let o=e.getRegionsInside(n,(e,n)=>e.isCollapsed!==r&&n<t);i.push(...o)}}}e.toggleCollapseState(i)}function b(e,t,n=Number.MAX_VALUE,i){let r=[];if(i&&i.length>0)for(let o of i){let i=e.getRegionAtLine(o);if(i&&(i.isCollapsed!==t&&r.push(i),n>1)){let o=e.getRegionsInside(i,(e,i)=>e.isCollapsed!==t&&i<n);r.push(...o)}}else{let i=e.getRegionsInside(null,(e,i)=>e.isCollapsed!==t&&i<n);r.push(...i)}e.toggleCollapseState(r)}function y(e,t,n,i){let r=[];for(let o of i){let i=e.getAllRegionsAtLine(o,(e,i)=>e.isCollapsed!==t&&i<=n);r.push(...i)}e.toggleCollapseState(r)}function _(e,t,n){let i=[];for(let r of n){let n=e.getAllRegionsAtLine(r,e=>e.isCollapsed!==t);n.length>0&&i.push(n[0])}e.toggleCollapseState(i)}function w(e,t,n,i){let r=(e,r)=>r===t&&e.isCollapsed!==n&&!i.some(t=>e.containsLine(t)),o=e.getRegionsInside(null,r);e.toggleCollapseState(o)}function C(e,t,n){let i=[];for(let s of n)i.push(e.getAllRegionsAtLine(s,void 0)[0]);let r=e=>i.every(t=>!t.containedBy(e)&&!e.containedBy(t))&&e.isCollapsed!==t,o=e.getRegionsInside(null,r);e.toggleCollapseState(o)}function S(e,t,n){let i=e.textModel,r=e.regions,o=[];for(let s=r.length-1;s>=0;s--)if(n!==r.isCollapsed(s)){let e=r.getStartLineNumber(s);t.test(i.getLineContent(e))&&o.push(r.toRegion(s))}e.toggleCollapseState(o)}function x(e,t,n){let i=e.regions,r=[];for(let o=i.length-1;o>=0;o--)n!==i.isCollapsed(o)&&t===i.getType(o)&&r.push(i.toRegion(o));e.toggleCollapseState(r)}function O(e,t){let n=null,i=t.getRegionAtLine(e);if(null!==i&&(n=i.startLineNumber,e===n)){let e=i.parentIndex;n=-1!==e?t.regions.getStartLineNumber(e):null}return n}function k(e,t){let n=t.getRegionAtLine(e);if(null!==n){if(e!==n.startLineNumber)return n.startLineNumber;{let e=n.parentIndex;if(-1===e)return null;let i=t.regions.getStartLineNumber(n.parentIndex);while(null!==n){if(!(n.regionIndex>0))return null;if(n=t.regions.toRegion(n.regionIndex-1),n.startLineNumber<=i)return null;if(n.parentIndex===e)return n.startLineNumber}}}return null}function L(e,t){let n=t.getRegionAtLine(e);if(null!==n){let e=n.parentIndex;if(-1===e)return null;let i=t.regions.getEndLineNumber(n.parentIndex);while(null!==n){if(!(n.regionIndex<t.regions.length))return null;if(n=t.regions.toRegion(n.regionIndex+1),n.startLineNumber>=i)return null;if(n.parentIndex===e)return n.startLineNumber}}return null}var E=n("b57f"),D=n("561a"),I=n("bf5b"),M=n("b7d0");const T=Object(I["b"])("folding-expanded",D["b"].chevronDown,Object(i["a"])("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),A=Object(I["b"])("folding-collapsed",D["b"].chevronRight,Object(i["a"])("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin."));class N{constructor(e){this.editor=e,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}getDecorationOption(e,t){return t?N.HIDDEN_RANGE_DECORATION:e?this.showFoldingHighlights?N.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:N.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?N.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:N.EXPANDED_VISUAL_DECORATION}deltaDecorations(e,t){return this.editor.deltaDecorations(e,t)}changeDecorations(e){return this.editor.changeDecorations(e)}}N.COLLAPSED_VISUAL_DECORATION=E["a"].register({description:"folding-collapsed-visual-decoration",stickiness:1,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:M["d"].asClassName(A)}),N.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=E["a"].register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,firstLineDecorationClassName:M["d"].asClassName(A)}),N.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=E["a"].register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:M["d"].asClassName(T)}),N.EXPANDED_VISUAL_DECORATION=E["a"].register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+M["d"].asClassName(T)}),N.HIDDEN_RANGE_DECORATION=E["a"].register({description:"folding-hidden-range-decoration",stickiness:1});var P=n("c101"),j=n("6a89"),R=n("e8e3");class F{constructor(e){this._updateEventEmitter=new u["b"],this._foldingModel=e,this._foldingModelListener=e.onDidChange(e=>this.updateHiddenRanges()),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}updateHiddenRanges(){let e=!1,t=[],n=0,i=0,r=Number.MAX_VALUE,o=-1,s=this._foldingModel.regions;for(;n<s.length;n++){if(!s.isCollapsed(n))continue;let a=s.getStartLineNumber(n)+1,l=s.getEndLineNumber(n);r<=a&&l<=o||(!e&&i<this._hiddenRanges.length&&this._hiddenRanges[i].startLineNumber===a&&this._hiddenRanges[i].endLineNumber===l?(t.push(this._hiddenRanges[i]),i++):(e=!0,t.push(new j["a"](a,1,l,1))),r=a,o=l)}(e||i<this._hiddenRanges.length)&&this.applyHiddenRanges(t)}applyMemento(e){if(!Array.isArray(e)||0===e.length)return!1;let t=[];for(let n of e){if(!n.startLineNumber||!n.endLineNumber)return!1;t.push(new j["a"](n.startLineNumber+1,1,n.endLineNumber,1))}return this.applyHiddenRanges(t),!0}getMemento(){return this._hiddenRanges.map(e=>({startLineNumber:e.startLineNumber-1,endLineNumber:e.endLineNumber}))}applyHiddenRanges(e){this._hiddenRanges=e,this._updateEventEmitter.fire(e)}hasRanges(){return this._hiddenRanges.length>0}isHidden(e){return null!==W(this._hiddenRanges,e)}adjustSelections(e){let t=!1,n=this._foldingModel.textModel,i=null,r=e=>(i&&B(e,i)||(i=W(this._hiddenRanges,e)),i?i.startLineNumber-1:null);for(let o=0,s=e.length;o<s;o++){let i=e[o],s=r(i.startLineNumber);s&&(i=i.setStartPosition(s,n.getLineMaxColumn(s)),t=!0);let a=r(i.endLineNumber);a&&(i=i.setEndPosition(a,n.getLineMaxColumn(a)),t=!0),e[o]=i}return t}dispose(){this.hiddenRanges.length>0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function B(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}function W(e,t){let n=Object(R["i"])(e,e=>t<e.startLineNumber)-1;return n>=0&&e[n].endLineNumber>=t?e[n]:null}var V=n("70cb");const z=5e3,H="indent";class U{constructor(e){this.editorModel=e,this.id=H}dispose(){}compute(e){let t=V["a"].getFoldingRules(this.editorModel.getLanguageIdentifier().id),n=t&&!!t.offSide,i=t&&t.markers;return Promise.resolve($(this.editorModel,n,i))}}class q{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,n){if(e>d||t>d)return;let i=this._length;this._startIndexes[i]=e,this._endIndexes[i]=t,this._length++,n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1)}toIndentRanges(e){if(this._length<=this._foldingRangesLimit){let e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let n=this._length-1,i=0;n>=0;n--,i++)e[i]=this._startIndexes[n],t[i]=this._endIndexes[n];return new p(e,t)}{let t=0,n=this._indentOccurrences.length;for(let e=0;e<this._indentOccurrences.length;e++){let i=this._indentOccurrences[e];if(i){if(i+t>this._foldingRangesLimit){n=e;break}t+=i}}const i=e.getOptions().tabSize;let r=new Uint32Array(this._foldingRangesLimit),o=new Uint32Array(this._foldingRangesLimit);for(let s=this._length-1,a=0;s>=0;s--){let l=this._startIndexes[s],c=e.getLineContent(l),u=E["b"].computeIndentLevel(c,i);(u<n||u===n&&t++<this._foldingRangesLimit)&&(r[a]=l,o[a]=this._endIndexes[s],a++)}return new p(r,o)}}}function $(e,t,n,i=z){const r=e.getOptions().tabSize;let o=new q(i),s=void 0;n&&(s=new RegExp(`(${n.start.source})|(?:${n.end.source})`));let a=[],l=e.getLineCount()+1;a.push({indent:-1,endAbove:l,line:l});for(let c=e.getLineCount();c>0;c--){let n,i=e.getLineContent(c),l=E["b"].computeIndentLevel(i,r),u=a[a.length-1];if(-1!==l){if(s&&(n=i.match(s))){if(!n[1]){a.push({indent:-2,endAbove:c,line:c});continue}{let e=a.length-1;while(e>0&&-2!==a[e].indent)e--;if(e>0){a.length=e+1,u=a[e],o.insertFirst(c,u.line,l),u.line=c,u.indent=l,u.endAbove=c;continue}}}if(u.indent>l){do{a.pop(),u=a[a.length-1]}while(u.indent>l);let e=u.endAbove-1;e-c>=1&&o.insertFirst(c,e,l)}u.indent===l?u.endAbove=c:a.push({indent:l,endAbove:c,line:c})}else t&&(u.endAbove=c)}return o.toIndentRanges(e)}var K=n("b707"),G=n("fdcc");const Y=5e3,Z={},X="syntax";class Q{constructor(e,t,n,i=Y){this.editorModel=e,this.providers=t,this.limit=i,this.id=X;for(const r of t)"function"===typeof r.onDidChange&&(this.disposables||(this.disposables=new l["b"]),this.disposables.add(r.onDidChange(n)))}compute(e){return J(this.providers,this.editorModel,e).then(e=>{if(e){let t=te(e,this.limit);return t}return null})}dispose(){var e;null===(e=this.disposables)||void 0===e||e.dispose()}}function J(e,t,n){let i=null,r=e.map((e,r)=>Promise.resolve(e.provideFoldingRanges(t,Z,n)).then(e=>{if(!n.isCancellationRequested&&Array.isArray(e)){Array.isArray(i)||(i=[]);let n=t.getLineCount();for(let t of e)t.start>0&&t.end>t.start&&t.end<=n&&i.push({start:t.start,end:t.end,rank:r,kind:t.kind})}},G["f"]));return Promise.all(r).then(e=>i)}class ee{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,n,i){if(e>d||t>d)return;let r=this._length;this._startIndexes[r]=e,this._endIndexes[r]=t,this._nestingLevels[r]=i,this._types[r]=n,this._length++,i<30&&(this._nestingLevelCounts[i]=(this._nestingLevelCounts[i]||0)+1)}toIndentRanges(){if(this._length<=this._foldingRangesLimit){let e=new Uint32Array(this._length),t=new Uint32Array(this._length);for(let n=0;n<this._length;n++)e[n]=this._startIndexes[n],t[n]=this._endIndexes[n];return new p(e,t,this._types)}{let e=0,t=this._nestingLevelCounts.length;for(let o=0;o<this._nestingLevelCounts.length;o++){let n=this._nestingLevelCounts[o];if(n){if(n+e>this._foldingRangesLimit){t=o;break}e+=n}}let n=new Uint32Array(this._foldingRangesLimit),i=new Uint32Array(this._foldingRangesLimit),r=[];for(let o=0,s=0;o<this._length;o++){let a=this._nestingLevels[o];(a<t||a===t&&e++<this._foldingRangesLimit)&&(n[s]=this._startIndexes[o],i[s]=this._endIndexes[o],r[s]=this._types[o],s++)}return new p(n,i,r)}}}function te(e,t){let n=e.sort((e,t)=>{let n=e.start-t.start;return 0===n&&(n=e.rank-t.rank),n}),i=new ee(t),r=void 0,o=[];for(let s of n)if(r){if(s.start>r.start)if(s.end<=r.end)o.push(r),r=s,i.add(s.start,s.end,s.kind&&s.kind.value,o.length);else{if(s.start>r.end){do{r=o.pop()}while(r&&s.start>r.end);r&&o.push(r),r=s}i.add(s.start,s.end,s.kind&&s.kind.value,o.length)}}else r=s,i.add(s.start,s.end,s.kind&&s.kind.value,o.length);return i.toIndentRanges()}const ne="init";class ie{constructor(e,t,n,i){if(this.editorModel=e,this.id=ne,t.length){let r=t=>({range:{startLineNumber:t.startLineNumber,startColumn:0,endLineNumber:t.endLineNumber,endColumn:e.getLineLength(t.endLineNumber)},options:{description:"folding-initializing-range-provider",stickiness:1}});this.decorationIds=e.deltaDecorations([],t.map(r)),this.timeout=setTimeout(n,i)}}dispose(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),"number"===typeof this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)}compute(e){let t=[];if(this.decorationIds)for(let n of this.decorationIds){let e=this.editorModel.getDecorationRange(n);e&&t.push({start:e.startLineNumber,end:e.endLineNumber,rank:1})}return Promise.resolve(te(t,Number.MAX_VALUE))}}var re=n("4fc3"),oe=n("303e"),se=n("bc04"),ae=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},le=function(e,t){return function(n,i){t(n,i,e)}};const ce=new re["c"]("foldingEnabled",!1);let ue=class e extends l["a"]{constructor(e,t){super(),this.contextKeyService=t,this.localToDispose=this._register(new l["b"]),this.editor=e;const n=this.editor.getOptions();this._isEnabled=n.get(35),this._useFoldingProviders="indentation"!==n.get(36),this._unfoldOnClickAfterEndOfLine=n.get(39),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=n.get(38),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingStateMemento=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new N(e),this.foldingDecorationProvider.autoHideFoldingControls="mouseover"===n.get(98),this.foldingDecorationProvider.showFoldingHighlights=n.get(37),this.foldingEnabled=ce.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel(()=>this.onModelChanged())),this._register(this.editor.onDidChangeConfiguration(e=>{if(e.hasChanged(35)&&(this._isEnabled=this.editor.getOptions().get(35),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),e.hasChanged(98)||e.hasChanged(37)){const e=this.editor.getOptions();this.foldingDecorationProvider.autoHideFoldingControls="mouseover"===e.get(98),this.foldingDecorationProvider.showFoldingHighlights=e.get(37),this.onModelContentChanged()}e.hasChanged(36)&&(this._useFoldingProviders="indentation"!==this.editor.getOptions().get(36),this.onFoldingStrategyChanged()),e.hasChanged(39)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(39)),e.hasChanged(38)&&(this._foldingImportsByDefault=this.editor.getOptions().get(38))})),this.onModelChanged()}static get(t){return t.getContribution(e.ID)}saveViewState(){let e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){let 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,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(e){let t=this.editor.getModel();if(!t||!this._isEnabled||t.isTooLargeForTokenization()||!this.hiddenRangeModel)return;if(!e||e.lineCount!==t.getLineCount())return;if(this._currentModelHasFoldedImports=!!e.foldedImports,!e.collapsedRegions)return;e.provider!==X&&e.provider!==ne||(this.foldingStateMemento=e);const n=e.collapsedRegions;if(this.hiddenRangeModel.applyMemento(n)){const e=this.getFoldingModel();e&&e.then(e=>{if(e){this._restoringViewState=!0;try{e.applyMemento(n)}finally{this._restoringViewState=!1}}}).then(void 0,G["e"])}}onModelChanged(){this.localToDispose.clear();let e=this.editor.getModel();this._isEnabled&&e&&!e.isTooLargeForTokenization()&&(this._currentModelHasFoldedImports=!1,this.foldingModel=new m(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new F(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(e=>this.onHiddenRangesChanges(e))),this.updateScheduler=new s["a"](200),this.cursorChangedScheduler=new s["e"](()=>this.revealCursor(),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(K["o"].onDidChange(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelContent(()=>this.onModelContentChanged())),this.localToDispose.add(this.editor.onDidChangeCursorPosition(()=>this.onCursorPositionChanged())),this.localToDispose.add(this.editor.onMouseDown(e=>this.onEditorMouseDown(e))),this.localToDispose.add(this.editor.onMouseUp(e=>this.onEditorMouseUp(e))),this.localToDispose.add({dispose:()=>{this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.updateScheduler&&this.updateScheduler.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,this.foldingStateMemento=null,this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null}}),this.onModelContentChanged())}onFoldingStrategyChanged(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()}getRangeProvider(e){if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new U(e),this._useFoldingProviders&&this.foldingModel){let t=K["o"].ordered(this.foldingModel.textModel);if(0===t.length&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions){const t=this.rangeProvider=new ie(e,this.foldingStateMemento.collapsedRegions,()=>{this.foldingStateMemento=null,this.onFoldingStrategyChanged()},3e4);return t}t.length>0&&(this.rangeProvider=new Q(e,t,()=>this.onModelContentChanged()))}return this.foldingStateMemento=null,this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onModelContentChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(()=>{const e=this.foldingModel;if(!e)return null;const t=this.getRangeProvider(e.textModel);let n=this.foldingRegionPromise=Object(s["h"])(e=>t.compute(e));return n.then(t=>{if(t&&n===this.foldingRegionPromise){let n;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){const e=t.setCollapsedAllOfType(K["n"].Imports.value,!0);e&&(n=se["c"].capture(this.editor),this._currentModelHasFoldedImports=e)}let i=this.editor.getSelections(),r=i?i.map(e=>e.startLineNumber):[];e.update(t,r),n&&n.restore(this.editor)}return e})}).then(void 0,e=>(Object(G["e"])(e),null)))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){let e=this.editor.getSelections();e&&this.hiddenRangeModel.adjustSelections(e)&&this.editor.setSelections(e)}this.editor.setHiddenAreas(e)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){const e=this.getFoldingModel();e&&e.then(e=>{if(e){let t=this.editor.getSelections();if(t&&t.length>0){let n=[];for(let i of t){let t=i.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(t)&&n.push(...e.getAllRegionsAtLine(t,e=>e.isCollapsed&&t>e.startLineNumber))}n.length&&(e.toggleCollapseState(n),this.reveal(t[0].getPosition()))}}}).then(void 0,G["e"])}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range)return;if(!e.event.leftButton&&!e.event.middleButton)return;const t=e.target.range;let n=!1;switch(e.target.type){case 4:const i=e.target.detail,r=e.target.element.offsetLeft,o=i.offsetX-r;if(o<5)return;n=!0;break;case 7:if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()){const t=e.target.detail;if(!t.isAfterLines)break}return;case 6:if(this.hiddenRangeModel.hasRanges()){let e=this.editor.getModel();if(e&&t.startColumn===e.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:n}}onEditorMouseUp(e){const t=this.getFoldingModel();if(!t||!this.mouseDownInfo||!e.target)return;let n=this.mouseDownInfo.lineNumber,i=this.mouseDownInfo.iconClicked,r=e.target.range;if(r&&r.startLineNumber===n){if(i){if(4!==e.target.type)return}else{let e=this.editor.getModel();if(!e||r.startColumn!==e.getLineMaxColumn(n))return}t.then(t=>{if(t){let r=t.getRegionAtLine(n);if(r&&r.startLineNumber===n){let o=r.isCollapsed;if(i||o){let i=e.event.altKey,s=[];if(i){let e=e=>!e.containedBy(r)&&!r.containedBy(e),n=t.getRegionsInside(null,e);for(const t of n)t.isCollapsed&&s.push(t);0===s.length&&(s=n)}else{let n=e.event.middleButton||e.event.shiftKey;if(n)for(const e of t.getRegionsInside(r))e.isCollapsed===o&&s.push(e);!o&&n&&0!==s.length||s.push(r)}t.toggleCollapseState(s),this.reveal({lineNumber:n,column:1})}}}}).then(void 0,G["e"])}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};ue.ID="editor.contrib.folding",ue=ae([le(1,re["b"])],ue);class he extends c["b"]{runEditorCommand(e,t,n){let i=ue.get(t);if(!i)return;let r=i.getFoldingModel();return r?(this.reportTelemetry(e,t),r.then(e=>{if(e){this.invoke(i,e,t,n);const r=t.getSelection();r&&i.reveal(r.getStartPosition())}})):void 0}getSelectedLines(e){let t=e.getSelections();return t?t.map(e=>e.startLineNumber):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map(e=>e+1):this.getSelectedLines(t)}run(e,t){}}function de(e){if(!r["l"](e)){if(!r["j"](e))return!1;const t=e;if(!r["l"](t.levels)&&!r["i"](t.levels))return!1;if(!r["l"](t.direction)&&!r["k"](t.direction))return!1;if(!r["l"](t.selectionLines)&&(!r["f"](t.selectionLines)||!t.selectionLines.every(r["i"])))return!1}return!0}class fe extends he{constructor(){super({id:"editor.unfold",label:i["a"]("unfoldAction.label","Unfold"),alias:"Unfold",precondition:ce,kbOpts:{kbExpr:P["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:de,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,n,i){let r=i&&i.levels||1,o=this.getLineNumbers(i,n);i&&"up"===i.direction?y(t,!1,r,o):b(t,!1,r,o)}}class pe extends he{constructor(){super({id:"editor.unfoldRecursively",label:i["a"]("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:ce,kbOpts:{kbExpr:P["a"].editorTextFocus,primary:Object(a["a"])(2089,2137),weight:100}})}invoke(e,t,n,i){b(t,!1,Number.MAX_VALUE,this.getSelectedLines(n))}}class ge extends he{constructor(){super({id:"editor.fold",label:i["a"]("foldAction.label","Fold"),alias:"Fold",precondition:ce,kbOpts:{kbExpr:P["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:de,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,n,i){let r=this.getLineNumbers(i,n);const o=i&&i.levels,s=i&&i.direction;"number"!==typeof o&&"string"!==typeof s?_(t,!0,r):"up"===s?y(t,!0,o||1,r):b(t,!0,o||1,r)}}class me extends he{constructor(){super({id:"editor.toggleFold",label:i["a"]("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:ce,kbOpts:{kbExpr:P["a"].editorTextFocus,primary:Object(a["a"])(2089,2090),weight:100}})}invoke(e,t,n){let i=this.getSelectedLines(n);v(t,1,i)}}class ve extends he{constructor(){super({id:"editor.foldRecursively",label:i["a"]("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:ce,kbOpts:{kbExpr:P["a"].editorTextFocus,primary:Object(a["a"])(2089,2135),weight:100}})}invoke(e,t,n){let i=this.getSelectedLines(n);b(t,!0,Number.MAX_VALUE,i)}}class be extends he{constructor(){super({id:"editor.foldAllBlockComments",label:i["a"]("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:ce,kbOpts:{kbExpr:P["a"].editorTextFocus,primary:Object(a["a"])(2089,2133),weight:100}})}invoke(e,t,n){if(t.regions.hasTypes())x(t,K["n"].Comment.value,!0);else{const e=n.getModel();if(!e)return;let i=V["a"].getComments(e.getLanguageIdentifier().id);if(i&&i.blockCommentStartToken){let e=new RegExp("^\\s*"+Object(o["u"])(i.blockCommentStartToken));S(t,e,!0)}}}}class ye extends he{constructor(){super({id:"editor.foldAllMarkerRegions",label:i["a"]("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:ce,kbOpts:{kbExpr:P["a"].editorTextFocus,primary:Object(a["a"])(2089,2077),weight:100}})}invoke(e,t,n){if(t.regions.hasTypes())x(t,K["n"].Region.value,!0);else{const e=n.getModel();if(!e)return;let i=V["a"].getFoldingRules(e.getLanguageIdentifier().id);if(i&&i.markers&&i.markers.start){let e=new RegExp(i.markers.start);S(t,e,!0)}}}}class _e extends he{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:i["a"]("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:ce,kbOpts:{kbExpr:P["a"].editorTextFocus,primary:Object(a["a"])(2089,2078),weight:100}})}invoke(e,t,n){if(t.regions.hasTypes())x(t,K["n"].Region.value,!1);else{const e=n.getModel();if(!e)return;let i=V["a"].getFoldingRules(e.getLanguageIdentifier().id);if(i&&i.markers&&i.markers.start){let e=new RegExp(i.markers.start);S(t,e,!1)}}}}class we extends he{constructor(){super({id:"editor.foldAllExcept",label:i["a"]("foldAllExcept.label","Fold All Regions Except Selected"),alias:"Fold All Regions Except Selected",precondition:ce,kbOpts:{kbExpr:P["a"].editorTextFocus,primary:Object(a["a"])(2089,2131),weight:100}})}invoke(e,t,n){let i=this.getSelectedLines(n);C(t,!0,i)}}class Ce extends he{constructor(){super({id:"editor.unfoldAllExcept",label:i["a"]("unfoldAllExcept.label","Unfold All Regions Except Selected"),alias:"Unfold All Regions Except Selected",precondition:ce,kbOpts:{kbExpr:P["a"].editorTextFocus,primary:Object(a["a"])(2089,2129),weight:100}})}invoke(e,t,n){let i=this.getSelectedLines(n);C(t,!1,i)}}class Se extends he{constructor(){super({id:"editor.foldAll",label:i["a"]("foldAllAction.label","Fold All"),alias:"Fold All",precondition:ce,kbOpts:{kbExpr:P["a"].editorTextFocus,primary:Object(a["a"])(2089,2069),weight:100}})}invoke(e,t,n){b(t,!0)}}class xe extends he{constructor(){super({id:"editor.unfoldAll",label:i["a"]("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:ce,kbOpts:{kbExpr:P["a"].editorTextFocus,primary:Object(a["a"])(2089,2088),weight:100}})}invoke(e,t,n){b(t,!1)}}class Oe extends he{getFoldingLevel(){return parseInt(this.id.substr(Oe.ID_PREFIX.length))}invoke(e,t,n){w(t,this.getFoldingLevel(),!0,this.getSelectedLines(n))}}Oe.ID_PREFIX="editor.foldLevel",Oe.ID=e=>Oe.ID_PREFIX+e;class ke extends he{constructor(){super({id:"editor.gotoParentFold",label:i["a"]("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:ce,kbOpts:{kbExpr:P["a"].editorTextFocus,weight:100}})}invoke(e,t,n){let i=this.getSelectedLines(n);if(i.length>0){let e=O(i[0],t);null!==e&&n.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}class Le extends he{constructor(){super({id:"editor.gotoPreviousFold",label:i["a"]("gotoPreviousFold.label","Go to Previous Fold"),alias:"Go to Previous Fold",precondition:ce,kbOpts:{kbExpr:P["a"].editorTextFocus,weight:100}})}invoke(e,t,n){let i=this.getSelectedLines(n);if(i.length>0){let e=k(i[0],t);null!==e&&n.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}class Ee extends he{constructor(){super({id:"editor.gotoNextFold",label:i["a"]("gotoNextFold.label","Go to Next Fold"),alias:"Go to Next Fold",precondition:ce,kbOpts:{kbExpr:P["a"].editorTextFocus,weight:100}})}invoke(e,t,n){let i=this.getSelectedLines(n);if(i.length>0){let e=L(i[0],t);null!==e&&n.setSelection({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:1})}}}Object(c["l"])(ue.ID,ue),Object(c["j"])(fe),Object(c["j"])(pe),Object(c["j"])(ge),Object(c["j"])(ve),Object(c["j"])(Se),Object(c["j"])(xe),Object(c["j"])(be),Object(c["j"])(ye),Object(c["j"])(_e),Object(c["j"])(we),Object(c["j"])(Ce),Object(c["j"])(me),Object(c["j"])(ke),Object(c["j"])(Le),Object(c["j"])(Ee);for(let Me=1;Me<=7;Me++)Object(c["m"])(new Oe({id:Oe.ID(Me),label:i["a"]("foldLevelAction.label","Fold Level {0}",Me),alias:"Fold Level "+Me,precondition:ce,kbOpts:{kbExpr:P["a"].editorTextFocus,primary:Object(a["a"])(2089,2048|21+Me),weight:100}}));const De=Object(oe["wc"])("editor.foldBackground",{light:Object(oe["Kc"])(oe["R"],.3),dark:Object(oe["Kc"])(oe["R"],.3),hc:null},i["a"]("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0),Ie=Object(oe["wc"])("editorGutter.foldingControlForeground",{dark:oe["fb"],light:oe["fb"],hc:oe["fb"]},i["a"]("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));Object(M["f"])((e,t)=>{const n=e.getColor(De);n&&t.addRule(`.monaco-editor .folded-background { background-color: ${n}; }`);const i=e.getColor(Ie);i&&t.addRule(`\n\t\t.monaco-editor .cldr${M["d"].asCSSSelector(T)},\n\t\t.monaco-editor .cldr${M["d"].asCSSSelector(A)} {\n\t\t\tcolor: ${i} !important;\n\t\t}\n\t\t`)})},"767a":function(e,t,n){"use strict";n("5798")},"76a5":function(e,t,n){"use strict";n.d(t,"c",(function(){return _})),n.d(t,"b",(function(){return C}));var i=n("9ab4"),r=n("d409"),o=n("dd4f"),s=n("6d8b"),a=n("e86a"),l=n("0da8"),c=n("c7a2"),u=n("9850"),h=n("19eb"),d=n("726e"),f={fill:"#000"},p=2,g={style:Object(s["defaults"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},h["a"].style)},m=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=f,n.attr(t),n}return Object(i["a"])(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,S(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new u["a"](0,0,0,0),t=this._children,n=[],i=null,r=0;r<t.length;r++){var o=t[r],s=o.getBoundingRect(),a=o.getLocalTransform(n);a?(e.copy(s),e.applyTransform(a),i=i||e.clone(),i.union(e)):(i=i||s.clone(),i.union(s))}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||f},t.prototype.setTextContent=function(e){0},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,i=e.rich||n&&{};return Object(s["extend"])(e,t),n&&i?(this._mergeRich(i,n),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,t){for(var n=Object(s["keys"])(t),i=0;i<n.length;i++){var r=n[i];e[r]=e[r]||{},Object(s["extend"])(e[r],t[r])}},t.prototype.getAnimationStyleProps=function(){return g},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||d["a"],n=e.padding,i=E(e),s=Object(r["a"])(i,e),l=D(e),c=!!e.backgroundColor,h=s.outerHeight,f=s.outerWidth,g=s.contentWidth,m=s.lines,v=s.lineHeight,b=this._defaultStyle,y=e.x||0,_=e.y||0,C=e.align||b.align||"left",S=e.verticalAlign||b.verticalAlign||"top",x=y,I=Object(a["b"])(_,s.contentHeight,S);if(l||n){var M=Object(a["a"])(y,f,C),T=Object(a["b"])(_,h,S);l&&this._renderBackground(e,e,M,T,f,h)}I+=v/2,n&&(x=L(y,C,n),"top"===S?I+=n[0]:"bottom"===S&&(I-=n[2]));for(var A=0,N=!1,P=(k("fill"in e?e.fill:(N=!0,b.fill))),j=(O("stroke"in e?e.stroke:c||b.autoStroke&&!N?null:(A=p,b.stroke))),R=e.textShadowBlur>0,F=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),B=s.calculatedLineHeight,W=0;W<m.length;W++){var V=this._getOrCreateChild(o["a"]),z=V.createStyle();V.useStyle(z),z.text=m[W],z.x=x,z.y=I,C&&(z.textAlign=C),z.textBaseline="middle",z.opacity=e.opacity,z.strokeFirst=!0,R&&(z.shadowBlur=e.textShadowBlur||0,z.shadowColor=e.textShadowColor||"transparent",z.shadowOffsetX=e.textShadowOffsetX||0,z.shadowOffsetY=e.textShadowOffsetY||0),z.stroke=j,z.fill=P,j&&(z.lineWidth=e.lineWidth||A,z.lineDash=e.lineDash,z.lineDashOffset=e.lineDashOffset||0),z.font=t,w(z,e),I+=v,F&&V.setBoundingRect(new u["a"](Object(a["a"])(z.x,e.width,z.textAlign),Object(a["b"])(z.y,B,z.textBaseline),g,B))}},t.prototype._updateRichTexts=function(){var e=this.style,t=E(e),n=Object(r["b"])(t,e),i=n.width,o=n.outerWidth,s=n.outerHeight,l=e.padding,c=e.x||0,u=e.y||0,h=this._defaultStyle,d=e.align||h.align,f=e.verticalAlign||h.verticalAlign,p=Object(a["a"])(c,o,d),g=Object(a["b"])(u,s,f),m=p,v=g;l&&(m+=l[3],v+=l[0]);var b=m+i;D(e)&&this._renderBackground(e,e,p,g,o,s);for(var y=!!e.backgroundColor,_=0;_<n.lines.length;_++){var w=n.lines[_],C=w.tokens,S=C.length,x=w.lineHeight,O=w.width,k=0,L=m,I=b,M=S-1,T=void 0;while(k<S&&(T=C[k],!T.align||"left"===T.align))this._placeToken(T,e,x,v,L,"left",y),O-=T.width,L+=T.width,k++;while(M>=0&&(T=C[M],"right"===T.align))this._placeToken(T,e,x,v,I,"right",y),O-=T.width,I-=T.width,M--;L+=(i-(L-m)-(b-I)-O)/2;while(k<=M)T=C[k],this._placeToken(T,e,x,v,L+T.width/2,"center",y),L+=T.width,k++;v+=x}},t.prototype._placeToken=function(e,t,n,i,r,l,c){var h=t.rich[e.styleName]||{};h.text=e.text;var f=e.verticalAlign,g=i+n/2;"top"===f?g=i+e.height/2:"bottom"===f&&(g=i+n-e.height/2);var m=!e.isLineHolder&&D(h);m&&this._renderBackground(h,t,"right"===l?r-e.width:"center"===l?r-e.width/2:r,g-e.height/2,e.width,e.height);var v=!!h.backgroundColor,b=e.textPadding;b&&(r=L(r,l,b),g-=e.height/2-b[0]-e.innerHeight/2);var y=this._getOrCreateChild(o["a"]),_=y.createStyle();y.useStyle(_);var C=this._defaultStyle,S=!1,x=0,E=k("fill"in h?h.fill:"fill"in t?t.fill:(S=!0,C.fill)),I=O("stroke"in h?h.stroke:"stroke"in t?t.stroke:v||c||C.autoStroke&&!S?null:(x=p,C.stroke)),M=h.textShadowBlur>0||t.textShadowBlur>0;_.text=e.text,_.x=r,_.y=g,M&&(_.shadowBlur=h.textShadowBlur||t.textShadowBlur||0,_.shadowColor=h.textShadowColor||t.textShadowColor||"transparent",_.shadowOffsetX=h.textShadowOffsetX||t.textShadowOffsetX||0,_.shadowOffsetY=h.textShadowOffsetY||t.textShadowOffsetY||0),_.textAlign=l,_.textBaseline="middle",_.font=e.font||d["a"],_.opacity=Object(s["retrieve3"])(h.opacity,t.opacity,1),w(_,h),I&&(_.lineWidth=Object(s["retrieve3"])(h.lineWidth,t.lineWidth,x),_.lineDash=Object(s["retrieve2"])(h.lineDash,t.lineDash),_.lineDashOffset=t.lineDashOffset||0,_.stroke=I),E&&(_.fill=E);var T=e.contentWidth,A=e.contentHeight;y.setBoundingRect(new u["a"](Object(a["a"])(_.x,T,_.textAlign),Object(a["b"])(_.y,A,_.textBaseline),T,A))},t.prototype._renderBackground=function(e,t,n,i,r,o){var a,u,h=e.backgroundColor,d=e.borderWidth,f=e.borderColor,p=h&&h.image,g=h&&!p,m=e.borderRadius,v=this;if(g||e.lineHeight||d&&f){a=this._getOrCreateChild(c["a"]),a.useStyle(a.createStyle()),a.style.fill=null;var b=a.shape;b.x=n,b.y=i,b.width=r,b.height=o,b.r=m,a.dirtyShape()}if(g){var y=a.style;y.fill=h||null,y.fillOpacity=Object(s["retrieve2"])(e.fillOpacity,1)}else if(p){u=this._getOrCreateChild(l["a"]),u.onload=function(){v.dirtyStyle()};var _=u.style;_.image=h.image,_.x=n,_.y=i,_.width=r,_.height=o}if(d&&f){y=a.style;y.lineWidth=d,y.stroke=f,y.strokeOpacity=Object(s["retrieve2"])(e.strokeOpacity,1),y.lineDash=e.borderDash,y.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var w=(a||u).style;w.shadowBlur=e.shadowBlur||0,w.shadowColor=e.shadowColor||"transparent",w.shadowOffsetX=e.shadowOffsetX||0,w.shadowOffsetY=e.shadowOffsetY||0,w.opacity=Object(s["retrieve3"])(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return C(e)&&(t=[e.fontStyle,e.fontWeight,_(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Object(s["trim"])(t)||e.textFont||e.font},t}(h["c"]),v={left:!0,right:1,center:1},b={top:1,bottom:1,middle:1},y=["fontStyle","fontWeight","fontSize","fontFamily"];function _(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?d["c"]+"px":e+"px":e}function w(e,t){for(var n=0;n<y.length;n++){var i=y[n],r=t[i];null!=r&&(e[i]=r)}}function C(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function S(e){return x(e),Object(s["each"])(e.rich,x),e}function x(e){if(e){e.font=m.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||v[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||b[n]?n:"top";var i=e.padding;i&&(e.padding=Object(s["normalizeCssArray"])(e.padding))}}function O(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function k(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function L(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function E(e){var t=e.text;return null!=t&&(t+=""),t}function D(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}t["a"]=m},"77a4":function(e,t,n){"use strict";n.r(t),n.d(t,"CodeLensContribution",(function(){return K}));var i=n("5fe7"),r=n("fdcc"),o=n("a666"),s=n("bc04"),a=n("b2cc"),l=n("b707"),c=n("2504"),u=n("6d8e"),h=n("1b69"),d=n("9e74"),f=n("ef8e"),p=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class g{constructor(){this.lenses=[],this._disposables=new o["b"]}dispose(){this._disposables.dispose()}add(e,t){this._disposables.add(e);for(const n of e.lenses)this.lenses.push({symbol:n,provider:t})}}function m(e,t){return p(this,void 0,void 0,(function*(){const n=l["b"].ordered(e),i=new Map,o=new g,s=n.map((n,s)=>p(this,void 0,void 0,(function*(){i.set(n,s);try{const i=yield Promise.resolve(n.provideCodeLenses(e,t));i&&o.add(i,n)}catch(a){Object(r["f"])(a)}})));return yield Promise.all(s),o.lenses=o.lenses.sort((e,t)=>e.symbol.range.startLineNumber<t.symbol.range.startLineNumber?-1:e.symbol.range.startLineNumber>t.symbol.range.startLineNumber?1:i.get(e.provider)<i.get(t.provider)?-1:i.get(e.provider)>i.get(t.provider)?1:e.symbol.range.startColumn<t.symbol.range.startColumn?-1:e.symbol.range.startColumn>t.symbol.range.startColumn?1:0),o}))}d["a"].registerCommand("_executeCodeLensProvider",(function(e,...t){let[n,i]=t;Object(f["c"])(u["a"].isUri(n)),Object(f["c"])("number"===typeof i||!i);const s=e.get(h["a"]).getModel(n);if(!s)throw Object(r["b"])();const a=[],l=new o["b"];return m(s,c["a"].None).then(e=>{l.add(e);let t=[];for(const n of e.lenses)void 0===i||null===i||Boolean(n.symbol.command)?a.push(n.symbol):i-- >0&&n.provider.resolveCodeLens&&t.push(Promise.resolve(n.provider.resolveCodeLens(s,n.symbol,c["a"].None)).then(e=>a.push(e||n.symbol)));return Promise.all(t)}).then(()=>a).finally(()=>{setTimeout(()=>l.dispose(),100)})}));n("44c7");var v=n("11f7"),b=n("6a89"),y=n("b57f"),_=n("918c"),w=n("303e"),C=n("b7d0"),S=n("7ddc");class x{constructor(e,t,n){this.afterLineNumber=e,this.heightInPx=t,this._onHeight=n,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}}class O{constructor(e,t,n){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id="codelens.widget-"+O._idPool++,this.updatePosition(n),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration "+t}withCommands(e,t){this._commands.clear();let n=[],i=!1;for(let r=0;r<e.length;r++){const t=e[r];if(t&&(i=!0,t.command)){const i=Object(S["a"])(t.command.title.trim());t.command.id?(n.push(v["a"]("a",{id:String(r),title:t.command.tooltip},...i)),this._commands.set(String(r),t.command)):n.push(v["a"]("span",{title:t.command.tooltip},...i)),r+1<e.length&&n.push(v["a"]("span",void 0," | "))}}i?(v["R"](this._domNode,...n),this._isEmpty&&t&&this._domNode.classList.add("fadein"),this._isEmpty=!1):v["R"](this._domNode,v["a"]("span",void 0,"no commands"))}getCommand(e){return e.parentElement===this._domNode?this._commands.get(e.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(e){const t=this._editor.getModel().getLineFirstNonWhitespaceColumn(e);this._widgetPosition={position:{lineNumber:e,column:t},preference:[1]}}getPosition(){return this._widgetPosition||null}}O._idPool=0;class k{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)}removeDecoration(e){this._removeDecorations.push(e)}commit(e){let t=e.deltaDecorations(this._removeDecorations,this._addDecorations);for(let n=0,i=t.length;n<i;n++)this._addDecorationsCallbacks[n](t[n])}}class L{constructor(e,t,n,i,r,o,s){let a;this._isDisposed=!1,this._editor=t,this._className=n,this._data=e,this._decorationIds=[];let l=[];this._data.forEach((e,t)=>{e.symbol.command&&l.push(e.symbol),i.addDecoration({range:e.symbol.range,options:y["a"].EMPTY},e=>this._decorationIds[t]=e),a=a?b["a"].plusRange(a,e.symbol.range):b["a"].lift(e.symbol.range)}),this._viewZone=new x(a.startLineNumber-1,o,s),this._viewZoneId=r.addZone(this._viewZone),l.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new O(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(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}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{const n=this._editor.getModel().getDecorationRange(e),i=this._data[t].symbol;return!(!n||b["a"].isEmpty(i.range)!==n.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((e,n)=>{t.addDecoration({range:e.symbol.range,options:y["a"].EMPTY},e=>this._decorationIds[n]=e)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.domNode.hasAttribute("monaco-visible-view-zone"))return null;for(let t=0;t<this._decorationIds.length;t++){const n=e.getDecorationRange(this._decorationIds[t]);n&&(this._data[t].symbol.range=n)}return this._data}updateCommands(e){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(e,!0);for(let t=0;t<this._data.length;t++){const n=e[t];if(n){const{symbol:e}=this._data[t];e.command=n.command||e.command}}}getCommand(e){var t;return null===(t=this._contentWidget)||void 0===t?void 0:t.getCommand(e)}getLineNumber(){const e=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return e?e.startLineNumber:-1}update(e){if(this.isValid()){const 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)))}}getItems(){return this._data}}Object(C["f"])((e,t)=>{const n=e.getColor(_["e"]);n&&(t.addRule(`.monaco-editor .codelens-decoration { color: ${n}; }`),t.addRule(`.monaco-editor .codelens-decoration .codicon { color: ${n}; }`));const i=e.getColor(w["q"]);i&&(t.addRule(`.monaco-editor .codelens-decoration > a:hover { color: ${i} !important; }`),t.addRule(`.monaco-editor .codelens-decoration > a:hover .codicon { color: ${i} !important; }`))});var E=n("b0cd"),D=n("0a0f"),I=n("f5f3"),M=n("4035"),T=n("03e8"),A=n("0bfb"),N=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},P=function(e,t){return function(n,i){t(n,i,e)}};const j=Object(D["c"])("ICodeLensCache");class R{constructor(e,t){this.lineCount=e,this.data=t}}let F=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new M["a"](20,.75);const t="codelens/cache";Object(i["m"])(()=>e.remove(t,1));const n="codelens/cache2",r=e.get(n,1,"{}");this._deserialize(r),Object(A["a"])(e.onWillSaveState)(t=>{t.reason===T["c"].SHUTDOWN&&e.store(n,this._serialize(),1,1)})}put(e,t){const n=t.lenses.map(e=>{var t;return{range:e.symbol.range,command:e.symbol.command&&{id:"",title:null===(t=e.symbol.command)||void 0===t?void 0:t.title}}}),i=new g;i.add({lenses:n,dispose:()=>{}},this._fakeProvider);const r=new R(e.getLineCount(),i);this._cache.set(e.uri.toString(),r)}get(e){const t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){const e=Object.create(null);for(const[t,n]of this._cache){const i=new Set;for(const e of n.data.lenses)i.add(e.symbol.range.startLineNumber);e[t]={lineCount:n.lineCount,lines:[...i.values()]}}return JSON.stringify(e)}_deserialize(e){try{const t=JSON.parse(e);for(const e in t){const n=t[e],i=[];for(const e of n.lines)i.push({range:new b["a"](e,1,e,11)});const r=new g;r.add({lenses:i,dispose(){}},this._fakeProvider),this._cache.set(e,new R(n.lineCount,r))}}catch(t){}}};F=N([P(0,T["a"])],F),Object(I["b"])(j,F);var B=n("eda7"),W=n("66bd"),V=n("dff7"),z=n("c101"),H=n("6a5d"),U=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},q=function(e,t){return function(n,i){t(n,i,e)}},$=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let K=class{constructor(e,t,n,r){this._editor=e,this._commandService=t,this._notificationService=n,this._codeLensCache=r,this._disposables=new o["b"],this._localToDispose=new o["b"],this._lenses=[],this._getCodeLensModelDelays=new H["b"](l["b"],250,2500),this._oldCodeLensModels=new o["b"],this._resolveCodeLensesDelays=new H["b"](l["b"],250,2500),this._resolveCodeLensesScheduler=new i["e"](()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDelays.min),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(e=>{(e.hasChanged(41)||e.hasChanged(14)||e.hasChanged(13))&&this._updateLensStyle(),e.hasChanged(12)&&this._onModelChange()})),this._disposables.add(l["b"].onDidChange(this._onModelChange,this)),this._onModelChange(),this._styleClassName="_"+Object(B["b"])(this._editor.getId()).toString(16),this._styleElement=v["w"](v["O"](this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),null===(e=this._currentCodeLensModel)||void 0===e||e.dispose(),this._styleElement.remove()}_getLayoutInfo(){let e,t=this._editor.getOption(14);return!t||t<5?(t=.9*this._editor.getOption(43)|0,e=this._editor.getOption(57)):e=t*Math.max(1.3,this._editor.getOption(57)/this._editor.getOption(43))|0,{codeLensHeight:e,fontSize:t}}_updateLensStyle(){const{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),n=this._editor.getOption(13),i=this._editor.getOption(41),r="--codelens-font-family"+this._styleClassName,o="--codelens-font-features"+this._styleClassName;let s=`\n\t\t.monaco-editor .codelens-decoration.${this._styleClassName} { line-height: ${e}px; font-size: ${t}px; padding-right: ${Math.round(.5*t)}px; font-feature-settings: var(${o}) }\n\t\t.monaco-editor .codelens-decoration.${this._styleClassName} span.codicon { line-height: ${e}px; font-size: ${t}px; }\n\t\t`;n&&(s+=`.monaco-editor .codelens-decoration.${this._styleClassName} { font-family: var(${r})}`),this._styleElement.textContent=s,this._editor.getContainerDomNode().style.setProperty(r,null!==n&&void 0!==n?n:"inherit"),this._editor.getContainerDomNode().style.setProperty(o,i.fontFeatureSettings),this._editor.changeViewZones(t=>{for(let n of this._lenses)n.updateHeight(e,t)})}_localDispose(){var e,t,n;null===(e=this._getCodeLensModelPromise)||void 0===e||e.cancel(),this._getCodeLensModelPromise=void 0,null===(t=this._resolveCodeLensesPromise)||void 0===t||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),null===(n=this._currentCodeLensModel)||void 0===n||n.dispose()}_onModelChange(){this._localDispose();const e=this._editor.getModel();if(!e)return;if(!this._editor.getOption(12))return;const t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!l["b"].has(e))return void(t&&this._localToDispose.add(Object(i["i"])(()=>{const n=this._codeLensCache.get(e);t===n&&(this._codeLensCache.delete(e),this._onModelChange())},3e4)));for(const i of l["b"].all(e))if("function"===typeof i.onDidChange){let e=i.onDidChange(()=>n.schedule());this._localToDispose.add(e)}const n=new i["e"](()=>{var t;const o=Date.now();null===(t=this._getCodeLensModelPromise)||void 0===t||t.cancel(),this._getCodeLensModelPromise=Object(i["h"])(t=>m(e,t)),this._getCodeLensModelPromise.then(t=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=t,this._codeLensCache.put(e,t);const i=this._getCodeLensModelDelays.update(e,Date.now()-o);n.delay=i,this._renderCodeLensSymbols(t),this._resolveCodeLensesInViewport()},r["e"])},this._getCodeLensModelDelays.get(e));this._localToDispose.add(n),this._localToDispose.add(Object(o["i"])(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._editor.changeDecorations(e=>{this._editor.changeViewZones(t=>{let n=[],i=-1;this._lenses.forEach(e=>{e.isValid()&&i!==e.getLineNumber()?(e.update(t),i=e.getLineNumber()):n.push(e)});let r=new k;n.forEach(e=>{e.dispose(r,t),this._lenses.splice(this._lenses.indexOf(e),1)}),r.commit(e)})}),n.schedule()})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{n.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(e=>{e.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(Object(o["i"])(()=>{if(this._editor.getModel()){const e=s["c"].capture(this._editor);this._editor.changeDecorations(e=>{this._editor.changeViewZones(t=>{this._disposeAllLenses(e,t)})}),e.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(e=>{if(9!==e.target.type)return;let t=e.target.element;if("SPAN"===(null===t||void 0===t?void 0:t.tagName)&&(t=t.parentElement),"A"===(null===t||void 0===t?void 0:t.tagName))for(const n of this._lenses){let e=n.getCommand(t);if(e){this._commandService.executeCommand(e.id,...e.arguments||[]).catch(e=>this._notificationService.error(e));break}}})),n.schedule()}_disposeAllLenses(e,t){const n=new k;for(const i of this._lenses)i.dispose(n,t);e&&n.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;let t,n=this._editor.getModel().getLineCount(),i=[];for(let s of e.lenses){let e=s.symbol.range.startLineNumber;e<1||e>n||(t&&t[t.length-1].symbol.range.startLineNumber===e?t.push(s):(t=[s],i.push(t)))}const r=s["c"].capture(this._editor),o=this._getLayoutInfo();this._editor.changeDecorations(e=>{this._editor.changeViewZones(t=>{const n=new k;let r=0,s=0;while(s<i.length&&r<this._lenses.length){let e=i[s][0].symbol.range.startLineNumber,a=this._lenses[r].getLineNumber();a<e?(this._lenses[r].dispose(n,t),this._lenses.splice(r,1)):a===e?(this._lenses[r].updateCodeLensSymbols(i[s],n),s++,r++):(this._lenses.splice(r,0,new L(i[s],this._editor,this._styleClassName,n,t,o.codeLensHeight,()=>this._resolveCodeLensesInViewportSoon())),r++,s++)}while(r<this._lenses.length)this._lenses[r].dispose(n,t),this._lenses.splice(r,1);while(s<i.length)this._lenses.push(new L(i[s],this._editor,this._styleClassName,n,t,o.codeLensHeight,()=>this._resolveCodeLensesInViewportSoon())),s++;n.commit(e)})}),r.restore(this._editor)}_resolveCodeLensesInViewportSoon(){const e=this._editor.getModel();e&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;null===(e=this._resolveCodeLensesPromise)||void 0===e||e.cancel(),this._resolveCodeLensesPromise=void 0;const t=this._editor.getModel();if(!t)return;const n=[],o=[];if(this._lenses.forEach(e=>{const i=e.computeIfNecessary(t);i&&(n.push(i),o.push(e))}),0===n.length)return;const s=Date.now(),a=Object(i["h"])(e=>{const i=n.map((n,i)=>{const s=new Array(n.length),a=n.map((n,i)=>n.symbol.command||"function"!==typeof n.provider.resolveCodeLens?(s[i]=n.symbol,Promise.resolve(void 0)):Promise.resolve(n.provider.resolveCodeLens(t,n.symbol,e)).then(e=>{s[i]=e},r["f"]));return Promise.all(a).then(()=>{e.isCancellationRequested||o[i].isDisposed()||o[i].updateCommands(s)})});return Promise.all(i)});this._resolveCodeLensesPromise=a,this._resolveCodeLensesPromise.then(()=>{const e=this._resolveCodeLensesDelays.update(t,Date.now()-s);this._resolveCodeLensesScheduler.delay=e,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},e=>{Object(r["e"])(e),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getLenses(){return this._lenses}};K.ID="css.editor.codeLens",K=U([q(1,d["b"]),q(2,E["a"]),q(3,j)],K),Object(a["l"])(K.ID,K),Object(a["j"])(class extends a["b"]{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:z["a"].hasCodeLensProvider,label:Object(V["a"])("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return $(this,void 0,void 0,(function*(){if(!t.hasModel())return;const n=e.get(W["a"]),i=e.get(d["b"]),r=e.get(E["a"]),o=t.getSelection().positionLineNumber,s=t.getContribution(K.ID),a=[];for(let e of s.getLenses())if(e.getLineNumber()===o)for(let t of e.getItems()){const{command:e}=t.symbol;e&&a.push({label:e.title,command:e})}if(0===a.length)return;const l=yield n.pick(a,{canPickMany:!1});if(l)try{yield i.executeCommand(l.command.id,...l.command.arguments||[])}catch(c){r.error(c)}}))}})},"77db":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:function(){return n.e("chunk-2d0a3196").then(n.bind(null,"0176"))}})},"77e9":function(e,t,n){var i=n("7a41");e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},"780f":function(e,t,n){"use strict";n("d585"),n("9c1d"),n("4a64"),n("d0b6"),n("3765"),n("6e4e"),n("2935"),n("6daf"),n("c36f"),n("0b11"),n("77a4"),n("db2d"),n("9f4d"),n("7c3e"),n("e516"),n("fd11"),n("a106"),n("7605"),n("6df4"),n("7082"),n("891c"),n("2e66"),n("f187"),n("1f84"),n("958f"),n("aee8"),n("bc61"),n("6e62"),n("1af3"),n("747f"),n("7eb7"),n("d844"),n("f17c"),n("5b02"),n("43ad"),n("d741"),n("b574"),n("7a9e");var i=n("dff7"),r=n("b2cc"),o=n("e58e");class s extends r["b"]{constructor(){super({id:"editor.action.forceRetokenize",label:i["a"]("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;const n=t.getModel();n.resetTokenization();const i=new o["a"](!0);n.forceTokenization(n.getLineCount()),i.stop(),console.log("tokenization took "+i.elapsed())}}Object(r["j"])(s);n("93ba"),n("87a3"),n("23ec"),n("5ed2"),n("b3b2"),n("2d47"),n("03d9"),n("b9db")},"782c":function(e,t,n){"use strict";(function(t){var i;function r(e,t,n){return t=o(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=s(e,"string");return"symbol"===typeof t?t:String(t)}function s(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var a=n("bf09"),l=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),h=Symbol("ended"),d=Symbol("lastPromise"),f=Symbol("handlePromise"),p=Symbol("stream");function g(e,t){return{value:e,done:t}}function m(e){var t=e[l];if(null!==t){var n=e[p].read();null!==n&&(e[d]=null,e[l]=null,e[c]=null,t(g(n,!1)))}}function v(e){t.nextTick(m,e)}function b(e,t){return function(n,i){e.then((function(){t[h]?n(g(void 0,!0)):t[f](n,i)}),i)}}var y=Object.getPrototypeOf((function(){})),_=Object.setPrototypeOf((i={get stream(){return this[p]},next:function(){var e=this,n=this[u];if(null!==n)return Promise.reject(n);if(this[h])return Promise.resolve(g(void 0,!0));if(this[p].destroyed)return new Promise((function(n,i){t.nextTick((function(){e[u]?i(e[u]):n(g(void 0,!0))}))}));var i,r=this[d];if(r)i=new Promise(b(r,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(g(o,!1));i=new Promise(this[f])}return this[d]=i,i}},r(i,Symbol.asyncIterator,(function(){return this})),r(i,"return",(function(){var e=this;return new Promise((function(t,n){e[p].destroy(null,(function(e){e?n(e):t(g(void 0,!0))}))}))})),i),y),w=function(e){var t,n=Object.create(_,(t={},r(t,p,{value:e,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,u,{value:null,writable:!0}),r(t,h,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var i=n[p].read();i?(n[d]=null,n[l]=null,n[c]=null,e(g(i,!1))):(n[l]=e,n[c]=t)},writable:!0}),t));return n[d]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[c];return null!==t&&(n[d]=null,n[l]=null,n[c]=null,t(e)),void(n[u]=e)}var i=n[l];null!==i&&(n[d]=null,n[l]=null,n[c]=null,i(g(void 0,!0))),n[h]=!0})),e.on("readable",v.bind(null,n)),n};e.exports=w}).call(this,n("4362"))},"782d":function(e,t,n){},7837:function(e,t,n){"use strict";n.d(t,"g",(function(){return h})),n.d(t,"e",(function(){return d})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return w})),n.d(t,"f",(function(){return C})),n.d(t,"h",(function(){return S})),n.d(t,"a",(function(){return x}));var i=n("76a5"),r=n("6d8b"),o=n("7d6c"),s=n("e0d3"),a=n("deca"),l={};function c(e,t){for(var n=0;n<o["g"].length;n++){var i=o["g"][n],r=t[i],s=e.ensureState(i);s.style=s.style||{},s.style.text=r}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function u(e,t,n){var i,s=e.labelFetcher,a=e.labelDataIndex,l=e.labelDimIndex,c=t.normal;s&&(i=s.getFormattedLabel(a,"normal",null,l,c&&c.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=Object(r["isFunction"])(e.defaultText)?e.defaultText(a,e,n):e.defaultText);for(var u={normal:i},h=0;h<o["g"].length;h++){var d=o["g"][h],f=t[d];u[d]=Object(r["retrieve2"])(s?s.getFormattedLabel(a,d,null,l,f&&f.get("formatter")):null,i)}return u}function h(e,t,n,s){n=n||l;for(var a=e instanceof i["a"],h=!1,d=0;d<o["a"].length;d++){var g=t[o["a"][d]];if(g&&g.getShallow("show")){h=!0;break}}var m=a?e:e.getTextContent();if(h){a||(m||(m=new i["a"],e.setTextContent(m)),e.stateProxy&&(m.stateProxy=e.stateProxy));var v=u(n,t),b=t.normal,y=!!b.getShallow("show"),_=f(b,s&&s.normal,n,!1,!a);_.text=v.normal,a||e.setTextConfig(p(b,n,!1));for(d=0;d<o["g"].length;d++){var w=o["g"][d];g=t[w];if(g){var S=m.ensureState(w),x=!!Object(r["retrieve2"])(g.getShallow("show"),y);if(x!==y&&(S.ignore=!x),S.style=f(g,s&&s[w],n,!0,!a),S.style.text=v[w],!a){var O=e.ensureState(w);O.textConfig=p(g,n,!0)}}}m.silent=!!b.getShallow("silent"),null!=m.style.x&&(_.x=m.style.x),null!=m.style.y&&(_.y=m.style.y),m.ignore=!y,m.useStyle(_),m.dirty(),n.enableTextSetter&&(C(m).setLabelText=function(e){var i=u(n,t,e);c(m,i)})}else m&&(m.ignore=!0);e.dirty()}function d(e,t){t=t||"label";for(var n={normal:e.getModel(t)},i=0;i<o["g"].length;i++){var r=o["g"][i];n[r]=e.getModel([r,t])}return n}function f(e,t,n,i,o){var s={};return g(s,e,n,i,o),t&&Object(r["extend"])(s,t),s}function p(e,t,n){t=t||{};var i,o={},s=e.getShallow("rotate"),a=Object(r["retrieve2"])(e.getShallow("distance"),n?null:5),l=e.getShallow("offset");return i=e.getShallow("position")||(n?null:"inside"),"outside"===i&&(i=t.defaultOutsidePosition||"top"),null!=i&&(o.position=i),null!=l&&(o.offset=l),null!=s&&(s*=Math.PI/180,o.rotation=s),null!=a&&(o.distance=a),o.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",o}function g(e,t,n,i,r){n=n||l;var o,s=t.ecModel,a=s&&s.option.textStyle,c=m(t);if(c)for(var u in o={},c)if(c.hasOwnProperty(u)){var h=t.getModel(["rich",u]);_(o[u]={},h,a,n,i,r,!1,!0)}o&&(e.rich=o);var d=t.get("overflow");d&&(e.overflow=d);var f=t.get("minMargin");null!=f&&(e.margin=f),_(e,t,a,n,i,r,!0,!1)}function m(e){var t;while(e&&e!==e.ecModel){var n=(e.option||l).rich;if(n){t=t||{};for(var i=Object(r["keys"])(n),o=0;o<i.length;o++){var s=i[o];t[s]=1}}e=e.parentModel}return t}var v=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],b=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],y=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function _(e,t,n,i,o,s,a,c){n=!o&&n||l;var u=i&&i.inheritColor,h=t.getShallow("color"),d=t.getShallow("textBorderColor"),f=Object(r["retrieve2"])(t.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=u||null),"inherit"!==d&&"auto"!==d||(d=u||null),s||(h=h||n.color,d=d||n.textBorderColor),null!=h&&(e.fill=h),null!=d&&(e.stroke=d);var p=Object(r["retrieve2"])(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=p&&(e.lineWidth=p);var g=Object(r["retrieve2"])(t.getShallow("textBorderType"),n.textBorderType);null!=g&&(e.lineDash=g);var m=Object(r["retrieve2"])(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=m&&(e.lineDashOffset=m),o||null!=f||c||(f=i&&i.defaultOpacity),null!=f&&(e.opacity=f),o||s||null==e.fill&&i.inheritColor&&(e.fill=i.inheritColor);for(var _=0;_<v.length;_++){var w=v[_],C=Object(r["retrieve2"])(t.getShallow(w),n[w]);null!=C&&(e[w]=C)}for(_=0;_<b.length;_++){w=b[_],C=t.getShallow(w);null!=C&&(e[w]=C)}if(null==e.verticalAlign){var S=t.getShallow("baseline");null!=S&&(e.verticalAlign=S)}if(!a||!i.disableBox){for(_=0;_<y.length;_++){w=y[_],C=t.getShallow(w);null!=C&&(e[w]=C)}var x=t.getShallow("borderType");null!=x&&(e.borderDash=x),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!u||(e.backgroundColor=u),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!u||(e.borderColor=u)}}function w(e,t){var n=t&&t.getModel("textStyle");return Object(r["trim"])([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var C=Object(s["o"])();function S(e,t,n,i){if(e){var r=C(e);r.prevValue=r.value,r.value=n;var o=t.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=t)}}function x(e,t,n,i,o){var l=C(e);if(l.valueAnimation&&l.prevValue!==l.value){var h=l.defaultInterpolatedText,d=Object(r["retrieve2"])(l.interpolatedValue,l.prevValue),f=l.value;e.percent=0,(null==l.prevValue?a["c"]:a["h"])(e,{percent:1},i,t,null,p)}function p(i){var r=Object(s["k"])(n,l.precision,d,f,i);l.interpolatedValue=1===i?null:r;var a=u({labelDataIndex:t,labelFetcher:o,defaultText:h?h(r):r+""},l.statesModels,r);c(e,a)}}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(e,t,n){var i=n("cc12"),r=i("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},7887:function(e,t,n){"use strict";(function(t){var i;function r(e,t,n){return t=o(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=s(e,"string");return"symbol"===typeof t?t:String(t)}function s(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var a=n("ddda"),l=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),h=Symbol("ended"),d=Symbol("lastPromise"),f=Symbol("handlePromise"),p=Symbol("stream");function g(e,t){return{value:e,done:t}}function m(e){var t=e[l];if(null!==t){var n=e[p].read();null!==n&&(e[d]=null,e[l]=null,e[c]=null,t(g(n,!1)))}}function v(e){t.nextTick(m,e)}function b(e,t){return function(n,i){e.then((function(){t[h]?n(g(void 0,!0)):t[f](n,i)}),i)}}var y=Object.getPrototypeOf((function(){})),_=Object.setPrototypeOf((i={get stream(){return this[p]},next:function(){var e=this,n=this[u];if(null!==n)return Promise.reject(n);if(this[h])return Promise.resolve(g(void 0,!0));if(this[p].destroyed)return new Promise((function(n,i){t.nextTick((function(){e[u]?i(e[u]):n(g(void 0,!0))}))}));var i,r=this[d];if(r)i=new Promise(b(r,this));else{var o=this[p].read();if(null!==o)return Promise.resolve(g(o,!1));i=new Promise(this[f])}return this[d]=i,i}},r(i,Symbol.asyncIterator,(function(){return this})),r(i,"return",(function(){var e=this;return new Promise((function(t,n){e[p].destroy(null,(function(e){e?n(e):t(g(void 0,!0))}))}))})),i),y),w=function(e){var t,n=Object.create(_,(t={},r(t,p,{value:e,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,u,{value:null,writable:!0}),r(t,h,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var i=n[p].read();i?(n[d]=null,n[l]=null,n[c]=null,e(g(i,!1))):(n[l]=e,n[c]=t)},writable:!0}),t));return n[d]=null,a(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[c];return null!==t&&(n[d]=null,n[l]=null,n[c]=null,t(e)),void(n[u]=e)}var i=n[l];null!==i&&(n[d]=null,n[l]=null,n[c]=null,i(g(void 0,!0))),n[h]=!0})),e.on("readable",v.bind(null,n)),n};e.exports=w}).call(this,n("4362"))},"78bc":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return u}));var i=n("1097"),r=n("fdcc");class o{constructor(e="",t=!1){var n,i;if(this.value=e,"string"!==typeof this.value)throw Object(r["b"])("value");"boolean"===typeof t?(this.isTrusted=t,this.supportThemeIcons=!1):(this.isTrusted=null!==(n=t.isTrusted)&&void 0!==n?n:void 0,this.supportThemeIcons=null!==(i=t.supportThemeIcons)&&void 0!==i&&i)}appendText(e,t=0){return this.value+=l(this.supportThemeIcons?Object(i["a"])(e):e).replace(/([ \t]+)/g,(e,t)=>" ".repeat(t.length)).replace(/^>/gm,"\\>").replace(/\n/g,1===t?"\\\n":"\n\n"),this}appendMarkdown(e){return this.value+=e,this}appendCodeblock(e,t){return this.value+="\n```",this.value+=e,this.value+="\n",this.value+=t,this.value+="\n```\n",this}}function s(e){return a(e)?!e.value:!Array.isArray(e)||e.every(s)}function a(e){return e instanceof o||!(!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 l(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function c(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1"):e}function u(e){const t=[],n=e.split("|").map(e=>e.trim());e=n[0];const i=n[1];if(i){const e=/height=(\d+)/.exec(i),n=/width=(\d+)/.exec(i),r=e?e[1]:"",o=n?n[1]:"",s=isFinite(parseInt(o)),a=isFinite(parseInt(r));s&&t.push(`width="${o}"`),a&&t.push(`height="${r}"`)}return{href:e,dimensions:t}}},7944:function(e,t,n){"use strict";n.d(t,"c",(function(){return L})),n.d(t,"a",(function(){return I})),n.d(t,"b",(function(){return A}));n("afa2");var i=n("11f7"),r=n("f070"),o=n("a666"),s=n("dff7"),a=n("7e32"),l=n("533b"),c=n("6dec"),u=n("8b4e"),h=n("b0cd"),d=n("b7d0"),f=n("eff2"),p=(n("40c2"),n("308f")),g=n("a60f"),m=n("b835");class v extends r["b"]{constructor(e,t){super(),this._onDidChangeVisibility=new p["b"],this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=Object(i["q"])(e,Object(i["a"])(".monaco-dropdown")),this._label=Object(i["q"])(this._element,Object(i["a"])(".dropdown-label"));let n=t.labelRenderer;n||(n=e=>(e.textContent=t.label||"",null));for(const o of[i["d"].CLICK,i["d"].MOUSE_DOWN,g["a"].Tap])this._register(Object(i["i"])(this.element,o,e=>i["c"].stop(e,!0)));for(const o of[i["d"].MOUSE_DOWN,g["a"].Tap])this._register(Object(i["i"])(this._label,o,e=>{e instanceof MouseEvent&&e.detail>1||(this.visible?this.hide():this.show())}));this._register(Object(i["i"])(this._label,i["d"].KEY_UP,e=>{const t=new m["a"](e);(t.equals(3)||t.equals(10))&&(i["c"].stop(e,!0),this.visible?this.hide():this.show())}));const r=n(this._label);r&&this._register(r),this._register(g["b"].addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class b extends v{constructor(e,t){super(e,t),this._actions=[],this._contextMenuProvider=t.contextMenuProvider,this.actions=t.actions||[],this.actionProvider=t.actionProvider,this.menuClassName=t.menuClassName||"",this.menuAsChild=!!t.menuAsChild}set menuOptions(e){this._menuOptions=e}get menuOptions(){return this._menuOptions}get actions(){return this.actionProvider?this.actionProvider.getActions():this._actions}set actions(e){this._actions=e}show(){super.show(),this.element.classList.add("active"),this._contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:e=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(e):void 0,getKeyBinding:e=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(e):void 0,getMenuClassName:()=>this.menuClassName,onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this.menuAsChild?this.element:void 0})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}class y extends f["b"]{constructor(e,t,n,i=Object.create(null)){super(null,e,i),this.actionItem=null,this._onDidChangeVisibility=this._register(new p["b"]),this.menuActionsOrProvider=t,this.contextMenuProvider=n,this.options=i,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(e){this.actionItem=e;const t=e=>{this.element=Object(i["q"])(e,Object(i["a"])("a.action-label"));let t=[];return"string"===typeof this.options.classNames?t=this.options.classNames.split(/\s+/g).filter(e=>!!e):this.options.classNames&&(t=this.options.classNames),t.find(e=>"icon"===e)||t.push("codicon"),this.element.classList.add(...t),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this.element.title=this._action.label||"",null},n=Array.isArray(this.menuActionsOrProvider),r={contextMenuProvider:this.contextMenuProvider,labelRenderer:t,menuAsChild:this.options.menuAsChild,actions:n?this.menuActionsOrProvider:void 0,actionProvider:n?void 0:this.menuActionsOrProvider};if(this.dropdownMenu=this._register(new b(e,r)),this._register(this.dropdownMenu.onDidChangeVisibility(e=>{var t;null===(t=this.element)||void 0===t||t.setAttribute("aria-expanded",""+e),this._onDidChangeVisibility.fire(e)})),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const e=this;this.dropdownMenu.menuOptions=Object.assign(Object.assign({},this.dropdownMenu.menuOptions),{get anchorAlignment(){return e.options.anchorAlignmentProvider()}})}this.updateEnabled()}setActionContext(e){super.setActionContext(e),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=e:this.dropdownMenu.menuOptions={context:e})}updateEnabled(){var e,t;const n=!this.getAction().enabled;null===(e=this.actionItem)||void 0===e||e.classList.toggle("disabled",n),null===(t=this.element)||void 0===t||t.classList.toggle("disabled",n)}}var _=n("30db"),w=n("0a0f"),C=n("4fc3"),S=n("03e8"),x=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},O=function(e,t){return function(n,i){t(n,i,e)}},k=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function L(e,t,n,i,r,o,s){const a=e.getActions(t),l="string"===typeof i?e=>e===i:i;return D(a,n,!1,l,r,o,s),E(a)}function E(e){const t=new o["b"];for(const[,n]of e)for(const e of n)t.add(e);return t}function D(e,t,n,i=(e=>"navigation"===e),o=Number.MAX_SAFE_INTEGER,s=(()=>!1),l=!1){let c,u;Array.isArray(t)?(c=t,u=t):(c=t.primary,u=t.secondary);const h=new Set;for(const[d,f]of e){let e;i(d)?(e=c,e.length>0&&l&&e.push(new r["d"])):(e=u,e.length>0&&e.push(new r["d"]));for(let t of f){n&&(t=t instanceof a["c"]&&t.alt?t.alt:t);const i=e.push(t);t instanceof r["e"]&&h.add({group:d,action:t,index:i-1})}}for(const{group:r,action:a,index:d}of h){const e=i(r)?c:u,t=a.actions;(t.length<=1||e.length+t.length-2<=o)&&s(a,r,e.length)&&e.splice(d,1,...t)}if(c!==u&&c.length>o){const e=c.splice(o,c.length-o);u.unshift(...e,new r["d"])}}let I=class extends f["a"]{constructor(e,t,n,r,s){super(void 0,e,{icon:!(!e.class&&!e.item.icon),label:!e.class&&!e.item.icon,draggable:null===t||void 0===t?void 0:t.draggable}),this._keybindingService=n,this._notificationService=r,this._contextKeyService=s,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new o["d"]),this._altKey=i["e"].getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}onClick(e){return k(this,void 0,void 0,(function*(){e.preventDefault(),e.stopPropagation();try{yield this.actionRunner.run(this._commandAction,this._context)}catch(t){this._notificationService.error(t)}}))}render(e){super.render(e),e.classList.add("menu-entry"),this._updateItemClass(this._menuItemAction.item);let t=!1,n=this._altKey.keyStatus.altKey||(_["j"]||_["d"])&&this._altKey.keyStatus.shiftKey;const r=()=>{const e=t&&n;e!==this._wantsAltCommand&&(this._wantsAltCommand=e,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._menuItemAction.alt&&this._register(this._altKey.event(e=>{n=e.altKey||(_["j"]||_["d"])&&e.shiftKey,r()})),this._register(Object(i["i"])(e,"mouseleave",e=>{t=!1,r()})),this._register(Object(i["i"])(e,"mouseenter",e=>{t=!0,r()}))}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}updateTooltip(){if(this.label){const e=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),t=e&&e.getLabel(),n=this._commandAction.tooltip||this._commandAction.label;let i=t?Object(s["a"])("titleAndKb","{0} ({1})",n,t):n;if(!this._wantsAltCommand&&this._menuItemAction.alt){const e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),n=t&&t.getLabel(),r=n?Object(s["a"])("titleAndKb","{0} ({1})",e,n):e;i+=`\n[${u["b"].modifierLabels[_["a"]].altKey}] ${r}`}this.label.title=i}}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){var t;this._itemClassDispose.value=void 0;const{element:n,label:r}=this;if(!n||!r)return;const s=this._commandAction.checked&&(null===(t=e.toggled)||void 0===t?void 0:t.icon)?e.toggled.icon:e.icon;if(s)if(d["d"].isThemeIcon(s)){const e=d["d"].asClassNameArray(s);r.classList.add(...e),this._itemClassDispose.value=Object(o["i"])(()=>{r.classList.remove(...e)})}else s.light&&r.style.setProperty("--menu-entry-icon-light",Object(i["s"])(s.light)),s.dark&&r.style.setProperty("--menu-entry-icon-dark",Object(i["s"])(s.dark)),r.classList.add("icon"),this._itemClassDispose.value=Object(o["i"])(()=>{r.classList.remove("icon"),r.style.removeProperty("--menu-entry-icon-light"),r.style.removeProperty("--menu-entry-icon-dark")})}};I=x([O(2,c["a"]),O(3,h["a"]),O(4,C["b"])],I);let M=class extends y{constructor(e,t){super(e,{getActions:()=>e.actions},t,{menuAsChild:!0,classNames:d["d"].isThemeIcon(e.item.icon)?d["d"].asClassName(e.item.icon):void 0})}render(e){if(super.render(e),this.element){e.classList.add("menu-entry");const{icon:t}=this._action.item;t&&!d["d"].isThemeIcon(t)&&(this.element.classList.add("icon"),t.light&&this.element.style.setProperty("--menu-entry-icon-light",Object(i["s"])(t.light)),t.dark&&this.element.style.setProperty("--menu-entry-icon-dark",Object(i["s"])(t.dark)))}}};M=x([O(1,l["a"])],M);let T=class extends f["b"]{constructor(e,t,n,i,r,o,s){let l;super(null,e),this._keybindingService=t,this._notificationService=n,this._contextMenuService=i,this._menuService=r,this._instaService=o,this._storageService=s,this._container=null,this._storageKey=e.item.submenu._debugName+"_lastActionId";let c=s.get(this._storageKey,1);c&&(l=e.actions.find(e=>c===e.id)),l||(l=e.actions[0]),this._defaultAction=this._instaService.createInstance(I,l,void 0),this._dropdown=new y(e,e.actions,this._contextMenuService,{menuAsChild:!0,classNames:["codicon","codicon-chevron-down"]}),this._dropdown.actionRunner.onDidRun(e=>{e.action instanceof a["c"]&&this.update(e.action)})}update(e){this._storageService.store(this._storageKey,e.id,1,0),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(I,e,void 0),this._defaultAction.actionRunner=new class extends r["b"]{runAction(e,t){return k(this,void 0,void 0,(function*(){yield e.run(void 0)}))}},this._container&&this._defaultAction.render(Object(i["P"])(this._container,Object(i["a"])(".action-container")))}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-primary");const t=Object(i["a"])(".action-container");this._defaultAction.render(Object(i["q"])(this._container,t)),this._register(Object(i["i"])(t,i["d"].KEY_DOWN,e=>{const t=new m["a"](e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())}));const n=Object(i["a"])(".dropdown-action-container");this._dropdown.render(Object(i["q"])(this._container,n)),this._register(Object(i["i"])(n,i["d"].KEY_DOWN,e=>{var t;const n=new m["a"](e);n.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),null===(t=this._defaultAction.element)||void 0===t||t.focus(),n.stopPropagation())}))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};function A(e,t){if(t instanceof a["c"])return e.createInstance(I,t,void 0);if(t instanceof a["e"]){const n=!t.actions.some(e=>e instanceof a["c"]&&e.item.icon&&!d["d"].isThemeIcon(e.item.icon));return t.item.rememberDefaultAction&&n?e.createInstance(T,t):e.createInstance(M,t)}}T=x([O(1,c["a"]),O(2,h["a"]),O(3,l["a"]),O(4,a["a"]),O(5,w["a"]),O(6,S["a"])],T)},7992:function(e,t,n){"use strict";var i=n("71c9"),r=n("67ee"),o=n("0d25"),s=n("2aa9");e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new o("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],h=!!s&&s(e,t);if(i)i(e,t,{configurable:null===c&&h?h.configurable:!c,enumerable:null===a&&h?h.enumerable:!a,value:n,writable:null===l&&h?h.writable:!l});else{if(!u&&(a||l||c))throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},"7a29":function(e,t,n){"use strict";(function(e){n.d(t,"p",(function(){return a})),n.d(t,"j",(function(){return c})),n.d(t,"q",(function(){return h})),n.d(t,"e",(function(){return d})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p})),n.d(t,"i",(function(){return g})),n.d(t,"h",(function(){return m})),n.d(t,"l",(function(){return v})),n.d(t,"n",(function(){return y})),n.d(t,"m",(function(){return _})),n.d(t,"o",(function(){return w})),n.d(t,"k",(function(){return C})),n.d(t,"d",(function(){return S})),n.d(t,"f",(function(){return x})),n.d(t,"g",(function(){return O})),n.d(t,"c",(function(){return k}));var i=n("6d8b"),r=n("41ef"),o=n("22d1"),s=Math.round;function a(e){var t;if(e&&"transparent"!==e){if("string"===typeof e&&e.indexOf("rgba")>-1){var n=Object(r["parse"])(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var l=1e-4;function c(e){return e<l&&e>-l}function u(e){return s(1e3*e)/1e3}function h(e){return s(1e4*e)/1e4}function d(e){return"matrix("+u(e[0])+","+u(e[1])+","+u(e[2])+","+u(e[3])+","+h(e[4])+","+h(e[5])+")"}var f={left:"start",right:"end",center:"middle",middle:"middle"};function p(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}function g(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function m(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function v(e){return e&&!!e.image}function b(e){return e&&!!e.svgElement}function y(e){return v(e)||b(e)}function _(e){return"linear"===e.type}function w(e){return"radial"===e.type}function C(e){return e&&("linear"===e.type||"radial"===e.type)}function S(e){return"url(#"+e+")"}function x(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function O(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*i["RADIAN_TO_DEGREE"],o=Object(i["retrieve2"])(e.scaleX,1),a=Object(i["retrieve2"])(e.scaleY,1),l=e.skewX||0,c=e.skewY||0,u=[];return(t||n)&&u.push("translate("+t+"px,"+n+"px)"),r&&u.push("rotate("+r+")"),1===o&&1===a||u.push("scale("+o+","+a+")"),(l||c)&&u.push("skew("+s(l*i["RADIAN_TO_DEGREE"])+"deg, "+s(c*i["RADIAN_TO_DEGREE"])+"deg)"),u.join(" ")}var k=function(){return o["a"].hasGlobalWindow&&Object(i["isFunction"])(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:"undefined"!==typeof e?function(t){return e.from(t).toString("base64")}:function(e){return null}}()}).call(this,n("1c35").Buffer)},"7a2c":function(e,t,n){},"7a41":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"7a77":function(e,t,n){"use strict";function i(e){this.message=e}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,e.exports=i},"7a9e":function(e,t,n){"use strict";n.r(t),n.d(t,"SuggestController",(function(){return St})),n.d(t,"TriggerSuggestAction",(function(){return xt}));var i=n("3813"),r=n("e8e3"),o=n("fdcc"),s=n("fe45"),a=n("a666"),l=n("bc04"),c=n("b2cc"),u=n("d3f4"),h=n("6a89"),d=n("c101"),f=n("b574"),p=n("b800"),g=n("4035"),m=n("03e8"),v=n("b707"),b=n("5fe7"),y=n("0a0f"),_=n("fbba"),w=n("f5f3"),C=n("5818"),S=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},x=function(e,t){return function(n,i){t(n,i,e)}};class O{constructor(e){this.name=e}select(e,t,n){if(0===n.length)return 0;let i=n[0].score[0];for(let r=0;r<n.length;r++){const{score:e,completion:t}=n[r];if(e[0]!==i)break;if(t.preselect)return r}return 0}}class k extends O{constructor(){super("first")}memorize(e,t,n){}toJSON(){}fromJSON(){}}class L extends O{constructor(){super("recentlyUsed"),this._cache=new g["a"](300,.66),this._seq=0}memorize(e,t,n){const i=`${e.getLanguageIdentifier().language}/${n.textLabel}`;this._cache.set(i,{touch:this._seq++,type:n.completion.kind,insertText:n.completion.insertText})}select(e,t,n){if(0===n.length)return 0;const i=e.getLineContent(t.lineNumber).substr(t.column-10,t.column-1);if(/\s$/.test(i))return super.select(e,t,n);let r=n[0].score[0],o=-1,s=-1,a=-1;for(let l=0;l<n.length;l++){if(n[l].score[0]!==r)break;const t=`${e.getLanguageIdentifier().language}/${n[l].textLabel}`,i=this._cache.peek(t);if(i&&i.touch>a&&i.type===n[l].completion.kind&&i.insertText===n[l].completion.insertText&&(a=i.touch,s=l),n[l].completion.preselect&&-1===o)return l}return-1!==s?s:-1!==o?o:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();let t=0;for(const[n,i]of e)i.touch=t,i.type="number"===typeof i.type?i.type:Object(v["H"])(i.type),this._cache.set(n,i);this._seq=this._cache.size}}class E extends O{constructor(){super("recentlyUsedByPrefix"),this._trie=g["c"].forStrings(),this._seq=0}memorize(e,t,n){const{word:i}=e.getWordUntilPosition(t),r=`${e.getLanguageIdentifier().language}/${i}`;this._trie.set(r,{type:n.completion.kind,insertText:n.completion.insertText,touch:this._seq++})}select(e,t,n){let{word:i}=e.getWordUntilPosition(t);if(!i)return super.select(e,t,n);let r=`${e.getLanguageIdentifier().language}/${i}`,o=this._trie.get(r);if(o||(o=this._trie.findSubstr(r)),o)for(let s=0;s<n.length;s++){let{kind:e,insertText:t}=n[s].completion;if(e===o.type&&t===o.insertText)return s}return super.select(e,t,n)}toJSON(){let e=[];return this._trie.forEach((t,n)=>e.push([n,t])),e.sort((e,t)=>-(e[1].touch-t[1].touch)).forEach((e,t)=>e[1].touch=t),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(const[t,n]of e)n.type="number"===typeof n.type?n.type:Object(v["H"])(n.type),this._trie.set(t,n)}}}let D=class e{constructor(e,t,n){this._storageService=e,this._modeService=t,this._configService=n,this._disposables=new a["b"],this._persistSoon=new b["e"](()=>this._saveState(),500),this._disposables.add(e.onWillSaveState(e=>{e.reason===m["c"].SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,n){this._withStrategy(e,t).memorize(e,t,n),this._persistSoon.schedule()}select(e,t,n){return this._withStrategy(e,t).select(e,t,n)}_withStrategy(t,n){var i,r;const o=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:null===(i=this._modeService.getLanguageIdentifier(t.getLanguageIdAtPosition(n.lineNumber,n.column)))||void 0===i?void 0:i.language,resource:t.uri});if((null===(r=this._strategy)||void 0===r?void 0:r.name)!==o){this._saveState();const t=e._strategyCtors.get(o)||k;this._strategy=new t;try{const t=this._configService.getValue("editor.suggest.shareSuggestSelections"),n=t?0:1,i=this._storageService.get(`${e._storagePrefix}/${o}`,n);i&&this._strategy.fromJSON(JSON.parse(i))}catch(s){}}return this._strategy}_saveState(){if(this._strategy){const t=this._configService.getValue("editor.suggest.shareSuggestSelections"),n=t?0:1,i=JSON.stringify(this._strategy);this._storageService.store(`${e._storagePrefix}/${this._strategy.name}`,i,n,1)}}};D._strategyCtors=new Map([["recentlyUsedByPrefix",E],["recentlyUsed",L],["first",k]]),D._storagePrefix="suggest/memories",D=S([x(0,m["a"]),x(1,C["a"]),x(2,_["a"])],D);const I=Object(y["c"])("ISuggestMemories");Object(w["b"])(I,D,!0);var M=n("dff7"),T=n("9e74"),A=n("4fc3"),N=n("9eb8"),P=n("4153"),j=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},R=function(e,t){return function(n,i){t(n,i,e)}};let F=class e{constructor(t,n){this._editor=t,this._index=0,this._ckOtherSuggestions=e.OtherSuggestions.bindTo(n)}dispose(){this.reset()}reset(){var e;this._ckOtherSuggestions.reset(),null===(e=this._listener)||void 0===e||e.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:t,index:n},i){if(0===t.items.length)return void this.reset();let r=e._moveIndex(!0,t,n);r!==n?(this._acceptNext=i,this._model=t,this._index=n,this._listener=this._editor.onDidChangeCursorPosition(()=>{this._ignore||this.reset()}),this._ckOtherSuggestions.set(!0)):this.reset()}static _moveIndex(e,t,n){let i=n;while(1){if(i=(i+t.items.length+(e?1:-1))%t.items.length,i===n)break;if(!t.items[i].completion.additionalTextEdits)break}return i}next(){this._move(!0)}prev(){this._move(!1)}_move(t){if(this._model)try{this._ignore=!0,this._index=e._moveIndex(t,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};F.OtherSuggestions=new A["c"]("hasOtherSuggestions",!1),F=j([R(1,A["b"])],F);var B=n("308f"),W=n("8025"),V=n("7e93"),z=n("3742");class H{constructor(e,t,n,i,r,o,s){this.clipboardText=s,this._snippetCompareFn=H._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=i,this._options=r,this._refilterKind=1,this._lineContext=n,"top"===o?this._snippetCompareFn=H._compareCompletionItemsSnippetsUp:"bottom"===o&&(this._snippetCompareFn=H._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(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)}get items(){return this._ensureCachedState(),this._filteredItems}get allProvider(){return this._ensureCachedState(),this._providerInfo.keys()}get incomplete(){this._ensureCachedState();const e=new Set;for(let[t,n]of this._providerInfo)n&&e.add(t);return e}adopt(e){let t=[];for(let 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}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){0!==this._refilterKind&&this._createCachedState()}_createCachedState(){this._providerInfo=new Map;const e=[],{leadingLineContent:t,characterCountDelta:n}=this._lineContext;let i="",o="";const s=1===this._refilterKind?this._items:this._filteredItems,a=[],l=!this._options.filterGraceful||s.length>2e3?V["d"]:V["e"];for(let r=0;r<s.length;r++){const c=s[r];if(c.isInvalid)continue;this._providerInfo.set(c.provider,Boolean(c.container.incomplete));const u=c.position.column-c.editStart.column,h=u+n-(c.position.column-this._column);if(i.length!==h&&(i=0===h?"":t.slice(-h),o=i.toLowerCase()),c.word=i,0===h)c.score=V["a"].Default;else{let e=0;while(e<u){const t=i.charCodeAt(e);if(32!==t&&9!==t)break;e+=1}if(e>=h)c.score=V["a"].Default;else if("string"===typeof c.completion.filterText){let t=l(i,o,e,c.completion.filterText,c.filterTextLow,0,!1);if(!t)continue;0===Object(z["g"])(c.completion.filterText,c.textLabel)?c.score=t:(c.score=Object(V["b"])(i,o,e,c.textLabel,c.labelLow,0),c.score[0]=t[0])}else{let t=l(i,o,e,c.textLabel,c.labelLow,0,!1);if(!t)continue;c.score=t}}c.idx=r,c.distance=this._wordDistance.distance(c.position,c.completion),a.push(c),e.push(c.textLabel.length)}this._filteredItems=a.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?Object(r["q"])(e.length-.85,e,(e,t)=>e-t):0}}static _compareCompletionItems(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}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return 1;if(27===t.completion.kind)return-1}return H._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(27===e.completion.kind)return-1;if(27===t.completion.kind)return 1}return H._compareCompletionItems(e,t)}}var U=n("2504"),q=n("a40b"),$=n("67b4"),K=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class G{static create(e,t){return K(this,void 0,void 0,(function*(){if(!t.getOption(105).localityBonus)return G.None;if(!t.hasModel())return G.None;const n=t.getModel(),i=t.getPosition();if(!e.canComputeWordRanges(n.uri))return G.None;const[o]=yield(new $["a"]).provideSelectionRanges(n,[i]);if(0===o.length)return G.None;const s=yield e.computeWordRanges(n.uri,o[0].range);if(!s)return G.None;const a=n.getWordUntilPosition(i);return delete s[a.word],new class extends G{distance(e,n){if(!i.equals(t.getPosition()))return 0;if(17===n.kind)return 2<<20;let a="string"===typeof n.label?n.label:n.label.label,l=s[a];if(Object(r["m"])(l))return 2<<20;let c=Object(r["d"])(l,h["a"].fromPositions(e),h["a"].compareRangesUsingStarts),u=c>=0?l[c]:l[Math.max(0,~c-1)],d=o.length;for(const t of o){if(!h["a"].containsRange(t.range,u))break;d-=1}return d}}}))}}G.None=new class extends G{distance(){return 0}};var Y=n("f577"),Z=n("5d75"),X=n("d3d7"),Q=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},J=function(e,t){return function(n,i){t(n,i,e)}},ee=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class te{constructor(e,t,n,i){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.auto=n,this.shy=i}static shouldAutoTrigger(e){if(!e.hasModel())return!1;const t=e.getModel(),n=e.getPosition();t.tokenizeIfCheap(n.lineNumber);const i=t.getWordAtPosition(n);return!!i&&(i.endColumn===n.column&&!!isNaN(Number(i.word)))}}function ne(e,t){return Boolean(e.getContextKeyValue("inlineSuggestionVisible"))&&!Boolean(t.getValue("editor.inlineSuggest.allowQuickSuggestions"))}function ie(e,t){return Boolean(e.getContextKeyValue("inlineSuggestionVisible"))&&!Boolean(t.getValue("editor.inlineSuggest.allowSuggestOnTriggerCharacters"))}let re=class e{constructor(e,t,n,i,r,o,s){this._editor=e,this._editorWorkerService=t,this._clipboardService=n,this._telemetryService=i,this._logService=r,this._contextKeyService=o,this._configurationService=s,this._toDispose=new a["b"],this._quickSuggestDelay=10,this._triggerCharacterListener=new a["b"],this._triggerQuickSuggest=new b["g"],this._state=0,this._completionDisposables=new a["b"],this._onDidCancel=new B["b"],this._onDidTrigger=new B["b"],this._onDidSuggest=new B["b"],this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new W["a"](1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(()=>{this._updateTriggerCharacters(),this._updateQuickSuggest()})),this._toDispose.add(v["d"].onDidChange(()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(e=>{this._onCursorChange(e)}));let l=!1;this._toDispose.add(this._editor.onDidCompositionStart(()=>{l=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(()=>{l=!1,this._refilterCompletionItems()})),this._toDispose.add(this._editor.onDidChangeModelContent(()=>{l||this._refilterCompletionItems()})),this._updateTriggerCharacters(),this._updateQuickSuggest()}dispose(){Object(a["f"])(this._triggerCharacterListener),Object(a["f"])([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateQuickSuggest(){this._quickSuggestDelay=this._editor.getOption(78),(isNaN(this._quickSuggestDelay)||!this._quickSuggestDelay&&0!==this._quickSuggestDelay||this._quickSuggestDelay<0)&&(this._quickSuggestDelay=10)}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(79)||!this._editor.hasModel()||!this._editor.getOption(108))return;const e=new Map;for(const n of v["d"].all(this._editor.getModel()))for(const t of n.triggerCharacters||[]){let i=e.get(t);i||(i=new Set,i.add(Object(P["c"])()),e.set(t,i)),i.add(n)}const t=t=>{if(ie(this._contextKeyService,this._configurationService))return;if(te.shouldAutoTrigger(this._editor))return;if(!t){const e=this._editor.getPosition(),n=this._editor.getModel();t=n.getLineContent(e.lineNumber).substr(0,e.column-1)}let n="";Object(z["G"])(t.charCodeAt(t.length-1))?Object(z["F"])(t.charCodeAt(t.length-2))&&(n=t.substr(t.length-2)):n=t.charAt(t.length-1);const i=e.get(n);if(i){const e=this._completionModel?{items:this._completionModel.adopt(i),clipboardText:this._completionModel.clipboardText}:void 0;this.trigger({auto:!0,shy:!1,triggerCharacter:n},Boolean(this._completionModel),i,e)}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(t))}get state(){return this._state}cancel(e=!1){var t;0!==this._state&&(this._triggerQuickSuggest.cancel(),null===(t=this._requestToken)||void 0===t||t.cancel(),this._requestToken=void 0,this._state=0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){0!==this._state&&(this._editor.hasModel()&&v["d"].has(this._editor.getModel())?this.trigger({auto:2===this._state,shy:!1},!0):this.cancel())}_onCursorChange(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),n=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||0!==e.reason&&3!==e.reason||"keyboard"!==e.source&&"deleteLeft"!==e.source)this.cancel();else if(v["d"].has(t))if(0===this._state&&0===e.reason){if(!1===this._editor.getOption(77))return;if(!n.containsRange(this._currentSelection)&&!n.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))return;if(this._editor.getOption(105).snippetsPreventQuickSuggestions&&f["SnippetController2"].get(this._editor).isInSnippet())return;this.cancel(),this._triggerQuickSuggest.cancelAndSet(()=>{if(0!==this._state)return;if(!te.shouldAutoTrigger(this._editor))return;if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getPosition(),n=this._editor.getOption(77);if(!1!==n){if(!0===n);else{e.tokenizeIfCheap(t.lineNumber);const i=e.getLineTokens(t.lineNumber),r=i.getStandardTokenType(i.findTokenIndexAtOffset(Math.max(t.column-1-1,0))),o=n.other&&0===r||n.comments&&1===r||n.strings&&2===r;if(!o)return}ne(this._contextKeyService,this._configurationService)||this.trigger({auto:!0,shy:!1})}},this._quickSuggestDelay)}else 0!==this._state&&3===e.reason&&this._refilterCompletionItems()}_refilterCompletionItems(){Promise.resolve().then(()=>{if(0===this._state)return;if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getPosition(),n=new te(e,t,2===this._state,!1);this._onNewContext(n)})}trigger(t,n=!1,i,r){var s;if(!this._editor.hasModel())return;const a=this._editor.getModel(),l=t.auto,c=new te(a,this._editor.getPosition(),l,t.shy);this.cancel(n),this._state=l?2:1,this._onDidTrigger.fire({auto:l,shy:t.shy,position:this._editor.getPosition()}),this._context=c;let u={triggerKind:null!==(s=t.triggerKind)&&void 0!==s?s:0};t.triggerCharacter&&(u={triggerKind:1,triggerCharacter:t.triggerCharacter}),this._requestToken=new U["b"];const h=this._editor.getOption(100);let d=1;switch(h){case"top":d=0;break;case"bottom":d=2;break}const{itemKind:f,showDeprecated:p}=e._createSuggestFilter(this._editor),g=G.create(this._editorWorkerService,this._editor),m=Object(P["e"])(a,this._editor.getPosition(),new P["a"](d,f,i,p),u,this._requestToken.token);Promise.all([m,g]).then(([e,n])=>ee(this,void 0,void 0,(function*(){var i;if(null===(i=this._requestToken)||void 0===i||i.dispose(),!this._editor.hasModel())return;let o=null===r||void 0===r?void 0:r.clipboardText;if(!o&&e.needsClipboard&&(o=yield this._clipboardService.readText()),0===this._state)return;const s=this._editor.getModel();let a=e.items;if(r){const e=Object(P["d"])(d);a=a.concat(r.items).sort(e)}const c=new te(s,this._editor.getPosition(),l,t.shy);this._completionModel=new H(a,this._context.column,{leadingLineContent:c.leadingLineContent,characterCountDelta:c.column-this._context.column},n,this._editor.getOption(105),this._editor.getOption(100),o),this._completionDisposables.add(e.disposable),this._onNewContext(c),this._reportDurationsTelemetry(e.durations)}))).catch(o["e"])}_reportDurationsTelemetry(e){this._telemetryGate++%230===0&&setTimeout(()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)})}static _createSuggestFilter(e){const t=new Set,n=e.getOption(100);"none"===n&&t.add(27);const i=e.getOption(105);return i.showMethods||t.add(0),i.showFunctions||t.add(1),i.showConstructors||t.add(2),i.showFields||t.add(3),i.showVariables||t.add(4),i.showClasses||t.add(5),i.showStructs||t.add(6),i.showInterfaces||t.add(7),i.showModules||t.add(8),i.showProperties||t.add(9),i.showEvents||t.add(10),i.showOperators||t.add(11),i.showUnits||t.add(12),i.showValues||t.add(13),i.showConstants||t.add(14),i.showEnums||t.add(15),i.showEnumMembers||t.add(16),i.showKeywords||t.add(17),i.showWords||t.add(18),i.showColors||t.add(19),i.showFiles||t.add(20),i.showReferences||t.add(21),i.showColors||t.add(22),i.showFolders||t.add(23),i.showTypeParameters||t.add(24),i.showSnippets||t.add(27),i.showUsers||t.add(25),i.showIssues||t.add(26),{itemKind:t,showDeprecated:i.showDeprecated}}_onNewContext(e){if(this._context)if(e.lineNumber===this._context.lineNumber)if(Object(z["y"])(e.leadingLineContent)===Object(z["y"])(this._context.leadingLineContent)){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(0!==e.leadingWord.word.length&&e.leadingWord.startColumn>this._context.leadingWord.startColumn){const e=new Set(v["d"].all(this._editor.getModel()));for(let n of this._completionModel.allProvider)e.delete(n);const t=this._completionModel.adopt(new Set);this.trigger({auto:this._context.auto,shy:!1},!0,e,{items:t,clipboardText:this._completionModel.clipboardText})}else if(e.column>this._context.column&&this._completionModel.incomplete.size>0&&0!==e.leadingWord.word.length){const{incomplete:e}=this._completionModel,t=this._completionModel.adopt(e);this.trigger({auto:2===this._state,shy:!1,triggerKind:2},!0,e,{items:t,clipboardText:this._completionModel.clipboardText})}else{let t=this._completionModel.lineContext,n=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){if(te.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=t,n=this._completionModel.items.length>0,n&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:n})}}else this.cancel();else this.cancel()}};re=Q([J(1,q["a"]),J(2,Y["a"]),J(3,Z["a"]),J(4,X["b"]),J(5,A["b"]),J(6,_["a"])],re);n("0829"),n("b9db"),n("dbc9");var oe=n("11f7"),se=n("72a7"),ae=n("a6d7"),le=n("b7d0"),ce=n("303e"),ue=n("1898"),he=n("bfa1"),de=n("78bc"),fe=n("561a"),pe=n("70c3");class ge{constructor(){let e;this._onDidWillResize=new B["b"],this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new B["b"],this.onDidResize=this._onDidResize.event,this._sashListener=new a["b"],this._size=new oe["b"](0,0),this._minSize=new oe["b"](0,0),this._maxSize=new oe["b"](Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new pe["b"](this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new pe["b"](this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new pe["b"](this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:pe["a"].North}),this._southSash=new pe["b"](this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:pe["a"].South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let t=0,n=0;this._sashListener.add(B["c"].any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{void 0===e&&(this._onDidWillResize.fire(),e=this._size,t=0,n=0)})),this._sashListener.add(B["c"].any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{void 0!==e&&(e=void 0,t=0,n=0,this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(this._eastSash.onDidChange(i=>{e&&(n=i.currentX-i.startX,this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))})),this._sashListener.add(this._westSash.onDidChange(i=>{e&&(n=-(i.currentX-i.startX),this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))})),this._sashListener.add(this._northSash.onDidChange(i=>{e&&(t=-(i.currentY-i.startY),this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))})),this._sashListener.add(this._southSash.onDidChange(i=>{e&&(t=i.currentY-i.startY,this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))})),this._sashListener.add(B["c"].any(this._eastSash.onDidReset,this._westSash.onDidReset)(e=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(B["c"].any(this._northSash.onDidReset,this._southSash.onDidReset)(e=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,n,i){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=n?3:0,this._westSash.state=i?3:0}layout(e=this.size.height,t=this.size.width){const{height:n,width:i}=this._minSize,{height:r,width:o}=this._maxSize;e=Math.max(n,Math.min(r,e)),t=Math.max(i,Math.min(o,t));const s=new oe["b"](t,e);oe["b"].equals(s,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=s,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}var me=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ve=function(e,t){return function(n,i){t(n,i,e)}};function be(e){return!!e&&Boolean(e.completion.documentation||e.completion.detail&&e.completion.detail!==e.completion.label)}let ye=class{constructor(e,t){this._editor=e,this._onDidClose=new B["b"],this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new B["b"],this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new a["b"],this._renderDisposeable=new a["b"],this._borderWidth=1,this._size=new oe["b"](330,0),this.domNode=oe["a"](".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(he["a"],{editor:e}),this._body=oe["a"](".body"),this._scrollbar=new ue["a"](this._body,{}),oe["q"](this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=oe["q"](this._body,oe["a"](".header")),this._close=oe["q"](this._header,oe["a"]("span"+fe["b"].close.cssSelector)),this._close.title=M["a"]("details.close","Close"),this._type=oe["q"](this._header,oe["a"]("p.type")),this._docs=oe["q"](this._body,oe["a"]("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(41)&&this._configureFont()}))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const e=this._editor.getOptions(),t=e.get(41),n=t.fontFamily,i=e.get(106)||t.fontSize,r=e.get(107)||t.lineHeight,o=t.fontWeight,s=i+"px",a=r+"px";this.domNode.style.fontSize=s,this.domNode.style.lineHeight=a,this.domNode.style.fontWeight=o,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=n,this._close.style.height=a,this._close.style.width=a}getLayoutInfo(){const e=this._editor.getOption(107)||this._editor.getOption(41).lineHeight,t=this._borderWidth,n=2*t;return{lineHeight:e,borderWidth:t,borderHeight:n,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=M["a"]("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,2*this.getLayoutInfo().lineHeight),this._onDidChangeContents.fire(this)}renderItem(e,t){var n,i;this._renderDisposeable.clear();let{detail:r,documentation:o}=e.completion;if(t){let t="";t+=`score: ${e.score[0]}\n`,t+=`prefix: ${null!==(n=e.word)&&void 0!==n?n:"(no prefix)"}\n`,t+=`word: ${e.completion.filterText?e.completion.filterText+" (filterText)":e.textLabel}\n`,t+=`distance: ${e.distance} (localityBonus-setting)\n`,t+=`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"}\n`,t+=`commit_chars: ${null===(i=e.completion.commitCharacters)||void 0===i?void 0:i.join("")}\n`,o=(new de["a"]).appendCodeblock("empty",t),r="Provider: "+e.provider._debugDisplayName}if(t||be(e)){if(this.domNode.classList.remove("no-docs","no-type"),r){const e=r.length>1e5?r.substr(0,1e5)+"…":r;this._type.textContent=e,this._type.title=e,oe["W"](this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gim.test(e))}else oe["t"](this._type),this._type.title="",oe["K"](this._type),this.domNode.classList.add("no-type");if(oe["t"](this._docs),"string"===typeof o)this._docs.classList.remove("markdown-docs"),this._docs.textContent=o;else if(o){this._docs.classList.add("markdown-docs"),oe["t"](this._docs);const e=this._markdownRenderer.render(o);this._docs.appendChild(e.element),this._renderDisposeable.add(e),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync(()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=e=>{e.preventDefault(),e.stopPropagation()},this._close.onclick=e=>{e.preventDefault(),e.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}else this.clearContents()}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get size(){return this._size}layout(e,t){const n=new oe["b"](e,t);oe["b"].equals(n,this._size)||(this._size=n,oe["X"](this.domNode,e,t)),this._scrollbar.scanDomNode()}scrollDown(e=8){this._body.scrollTop+=e}scrollUp(e=8){this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};ye=me([ve(1,y["a"])],ye);class _e{constructor(e,t){let n,i;this.widget=e,this._editor=t,this._disposables=new a["b"],this._added=!1,this._resizable=new ge,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let r=0,o=0;this._disposables.add(this._resizable.onDidWillResize(()=>{n=this._topLeft,i=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(e=>{if(n&&i){this.widget.layout(e.dimension.width,e.dimension.height);let t=!1;e.west&&(o=i.width-e.dimension.width,t=!0),e.north&&(r=i.height-e.dimension.height,t=!0),t&&this._applyTopLeft({top:n.top+r,left:n.left+o})}e.done&&(n=void 0,i=void 0,r=0,o=0,this._userSize=e.dimension)})),this._disposables.add(this.widget.onDidChangeContents(()=>{var e;this._anchorBox&&this._placeAtAnchor(this._anchorBox,null!==(e=this._userSize)&&void 0!==e?e:this.widget.size)}))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return null}show(){this._added||(this._editor.addOverlayWidget(this),this.getDomNode().style.position="fixed",this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e){var t;const n=oe["D"](e);this._anchorBox=n,this._placeAtAnchor(this._anchorBox,null!==(t=this._userSize)&&void 0!==t?t:this.widget.size)}_placeAtAnchor(e,t){const n=oe["z"](document.body),i=this.widget.getLayoutInfo();let r,o,s,a,l=new oe["b"](220,2*i.lineHeight),c=0,u=e.top,h=e.top+e.height-i.borderHeight,d=n.width-(e.left+e.width+i.borderWidth+i.horizontalPadding);c=-i.borderWidth+e.left+e.width,a=!0,r=new oe["b"](d,n.height-e.top-i.borderHeight-i.verticalPadding),o=r.with(void 0,e.top+e.height-i.borderHeight-i.verticalPadding),t.width>d&&(e.left>d&&(d=e.left-i.borderWidth-i.horizontalPadding,a=!1,c=Math.max(i.horizontalPadding,e.left-t.width-i.borderWidth),r=r.with(d),o=r.with(void 0,o.height)),e.width>1.3*d&&n.height-(e.top+e.height)>e.height&&(d=e.width,c=e.left,u=-i.borderWidth+e.top+e.height,r=new oe["b"](e.width-i.borderHeight,n.height-e.top-e.height-i.verticalPadding),o=r.with(void 0,e.top-i.verticalPadding),l=l.with(r.width)));let f,p=t.height,g=Math.max(r.height,o.height);p>g&&(p=g),p<=r.height?(s=!0,f=r):(s=!1,f=o),this._applyTopLeft({left:c,top:s?u:h-p}),this.getDomNode().style.position="fixed",this._resizable.enableSashes(!s,a,s,!a),this._resizable.minSize=l,this._resizable.maxSize=f,this._resizable.layout(p,Math.min(f.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this.getDomNode().style.left=this._topLeft.left+"px",this.getDomNode().style.top=this._topLeft.top+"px"}}var we=n("5aa5"),Ce=n("7944"),Se=n("7e32"),xe=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Oe=function(e,t){return function(n,i){t(n,i,e)}};class ke extends Ce["a"]{updateLabel(){const e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();this.label&&(this.label.textContent=Object(M["a"])("ddd","{0} ({1})",this._action.label,ke.symbolPrintEnter(e)))}static symbolPrintEnter(e){var t;return null===(t=e.getLabel())||void 0===t?void 0:t.replace(/\benter\b/gi,"⏎")}}let Le=class{constructor(e,t,n,i){this._menuService=n,this._contextKeyService=i,this._menuDisposables=new a["b"],this.element=oe["q"](e,oe["a"](".suggest-status-bar"));const r=e=>e instanceof Se["c"]?t.createInstance(ke,e,void 0):void 0;this._leftActions=new we["a"](this.element,{actionViewItemProvider:r}),this._rightActions=new we["a"](this.element,{actionViewItemProvider:r}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this.element.remove()}show(){const e=this._menuService.createMenu(P["g"],this._contextKeyService),t=()=>{const t=[],n=[];for(let[i,r]of e.getActions())"left"===i?t.push(...r):n.push(...r);this._leftActions.clear(),this._leftActions.push(t),this._rightActions.clear(),this._rightActions.push(n)};this._menuDisposables.add(e.onDidChange(()=>t())),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};Le=xe([Oe(1,y["a"]),Oe(2,Se["a"]),Oe(3,A["b"])],Le);var Ee,De=n("c4e3"),Ie=n("b589"),Me=n("82c9"),Te=n("32a4");function Ae(e,t,n,i){const r=i===Ee.ROOT_FOLDER?["rootfolder-icon"]:i===Ee.FOLDER?["folder-icon"]:["file-icon"];if(n){let o;if(n.scheme===Ie["c"].data){const e=Me["a"].parseMetaData(n);o=e.get(Me["a"].META_DATA_LABEL)}else o=Pe(Object(Me["c"])(n).toLowerCase());if(i===Ee.FOLDER)r.push(o+"-name-folder-icon");else{if(o){if(r.push(o+"-name-file-icon"),o.length<=255){const e=o.split(".");for(let t=1;t<e.length;t++)r.push(e.slice(t).join(".")+"-ext-file-icon")}r.push("ext-file-icon")}const i=Ne(e,t,n);i&&r.push(Pe(i)+"-lang-file-icon")}}return r}function Ne(e,t,n){if(!n)return null;let i=null;if(n.scheme===Ie["c"].data){const e=Me["a"].parseMetaData(n),r=e.get(Me["a"].META_DATA_MIME);r&&(i=t.getModeId(r))}else{const t=e.getModel(n);t&&(i=t.getModeId())}return i&&i!==Te["c"]?i:t.getModeIdByFilepathOrFirstLine(n)}function Pe(e){return e.replace(/[\11\12\14\15\40]/g,"/")}(function(e){e[e["FILE"]=0]="FILE",e[e["FOLDER"]=1]="FOLDER",e[e["ROOT_FOLDER"]=2]="ROOT_FOLDER"})(Ee||(Ee={}));var je,Re=n("1b69"),Fe=n("6d8e"),Be=n("bf5b"),We=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ve=function(e,t){return function(n,i){t(n,i,e)}};function ze(e){return"suggest-aria-id:"+e}const He=Object(Be["b"])("suggest-more-info",fe["b"].chevronRight,M["a"]("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),Ue=new(je=class e{extract(t,n){if(t.textLabel.match(e._regexStrict))return n[0]=t.textLabel,!0;if(t.completion.detail&&t.completion.detail.match(e._regexStrict))return n[0]=t.completion.detail,!0;if("string"===typeof t.completion.documentation){const i=e._regexRelaxed.exec(t.completion.documentation);if(i&&(0===i.index||i.index+i[0].length===t.completion.documentation.length))return n[0]=i[0],!0}return!1}},je._regexRelaxed=/(#([\da-fA-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*\))/,je._regexStrict=new RegExp(`^${je._regexRelaxed.source}$`,"i"),je);let qe=class{constructor(e,t,n,i){this._editor=e,this._modelService=t,this._modeService=n,this._themeService=i,this._onDidToggleDetails=new B["b"],this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){const t=Object.create(null);t.disposables=new a["b"],t.root=e,t.root.classList.add("show-file-icons"),t.icon=Object(oe["q"])(e,Object(oe["a"])(".icon")),t.colorspan=Object(oe["q"])(t.icon,Object(oe["a"])("span.colorspan"));const n=Object(oe["q"])(e,Object(oe["a"])(".contents")),i=Object(oe["q"])(n,Object(oe["a"])(".main"));t.iconContainer=Object(oe["q"])(i,Object(oe["a"])(".icon-label.codicon")),t.left=Object(oe["q"])(i,Object(oe["a"])("span.left")),t.right=Object(oe["q"])(i,Object(oe["a"])("span.right")),t.iconLabel=new De["a"](t.left,{supportHighlights:!0,supportIcons:!0}),t.disposables.add(t.iconLabel),t.parametersLabel=Object(oe["q"])(t.left,Object(oe["a"])("span.signature-label")),t.qualifierLabel=Object(oe["q"])(t.left,Object(oe["a"])("span.qualifier-label")),t.detailsLabel=Object(oe["q"])(t.right,Object(oe["a"])("span.details-label")),t.readMore=Object(oe["q"])(t.right,Object(oe["a"])("span.readMore"+le["d"].asCSSSelector(He))),t.readMore.title=M["a"]("readMore","Read More");const r=()=>{const e=this._editor.getOptions(),n=e.get(41),r=n.fontFamily,o=n.fontFeatureSettings,s=e.get(106)||n.fontSize,a=e.get(107)||n.lineHeight,l=n.fontWeight,c=s+"px",u=a+"px";t.root.style.fontSize=c,t.root.style.fontWeight=l,i.style.fontFamily=r,i.style.fontFeatureSettings=o,i.style.lineHeight=u,t.icon.style.height=u,t.icon.style.width=u,t.readMore.style.height=u,t.readMore.style.width=u};return r(),t.disposables.add(this._editor.onDidChangeConfiguration(e=>{(e.hasChanged(41)||e.hasChanged(106)||e.hasChanged(107))&&r()})),t}renderElement(e,t,n){const{completion:i}=e;n.root.id=ze(t),n.colorspan.style.backgroundColor="";const o={labelEscapeNewLines:!0,matches:Object(V["c"])(e.score)};let s=[];if(19===i.kind&&Ue.extract(e,s))n.icon.className="icon customcolor",n.iconContainer.className="icon hide",n.colorspan.style.backgroundColor=s[0];else if(20===i.kind&&this._themeService.getFileIconTheme().hasFileIcons){n.icon.className="icon hide",n.iconContainer.className="icon hide";const t=Ae(this._modelService,this._modeService,Fe["a"].from({scheme:"fake",path:e.textLabel}),Ee.FILE),r=Ae(this._modelService,this._modeService,Fe["a"].from({scheme:"fake",path:i.detail}),Ee.FILE);o.extraClasses=t.length>r.length?t:r}else 23===i.kind&&this._themeService.getFileIconTheme().hasFolderIcons?(n.icon.className="icon hide",n.iconContainer.className="icon hide",o.extraClasses=Object(r["k"])([Ae(this._modelService,this._modeService,Fe["a"].from({scheme:"fake",path:e.textLabel}),Ee.FOLDER),Ae(this._modelService,this._modeService,Fe["a"].from({scheme:"fake",path:i.detail}),Ee.FOLDER)])):(n.icon.className="icon hide",n.iconContainer.className="",n.iconContainer.classList.add("suggest-icon",...Object(v["I"])(i.kind).split(" ")));i.tags&&i.tags.indexOf(1)>=0&&(o.extraClasses=(o.extraClasses||[]).concat(["deprecated"]),o.matches=[]),n.iconLabel.setLabel(e.textLabel,void 0,o),"string"===typeof i.label?(n.parametersLabel.textContent="",n.detailsLabel.textContent=$e(i.detail||""),n.root.classList.add("string-label")):(n.parametersLabel.textContent=$e(i.label.detail||""),n.detailsLabel.textContent=$e(i.label.description||""),n.root.classList.remove("string-label")),this._editor.getOption(105).showInlineDetails?Object(oe["W"])(n.detailsLabel):Object(oe["K"])(n.detailsLabel),be(e)?(n.right.classList.add("can-expand-details"),Object(oe["W"])(n.readMore),n.readMore.onmousedown=e=>{e.stopPropagation(),e.preventDefault()},n.readMore.onclick=e=>{e.stopPropagation(),e.preventDefault(),this._onDidToggleDetails.fire()}):(n.right.classList.remove("can-expand-details"),Object(oe["K"])(n.readMore),n.readMore.onmousedown=null,n.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};function $e(e){return e.replace(/\r\n|\r|\n/g,"")}qe=We([Ve(1,Re["a"]),Ve(2,C["a"]),Ve(3,le["b"])],qe);var Ke=n("d379"),Ge=n("49d9"),Ye=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ze=function(e,t){return function(n,i){t(n,i,e)}},Xe=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const Qe=Object(ce["wc"])("editorSuggestWidget.background",{dark:ce["Y"],light:ce["Y"],hc:ce["Y"]},M["a"]("editorSuggestWidgetBackground","Background color of the suggest widget.")),Je=Object(ce["wc"])("editorSuggestWidget.border",{dark:ce["Z"],light:ce["Z"],hc:ce["Z"]},M["a"]("editorSuggestWidgetBorder","Border color of the suggest widget.")),et=Object(ce["wc"])("editorSuggestWidget.foreground",{dark:ce["B"],light:ce["B"],hc:ce["B"]},M["a"]("editorSuggestWidgetForeground","Foreground color of the suggest widget.")),tt=Object(ce["wc"])("editorSuggestWidget.selectedForeground",{dark:ce["tc"],light:ce["tc"],hc:ce["tc"]},M["a"]("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget.")),nt=Object(ce["wc"])("editorSuggestWidget.selectedIconForeground",{dark:ce["uc"],light:ce["uc"],hc:ce["uc"]},M["a"]("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget.")),it=Object(ce["wc"])("editorSuggestWidget.selectedBackground",{dark:ce["sc"],light:ce["sc"],hc:ce["sc"]},M["a"]("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget.")),rt=Object(ce["wc"])("editorSuggestWidget.highlightForeground",{dark:ce["Kb"],light:ce["Kb"],hc:ce["Kb"]},M["a"]("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),ot=Object(ce["wc"])("editorSuggestWidget.focusHighlightForeground",{dark:ce["Ib"],light:ce["Ib"],hc:ce["Ib"]},M["a"]("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused."));class st{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof Ke["a"]}`}restore(){var e;const t=null!==(e=this._service.get(this._key,0))&&void 0!==e?e:"";try{const e=JSON.parse(t);if(oe["b"].is(e))return oe["b"].lift(e)}catch(n){}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}}let at=class e{constructor(e,t,n,i,r){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new b["g"],this._disposables=new a["b"],this._onDidSelect=new B["b"],this._onDidFocus=new B["b"],this._onDidHide=new B["b"],this._onDidShow=new B["b"],this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new B["b"],this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new ge,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new lt(this,e),this._persistedSize=new st(t,e);class o{constructor(e,t,n=!1,i=!1){this.persistedSize=e,this.currentSize=t,this.persistHeight=n,this.persistWidth=i}}let s;this._disposables.add(this.element.onDidWillResize(()=>{this._contentWidget.lockPreference(),s=new o(this._persistedSize.restore(),this.element.size)})),this._disposables.add(this.element.onDidResize(e=>{var t,n,i,r;if(this._resize(e.dimension.width,e.dimension.height),s&&(s.persistHeight=s.persistHeight||!!e.north||!!e.south,s.persistWidth=s.persistWidth||!!e.east||!!e.west),e.done){if(s){const{itemHeight:e,defaultSize:o}=this.getLayoutInfo(),a=Math.round(e/2);let{width:l,height:c}=this.element.size;(!s.persistHeight||Math.abs(s.currentSize.height-c)<=a)&&(c=null!==(n=null===(t=s.persistedSize)||void 0===t?void 0:t.height)&&void 0!==n?n:o.height),(!s.persistWidth||Math.abs(s.currentSize.width-l)<=a)&&(l=null!==(r=null===(i=s.persistedSize)||void 0===i?void 0:i.width)&&void 0!==r?r:o.width),this._persistedSize.store(new oe["b"](l,c))}this._contentWidget.unlockPreference(),s=void 0}})),this._messageElement=oe["q"](this.element.domNode,oe["a"](".message")),this._listElement=oe["q"](this.element.domNode,oe["a"](".tree"));const l=r.createInstance(ye,this.editor);l.onDidClose(this.toggleDetails,this,this._disposables),this._details=new _e(l,this.editor);const c=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(105).showIcons);c();const u=r.createInstance(qe,this.editor);this._disposables.add(u),this._disposables.add(u.onDidToggleDetails(()=>this.toggleDetails())),this._list=new se["c"]("SuggestWidget",this._listElement,{getHeight:e=>this.getLayoutInfo().itemHeight,getTemplateId:e=>"suggestion"},[u],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,accessibilityProvider:{getRole:()=>"option",getAriaLabel:e=>{if(e.isResolved&&this._isDetailsVisible()){const{documentation:t,detail:n}=e.completion,i=z["w"]("{0}{1}",n||"",t?"string"===typeof t?t:t.value:"");return M["a"]("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",e.textLabel,i)}return e.textLabel},getWidgetAriaLabel:()=>M["a"]("suggest","Suggest"),getWidgetRole:()=>"listbox"}}),this._status=r.createInstance(Le,this.element.domNode);const h=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(105).showStatusBar);h(),this._disposables.add(Object(ae["b"])(this._list,i,{listInactiveFocusBackground:it,listInactiveFocusOutline:ce["b"]})),this._disposables.add(i.onDidColorThemeChange(e=>this._onThemeChange(e))),this._onThemeChange(i.getColorTheme()),this._disposables.add(this._list.onMouseDown(e=>this._onListMouseDownOrTap(e))),this._disposables.add(this._list.onTap(e=>this._onListMouseDownOrTap(e))),this._disposables.add(this._list.onDidChangeSelection(e=>this._onListSelection(e))),this._disposables.add(this._list.onDidChangeFocus(e=>this._onListFocus(e))),this._disposables.add(this.editor.onDidChangeCursorSelection(()=>this._onCursorSelectionChanged())),this._disposables.add(this.editor.onDidChangeConfiguration(e=>{e.hasChanged(105)&&(h(),c())})),this._ctxSuggestWidgetVisible=P["b"].Visible.bindTo(n),this._ctxSuggestWidgetDetailsVisible=P["b"].DetailsVisible.bindTo(n),this._ctxSuggestWidgetMultipleSuggestions=P["b"].MultipleSuggestions.bindTo(n),this._disposables.add(oe["o"](this._details.widget.domNode,"keydown",e=>{this._onDetailsKeydown.fire(e)})),this._disposables.add(this.editor.onMouseDown(e=>this._onEditorMouseDown(e)))}dispose(){var e;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),null===(e=this._loadingTimeout)||void 0===e||e.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){0!==this._state&&this._contentWidget.layout()}_onListMouseDownOrTap(e){"undefined"!==typeof e.element&&"undefined"!==typeof e.index&&(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){const n=this._completionModel;n&&(this._onDidSelect.fire({item:e,index:t,model:n}),this.editor.focus())}_onThemeChange(e){const t=e.getColor(Qe);t&&(this.element.domNode.style.backgroundColor=t.toString(),this._messageElement.style.backgroundColor=t.toString(),this._details.widget.domNode.style.backgroundColor=t.toString());const n=e.getColor(Je);n&&(this.element.domNode.style.borderColor=n.toString(),this._messageElement.style.borderColor=n.toString(),this._status.element.style.borderTopColor=n.toString(),this._details.widget.domNode.style.borderColor=n.toString(),this._detailsBorderColor=n.toString());const i=e.getColor(ce["db"]);i&&(this._detailsFocusBorderColor=i.toString()),this._details.widget.borderWidth="hc"===e.type?2:1}_onListFocus(e){var t;if(this._ignoreFocusEvents)return;if(!e.elements.length)return this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),void this.editor.setAriaOptions({activeDescendant:void 0});if(!this._completionModel)return;const n=e.elements[0],i=e.indexes[0];n!==this._focusedItem&&(null===(t=this._currentSuggestionDetails)||void 0===t||t.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=n,this._list.reveal(i),this._currentSuggestionDetails=Object(b["h"])(e=>Xe(this,void 0,void 0,(function*(){const t=Object(b["i"])(()=>{this._isDetailsVisible()&&this.showDetails(!0)},250);e.onCancellationRequested(()=>t.dispose());const i=yield n.resolve(e);return t.dispose(),i}))),this._currentSuggestionDetails.then(()=>{i>=this._list.length||n!==this._list.element(i)||(this._ignoreFocusEvents=!0,this._list.splice(i,1,[n]),this._list.setFocus([i]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:ze(i)}))}).catch(o["e"])),this._onDidFocus.fire({item:n,index:i,model:this._completionModel})}_setState(t){if(this._state!==t)switch(this._state=t,this.element.domNode.classList.toggle("frozen",4===t),this.element.domNode.classList.remove("message"),t){case 0:oe["K"](this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=e.LOADING_MESSAGE,oe["K"](this._listElement,this._status.element),oe["W"](this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=e.NO_SUGGESTIONS_MESSAGE,oe["K"](this._listElement,this._status.element),oe["W"](this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 3:oe["K"](this._messageElement),oe["W"](this._listElement,this._status.element),this._show();break;case 4:oe["K"](this._messageElement),oe["W"](this._listElement,this._status.element),this._show();break;case 5:oe["K"](this._messageElement),oe["W"](this._listElement,this._status.element),this._details.show(),this._show();break}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet(()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)},100)}showTriggered(e,t){0===this._state&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=Object(b["i"])(()=>this._setState(1),t)))}showSuggestions(e,t,n,i){var r,o;if(this._contentWidget.setPosition(this.editor.getPosition()),null===(r=this._loadingTimeout)||void 0===r||r.dispose(),null===(o=this._currentSuggestionDetails)||void 0===o||o.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),n&&2!==this._state&&0!==this._state)return void this._setState(4);const s=this._completionModel.items.length,a=0===s;if(this._ctxSuggestWidgetMultipleSuggestions.set(s>1),a)return this._setState(i?0:2),void(this._completionModel=void 0);this._focusedItem=void 0,this._list.splice(0,this._list.length,this._completionModel.items),this._setState(n?4:3),this._list.reveal(t,0),this._list.setFocus([t]),this._layout(this.element.size),this._detailsBorderColor&&(this._details.widget.domNode.style.borderColor=this._detailsBorderColor)}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){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}}toggleDetailsFocus(){5===this._state?(this._setState(3),this._detailsBorderColor&&(this._details.widget.domNode.style.borderColor=this._detailsBorderColor)):3===this._state&&this._isDetailsVisible()&&(this._setState(5),this._detailsFocusBorderColor&&(this._details.widget.domNode.style.borderColor=this._detailsFocusBorderColor))}toggleDetails(){this._isDetailsVisible()?(this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):!be(this._list.getFocusedElements()[0])&&!this._explainMode||3!==this._state&&5!==this._state&&4!==this._state||(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._positionDetails(),this.editor.focus(),this.element.domNode.classList.add("shows-details")}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){var e;null===(e=this._loadingTimeout)||void 0===e||e.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const t=this._persistedSize.restore(),n=Math.ceil(4.3*this.getLayoutInfo().itemHeight);t&&t.height<n&&this._persistedSize.store(t.with(void 0,n))}isFrozen(){return 4===this._state}_afterRender(e){null!==e?2!==this._state&&1!==this._state&&(this._isDetailsVisible()&&this._details.show(),this._positionDetails()):this._isDetailsVisible()&&this._details.hide()}_layout(e){var t,n,i;if(!this.editor.hasModel())return;if(!this.editor.getDomNode())return;const r=oe["z"](document.body),o=this.getLayoutInfo();e||(e=o.defaultSize);let s=e.height,a=e.width;if(this._status.element.style.lineHeight=o.itemHeight+"px",2===this._state||1===this._state)s=o.itemHeight+o.borderHeight,a=o.defaultSize.width/2,this.element.enableSashes(!1,!1,!1,!1),this.element.minSize=this.element.maxSize=new oe["b"](a,s),this._contentWidget.setPreference(2);else{const l=r.width-o.borderHeight-2*o.horizontalPadding;a>l&&(a=l);const c=this._completionModel?this._completionModel.stats.pLabelLen*o.typicalHalfwidthCharacterWidth:a,u=o.statusBarHeight+this._list.contentHeight+o.borderHeight,h=o.itemHeight+o.statusBarHeight,d=oe["D"](this.editor.getDomNode()),f=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),p=d.top+f.top+f.height,g=Math.min(r.height-p-o.verticalPadding,u),m=Math.min(d.top+f.top-o.verticalPadding,u);let v=Math.min(Math.max(m,g)+o.borderHeight,u);s===(null===(t=this._cappedHeight)||void 0===t?void 0:t.capped)&&(s=this._cappedHeight.wanted),s<h&&(s=h),s>v&&(s=v);const b=100;s>g||this._forceRenderingAbove&&m>b?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),v=m):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),v=g),this.element.preferredSize=new oe["b"](c,o.defaultSize.height),this.element.maxSize=new oe["b"](l,v),this.element.minSize=new oe["b"](220,h),this._cappedHeight=s===u?{wanted:null!==(i=null===(n=this._cappedHeight)||void 0===n?void 0:n.wanted)&&void 0!==i?i:e.height,capped:s}:void 0}this._resize(a,s)}_resize(e,t){const{width:n,height:i}=this.element.maxSize;e=Math.min(n,e),t=Math.min(i,t);const{statusBarHeight:r}=this.getLayoutInfo();this._list.layout(t-r,e),this._listElement.style.height=t-r+"px",this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode)}getLayoutInfo(){const e=this.editor.getOption(41),t=Object(Ge["b"])(this.editor.getOption(107)||e.lineHeight,8,1e3),n=this.editor.getOption(105).showStatusBar&&2!==this._state&&1!==this._state?t:0,i=this._details.widget.borderWidth,r=2*i;return{itemHeight:t,statusBarHeight:n,borderWidth:i,borderHeight:r,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new oe["b"](430,n+12*t+r)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};at.LOADING_MESSAGE=M["a"]("suggestWidget.loading","Loading..."),at.NO_SUGGESTIONS_MESSAGE=M["a"]("suggestWidget.noSuggestions","No suggestions."),at=Ye([Ze(1,m["a"]),Ze(2,A["b"]),Ze(3,le["b"]),Ze(4,y["a"])],at);class lt{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return!this._hidden&&this._position&&this._preference?{position:this._position,preference:[this._preference]}:null}beforeRender(){const{height:e,width:t}=this._widget.element.size,{borderWidth:n,horizontalPadding:i}=this._widget.getLayoutInfo();return new oe["b"](t+2*n+i,e+2*n)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}Object(le["f"])((e,t)=>{const n=e.getColor(rt);n&&t.addRule(`.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { color: ${n}; }`);const i=e.getColor(ot);n&&t.addRule(`.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .monaco-highlighted-label .highlight { color: ${i}; }`);const r=e.getColor(et);r&&t.addRule(`.monaco-editor .suggest-widget, .monaco-editor .suggest-details { color: ${r}; }`);const o=e.getColor(tt);o&&t.addRule(`.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused { color: ${o}; }`);const s=e.getColor(nt);s&&t.addRule(`.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .codicon { color: ${s}; }`);const a=e.getColor(ce["Jc"]);a&&t.addRule(`.monaco-editor .suggest-details a { color: ${a}; }`);const l=e.getColor(ce["Hc"]);l&&t.addRule(`.monaco-editor .suggest-details code { background-color: ${l}; }`)});var ct=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ut=function(e,t){return function(n,i){t(n,i,e)}};let ht=class e{constructor(t,n){this._editor=t,this._enabled=!1,this._ckAtEnd=e.AtEnd.bindTo(n),this._configListener=this._editor.onDidChangeConfiguration(e=>e.hasChanged(110)&&this._update()),this._update()}dispose(){var e;this._configListener.dispose(),null===(e=this._selectionListener)||void 0===e||e.dispose(),this._ckAtEnd.reset()}_update(){const e="on"===this._editor.getOption(110);if(this._enabled!==e)if(this._enabled=e,this._enabled){const e=()=>{if(!this._editor.hasModel())return void this._ckAtEnd.set(!1);const e=this._editor.getModel(),t=this._editor.getSelection(),n=e.getWordAtPosition(t.getStartPosition());n?this._ckAtEnd.set(n.endColumn===t.getStartPosition().column):this._ckAtEnd.set(!1)};this._selectionListener=this._editor.onDidChangeCursorSelection(e),e()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};ht.AtEnd=new A["c"]("atEndOfWord",!1),ht=ct([ut(1,A["b"])],ht);var dt=n("ef8e"),ft=n("3170");class pt{constructor(e,t,n){this._disposables=new a["b"],this._disposables.add(t.onDidShow(()=>this._onItem(t.getFocusedItem()))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType(i=>{if(this._active&&!t.isFrozen()){const t=i.charCodeAt(i.length-1);this._active.acceptCharacters.has(t)&&e.getOption(0)&&n(this._active.item)}}))}_onItem(e){if(!e||!Object(r["n"])(e.item.completion.commitCharacters))return void this.reset();if(this._active&&this._active.item.item===e.item)return;const t=new ft["b"];for(const n of e.item.completion.commitCharacters)n.length>0&&t.add(n.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}class gt{constructor(e,t){this._disposables=new a["b"],this._lastOvertyped=[],this._empty=!0,this._disposables.add(e.onWillType(()=>{if(!this._empty)return;if(!e.hasModel())return;const t=e.getSelections(),n=t.length;let i=!1;for(let e=0;e<n;e++)if(!t[e].isEmpty()){i=!0;break}if(!i)return;this._lastOvertyped=[];const r=e.getModel();for(let e=0;e<n;e++){const n=t[e];if(r.getValueLengthInRange(n)>gt._maxSelectionLength)return;this._lastOvertyped[e]={value:r.getValueInRange(n),multiline:n.startLineNumber!==n.endLineNumber}}this._empty=!1})),this._disposables.add(t.onDidCancel(e=>{this._empty||e.retrigger||(this._empty=!0)}))}getLastOvertypedInfo(e){if(!this._empty&&e>=0&&e<this._lastOvertyped.length)return this._lastOvertyped[e]}dispose(){this._disposables.dispose()}}gt._maxSelectionLength=51200;var mt=n("7061"),vt=n("30db"),bt=n("e58e"),yt=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},_t=function(e,t){return function(n,i){t(n,i,e)}};let wt=!1;class Ct{constructor(e,t){this._model=e,this._position=t;const n=e.getLineMaxColumn(t.lineNumber);if(n!==t.column){const n=e.getOffsetAt(t),i=e.getPositionAt(n+1);this._marker=e.deltaDecorations([],[{range:h["a"].fromPositions(t,i),options:{description:"suggest-line-suffix",stickiness:1}}])}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){const t=this._model.getDecorationRange(this._marker[0]),n=this._model.getOffsetAt(t.getStartPosition());return n-this._model.getOffsetAt(e)}return this._model.getLineMaxColumn(e.lineNumber)-e.column}}let St=class e{constructor(e,t,n,i,r,o){this._memoryService=t,this._commandService=n,this._contextKeyService=i,this._instantiationService=r,this._logService=o,this._lineSuffix=new a["d"],this._toDispose=new a["b"],this.editor=e,this.model=r.createInstance(re,this.editor);const l=P["b"].InsertMode.bindTo(i);l.set(e.getOption(105).insertMode),this.model.onDidTrigger(()=>l.set(e.getOption(105).insertMode)),this.widget=this._toDispose.add(new b["b"](()=>{const e=this._instantiationService.createInstance(at,this.editor);this._toDispose.add(e),this._toDispose.add(e.onDidSelect(e=>this._insertSuggestion(e,0),this));const t=new pt(this.editor,e,e=>this._insertSuggestion(e,2));this._toDispose.add(t),this._toDispose.add(this.model.onDidSuggest(e=>{0===e.completionModel.items.length&&t.reset()}));const n=P["b"].MakesTextEdit.bindTo(this._contextKeyService),i=P["b"].HasInsertAndReplaceRange.bindTo(this._contextKeyService),r=P["b"].CanResolve.bindTo(this._contextKeyService);return this._toDispose.add(Object(a["i"])(()=>{n.reset(),i.reset(),r.reset()})),this._toDispose.add(e.onDidFocus(({item:e})=>{const t=this.editor.getPosition(),o=e.editStart.column,s=t.column;let a=!0;if("smart"===this.editor.getOption(1)&&2===this.model.state&&!e.completion.command&&!e.completion.additionalTextEdits&&!(4&e.completion.insertTextRules)&&s-o===e.completion.insertText.length){const n=this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:o,endLineNumber:t.lineNumber,endColumn:s});a=n!==e.completion.insertText}n.set(a),i.set(!mt["a"].equals(e.editInsertEnd,e.editReplaceEnd)),r.set(Boolean(e.provider.resolveCompletionItem)||Boolean(e.completion.documentation)||e.completion.detail!==e.completion.label)})),this._toDispose.add(e.onDetailsKeyDown(e=>{e.toKeybinding().equals(new s["e"](!0,!1,!1,!1,33))||vt["f"]&&e.toKeybinding().equals(new s["e"](!1,!1,!1,!0,33))?e.stopPropagation():e.toKeybinding().isModifierKey()||this.editor.focus()})),e})),this._overtypingCapturer=this._toDispose.add(new b["b"](()=>this._toDispose.add(new gt(this.editor,this.model)))),this._alternatives=this._toDispose.add(new b["b"](()=>this._toDispose.add(new F(this.editor,this._contextKeyService)))),this._toDispose.add(r.createInstance(ht,e)),this._toDispose.add(this.model.onDidTrigger(e=>{this.widget.value.showTriggered(e.auto,e.shy?250:50),this._lineSuffix.value=new Ct(this.editor.getModel(),e.position)})),this._toDispose.add(this.model.onDidSuggest(e=>{if(!e.shy){let t=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.completionModel.items);this.widget.value.showSuggestions(e.completionModel,t,e.isFrozen,e.auto)}})),this._toDispose.add(this.model.onDidCancel(e=>{e.retrigger||this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{wt||(this.model.cancel(),this.model.clear())}));let c=P["b"].AcceptSuggestionsOnEnter.bindTo(i),u=()=>{const e=this.editor.getOption(1);c.set("on"===e||"smart"===e)};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>u())),u()}static get(t){return t.getContribution(e.ID)}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()}_insertSuggestion(e,t){if(!e||!e.item)return this._alternatives.value.reset(),this.model.cancel(),void this.model.clear();if(!this.editor.hasModel())return;const n=this.editor.getModel(),i=n.getAlternativeVersionId(),{item:r}=e,s=[],a=new U["b"];1&t||this.editor.pushUndoStop();const c=this.getOverwriteInfo(r,Boolean(8&t));if(this._memoryService.memorize(n,this.editor.getPosition(),r),Array.isArray(r.completion.additionalTextEdits)){const e=l["c"].capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",r.completion.additionalTextEdits.map(e=>u["a"].replace(h["a"].lift(e.range),e.text))),e.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!r.isResolved){const e=new bt["a"](!0);let i;const o=n.onDidChangeContent(e=>{if(e.isFlush)return a.cancel(),void o.dispose();for(let t of e.changes){const e=h["a"].getEndPosition(t.range);i&&!mt["a"].isBefore(e,i)||(i=e)}});let c=t;t|=2;let d=!1,f=this.editor.onWillType(()=>{f.dispose(),d=!0,2&c||this.editor.pushUndoStop()});s.push(r.resolve(a.token).then(()=>{if(!r.completion.additionalTextEdits||a.token.isCancellationRequested)return!1;if(i&&r.completion.additionalTextEdits.some(e=>mt["a"].isBefore(i,h["a"].getStartPosition(e.range))))return!1;d&&this.editor.pushUndoStop();const e=l["c"].capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",r.completion.additionalTextEdits.map(e=>u["a"].replace(h["a"].lift(e.range),e.text))),e.restoreRelativeVerticalPositionOfCursor(this.editor),!d&&2&c||this.editor.pushUndoStop(),!0}).then(t=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",e.elapsed(),t),o.dispose(),f.dispose()}))}let{insertText:d}=r.completion;4&r.completion.insertTextRules||(d=p["c"].escape(d)),f["SnippetController2"].get(this.editor).insert(d,{overwriteBefore:c.overwriteBefore,overwriteAfter:c.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(1&r.completion.insertTextRules),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),2&t||this.editor.pushUndoStop(),r.completion.command?r.completion.command.id===xt.id?this.model.trigger({auto:!0,shy:!1},!0):(s.push(this._commandService.executeCommand(r.completion.command.id,...r.completion.command.arguments?[...r.completion.command.arguments]:[]).catch(o["e"])),this.model.cancel()):this.model.cancel(),4&t&&this._alternatives.value.set(e,e=>{a.cancel();while(n.canUndo()){i!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(e,3|(8&t?8:0));break}}),this._alertCompletionItem(r),Promise.all(s).finally(()=>{this.model.clear(),a.dispose()})}getOverwriteInfo(e,t){Object(dt["c"])(this.editor.hasModel());let n="replace"===this.editor.getOption(105).insertMode;t&&(n=!n);const i=e.position.column-e.editStart.column,r=(n?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column,o=this.editor.getPosition().column-e.position.column,s=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:i+o,overwriteAfter:r+s}}_alertCompletionItem(e){if(Object(r["n"])(e.completion.additionalTextEdits)){let t=M["a"]("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);Object(i["a"])(t)}}triggerSuggest(e){this.editor.hasModel()&&(this.model.trigger({auto:!1,shy:!1},!1,e),this.editor.revealLine(this.editor.getPosition().lineNumber,0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;const t=this.editor.getPosition(),n=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},i=e=>{if(4&e.completion.insertTextRules||e.completion.additionalTextEdits)return!0;const t=this.editor.getPosition(),n=e.editStart.column,i=t.column;if(i-n!==e.completion.insertText.length)return!0;const r=this.editor.getModel().getValueInRange({startLineNumber:t.lineNumber,startColumn:n,endLineNumber:t.lineNumber,endColumn:i});return r!==e.completion.insertText};B["c"].once(this.model.onDidTrigger)(e=>{let t=[];B["c"].any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{Object(a["f"])(t),n()},void 0,t),this.model.onDidSuggest(({completionModel:e})=>{if(Object(a["f"])(t),0===e.items.length)return void n();const r=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),e.items),o=e.items[r];i(o)?(this.editor.pushUndoStop(),this._insertSuggestion({index:r,item:o,model:e},7)):n()},void 0,t)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealLine(t.lineNumber,0),this.editor.focus()}acceptSelectedSuggestion(e,t){const n=this.widget.value.getFocusedItem();let i=0;e&&(i|=4),t&&(i|=8),this._insertSuggestion(n,i)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.value.stopForceRenderingAbove()}};St.ID="editor.contrib.suggestController",St=yt([_t(1,I),_t(2,T["b"]),_t(3,A["b"]),_t(4,y["a"]),_t(5,X["b"])],St);class xt extends c["b"]{constructor(){super({id:xt.id,label:M["a"]("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:A["a"].and(d["a"].writable,d["a"].hasCompletionItemProvider),kbOpts:{kbExpr:d["a"].textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t){const n=St.get(t);n&&n.triggerSuggest()}}xt.id="editor.action.triggerSuggest",Object(c["l"])(St.ID,St),Object(c["j"])(xt);const Ot=190,kt=c["c"].bindToContribution(St.get);Object(c["k"])(new kt({id:"acceptSelectedSuggestion",precondition:P["b"].Visible,handler(e){e.acceptSelectedSuggestion(!0,!1)}})),N["a"].registerKeybindingRule({id:"acceptSelectedSuggestion",when:A["a"].and(P["b"].Visible,d["a"].textInputFocus),primary:2,weight:Ot}),N["a"].registerKeybindingRule({id:"acceptSelectedSuggestion",when:A["a"].and(P["b"].Visible,d["a"].textInputFocus,P["b"].AcceptSuggestionsOnEnter,P["b"].MakesTextEdit),primary:3,weight:Ot}),Se["d"].appendMenuItem(P["g"],{command:{id:"acceptSelectedSuggestion",title:M["a"]("accept.insert","Insert")},group:"left",order:1,when:P["b"].HasInsertAndReplaceRange.toNegated()}),Se["d"].appendMenuItem(P["g"],{command:{id:"acceptSelectedSuggestion",title:M["a"]("accept.insert","Insert")},group:"left",order:1,when:A["a"].and(P["b"].HasInsertAndReplaceRange,P["b"].InsertMode.isEqualTo("insert"))}),Se["d"].appendMenuItem(P["g"],{command:{id:"acceptSelectedSuggestion",title:M["a"]("accept.replace","Replace")},group:"left",order:1,when:A["a"].and(P["b"].HasInsertAndReplaceRange,P["b"].InsertMode.isEqualTo("replace"))}),Object(c["k"])(new kt({id:"acceptAlternativeSelectedSuggestion",precondition:A["a"].and(P["b"].Visible,d["a"].textInputFocus),kbOpts:{weight:Ot,kbExpr:d["a"].textInputFocus,primary:1027,secondary:[1026]},handler(e){e.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:P["g"],group:"left",order:2,when:A["a"].and(P["b"].HasInsertAndReplaceRange,P["b"].InsertMode.isEqualTo("insert")),title:M["a"]("accept.replace","Replace")},{menuId:P["g"],group:"left",order:2,when:A["a"].and(P["b"].HasInsertAndReplaceRange,P["b"].InsertMode.isEqualTo("replace")),title:M["a"]("accept.insert","Insert")}]})),T["a"].registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),Object(c["k"])(new kt({id:"hideSuggestWidget",precondition:P["b"].Visible,handler:e=>e.cancelSuggestWidget(),kbOpts:{weight:Ot,kbExpr:d["a"].textInputFocus,primary:9,secondary:[1033]}})),Object(c["k"])(new kt({id:"selectNextSuggestion",precondition:A["a"].and(P["b"].Visible,P["b"].MultipleSuggestions),handler:e=>e.selectNextSuggestion(),kbOpts:{weight:Ot,kbExpr:d["a"].textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),Object(c["k"])(new kt({id:"selectNextPageSuggestion",precondition:A["a"].and(P["b"].Visible,P["b"].MultipleSuggestions),handler:e=>e.selectNextPageSuggestion(),kbOpts:{weight:Ot,kbExpr:d["a"].textInputFocus,primary:12,secondary:[2060]}})),Object(c["k"])(new kt({id:"selectLastSuggestion",precondition:A["a"].and(P["b"].Visible,P["b"].MultipleSuggestions),handler:e=>e.selectLastSuggestion()})),Object(c["k"])(new kt({id:"selectPrevSuggestion",precondition:A["a"].and(P["b"].Visible,P["b"].MultipleSuggestions),handler:e=>e.selectPrevSuggestion(),kbOpts:{weight:Ot,kbExpr:d["a"].textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),Object(c["k"])(new kt({id:"selectPrevPageSuggestion",precondition:A["a"].and(P["b"].Visible,P["b"].MultipleSuggestions),handler:e=>e.selectPrevPageSuggestion(),kbOpts:{weight:Ot,kbExpr:d["a"].textInputFocus,primary:11,secondary:[2059]}})),Object(c["k"])(new kt({id:"selectFirstSuggestion",precondition:A["a"].and(P["b"].Visible,P["b"].MultipleSuggestions),handler:e=>e.selectFirstSuggestion()})),Object(c["k"])(new kt({id:"toggleSuggestionDetails",precondition:P["b"].Visible,handler:e=>e.toggleSuggestionDetails(),kbOpts:{weight:Ot,kbExpr:d["a"].textInputFocus,primary:2058,mac:{primary:266}},menuOpts:[{menuId:P["g"],group:"right",order:1,when:A["a"].and(P["b"].DetailsVisible,P["b"].CanResolve),title:M["a"]("detail.more","show less")},{menuId:P["g"],group:"right",order:1,when:A["a"].and(P["b"].DetailsVisible.toNegated(),P["b"].CanResolve),title:M["a"]("detail.less","show more")}]})),Object(c["k"])(new kt({id:"toggleExplainMode",precondition:P["b"].Visible,handler:e=>e.toggleExplainMode(),kbOpts:{weight:100,primary:2133}})),Object(c["k"])(new kt({id:"toggleSuggestionFocus",precondition:P["b"].Visible,handler:e=>e.toggleSuggestionFocus(),kbOpts:{weight:Ot,kbExpr:d["a"].textInputFocus,primary:2570,mac:{primary:778}}})),Object(c["k"])(new kt({id:"insertBestCompletion",precondition:A["a"].and(d["a"].textInputFocus,A["a"].equals("config.editor.tabCompletion","on"),ht.AtEnd,P["b"].Visible.toNegated(),F.OtherSuggestions.toNegated(),f["SnippetController2"].InSnippetMode.toNegated()),handler:(e,t)=>{e.triggerSuggestAndAcceptBest(Object(dt["j"])(t)?Object.assign({fallback:"tab"},t):{fallback:"tab"})},kbOpts:{weight:Ot,primary:2}})),Object(c["k"])(new kt({id:"insertNextSuggestion",precondition:A["a"].and(d["a"].textInputFocus,A["a"].equals("config.editor.tabCompletion","on"),F.OtherSuggestions,P["b"].Visible.toNegated(),f["SnippetController2"].InSnippetMode.toNegated()),handler:e=>e.acceptNextSuggestion(),kbOpts:{weight:Ot,kbExpr:d["a"].textInputFocus,primary:2}})),Object(c["k"])(new kt({id:"insertPrevSuggestion",precondition:A["a"].and(d["a"].textInputFocus,A["a"].equals("config.editor.tabCompletion","on"),F.OtherSuggestions,P["b"].Visible.toNegated(),f["SnippetController2"].InSnippetMode.toNegated()),handler:e=>e.acceptPrevSuggestion(),kbOpts:{weight:Ot,kbExpr:d["a"].textInputFocus,primary:1026}})),Object(c["j"])(class extends c["b"]{constructor(){super({id:"editor.action.resetSuggestSize",label:M["a"]("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(e,t){St.get(t).resetWidgetSize()}})},"7aac":function(e,t,n){"use strict";var i=n("c532");e.exports=i.isStandardBrowserEnv()?function(){return{write:function(e,t,n,r,o,s){var a=[];a.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.isString(r)&&a.push("path="+r),i.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7aad":function(e,t,n){},"7ab3":function(e,t,n){"use strict";n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return d})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p}));var i=n("3742"),r=n("30db"),o=n("1e93");let s,a,l;function c(){return s||(s=new TextDecoder("UTF-16LE")),s}function u(){return a||(a=new TextDecoder("UTF-16BE")),a}function h(){return l||(l=r["e"]()?c():u()),l}const d="undefined"!==typeof TextDecoder;let f,p;function g(e,t,n){const i=new Uint16Array(e.buffer,t,n);return n>0&&(65279===i[0]||65534===i[0])?m(e,t,n):c().decode(i)}function m(e,t,n){let i=[],r=0;for(let s=0;s<n;s++){const n=o["b"](e,t);t+=2,i[r++]=String.fromCharCode(n)}return i.join("")}d?(f=e=>new v(e),p=g):(f=e=>new b,p=m);class v{constructor(e){this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(0===this._bufferLength)return"";const e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return h().decode(e)}_flushBuffer(){const e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e}write1(e){const t=this._capacity-this._bufferLength;t<=1&&(0===t||i["F"](e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCII(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e}appendASCIIString(e){const t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(let n=0;n<t;n++)this._buffer[this._bufferLength++]=e.charCodeAt(n)}}class b{constructor(){this._pieces=[],this._piecesLen=0}reset(){this._pieces=[],this._piecesLen=0}build(){return this._pieces.join("")}write1(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)}appendASCII(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)}appendASCIIString(e){this._pieces[this._piecesLen++]=e}}},"7b0b":function(e,t,n){var i=n("1d80"),r=Object;e.exports=function(e){return r(i(e))}},"7b3e":function(e,t,n){"use strict";var i,r=n("a3de");
|
||
/**
|
||
* Checks if an event is supported in the current execution environment.
|
||
*
|
||
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||
* `reset`, `load`, `error`, and `select`.
|
||
*
|
||
* Borrows from Modernizr.
|
||
*
|
||
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||
* @param {?boolean} capture Check if the capture phase is supported.
|
||
* @return {boolean} True if the event is supported.
|
||
* @internal
|
||
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||
*/
|
||
function o(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var s=document.createElement("div");s.setAttribute(n,"return;"),o="function"===typeof s[n]}return!o&&i&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}r.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=o},"7b4a":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n("0a0f");const r=Object(i["c"])("textResourceConfigurationService"),o=Object(i["c"])("textResourcePropertiesService")},"7b59":function(e,t,n){},"7b6a":function(e,t,n){"use strict";e.exports=u;var i=n("e142").codes,r=i.ERR_METHOD_NOT_IMPLEMENTED,o=i.ERR_MULTIPLE_CALLBACK,s=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=i.ERR_TRANSFORM_WITH_LENGTH_0,l=n("030c");function c(e,t){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(null===i)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),i(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"===typeof e.transform&&(this._transform=e.transform),"function"===typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",h)}function h(){var e=this;"function"!==typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,n){d(e,t,n)}))}function d(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}n("3fb5")(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new r("_transform()"))},u.prototype._write=function(e,t,n){var i=this._transformState;if(i.writecb=n,i.writechunk=e,i.writeencoding=t,!i.transforming){var r=this._readableState;(i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,(function(e){t(e)}))}},"7c3e":function(e,t,n){"use strict";n.r(t),n.d(t,"ContextMenuController",(function(){return v}));var i=n("dff7"),r=n("11f7"),o=n("f070"),s=n("a666"),a=n("b2cc"),l=n("c101"),c=n("7e32"),u=n("4fc3"),h=n("533b"),d=n("6dec"),f=n("eff2"),p=n("30db"),g=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},m=function(e,t){return function(n,i){t(n,i,e)}};let v=class e{constructor(e,t,n,i,o,a){this._contextMenuService=t,this._contextViewService=n,this._contextKeyService=i,this._keybindingService=o,this._menuService=a,this._toDispose=new s["b"],this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(e=>this._onContextMenu(e))),this._toDispose.add(this._editor.onMouseWheel(e=>{if(this._contextMenuIsBeingShownCount>0){const t=this._contextViewService.getContextViewElement(),n=e.srcElement;n.shadowRoot&&r["F"](t)===n.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(e=>{58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.showContextMenu())}))}static get(t){return t.getContribution(e.ID)}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(18))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)return;if(e.event.preventDefault(),6!==e.target.type&&7!==e.target.type&&1!==e.target.type)return;if(this._editor.focus(),e.target.position){let t=!1;for(const n of this._editor.getSelections())if(n.containsPosition(e.target.position)){t=!0;break}t||this._editor.setPosition(e.target.position)}let t=null;1!==e.target.type&&(t={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(18))return;if(!this._editor.hasModel())return;if(!this._contextMenuService)return void this._editor.focus();const t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?c["b"].SimpleEditorContext:c["b"].EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){const n=[],i=this._menuService.createMenu(t,this._contextKeyService),r=i.getActions({arg:e.uri});i.dispose();for(let s of r){const[,t]=s;let i=0;for(const r of t)if(r instanceof c["e"]){const t=this._getMenuActions(e,r.item.submenu);t.length>0&&(n.push(new o["e"](r.id,r.label,t)),i++)}else n.push(r),i++;i&&n.push(new o["d"])}return n.length&&n.pop(),n}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;const n=this._editor.getOption(51);if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const e=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),n=r["D"](this._editor.getDomNode()),i=n.left+e.left,o=n.top+e.top+e.height;t={x:i,y:o}}const i=this._editor.getOption(113)&&!p["c"];this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:i?this._editor.getDomNode():void 0,getAnchor:()=>t,getActions:()=>e,getActionViewItem:e=>{const t=this._keybindingFor(e);if(t)return new f["a"](e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0});const n=e;return"function"===typeof n.getActionViewItem?n.getActionViewItem():new f["a"](e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:e=>this._keybindingFor(e),onHide:e=>{this._contextMenuIsBeingShownCount--,this._editor.focus(),this._editor.updateOptions({hover:n})}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};v.ID="editor.contrib.contextmenu",v=g([m(1,h["a"]),m(2,h["b"]),m(3,u["b"]),m(4,d["a"]),m(5,c["a"])],v);class b extends a["b"]{constructor(){super({id:"editor.action.showContextMenu",label:i["a"]("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:l["a"].textInputFocus,primary:1092,weight:100}})}run(e,t){let n=v.get(t);n.showContextMenu()}}Object(a["l"])(v.ID,v),Object(a["j"])(b)},"7c73":function(e,t,n){var i,r=n("825a"),o=n("37e8"),s=n("7839"),a=n("d012"),l=n("1be4"),c=n("cc12"),u=n("f772"),h=">",d="<",f="prototype",p="script",g=u("IE_PROTO"),m=function(){},v=function(e){return d+p+h+e+d+"/"+p+h},b=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){var e,t=c("iframe"),n="java"+p+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},_=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}_="undefined"!=typeof document?document.domain&&i?b(i):y():b(i);var e=s.length;while(e--)delete _[f][s[e]];return _()};a[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[f]=r(e),n=new m,m[f]=null,n[g]=e):n=_(),void 0===t?n:o.f(n,t)}},"7cc8":function(e,t,n){},"7d6c":function(e,t,n){"use strict";n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"g",(function(){return g})),n.d(t,"a",(function(){return m})),n.d(t,"j",(function(){return v})),n.d(t,"c",(function(){return y})),n.d(t,"b",(function(){return _})),n.d(t,"f",(function(){return w})),n.d(t,"i",(function(){return C})),n.d(t,"h",(function(){return S})),n.d(t,"H",(function(){return N})),n.d(t,"G",(function(){return W})),n.d(t,"r",(function(){return H})),n.d(t,"C",(function(){return U})),n.d(t,"q",(function(){return q})),n.d(t,"B",(function(){return $})),n.d(t,"s",(function(){return K})),n.d(t,"D",(function(){return G})),n.d(t,"k",(function(){return Z})),n.d(t,"l",(function(){return Q})),n.d(t,"m",(function(){return J})),n.d(t,"t",(function(){return ee})),n.d(t,"x",(function(){return te})),n.d(t,"w",(function(){return ne})),n.d(t,"K",(function(){return ie})),n.d(t,"L",(function(){return re})),n.d(t,"u",(function(){return oe})),n.d(t,"o",(function(){return se})),n.d(t,"J",(function(){return le})),n.d(t,"p",(function(){return ce})),n.d(t,"I",(function(){return de})),n.d(t,"F",(function(){return fe})),n.d(t,"y",(function(){return pe})),n.d(t,"n",(function(){return ge})),n.d(t,"v",(function(){return me})),n.d(t,"A",(function(){return ve})),n.d(t,"z",(function(){return be})),n.d(t,"E",(function(){return ye}));var i=n("6d8b"),r=n("861c"),o=n("41ef"),s=n("e0d3"),a=n("cbe5"),l=1,c={},u=Object(s["o"])(),h=Object(s["o"])(),d=0,f=1,p=2,g=["emphasis","blur","select"],m=["normal","emphasis","blur","select"],v=10,b=9,y="highlight",_="downplay",w="select",C="unselect",S="toggleSelect";function x(e){return null!=e&&"none"!==e}function O(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function k(e){O(e,"emphasis",p)}function L(e){e.hoverState===p&&O(e,"normal",d)}function E(e){O(e,"blur",f)}function D(e){e.hoverState===f&&O(e,"normal",d)}function I(e){e.selected=!0}function M(e){e.selected=!1}function T(e,t,n){t(e,n)}function A(e,t,n){T(e,t,n),e.isGroup&&e.traverse((function(e){T(e,t,n)}))}function N(e,t){switch(t){case"emphasis":e.hoverState=p;break;case"normal":e.hoverState=d;break;case"blur":e.hoverState=f;break;case"select":e.selected=!0}}function P(e,t,n,i){for(var r=e.style,o={},s=0;s<t.length;s++){var a=t[s],l=r[a];o[a]=null==l?i&&i[a]:l}for(s=0;s<e.animators.length;s++){var c=e.animators[s];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&"style"===c.targetName&&c.saveTo(o,t)}return o}function j(e,t,n,r){var s=n&&Object(i["indexOf"])(n,"select")>=0,l=!1;if(e instanceof a["b"]){var c=u(e),h=s&&c.selectFill||c.normalFill,d=s&&c.selectStroke||c.normalStroke;if(x(h)||x(d)){r=r||{};var f=r.style||{};"inherit"===f.fill?(l=!0,r=Object(i["extend"])({},r),f=Object(i["extend"])({},f),f.fill=h):!x(f.fill)&&x(h)?(l=!0,r=Object(i["extend"])({},r),f=Object(i["extend"])({},f),f.fill=Object(o["liftColor"])(h)):!x(f.stroke)&&x(d)&&(l||(r=Object(i["extend"])({},r),f=Object(i["extend"])({},f)),f.stroke=Object(o["liftColor"])(d)),r.style=f}}if(r&&null==r.z2){l||(r=Object(i["extend"])({},r));var p=e.z2EmphasisLift;r.z2=e.z2+(null!=p?p:v)}return r}function R(e,t,n){if(n&&null==n.z2){n=Object(i["extend"])({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:b)}return n}function F(e,t,n){var r=Object(i["indexOf"])(e.currentStates,t)>=0,o=e.style.opacity,s=r?null:P(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=Object(i["extend"])({},n),a=Object(i["extend"])({opacity:r?o:.1*s.opacity},a),n.style=a),n}function B(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return j(this,e,t,n);if("blur"===e)return F(this,e,n);if("select"===e)return R(this,e,n)}return n}function W(e){e.stateProxy=B;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=B),n&&(n.stateProxy=B)}function V(e,t){!Y(e,t)&&!e.__highByOuter&&A(e,k)}function z(e,t){!Y(e,t)&&!e.__highByOuter&&A(e,L)}function H(e,t){e.__highByOuter|=1<<(t||0),A(e,k)}function U(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&A(e,L)}function q(e){A(e,E)}function $(e){A(e,D)}function K(e){A(e,I)}function G(e){A(e,M)}function Y(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Z(e){var t=e.getModel(),n=[],r=[];t.eachComponent((function(t,i){var o=h(i),s="series"===t,a=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&r.push(a),o.isBlured&&(a.group.traverse((function(e){D(e)})),s&&n.push(i)),o.isBlured=!1})),Object(i["each"])(r,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function X(e,t,n,r){var o=r.getModel();function s(e,t){for(var n=0;n<t.length;n++){var i=e.getItemGraphicEl(t[n]);i&&$(i)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var a=o.getSeriesByIndex(e),l=a.coordinateSystem;l&&l.master&&(l=l.master);var c=[];o.eachSeries((function(e){var o=a===e,u=e.coordinateSystem;u&&u.master&&(u=u.master);var d=u&&l?u===l:o;if(!("series"===n&&!o||"coordinateSystem"===n&&!d||"series"===t&&o)){var f=r.getViewOfSeriesModel(e);if(f.group.traverse((function(e){e.__highByOuter&&o&&"self"===t||E(e)})),Object(i["isArrayLike"])(t))s(e.getData(),t);else if(Object(i["isObject"])(t))for(var p=Object(i["keys"])(t),g=0;g<p.length;g++)s(e.getData(p[g]),t[p[g]]);c.push(e),h(e).isBlured=!0}})),o.eachComponent((function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,o)}}))}}function Q(e,t,n){if(null!=e&&null!=t){var i=n.getModel().getComponent(e,t);if(i){h(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(e){E(e)}))}}}function J(e,t,n){var o=e.seriesIndex,a=e.getData(t.dataType);if(a){var l=Object(s["u"])(a,t);l=(Object(i["isArray"])(l)?l[0]:l)||0;var c=a.getItemGraphicEl(l);if(!c){var u=a.count(),h=0;while(!c&&h<u)c=a.getItemGraphicEl(h++)}if(c){var d=Object(r["a"])(c);X(o,d.focus,d.blurScope,n)}else{var f=e.get(["emphasis","focus"]),p=e.get(["emphasis","blurScope"]);null!=f&&X(o,f,p,n)}}}function ee(e,t,n,i){var o={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return o;var s=i.getModel().getComponent(e,t);if(!s)return o;var a=i.getViewOfComponentModel(s);if(!a||!a.findHighDownDispatchers)return o;for(var l,c=a.findHighDownDispatchers(n),u=0;u<c.length;u++)if("self"===Object(r["a"])(c[u]).focus){l=!0;break}return{focusSelf:l,dispatchers:c}}function te(e,t,n){var o=Object(r["a"])(e),s=ee(o.componentMainType,o.componentIndex,o.componentHighDownName,n),a=s.dispatchers,l=s.focusSelf;a?(l&&Q(o.componentMainType,o.componentIndex,n),Object(i["each"])(a,(function(e){return V(e,t)}))):(X(o.seriesIndex,o.focus,o.blurScope,n),"self"===o.focus&&Q(o.componentMainType,o.componentIndex,n),V(e,t))}function ne(e,t,n){Z(n);var o=Object(r["a"])(e),s=ee(o.componentMainType,o.componentIndex,o.componentHighDownName,n).dispatchers;s?Object(i["each"])(s,(function(e){return z(e,t)})):z(e,t)}function ie(e,t,n){if(ve(t)){var r=t.dataType,o=e.getData(r),a=Object(s["u"])(o,t);Object(i["isArray"])(a)||(a=[a]),e[t.type===S?"toggleSelect":t.type===w?"select":"unselect"](a,r)}}function re(e){var t=e.getAllData();Object(i["each"])(t,(function(t){var n=t.data,i=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,i)?K(t):G(t)}))}))}function oe(e){var t=[];return e.eachSeries((function(e){var n=e.getAllData();Object(i["each"])(n,(function(n){n.data;var i=n.type,r=e.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:e.seriesIndex};null!=i&&(o.dataType=i),t.push(o)}}))})),t}function se(e,t,n){fe(e,!0),A(e,W),ce(e,t,n)}function ae(e){fe(e,!1)}function le(e,t,n,i){i?ae(e):se(e,t,n)}function ce(e,t,n){var i=Object(r["a"])(e);null!=t?(i.focus=t,i.blurScope=n):i.focus&&(i.focus=null)}var ue=["emphasis","blur","select"],he={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function de(e,t,n,i){n=n||"itemStyle";for(var r=0;r<ue.length;r++){var o=ue[r],s=t.getModel([o,n]),a=e.ensureState(o);a.style=i?i(s):s[he[n]]()}}function fe(e,t){var n=!1===t,i=e;e.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function pe(e){return!(!e||!e.__highDownDispatcher)}function ge(e,t,n){var i=Object(r["a"])(e);i.componentMainType=t.mainType,i.componentIndex=t.componentIndex,i.componentHighDownName=n}function me(e){var t=c[e];return null==t&&l<=32&&(t=c[e]=l++),t}function ve(e){var t=e.type;return t===w||t===C||t===S}function be(e){var t=e.type;return t===y||t===_}function ye(e){var t=u(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}},"7db0":function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").find,o=n("44d2"),s="find",a=!0;s in[]&&Array(1)[s]((function(){a=!1})),i({target:"Array",proto:!0,forced:a},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o(s)},"7ddc":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("11f7"),r=n("561a");const o=new RegExp(`(\\\\)?\\$\\((${r["a"].iconNameExpression}(?:${r["a"].iconModifierExpression})?)\\)`,"g");function s(e){const t=new Array;let n,i=0,r=0;while(null!==(n=o.exec(e))){r=n.index||0,t.push(e.substring(i,r)),i=(n.index||0)+n[0].length;const[,o,s]=n;t.push(o?`$(${s})`:a({id:s}))}return i<e.length&&t.push(e.substring(i)),t}function a(e){const t=i["a"]("span");return t.classList.add(...r["a"].asClassNameArray(e)),t}},"7de1":function(e,t,n){"use strict";n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return M}));var i=n("aa3d"),r=n("a666"),o=n("a60f"),s=n("308f"),a=n("1898"),l=n("42e3"),c=n("9ee1");function u(e,t){const n=[];for(let i of t){if(e.start>=i.range.end)continue;if(e.end<i.range.start)break;const t=c["a"].intersect(e,i.range);c["a"].isEmpty(t)||n.push({range:t,size:i.size})}return n}function h({start:e,end:t},n){return{start:e+n,end:t+n}}function d(e){const t=[];let n=null;for(let i of e){const e=i.range.start,r=i.range.end,o=i.size;n&&o===n.size?n.range.end=r:(n={range:{start:e,end:r},size:o},t.push(n))}return t}function f(...e){return d(e.reduce((e,t)=>e.concat(t),[]))}class p{constructor(){this.groups=[],this._size=0}splice(e,t,n=[]){const i=n.length-t,r=u({start:0,end:e},this.groups),o=u({start:e+t,end:Number.POSITIVE_INFINITY},this.groups).map(e=>({range:h(e.range,i),size:e.size})),s=n.map((t,n)=>({range:{start:e+n,end:e+n+1},size:t.size}));this.groups=f(r,s,o),this._size=this.groups.reduce((e,t)=>e+t.size*(t.range.end-t.range.start),0)}get count(){const e=this.groups.length;return e?this.groups[e-1].range.end:0}get size(){return this._size}indexAt(e){if(e<0)return-1;let t=0,n=0;for(let i of this.groups){const r=i.range.end-i.range.start,o=n+r*i.size;if(e<o)return t+Math.floor((e-n)/i.size);t+=r,n=o}return t}indexAfter(e){return Math.min(this.indexAt(e)+1,this.count)}positionAt(e){if(e<0)return-1;let t=0,n=0;for(let i of this.groups){const r=i.range.end-i.range.start,o=n+r;if(e<o)return t+(e-n)*i.size;t+=r*i.size,n=o}return-1}}var g=n("11f7");function m(e){try{e.parentElement&&e.parentElement.removeChild(e)}catch(t){}}class v{constructor(e){this.renderers=e,this.cache=new Map}alloc(e){let t=this.getTemplateCache(e).pop();if(!t){const n=Object(g["a"])(".monaco-list-row"),i=this.getRenderer(e),r=i.renderTemplate(n);t={domNode:n,templateId:e,templateData:r}}return t}release(e){e&&this.releaseRow(e)}releaseRow(e){const{domNode:t,templateId:n}=e;t&&(t.classList.remove("scrolling"),m(t));const i=this.getTemplateCache(n);i.push(e)}getTemplateCache(e){let t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t}dispose(){this.cache.forEach((e,t)=>{for(const n of e){const e=this.getRenderer(t);e.disposeTemplate(n.templateData),n.templateData=null}}),this.cache.clear()}getRenderer(e){const t=this.renderers.get(e);if(!t)throw new Error("No renderer found for "+e);return t}}var b=n("6424"),y=n("e8e3"),_=n("650e"),w=n("5fe7"),C=n("0f70"),S=n("e32d"),x=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};const O={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(e){return[e]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class k{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class L{constructor(e){this.elements=e}update(){}getData(){return this.elements}}class E{constructor(){this.types=[],this.files=[]}update(e){if(e.types&&this.types.splice(0,this.types.length,...e.types),e.files){this.files.splice(0,this.files.length);for(let t=0;t<e.files.length;t++){const n=e.files.item(t);n&&(n.size||n.type)&&this.files.push(n)}}}getData(){return{types:this.types,files:this.files}}}function D(e,t){return Array.isArray(e)&&Array.isArray(t)?Object(y["h"])(e,t):e===t}class I{constructor(e){(null===e||void 0===e?void 0:e.getSetSize)?this.getSetSize=e.getSetSize.bind(e):this.getSetSize=(e,t,n)=>n,(null===e||void 0===e?void 0:e.getPosInSet)?this.getPosInSet=e.getPosInSet.bind(e):this.getPosInSet=(e,t)=>t+1,(null===e||void 0===e?void 0:e.getRole)?this.getRole=e.getRole.bind(e):this.getRole=e=>"listitem",(null===e||void 0===e?void 0:e.isChecked)?this.isChecked=e.isChecked.bind(e):this.isChecked=e=>{}}}class M{constructor(e,t,n,c=O){if(this.virtualDelegate=t,this.domId="list_id_"+ ++M.InstanceCount,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new w["a"](50),this.splicing=!1,this.dragOverAnimationStopDisposable=r["a"].None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=r["a"].None,this.onDragLeaveTimeout=r["a"].None,this.disposables=new r["b"],this._onDidChangeContentHeight=new s["b"],this._horizontalScrolling=!1,c.horizontalScrolling&&c.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=new p;for(const i of n)this.renderers.set(i.templateId,i);this.cache=this.disposables.add(new v(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support","boolean"!==typeof c.mouseSupport||c.mouseSupport),this._horizontalScrolling=Object(i["e"])(c,e=>e.horizontalScrolling,O.horizontalScrolling),this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.additionalScrollHeight="undefined"===typeof c.additionalScrollHeight?0:c.additionalScrollHeight,this.accessibilityProvider=new I(c.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows";const u=Object(i["e"])(c,e=>e.transformOptimization,O.transformOptimization);u&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)"),this.disposables.add(o["b"].addTarget(this.rowsContainer)),this.scrollable=new l["a"](Object(i["e"])(c,e=>e.smoothScrolling,!1)?125:0,e=>Object(g["V"])(e)),this.scrollableElement=this.disposables.add(new a["c"](this.rowsContainer,{alwaysConsumeMouseWheel:Object(i["e"])(c,e=>e.alwaysConsumeMouseWheel,O.alwaysConsumeMouseWheel),horizontal:1,vertical:Object(i["e"])(c,e=>e.verticalScrollMode,O.verticalScrollMode),useShadows:Object(i["e"])(c,e=>e.useShadows,O.useShadows),mouseWheelScrollSensitivity:c.mouseWheelScrollSensitivity,fastScrollSensitivity:c.fastScrollSensitivity},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add(Object(g["i"])(this.rowsContainer,o["a"].Change,e=>this.onTouchChange(e))),this.disposables.add(Object(g["i"])(this.scrollableElement.getDomNode(),"scroll",e=>e.target.scrollTop=0)),this.disposables.add(Object(g["i"])(this.domNode,"dragover",e=>this.onDragOver(this.toDragEvent(e)))),this.disposables.add(Object(g["i"])(this.domNode,"drop",e=>this.onDrop(this.toDragEvent(e)))),this.disposables.add(Object(g["i"])(this.domNode,"dragleave",e=>this.onDragLeave(this.toDragEvent(e)))),this.disposables.add(Object(g["i"])(this.domNode,"dragend",e=>this.onDragEnd(e))),this.setRowLineHeight=Object(i["e"])(c,e=>e.setRowLineHeight,O.setRowLineHeight),this.setRowHeight=Object(i["e"])(c,e=>e.setRowHeight,O.setRowHeight),this.supportDynamicHeights=Object(i["e"])(c,e=>e.supportDynamicHeights,O.supportDynamicHeights),this.dnd=Object(i["e"])(c,e=>e.dnd,O.dnd),this.layout()}get contentHeight(){return this.rangeMap.size}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(e){if(e!==this._horizontalScrolling){if(e&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=e,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const e of this.items)this.measureItemWidth(e);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:Object(g["C"])(this.domNode)}),this.rowsContainer.style.width=Math.max(this.scrollWidth||0,this.renderWidth)+"px"}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}updateOptions(e){void 0!==e.additionalScrollHeight&&(this.additionalScrollHeight=e.additionalScrollHeight,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),void 0!==e.smoothScrolling&&this.scrollable.setSmoothScrollDuration(e.smoothScrolling?125:0),void 0!==e.horizontalScrolling&&(this.horizontalScrolling=e.horizontalScrolling),void 0!==e.mouseWheelScrollSensitivity&&this.scrollableElement.updateOptions({mouseWheelScrollSensitivity:e.mouseWheelScrollSensitivity}),void 0!==e.fastScrollSensitivity&&this.scrollableElement.updateOptions({fastScrollSensitivity:e.fastScrollSensitivity})}splice(e,t,n=[]){if(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)}}_splice(e,t,n=[]){const i=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),o={start:e,end:e+t},s=c["a"].intersect(i,o),a=new Map;for(let r=s.start;r<s.end;r++){const e=this.items[r];if(e.dragStartDisposable.dispose(),e.row){let t=a.get(e.templateId);t||(t=[],a.set(e.templateId,t));const n=this.renderers.get(e.templateId);n&&n.disposeElement&&n.disposeElement(e.element,r,e.row.templateData,e.size),t.push(e.row)}e.row=null}const l={start:e+t,end:this.items.length},u=c["a"].intersect(l,i),d=c["a"].relativeComplement(l,i),f=n.map(e=>({id:String(this.itemId++),element:e,templateId:this.virtualDelegate.getTemplateId(e),size:this.virtualDelegate.getHeight(e),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(e),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:r["a"].None}));let g;0===e&&t>=this.items.length?(this.rangeMap=new p,this.rangeMap.splice(0,0,f),g=this.items,this.items=f):(this.rangeMap.splice(e,t,f),g=this.items.splice(e,t,...f));const m=n.length-t,v=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),b=h(u,m),y=c["a"].intersect(v,b);for(let r=y.start;r<y.end;r++)this.updateItemInDOM(this.items[r],r);const _=c["a"].relativeComplement(b,v);for(const r of _)for(let e=r.start;e<r.end;e++)this.removeItemFromDOM(e);const w=d.map(e=>h(e,m)),C={start:e,end:e+n.length},S=[C,...w].map(e=>c["a"].intersect(v,e)),x=this.getNextToLastElement(S);for(const r of S)for(let e=r.start;e<r.end;e++){const t=this.items[e],n=a.get(t.templateId),i=null===n||void 0===n?void 0:n.pop();this.insertItemInDOM(e,x,i)}for(const r of a.values())for(const e of r)this.cache.release(e);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),g.map(e=>e.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=this._scrollHeight+"px",this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=Object(g["V"])(()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){this.horizontalScrolling?this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth()):this.scrollableElementWidthDelayer.cancel()}updateScrollWidth(){if(!this.horizontalScrolling)return;let e=0;for(const t of this.items)"undefined"!==typeof t.width&&(e=Math.max(e,t.width));this.scrollWidth=e,this.scrollableElement.setScrollDimensions({scrollWidth:0===e?0:e+10})}rerender(){if(this.supportDynamicHeights){for(const e of this.items)e.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){const e=this.scrollableElement.getScrollDimensions();return e.height}element(e){return this.items[e].element}domElement(e){const t=this.items[e].row;return t&&t.domNode}elementHeight(e){return this.items[e].size}elementTop(e){return this.rangeMap.positionAt(e)}indexAt(e){return this.rangeMap.indexAt(e)}indexAfter(e){return this.rangeMap.indexAfter(e)}layout(e,t){let n={height:"number"===typeof e?e:Object(g["B"])(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,n.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(n),"undefined"!==typeof t&&(this.renderWidth=t,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:"number"===typeof t?t:Object(g["C"])(this.domNode)})}render(e,t,n,i,r,o=!1){const s=this.getRenderRange(t,n),a=c["a"].relativeComplement(s,e),l=c["a"].relativeComplement(e,s),u=this.getNextToLastElement(a);if(o){const t=c["a"].intersect(e,s);for(let e=t.start;e<t.end;e++)this.updateItemInDOM(this.items[e],e)}for(const c of a)for(let e=c.start;e<c.end;e++)this.insertItemInDOM(e,u);for(const c of l)for(let e=c.start;e<c.end;e++)this.removeItemFromDOM(e);void 0!==i&&(this.rowsContainer.style.left=`-${i}px`),this.rowsContainer.style.top=`-${t}px`,this.horizontalScrolling&&void 0!==r&&(this.rowsContainer.style.width=Math.max(r,this.renderWidth)+"px"),this.lastRenderTop=t,this.lastRenderHeight=n}insertItemInDOM(e,t,n){const i=this.items[e];i.row||(i.row=null!==n&&void 0!==n?n:this.cache.alloc(i.templateId));const r=this.accessibilityProvider.getRole(i.element)||"listitem";i.row.domNode.setAttribute("role",r);const o=this.accessibilityProvider.isChecked(i.element);"undefined"!==typeof o&&i.row.domNode.setAttribute("aria-checked",String(!!o)),i.row.domNode.parentElement||(t?this.rowsContainer.insertBefore(i.row.domNode,t):this.rowsContainer.appendChild(i.row.domNode)),this.updateItemInDOM(i,e);const s=this.renderers.get(i.templateId);if(!s)throw new Error("No renderer found for template id "+i.templateId);s&&s.renderElement(i.element,e,i.row.templateData,i.size);const a=this.dnd.getDragURI(i.element);i.dragStartDisposable.dispose(),i.row.domNode.draggable=!!a,a&&(i.dragStartDisposable=Object(g["i"])(i.row.domNode,"dragstart",e=>this.onDragStart(i.element,a,e))),this.horizontalScrolling&&(this.measureItemWidth(i),this.eventuallyUpdateScrollWidth())}measureItemWidth(e){if(!e.row||!e.row.domNode)return;e.row.domNode.style.width=C["g"]?"-moz-fit-content":"fit-content",e.width=Object(g["C"])(e.row.domNode);const 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=""}updateItemInDOM(e,t){e.row.domNode.style.top=this.elementTop(t)+"px",this.setRowHeight&&(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.accessibilityProvider.getSetSize(e.element,t,this.length))),e.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(e.element,t))),e.row.domNode.setAttribute("id",this.getElementDomId(t)),e.row.domNode.classList.toggle("drop-target",e.dropTarget)}removeItemFromDOM(e){const t=this.items[e];if(t.dragStartDisposable.dispose(),t.row){const 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()}getScrollTop(){const e=this.scrollableElement.getScrollPosition();return e.scrollTop}setScrollTop(e,t){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:e,reuseAnimation:t})}get scrollTop(){return this.getScrollTop()}set scrollTop(e){this.setScrollTop(e)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.additionalScrollHeight}get onMouseClick(){return s["c"].map(this.disposables.add(new S["a"](this.domNode,"click")).event,e=>this.toMouseEvent(e))}get onMouseDblClick(){return s["c"].map(this.disposables.add(new S["a"](this.domNode,"dblclick")).event,e=>this.toMouseEvent(e))}get onMouseMiddleClick(){return s["c"].filter(s["c"].map(this.disposables.add(new S["a"](this.domNode,"auxclick")).event,e=>this.toMouseEvent(e)),e=>1===e.browserEvent.button)}get onMouseDown(){return s["c"].map(this.disposables.add(new S["a"](this.domNode,"mousedown")).event,e=>this.toMouseEvent(e))}get onContextMenu(){return s["c"].any(s["c"].map(this.disposables.add(new S["a"](this.domNode,"contextmenu")).event,e=>this.toMouseEvent(e)),s["c"].map(this.disposables.add(new S["a"](this.domNode,o["a"].Contextmenu)).event,e=>this.toGestureEvent(e)))}get onTouchStart(){return s["c"].map(this.disposables.add(new S["a"](this.domNode,"touchstart")).event,e=>this.toTouchEvent(e))}get onTap(){return s["c"].map(this.disposables.add(new S["a"](this.rowsContainer,o["a"].Tap)).event,e=>this.toGestureEvent(e))}toMouseEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}}toTouchEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}}toGestureEvent(e){const t=this.getItemIndexFromEventTarget(e.initialTarget||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}}toDragEvent(e){const t=this.getItemIndexFromEventTarget(e.target||null),n="undefined"===typeof t?void 0:this.items[t],i=n&&n.element;return{browserEvent:e,index:t,element:i}}onScroll(e){try{const t=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(t,e.scrollTop,e.height,e.scrollLeft,e.scrollWidth),this.supportDynamicHeights&&this._rerender(e.scrollTop,e.height,e.inSmoothScrolling)}catch(t){throw console.error("Got bad scroll event:",e),t}}onTouchChange(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY}onDragStart(e,t,n){if(!n.dataTransfer)return;const i=this.dnd.getDragElements(e);if(n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setData(_["a"].TEXT,t),n.dataTransfer.setDragImage){let e;this.dnd.getDragLabel&&(e=this.dnd.getDragLabel(i,n)),"undefined"===typeof e&&(e=String(i.length));const t=Object(g["a"])(".monaco-drag-image");t.textContent=e,document.body.appendChild(t),n.dataTransfer.setDragImage(t,-10,-10),setTimeout(()=>document.body.removeChild(t),0)}this.currentDragData=new k(i),_["c"].CurrentDragAndDropData=new L(i),this.dnd.onDragStart&&this.dnd.onDragStart(this.currentDragData,n)}onDragOver(e){if(e.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),_["c"].CurrentDragAndDropData&&"vscode-ui"===_["c"].CurrentDragAndDropData.getData())return!1;if(this.setupDragAndDropScrollTopAnimation(e.browserEvent),!e.browserEvent.dataTransfer)return!1;if(!this.currentDragData)if(_["c"].CurrentDragAndDropData)this.currentDragData=_["c"].CurrentDragAndDropData;else{if(!e.browserEvent.dataTransfer.types)return!1;this.currentDragData=new E}const t=this.dnd.onDragOver(this.currentDragData,e.element,e.index,e.browserEvent);if(this.canDrop="boolean"===typeof t?t:t.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;let n;if(e.browserEvent.dataTransfer.dropEffect="boolean"!==typeof t&&0===t.effect?"copy":"move",n="boolean"!==typeof t&&t.feedback?t.feedback:"undefined"===typeof e.index?[-1]:[e.index],n=Object(y["f"])(n).filter(e=>e>=-1&&e<this.length).sort((e,t)=>e-t),n=-1===n[0]?[-1]:n,D(this.currentDragFeedback,n))return!0;if(this.currentDragFeedback=n,this.currentDragFeedbackDisposable.dispose(),-1===n[0])this.domNode.classList.add("drop-target"),this.rowsContainer.classList.add("drop-target"),this.currentDragFeedbackDisposable=Object(r["i"])(()=>{this.domNode.classList.remove("drop-target"),this.rowsContainer.classList.remove("drop-target")});else{for(const e of n){const t=this.items[e];t.dropTarget=!0,t.row&&t.row.domNode.classList.add("drop-target")}this.currentDragFeedbackDisposable=Object(r["i"])(()=>{for(const e of n){const t=this.items[e];t.dropTarget=!1,t.row&&t.row.domNode.classList.remove("drop-target")}})}return!0}onDragLeave(e){var t,n;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=Object(w["i"])(()=>this.clearDragOverFeedback(),100),this.currentDragData&&(null===(n=(t=this.dnd).onDragLeave)||void 0===n||n.call(t,this.currentDragData,e.element,e.index,e.browserEvent))}onDrop(e){if(!this.canDrop)return;const t=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,_["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))}onDragEnd(e){this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.currentDragData=void 0,_["c"].CurrentDragAndDropData=void 0,this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=r["a"].None}setupDragAndDropScrollTopAnimation(e){if(!this.dragOverAnimationDisposable){const e=Object(g["G"])(this.domNode).top;this.dragOverAnimationDisposable=Object(g["p"])(this.animateDragAndDropScrollTop.bind(this,e))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=Object(w["i"])(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3),this.dragOverMouseY=e.pageY}animateDragAndDropScrollTop(e){if(void 0===this.dragOverMouseY)return;const t=this.dragOverMouseY-e,n=this.renderHeight-35;t<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(t-35))):t>n&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-n))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getItemIndexFromEventTarget(e){const t=this.scrollableElement.getDomNode();let n=e;while(n instanceof HTMLElement&&n!==this.rowsContainer&&t.contains(n)){const e=n.getAttribute("data-index");if(e){const t=Number(e);if(!isNaN(t))return t}n=n.parentElement}}getRenderRange(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}}_rerender(e,t,n){const i=this.getRenderRange(e,t);let r,o;e===this.elementTop(i.start)?(r=i.start,o=0):i.end-i.start>1&&(r=i.start+1,o=this.elementTop(r)-e);let s=0;while(1){const a=this.getRenderRange(e,t);let l=!1;for(let e=a.start;e<a.end;e++){const t=this.probeDynamicHeight(e);0!==t&&this.rangeMap.splice(e,1,[this.items[e]]),s+=t,l=l||0!==t}if(!l){0!==s&&this.eventuallyUpdateScrollDimensions();const t=c["a"].relativeComplement(i,a);for(const e of t)for(let t=e.start;t<e.end;t++)this.items[t].row&&this.removeItemFromDOM(t);const l=c["a"].relativeComplement(a,i);for(const e of l)for(let t=e.start;t<e.end;t++){const e=t+1,n=e<this.items.length?this.items[e].row:null,i=n?n.domNode:null;this.insertItemInDOM(t,i)}for(let e=a.start;e<a.end;e++)this.items[e].row&&this.updateItemInDOM(this.items[e],e);if("number"===typeof r){const t=this.scrollable.getFutureScrollPosition().scrollTop-e,i=this.elementTop(r)-o+t;this.setScrollTop(i,n)}return void this._onDidChangeContentHeight.fire(this.contentHeight)}}}probeDynamicHeight(e){const t=this.items[e];if(!t.hasDynamicHeight||t.lastDynamicHeightWidth===this.renderWidth)return 0;if(this.virtualDelegate.hasDynamicHeight&&!this.virtualDelegate.hasDynamicHeight(t.element))return 0;const n=t.size;if(!this.setRowHeight&&t.row){let e=t.row.domNode.offsetHeight;return t.size=e,t.lastDynamicHeightWidth=this.renderWidth,e-n}const i=this.cache.alloc(t.templateId);i.domNode.style.height="",this.rowsContainer.appendChild(i.domNode);const r=this.renderers.get(t.templateId);return r&&(r.renderElement(t.element,e,i.templateData,void 0),r.disposeElement&&r.disposeElement(t.element,e,i.templateData,void 0)),t.size=i.domNode.offsetHeight,this.virtualDelegate.setDynamicHeight&&this.virtualDelegate.setDynamicHeight(t.element,t.size),t.lastDynamicHeightWidth=this.renderWidth,this.rowsContainer.removeChild(i.domNode),this.cache.release(i),t.size-n}getNextToLastElement(e){const t=e[e.length-1];if(!t)return null;const n=this.items[t.end];return n&&n.row?n.row.domNode:null}getElementDomId(e){return`${this.domId}_${e}`}dispose(){if(this.items){for(const e of this.items)if(e.row){const t=this.renderers.get(e.row.templateId);t&&(t.disposeElement&&t.disposeElement(e.element,-1,e.row.templateData,void 0),t.disposeTemplate(e.row.templateData))}this.items=[]}this.domNode&&this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),Object(r["f"])(this.disposables)}}M.InstanceCount=0,x([b["a"]],M.prototype,"onMouseClick",null),x([b["a"]],M.prototype,"onMouseDblClick",null),x([b["a"]],M.prototype,"onMouseMiddleClick",null),x([b["a"]],M.prototype,"onMouseDown",null),x([b["a"]],M.prototype,"onContextMenu",null),x([b["a"]],M.prototype,"onTouchStart",null),x([b["a"]],M.prototype,"onTap",null)},"7e32":function(e,t,n){"use strict";n.d(t,"f",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return v})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return y})),n.d(t,"c",(function(){return _}));var i=n("f070"),r=n("0a0f"),o=n("4fc3"),s=n("9e74"),a=n("a666"),l=n("308f"),c=n("b7d0"),u=n("258a"),h=n("db88"),d=n("561a"),f=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},p=function(e,t){return function(n,i){t(n,i,e)}};function g(e){return void 0!==e.command}class m{constructor(e){this.id=m._idPool++,this._debugName=e}}m._idPool=0,m.CommandPalette=new m("CommandPalette"),m.EditorContext=new m("EditorContext"),m.SimpleEditorContext=new m("SimpleEditorContext"),m.EditorContextCopy=new m("EditorContextCopy"),m.EditorContextPeek=new m("EditorContextPeek"),m.MenubarEditMenu=new m("MenubarEditMenu"),m.MenubarCopy=new m("MenubarCopy"),m.MenubarGoMenu=new m("MenubarGoMenu"),m.MenubarSelectionMenu=new m("MenubarSelectionMenu"),m.InlineCompletionsActions=new m("InlineCompletionsActions");const v=Object(r["c"])("menuService"),b=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new l["b"],this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:e=>e===m.CommandPalette}}addCommand(e){return this.addCommands(u["a"].single(e))}addCommands(e){for(const t of e)this._commands.set(t.id,t);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),Object(a["i"])(()=>{let t=!1;for(const n of e)t=this._commands.delete(n.id)||t;t&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(e){return this._commands.get(e)}getCommands(){const e=new Map;return this._commands.forEach((t,n)=>e.set(n,t)),e}appendMenuItem(e,t){return this.appendMenuItems(u["a"].single({id:e,item:t}))}appendMenuItems(e){const t=new Set,n=new h["a"];for(const{id:i,item:r}of e){let e=this._menuItems.get(i);e||(e=new h["a"],this._menuItems.set(i,e)),n.push(e.push(r)),t.add(i)}return this._onDidChangeMenu.fire(t),Object(a["i"])(()=>{if(n.size>0){for(let e of n)e();this._onDidChangeMenu.fire(t),n.clear()}})}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===m.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){const t=new Set;for(const n of e)g(n)&&(t.add(n.command.id),n.alt&&t.add(n.alt.id));this._commands.forEach((n,i)=>{t.has(i)||e.push({command:n})})}};class y extends i["e"]{constructor(e,t,n,i){super("submenuitem."+e.submenu.id,"string"===typeof e.title?e.title:e.title.value,[],"submenu"),this.item=e,this._menuService=t,this._contextKeyService=n,this._options=i}get actions(){const e=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),n=t.getActions(this._options);t.dispose();for(const[,r]of n)r.length>0&&(e.push(...r),e.push(new i["d"]));return e.length&&e.pop(),e}}let _=class e{constructor(t,n,i,r,o){var s;if(this._commandService=o,this.id=t.id,this.label=(null===i||void 0===i?void 0:i.renderShortTitle)&&t.shortTitle?"string"===typeof t.shortTitle?t.shortTitle:t.shortTitle.value:"string"===typeof t.title?t.title:t.title.value,this.tooltip=null!==(s=t.tooltip)&&void 0!==s?s:"",this.enabled=!t.precondition||r.contextMatchesRules(t.precondition),this.checked=!1,t.toggled){const e=t.toggled.condition?t.toggled:{condition:t.toggled};this.checked=r.contextMatchesRules(e.condition),this.checked&&e.tooltip&&(this.tooltip="string"===typeof e.tooltip?e.tooltip:e.tooltip.value),e.title&&(this.label="string"===typeof e.title?e.title:e.title.value)}this.item=t,this.alt=n?new e(n,void 0,i,r,o):void 0,this._options=i,c["d"].isThemeIcon(t.icon)&&(this.class=d["a"].asClassName(t.icon))}dispose(){}run(...e){var t,n;let i=[];return(null===(t=this._options)||void 0===t?void 0:t.arg)&&(i=[...i,this._options.arg]),(null===(n=this._options)||void 0===n?void 0:n.shouldForwardArgs)&&(i=[...i,...e]),this._commandService.executeCommand(this.id,...i)}};_=f([p(3,o["b"]),p(4,s["b"])],_)},"7e93":function(e,t,n){"use strict";n.d(t,"j",(function(){return o})),n.d(t,"h",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"i",(function(){return L})),n.d(t,"g",(function(){return A})),n.d(t,"b",(function(){return N})),n.d(t,"c",(function(){return P})),n.d(t,"a",(function(){return X})),n.d(t,"d",(function(){return Q})),n.d(t,"e",(function(){return te}));var i=n("4035"),r=n("3742");function o(...e){return function(t,n){for(let i=0,r=e.length;i<r;i++){const r=e[i](t,n);if(r)return r}return null}}const s=a.bind(void 0,!0);function a(e,t,n){if(!n||n.length<t.length)return null;let i;return i=e?r["S"](n,t):0===n.indexOf(t),i?t.length>0?[{start:0,end:t.length}]:[]:null}function l(e,t){const n=t.toLowerCase().indexOf(e.toLowerCase());return-1===n?null:[{start:n,end:n+e.length}]}function c(e,t){return u(e.toLowerCase(),t.toLowerCase(),0,0)}function u(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]===t[i]){let r=null;return(r=u(e,t,n+1,i+1))?y({start:i,end:i+1},r):null}return u(e,t,n,i+1)}function h(e){return 97<=e&&e<=122}function d(e){return 65<=e&&e<=90}function f(e){return 48<=e&&e<=57}function p(e){return 32===e||9===e||10===e||13===e}const g=new Set;function m(e){return p(e)||g.has(e)}function v(e,t){return e===t||m(e)&&m(t)}function b(e){return h(e)||d(e)||f(e)}function y(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function _(e,t){for(let n=t;n<e.length;n++){const t=e.charCodeAt(n);if(d(t)||f(t)||n>0&&!b(e.charCodeAt(n-1)))return n}return e.length}function w(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]!==t[i].toLowerCase())return null;{let r=null,o=i+1;r=w(e,t,n+1,i+1);while(!r&&(o=_(t,o))<t.length)r=w(e,t,n+1,o),o++;return null===r?null:y({start:i,end:i+1},r)}}function C(e){let t=0,n=0,i=0,r=0,o=0;for(let u=0;u<e.length;u++)o=e.charCodeAt(u),d(o)&&t++,h(o)&&n++,b(o)&&i++,f(o)&&r++;const s=t/e.length,a=n/e.length,l=i/e.length,c=r/e.length;return{upperPercent:s,lowerPercent:a,alphaPercent:l,numericPercent:c}}function S(e){const{upperPercent:t,lowerPercent:n}=e;return 0===n&&t>.6}function x(e){const{upperPercent:t,lowerPercent:n,alphaPercent:i,numericPercent:r}=e;return n>.2&&t<.8&&i>.6&&r<.2}function O(e){let t=0,n=0,i=0,r=0;for(let o=0;o<e.length;o++)i=e.charCodeAt(o),d(i)&&t++,h(i)&&n++,p(i)&&r++;return 0!==t&&0!==n||0!==r?t<=5:e.length<=30}function k(e,t){if(!t)return null;if(t=t.trim(),0===t.length)return null;if(!O(e))return null;if(t.length>60)return null;const n=C(t);if(!x(n)){if(!S(n))return null;t=t.toLowerCase()}let i=null,r=0;e=e.toLowerCase();while(r<t.length&&null===(i=w(e,t,0,r)))r=_(t,r+1);return i}function L(e,t,n=!1){if(!t||0===t.length)return null;let i=null,r=0;e=e.toLowerCase(),t=t.toLowerCase();while(r<t.length&&null===(i=E(e,t,0,r,n)))r=D(t,r+1);return i}function E(e,t,n,i,r){if(n===e.length)return[];if(i===t.length)return null;if(v(e.charCodeAt(n),t.charCodeAt(i))){let o=null,s=i+1;if(o=E(e,t,n+1,i+1,r),!r)while(!o&&(s=D(t,s))<t.length)o=E(e,t,n+1,s,r),s++;return null===o?null:y({start:i,end:i+1},o)}return null}function D(e,t){for(let n=t;n<e.length;n++)if(m(e.charCodeAt(n))||n>0&&m(e.charCodeAt(n-1)))return n;return e.length}"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(e=>g.add(e.charCodeAt(0)));const I=o(s,k,l),M=o(s,k,c),T=new i["a"](1e4);function A(e,t,n=!1){if("string"!==typeof e||"string"!==typeof t)return null;let i=T.get(e);i||(i=new RegExp(r["p"](e),"i"),T.set(e,i));const o=i.exec(t);return o?[{start:o.index,end:o.index+o[0].length}]:n?M(e,t):I(e,t)}function N(e,t,n,i,r,o){const s=Math.min(13,e.length);for(;n<s;n++){const s=Q(e,t,n,i,r,o,!1);if(s)return s}return[0,o]}function P(e){if("undefined"===typeof e)return[];const t=[],n=e[1];for(let i=e.length-1;i>1;i--){const r=e[i]+n,o=t[t.length-1];o&&o.end===r?o.end=r+1:t.push({start:r,end:r+1})}return t}const j=128;function R(){const e=[],t=[];for(let n=0;n<=j;n++)t[n]=0;for(let n=0;n<=j;n++)e.push(t.slice(0));return e}function F(e){const t=[];for(let n=0;n<=e;n++)t[n]=0;return t}const B=F(2*j),W=F(2*j),V=R(),z=R(),H=R(),U=!1;function q(e,t,n,i,r){function o(e,t,n=" "){while(e.length<t)e=n+e;return e}let s=` | |${i.split("").map(e=>o(e,3)).join("|")}\n`;for(let a=0;a<=n;a++)s+=0===a?" |":t[a-1]+"|",s+=e[a].slice(0,r+1).map(e=>o(e.toString(),3)).join("|")+"\n";return s}function $(e,t,n,i){e=e.substr(t),n=n.substr(i),console.log(q(z,e,e.length,n,n.length)),console.log(q(H,e,e.length,n,n.length)),console.log(q(V,e,e.length,n,n.length))}function K(e,t){if(t<0||t>=e.length)return!1;const n=e.codePointAt(t);switch(n){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 40:case 91:return!0;case void 0:return!1;default:return!!r["C"](n)}}function G(e,t){if(t<0||t>=e.length)return!1;const n=e.charCodeAt(t);switch(n){case 32:case 9:return!0;default:return!1}}function Y(e,t,n){return t[e]!==n[e]}function Z(e,t,n,i,r,o,s=!1){while(t<n&&r<o)e[t]===i[r]&&(s&&(B[t]=r),t+=1),r+=1;return t===n}var X;function Q(e,t,n,i,r,o,s){const a=e.length>j?j:e.length,l=i.length>j?j:i.length;if(n>=a||o>=l||a-n>l-o)return;if(!Z(t,n,a,r,o,l,!0))return;J(a,l,n,o,t,r);let c=1,u=1,h=n,d=o;const f=[!1];for(c=1,h=n;h<a;c++,h++){const s=B[h],p=W[h],g=h+1<a?W[h+1]:l;for(u=s-o+1,d=s;d<g;u++,d++){let a=Number.MIN_SAFE_INTEGER,g=!1;d<=p&&(a=ee(e,t,h,n,i,r,d,l,o,0===V[c-1][u-1],f));let m=0;a!==Number.MAX_SAFE_INTEGER&&(g=!0,m=a+z[c-1][u-1]);const v=d>s,b=v?z[c][u-1]+(V[c][u-1]>0?-5:0):0,y=d>s+1&&V[c][u-1]>0,_=y?z[c][u-2]+(V[c][u-2]>0?-5:0):0;if(y&&(!v||_>=b)&&(!g||_>=m))z[c][u]=_,H[c][u]=3,V[c][u]=0;else if(v&&(!g||b>=m))z[c][u]=b,H[c][u]=2,V[c][u]=0;else{if(!g)throw new Error("not possible");z[c][u]=m,H[c][u]=1,V[c][u]=V[c-1][u-1]+1}}}if(U&&$(e,n,i,o),!f[0]&&!s)return;c--,u--;const p=[z[c][u],o];let g=0,m=0;while(c>=1){let e=u;do{const t=H[c][e];if(3===t)e-=2;else{if(2!==t)break;e-=1}}while(e>=1);g>1&&t[n+c-1]===r[o+u-1]&&!Y(e+o-1,i,r)&&g+1>V[c][e]&&(e=u),e===u?g++:g=1,m||(m=e),c--,u=e-1,p.push(u)}l===a&&(p[0]+=2);const v=m-a;return p[0]-=v,p}function J(e,t,n,i,r,o){let s=e-1,a=t-1;while(s>=n&&a>=i)r[s]===o[a]&&(W[s]=a,s--),a--}function ee(e,t,n,i,r,o,s,a,l,c,u){if(t[n]!==o[s])return Number.MIN_SAFE_INTEGER;let h=1,d=!1;return s===n-i?h=e[n]===r[s]?7:5:!Y(s,r,o)||0!==s&&Y(s-1,r,o)?!K(o,s)||0!==s&&K(o,s-1)?(K(o,s-1)||G(o,s-1))&&(h=5,d=!0):h=5:(h=e[n]===r[s]?7:5,d=!0),h>1&&n===i&&(u[0]=!0),d||(d=Y(s,r,o)||K(o,s-1)||G(o,s-1)),n===i?s>l&&(h-=d?3:5):h+=c?d?2:0:d?0:1,s+1===a&&(h-=d?3:5),h}function te(e,t,n,i,r,o,s){return ne(e,t,n,i,r,o,!0,s)}function ne(e,t,n,i,r,o,s,a){let l=Q(e,t,n,i,r,o,a);if(l&&!s)return l;if(e.length>=3){const t=Math.min(7,e.length-1);for(let s=n+1;s<t;s++){const t=ie(e,s);if(t){const e=Q(t,t.toLowerCase(),n,i,r,o,a);e&&(e[0]-=3,(!l||e[0]>l[0])&&(l=e))}}}return l}function ie(e,t){if(t+1>=e.length)return;const n=e[t],i=e[t+1];return n!==i?e.slice(0,t)+i+n+e.slice(t+2):void 0}(function(e){function t(e){return!e||2===e.length&&-100===e[0]&&0===e[1]}e.Default=[-100,0],e.isDefault=t})(X||(X={}))},"7eb7":function(e,t,n){"use strict";n.r(t),n.d(t,"CONTEXT_ONTYPE_RENAME_INPUT_VISIBLE",(function(){return k})),n.d(t,"LinkedEditingContribution",(function(){return E})),n.d(t,"LinkedEditingAction",(function(){return D})),n.d(t,"editorLinkedEditingBackground",(function(){return T}));var i=n("dff7"),r=n("b2cc"),o=n("e8e3"),s=n("a666"),a=n("7061"),l=n("2504"),c=n("6a89"),u=n("b707"),h=n("5fe7"),d=n("b57f"),f=n("4fc3"),p=n("c101"),g=n("6d8e"),m=n("5717"),v=n("fdcc"),b=n("3742"),y=n("303e"),_=n("b7d0"),w=n("ceb8"),C=n("70cb"),S=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},x=function(e,t){return function(n,i){t(n,i,e)}},O=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const k=new f["c"]("LinkedEditingInputVisible",!1),L="linked-editing-decoration";let E=class e extends s["a"]{constructor(e,t){super(),this._debounceDuration=200,this._localToDispose=this._register(new s["b"]),this._editor=e,this._enabled=!1,this._visibleContextKey=k.bindTo(t),this._currentDecorations=[],this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new s["b"]),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequest=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel(()=>this.reinitialize(!0))),this._register(this._editor.onDidChangeConfiguration(e=>{(e.hasChanged(60)||e.hasChanged(80))&&this.reinitialize(!1)})),this._register(u["w"].onDidChange(()=>this.reinitialize(!1))),this._register(this._editor.onDidChangeModelLanguage(()=>this.reinitialize(!0))),this.reinitialize(!0)}static get(t){return t.getContribution(e.ID)}reinitialize(e){const t=this._editor.getModel(),n=null!==t&&(this._editor.getOption(60)||this._editor.getOption(80))&&u["w"].has(t);if(n===this._enabled&&!e)return;if(this._enabled=n,this.clearRanges(),this._localToDispose.clear(),!n||null===t)return;this._languageWordPattern=C["a"].getWordDefinition(t.getLanguageIdentifier().id),this._localToDispose.add(t.onDidChangeLanguageConfiguration(()=>{this._languageWordPattern=C["a"].getWordDefinition(t.getLanguageIdentifier().id)}));const i=new h["a"](this._debounceDuration),r=()=>{this._rangeUpdateTriggerPromise=i.trigger(()=>this.updateRanges(),this._debounceDuration)},o=new h["a"](0),s=e=>{this._rangeSyncTriggerPromise=o.trigger(()=>this._syncRanges(e))};this._localToDispose.add(this._editor.onDidChangeCursorPosition(()=>{r()})),this._localToDispose.add(this._editor.onDidChangeModelContent(e=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const n=t.getDecorationRange(this._currentDecorations[0]);if(n&&e.changes.every(e=>n.intersectRanges(e.range)))return void s(this._currentDecorations)}r()})),this._localToDispose.add({dispose:()=>{i.cancel(),o.cancel()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._currentDecorations||0===e.length)return;const t=this._editor.getModel(),n=t.getDecorationRange(e[0]);if(!n||n.startLineNumber!==n.endLineNumber)return this.clearRanges();const i=t.getValueInRange(n);if(this._currentWordPattern){const e=i.match(this._currentWordPattern),t=e?e[0].length:0;if(t!==i.length)return this.clearRanges()}let r=[];for(let o=1,s=e.length;o<s;o++){const n=t.getDecorationRange(e[o]);if(n)if(n.startLineNumber!==n.endLineNumber)r.push({range:n,text:i});else{let e=t.getValueInRange(n),o=i,s=n.startColumn,a=n.endColumn;const l=b["d"](e,o);s+=l,e=e.substr(l),o=o.substr(l);const u=b["e"](e,o);a-=u,e=e.substr(0,e.length-u),o=o.substr(0,o.length-u),s===a&&0===o.length||r.push({range:new c["a"](n.startLineNumber,s,n.endLineNumber,a),text:o})}}if(0!==r.length)try{this._editor.popUndoStop(),this._ignoreChangeEvent=!0;const e=this._editor._getViewModel().getPrevEditOperationType();this._editor.executeEdits("linkedEditing",r),this._editor._getViewModel().setPrevEditOperationType(e)}finally{this._ignoreChangeEvent=!1}}dispose(){this.clearRanges(),super.dispose()}clearRanges(){this._visibleContextKey.set(!1),this._currentDecorations=this._editor.deltaDecorations(this._currentDecorations,[]),this._currentRequest&&(this._currentRequest.cancel(),this._currentRequest=null,this._currentRequestPosition=null)}updateRanges(t=!1){return O(this,void 0,void 0,(function*(){if(!this._editor.hasModel())return void this.clearRanges();const n=this._editor.getPosition();if(!this._enabled&&!t||this._editor.getSelections().length>1)return void this.clearRanges();const i=this._editor.getModel(),r=i.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===r){if(n.equals(this._currentRequestPosition))return;if(this._currentDecorations&&this._currentDecorations.length>0){const e=i.getDecorationRange(this._currentDecorations[0]);if(e&&e.containsPosition(n))return}}this._currentRequestPosition=n,this._currentRequestModelVersion=r;const o=Object(h["h"])(t=>O(this,void 0,void 0,(function*(){try{const s=yield M(i,n,t);if(o!==this._currentRequest)return;if(this._currentRequest=null,r!==i.getVersionId())return;let a=[];(null===s||void 0===s?void 0:s.ranges)&&(a=s.ranges),this._currentWordPattern=(null===s||void 0===s?void 0:s.wordPattern)||this._languageWordPattern;let l=!1;for(let e=0,t=a.length;e<t;e++)if(c["a"].containsPosition(a[e],n)){if(l=!0,0!==e){const t=a[e];a.splice(e,1),a.unshift(t)}break}if(!l)return void this.clearRanges();const u=a.map(t=>({range:t,options:e.DECORATION}));this._visibleContextKey.set(!0),this._currentDecorations=this._editor.deltaDecorations(this._currentDecorations,u)}catch(s){Object(v["d"])(s)||Object(v["e"])(s),this._currentRequest!==o&&this._currentRequest||this.clearRanges()}})));return this._currentRequest=o,o}))}};E.ID="editor.contrib.linkedEditing",E.DECORATION=d["a"].register({description:"linked-editing",stickiness:0,className:L}),E=S([x(1,f["b"])],E);class D extends r["b"]{constructor(){super({id:"editor.action.linkedEditing",label:i["a"]("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:f["a"].and(p["a"].writable,p["a"].hasRenameProvider),kbOpts:{kbExpr:p["a"].editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){const n=e.get(m["a"]),[i,r]=Array.isArray(t)&&t||[void 0,void 0];return g["a"].isUri(i)&&a["a"].isIPosition(r)?n.openCodeEditor({resource:i},n.getActiveCodeEditor()).then(e=>{e&&(e.setPosition(r),e.invokeWithinContext(t=>(this.reportTelemetry(t,e),this.run(t,e))))},v["e"]):super.runCommand(e,t)}run(e,t){const n=E.get(t);return n?Promise.resolve(n.updateRanges(!0)):Promise.resolve()}}const I=r["c"].bindToContribution(E.get);function M(e,t,n){const i=u["w"].ordered(e);return Object(h["j"])(i.map(i=>()=>O(this,void 0,void 0,(function*(){try{return yield i.provideLinkedEditingRanges(e,t,n)}catch(r){return void Object(v["f"])(r)}}))),e=>!!e&&o["n"](null===e||void 0===e?void 0:e.ranges))}Object(r["k"])(new I({id:"cancelLinkedEditingInput",precondition:k,handler:e=>e.clearRanges(),kbOpts:{kbExpr:p["a"].editorTextFocus,weight:199,primary:9,secondary:[1033]}}));const T=Object(y["wc"])("editor.linkedEditingBackground",{dark:w["a"].fromHex("#f00").transparent(.3),light:w["a"].fromHex("#f00").transparent(.3),hc:w["a"].fromHex("#f00").transparent(.3)},i["a"]("editorLinkedEditingBackground","Background color when the editor auto renames on type."));Object(_["f"])((e,t)=>{const n=e.getColor(T);n&&t.addRule(`.monaco-editor .${L} { background: ${n}; border-left-color: ${n}; }`)}),Object(r["n"])("_executeLinkedEditingProvider",(e,t)=>M(e,t,l["a"].None)),Object(r["l"])(E.ID,E),Object(r["j"])(D)},"7ec2":function(e,t,n){n("a4d3"),n("e01a"),n("b636"),n("d28b"),n("944a"),n("d9e2"),n("14d9"),n("fb6a"),n("b0c0"),n("0c47"),n("23dc"),n("3410"),n("1f68"),n("131a"),n("d3b7"),n("3ca3"),n("159b"),n("ddb0");var i=n("7037")["default"];function r(){"use strict";
|
||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=r=function(){return n},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,n={},o=Object.prototype,s=o.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",h=l.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function f(e,t,n,i){var r=t&&t.prototype instanceof _?t:_,o=Object.create(r.prototype),s=new A(i||[]);return a(o,"_invoke",{value:D(e,n,s)}),o}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var g="suspendedStart",m="suspendedYield",v="executing",b="completed",y={};function _(){}function w(){}function C(){}var S={};d(S,c,(function(){return this}));var x=Object.getPrototypeOf,O=x&&x(x(N([])));O&&O!==o&&s.call(O,c)&&(S=O);var k=C.prototype=_.prototype=Object.create(S);function L(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(r,o,a,l){var c=p(e[r],e,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==i(h)&&s.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(h).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var r;a(this,"_invoke",{value:function(e,i){function o(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(o,o):o()}})}function D(e,n,i){var r=g;return function(o,s){if(r===v)throw Error("Generator is already running");if(r===b){if("throw"===o)throw s;return{value:t,done:!0}}for(i.method=o,i.arg=s;;){var a=i.delegate;if(a){var l=I(a,i);if(l){if(l===y)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===g)throw r=b,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=v;var c=p(e,n,i);if("normal"===c.type){if(r=i.done?b:m,c.arg===y)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(r=b,i.method="throw",i.arg=c.arg)}}}function I(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator["return"]&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),y;var o=p(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var s=o.arg;return s?s.done?(n[e.resultName]=s.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function N(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r<e.length;)if(s.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(i(e)+" is not iterable")}return w.prototype=C,a(k,"constructor",{value:C,configurable:!0}),a(C,"constructor",{value:w,configurable:!0}),w.displayName=d(C,h,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,C):(e.__proto__=C,d(e,h,"GeneratorFunction")),e.prototype=Object.create(k),e},n.awrap=function(e){return{__await:e}},L(E.prototype),d(E.prototype,u,(function(){return this})),n.AsyncIterator=E,n.async=function(e,t,i,r,o){void 0===o&&(o=Promise);var s=new E(f(e,t,i,r),o);return n.isGeneratorFunction(t)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},L(k),d(k,h,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},n.values=N,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&s.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(i,r){return a.type="throw",a.arg=e,n.next=i,r&&(n.method="next",n.arg=t),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var l=s.call(o,"catchLoc"),c=s.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&s.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,y):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;T(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:N(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),y}},n}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"7ed3":function(e,t,n){},"7f0f":function(e,t,n){(function(t){const i=n("7135"),r=n("faa1");function o(e,t){const n=new s;return i(e,n,t),n.concat()}class s extends r{constructor(){super(),this._array=new Array(20),this._i=0}write(e){return this._array[this._i++]=e,!0}concat(){let e=0;const n=new Array(this._array.length),i=this._array;let r,o=0;for(r=0;r<i.length&&void 0!==i[r];r++)"string"!==typeof i[r]?n[r]=i[r].length:n[r]=t.byteLength(i[r]),e+=n[r];const s=t.allocUnsafe(e);for(r=0;r<i.length&&void 0!==i[r];r++)"string"!==typeof i[r]?(i[r].copy(s,o),o+=n[r]):(s.write(i[r],o),o+=n[r]);return s}}e.exports=o}).call(this,n("1c35").Buffer)},"7f73":function(e,t,n){"use strict";e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},8025:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("7061"),r=n("6a89");class o extends r["a"]{constructor(e,t,n,i){super(e,t,n,i),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return o.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new o(this.startLineNumber,this.startColumn,e,t):new o(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new i["a"](this.positionLineNumber,this.positionColumn)}setStartPosition(e,t){return 0===this.getDirection()?new o(e,t,this.endLineNumber,this.endColumn):new o(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new o(e.lineNumber,e.column,t.lineNumber,t.column)}static liftSelection(e){return new o(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"===typeof e.selectionStartLineNumber&&"number"===typeof e.selectionStartColumn&&"number"===typeof e.positionLineNumber&&"number"===typeof e.positionColumn}static createWithDirection(e,t,n,i,r){return 0===r?new o(e,t,n,i):new o(n,i,e,t)}}},8090:function(e,t,n){"use strict";n.r(t);n("133b");var i=n("11f7"),r=n("ceb8"),o=n("a666"),s=n("b2cc"),a=n("b707"),l=n("8bf1"),c=n("5818"),u=n("b1ca"),h=n("303e"),d=n("b7d0"),f=n("03d9"),p=n("9c41"),g=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},m=function(e,t){return function(n,i){t(n,i,e)}};let v=class e extends o["a"]{constructor(e,t,n){super(),this._editor=e,this._modeService=n,this._widget=null,this._register(this._editor.onDidChangeModel(e=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(e=>this.stop())),this._register(a["F"].onDidChange(e=>this.stop())),this._register(this._editor.onKeyUp(e=>9===e.keyCode&&this.stop()))}static get(t){return t.getContribution(e.ID)}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new w(this._editor,this._modeService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};v.ID="editor.contrib.inspectTokens",v=g([m(1,u["a"]),m(2,c["a"])],v);class b extends s["b"]{constructor(){super({id:"editor.action.inspectTokens",label:f["c"].inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){let n=v.get(t);n&&n.launch()}}function y(e){let t="";for(let n=0,i=e.length;n<i;n++){let i=e.charCodeAt(n);switch(i){case 9:t+="→";break;case 32:t+="·";break;default:t+=String.fromCharCode(i)}}return t}function _(e){let t=a["F"].get(e.language);return t||{getInitialState:()=>l["c"],tokenize:(t,n,i,r)=>Object(l["d"])(e.language,t,i,r),tokenize2:(t,n,i,r)=>Object(l["e"])(e.id,t,i,r)}}class w extends o["a"]{constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._modeService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=_(this._model.getLanguageIdentifier()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(e=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return w._ID}_compute(e){let t=this._getTokensAtLine(e.lineNumber),n=0;for(let i=t.tokens1.length-1;i>=0;i--){let r=t.tokens1[i];if(e.column-1>=r.offset){n=i;break}}let o=0;for(let i=t.tokens2.length>>>1;i>=0;i--)if(e.column-1>=t.tokens2[i<<1]){o=i;break}let s=this._model.getLineContent(e.lineNumber),a="";if(n<t.tokens1.length){let e=t.tokens1[n].offset,i=n+1<t.tokens1.length?t.tokens1[n+1].offset:s.length;a=s.substring(e,i)}Object(i["R"])(this._domNode,Object(i["a"])("h2.tm-token",void 0,y(a),Object(i["a"])("span.tm-token-length",void 0,`${a.length} ${1===a.length?"char":"chars"}`))),Object(i["q"])(this._domNode,Object(i["a"])("hr.tokens-inspect-separator",{style:"clear:both"}));const l=1+(o<<1)<t.tokens2.length?this._decodeMetadata(t.tokens2[1+(o<<1)]):null;Object(i["q"])(this._domNode,Object(i["a"])("table.tm-metadata-table",void 0,Object(i["a"])("tbody",void 0,Object(i["a"])("tr",void 0,Object(i["a"])("td.tm-metadata-key",void 0,"language"),Object(i["a"])("td.tm-metadata-value",void 0,""+(l?l.languageIdentifier.language:"-?-"))),Object(i["a"])("tr",void 0,Object(i["a"])("td.tm-metadata-key",void 0,"token type"),Object(i["a"])("td.tm-metadata-value",void 0,""+(l?this._tokenTypeToString(l.tokenType):"-?-"))),Object(i["a"])("tr",void 0,Object(i["a"])("td.tm-metadata-key",void 0,"font style"),Object(i["a"])("td.tm-metadata-value",void 0,""+(l?this._fontStyleToString(l.fontStyle):"-?-"))),Object(i["a"])("tr",void 0,Object(i["a"])("td.tm-metadata-key",void 0,"foreground"),Object(i["a"])("td.tm-metadata-value",void 0,""+(l?r["a"].Format.CSS.formatHex(l.foreground):"-?-"))),Object(i["a"])("tr",void 0,Object(i["a"])("td.tm-metadata-key",void 0,"background"),Object(i["a"])("td.tm-metadata-value",void 0,""+(l?r["a"].Format.CSS.formatHex(l.background):"-?-")))))),Object(i["q"])(this._domNode,Object(i["a"])("hr.tokens-inspect-separator")),n<t.tokens1.length&&Object(i["q"])(this._domNode,Object(i["a"])("span.tm-token-type",void 0,t.tokens1[n].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(e){let t=a["F"].getColorMap(),n=a["E"].getLanguageId(e),i=a["E"].getTokenType(e),r=a["E"].getFontStyle(e),o=a["E"].getForeground(e),s=a["E"].getBackground(e);return{languageIdentifier:this._modeService.getLanguageIdentifier(n),tokenType:i,fontStyle:r,foreground:t[o],background:t[s]}}_tokenTypeToString(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx";default:return"??"}}_fontStyleToString(e){let t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),0===t.length&&(t="---"),t}_getTokensAtLine(e){let t=this._getStateBeforeLine(e),n=this._tokenizationSupport.tokenize(this._model.getLineContent(e),!0,t,0),i=this._tokenizationSupport.tokenize2(this._model.getLineContent(e),!0,t,0);return{startState:t,tokens1:n.tokens,tokens2:i.tokens,endState:n.endState}}_getStateBeforeLine(e){let t=this._tokenizationSupport.getInitialState();for(let n=1;n<e;n++){let e=this._tokenizationSupport.tokenize(this._model.getLineContent(n),!0,t,0);t=e.endState}return t}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}w._ID="editor.contrib.inspectTokensWidget",Object(s["l"])(v.ID,v),Object(s["j"])(b),Object(d["f"])((e,t)=>{const n=e.getColor(h["F"]);if(n){let i=e.type===p["a"].HIGH_CONTRAST?2:1;t.addRule(`.monaco-editor .tokens-inspect-widget { border: ${i}px solid ${n}; }`),t.addRule(`.monaco-editor .tokens-inspect-widget .tokens-inspect-separator { background-color: ${n}; }`)}const i=e.getColor(h["E"]);i&&t.addRule(`.monaco-editor .tokens-inspect-widget { background-color: ${i}; }`);const r=e.getColor(h["G"]);r&&t.addRule(`.monaco-editor .tokens-inspect-widget { color: ${r}; }`)})},8096:function(e,t,n){},"80b9":function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return h})),n.d(t,"e",(function(){return d}));var i=n("6d8b"),r=n("e0d3"),o=n("ec6f"),s=Object(r["o"])(),a={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},l=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=h(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return Object(i["retrieve2"])(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Object(o["f"])(this.source),n=!d(e),i="",r=[],s=0,l=0;s<e;s++){var c=void 0,u=void 0,h=void 0,f=this.dimensions[l];if(f&&f.storeDimIndex===s)c=t?f.name:null,u=f.type,h=f.ordinalMeta,l++;else{var p=this.getSourceDimension(s);p&&(c=t?p.name:null,u=p.type)}r.push({property:c,type:u,ordinalMeta:h}),!t||null==c||f&&f.isCalculationCoord||(i+=n?c.replace(/\`/g,"`1").replace(/\$/g,"`2"):c),i+="$",i+=a[u]||"f",h&&(i+=h.uid),i+="$"}var g=this.source,m=[g.seriesLayoutBy,g.startIndex,i].join("$$");return{dimensions:r,hash:m}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===t)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(t);o&&(i=o.name)}e.push(i)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function c(e){return e instanceof l}function u(e){for(var t=Object(i["createHashMap"])(),n=0;n<(e||[]).length;n++){var r=e[n],o=Object(i["isObject"])(r)?r.name:r;null!=o&&null==t.get(o)&&t.set(o,n)}return t}function h(e){var t=s(e);return t.dimNameMap||(t.dimNameMap=u(e.dimensionsDefine))}function d(e){return e>30}},"80f0":function(e,t,n){"use strict";function i(e){return null==e?0:e.length||1}function r(e){return e}var o=function(){function e(e,t,n,i,o,s){this._old=e,this._new=t,this._oldKeyGetter=n||r,this._newKeyGetter=i||r,this.context=o,this._diffModeMultiple="multiple"===s}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=new Array(e.length),o=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s<e.length;s++){var a=r[s],l=n[a],c=i(l);if(c>1){var u=l.shift();1===l.length&&(n[a]=l[0]),this._update&&this._update(u,s)}else 1===c?(n[a]=null,this._update&&this._update(l,s)):this._remove&&this._remove(s)}this._performRestAdd(o,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},o=[],s=[];this._initIndexMap(e,n,o,"_oldKeyGetter"),this._initIndexMap(t,r,s,"_newKeyGetter");for(var a=0;a<o.length;a++){var l=o[a],c=n[l],u=r[l],h=i(c),d=i(u);if(h>1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,c),r[l]=null;else if(1===h&&d>1)this._updateOneToMany&&this._updateOneToMany(u,c),r[l]=null;else if(1===h&&1===d)this._update&&this._update(u,c),r[l]=null;else if(h>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,c),r[l]=null;else if(h>1)for(var f=0;f<h;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(s,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=t[r],s=i(o);if(s>1)for(var a=0;a<s;a++)this._add&&this._add(o[a]);else 1===s&&this._add&&this._add(o);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var o=this._diffModeMultiple,s=0;s<e.length;s++){var a="_ec_"+this[r](e[s],s);if(o||(n[s]=a),t){var l=t[a],c=i(l);0===c?(t[a]=s,o&&n.push(a)):1===c?t[a]=[l,s]:l.push(s)}}},e}();t["a"]=o},8119:function(e,t,n){n("693d"),n("dfe5"),n("301c"),n("4e71"),e.exports=n("5524").Symbol},8172:function(e,t,n){var i=n("e065"),r=n("57b9");i("toPrimitive"),r()},"81d5":function(e,t,n){"use strict";var i=n("7b0b"),r=n("23cb"),o=n("07fa");e.exports=function(e){var t=i(this),n=o(t),s=arguments.length,a=r(s>1?arguments[1]:void 0,n),l=s>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);while(c>a)t[a++]=e;return t}},"825a":function(e,t,n){var i=n("861d"),r=String,o=TypeError;e.exports=function(e){if(i(e))return e;throw o(r(e)+" is not an object")}},8261:function(e,t,n){},"82a1":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return n.e("chunk-2d0e22d6").then(n.bind(null,"7e1c"))}}),Object(i["a"])({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return n.e("chunk-2d0e22d6").then(n.bind(null,"7e1c"))}})},"82c9":function(e,t,n){"use strict";n.d(t,"i",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return h})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"g",(function(){return g})),n.d(t,"h",(function(){return m})),n.d(t,"j",(function(){return v})),n.d(t,"a",(function(){return b}));var i=n("3d37"),r=n("32b8"),o=n("6d8e"),s=n("3742"),a=n("b589");function l(e){return Object(o["b"])(e,!0)}class c{constructor(e){this._ignorePathCasing=e}compare(e,t,n=!1){return e===t?0:Object(s["f"])(this.getComparisonKey(e,n),this.getComparisonKey(t,n))}isEqual(e,t,n=!1){return e===t||!(!e||!t)&&this.getComparisonKey(e,n)===this.getComparisonKey(t,n)}getComparisonKey(e,t=!1){return e.with({path:this._ignorePathCasing(e)?e.path.toLowerCase():void 0,fragment:t?null:void 0}).toString()}joinPath(e,...t){return o["a"].joinPath(e,...t)}basenameOrAuthority(e){return f(e)||e.authority}basename(e){return r["e"].basename(e.path)}dirname(e){if(0===e.path.length)return e;let t;return e.scheme===a["c"].file?t=o["a"].file(r["b"](l(e))).path:(t=r["e"].dirname(e.path),e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/")),e.with({path:t})}normalizePath(e){if(!e.path.length)return e;let t;return t=e.scheme===a["c"].file?o["a"].file(r["d"](l(e))).path:r["e"].normalize(e.path),e.with({path:t})}resolvePath(e,t){if(e.scheme===a["c"].file){const n=o["a"].file(r["g"](l(e),t));return e.with({authority:n.authority,path:n.path})}return t=i["d"](t),e.with({path:r["e"].resolve(e.path,t)})}}const u=new c(()=>!1),h=u.isEqual.bind(u),d=u.basenameOrAuthority.bind(u),f=u.basename.bind(u),p=u.dirname.bind(u),g=u.joinPath.bind(u),m=u.normalizePath.bind(u),v=u.resolvePath.bind(u);var b;(function(e){function t(t){const n=new Map,i=t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";"));i.split(";").forEach(e=>{const[t,i]=e.split(":");t&&i&&n.set(t,i)});const r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=t})(b||(b={}))},8311:function(e,t,n){"use strict";const{Buffer:i}=n("1c35"),r=n("035d").Transform,o=n("fb12");let s,a,l;function c(){const e=new r;return e._write=function(e,t,n){s.send({data:e.buffer,success:function(){n()},fail:function(e){n(new Error(e))}})},e._flush=function(e){s.close({success:function(){e()}})},e}function u(e){e.hostname||(e.hostname="localhost"),e.path||(e.path="/"),e.wsOptions||(e.wsOptions={})}function h(e,t){const n="wxs"===e.protocol?"wss":"ws";let i=n+"://"+e.hostname+e.path;return e.port&&80!==e.port&&443!==e.port&&(i=n+"://"+e.hostname+":"+e.port+e.path),"function"===typeof e.transformWsUrl&&(i=e.transformWsUrl(i,e,t)),i}function d(){s.onOpen((function(){l.setReadable(a),l.setWritable(a),l.emit("connect")})),s.onMessage((function(e){let t=e.data;t=t instanceof ArrayBuffer?i.from(t):i.from(t,"utf8"),a.push(t)})),s.onClose((function(){l.end(),l.destroy()})),s.onError((function(e){l.destroy(new Error(e.errMsg))}))}function f(e,t){if(t.hostname=t.hostname||t.host,!t.hostname)throw new Error("Could not determine host. Specify host manually.");const n="MQIsdp"===t.protocolId&&3===t.protocolVersion?"mqttv3.1":"mqtt";u(t);const i=h(t,e);s=wx.connectSocket({url:i,protocols:[n]}),a=c(),l=o.obj(),l._destroy=function(e,t){s.close({success:function(){t&&t(e)}})};const r=l.destroy;return l.destroy=function(){l.destroy=r;const e=this;setTimeout((function(){s.close({fail:function(){e._destroy(new Error)}})}),0)}.bind(l),d(),l}e.exports=f},8362:function(e,t){e.exports=i;var n=Object.prototype.toString;function i(e){if(!e)return!1;var t=n.call(e);return"[object Function]"===t||"function"===typeof e&&"[object RegExp]"!==t||"undefined"!==typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}},"83ab":function(e,t,n){var i=n("d039");e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var i=n("d925"),r=n("e683");e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},8418:function(e,t,n){"use strict";var i=n("a04b"),r=n("9bf2"),o=n("5c6c");e.exports=function(e,t,n){var s=i(t);s in e?r.f(e,s,o(0,n)):e[s]=n}},"841c":function(e,t,n){"use strict";var i=n("c65b"),r=n("d784"),o=n("825a"),s=n("7234"),a=n("1d80"),l=n("129f"),c=n("577e"),u=n("dc4a"),h=n("14c3");r("search",(function(e,t,n){return[function(t){var n=a(this),r=s(t)?void 0:u(t,e);return r?i(r,t,n):new RegExp(t)[e](c(n))},function(e){var i=o(this),r=c(e),s=n(t,i,r);if(s.done)return s.value;var a=i.lastIndex;l(a,0)||(i.lastIndex=0);var u=h(i,r);return l(i.lastIndex,a)||(i.lastIndex=a),null===u?-1:u.index}]}))},8452:function(e,t,n){"use strict";n.r(t),n.d(t,"StandaloneGotoSymbolQuickAccessProvider",(function(){return W})),n.d(t,"GotoLineAction",(function(){return V}));n("b9db"),n("dbc9");var i=n("dff7"),r=n("2504"),o=n("a666"),s=n("6a89"),a=n("1fe0"),l=n("b707"),c=n("70f5"),u=n("3742"),h=n("7e93"),d=n("32b8"),f=n("30db");const p=[void 0,[]];function g(e,t,n=0,i=0){const r=t;return r.values&&r.values.length>1?m(e,r.values,n,i):v(e,t,n,i)}function m(e,t,n,i){let r=0;const o=[];for(const s of t){const[t,a]=v(e,s,n,i);if("number"!==typeof t)return p;r+=t,o.push(...a)}return[r,b(o)]}function v(e,t,n,i){const r=Object(h["d"])(t.original,t.originalLowercase,n,e,e.toLowerCase(),i,!0);return r?[r[0],Object(h["c"])(r)]:p}function b(e){const t=e.sort((e,t)=>e.start-t.start),n=[];let i=void 0;for(const r of t)i&&y(i,r)?(i.start=Math.min(i.start,r.start),i.end=Math.max(i.end,r.end)):(i=r,n.push(r));return n}function y(e,t){return!(e.end<t.start)&&!(t.end<e.start)}const _=" ";function w(e){"string"!==typeof e&&(e="");const t=e.toLowerCase(),{pathNormalized:n,normalized:i,normalizedLowercase:r}=C(e),o=n.indexOf(d["h"])>=0;let s=void 0;const a=e.split(_);if(a.length>1)for(const l of a){const{pathNormalized:e,normalized:t,normalizedLowercase:n}=C(l);t&&(s||(s=[]),s.push({original:l,originalLowercase:l.toLowerCase(),pathNormalized:e,normalized:t,normalizedLowercase:n}))}return{original:e,originalLowercase:t,pathNormalized:n,normalized:i,normalizedLowercase:r,values:s,containsPathSeparator:o}}function C(e){let t;t=f["j"]?e.replace(/\//g,d["h"]):e.replace(/\\/g,d["h"]);const n=Object(u["U"])(t).replace(/\s/g,"");return{pathNormalized:t,normalized:n,normalizedLowercase:n.toLowerCase()}}function S(e){return Array.isArray(e)?w(e.map(e=>e.original).join(_)):w(e.original)}var x=n("561a"),O=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class k extends a["a"]{constructor(e=Object.create(null)){super(e),this.options=e,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,Object(i["a"])("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),o["a"].None}provideWithTextEditor(e,t,n){const i=e.editor,r=this.getModel(i);return r?l["m"].has(r)?this.doProvideWithEditorSymbols(e,r,t,n):this.doProvideWithoutEditorSymbols(e,r,t,n):o["a"].None}doProvideWithoutEditorSymbols(e,t,n,r){const s=new o["b"];return this.provideLabelPick(n,Object(i["a"])("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(()=>{O(this,void 0,void 0,(function*(){const i=yield this.waitForLanguageSymbolRegistry(t,s);i&&!r.isCancellationRequested&&s.add(this.doProvideWithEditorSymbols(e,t,n,r))}))})(),s}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return O(this,void 0,void 0,(function*(){if(l["m"].has(e))return!0;let n;const i=new Promise(e=>n=e),r=t.add(l["m"].onDidChange(()=>{l["m"].has(e)&&(r.dispose(),n(!0))}));return t.add(Object(o["i"])(()=>n(!1))),i}))}doProvideWithEditorSymbols(e,t,n,s){const a=e.editor,l=new o["b"];l.add(n.onDidAccept(t=>{const[i]=n.selectedItems;i&&i.range&&(this.gotoLocation(e,{range:i.range.selection,keyMods:n.keyMods,preserveFocus:t.inBackground}),t.inBackground||n.hide())})),l.add(n.onDidTriggerItemButton(({item:t})=>{t&&t.range&&(this.gotoLocation(e,{range:t.range.selection,keyMods:n.keyMods,forceSideBySide:!0}),n.hide())}));const c=this.getDocumentSymbols(t,s);let u=void 0;const h=()=>O(this,void 0,void 0,(function*(){null===u||void 0===u||u.dispose(!0),n.busy=!1,u=new r["b"](s),n.busy=!0;try{const e=w(n.value.substr(k.PREFIX.length).trim()),t=yield this.doGetSymbolPicks(c,e,void 0,u.token);if(s.isCancellationRequested)return;t.length>0?n.items=t:e.original.length>0?this.provideLabelPick(n,Object(i["a"])("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(n,Object(i["a"])("noSymbolResults","No editor symbols"))}finally{s.isCancellationRequested||(n.busy=!1)}}));l.add(n.onDidChangeValue(()=>h())),h();let d=!0;return l.add(n.onDidChangeActive(()=>{const[e]=n.activeItems;if(e&&e.range){if(d)return void(d=!1);a.revealRangeInCenter(e.range.selection,0),this.addDecorations(a,e.range.decoration)}})),l}doGetSymbolPicks(e,t,n,r){return O(this,void 0,void 0,(function*(){const o=yield e;if(r.isCancellationRequested)return[];const a=0===t.original.indexOf(k.SCOPE_PREFIX),c=a?1:0;let h,d;t.values&&t.values.length>1?(h=S(t.values[0]),d=S(t.values.slice(1))):h=t;const f=[];for(let e=0;e<o.length;e++){const r=o[e],a=Object(u["V"])(r.name),p=`$(symbol-${l["D"].toString(r.kind)||"property"}) ${a}`,m=p.length-a.length;let v=r.containerName;(null===n||void 0===n?void 0:n.extraContainerLabel)&&(v=v?`${n.extraContainerLabel} • ${v}`:n.extraContainerLabel);let b=void 0,y=void 0,_=void 0,w=void 0;if(t.original.length>c){let e=!1;if(h!==t&&([b,y]=g(p,Object.assign(Object.assign({},t),{values:void 0}),c,m),"number"===typeof b&&(e=!0)),"number"!==typeof b&&([b,y]=g(p,h,c,m),"number"!==typeof b))continue;if(!e&&d){if(v&&d.original.length>0&&([_,w]=g(v,d)),"number"!==typeof _)continue;"number"===typeof b&&(b+=_)}}const C=r.tags&&r.tags.indexOf(1)>=0;f.push({index:e,kind:r.kind,score:b,label:p,ariaLabel:a,description:v,highlights:C?void 0:{label:y,description:w},range:{selection:s["a"].collapseToStart(r.selectionRange),decoration:r.range},strikethrough:C,buttons:(()=>{var e,t;const n=(null===(e=this.options)||void 0===e?void 0:e.openSideBySideDirection)?null===(t=this.options)||void 0===t?void 0:t.openSideBySideDirection():void 0;if(n)return[{iconClass:"right"===n?x["b"].splitHorizontal.classNames:x["b"].splitVertical.classNames,tooltip:"right"===n?Object(i["a"])("openToSide","Open to the Side"):Object(i["a"])("openToBottom","Open to the Bottom")}]})()})}const p=f.sort((e,t)=>a?this.compareByKindAndScore(e,t):this.compareByScore(e,t));let m=[];if(a){let e=void 0,t=void 0,n=0;function v(){t&&"number"===typeof e&&n>0&&(t.label=Object(u["w"])(E[e]||L,n))}for(const i of p)e!==i.kind?(v(),e=i.kind,n=1,t={type:"separator"},m.push(t)):n++,m.push(i);v()}else p.length>0&&(m=[{label:Object(i["a"])("symbols","symbols ({0})",f.length),type:"separator"},...p]);return m}))}compareByScore(e,t){if("number"!==typeof e.score&&"number"===typeof t.score)return 1;if("number"===typeof e.score&&"number"!==typeof t.score)return-1;if("number"===typeof e.score&&"number"===typeof t.score){if(e.score>t.score)return-1;if(e.score<t.score)return 1}return e.index<t.index?-1:e.index>t.index?1:0}compareByKindAndScore(e,t){const n=E[e.kind]||L,i=E[t.kind]||L,r=n.localeCompare(i);return 0===r?this.compareByScore(e,t):r}getDocumentSymbols(e,t){return O(this,void 0,void 0,(function*(){const n=yield c["a"].create(e,t);return t.isCancellationRequested?[]:n.asListOfDocumentSymbols()}))}}k.PREFIX="@",k.SCOPE_PREFIX=":",k.PREFIX_BY_CATEGORY=`${k.PREFIX}${k.SCOPE_PREFIX}`;const L=Object(i["a"])("property","properties ({0})"),E={[5]:Object(i["a"])("method","methods ({0})"),[11]:Object(i["a"])("function","functions ({0})"),[8]:Object(i["a"])("_constructor","constructors ({0})"),[12]:Object(i["a"])("variable","variables ({0})"),[4]:Object(i["a"])("class","classes ({0})"),[22]:Object(i["a"])("struct","structs ({0})"),[23]:Object(i["a"])("event","events ({0})"),[24]:Object(i["a"])("operator","operators ({0})"),[10]:Object(i["a"])("interface","interfaces ({0})"),[2]:Object(i["a"])("namespace","namespaces ({0})"),[3]:Object(i["a"])("package","packages ({0})"),[25]:Object(i["a"])("typeParameter","type parameters ({0})"),[1]:Object(i["a"])("modules","modules ({0})"),[6]:Object(i["a"])("property","properties ({0})"),[9]:Object(i["a"])("enum","enumerations ({0})"),[21]:Object(i["a"])("enumMember","enumeration members ({0})"),[14]:Object(i["a"])("string","strings ({0})"),[0]:Object(i["a"])("file","files ({0})"),[17]:Object(i["a"])("array","arrays ({0})"),[15]:Object(i["a"])("number","numbers ({0})"),[16]:Object(i["a"])("boolean","booleans ({0})"),[18]:Object(i["a"])("object","objects ({0})"),[19]:Object(i["a"])("key","keys ({0})"),[7]:Object(i["a"])("field","fields ({0})"),[13]:Object(i["a"])("constant","constants ({0})")};var D=n("89cd"),I=n("2f1e"),M=n("5717"),T=n("ef8e"),A=n("03d9"),N=n("308f"),P=n("b2cc"),j=n("c101"),R=n("66bd"),F=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},B=function(e,t){return function(n,i){t(n,i,e)}};let W=class extends k{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=N["c"].None}get activeTextEditorControl(){return Object(T["o"])(this.editorService.getFocusedCodeEditor())}};W=F([B(0,M["a"])],W),D["a"].as(I["b"].Quickaccess).registerQuickAccessProvider({ctor:W,prefix:k.PREFIX,helpEntries:[{description:A["f"].quickOutlineActionLabel,prefix:k.PREFIX,needsEditor:!0},{description:A["f"].quickOutlineByCategoryActionLabel,prefix:k.PREFIX_BY_CATEGORY,needsEditor:!0}]});class V extends P["b"]{constructor(){super({id:"editor.action.quickOutline",label:A["f"].quickOutlineActionLabel,alias:"Go to Symbol...",precondition:j["a"].hasDocumentSymbolProvider,kbOpts:{kbExpr:j["a"].focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(R["a"]).quickAccess.show(k.PREFIX)}}Object(P["j"])(V)},8457:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["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("chunk-2d20ff23").then(n.bind(null,"b692"))}})},8478:function(e,t,n){},"848b":function(e,t,n){"use strict";var i=n("5cce").version,r={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};function s(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var i=Object.keys(e),r=i.length;while(r-- >0){var o=i[r],s=t[o];if(s){var a=e[o],l=void 0===a||s(a,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}}r.transitional=function(e,t,n){function r(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,s){if(!1===e)throw new Error(r(i," has been removed"+(t?" in "+t:"")));return t&&!o[i]&&(o[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,s)}},e.exports={assertOptions:s,validators:r}},8495:function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"f",(function(){return b})),n.d(t,"g",(function(){return y})),n.d(t,"e",(function(){return _})),n.d(t,"c",(function(){return w})),n.d(t,"a",(function(){return C})),n.d(t,"d",(function(){return O}));var i=n("e8e3"),r=n("2504"),o=n("fdcc"),s=n("a666"),a=n("6d8e"),l=n("bc04"),c=n("6a89"),u=n("8025"),h=n("b707"),d=n("1b69"),f=n("9e56"),p=n("b539"),g=n("9e74"),m=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const v="editor.action.codeAction",b="editor.action.refactor",y="editor.action.sourceAction",_="editor.action.organizeImports",w="editor.action.fixAll";class C{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return m(this,void 0,void 0,(function*(){if((null===(t=this.provider)||void 0===t?void 0:t.resolveCodeAction)&&!this.action.edit){let t;try{t=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Object(o["f"])(n)}t&&(this.action.edit=t.edit)}return this}))}}class S extends s["a"]{constructor(e,t,n){super(),this.documentation=t,this._register(n),this.allActions=[...e].sort(S.codeActionsComparator),this.validActions=this.allActions.filter(({action:e})=>!e.disabled)}static codeActionsComparator({action:e},{action:t}){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:Object(i["n"])(e.diagnostics)?Object(i["n"])(t.diagnostics)?e.diagnostics[0].message.localeCompare(t.diagnostics[0].message):-1:Object(i["n"])(t.diagnostics)?1:0}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&f["b"].QuickFix.contains(new f["b"](e.kind))&&!!e.isPreferred)}}const x={actions:[],documentation:void 0};function O(e,t,n,r,a){var c;const u=n.filter||{},d={only:null===(c=u.include)||void 0===c?void 0:c.value,trigger:n.type},p=new l["d"](e,a),g=k(e,u),v=new s["b"],b=g.map(n=>m(this,void 0,void 0,(function*(){try{r.report(n);const i=yield n.provideCodeActions(e,t,d,p.token);if(i&&v.add(i),p.token.isCancellationRequested)return x;const o=((null===i||void 0===i?void 0:i.actions)||[]).filter(e=>e&&Object(f["c"])(u,e)),s=L(n,o,u.include);return{actions:o.map(e=>new C(e,n)),documentation:s}}catch(i){if(Object(o["d"])(i))throw i;return Object(o["f"])(i),x}}))),y=h["a"].onDidChange(()=>{const t=h["a"].all(e);Object(i["h"])(t,g)||p.cancel()});return Promise.all(b).then(e=>{const t=Object(i["k"])(e.map(e=>e.actions)),n=Object(i["e"])(e.map(e=>e.documentation));return new S(t,n,v)}).finally(()=>{y.dispose(),p.dispose()})}function k(e,t){return h["a"].all(e).filter(e=>!e.providedCodeActionKinds||e.providedCodeActionKinds.some(e=>Object(f["d"])(t,new f["b"](e))))}function L(e,t,n){if(!e.documentation)return;const i=e.documentation.map(e=>({kind:new f["b"](e.kind),command:e.command}));if(n){let e;for(const t of i)t.kind.contains(n)&&(e?e.kind.contains(t.kind)&&(e=t):e=t);if(e)return null===e||void 0===e?void 0:e.command}for(const r of t)if(r.kind)for(const e of i)if(e.kind.contains(new f["b"](r.kind)))return e.command}g["a"].registerCommand("_executeCodeActionProvider",(function(e,t,n,i,s){return m(this,void 0,void 0,(function*(){if(!(t instanceof a["a"]))throw Object(o["b"])();const l=e.get(d["a"]).getModel(t);if(!l)throw Object(o["b"])();const h=u["a"].isISelection(n)?u["a"].liftSelection(n):c["a"].isIRange(n)?l.validateRange(n):void 0;if(!h)throw Object(o["b"])();const g="string"===typeof i?new f["b"](i):void 0,m=yield O(l,h,{type:1,filter:{includeSourceActions:!0,include:g}},p["b"].None,r["a"].None),v=[],b=Math.min(m.validActions.length,"number"===typeof s?s:0);for(let e=0;e<b;e++)v.push(m.validActions[e].resolve(r["a"].None));try{return yield Promise.all(v),m.validActions.map(e=>e.action)}finally{setTimeout(()=>m.dispose(),100)}}))}))},"84cd":function(e,t,n){},"84ce":function(e,t,n){"use strict";var i=n("6d8b"),r=n("3842"),o=n("e86a"),s=n("e0d3"),a=n("697e"),l=Object(s["o"])();function c(e,t){var n=i["map"](t,(function(t){return e.scale.parse(t)}));return"time"===e.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function u(e){var t=e.getLabelModel().get("customValues");if(t){var n=Object(a["h"])(e);return{labels:c(e,t).map((function(t){var i={value:t};return{formattedLabel:n(i),rawLabel:e.scale.getLabel(i),tickValue:t}}))}}return"category"===e.type?d(e):g(e)}function h(e,t){var n=e.getTickModel().get("customValues");return n?{ticks:c(e,n)}:"category"===e.type?p(e,t):{ticks:i["map"](e.scale.getTicks(),(function(e){return e.value}))}}function d(e){var t=e.getLabelModel(),n=f(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function f(e,t){var n,r,o=m(e,"labels"),s=Object(a["e"])(t),l=v(o,s);return l||(i["isFunction"](s)?n=S(e,s):(r="auto"===s?y(e):s,n=C(e,r)),b(o,s,{labels:n,labelCategoryInterval:r}))}function p(e,t){var n,r,o=m(e,"ticks"),s=Object(a["e"])(t),l=v(o,s);if(l)return l;if(t.get("show")&&!e.scale.isBlank()||(n=[]),i["isFunction"](s))n=S(e,s,!0);else if("auto"===s){var c=f(e,e.getLabelModel());r=c.labelCategoryInterval,n=i["map"](c.labels,(function(e){return e.tickValue}))}else r=s,n=C(e,r,!0);return b(o,s,{ticks:n,tickCategoryInterval:r})}function g(e){var t=e.scale.getTicks(),n=Object(a["h"])(e);return{labels:i["map"](t,(function(t,i){return{level:t.level,formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function m(e,t){return l(e)[t]||(l(e)[t]=[])}function v(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function b(e,t,n){return e.push({key:t,value:n}),n}function y(e){var t=l(e).autoInterval;return null!=t?t:l(e).autoInterval=e.calculateCategoryInterval()}function _(e){var t=w(e),n=Object(a["h"])(e),i=(t.axisRotate-t.labelRotate)/180*Math.PI,r=e.scale,s=r.getExtent(),c=r.count();if(s[1]-s[0]<1)return 0;var u=1;c>40&&(u=Math.max(1,Math.floor(c/40)));for(var h=s[0],d=e.dataToCoord(h+1)-e.dataToCoord(h),f=Math.abs(d*Math.cos(i)),p=Math.abs(d*Math.sin(i)),g=0,m=0;h<=s[1];h+=u){var v=0,b=0,y=o["d"](n({value:h}),t.font,"center","top");v=1.3*y.width,b=1.3*y.height,g=Math.max(g,v,7),m=Math.max(m,b,7)}var _=g/f,C=m/p;isNaN(_)&&(_=1/0),isNaN(C)&&(C=1/0);var S=Math.max(0,Math.floor(Math.min(_,C))),x=l(e.model),O=e.getExtent(),k=x.lastAutoInterval,L=x.lastTickCount;return null!=k&&null!=L&&Math.abs(k-S)<=1&&Math.abs(L-c)<=1&&k>S&&x.axisExtent0===O[0]&&x.axisExtent1===O[1]?S=k:(x.lastTickCount=c,x.lastAutoInterval=S,x.axisExtent0=O[0],x.axisExtent1=O[1]),S}function w(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function C(e,t,n){var i=Object(a["h"])(e),r=e.scale,o=r.getExtent(),s=e.getLabelModel(),l=[],c=Math.max((t||0)+1,1),u=o[0],h=r.count();0!==u&&c>1&&h/c>2&&(u=Math.round(Math.ceil(u/c)*c));var d=Object(a["j"])(e),f=s.get("showMinLabel")||d,p=s.get("showMaxLabel")||d;f&&u!==o[0]&&m(o[0]);for(var g=u;g<=o[1];g+=c)m(g);function m(e){var t={value:e};l.push(n?e:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:e})}return p&&g-c!==o[1]&&m(o[1]),l}function S(e,t,n){var r=e.scale,o=Object(a["h"])(e),s=[];return i["each"](r.getTicks(),(function(e){var i=r.getLabel(e),a=e.value;t(e.value,i)&&s.push(n?a:{formattedLabel:o(e),rawLabel:i,tickValue:a})})),s}var x=[0,1],O=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Object(r["g"])(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&(n=n.slice(),k(n,i.count())),Object(r["m"])(e,x,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),k(n,i.count()));var o=Object(r["m"])(e,n,x,t);return this.scale.scale(o)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=h(this,t),r=n.ticks,o=Object(i["map"])(r,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),s=t.get("alignWithLabel");return L(this,o,s,e.clamp),o},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),r=Object(i["map"])(n,(function(e){return Object(i["map"])(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return r},e.prototype.getViewLabels=function(){return u(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return _(this)},e}();function k(e,t){var n=e[1]-e[0],i=t,r=n/i/2;e[0]+=r,e[1]-=r}function L(e,t,n,o){var s=t.length;if(e.onBand&&!n&&s){var a,l,c=e.getExtent();if(1===s)t[0].coord=c[0],a=t[1]={coord:c[1]};else{var u=t[s-1].tickValue-t[0].tickValue,h=(t[s-1].coord-t[0].coord)/u;Object(i["each"])(t,(function(e){e.coord-=h/2}));var d=e.scale.getExtent();l=1+d[1]-t[s-1].tickValue,a={coord:t[s-1].coord+h*l},t.push(a)}var f=c[0]>c[1];p(t[0].coord,c[0])&&(o?t[0].coord=c[0]:t.shift()),o&&p(c[0],t[0].coord)&&t.unshift({coord:c[0]}),p(c[1],a.coord)&&(o?a.coord=c[1]:t.pop()),o&&p(a.coord,c[1])&&t.push({coord:c[1]})}function p(e,t){return e=Object(r["w"])(e),t=Object(r["w"])(t),f?e>t:e<t}}t["a"]=O},"84df":function(e,t,n){"use strict";n.d(t,"b",(function(){return O})),n.d(t,"a",(function(){return L})),n.d(t,"c",(function(){return E})),n.d(t,"d",(function(){return I})),n.d(t,"e",(function(){return N}));var i=n("3813"),r=n("e8e3"),o=n("2504"),s=n("fdcc"),a=n("6d8e"),l=n("bc04"),c=n("b055"),u=n("7061"),h=n("6a89"),d=n("8025"),f=n("b707"),p=n("a40b"),g=n("1b69"),m=n("09db"),v=n("dff7");class b{constructor(e){this.value=e,this._lower=e.toLowerCase()}static toKey(e){return"string"===typeof e?e.toLowerCase():e._lower}}var y=n("0a0f"),_=n("db88"),w=n("9e74"),C=n("ef8e"),S=n("258a"),x=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function O(e){if(e=e.filter(e=>e.range),!e.length)return;let{range:t}=e[0];for(let i=1;i<e.length;i++)t=h["a"].plusRange(t,e[i].range);const{startLineNumber:n,endLineNumber:r}=t;n===r?1===e.length?Object(i["a"])(v["a"]("hint11","Made 1 formatting edit on line {0}",n)):Object(i["a"])(v["a"]("hintn1","Made {0} formatting edits on line {1}",e.length,n)):1===e.length?Object(i["a"])(v["a"]("hint1n","Made 1 formatting edit between lines {0} and {1}",n,r)):Object(i["a"])(v["a"]("hintnn","Made {0} formatting edits between lines {1} and {2}",e.length,n,r))}function k(e){const t=[],n=new Set,i=f["g"].ordered(e);for(const o of i)t.push(o),o.extensionId&&n.add(b.toKey(o.extensionId));const r=f["j"].ordered(e);for(const o of r){if(o.extensionId){if(n.has(b.toKey(o.extensionId)))continue;n.add(b.toKey(o.extensionId))}t.push({displayName:o.displayName,extensionId:o.extensionId,provideDocumentFormattingEdits(e,t,n){return o.provideDocumentRangeFormattingEdits(e,e.getFullModelRange(),t,n)}})}return t}class L{static setFormatterSelector(e){const t=L._selectors.unshift(e);return{dispose:t}}static select(e,t,n){return x(this,void 0,void 0,(function*(){if(0===e.length)return;const i=S["a"].first(L._selectors);return i?yield i(e,t,n):void 0}))}}function E(e,t,n,i,r,o){return x(this,void 0,void 0,(function*(){const s=e.get(y["a"]),a=Object(c["b"])(t)?t.getModel():t,l=f["j"].ordered(a),u=yield L.select(l,a,i);u&&(r.report(u),yield s.invokeFunction(D,u,t,n,o))}))}function D(e,t,n,i,o){return x(this,void 0,void 0,(function*(){const s=e.get(p["a"]);let a,u;Object(c["b"])(n)?(a=n.getModel(),u=new l["b"](n,5,void 0,o)):(a=n,u=new l["d"](n,o));let f=[],g=0;for(let e of Object(r["c"])(i).sort(h["a"].compareRangesUsingStarts))g>0&&h["a"].areIntersectingOrTouching(f[g-1],e)?f[g-1]=h["a"].fromPositions(f[g-1].getStartPosition(),e.getEndPosition()):g=f.push(e);const v=e=>x(this,void 0,void 0,(function*(){return(yield t.provideDocumentRangeFormattingEdits(a,e,a.getFormattingOptions(),u.token))||[]})),b=(e,t)=>{if(!e.length||!t.length)return!1;const n=e.reduce((e,t)=>h["a"].plusRange(e,t.range),e[0].range);if(!t.some(e=>h["a"].intersectRanges(n,e.range)))return!1;for(let i of e)for(let e of t)if(h["a"].intersectRanges(i.range,e.range))return!0;return!1},y=[],_=[];try{for(let e of f){if(u.token.isCancellationRequested)return!0;_.push(yield v(e))}for(let e=0;e<f.length;++e)for(let t=e+1;t<f.length;++t){if(u.token.isCancellationRequested)return!0;if(b(_[e],_[t])){const n=h["a"].plusRange(f[e],f[t]),i=yield v(n);f.splice(t,1),f.splice(e,1),f.push(n),_.splice(t,1),_.splice(e,1),_.push(i),e=0,t=0}}for(let e of _){if(u.token.isCancellationRequested)return!0;const t=yield s.computeMoreMinimalEdits(a.uri,e);t&&y.push(...t)}}finally{u.dispose()}if(0===y.length)return!1;if(Object(c["b"])(n))m["a"].execute(n,y,!0),O(y),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1);else{const[{range:e}]=y,t=new d["a"](e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);a.pushEditOperations([t],y.map(e=>({text:e.text,range:h["a"].lift(e.range),forceMoveMarkers:!0})),e=>{for(const{range:n}of e)if(h["a"].areIntersectingOrTouching(n,t))return[new d["a"](n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn)];return null})}return!0}))}function I(e,t,n,i,r){return x(this,void 0,void 0,(function*(){const o=e.get(y["a"]),s=Object(c["b"])(t)?t.getModel():t,a=k(s),l=yield L.select(a,s,n);l&&(i.report(l),yield o.invokeFunction(M,l,t,n,r))}))}function M(e,t,n,i,r){return x(this,void 0,void 0,(function*(){const o=e.get(p["a"]);let s,a,u;Object(c["b"])(n)?(s=n.getModel(),a=new l["b"](n,5,void 0,r)):(s=n,a=new l["d"](n,r));try{const e=yield t.provideDocumentFormattingEdits(s,s.getFormattingOptions(),a.token);if(u=yield o.computeMoreMinimalEdits(s.uri,e),a.token.isCancellationRequested)return!0}finally{a.dispose()}if(!u||0===u.length)return!1;if(Object(c["b"])(n))m["a"].execute(n,u,2!==i),2!==i&&(O(u),n.revealPositionInCenterIfOutsideViewport(n.getPosition(),1));else{const[{range:e}]=u,t=new d["a"](e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn);s.pushEditOperations([t],u.map(e=>({text:e.text,range:h["a"].lift(e.range),forceMoveMarkers:!0})),e=>{for(const{range:n}of e)if(h["a"].areIntersectingOrTouching(n,t))return[new d["a"](n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn)];return null})}return!0}))}function T(e,t,n,i,o){return x(this,void 0,void 0,(function*(){const a=f["j"].ordered(t);for(const l of a){let a=yield Promise.resolve(l.provideDocumentRangeFormattingEdits(t,n,i,o)).catch(s["f"]);if(Object(r["n"])(a))return yield e.computeMoreMinimalEdits(t.uri,a)}}))}function A(e,t,n,i){return x(this,void 0,void 0,(function*(){const o=k(t);for(const a of o){let o=yield Promise.resolve(a.provideDocumentFormattingEdits(t,n,i)).catch(s["f"]);if(Object(r["n"])(o))return yield e.computeMoreMinimalEdits(t.uri,o)}}))}function N(e,t,n,i,r){const a=f["x"].ordered(t);return 0===a.length||a[0].autoFormatTriggerCharacters.indexOf(i)<0?Promise.resolve(void 0):Promise.resolve(a[0].provideOnTypeFormattingEdits(t,n,i,r,o["a"].None)).catch(s["f"]).then(n=>e.computeMoreMinimalEdits(t.uri,n))}L._selectors=new _["a"],w["a"].registerCommand("_executeFormatRangeProvider",(function(e,...t){const[n,i,r]=t;Object(C["c"])(a["a"].isUri(n)),Object(C["c"])(h["a"].isIRange(i));const l=e.get(g["a"]).getModel(n);if(!l)throw Object(s["b"])("resource");return T(e.get(p["a"]),l,h["a"].lift(i),r,o["a"].None)})),w["a"].registerCommand("_executeFormatDocumentProvider",(function(e,...t){const[n,i]=t;Object(C["c"])(a["a"].isUri(n));const r=e.get(g["a"]).getModel(n);if(!r)throw Object(s["b"])("resource");return A(e.get(p["a"]),r,i,o["a"].None)})),w["a"].registerCommand("_executeFormatOnTypeProvider",(function(e,...t){const[n,i,r,o]=t;Object(C["c"])(a["a"].isUri(n)),Object(C["c"])(u["a"].isIPosition(i)),Object(C["c"])("string"===typeof r);const l=e.get(g["a"]).getModel(n);if(!l)throw Object(s["b"])("resource");return N(e.get(p["a"]),l,u["a"].lift(i),r,o)}))},"852e":function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}var t={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function n(t,i){function r(n,r,o){if("undefined"!==typeof document){o=e({},i,o),"number"===typeof o.expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var a in o)o[a]&&(s+="; "+a,!0!==o[a]&&(s+="="+o[a].split(";")[0]));return document.cookie=n+"="+t.write(r,n)+s}}function o(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],i={},r=0;r<n.length;r++){var o=n[r].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(i[a]=t.read(s,a),e===a)break}catch(l){}}return e?i[e]:i}}return Object.create({set:r,get:o,remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(t){return n(this.converter,e({},this.attributes,t))},withConverter:function(t){return n(e({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(t)}})}var i=n(t,{path:"/"});return i}))},"854c":function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},"857a":function(e,t,n){var i=n("e330"),r=n("1d80"),o=n("577e"),s=/"/g,a=i("".replace);e.exports=function(e,t,n,i){var l=o(r(e)),c="<"+t;return""!==n&&(c+=" "+n+'="'+a(o(i),s,""")+'"'),c+">"+l+"</"+t+">"}},"857d":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=2*Math.PI;function r(e){return e%=i,e<0&&(e+=i),e}},8582:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return p}));var i=n("1687"),r=n("401b"),o=i["identity"],s=5e-5;function a(e){return e>s||e<-s}var l=[],c=[],u=i["create"](),h=Math.abs,d=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return a(this.rotation)||a(this.x)||a(this.y)||a(this.scaleX-1)||a(this.scaleY-1)||a(this.skewX)||a(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||i["create"](),t?this.getLocalTransform(n):o(n),e&&(t?i["mul"](n,e,n):i["copy"](n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(o(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(l);var n=l[0]<0?-1:1,r=l[1]<0?-1:1,o=((l[0]-n)*t+n)/l[0]||0,s=((l[1]-r)*t+r)/l[1]||0;e[0]*=o,e[1]*=o,e[2]*=s,e[3]*=s}this.invTransform=this.invTransform||i["create"](),i["invert"](this.invTransform,e)},e.prototype.getComputedTransform=function(){var e=this,t=[];while(e)t.push(e),e=e.parent;while(e=t.pop())e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),r=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(r),t=Math.sqrt(t),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||i["create"](),i["mul"](c,e.invTransform,t),t=c);var n=this.originX,r=this.originY;(n||r)&&(u[4]=n,u[5]=r,i["mul"](c,t,u),c[4]-=n,c[5]-=r,t=c),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&r["applyTransform"](n,n,i),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&r["applyTransform"](n,n,i),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&h(e[0]-1)>1e-10&&h(e[3]-1)>1e-10?Math.sqrt(h(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){p(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,o=e.scaleX,s=e.scaleY,a=e.anchorX,l=e.anchorY,c=e.rotation||0,u=e.x,h=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||a||l){var p=n+a,g=r+l;t[4]=-p*o-d*g*s,t[5]=-g*s-f*p*o}else t[4]=t[5]=0;return t[0]=o,t[3]=s,t[1]=f*o,t[2]=d*s,c&&i["rotate"](t,t,c),t[4]+=n+u,t[5]+=r+h,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),f=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function p(e,t){for(var n=0;n<f.length;n++){var i=f[n];e[i]=t[i]}}t["c"]=d},"85c4":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=i(n("9523")),o=i(n("448a")),s=i(n("970b")),a=i(n("a870")),l=i(n("050c")),c=n("5557"),u=i(n("b06d")),h=i(n("eb53"));function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(n,!0).forEach((function(t){(0,r["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function e(t){if((0,s["default"])(this,e),t){var n=t.getContext("2d"),i=t.clientWidth,r=t.clientHeight,o=[i,r];t.setAttribute("width",i),t.setAttribute("height",r),this.ctx=n,this.area=o,this.animationStatus=!1,this.graphs=[],this.color=a["default"],this.bezierCurve=l["default"],t.addEventListener("mousedown",v.bind(this)),t.addEventListener("mousemove",b.bind(this)),t.addEventListener("mouseup",y.bind(this))}else console.error("CRender Missing parameters!")};function g(e,t){var n=this.graphs;m(n)?(n.forEach((function(e){return e.turnNextAnimationFrame(t)})),this.drawAllGraph(),requestAnimationFrame(g.bind(this,e,t))):e()}function m(e){return e.find((function(e){return!e.animationPause&&e.animationFrameState.length}))}function v(e){var t=this.graphs,n=t.find((function(e){return"hover"===e.status}));n&&(n.status="active")}function b(e){var t=e.offsetX,n=e.offsetY,i=[t,n],r=this.graphs,o=r.find((function(e){return"active"===e.status||"drag"===e.status}));if(o){if(!o.drag)return;return"function"!==typeof o.move?void console.error("No move method is provided, cannot be dragged!"):(o.moveProcessor(e),void(o.status="drag"))}var s=r.find((function(e){return"hover"===e.status})),a=r.filter((function(e){return e.hover&&("function"===typeof e.hoverCheck||e.hoverRect)})),l=a.find((function(e){return e.hoverCheckProcessor(i,e)}));document.body.style.cursor=l?l.style.hoverCursor:"default";var c=!1,u=!1;if(s&&(c="function"===typeof s.mouseOuter),l&&(u="function"===typeof l.mouseEnter),l||s){if(!l&&s)return c&&s.mouseOuter(e,s),void(s.status="static");if(!l||l!==s)return l&&!s?(u&&l.mouseEnter(e,l),void(l.status="hover")):void(l&&s&&l!==s&&(c&&s.mouseOuter(e,s),s.status="static",u&&l.mouseEnter(e,l),l.status="hover"))}}function y(e){var t=this.graphs,n=t.find((function(e){return"active"===e.status})),i=t.find((function(e){return"drag"===e.status}));n&&"function"===typeof n.click&&n.click(e,n),t.forEach((function(e){return e&&(e.status="static")})),n&&(n.status="hover"),i&&(i.status="hover")}t["default"]=p,p.prototype.clearArea=function(){var e,t=this.area;(e=this.ctx).clearRect.apply(e,[0,0].concat((0,o["default"])(t)))},p.prototype.add=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name;if(t){var n=u["default"].get(t);if(n){var i=new h["default"](n,e);if(i.validator(i))return i.render=this,this.graphs.push(i),this.sortGraphsByIndex(),this.drawAllGraph(),i}else console.warn("No corresponding graph configuration found!")}else console.error("add Missing parameters!")},p.prototype.sortGraphsByIndex=function(){var e=this.graphs;e.sort((function(e,t){return e.index>t.index?1:e.index===t.index?0:e.index<t.index?-1:void 0}))},p.prototype.delGraph=function(e){"function"===typeof e.delProcessor&&(e.delProcessor(this),this.graphs=this.graphs.filter((function(e){return e})),this.drawAllGraph())},p.prototype.delAllGraph=function(){var e=this;this.graphs.forEach((function(t){return t.delProcessor(e)})),this.graphs=this.graphs.filter((function(e){return e})),this.drawAllGraph()},p.prototype.drawAllGraph=function(){var e=this;this.clearArea(),this.graphs.filter((function(e){return e&&e.visible})).forEach((function(t){return t.drawProcessor(e,t)}))},p.prototype.launchAnimation=function(){var e=this,t=this.animationStatus;if(!t)return this.animationStatus=!0,new Promise((function(t){g.call(e,(function(){e.animationStatus=!1,t()}),Date.now())}))},p.prototype.clone=function(e){var t=e.style.getStyle(),n=f({},e,{style:t});return delete n.render,n=(0,c.deepClone)(n,!0),this.add(n)}},"85e7":function(e,t,n){var i=n("1a14"),r=n("77e9"),o=n("9876");e.exports=n("0bad")?Object.defineProperties:function(e,t){r(e);var n,s=o(t),a=s.length,l=0;while(a>l)i.f(e,n=s[l++],t[n]);return e}},"85f8":function(e,t,n){"use strict";(function(t,i){var r;e.exports=D,D.ReadableState=E;n("faa1").EventEmitter;var o=function(e,t){return e.listeners(t).length},s=n("9ede"),a=n("1c35").Buffer,l=("undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function c(e){return a.from(e)}function u(e){return a.isBuffer(e)||e instanceof l}var h,d=n(2);h=d&&d.debuglog?d.debuglog("stream"):function(){};var f,p,g,m=n("f688"),v=n("edb3"),b=n("31b5"),y=b.getHighWaterMark,_=n("fbd7").codes,w=_.ERR_INVALID_ARG_TYPE,C=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,x=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n("3fb5")(D,s);var O=v.errorOrDestroy,k=["error","close","destroy","pause","resume"];function L(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function E(e,t,i){r=r||n("be3f"),e=e||{},"boolean"!==typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",i),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n("aa22").StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function D(e){if(r=r||n("be3f"),!(this instanceof D))return new D(e);var t=this instanceof r;this._readableState=new E(e,this,t),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function I(e,t,n,i,r){h("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,j(e,s);else if(r||(o=T(s,t)),o)O(e,o);else if(s.objectMode||t&&t.length>0)if("string"===typeof t||s.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=c(t)),i)s.endEmitted?O(e,new x):M(e,s,t,!0);else if(s.ended)O(e,new C);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?M(e,s,t,!1):B(e,s)):M(e,s,t,!1)}else i||(s.reading=!1,B(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function M(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&R(e)),B(e,t)}function T(e,t){var n;return u(t)||"string"===typeof t||void 0===t||e.objectMode||(n=new w("chunk",["string","Buffer","Uint8Array"],t)),n}Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),D.prototype.destroy=v.destroy,D.prototype._undestroy=v.undestroy,D.prototype._destroy=function(e,t){t(e)},D.prototype.push=function(e,t){var n,i=this._readableState;return i.objectMode?n=!0:"string"===typeof e&&(t=t||i.defaultEncoding,t!==i.encoding&&(e=a.from(e,t),t=""),n=!0),I(this,e,t,!1,n)},D.prototype.unshift=function(e){return I(this,e,null,!0,!1)},D.prototype.isPaused=function(){return!1===this._readableState.flowing},D.prototype.setEncoding=function(e){f||(f=n("aa22").StringDecoder);var t=new f(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;var i=this._readableState.buffer.head,r="";while(null!==i)r+=t.write(i.data),i=i.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var A=1073741824;function N(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function P(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=N(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function j(e,t){if(h("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?R(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,F(e)))}}function R(e){var t=e._readableState;h("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(F,e))}function F(e){var t=e._readableState;h("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,$(e)}function B(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(W,e,t))}function W(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length)){var n=t.length;if(h("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function V(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,$(e))}}function z(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function H(e){h("readable nexttick read 0"),e.read(0)}function U(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(q,e,t))}function q(e,t){h("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),$(e),t.flowing&&!t.reading&&e.read(0)}function $(e){var t=e._readableState;h("flow",t.flowing);while(t.flowing&&null!==e.read());}function K(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function G(e){var t=e._readableState;h("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(Y,t,e))}function Y(e,t){if(h("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function Z(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}D.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?G(this):R(this),null;if(e=P(e,t),0===e&&t.ended)return 0===t.length&&G(this),null;var i,r=t.needReadable;return h("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&(r=!0,h("length less than watermark",r)),t.ended||t.reading?(r=!1,h("reading or ended",r)):r&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=P(n,t))),i=e>0?K(e,t):null,null===i?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&G(this)),null!==i&&this.emit("data",i),i},D.prototype._read=function(e){O(this,new S("_read()"))},D.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,h("pipe count=%d opts=%j",r.pipesCount,t);var s=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr,a=s?c:b;function l(e,t){h("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function c(){h("onend"),e.end()}r.endEmitted?i.nextTick(a):n.once("end",a),e.on("unpipe",l);var u=V(n);e.on("drain",u);var d=!1;function f(){h("cleanup"),e.removeListener("close",m),e.removeListener("finish",v),e.removeListener("drain",u),e.removeListener("error",g),e.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",p),d=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u()}function p(t){h("ondata");var i=e.write(t);h("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==Z(r.pipes,e))&&!d&&(h("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function g(t){h("onerror",t),b(),e.removeListener("error",g),0===o(e,"error")&&O(e,t)}function m(){e.removeListener("finish",v),b()}function v(){h("onfinish"),e.removeListener("close",m),b()}function b(){h("unpipe"),n.unpipe(e)}return n.on("data",p),L(e,"error",g),e.once("close",m),e.once("finish",v),e.emit("pipe",n),r.flowing||(h("pipe resume"),n.resume()),e},D.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<r;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=Z(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},D.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,h("on readable",r.length,r.reading),r.length?R(this):r.reading||i.nextTick(H,this))),n},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(z,this),n},D.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(z,this),t},D.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!e.readableListening,U(this,e)),e.paused=!1,this},D.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},D.prototype.wrap=function(e){var t=this,n=this._readableState,i=!1;for(var r in e.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(r){if(h("wrapped data"),n.decoder&&(r=n.decoder.write(r)),(!n.objectMode||null!==r&&void 0!==r)&&(n.objectMode||r&&r.length)){var o=t.push(r);o||(i=!0,e.pause())}})),e)void 0===this[r]&&"function"===typeof e[r]&&(this[r]=function(t){return function(){return e[t].apply(e,arguments)}}(r));for(var o=0;o<k.length;o++)e.on(k[o],this.emit.bind(this,k[o]));return this._read=function(t){h("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"===typeof Symbol&&(D.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=n("34e3")),p(this)}),Object.defineProperty(D.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(D.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(D.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),D._fromList=K,Object.defineProperty(D.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(D.from=function(e,t){return void 0===g&&(g=n("2527")),g(D,e,t)})}).call(this,n("c8ba"),n("4362"))},"861c":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n("e0d3"),r=Object(i["o"])(),o=function(e,t,n,i){if(i){var o=r(i);o.dataIndex=n,o.dataType=t,o.seriesIndex=e,o.ssrType="chart","group"===i.type&&i.traverse((function(i){var o=r(i);o.seriesIndex=e,o.dataIndex=n,o.dataType=t,o.ssrType="chart"}))}}},"861d":function(e,t,n){var i=n("1626"),r=n("8ea1"),o=r.all;e.exports=r.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:i(e)||e===o}:function(e){return"object"==typeof e?null!==e:i(e)}},"86c6":function(e,t,n){"use strict";var i=n("9bfc").codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}function o(e,t,n,o){var s=r(t,o,n);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0){var a=o?n:"highWaterMark";throw new i(a,s)}return Math.floor(s)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},"86ef":function(e,t,n){"use strict";function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}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){o(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 o(e,t,n){return t=c(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(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 i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,c(i.key),i)}}function l(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=u(e,"string");return"symbol"===typeof t?t:String(t)}function u(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var h=n("1c35"),d=h.Buffer,f=n(9),p=f.inspect,g=p&&p.custom||"inspect";function m(e,t,n){d.prototype.copy.call(e,t,n)}e.exports=function(){function e(){s(this,e),this.head=null,this.tail=null,this.length=0}return l(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";var t=this.head,n=""+t.data;while(t=t.next)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return d.alloc(0);var t=d.allocUnsafe(e>>>0),n=this.head,i=0;while(n)m(n.data,t,i),i+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,i=t.data;e-=i.length;while(t=t.next){var r=t.data,o=e>r.length?r.length:e;if(o===r.length?i+=r:i+=r.slice(0,e),e-=o,0===e){o===r.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=r.slice(o));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(e){var t=d.allocUnsafe(e),n=this.head,i=1;n.data.copy(t),e-=n.data.length;while(n=n.next){var r=n.data,o=e>r.length?r.length:e;if(r.copy(t,t.length-e,0,o),e-=o,0===e){o===r.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=r.slice(o));break}++i}return this.length-=i,t}},{key:g,value:function(e,t){return p(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()},8707:function(e,t,n){
|
||
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||
var i=n("1c35"),r=i.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=i:(o(i,t),t.Buffer=s),s.prototype=Object.create(r.prototype),o(r,s),s.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},s.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"===typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},s.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r(e)},s.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},8728:function(e,t,n){"use strict";function i(e,t,n,i,r,o){if(o>t&&o>i||o<t&&o<i)return 0;if(i===t)return 0;var s=(o-t)/(i-t),a=i<t?1:-1;1!==s&&0!==s||(a=i<t?.5:-.5);var l=s*(n-e)+e;return l===r?1/0:l>r?a:0}n.d(t,"a",(function(){return i}))},"873c":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.title=c;var r=i(n("278c")),o=n("18ad"),s=n("5557"),a=n("9d85"),l=n("becb");function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];t.title&&(n[0]=(0,l.deepMerge)((0,s.deepClone)(a.titleConfig,!0),t.title)),(0,o.doUpdate)({chart:e,series:n,key:"title",getGraphConfig:u})}function u(e,t){var n=a.titleConfig.animationCurve,i=a.titleConfig.animationFrame,r=a.titleConfig.rLevel,o=h(e,t),s=d(e);return[{name:"text",index:r,visible:e.show,animationCurve:n,animationFrame:i,shape:o,style:s}]}function h(e,t){var n=e.offset,i=e.text,o=t.chart.gridArea,s=o.x,a=o.y,l=o.w,c=(0,r["default"])(n,2),u=c[0],h=c[1];return{content:i,position:[s+l/2+u,a+h]}}function d(e){var t=e.style;return t}},"87a3":function(e,t,n){"use strict";n.r(t),n.d(t,"UnusualLineTerminatorsDetector",(function(){return g}));var i=n("dff7"),r=n("a666"),o=n("b2cc"),s=n("5717"),a=n("eafb"),l=n("82c9"),c=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},u=function(e,t){return function(n,i){t(n,i,e)}},h=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const d="ignoreUnusualLineTerminators";function f(e,t,n){e.setModelProperty(t.uri,d,n)}function p(e,t){return e.getModelProperty(t.uri,d)}let g=class extends r["a"]{constructor(e,t,n){super(),this._editor=e,this._dialogService=t,this._codeEditorService=n,this._config=this._editor.getOption(112),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(112)&&(this._config=this._editor.getOption(112),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(e=>{e.isUndoing||this._checkForUnusualLineTerminators()}))}_checkForUnusualLineTerminators(){return h(this,void 0,void 0,(function*(){if("off"===this._config)return;if(!this._editor.hasModel())return;const e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators())return;const t=p(this._codeEditorService,e);if(!0===t)return;if(this._editor.getOption(79))return;if("auto"===this._config)return void e.removeUnusualLineTerminators(this._editor.getSelections());const n=yield this._dialogService.confirm({title:i["a"]("unusualLineTerminators.title","Unusual Line Terminators"),message:i["a"]("unusualLineTerminators.message","Detected unusual line terminators"),detail:i["a"]("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",Object(l["b"])(e.uri)),primaryButton:i["a"]("unusualLineTerminators.fix","Remove Unusual Line Terminators"),secondaryButton:i["a"]("unusualLineTerminators.ignore","Ignore")});n.confirmed?e.removeUnusualLineTerminators(this._editor.getSelections()):f(this._codeEditorService,e,!0)}))}};g.ID="editor.contrib.unusualLineTerminatorsDetector",g=c([u(1,a["a"]),u(2,s["a"])],g),Object(o["l"])(g.ID,g)},"87b1":function(e,t,n){"use strict";var i=n("9ab4"),r=n("cbe5"),o=n("4fac"),s=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),a=function(e){function t(t){return e.call(this,t)||this}return Object(i["a"])(t,e),t.prototype.getDefaultShape=function(){return new s},t.prototype.buildPath=function(e,t){o["a"](e,t,!0)},t}(r["b"]);a.prototype.type="polygon",t["a"]=a},8830:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return w})),n.d(t,"d",(function(){return E})),n.d(t,"c",(function(){return D}));var i=n("dff7"),r=n("308f"),o=n("a666"),s=n("aa3d"),a=n("e8e3"),l=n("fd49"),c=n("62bd"),u=n("fb71"),h=n("0910"),d=n("89cd"),f=n("be5f");const p=new class{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new r["b"],this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))}},g=Object.hasOwnProperty;class m{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class v{constructor(){this._values=[]}_read(e){return this._values[e]}_write(e,t){this._values[e]=t}}class b{static readOptions(e){const t=e,n=new v;for(const i of l["l"]){const e="_never_"===i.name?void 0:t[i.name];n._write(i.id,e)}return n}static validateOptions(e){const t=new l["j"];for(const n of l["l"])t._write(n.id,n.validate(e._read(n.id)));return t}static computeOptions(e,t){const n=new m;for(const i of l["l"])n._write(i.id,i.compute(t,n,e._read(i.id)));return n}static _deepEquals(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))&&a["h"](e,t);for(let n in e)if(!b._deepEquals(e[n],t[n]))return!1;return!0}static checkEquals(e,t){const n=[];let i=!1;for(const r of l["l"]){const o=!b._deepEquals(e._read(r.id),t._read(r.id));n[r.id]=o,o&&(i=!0)}return i?new l["b"](n):null}}function y(e){const t=e.wordWrap;!0===t?e.wordWrap="on":!1===t&&(e.wordWrap="off");const n=e.lineNumbers;!0===n?e.lineNumbers="on":!1===n&&(e.lineNumbers="off");const i=e.autoClosingBrackets;!1===i&&(e.autoClosingBrackets="never",e.autoClosingQuotes="never",e.autoSurround="never");const r=e.cursorBlinking;"visible"===r&&(e.cursorBlinking="solid");const o=e.renderWhitespace;!0===o?e.renderWhitespace="boundary":!1===o&&(e.renderWhitespace="none");const s=e.renderLineHighlight;!0===s?e.renderLineHighlight="line":!1===s&&(e.renderLineHighlight="none");const a=e.acceptSuggestionOnEnter;!0===a?e.acceptSuggestionOnEnter="on":!1===a&&(e.acceptSuggestionOnEnter="off");const l=e.tabCompletion;!1===l?e.tabCompletion="off":!0===l&&(e.tabCompletion="onlySnippets");const c=e.suggest;if(c&&"object"===typeof c.filteredTypes&&c.filteredTypes){const e={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",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"};Object(f["b"])(e,e=>{const t=c.filteredTypes[e.key];!1===t&&(c[e.value]=t)})}const u=e.hover;!0===u?e.hover={enabled:!0}:!1===u&&(e.hover={enabled:!1});const h=e.parameterHints;!0===h?e.parameterHints={enabled:!0}:!1===h&&(e.parameterHints={enabled:!1});const d=e.autoIndent;!0===d?e.autoIndent="full":!1===d&&(e.autoIndent="advanced");const p=e.matchBrackets;!0===p?e.matchBrackets="always":!1===p&&(e.matchBrackets="never")}function _(e){const t=s["b"](e);return y(t),t}class w extends o["a"]{constructor(e,t){super(),this._onDidChange=this._register(new r["b"]),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new r["b"]),this.onDidChangeFast=this._onDidChangeFast.event,this.isSimpleWidget=e,this._isDominatedByLongLines=!1,this._computeOptionsMemory=new l["a"],this._viewLineCount=1,this._lineNumbersDigitCount=1,this._rawOptions=_(t),this._readOptions=b.readOptions(this._rawOptions),this._validatedOptions=b.validateOptions(this._readOptions),this._register(c["a"].onDidChangeZoomLevel(e=>this._recomputeOptions())),this._register(p.onDidChangeTabFocus(e=>this._recomputeOptions()))}observeReferenceElement(e){}updatePixelRatio(){}_recomputeOptions(){const e=this.options,t=this._computeInternalOptions();if(e){const n=b.checkEquals(e,t);if(null===n)return;this.options=t,this._onDidChangeFast.fire(n),this._onDidChange.fire(n)}else this.options=t}getRawOptions(){return this._rawOptions}_computeInternalOptions(){const e=this._getEnvConfiguration(),t=u["a"].createFromValidatedSettings(this._validatedOptions,e.zoomLevel,e.pixelRatio,this.isSimpleWidget),n={memory:this._computeOptionsMemory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,fontInfo:this.readConfiguration(t),extraEditorClassName:e.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:e.emptySelectionClipboard,pixelRatio:e.pixelRatio,tabFocusMode:p.getTabFocusMode(),accessibilitySupport:e.accessibilitySupport};return b.computeOptions(this._validatedOptions,n)}static _subsetEquals(e,t){for(const n in t)if(g.call(t,n)){const i=t[n],r=e[n];if(r===i)continue;if(Array.isArray(r)&&Array.isArray(i)){if(!a["h"](r,i))return!1;continue}if(r&&"object"===typeof r&&i&&"object"===typeof i){if(!this._subsetEquals(r,i))return!1;continue}return!1}return!0}updateOptions(e){if("undefined"===typeof e)return;const t=_(e);w._subsetEquals(this._rawOptions,t)||(this._rawOptions=s["f"](this._rawOptions,t||{}),this._readOptions=b.readOptions(this._rawOptions),this._validatedOptions=b.validateOptions(this._readOptions),this._recomputeOptions())}setIsDominatedByLongLines(e){this._isDominatedByLongLines=e,this._recomputeOptions()}setMaxLineNumber(e){const t=w._digitCount(e);this._lineNumbersDigitCount!==t&&(this._lineNumbersDigitCount=t,this._recomputeOptions())}setViewLineCount(e){this._viewLineCount!==e&&(this._viewLineCount=e,this._recomputeOptions())}static _digitCount(e){let t=0;while(e)e=Math.floor(e/10),t++;return t||1}}const C=Object.freeze({id:"editor",order:5,type:"object",title:i["a"]("editorConfigurationTitle","Editor"),scope:5}),S=d["a"].as(h["a"].Configuration),x=Object.assign(Object.assign({},C),{properties:{"editor.tabSize":{type:"number",default:l["d"].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:l["d"].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:l["d"].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:l["d"].trimAutoWhitespace,description:i["a"]("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:l["d"].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.wordBasedSuggestionsMode":{enum:["currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[i["a"]("wordBasedSuggestionsMode.currentDocument","Only suggest words from the active document."),i["a"]("wordBasedSuggestionsMode.matchingDocuments","Suggest words from all open documents of the same language."),i["a"]("wordBasedSuggestionsMode.allDocuments","Suggest words from all open documents.")],description:i["a"]("wordBasedSuggestionsMode","Controls from which documents word based completions are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[i["a"]("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),i["a"]("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),i["a"]("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",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","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:i["a"]("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:!1,description:i["a"]("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:"inherit",markdownEnumDescriptions:[i["a"]("wordWrap.off","Lines will never wrap."),i["a"]("wordWrap.on","Lines will wrap at the viewport width."),i["a"]("wordWrap.inherit","Lines will wrap according to the `#editor.wordWrap#` setting.")]}}});function O(e){return"undefined"!==typeof e.type||"undefined"!==typeof e.anyOf}for(const I of l["l"]){const e=I.schema;if("undefined"!==typeof e)if(O(e))x.properties["editor."+I.name]=e;else for(let t in e)g.call(e,t)&&(x.properties[t]=e[t])}let k=null;function L(){return null===k&&(k=Object.create(null),Object.keys(x.properties).forEach(e=>{k[e]=!0})),k}function E(e){const t=L();return t["editor."+e]||!1}function D(e){const t=L();return t["diffEditor."+e]||!1}S.registerConfiguration(x)},"887c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.titleConfig=void 0;var i={show:!0,text:"",offset:[0,-20],style:{fill:"#333",fontSize:17,fontWeight:"bold",textAlign:"center",textBaseline:"bottom"},rLevel:20,animationCurve:"easeOutCubic",animationFrame:50};t.titleConfig=i},8899:function(e,t,n){},"88b3":function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l}));var i="\0__throttleOriginMethod",r="\0__throttleRate",o="\0__throttleType";function s(e,t,n){var i,r,o,s,a,l=0,c=0,u=null;function h(){c=(new Date).getTime(),u=null,e.apply(o,s||[])}t=t||0;var d=function(){for(var e=[],d=0;d<arguments.length;d++)e[d]=arguments[d];i=(new Date).getTime(),o=this,s=e;var f=a||t,p=a||n;a=null,r=i-(p?l:c)-f,clearTimeout(u),p?u=setTimeout(h,f):r>=0?h():u=setTimeout(h,-r),l=i};return d.clear=function(){u&&(clearTimeout(u),u=null)},d.debounceNextCall=function(e){a=e},d}function a(e,t,n,a){var l=e[t];if(l){var c=l[i]||l,u=l[o],h=l[r];if(h!==n||u!==a){if(null==n||!a)return e[t]=c;l=e[t]=s(c,n,"debounce"===a),l[i]=c,l[o]=a,l[r]=n}return l}}function l(e,t){var n=e[t];n&&n[i]&&(n.clear&&n.clear(),e[t]=n[i])}},"88b6":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return n.e("chunk-2d22c2b8").then(n.bind(null,"f1a8"))}})},"88d4":function(e,t,n){"use strict";n.d(t,"a",(function(){return A})),n.d(t,"b",(function(){return N})),n.d(t,"d",(function(){return j})),n.d(t,"c",(function(){return F})),n.d(t,"p",(function(){return B})),n.d(t,"q",(function(){return W})),n.d(t,"r",(function(){return V})),n.d(t,"e",(function(){return z})),n.d(t,"j",(function(){return H})),n.d(t,"l",(function(){return U})),n.d(t,"k",(function(){return q})),n.d(t,"n",(function(){return $})),n.d(t,"o",(function(){return K})),n.d(t,"f",(function(){return G})),n.d(t,"g",(function(){return Y})),n.d(t,"m",(function(){return Z})),n.d(t,"h",(function(){return X})),n.d(t,"i",(function(){return Q}));n("7b59");var i=n("11f7"),r=n("5aa5"),o=n("f070"),s=n("ceb8"),a=n("308f"),l=n("aa3d"),c=n("5717"),u=n("d379"),h=(n("b968"),n("70c3")),d=n("9c3e"),f=n("a666"),p=n("6a89"),g=n("b57f");const m=new s["a"](new s["c"](0,122,204)),v={showArrow:!0,showFrame:!0,className:"",frameColor:m,arrowColor:m,keepEditorSelection:!1},b="vs.editor.contrib.zoneWidget";class y{constructor(e,t,n,i,r,o){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=n,this.heightInLines=i,this._onDomNodeTop=r,this._onComputedHeight=o}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}}class _{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class w{constructor(e){this._editor=e,this._ruleName=w._IdGenerator.nextId(),this._decorations=[],this._color=null,this._height=-1}dispose(){this.hide(),i["Q"](this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){i["Q"](this._ruleName),i["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; `)}show(e){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:p["a"].fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._editor.deltaDecorations(this._decorations,[])}}w._IdGenerator=new d["a"](".arrow-decoration-");class C{constructor(e,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["b"](t),l["f"](this.options,v,!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(e=>{const t=this._getWidth(e);this.domNode.style.width=t+"px",this.domNode.style.left=this._getLeft(e)+"px",this._onWidth(t)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this.editor.deltaDecorations(this._positionMarkerId,[]),this._positionMarkerId=[],this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new w(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){let e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){let e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&0===e.minimap.minimapLeft?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){if(this.domNode.style.height=e+"px",this.container){let t=e-this._decoratingElementsHeight();this.container.style.height=t+"px";const n=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(n))}this._resizeSash&&this._resizeSash.layout()}get position(){const[e]=this._positionMarkerId;if(!e)return;const t=this.editor.getModel();if(!t)return;const n=t.getDecorationRange(e);return n?n.getStartPosition():void 0}show(e,t){const n=p["a"].isIRange(e)?p["a"].lift(e):p["a"].fromPositions(e);this._isShowing=!0,this._showImpl(n,t),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:n,options:g["a"].EMPTY}])}hide(){this._viewZone&&(this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()}_decoratingElementsHeight(){let e=this.editor.getOption(57),t=0;if(this.options.showArrow){let n=Math.round(e/3);t+=2*n}if(this.options.showFrame){let n=Math.round(e/9);t+=2*n}return t}_showImpl(e,t){const n=e.getStartPosition(),i=this.editor.getLayoutInfo(),r=this._getWidth(i);this.domNode.style.width=r+"px",this.domNode.style.left=this._getLeft(i)+"px";const o=document.createElement("div");o.style.overflow="hidden";const s=this.editor.getOption(57),a=Math.max(12,this.editor.getLayoutInfo().height/s*.8);t=Math.min(t,a);let l=0,c=0;if(this._arrow&&this.options.showArrow&&(l=Math.round(s/3),this._arrow.height=l,this._arrow.show(n)),this.options.showFrame&&(c=Math.round(s/9)),this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new y(o,n.lineNumber,n.column,t,e=>this._onViewZoneTop(e),e=>this._onViewZoneHeight(e)),this._viewZone.id=e.addZone(this._viewZone),this._overlayWidget=new _(b+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const e=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=e+"px",this.container.style.borderBottomWidth=e+"px"}let u=t*s-this._decoratingElementsHeight();this.container&&(this.container.style.top=l+"px",this.container.style.height=u+"px",this.container.style.overflow="hidden"),this._doLayout(u,r),this.options.keepEditorSelection||this.editor.setSelection(e);const h=this.editor.getModel();if(h){const t=e.endLineNumber+1;t<=h.getLineCount()?this.revealLine(t,!1):this.revealLine(h.getLineCount(),!0)}}revealLine(e,t){t?this.editor.revealLineInCenter(e,0):this.editor.revealLine(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;let e;this._resizeSash=this._disposables.add(new h["b"](this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0),this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{if(e){let n=(t.currentY-e.startY)/this.editor.getOption(57),i=n<0?Math.ceil(n):Math.floor(n),r=e.heightInLines+i;r>5&&r<35&&this._relayout(r)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(null===this.domNode.style.height?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}var S=n("dff7"),x=n("4fc3"),O=n("0a0f"),k=n("f5f3"),L=n("b2cc"),E=n("303e"),D=n("561a"),I=n("7944"),M=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},T=function(e,t){return function(n,i){t(n,i,e)}};const A=Object(O["c"])("IPeekViewService");var N;Object(k["b"])(A,class{constructor(){this._widgets=new Map}addExclusiveWidget(e,t){const n=this._widgets.get(e);n&&(n.listener.dispose(),n.widget.dispose());const i=()=>{const n=this._widgets.get(e);n&&n.widget===t&&(n.listener.dispose(),this._widgets.delete(e))};this._widgets.set(e,{widget:t,listener:t.onDidClose(i)})}}),function(e){e.inPeekEditor=new x["c"]("inReferenceSearchEditor",!0,S["a"]("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),e.notInPeekEditor=e.inPeekEditor.toNegated()}(N||(N={}));let P=class{constructor(e,t){e instanceof u["a"]&&N.inPeekEditor.bindTo(t)}dispose(){}};function j(e){let t=e.get(c["a"]).getFocusedCodeEditor();return t instanceof u["a"]?t.getParentEditor():t}P.ID="editor.contrib.referenceController",P=M([T(1,x["b"])],P),Object(L["l"])(P.ID,P);const R={headerBackgroundColor:s["a"].white,primaryHeadingColor:s["a"].fromHex("#333333"),secondaryHeadingColor:s["a"].fromHex("#6c6c6cb3")};let F=class extends C{constructor(e,t,n){super(e,t),this.instantiationService=n,this._onDidClose=new a["b"],this.onDidClose=this._onDidClose.event,l["f"](this.options,R,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){let t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();let 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())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=i["a"](".head"),this._bodyElement=i["a"](".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){const n=i["a"](".peekview-title");i["q"](this._headElement,n),i["o"](n,"click",e=>this._onTitleClick(e)),this._fillTitleIcon(n),this._primaryHeading=i["a"]("span.filename"),this._secondaryHeading=i["a"]("span.dirname"),this._metaHeading=i["a"]("span.meta"),i["q"](n,this._primaryHeading,this._secondaryHeading,this._metaHeading);const s=i["a"](".peekview-actions");i["q"](this._headElement,s);const a=this._getActionBarOptions();this._actionbarWidget=new r["a"](s,a),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new o["a"]("peekview.close",S["a"]("label.close","Close"),D["b"].close.classNames,!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:I["b"].bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:i["t"](this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,i["W"](this._metaHeading)):i["K"](this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0)return void this.dispose();const n=Math.ceil(1.2*this.editor.getOption(57)),i=Math.round(e-(n+2));this._doLayoutHead(n,t),this._doLayoutBody(i,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=e+"px",this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=e+"px")}};F=M([T(2,O["a"])],F);const B=Object(E["wc"])("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},S["a"]("peekViewTitleBackground","Background color of the peek view title area.")),W=Object(E["wc"])("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},S["a"]("peekViewTitleForeground","Color of the peek view title.")),V=Object(E["wc"])("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},S["a"]("peekViewTitleInfoForeground","Color of the peek view title info.")),z=Object(E["wc"])("peekView.border",{dark:"#007acc",light:"#007acc",hc:E["h"]},S["a"]("peekViewBorder","Color of the peek view borders and arrow.")),H=Object(E["wc"])("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:s["a"].black},S["a"]("peekViewResultsBackground","Background color of the peek view result list.")),U=Object(E["wc"])("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:s["a"].white},S["a"]("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),q=Object(E["wc"])("peekViewResult.fileForeground",{dark:s["a"].white,light:"#1E1E1E",hc:s["a"].white},S["a"]("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),$=Object(E["wc"])("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},S["a"]("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),K=Object(E["wc"])("peekViewResult.selectionForeground",{dark:s["a"].white,light:"#6C6C6C",hc:s["a"].white},S["a"]("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),G=Object(E["wc"])("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:s["a"].black},S["a"]("peekViewEditorBackground","Background color of the peek view editor.")),Y=Object(E["wc"])("peekViewEditorGutter.background",{dark:G,light:G,hc:G},S["a"]("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Z=Object(E["wc"])("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},S["a"]("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),X=Object(E["wc"])("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},S["a"]("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),Q=Object(E["wc"])("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:E["b"]},S["a"]("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},8918:function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return c}));var i=n("6d8b"),r=n("625e"),o=Math.round(10*Math.random());function s(e){return[e||"",o++].join("_")}function a(e){var t={};e.registerSubTypeDefaulter=function(e,n){var i=Object(r["f"])(e);t[i.main]=n},e.determineSubType=function(n,i){var o=i.type;if(!o){var s=Object(r["f"])(n).main;e.hasSubTypes(n)&&t[s]&&(o=t[s](i))}return o}}function l(e,t){function n(e){var n={},s=[];return i["each"](e,(function(a){var l=r(n,a),c=l.originalDeps=t(a),u=o(c,e);l.entryCount=u.length,0===l.entryCount&&s.push(a),i["each"](u,(function(e){i["indexOf"](l.predecessor,e)<0&&l.predecessor.push(e);var t=r(n,e);i["indexOf"](t.successor,e)<0&&t.successor.push(a)}))})),{graph:n,noEntryList:s}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function o(e,t){var n=[];return i["each"](e,(function(e){i["indexOf"](t,e)>=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,r,o){if(e.length){var s=n(t),a=s.graph,l=s.noEntryList,c={};i["each"](e,(function(e){c[e]=!0}));while(l.length){var u=l.pop(),h=a[u],d=!!c[u];d&&(r.call(o,u,h.originalDeps.slice()),delete c[u]),i["each"](h.successor,d?p:f)}i["each"](c,(function(){var e="";throw new Error(e)}))}function f(e){a[e].entryCount--,0===a[e].entryCount&&l.push(e)}function p(e){c[e]=!0,f(e)}}}function c(e,t){return i["merge"](i["merge"]({},e,!0),t,!0)}},"891c":function(e,t,n){"use strict";n.r(t),n.d(t,"getDocumentSymbols",(function(){return h}));var i=n("6d8e"),r=n("1b69"),o=n("2504"),s=n("b78f"),a=n("70f5"),l=n("9e74"),c=n("ef8e"),u=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function h(e,t,n){return u(this,void 0,void 0,(function*(){const i=yield a["a"].create(e,n);return t?i.asListOfDocumentSymbols():i.getTopLevelSymbols()}))}l["a"].registerCommand("_executeDocumentSymbolProvider",(function(e,...t){return u(this,void 0,void 0,(function*(){const[n]=t;Object(c["c"])(i["a"].isUri(n));const a=e.get(r["a"]).getModel(n);if(a)return h(a,!1,o["a"].None);const l=yield e.get(s["a"]).createModelReference(n);try{return yield h(l.object.textEditorModel,!1,o["a"].None)}finally{l.dispose()}}))}))},8925:function(e,t,n){var i=n("e330"),r=n("1626"),o=n("c6cd"),s=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),e.exports=o.inspectSource},"89b6":function(e,t,n){"use strict";n.d(t,"e",(function(){return E})),n.d(t,"c",(function(){return M})),n.d(t,"b",(function(){return T})),n.d(t,"d",(function(){return P})),n.d(t,"a",(function(){return j}));var i=n("dce8"),r=n("cbe5"),o=n("d498"),s=n("20c8"),a=n("857d"),l=n("4a3f"),c=n("6d8b"),u=n("1687"),h=n("401b"),d=n("7d6c"),f=2*Math.PI,p=s["a"].CMD,g=["top","right","bottom","left"];function m(e,t,n,i,r){var o=n.width,s=n.height;switch(e){case"top":i.set(n.x+o/2,n.y-t),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+s+t),r.set(0,1);break;case"left":i.set(n.x-t,n.y+s/2),r.set(-1,0);break;case"right":i.set(n.x+o+t,n.y+s/2),r.set(1,0);break}}function v(e,t,n,i,r,o,s,l,c){s-=e,l-=t;var u=Math.sqrt(s*s+l*l);s/=u,l/=u;var h=s*n+e,d=l*n+t;if(Math.abs(i-r)%f<1e-4)return c[0]=h,c[1]=d,u-n;if(o){var p=i;i=Object(a["a"])(r),r=Object(a["a"])(p)}else i=Object(a["a"])(i),r=Object(a["a"])(r);i>r&&(r+=f);var g=Math.atan2(l,s);if(g<0&&(g+=f),g>=i&&g<=r||g+f>=i&&g+f<=r)return c[0]=h,c[1]=d,u-n;var m=n*Math.cos(i)+e,v=n*Math.sin(i)+t,b=n*Math.cos(r)+e,y=n*Math.sin(r)+t,_=(m-s)*(m-s)+(v-l)*(v-l),w=(b-s)*(b-s)+(y-l)*(y-l);return _<w?(c[0]=m,c[1]=v,Math.sqrt(_)):(c[0]=b,c[1]=y,Math.sqrt(w))}function b(e,t,n,i,r,o,s,a){var l=r-e,c=o-t,u=n-e,h=i-t,d=Math.sqrt(u*u+h*h);u/=d,h/=d;var f=l*u+c*h,p=f/d;a&&(p=Math.min(Math.max(p,0),1)),p*=d;var g=s[0]=e+p*u,m=s[1]=t+p*h;return Math.sqrt((g-r)*(g-r)+(m-o)*(m-o))}function y(e,t,n,i,r,o,s){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i);var a=e+n,l=t+i,c=s[0]=Math.min(Math.max(r,e),a),u=s[1]=Math.min(Math.max(o,t),l);return Math.sqrt((c-r)*(c-r)+(u-o)*(u-o))}var _=[];function w(e,t,n){var i=y(t.x,t.y,t.width,t.height,e.x,e.y,_);return n.set(_[0],_[1]),i}function C(e,t,n){for(var i,r,o=0,s=0,a=0,c=0,u=1/0,h=t.data,d=e.x,f=e.y,g=0;g<h.length;){var m=h[g++];1===g&&(o=h[g],s=h[g+1],a=o,c=s);var w=u;switch(m){case p.M:a=h[g++],c=h[g++],o=a,s=c;break;case p.L:w=b(o,s,h[g],h[g+1],d,f,_,!0),o=h[g++],s=h[g++];break;case p.C:w=Object(l["e"])(o,s,h[g++],h[g++],h[g++],h[g++],h[g],h[g+1],d,f,_),o=h[g++],s=h[g++];break;case p.Q:w=Object(l["l"])(o,s,h[g++],h[g++],h[g],h[g+1],d,f,_),o=h[g++],s=h[g++];break;case p.A:var C=h[g++],S=h[g++],x=h[g++],O=h[g++],k=h[g++],L=h[g++];g+=1;var E=!!(1-h[g++]);i=Math.cos(k)*x+C,r=Math.sin(k)*O+S,g<=1&&(a=i,c=r);var D=(d-C)*O/x+C;w=v(C,S,O,k,k+L,E,D,f,_),o=Math.cos(k+L)*x+C,s=Math.sin(k+L)*O+S;break;case p.R:a=o=h[g++],c=s=h[g++];var I=h[g++],M=h[g++];w=y(a,c,I,M,d,f,_);break;case p.Z:w=b(o,s,a,c,d,f,_,!0),o=a,s=c;break}w<u&&(u=w,n.set(_[0],_[1]))}return u}var S=new i["a"],x=new i["a"],O=new i["a"],k=new i["a"],L=new i["a"];function E(e,t){if(e){var n=e.getTextGuideLine(),o=e.getTextContent();if(o&&n){var s=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],l=s.candidates||g,c=o.getBoundingRect().clone();c.applyTransform(o.getComputedTransform());var h=1/0,d=s.anchor,f=e.getComputedTransform(),p=f&&Object(u["invert"])([],f),v=t.get("length2")||0;d&&O.copy(d);for(var b=0;b<l.length;b++){var y=l[b];m(y,0,c,S,k),i["a"].scaleAndAdd(x,S,k,v),x.transform(p);var _=e.getBoundingRect(),L=d?d.distance(x):e instanceof r["b"]?C(x,e.path,O):w(x,_,O);L<h&&(h=L,x.transform(f),O.transform(f),O.toArray(a[0]),x.toArray(a[1]),S.toArray(a[2]))}M(a,t.get("minTurnAngle")),n.setShape({points:a})}}}var D=[],I=new i["a"];function M(e,t){if(t<=180&&t>0){t=t/180*Math.PI,S.fromArray(e[0]),x.fromArray(e[1]),O.fromArray(e[2]),i["a"].sub(k,S,x),i["a"].sub(L,O,x);var n=k.len(),r=L.len();if(!(n<.001||r<.001)){k.scale(1/n),L.scale(1/r);var o=k.dot(L),s=Math.cos(t);if(s<o){var a=b(x.x,x.y,O.x,O.y,S.x,S.y,D,!1);I.fromArray(D),I.scaleAndAdd(L,a/Math.tan(Math.PI-t));var l=O.x!==x.x?(I.x-x.x)/(O.x-x.x):(I.y-x.y)/(O.y-x.y);if(isNaN(l))return;l<0?i["a"].copy(I,x):l>1&&i["a"].copy(I,O),I.toArray(e[1])}}}}function T(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,S.fromArray(e[0]),x.fromArray(e[1]),O.fromArray(e[2]),i["a"].sub(k,x,S),i["a"].sub(L,O,x);var r=k.len(),o=L.len();if(!(r<.001||o<.001)){k.scale(1/r),L.scale(1/o);var s=k.dot(t),a=Math.cos(n);if(s<a){var l=b(x.x,x.y,O.x,O.y,S.x,S.y,D,!1);I.fromArray(D);var c=Math.PI/2,u=Math.acos(L.dot(t)),h=c+u-n;if(h>=c)i["a"].copy(I,O);else{I.scaleAndAdd(L,l/Math.tan(Math.PI/2-h));var d=O.x!==x.x?(I.x-x.x)/(O.x-x.x):(I.y-x.y)/(O.y-x.y);if(isNaN(d))return;d<0?i["a"].copy(I,x):d>1&&i["a"].copy(I,O)}I.toArray(e[1])}}}}function A(e,t,n,i){var r="normal"===n,o=r?e:e.ensureState(n);o.ignore=t;var s=i.get("smooth");s&&!0===s&&(s=.3),o.shape=o.shape||{},s>0&&(o.shape.smooth=s);var a=i.getModel("lineStyle").getLineStyle();r?e.useStyle(a):o.style=a}function N(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=h["dist"](i[0],i[1]),o=h["dist"](i[1],i[2]);if(!r||!o)return e.lineTo(i[1][0],i[1][1]),void e.lineTo(i[2][0],i[2][1]);var s=Math.min(r,o)*n,a=h["lerp"]([],i[1],i[0],s/r),l=h["lerp"]([],i[1],i[2],s/o),c=h["lerp"]([],a,l,.5);e.bezierCurveTo(a[0],a[1],a[0],a[1],c[0],c[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var u=1;u<i.length;u++)e.lineTo(i[u][0],i[u][1])}function P(e,t,n){var i=e.getTextGuideLine(),r=e.getTextContent();if(r){for(var s=t.normal,a=s.get("show"),l=r.ignore,u=0;u<d["a"].length;u++){var h=d["a"][u],f=t[h],p="normal"===h;if(f){var g=f.get("show"),m=p?l:Object(c["retrieve2"])(r.states[h]&&r.states[h].ignore,l);if(m||!Object(c["retrieve2"])(g,a)){var v=p?i:i&&i.states[h];v&&(v.ignore=!0),i&&A(i,!0,h,f);continue}i||(i=new o["a"],e.setTextGuideLine(i),p||!l&&a||A(i,!0,"normal",t.normal),e.stateProxy&&(i.stateProxy=e.stateProxy)),A(i,!1,h,f)}}if(i){Object(c["defaults"])(i.style,n),i.style.fill=null;var b=s.get("showAbove"),y=e.textGuideLineConfig=e.textGuideLineConfig||{};y.showAbove=b||!1,i.buildPath=N}}else i&&e.removeTextGuideLine()}function j(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},i=0;i<d["g"].length;i++){var r=d["g"][i];n[r]=e.getModel([r,t])}return n}},"89cd":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("ef8e"),r=n("1569");class o{constructor(){this.data=new Map}add(e,t){r["a"](i["k"](e)),r["a"](i["j"](t)),r["a"](!this.data.has(e),"There is already an extension with this id"),this.data.set(e,t)}as(e){return this.data.get(e)||null}}const s=new o},"89e3":function(e,t,n){"use strict";var i=n("9ab4"),r=n("3842"),o=n("eda2"),s=n("e0d8"),a=n("944e"),l=r["w"],c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return Object(i["a"])(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return a["a"](e,this._extent)},t.prototype.normalize=function(e){return a["f"](e,this._extent)},t.prototype.scale=function(e){return a["g"](e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=a["b"](e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!t)return o;var s=1e4;n[0]<i[0]&&(e?o.push({value:l(i[0]-t,r)}):o.push({value:n[0]}));var a=i[0];while(a<=i[1]){if(o.push({value:a}),a=l(a+t,r),a===o[o.length-1].value)break;if(o.length>s)return[]}var c=o.length?o[o.length-1].value:i[1];return n[1]>c&&(e?o.push({value:l(c+t,r)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<t.length;r++){var o=t[r],s=t[r-1],a=0,c=[],u=o.value-s.value,h=u/e;while(a<e-1){var d=l(s.value+(a+1)*h);d>i[0]&&d<i[1]&&c.push(d),a++}n.push(c)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;null==n?n=r["h"](e.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=l(e.value,n,!0);return o["a"](i)},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=a["d"](i,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var i=t[1]-t[0];isFinite(i)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=l(Math.floor(t[0]/r)*r)),e.fixMax||(t[1]=l(Math.ceil(t[1]/r)*r))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(s["a"]);s["a"].registerClass(c),t["a"]=c},"8a0d":function(e,t){e.exports={}},"8a1d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeColor=s;var i=n("9d85"),r=n("5557"),o=n("becb");function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,r.deepClone)(i.colorConfig,!0),s=t.color,a=t.series;if(a||(a=[]),s||(s=[]),t.color=s=(0,o.deepMerge)(n,s),a.length){var l=s.length;a.forEach((function(e,t){e.color||(e.color=s[t%l])}));var c=a.filter((function(e){var t=e.type;return"pie"===t}));c.forEach((function(e){return e.data.forEach((function(e,t){return e.color=s[t%l]}))}));var u=a.filter((function(e){var t=e.type;return"gauge"===t}));u.forEach((function(e){return e.data.forEach((function(e,t){return e.color=s[t%l]}))}));var h=a.filter((function(e){var t=e.type,n=e.independentColor;return"bar"===t&&n}));h.forEach((function(e){e.independentColors||(e.independentColors=s)}))}}},"8a3f":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:function(){return n.e("chunk-2d2295e9").then(n.bind(null,"dcc7"))}})},"8aa5":function(e,t,n){"use strict";var i=n("6547").charAt;e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},"8ae8":function(e,t,n){"use strict";function i(e){return e&&"string"===typeof e.id}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));const r={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},"8b1a":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},"8b4e":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var i=n("dff7");class r{constructor(e,t,n=t){this.modifierLabels=[null],this.modifierLabels[2]=e,this.modifierLabels[1]=t,this.modifierLabels[3]=n}toLabel(e,t,n){if(0===t.length)return null;const i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],s=n(o);if(null===s)return null;i[r]=a(o,s,this.modifierLabels[e])}return i.join(" ")}}const o=new r({ctrlKey:"⌃",shiftKey:"⇧",altKey:"⌥",metaKey:"⌘",separator:""},{ctrlKey:i["a"]({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:i["a"]({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:i["a"]({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:i["a"]({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:i["a"]({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:i["a"]({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:i["a"]({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:i["a"]({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),s=new r({ctrlKey:i["a"]({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:i["a"]({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:i["a"]({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:i["a"]({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:i["a"]({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:i["a"]({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:i["a"]({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:i["a"]({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:i["a"]({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:i["a"]({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:i["a"]({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:i["a"]({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function a(e,t,n){if(null===t)return"";const i=[];return e.ctrlKey&&i.push(n.ctrlKey),e.shiftKey&&i.push(n.shiftKey),e.altKey&&i.push(n.altKey),e.metaKey&&i.push(n.metaKey),""!==t&&i.push(t),i.join(n.separator)}},"8bf1":function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u}));var i=n("4dc7"),r=n("b707");class o{clone(){return this}equals(e){return this===e}}const s=new o,a="vs.editor.nullMode",l=new r["u"](a,0);function c(e,t,n,r){return new i["b"]([new i["a"](r,"",e)],n)}function u(e,t,n,r){let o=new Uint32Array(2);return o[0]=r,o[1]=(16384|e<<0|2<<23)>>>0,new i["c"](o,null===n?s:n)}},"8bf4":function(e,t,n){},"8c02":function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"e",(function(){return v})),n.d(t,"b",(function(){return b}));var i=n("3742"),r=n("e6ff"),o=n("7061"),s=n("6a89"),a=n("3352");const l=999;class c{constructor(e,t,n,i){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=i}parseSearchRequest(){if(""===this.searchString)return null;let e;e=this.isRegex?u(this.searchString):this.searchString.indexOf("\n")>=0;let t=null;try{t=i["q"](this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch(o){return null}if(!t)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new h(t,this.wordSeparators?Object(r["a"])(this.wordSeparators):null,n?this.searchString:null)}}function u(e){if(!e||0===e.length)return!1;for(let t=0,n=e.length;t<n;t++){const i=e.charCodeAt(t);if(92===i){if(t++,t>=n)break;const i=e.charCodeAt(t);if(110===i||114===i||87===i||119===i)return!0}}return!1}class h{constructor(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}function d(e,t,n){if(!n)return new a["b"](e,null);let i=[];for(let r=0,o=t.length;r<o;r++)i[r]=t[r];return new a["b"](e,i)}class f{constructor(e){let t=[],n=0;for(let i=0,r=e.length;i<r;i++)10===e.charCodeAt(i)&&(t[n++]=i);this._lineFeedsOffsets=t}findLineFeedCountBeforeOffset(e){const t=this._lineFeedsOffsets;let n=0,i=t.length-1;if(-1===i)return 0;if(e<=t[0])return 0;while(n<i){const r=n+((i-n)/2>>0);t[r]>=e?i=r-1:t[r+1]>=e?(n=r,i=r):n=r+1}return n+1}}class p{static findMatches(e,t,n,i,r){const o=t.parseSearchRequest();return o?o.regex.multiline?this._doFindMatchesMultiline(e,n,new b(o.wordSeparators,o.regex),i,r):this._doFindMatchesLineByLine(e,n,o,i,r):[]}static _getMultilineMatchRange(e,t,n,i,r,o){let a,l,c=0;if(i?(c=i.findLineFeedCountBeforeOffset(r),a=t+r+c):a=t+r,i){let e=i.findLineFeedCountBeforeOffset(r+o.length),t=e-c;l=a+o.length+t}else l=a+o.length;const u=e.getPositionAt(a),h=e.getPositionAt(l);return new s["a"](u.lineNumber,u.column,h.lineNumber,h.column)}static _doFindMatchesMultiline(e,t,n,i,r){const o=e.getOffsetAt(t.getStartPosition()),s=e.getValueInRange(t,1),a="\r\n"===e.getEOL()?new f(s):null,l=[];let c,u=0;n.reset(0);while(c=n.next(s))if(l[u++]=d(this._getMultilineMatchRange(e,o,s,a,c.index,c[0]),c,i),u>=r)return l;return l}static _doFindMatchesLineByLine(e,t,n,i,r){const o=[];let s=0;if(t.startLineNumber===t.endLineNumber){const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return s=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,s,o,i,r),o}const a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,s,o,i,r);for(let l=t.startLineNumber+1;l<t.endLineNumber&&s<r;l++)s=this._findMatchesInLine(n,e.getLineContent(l),l,0,s,o,i,r);if(s<r){const a=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);s=this._findMatchesInLine(n,a,t.endLineNumber,0,s,o,i,r)}return o}static _findMatchesInLine(e,t,n,i,r,o,l,c){const u=e.wordSeparators;if(!l&&e.simpleSearch){const l=e.simpleSearch,h=l.length,d=t.length;let f=-h;while(-1!==(f=t.indexOf(l,f+h)))if((!u||v(u,t,d,f,h))&&(o[r++]=new a["b"](new s["a"](n,f+1+i,n,f+1+h+i),null),r>=c))return r;return r}const h=new b(e.wordSeparators,e.regex);let f;h.reset(0);do{if(f=h.next(t),f&&(o[r++]=d(new s["a"](n,f.index+1+i,n,f.index+1+f[0].length+i),f,l),r>=c))return r}while(f);return r}static findNextMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const o=new b(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,n,o,i):this._doFindNextMatchLineByLine(e,n,o,i)}static _doFindNextMatchMultiline(e,t,n,i){const r=new o["a"](t.lineNumber,1),a=e.getOffsetAt(r),l=e.getLineCount(),c=e.getValueInRange(new s["a"](r.lineNumber,r.column,l,e.getLineMaxColumn(l)),1),u="\r\n"===e.getEOL()?new f(c):null;n.reset(t.column-1);let h=n.next(c);return h?d(this._getMultilineMatchRange(e,a,c,u,h.index,h[0]),h,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new o["a"](1,1),n,i):null}static _doFindNextMatchLineByLine(e,t,n,i){const r=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o),a=this._findFirstMatchInLine(n,s,o,t.column,i);if(a)return a;for(let l=1;l<=r;l++){const t=(o+l-1)%r,s=e.getLineContent(t+1),a=this._findFirstMatchInLine(n,s,t+1,1,i);if(a)return a}return null}static _findFirstMatchInLine(e,t,n,i,r){e.reset(i-1);const o=e.next(t);return o?d(new s["a"](n,o.index+1,n,o.index+1+o[0].length),o,r):null}static findPreviousMatch(e,t,n,i){const r=t.parseSearchRequest();if(!r)return null;const o=new b(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,n,o,i):this._doFindPreviousMatchLineByLine(e,n,o,i)}static _doFindPreviousMatchMultiline(e,t,n,i){const r=this._doFindMatchesMultiline(e,new s["a"](1,1,t.lineNumber,t.column),n,i,10*l);if(r.length>0)return r[r.length-1];const a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new o["a"](a,e.getLineMaxColumn(a)),n,i):null}static _doFindPreviousMatchLineByLine(e,t,n,i){const r=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o).substring(0,t.column-1),a=this._findLastMatchInLine(n,s,o,i);if(a)return a;for(let l=1;l<=r;l++){const t=(r+o-l-1)%r,s=e.getLineContent(t+1),a=this._findLastMatchInLine(n,s,t+1,i);if(a)return a}return null}static _findLastMatchInLine(e,t,n,i){let r,o=null;e.reset(0);while(r=e.next(t))o=d(new s["a"](n,r.index+1,n,r.index+1+r[0].length),r,i);return o}}function g(e,t,n,i,r){if(0===i)return!0;const o=t.charCodeAt(i-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(r>0){const n=t.charCodeAt(i);if(0!==e.get(n))return!0}return!1}function m(e,t,n,i,r){if(i+r===n)return!0;const o=t.charCodeAt(i+r);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(r>0){const n=t.charCodeAt(i+r-1);if(0!==e.get(n))return!0}return!1}function v(e,t,n,i,r){return g(e,t,n,i,r)&&m(e,t,n,i,r)}class b{constructor(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const t=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(n=this._searchRegex.exec(e),!n)return null;const r=n.index,o=n[0].length;if(r===this._prevMatchStartIndex&&o===this._prevMatchLength){if(0===o){i["A"](e,t,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=o,!this._wordSeparators||v(this._wordSeparators,e,t,r,o))return n}while(n);return null}}},"8c10":function(e,t){function n(e,t){var n,i=null;try{n=JSON.parse(e,t)}catch(r){i=r}return[i,n]}e.exports=n},"8c4f":function(e,t,n){"use strict";
|
||
/*!
|
||
* vue-router v3.4.9
|
||
* (c) 2020 Evan You
|
||
* @license MIT
|
||
*/function i(e,t){0}function r(e,t){for(var n in t)e[n]=t[n];return e}var o=/[!'()*]/g,s=function(e){return"%"+e.charCodeAt(0).toString(16)},a=/%2C/g,l=function(e){return encodeURIComponent(e).replace(o,s).replace(a,",")};function c(e){try{return decodeURIComponent(e)}catch(t){0}return e}function u(e,t,n){void 0===t&&(t={});var i,r=n||d;try{i=r(e||"")}catch(a){i={}}for(var o in t){var s=t[o];i[o]=Array.isArray(s)?s.map(h):h(s)}return i}var h=function(e){return null==e||"object"===typeof e?e:String(e)};function d(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),i=c(n.shift()),r=n.length>0?c(n.join("=")):null;void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]})),t):t}function f(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return l(t);if(Array.isArray(n)){var i=[];return n.forEach((function(e){void 0!==e&&(null===e?i.push(l(t)):i.push(l(t)+"="+l(e)))})),i.join("&")}return l(t)+"="+l(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var p=/\/?$/;function g(e,t,n,i){var r=i&&i.options.stringifyQuery,o=t.query||{};try{o=m(o)}catch(a){}var s={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:y(t,r),matched:e?b(e):[]};return n&&(s.redirectedFrom=y(n,r)),Object.freeze(s)}function m(e){if(Array.isArray(e))return e.map(m);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=m(e[n]);return t}return e}var v=g(null,{path:"/"});function b(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function y(e,t){var n=e.path,i=e.query;void 0===i&&(i={});var r=e.hash;void 0===r&&(r="");var o=t||f;return(n||"/")+o(i)+r}function _(e,t){return t===v?e===t:!!t&&(e.path&&t.path?e.path.replace(p,"")===t.path.replace(p,"")&&e.hash===t.hash&&w(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&w(e.query,t.query)&&w(e.params,t.params)))}function w(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),i=Object.keys(t).sort();return n.length===i.length&&n.every((function(n,r){var o=e[n],s=i[r];if(s!==n)return!1;var a=t[n];return null==o||null==a?o===a:"object"===typeof o&&"object"===typeof a?w(o,a):String(o)===String(a)}))}function C(e,t){return 0===e.path.replace(p,"/").indexOf(t.path.replace(p,"/"))&&(!t.hash||e.hash===t.hash)&&S(e.query,t.query)}function S(e,t){for(var n in t)if(!(n in e))return!1;return!0}function x(e){for(var t=0;t<e.matched.length;t++){var n=e.matched[t];for(var i in n.instances){var r=n.instances[i],o=n.enteredCbs[i];if(r&&o){delete n.enteredCbs[i];for(var s=0;s<o.length;s++)r._isBeingDestroyed||o[s](r)}}}}var O={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,i=t.children,o=t.parent,s=t.data;s.routerView=!0;var a=o.$createElement,l=n.name,c=o.$route,u=o._routerViewCache||(o._routerViewCache={}),h=0,d=!1;while(o&&o._routerRoot!==o){var f=o.$vnode?o.$vnode.data:{};f.routerView&&h++,f.keepAlive&&o._directInactive&&o._inactive&&(d=!0),o=o.$parent}if(s.routerViewDepth=h,d){var p=u[l],g=p&&p.component;return g?(p.configProps&&k(g,s,p.route,p.configProps),a(g,s,i)):a()}var m=c.matched[h],v=m&&m.components[l];if(!m||!v)return u[l]=null,a();u[l]={component:v},s.registerRouteInstance=function(e,t){var n=m.instances[l];(t&&n!==e||!t&&n===e)&&(m.instances[l]=t)},(s.hook||(s.hook={})).prepatch=function(e,t){m.instances[l]=t.componentInstance},s.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==m.instances[l]&&(m.instances[l]=e.componentInstance),x(c)};var b=m.props&&m.props[l];return b&&(r(u[l],{route:c,configProps:b}),k(v,s,c,b)),a(v,s,i)}};function k(e,t,n,i){var o=t.props=L(n,i);if(o){o=t.props=r({},o);var s=t.attrs=t.attrs||{};for(var a in o)e.props&&a in e.props||(s[a]=o[a],delete o[a])}}function L(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}function E(e,t,n){var i=e.charAt(0);if("/"===i)return e;if("?"===i||"#"===i)return t+e;var r=t.split("/");n&&r[r.length-1]||r.pop();for(var o=e.replace(/^\//,"").split("/"),s=0;s<o.length;s++){var a=o[s];".."===a?r.pop():"."!==a&&r.push(a)}return""!==r[0]&&r.unshift(""),r.join("/")}function D(e){var t="",n="",i=e.indexOf("#");i>=0&&(t=e.slice(i),e=e.slice(0,i));var r=e.indexOf("?");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{path:e,query:n,hash:t}}function I(e){return e.replace(/\/\//g,"/")}var M=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},T=X,A=F,N=B,P=z,j=Z,R=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function F(e,t){var n,i=[],r=0,o=0,s="",a=t&&t.delimiter||"/";while(null!=(n=R.exec(e))){var l=n[0],c=n[1],u=n.index;if(s+=e.slice(o,u),o=u+l.length,c)s+=c[1];else{var h=e[o],d=n[2],f=n[3],p=n[4],g=n[5],m=n[6],v=n[7];s&&(i.push(s),s="");var b=null!=d&&null!=h&&h!==d,y="+"===m||"*"===m,_="?"===m||"*"===m,w=n[2]||a,C=p||g;i.push({name:f||r++,prefix:d||"",delimiter:w,optional:_,repeat:y,partial:b,asterisk:!!v,pattern:C?U(C):v?".*":"[^"+H(w)+"]+?"})}}return o<e.length&&(s+=e.substr(o)),s&&i.push(s),i}function B(e,t){return z(F(e,t),t)}function W(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function V(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function z(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",$(t)));return function(t,i){for(var r="",o=t||{},s=i||{},a=s.pretty?W:encodeURIComponent,l=0;l<e.length;l++){var c=e[l];if("string"!==typeof c){var u,h=o[c.name];if(null==h){if(c.optional){c.partial&&(r+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(M(h)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var d=0;d<h.length;d++){if(u=a(h[d]),!n[l].test(u))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(u)+"`");r+=(0===d?c.prefix:c.delimiter)+u}}else{if(u=c.asterisk?V(h):a(h),!n[l].test(u))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+u+'"');r+=c.prefix+u}}else r+=c}return r}}function H(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function U(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function q(e,t){return e.keys=t,e}function $(e){return e&&e.sensitive?"":"i"}function K(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)t.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return q(e,t)}function G(e,t,n){for(var i=[],r=0;r<e.length;r++)i.push(X(e[r],t,n).source);var o=new RegExp("(?:"+i.join("|")+")",$(n));return q(o,t)}function Y(e,t,n){return Z(F(e,n),t,n)}function Z(e,t,n){M(t)||(n=t||n,t=[]),n=n||{};for(var i=n.strict,r=!1!==n.end,o="",s=0;s<e.length;s++){var a=e[s];if("string"===typeof a)o+=H(a);else{var l=H(a.prefix),c="(?:"+a.pattern+")";t.push(a),a.repeat&&(c+="(?:"+l+c+")*"),c=a.optional?a.partial?l+"("+c+")?":"(?:"+l+"("+c+"))?":l+"("+c+")",o+=c}}var u=H(n.delimiter||"/"),h=o.slice(-u.length)===u;return i||(o=(h?o.slice(0,-u.length):o)+"(?:"+u+"(?=$))?"),o+=r?"$":i&&h?"":"(?="+u+"|$)",q(new RegExp("^"+o,$(n)),t)}function X(e,t,n){return M(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?K(e,t):M(e)?G(e,t,n):Y(e,t,n)}T.parse=A,T.compile=N,T.tokensToFunction=P,T.tokensToRegExp=j;var Q=Object.create(null);function J(e,t,n){t=t||{};try{var i=Q[e]||(Q[e]=T.compile(e));return"string"===typeof t.pathMatch&&(t[0]=t.pathMatch),i(t,{pretty:!0})}catch(r){return""}finally{delete t[0]}}function ee(e,t,n,i){var o="string"===typeof e?{path:e}:e;if(o._normalized)return o;if(o.name){o=r({},e);var s=o.params;return s&&"object"===typeof s&&(o.params=r({},s)),o}if(!o.path&&o.params&&t){o=r({},o),o._normalized=!0;var a=r(r({},t.params),o.params);if(t.name)o.name=t.name,o.params=a;else if(t.matched.length){var l=t.matched[t.matched.length-1].path;o.path=J(l,a,"path "+t.path)}else 0;return o}var c=D(o.path||""),h=t&&t.path||"/",d=c.path?E(c.path,h,n||o.append):h,f=u(c.query,o.query,i&&i.options.parseQuery),p=o.hash||c.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:d,query:f,hash:p}}var te,ne=[String,Object],ie=[String,Array],re=function(){},oe={name:"RouterLink",props:{to:{type:ne,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:ie,default:"click"}},render:function(e){var t=this,n=this.$router,i=this.$route,o=n.resolve(this.to,i,this.append),s=o.location,a=o.route,l=o.href,c={},u=n.options.linkActiveClass,h=n.options.linkExactActiveClass,d=null==u?"router-link-active":u,f=null==h?"router-link-exact-active":h,p=null==this.activeClass?d:this.activeClass,m=null==this.exactActiveClass?f:this.exactActiveClass,v=a.redirectedFrom?g(null,ee(a.redirectedFrom),null,n):a;c[m]=_(i,v),c[p]=this.exact?c[m]:C(i,v);var b=c[m]?this.ariaCurrentValue:null,y=function(e){se(e)&&(t.replace?n.replace(s,re):n.push(s,re))},w={click:se};Array.isArray(this.event)?this.event.forEach((function(e){w[e]=y})):w[this.event]=y;var S={class:c},x=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:l,route:a,navigate:y,isActive:c[p],isExactActive:c[m]});if(x){if(1===x.length)return x[0];if(x.length>1||!x.length)return 0===x.length?e():e("span",{},x)}if("a"===this.tag)S.on=w,S.attrs={href:l,"aria-current":b};else{var O=ae(this.$slots.default);if(O){O.isStatic=!1;var k=O.data=r({},O.data);for(var L in k.on=k.on||{},k.on){var E=k.on[L];L in w&&(k.on[L]=Array.isArray(E)?E:[E])}for(var D in w)D in k.on?k.on[D].push(w[D]):k.on[D]=y;var I=O.data.attrs=r({},O.data.attrs);I.href=l,I["aria-current"]=b}else S.on=w}return e(this.tag,S,this.$slots.default)}};function se(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ae(e){if(e)for(var t,n=0;n<e.length;n++){if(t=e[n],"a"===t.tag)return t;if(t.children&&(t=ae(t.children)))return t}}function le(e){if(!le.installed||te!==e){le.installed=!0,te=e;var t=function(e){return void 0!==e},n=function(e,n){var i=e.$options._parentVnode;t(i)&&t(i=i.data)&&t(i=i.registerRouteInstance)&&i(e,n)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",O),e.component("RouterLink",oe);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}}var ce="undefined"!==typeof window;function ue(e,t,n,i){var r=t||[],o=n||Object.create(null),s=i||Object.create(null);e.forEach((function(e){he(r,o,s,e)}));for(var a=0,l=r.length;a<l;a++)"*"===r[a]&&(r.push(r.splice(a,1)[0]),l--,a--);return{pathList:r,pathMap:o,nameMap:s}}function he(e,t,n,i,r,o){var s=i.path,a=i.name;var l=i.pathToRegexpOptions||{},c=fe(s,r,l.strict);"boolean"===typeof i.caseSensitive&&(l.sensitive=i.caseSensitive);var u={path:c,regex:de(c,l),components:i.components||{default:i.component},instances:{},enteredCbs:{},name:a,parent:r,matchAs:o,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};if(i.children&&i.children.forEach((function(i){var r=o?I(o+"/"+i.path):void 0;he(e,t,n,i,u,r)})),t[u.path]||(e.push(u.path),t[u.path]=u),void 0!==i.alias)for(var h=Array.isArray(i.alias)?i.alias:[i.alias],d=0;d<h.length;++d){var f=h[d];0;var p={path:f,children:i.children};he(e,t,n,p,r,u.path||"/")}a&&(n[a]||(n[a]=u))}function de(e,t){var n=T(e,[],t);return n}function fe(e,t,n){return n||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:I(t.path+"/"+e)}function pe(e,t){var n=ue(e),i=n.pathList,r=n.pathMap,o=n.nameMap;function s(e){ue(e,i,r,o)}function a(e,n,s){var a=ee(e,n,!1,t),l=a.name;if(l){var c=o[l];if(!c)return u(null,a);var h=c.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!==typeof a.params&&(a.params={}),n&&"object"===typeof n.params)for(var d in n.params)!(d in a.params)&&h.indexOf(d)>-1&&(a.params[d]=n.params[d]);return a.path=J(c.path,a.params,'named route "'+l+'"'),u(c,a,s)}if(a.path){a.params={};for(var f=0;f<i.length;f++){var p=i[f],g=r[p];if(ge(g.regex,a.path,a.params))return u(g,a,s)}}return u(null,a)}function l(e,n){var i=e.redirect,r="function"===typeof i?i(g(e,n,null,t)):i;if("string"===typeof r&&(r={path:r}),!r||"object"!==typeof r)return u(null,n);var s=r,l=s.name,c=s.path,h=n.query,d=n.hash,f=n.params;if(h=s.hasOwnProperty("query")?s.query:h,d=s.hasOwnProperty("hash")?s.hash:d,f=s.hasOwnProperty("params")?s.params:f,l){o[l];return a({_normalized:!0,name:l,query:h,hash:d,params:f},void 0,n)}if(c){var p=me(c,e),m=J(p,f,'redirect route with path "'+p+'"');return a({_normalized:!0,path:m,query:h,hash:d},void 0,n)}return u(null,n)}function c(e,t,n){var i=J(n,t.params,'aliased route with path "'+n+'"'),r=a({_normalized:!0,path:i});if(r){var o=r.matched,s=o[o.length-1];return t.params=r.params,u(s,t)}return u(null,t)}function u(e,n,i){return e&&e.redirect?l(e,i||n):e&&e.matchAs?c(e,n,e.matchAs):g(e,n,i,t)}return{match:a,addRoutes:s}}function ge(e,t,n){var i=t.match(e);if(!i)return!1;if(!n)return!0;for(var r=1,o=i.length;r<o;++r){var s=e.keys[r-1];s&&(n[s.name||"pathMatch"]="string"===typeof i[r]?c(i[r]):i[r])}return!0}function me(e,t){return E(e,t.parent?t.parent.path:"/",!0)}var ve=ce&&window.performance&&window.performance.now?window.performance:Date;function be(){return ve.now().toFixed(3)}var ye=be();function _e(){return ye}function we(e){return ye=e}var Ce=Object.create(null);function Se(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),n=r({},window.history.state);return n.key=_e(),window.history.replaceState(n,"",t),window.addEventListener("popstate",ke),function(){window.removeEventListener("popstate",ke)}}function xe(e,t,n,i){if(e.app){var r=e.options.scrollBehavior;r&&e.app.$nextTick((function(){var o=Le(),s=r.call(e,t,n,i?o:null);s&&("function"===typeof s.then?s.then((function(e){Ne(e,o)})).catch((function(e){0})):Ne(s,o))}))}}function Oe(){var e=_e();e&&(Ce[e]={x:window.pageXOffset,y:window.pageYOffset})}function ke(e){Oe(),e.state&&e.state.key&&we(e.state.key)}function Le(){var e=_e();if(e)return Ce[e]}function Ee(e,t){var n=document.documentElement,i=n.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:r.left-i.left-t.x,y:r.top-i.top-t.y}}function De(e){return Te(e.x)||Te(e.y)}function Ie(e){return{x:Te(e.x)?e.x:window.pageXOffset,y:Te(e.y)?e.y:window.pageYOffset}}function Me(e){return{x:Te(e.x)?e.x:0,y:Te(e.y)?e.y:0}}function Te(e){return"number"===typeof e}var Ae=/^#\d/;function Ne(e,t){var n="object"===typeof e;if(n&&"string"===typeof e.selector){var i=Ae.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(i){var r=e.offset&&"object"===typeof e.offset?e.offset:{};r=Me(r),t=Ee(i,r)}else De(e)&&(t=Ie(e))}else n&&De(e)&&(t=Ie(e));t&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,behavior:e.behavior}):window.scrollTo(t.x,t.y))}var Pe=ce&&function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"function"===typeof window.history.pushState)}();function je(e,t){Oe();var n=window.history;try{if(t){var i=r({},n.state);i.key=_e(),n.replaceState(i,"",e)}else n.pushState({key:we(be())},"",e)}catch(o){window.location[t?"replace":"assign"](e)}}function Re(e){je(e,!0)}function Fe(e,t,n){var i=function(r){r>=e.length?n():e[r]?t(e[r],(function(){i(r+1)})):i(r+1)};i(0)}var Be={redirected:2,aborted:4,cancelled:8,duplicated:16};function We(e,t){return Ue(e,t,Be.redirected,'Redirected when going from "'+e.fullPath+'" to "'+$e(t)+'" via a navigation guard.')}function Ve(e,t){var n=Ue(e,t,Be.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function ze(e,t){return Ue(e,t,Be.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function He(e,t){return Ue(e,t,Be.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function Ue(e,t,n,i){var r=new Error(i);return r._isRouter=!0,r.from=e,r.to=t,r.type=n,r}var qe=["params","query","hash"];function $e(e){if("string"===typeof e)return e;if("path"in e)return e.path;var t={};return qe.forEach((function(n){n in e&&(t[n]=e[n])})),JSON.stringify(t,null,2)}function Ke(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function Ge(e,t){return Ke(e)&&e._isRouter&&(null==t||e.type===t)}function Ye(e){return function(t,n,i){var r=!1,o=0,s=null;Ze(e,(function(e,t,n,a){if("function"===typeof e&&void 0===e.cid){r=!0,o++;var l,c=et((function(t){Je(t)&&(t=t.default),e.resolved="function"===typeof t?t:te.extend(t),n.components[a]=t,o--,o<=0&&i()})),u=et((function(e){var t="Failed to resolve async component "+a+": "+e;s||(s=Ke(e)?e:new Error(t),i(s))}));try{l=e(c,u)}catch(d){u(d)}if(l)if("function"===typeof l.then)l.then(c,u);else{var h=l.component;h&&"function"===typeof h.then&&h.then(c,u)}}})),r||i()}}function Ze(e,t){return Xe(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Xe(e){return Array.prototype.concat.apply([],e)}var Qe="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Je(e){return e.__esModule||Qe&&"Module"===e[Symbol.toStringTag]}function et(e){var t=!1;return function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];if(!t)return t=!0,e.apply(this,n)}}var tt=function(e,t){this.router=e,this.base=nt(t),this.current=v,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function nt(e){if(!e)if(ce){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function it(e,t){var n,i=Math.max(e.length,t.length);for(n=0;n<i;n++)if(e[n]!==t[n])break;return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}function rt(e,t,n,i){var r=Ze(e,(function(e,i,r,o){var s=ot(e,t);if(s)return Array.isArray(s)?s.map((function(e){return n(e,i,r,o)})):n(s,i,r,o)}));return Xe(i?r.reverse():r)}function ot(e,t){return"function"!==typeof e&&(e=te.extend(e)),e.options[t]}function st(e){return rt(e,"beforeRouteLeave",lt,!0)}function at(e){return rt(e,"beforeRouteUpdate",lt)}function lt(e,t){if(t)return function(){return e.apply(t,arguments)}}function ct(e){return rt(e,"beforeRouteEnter",(function(e,t,n,i){return ut(e,n,i)}))}function ut(e,t,n){return function(i,r,o){return e(i,r,(function(e){"function"===typeof e&&(t.enteredCbs[n]||(t.enteredCbs[n]=[]),t.enteredCbs[n].push(e)),o(e)}))}}tt.prototype.listen=function(e){this.cb=e},tt.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},tt.prototype.onError=function(e){this.errorCbs.push(e)},tt.prototype.transitionTo=function(e,t,n){var i,r=this;try{i=this.router.match(e,this.current)}catch(s){throw this.errorCbs.forEach((function(e){e(s)})),s}var o=this.current;this.confirmTransition(i,(function(){r.updateRoute(i),t&&t(i),r.ensureURL(),r.router.afterHooks.forEach((function(e){e&&e(i,o)})),r.ready||(r.ready=!0,r.readyCbs.forEach((function(e){e(i)})))}),(function(e){n&&n(e),e&&!r.ready&&(Ge(e,Be.redirected)&&o===v||(r.ready=!0,r.readyErrorCbs.forEach((function(t){t(e)}))))}))},tt.prototype.confirmTransition=function(e,t,n){var r=this,o=this.current;this.pending=e;var s=function(e){!Ge(e)&&Ke(e)&&(r.errorCbs.length?r.errorCbs.forEach((function(t){t(e)})):(i(!1,"uncaught error during route navigation:"),console.error(e))),n&&n(e)},a=e.matched.length-1,l=o.matched.length-1;if(_(e,o)&&a===l&&e.matched[a]===o.matched[l])return this.ensureURL(),s(Ve(o,e));var c=it(this.current.matched,e.matched),u=c.updated,h=c.deactivated,d=c.activated,f=[].concat(st(h),this.router.beforeHooks,at(u),d.map((function(e){return e.beforeEnter})),Ye(d)),p=function(t,n){if(r.pending!==e)return s(ze(o,e));try{t(e,o,(function(t){!1===t?(r.ensureURL(!0),s(He(o,e))):Ke(t)?(r.ensureURL(!0),s(t)):"string"===typeof t||"object"===typeof t&&("string"===typeof t.path||"string"===typeof t.name)?(s(We(o,e)),"object"===typeof t&&t.replace?r.replace(t):r.push(t)):n(t)}))}catch(i){s(i)}};Fe(f,p,(function(){var n=ct(d),i=n.concat(r.router.resolveHooks);Fe(i,p,(function(){if(r.pending!==e)return s(ze(o,e));r.pending=null,t(e),r.router.app&&r.router.app.$nextTick((function(){x(e)}))}))}))},tt.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},tt.prototype.setupListeners=function(){},tt.prototype.teardown=function(){this.listeners.forEach((function(e){e()})),this.listeners=[],this.current=v,this.pending=null};var ht=function(e){function t(t,n){e.call(this,t,n),this._startLocation=dt(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,i=Pe&&n;i&&this.listeners.push(Se());var r=function(){var n=e.current,r=dt(e.base);e.current===v&&r===e._startLocation||e.transitionTo(r,(function(e){i&&xe(t,e,n,!0)}))};window.addEventListener("popstate",r),this.listeners.push((function(){window.removeEventListener("popstate",r)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var i=this,r=this,o=r.current;this.transitionTo(e,(function(e){je(I(i.base+e.fullPath)),xe(i.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this,r=this,o=r.current;this.transitionTo(e,(function(e){Re(I(i.base+e.fullPath)),xe(i.router,e,o,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(dt(this.base)!==this.current.fullPath){var t=I(this.base+this.current.fullPath);e?je(t):Re(t)}},t.prototype.getCurrentLocation=function(){return dt(this.base)},t}(tt);function dt(e){var t=window.location.pathname;return e&&0===t.toLowerCase().indexOf(e.toLowerCase())&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var ft=function(e){function t(t,n,i){e.call(this,t,n),i&&pt(this.base)||gt()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,i=Pe&&n;i&&this.listeners.push(Se());var r=function(){var t=e.current;gt()&&e.transitionTo(mt(),(function(n){i&&xe(e.router,n,t,!0),Pe||yt(n.fullPath)}))},o=Pe?"popstate":"hashchange";window.addEventListener(o,r),this.listeners.push((function(){window.removeEventListener(o,r)}))}},t.prototype.push=function(e,t,n){var i=this,r=this,o=r.current;this.transitionTo(e,(function(e){bt(e.fullPath),xe(i.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this,r=this,o=r.current;this.transitionTo(e,(function(e){yt(e.fullPath),xe(i.router,e,o,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;mt()!==t&&(e?bt(t):yt(t))},t.prototype.getCurrentLocation=function(){return mt()},t}(tt);function pt(e){var t=dt(e);if(!/^\/#/.test(t))return window.location.replace(I(e+"/#"+t)),!0}function gt(){var e=mt();return"/"===e.charAt(0)||(yt("/"+e),!1)}function mt(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function vt(e){var t=window.location.href,n=t.indexOf("#"),i=n>=0?t.slice(0,n):t;return i+"#"+e}function bt(e){Pe?je(vt(e)):window.location.hash=e}function yt(e){Pe?Re(vt(e)):window.location.replace(vt(e))}var _t=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index+1).concat(e),i.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,(function(){var e=t.current;t.index=n,t.updateRoute(i),t.router.afterHooks.forEach((function(t){t&&t(i,e)}))}),(function(e){Ge(e,Be.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(tt),wt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=pe(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Pe&&!1!==e.fallback,this.fallback&&(t="hash"),ce||(t="abstract"),this.mode=t,t){case"history":this.history=new ht(this,e.base);break;case"hash":this.history=new ft(this,e.base,this.fallback);break;case"abstract":this.history=new _t(this,e.base);break;default:0}},Ct={currentRoute:{configurable:!0}};function St(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function xt(e,t,n){var i="hash"===n?"#"+t:t;return e?I(e+"/"+i):i}wt.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},Ct.currentRoute.get=function(){return this.history&&this.history.current},wt.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof ht||n instanceof ft){var i=function(e){var i=n.current,r=t.options.scrollBehavior,o=Pe&&r;o&&"fullPath"in e&&xe(t,e,i,!1)},r=function(e){n.setupListeners(),i(e)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},wt.prototype.beforeEach=function(e){return St(this.beforeHooks,e)},wt.prototype.beforeResolve=function(e){return St(this.resolveHooks,e)},wt.prototype.afterEach=function(e){return St(this.afterHooks,e)},wt.prototype.onReady=function(e,t){this.history.onReady(e,t)},wt.prototype.onError=function(e){this.history.onError(e)},wt.prototype.push=function(e,t,n){var i=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){i.history.push(e,t,n)}));this.history.push(e,t,n)},wt.prototype.replace=function(e,t,n){var i=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){i.history.replace(e,t,n)}));this.history.replace(e,t,n)},wt.prototype.go=function(e){this.history.go(e)},wt.prototype.back=function(){this.go(-1)},wt.prototype.forward=function(){this.go(1)},wt.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},wt.prototype.resolve=function(e,t,n){t=t||this.history.current;var i=ee(e,t,n,this),r=this.match(i,t),o=r.redirectedFrom||r.fullPath,s=this.history.base,a=xt(s,o,this.mode);return{location:i,route:r,href:a,normalizedTo:i,resolved:r}},wt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==v&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(wt.prototype,Ct),wt.install=le,wt.version="3.4.9",wt.isNavigationFailure=Ge,wt.NavigationFailureType=Be,ce&&window.Vue&&window.Vue.use(wt),t["a"]=wt},"8d1d":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("6d8b");function r(e,t){return e&&"solid"!==e&&t>0?"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:Object(i["isNumber"])(e)?[e]:Object(i["isArray"])(e)?e:null:null}function o(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&r(t.lineDash,t.lineWidth),o=t.lineDashOffset;if(n){var s=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;s&&1!==s&&(n=Object(i["map"])(n,(function(e){return e/s})),o/=s)}return[n,o]}},"8d32":function(e,t,n){"use strict";var i=n("9ab4"),r=n("cbe5"),o=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),s=function(e){function t(t){return e.call(this,t)||this}return Object(i["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r,0),o=t.startAngle,s=t.endAngle,a=t.clockwise,l=Math.cos(o),c=Math.sin(o);e.moveTo(l*r+n,c*r+i),e.arc(n,i,r,o,s,!a)},t}(r["b"]);s.prototype.type="arc",t["a"]=s},"8d5c":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return n.e("chunk-2d0e1fbe").then(n.bind(null,"7d83"))}})},"8df4":function(e,t,n){"use strict";var i=n("7a77");function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,i=n._listeners.length;for(t=0;t<i;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,i=new Promise((function(e){n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},r.source=function(){var e,t=new r((function(t){e=t}));return{token:t,cancel:e}},e.exports=r},"8e43":function(e,t,n){"use strict";var i=n("6d8b"),r=0,o=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++r}return e.createByAxisModel=function(t){var n=t.option,r=n.data,o=r&&Object(i["map"])(r,s);return new e({categories:o,needCollect:!o,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!Object(i["isString"])(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return t=r.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(i["createHashMap"])(this.categories))},e}();function s(e){return Object(i["isObject"])(e)&&null!=e.value?e.value:e+""}t["a"]=o},"8ea1":function(e,t){var n="object"==typeof document&&document.all,i="undefined"==typeof n&&void 0!==n;e.exports={all:n,IS_HTMLDDA:i}},"8ea9":function(e,t,n){"use strict";n.r(t);n("cf78"),n("f570"),n("a79b"),n("7367"),n("2cd0");var i=n("f8a4");for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r)},"8eb6":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return n.e("chunk-2d21f327").then(n.bind(null,"d995"))}})},"8eb7":function(e,t){var n,i,r,o,s,a,l,c,u,h,d,f,p,g,m,v=!1;function b(){if(!v){v=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),b=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(f=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),h=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),m=/Mobile/i.exec(e),d=!!/Win64/.exec(e),t){n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(e);a=y?parseFloat(y[1])+4:n,i=t[2]?parseFloat(t[2]):NaN,r=t[3]?parseFloat(t[3]):NaN,o=t[4]?parseFloat(t[4]):NaN,o?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),s=t&&t[1]?parseFloat(t[1]):NaN):s=NaN}else n=i=r=s=o=NaN;if(b){if(b[1]){var _=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);l=!_||parseFloat(_[1].replace("_","."))}else l=!1;c=!!b[2],u=!!b[3]}else l=c=u=!1}}var y={ie:function(){return b()||n},ieCompatibilityMode:function(){return b()||a>n},ie64:function(){return y.ie()&&d},firefox:function(){return b()||i},opera:function(){return b()||r},webkit:function(){return b()||o},safari:function(){return y.webkit()},chrome:function(){return b()||s},windows:function(){return b()||c},osx:function(){return b()||l},linux:function(){return b()||u},iphone:function(){return b()||f},mobile:function(){return b()||f||p||h||m},nativeApp:function(){return b()||g},android:function(){return b()||h},ipad:function(){return b()||p}};e.exports=y},"8f47":function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.transition=l,t.injectNewCurve=w,t["default"]=void 0;var r=i(n("278c")),o=i(n("7037")),s=i(n("df83")),a="linear";function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!c.apply(void 0,arguments))return!1;try{var o=u(e),s=h(o,i);return r&&"number"!==typeof n?_(t,n,s):m(t,n,s)}catch(a){return console.warn("Transition parameter may be abnormal!"),[n]}}function c(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30;if(!e||!1===t||!1===n||!i)return console.error("transition: Missing Parameters!"),!1;if((0,o["default"])(t)!==(0,o["default"])(n))return console.error("transition: Inconsistent Status Types!"),!1;var r=(0,o["default"])(n);return"string"!==r&&"boolean"!==r&&e.length?(s["default"].has(e)||e instanceof Array||console.warn("transition: Transition curve not found, default curve will be used!"),!0):(console.error("transition: Unsupported Data Type of State!"),!1)}function u(e){var t="";return t=s["default"].has(e)?s["default"].get(e):e instanceof Array?e:s["default"].get(a),t}function h(e,t){var n=1/(t-1),i=new Array(t).fill(0).map((function(e,t){return t*n})),r=i.map((function(t){return d(e,t)}));return r}function d(e,t){var n=f(e,t),i=p(n,t);return g(n,i)}function f(e,t){var n=e.length-1,i="",r="";e.findIndex((function(o,s){if(s!==n){i=o,r=e[s+1];var a=i[0][0],l=r[0][0];return t>=a&&t<l}}));var o=i[0],s=i[2]||i[0],a=r[1]||r[0],l=r[0];return[o,s,a,l]}function p(e,t){var n=e[0][0],i=e[3][0],r=i-n,o=t-n;return o/r}function g(e,t){var n=(0,r["default"])(e,4),i=(0,r["default"])(n[0],2),o=i[1],s=(0,r["default"])(n[1],2),a=s[1],l=(0,r["default"])(n[2],2),c=l[1],u=(0,r["default"])(n[3],2),h=u[1],d=Math.pow,f=1-t,p=o*d(f,3),g=3*a*t*d(f,2),m=3*c*d(t,2)*f,v=h*d(t,3);return 1-(p+g+m+v)}function m(e,t,n){var i="object";return"number"===typeof e&&(i="number"),e instanceof Array&&(i="array"),"number"===i?v(e,t,n):"array"===i?b(e,t,n):"object"===i?y(e,t,n):n.map((function(e){return t}))}function v(e,t,n){var i=t-e;return n.map((function(t){return e+i*t}))}function b(e,t,n){var i=t.map((function(t,n){return"number"===typeof t&&t-e[n]}));return n.map((function(n){return i.map((function(i,r){return!1===i?t[r]:e[r]+i*n}))}))}function y(e,t,n){var i=Object.keys(t),r=i.map((function(t){return e[t]})),o=i.map((function(e){return t[e]})),s=b(r,o,n);return s.map((function(e){var t={};return e.forEach((function(e,n){return t[i[n]]=e})),t}))}function _(e,t,n){var i=m(e,t,n),r=function(r){var s=e[r],a=t[r];if("object"!==(0,o["default"])(a))return"continue";var l=_(s,a,n);i.forEach((function(e,t){return e[r]=l[t]}))};for(var s in t)r(s);return i}function w(e,t){e&&t?s["default"].set(e,t):console.error("InjectNewCurve Missing Parameters!")}var C=l;t["default"]=C},"8f6a":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return n.e("chunk-2d208ac5").then(n.bind(null,"a693"))}})},"90d8":function(e,t,n){var i=n("c65b"),r=n("1a2d"),o=n("3a9b"),s=n("ad6d"),a=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in a||r(e,"flags")||!o(a,e)?t:i(s,e)}},"90e3":function(e,t,n){var i=n("e330"),r=0,o=Math.random(),s=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++r+o,36)}},9112:function(e,t,n){var i=n("83ab"),r=n("9bf2"),o=n("5c6c");e.exports=i?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9141:function(e,t,n){var i=n("ef08").document;e.exports=i&&i.documentElement},9152:function(e,t){
|
||
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||
t.read=function(e,t,n,i,r){var o,s,a=8*r-i-1,l=(1<<a)-1,c=l>>1,u=-7,h=n?r-1:0,d=n?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-u)-1,f>>=-u,u+=a;u>0;o=256*o+e[t+h],h+=d,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=i;u>0;s=256*s+e[t+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,i),o-=c}return(f?-1:1)*s*Math.pow(2,o-i)},t.write=function(e,t,n,i,r,o){var s,a,l,c=8*o-r-1,u=(1<<c)-1,h=u>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:o-1,p=i?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),t+=s+h>=1?d/l:d*Math.pow(2,1-h),t*l>=2&&(s++,l/=2),s+h>=u?(a=0,s=u):s+h>=1?(a=(t*l-1)*Math.pow(2,r),s+=h):(a=t*Math.pow(2,h-1)*Math.pow(2,r),s=0));r>=8;e[n+f]=255&a,f+=p,a/=256,r-=8);for(s=s<<r|a,c+=r;c>0;e[n+f]=255&s,f+=p,s/=256,c-=8);e[n+f-p]|=128*g}},"918c":function(e,t,n){"use strict";n.d(t,"i",(function(){return a})),n.d(t,"j",(function(){return l})),n.d(t,"g",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"h",(function(){return m})),n.d(t,"a",(function(){return v})),n.d(t,"k",(function(){return b})),n.d(t,"b",(function(){return _})),n.d(t,"n",(function(){return w})),n.d(t,"e",(function(){return C})),n.d(t,"c",(function(){return S})),n.d(t,"d",(function(){return x})),n.d(t,"m",(function(){return O})),n.d(t,"l",(function(){return k})),n.d(t,"o",(function(){return E})),n.d(t,"p",(function(){return D})),n.d(t,"q",(function(){return I})),n.d(t,"r",(function(){return M})),n.d(t,"u",(function(){return A})),n.d(t,"s",(function(){return N})),n.d(t,"v",(function(){return P})),n.d(t,"t",(function(){return j}));var i=n("dff7"),r=n("ceb8"),o=n("303e"),s=n("b7d0");const a=Object(o["wc"])("editor.lineHighlightBackground",{dark:null,light:null,hc:null},i["a"]("lineHighlight","Background color for the highlight of line at the cursor position.")),l=Object(o["wc"])("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},i["a"]("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),c=Object(o["wc"])("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},i["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(o["wc"])("editor.rangeHighlightBorder",{dark:null,light:null,hc:o["b"]},i["a"]("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),h=Object(o["wc"])("editor.symbolHighlightBackground",{dark:o["x"],light:o["x"],hc:null},i["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),d=Object(o["wc"])("editor.symbolHighlightBorder",{dark:null,light:null,hc:o["b"]},i["a"]("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),f=Object(o["wc"])("editorCursor.foreground",{dark:"#AEAFAD",light:r["a"].black,hc:r["a"].white},i["a"]("caret","Color of the editor cursor.")),p=Object(o["wc"])("editorCursor.background",null,i["a"]("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),g=Object(o["wc"])("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},i["a"]("editorWhitespaces","Color of whitespace characters in the editor.")),m=Object(o["wc"])("editorIndentGuide.background",{dark:g,light:g,hc:g},i["a"]("editorIndentGuides","Color of the editor indentation guides.")),v=Object(o["wc"])("editorIndentGuide.activeBackground",{dark:g,light:g,hc:g},i["a"]("editorActiveIndentGuide","Color of the active editor indentation guides.")),b=Object(o["wc"])("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:r["a"].white},i["a"]("editorLineNumbers","Color of editor line numbers.")),y=Object(o["wc"])("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:o["b"]},i["a"]("editorActiveLineNumber","Color of editor active line number"),!1,i["a"]("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),_=Object(o["wc"])("editorLineNumber.activeForeground",{dark:y,light:y,hc:y},i["a"]("editorActiveLineNumber","Color of editor active line number")),w=Object(o["wc"])("editorRuler.foreground",{dark:"#5A5A5A",light:r["a"].lightgrey,hc:r["a"].white},i["a"]("editorRuler","Color of the editor rulers.")),C=Object(o["wc"])("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hc:"#999999"},i["a"]("editorCodeLensForeground","Foreground color of editor CodeLens")),S=Object(o["wc"])("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},i["a"]("editorBracketMatchBackground","Background color behind matching brackets")),x=Object(o["wc"])("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:o["h"]},i["a"]("editorBracketMatchBorder","Color for matching brackets boxes")),O=Object(o["wc"])("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},i["a"]("editorOverviewRulerBorder","Color of the overview ruler border.")),k=Object(o["wc"])("editorOverviewRuler.background",null,i["a"]("editorOverviewRulerBackground","Background color of the editor overview ruler. Only used when the minimap is enabled and placed on the right side of the editor.")),L=Object(o["wc"])("editorGutter.background",{dark:o["r"],light:o["r"],hc:o["r"]},i["a"]("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),E=Object(o["wc"])("editorUnnecessaryCode.border",{dark:null,light:null,hc:r["a"].fromHex("#fff").transparent(.8)},i["a"]("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),D=Object(o["wc"])("editorUnnecessaryCode.opacity",{dark:r["a"].fromHex("#000a"),light:r["a"].fromHex("#0007"),hc:null},i["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.")),I=Object(o["wc"])("editorGhostText.border",{dark:null,light:null,hc:r["a"].fromHex("#fff").transparent(.8)},i["a"]("editorGhostTextBorder","Border color of ghost text in the editor.")),M=Object(o["wc"])("editorGhostText.foreground",{dark:r["a"].fromHex("#ffffff56"),light:r["a"].fromHex("#0007"),hc:null},i["a"]("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),T=new r["a"](new r["c"](0,122,204,.6)),A=Object(o["wc"])("editorOverviewRuler.rangeHighlightForeground",{dark:T,light:T,hc:T},i["a"]("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),N=Object(o["wc"])("editorOverviewRuler.errorForeground",{dark:new r["a"](new r["c"](255,18,18,.7)),light:new r["a"](new r["c"](255,18,18,.7)),hc:new r["a"](new r["c"](255,50,50,1))},i["a"]("overviewRuleError","Overview ruler marker color for errors.")),P=Object(o["wc"])("editorOverviewRuler.warningForeground",{dark:o["X"],light:o["X"],hc:o["W"]},i["a"]("overviewRuleWarning","Overview ruler marker color for warnings.")),j=Object(o["wc"])("editorOverviewRuler.infoForeground",{dark:o["M"],light:o["M"],hc:o["L"]},i["a"]("overviewRuleInfo","Overview ruler marker color for infos."));Object(s["f"])((e,t)=>{const n=e.getColor(o["r"]);n&&t.addRule(`.monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: ${n}; }`);const i=e.getColor(o["B"]);i&&t.addRule(`.monaco-editor, .monaco-editor .inputarea.ime-input { color: ${i}; }`);const r=e.getColor(L);r&&t.addRule(`.monaco-editor .margin { background-color: ${r}; }`);const s=e.getColor(c);s&&t.addRule(`.monaco-editor .rangeHighlight { background-color: ${s}; }`);const a=e.getColor(u);a&&t.addRule(`.monaco-editor .rangeHighlight { border: 1px ${"hc"===e.type?"dotted":"solid"} ${a}; }`);const l=e.getColor(h);l&&t.addRule(`.monaco-editor .symbolHighlight { background-color: ${l}; }`);const f=e.getColor(d);f&&t.addRule(`.monaco-editor .symbolHighlight { border: 1px ${"hc"===e.type?"dotted":"solid"} ${f}; }`);const p=e.getColor(g);p&&(t.addRule(`.monaco-editor .mtkw { color: ${p} !important; }`),t.addRule(`.monaco-editor .mtkz { color: ${p} !important; }`))})},"91d3":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return n.e("chunk-772fee43").then(n.bind(null,"dd504"))}})},9263:function(e,t,n){"use strict";var i=n("c65b"),r=n("e330"),o=n("577e"),s=n("ad6d"),a=n("9f7f"),l=n("5692"),c=n("7c73"),u=n("69f3").get,h=n("fce3"),d=n("107c"),f=l("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,g=p,m=r("".charAt),v=r("".indexOf),b=r("".replace),y=r("".slice),_=function(){var e=/a/,t=/b*/g;return i(p,e,"a"),i(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),w=a.BROKEN_CARET,C=void 0!==/()??/.exec("")[1],S=_||C||w||h||d;S&&(g=function(e){var t,n,r,a,l,h,d,S=this,x=u(S),O=o(e),k=x.raw;if(k)return k.lastIndex=S.lastIndex,t=i(g,k,O),S.lastIndex=k.lastIndex,t;var L=x.groups,E=w&&S.sticky,D=i(s,S),I=S.source,M=0,T=O;if(E&&(D=b(D,"y",""),-1===v(D,"g")&&(D+="g"),T=y(O,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==m(O,S.lastIndex-1))&&(I="(?: "+I+")",T=" "+T,M++),n=new RegExp("^(?:"+I+")",D)),C&&(n=new RegExp("^"+I+"$(?!\\s)",D)),_&&(r=S.lastIndex),a=i(p,E?n:S,T),E?a?(a.input=y(a.input,M),a[0]=y(a[0],M),a.index=S.lastIndex,S.lastIndex+=a[0].length):S.lastIndex=0:_&&a&&(S.lastIndex=S.global?a.index+a[0].length:r),C&&a&&a.length>1&&i(f,a[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)})),a&&L)for(a.groups=h=c(null),l=0;l<L.length;l++)d=L[l],h[d[0]]=a[d[1]];return a}),e.exports=g},"92a6":function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var i=n("5fe7"),r=n("ceb8"),o=n("fdcc"),s=n("eda7"),a=n("a666"),l=n("b2cc"),c=n("5717"),u=n("6a89"),h=n("b57f"),d=n("b707"),f=n("6483"),p=n("fbba"),g=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},m=function(e,t){return function(n,i){t(n,i,e)}};const v=500;let b=class e extends a["a"]{constructor(e,t,n){super(),this._editor=e,this._codeEditorService=t,this._configurationService=n,this._localToDispose=this._register(new a["b"]),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=[],this._decorationsTypes=new Set,this._register(e.onDidChangeModel(()=>{this._isEnabled=this.isEnabled(),this.onModelChanged()})),this._register(e.onDidChangeModelLanguage(()=>this.onModelChanged())),this._register(d["c"].onDidChange(()=>this.onModelChanged())),this._register(e.onDidChangeConfiguration(()=>{let e=this._isEnabled;this._isEnabled=this.isEnabled(),e!==this._isEnabled&&(this._isEnabled?this.onModelChanged():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isEnabled=this.isEnabled(),this.onModelChanged()}isEnabled(){const e=this._editor.getModel();if(!e)return!1;const t=e.getLanguageIdentifier(),n=this._configurationService.getValue(t.language);if(n&&"object"===typeof n){const e=n["colorDecorators"];if(e&&void 0!==e["enable"]&&!e["enable"])return e["enable"]}return this._editor.getOption(15)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}onModelChanged(){if(this.stop(),!this._isEnabled)return;const t=this._editor.getModel();t&&d["c"].has(t)&&(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new i["g"],this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},e.RECOMPUTE_TIME))})),this.beginCompute())}beginCompute(){this._computePromise=Object(i["h"])(e=>{const t=this._editor.getModel();return t?Object(f["b"])(t,e):Promise.resolve([])}),this._computePromise.then(e=>{this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null},o["e"])}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){const t=e.map(e=>({range:{startLineNumber:e.colorInfo.range.startLineNumber,startColumn:e.colorInfo.range.startColumn,endLineNumber:e.colorInfo.range.endLineNumber,endColumn:e.colorInfo.range.endColumn},options:h["a"].EMPTY}));this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((t,n)=>this._colorDatas.set(t,e[n]))}updateColorDecorators(e){let t=[],n={};for(let i=0;i<e.length&&t.length<v;i++){const{red:o,green:a,blue:l,alpha:c}=e[i].colorInfo.color,u=new r["c"](Math.round(255*o),Math.round(255*a),Math.round(255*l),c);let h=Object(s["b"])(`rgba(${u.r},${u.g},${u.b},${u.a})`).toString(16),d=`rgba(${u.r}, ${u.g}, ${u.b}, ${u.a})`,f="colorBox-"+h;this._decorationsTypes.has(f)||n[f]||this._codeEditorService.registerDecorationType("color-detector-color",f,{before:{contentText:" ",border:"solid 0.1em #000",margin:"0.1em 0.2em 0 0.2em",width:"0.8em",height:"0.8em",backgroundColor:d},dark:{before:{border:"solid 0.1em #eee"}}},void 0,this._editor),n[f]=!0,t.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(f,!0)})}this._decorationsTypes.forEach(e=>{n[e]||this._codeEditorService.removeDecorationType(e)}),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,t)}removeAllDecorations(){this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,[]),this._colorDecoratorIds=this._editor.deltaDecorations(this._colorDecoratorIds,[]),this._decorationsTypes.forEach(e=>{this._codeEditorService.removeDecorationType(e)})}getColorData(e){const t=this._editor.getModel();if(!t)return null;const n=t.getDecorationsInRange(u["a"].fromPositions(e,e)).filter(e=>this._colorDatas.has(e.id));return 0===n.length?null:this._colorDatas.get(n[0].id)}};b.ID="editor.contrib.colorDetector",b.RECOMPUTE_TIME=1e3,b=g([m(1,c["a"]),m(2,p["a"])],b),Object(l["l"])(b.ID,b)},"92f0":function(e,t,n){var i=n("1a14").f,r=n("9c0e"),o=n("cc15")("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,o)&&i(e,o,{configurable:!0,value:t})}},"92fa":function(e,t){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function i(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,t){var r,o,s,a,l;for(s in t)if(r=e[s],o=t[s],r&&n.test(s))if("class"===s&&("string"===typeof r&&(l=r,e[s]=r={},r[l]=!0),"string"===typeof o&&(l=o,t[s]=o={},o[l]=!0)),"on"===s||"nativeOn"===s||"hook"===s)for(a in o)r[a]=i(r[a],o[a]);else if(Array.isArray(r))e[s]=r.concat(o);else if(Array.isArray(o))e[s]=[r].concat(o);else for(a in o)r[a]=o[a];else e[s]=t[s];return e}),{})}},"930f":function(e,t,n){},9339:function(e,t,n){(function(t){
|
||
/*!
|
||
* Quill Editor v1.3.7
|
||
* https://quilljs.com/
|
||
* Copyright (c) 2014, Jason Chen
|
||
* Copyright (c) 2013, salesforce.com
|
||
*/
|
||
(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),r=n(18),o=n(19),s=n(45),a=n(46),l=n(47),c=n(48),u=n(49),h=n(12),d=n(32),f=n(33),p=n(31),g=n(1),m={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:i.default,Format:r.default,Leaf:o.default,Embed:c.default,Scroll:s.default,Block:l.default,Inline:a.default,Text:u.default,Attributor:{Attribute:h.default,Class:d.default,Style:f.default,Store:p.default}};t.default=m},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t){var n=this;return t="[Parchment] "+t,n=e.call(this,t)||this,n.message=t,n.name=n.constructor.name,n}return i(t,e),t}(Error);t.ParchmentError=r;var o,s={},a={},l={},c={};function u(e,t){var n=d(e);if(null==n)throw new r("Unable to create "+e+" blot");var i=n,o=e instanceof Node||e["nodeType"]===Node.TEXT_NODE?e:i.create(t);return new i(o,t)}function h(e,n){return void 0===n&&(n=!1),null==e?null:null!=e[t.DATA_KEY]?e[t.DATA_KEY].blot:n?h(e.parentNode,n):null}function d(e,t){var n;if(void 0===t&&(t=o.ANY),"string"===typeof e)n=c[e]||s[e];else if(e instanceof Text||e["nodeType"]===Node.TEXT_NODE)n=c["text"];else if("number"===typeof e)e&o.LEVEL&o.BLOCK?n=c["block"]:e&o.LEVEL&o.INLINE&&(n=c["inline"]);else if(e instanceof HTMLElement){var i=(e.getAttribute("class")||"").split(/\s+/);for(var r in i)if(n=a[i[r]],n)break;n=n||l[e.tagName]}return null==n?null:t&o.LEVEL&n.scope&&t&o.TYPE&n.scope?n:null}function f(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e.length>1)return e.map((function(e){return f(e)}));var n=e[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new r("Invalid definition");if("abstract"===n.blotName)throw new r("Cannot register abstract class");if(c[n.blotName||n.attrName]=n,"string"===typeof n.keyName)s[n.keyName]=n;else if(null!=n.className&&(a[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var i=Array.isArray(n.tagName)?n.tagName:[n.tagName];i.forEach((function(e){null!=l[e]&&null!=n.className||(l[e]=n)}))}return n}t.DATA_KEY="__blot",function(e){e[e["TYPE"]=3]="TYPE",e[e["LEVEL"]=12]="LEVEL",e[e["ATTRIBUTE"]=13]="ATTRIBUTE",e[e["BLOT"]=14]="BLOT",e[e["INLINE"]=7]="INLINE",e[e["BLOCK"]=11]="BLOCK",e[e["BLOCK_BLOT"]=10]="BLOCK_BLOT",e[e["INLINE_BLOT"]=6]="INLINE_BLOT",e[e["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",e[e["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",e[e["ANY"]=15]="ANY"}(o=t.Scope||(t.Scope={})),t.create=u,t.find=h,t.query=d,t.register=f},function(e,t,n){var i=n(51),r=n(11),o=n(3),s=n(20),a=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype["delete"]=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=o(!0,{},e),"object"===typeof n){if("number"===typeof e["delete"]&&"number"===typeof n["delete"])return this.ops[t-1]={delete:n["delete"]+e["delete"]},this;if("number"===typeof n["delete"]&&null!=e.insert&&(t-=1,n=this.ops[t-1],"object"!==typeof n))return this.ops.unshift(e),this;if(r(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(i){var r=e(i)?t:n;r.push(i)})),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+s.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+s.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!==typeof t&&(t=1/0);var n=[],i=s.iterator(this.ops),r=0;while(r<t&&i.hasNext()){var o;r<e?o=i.next(e-r):(o=i.next(t-r),n.push(o)),r+=s.length(o)}return new l(n)},l.prototype.compose=function(e){var t=s.iterator(this.ops),n=s.iterator(e.ops),i=[],o=n.peek();if(null!=o&&"number"===typeof o.retain&&null==o.attributes){var a=o.retain;while("insert"===t.peekType()&&t.peekLength()<=a)a-=t.peekLength(),i.push(t.next());o.retain-a>0&&n.next(o.retain-a)}var c=new l(i);while(t.hasNext()||n.hasNext())if("insert"===n.peekType())c.push(n.next());else if("delete"===t.peekType())c.push(t.next());else{var u=Math.min(t.peekLength(),n.peekLength()),h=t.next(u),d=n.next(u);if("number"===typeof d.retain){var f={};"number"===typeof h.retain?f.retain=u:f.insert=h.insert;var p=s.attributes.compose(h.attributes,d.attributes,"number"===typeof h.retain);if(p&&(f.attributes=p),c.push(f),!n.hasNext()&&r(c.ops[c.ops.length-1],f)){var g=new l(t.rest());return c.concat(g).chop()}}else"number"===typeof d["delete"]&&"number"===typeof h.retain&&c.push(d)}return c.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:a;var i=t===e?"on":"with";throw new Error("diff() called "+i+" non-document")})).join("")})),o=new l,c=i(n[0],n[1],t),u=s.iterator(this.ops),h=s.iterator(e.ops);return c.forEach((function(e){var t=e[1].length;while(t>0){var n=0;switch(e[0]){case i.INSERT:n=Math.min(h.peekLength(),t),o.push(h.next(n));break;case i.DELETE:n=Math.min(t,u.peekLength()),u.next(n),o["delete"](n);break;case i.EQUAL:n=Math.min(u.peekLength(),h.peekLength(),t);var a=u.next(n),l=h.next(n);r(a.insert,l.insert)?o.retain(n,s.attributes.diff(a.attributes,l.attributes)):o.push(l)["delete"](n);break}t-=n}})),o.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";var n=s.iterator(this.ops),i=new l,r=0;while(n.hasNext()){if("insert"!==n.peekType())return;var o=n.peek(),a=s.length(o)-n.peekLength(),c="string"===typeof o.insert?o.insert.indexOf(t,a)-a:-1;if(c<0)i.push(n.next());else if(c>0)i.push(n.next(c));else{if(!1===e(i,n.next(1).attributes||{},r))return;r+=1,i=new l}}i.length()>0&&e(i,{},r)},l.prototype.transform=function(e,t){if(t=!!t,"number"===typeof e)return this.transformPosition(e,t);var n=s.iterator(this.ops),i=s.iterator(e.ops),r=new l;while(n.hasNext()||i.hasNext())if("insert"!==n.peekType()||!t&&"insert"===i.peekType())if("insert"===i.peekType())r.push(i.next());else{var o=Math.min(n.peekLength(),i.peekLength()),a=n.next(o),c=i.next(o);if(a["delete"])continue;c["delete"]?r.push(c):r.retain(o,s.attributes.transform(a.attributes,c.attributes,t))}else r.retain(s.length(n.next()));return r.chop()},l.prototype.transformPosition=function(e,t){t=!!t;var n=s.iterator(this.ops),i=0;while(n.hasNext()&&i<=e){var r=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(i<e||!t)&&(e+=r),i+=r):e-=Math.min(r,e-i)}return e},e.exports=l},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},a=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,r=n.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!o)return!1;for(t in e);return"undefined"===typeof t||n.call(e,t)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(o)return o(e,t).value}return e[t]};e.exports=function e(){var t,n,i,r,o,u,h=arguments[0],d=1,f=arguments.length,p=!1;for("boolean"===typeof h&&(p=h,h=arguments[1]||{},d=2),(null==h||"object"!==typeof h&&"function"!==typeof h)&&(h={});d<f;++d)if(t=arguments[d],null!=t)for(n in t)i=c(h,n),r=c(t,n),h!==r&&(p&&r&&(a(r)||(o=s(r)))?(o?(o=!1,u=i&&s(i)?i:[]):u=i&&a(i)?i:{},l(h,{name:n,newValue:e(p,u,r)})):"undefined"!==typeof r&&l(h,{name:n,newValue:r}));return h}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=n(3),s=v(o),a=n(2),l=v(a),c=n(0),u=v(c),h=n(16),d=v(h),f=n(6),p=v(f),g=n(7),m=v(g);function v(e){return e&&e.__esModule?e:{default:e}}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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}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)}var w=1,C=function(e){function t(){return b(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return _(t,e),i(t,[{key:"attach",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new u.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new l.default).insert(this.value(),(0,s.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=u.default.query(e,u.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,i){this.format(n,i)}},{key:"insertAt",value:function(e,n,i){if("string"===typeof n&&n.endsWith("\n")){var o=u.default.create(S.blotName);this.parent.insertBefore(o,0===e?this:this.next),o.insertAt(0,n.slice(0,-1))}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,i)}}]),t}(u.default.Embed);C.scope=u.default.Scope.BLOCK_BLOT;var S=function(e){function t(e){b(this,t);var n=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return _(t,e),i(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(u.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),x(t))}),new l.default).insert("\n",x(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,i,o){n<=0||(u.default.query(i,u.default.Scope.BLOCK)?e+n===this.length()&&this.format(i,o):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),i,o),this.cache={})}},{key:"insertAt",value:function(e,n,i){if(null!=i)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,i);if(0!==n.length){var o=n.split("\n"),s=o.shift();s.length>0&&(e<this.length()-1||null==this.children.tail?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});var a=this;o.reduce((function(e,t){return a=a.split(e,!0),a.insertAt(0,t),t.length}),e+s.length)}}},{key:"insertBefore",value:function(e,n){var i=this.children.head;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),i instanceof d.default&&i.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+w),this.cache.length}},{key:"moveChildren",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-w)){var i=this.clone();return 0===e?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}var o=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},o}}]),t}(u.default.Block);function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"===typeof e.formats&&(t=(0,s.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:x(e.parent,t))}S.blotName="block",S.tagName="P",S.defaultChild="break",S.allowedChildren=[p.default,u.default.Embed,m.default],t.bubbleFormats=x,t.BlockEmbed=C,t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var 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(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){r=!0,o=l}finally{try{!i&&a["return"]&&a["return"]()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();n(50);var s=n(2),a=x(s),l=n(14),c=x(l),u=n(8),h=x(u),d=n(9),f=x(d),p=n(0),g=x(p),m=n(15),v=x(m),b=n(3),y=x(b),_=n(10),w=x(_),C=n(34),S=x(C);function x(e){return e&&e.__esModule?e:{default:e}}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 k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var L=(0,w.default)("quill"),E=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(k(this,e),this.options=D(t,i),this.container=this.options.container,null==this.container)return L.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=g.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new c.default(this.scroll),this.selection=new v.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,(function(e){e===h.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(h.default.events.SCROLL_UPDATE,(function(e,t){var i=n.selection.lastRange,r=i&&0===i.length?i.index:void 0;I.call(n,(function(){return n.editor.update(null,t,r)}),e)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+r+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),w.default.level(e)}},{key:"find",value:function(e){return e.__quill||g.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&L.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e){var r=e.attrName||e.blotName;"string"===typeof r?this.register("formats/"+r,e,t):Object.keys(e).forEach((function(i){n.register(i,e[i],t)}))}else null==this.imports[e]||i||L.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?g.default.register(t):e.startsWith("modules")&&"function"===typeof t.register&&t.register()}}]),o(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var n=e;e=document.createElement("div"),e.classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var i=this,o=M(e,t,n),s=r(o,4);return e=s[0],t=s[1],n=s[3],I.call(this,(function(){return i.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;return I.call(this,(function(){var i=n.getSelection(!0),r=new a.default;if(null==i)return r;if(g.default.query(e,g.default.Scope.BLOCK))r=n.editor.formatLine(i.index,i.length,O({},e,t));else{if(0===i.length)return n.selection.format(e,t),r;r=n.editor.formatText(i.index,i.length,O({},e,t))}return n.setSelection(i,h.default.sources.SILENT),r}),i)}},{key:"formatLine",value:function(e,t,n,i,o){var s=this,a=void 0,l=M(e,t,n,i,o),c=r(l,4);return e=c[0],t=c[1],a=c[2],o=c[3],I.call(this,(function(){return s.editor.formatLine(e,t,a)}),o,e,0)}},{key:"formatText",value:function(e,t,n,i,o){var s=this,a=void 0,l=M(e,t,n,i,o),c=r(l,4);return e=c[0],t=c[1],a=c[2],o=c[3],I.call(this,(function(){return s.editor.formatText(e,t,a)}),o,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var i=this.container.getBoundingClientRect();return{bottom:n.bottom-i.top,height:n.height,left:n.left-i.left,right:n.right-i.left,top:n.top-i.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=M(e,t),i=r(n,2);return e=i[0],t=i[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=M(e,t),i=r(n,2);return e=i[0],t=i[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return I.call(this,(function(){return r.editor.insertEmbed(t,n,i)}),o,t)}},{key:"insertText",value:function(e,t,n,i,o){var s=this,a=void 0,l=M(e,0,n,i,o),c=r(l,4);return e=c[0],a=c[2],o=c[3],I.call(this,(function(){return s.editor.insertText(e,t,a)}),o,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var i=this,o=M(e,t,n),s=r(o,4);return e=s[0],t=s[1],n=s[3],I.call(this,(function(){return i.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API;return I.call(this,(function(){e=new a.default(e);var n=t.getLength(),i=t.editor.deleteText(0,n),r=t.editor.applyDelta(e),o=r.ops[r.ops.length-1];null!=o&&"string"===typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),r.delete(1));var s=i.compose(r);return s}),n)}},{key:"setSelection",value:function(t,n,i){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var o=M(t,n,i),s=r(o,4);t=s[0],n=s[1],i=s[3],this.selection.setRange(new m.Range(t,n),i),i!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API;return I.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function D(e,t){if(t=(0,y.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t),t.theme&&t.theme!==E.DEFAULTS.theme){if(t.theme=E.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=S.default;var n=(0,y.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var i=Object.keys(n.modules).concat(Object.keys(t.modules)),r=i.reduce((function(e,t){var n=E.import("modules/"+t);return null==n?L.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,y.default)(!0,{},E.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"===typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function I(e,t,n,i){if(this.options.strict&&!this.isEnabled()&&t===h.default.sources.USER)return new a.default;var r=null==n?null:this.getSelection(),o=this.editor.delta,s=e();if(null!=r&&(!0===n&&(n=r.index),null==i?r=T(r,s,t):0!==i&&(r=T(r,n,i,t)),this.setSelection(r,h.default.sources.SILENT)),s.length()>0){var l,c,u=[h.default.events.TEXT_CHANGE,s,o,t];if((l=this.emitter).emit.apply(l,[h.default.events.EDITOR_CHANGE].concat(u)),t!==h.default.sources.SILENT)(c=this.emitter).emit.apply(c,u)}return s}function M(e,t,n,r,o){var s={};return"number"===typeof e.index&&"number"===typeof e.length?"number"!==typeof t?(o=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!==typeof t&&(o=r,r=n,n=t,t=0),"object"===("undefined"===typeof n?"undefined":i(n))?(s=n,o=r):"string"===typeof n&&(null!=r?s[n]=r:o=n),o=o||h.default.sources.API,[e,t,s,o]}function T(e,t,n,i){if(null==e)return null;var o=void 0,s=void 0;if(t instanceof a.default){var l=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,i!==h.default.sources.USER)})),c=r(l,2);o=c[0],s=c[1]}else{var u=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&i===h.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),d=r(u,2);o=d[0],s=d[1]}return new m.Range(o,s-o)}E.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},E.events=h.default.events,E.sources=h.default.sources,E.version="1.3.7",E.imports={delta:a.default,parchment:g.default,"core/module":f.default,"core/theme":S.default},t.expandConfig=D,t.overload=M,t.default=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=n(7),s=c(o),a=n(0),l=c(a);function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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}function d(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)}var f=function(e){function t(){return u(this,t),h(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),i(t,[{key:"formatAt",value:function(e,n,i,o){if(t.compare(this.statics.blotName,i)<0&&l.default.query(i,l.default.Scope.BLOT)){var s=this.isolate(e,n);o&&s.wrap(i,o)}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,i,o)}},{key:"optimize",value:function(e){if(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var i=t.order.indexOf(e),r=t.order.indexOf(n);return i>=0||r>=0?i-r:e===n?0:e<n?-1:1}}]),t}(l.default.Inline);f.allowedChildren=[f,l.default.Embed,s.default],f.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=o(i);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function l(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)}var c=function(e){function t(){return s(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(r.default.Text);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=n(54),s=c(o),a=n(10),l=c(a);function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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}function d(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)}var f=(0,l.default)("quill:events"),p=["selectionchange","mousedown","mouseup","click"];p.forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var g=function(e){function t(){u(this,t);var e=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",f.error),e}return d(t,e),i(t,[{key:"emit",value:function(){f.log.apply(f,arguments),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];(this.listeners[e.type]||[]).forEach((function(t){var i=t.node,r=t.handler;(e.target===i||i.contains(e.target))&&r.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(s.default);g.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},g.sources={API:"api",SILENT:"silent",USER:"user"},t.default=g},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=["error","warn","log","info"],r="warn";function o(e){if(i.indexOf(e)<=i.indexOf(r)){for(var t,n=arguments.length,o=Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];(t=console)[e].apply(t,o)}}function s(e){return i.reduce((function(t,n){return t[n]=o.bind(console,n,e),t}),{})}o.level=s.level=function(e){r=e},t.default=s},function(e,t,n){var i=Array.prototype.slice,r=n(52),o=n(53),s=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:c(e,t,n))};function a(e){return null===e||void 0===e}function l(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&("function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0]))}function c(e,t,n){var c,u;if(a(e)||a(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&(e=i.call(e),t=i.call(t),s(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(c=0;c<e.length;c++)if(e[c]!==t[c])return!1;return!0}try{var h=r(e),d=r(t)}catch(f){return!1}if(h.length!=d.length)return!1;for(h.sort(),d.sort(),c=h.length-1;c>=0;c--)if(h[c]!=d[c])return!1;for(c=h.length-1;c>=0;c--)if(u=h[c],!s(e[u],t[u],n))return!1;return typeof e===typeof t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var r=i.Scope.TYPE&i.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&i.Scope.LEVEL|r:this.scope=i.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){var n=i.query(e,i.Scope.BLOT&(this.scope|i.Scope.TYPE));return null!=n&&(null==this.whitelist||("string"===typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var i=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){r=!0,o=l}finally{try{!i&&a["return"]&&a["return"]()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(2),a=m(s),l=n(0),c=m(l),u=n(4),h=m(u),d=n(6),f=m(d),p=n(7),g=m(p);function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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}function y(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)}var _=function(e){function t(){return v(this,t),b(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return y(t,e),t}(f.default);_.blotName="code",_.tagName="CODE";var w=function(e){function t(){return v(this,t),b(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return y(t,e),r(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new a.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var r=this.descendant(g.default,this.length()-1),s=i(r,1),a=s[0];null!=a&&a.deleteAt(a.length()-1,1),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,i,r){if(0!==n&&null!=c.default.query(i,c.default.Scope.BLOCK)&&(i!==this.statics.blotName||r!==this.statics.formats(this.domNode))){var o=this.newlineIndex(e);if(!(o<0||o>=e+n)){var s=this.newlineIndex(e,!0)+1,a=o-s+1,l=this.isolate(s,a),u=l.next;l.format(i,r),u instanceof t&&u.formatAt(0,e-s+n-a,i,r)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var r=this.descendant(g.default,e),o=i(r,2),s=o[0],a=o[1];s.insertAt(a,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(c.default.create("text","\n")),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=c.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof c.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(h.default);w.blotName="code-block",w.tagName="PRE",w.TAB=" ",t.Code=_,t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){r=!0,o=l}finally{try{!i&&a["return"]&&a["return"]()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(2),a=k(s),l=n(20),c=k(l),u=n(0),h=k(u),d=n(13),f=k(d),p=n(24),g=k(p),m=n(4),v=k(m),b=n(16),y=k(b),_=n(21),w=k(_),C=n(11),S=k(C),x=n(3),O=k(x);function k(e){return e&&e.__esModule?e:{default:e}}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}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var D=/^[ -~]*$/,I=function(){function e(t){E(this,e),this.scroll=t,this.delta=this.getDelta()}return o(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batchStart(),e=T(e),e.reduce((function(e,s){var a=s.retain||s.delete||s.insert.length||1,l=s.attributes||{};if(null!=s.insert){if("string"===typeof s.insert){var u=s.insert;u.endsWith("\n")&&n&&(n=!1,u=u.slice(0,-1)),e>=o&&!u.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,u);var d=t.scroll.line(e),f=r(d,2),p=f[0],g=f[1],b=(0,O.default)({},(0,m.bubbleFormats)(p));if(p instanceof v.default){var y=p.descendant(h.default.Leaf,g),_=r(y,1),w=_[0];b=(0,O.default)(b,(0,m.bubbleFormats)(w))}l=c.default.attributes.diff(b,l)||{}}else if("object"===i(s.insert)){var C=Object.keys(s.insert)[0];if(null==C)return e;t.scroll.insertAt(e,C,s.insert[C])}o+=a}return Object.keys(l).forEach((function(n){t.scroll.formatAt(e,a,n,l[n])})),e+a}),0),e.reduce((function(e,n){return"number"===typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(i).forEach((function(r){if(null==n.scroll.whitelist||n.scroll.whitelist[r]){var o=n.scroll.lines(e,Math.max(t,1)),s=t;o.forEach((function(t){var o=t.length();if(t instanceof f.default){var a=e-t.offset(n.scroll),l=t.newlineIndex(a+s)-a+1;t.formatAt(a,l,r,i[r])}else t.format(r,i[r]);s-=o}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,w.default)(i)))}},{key:"formatText",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(i).forEach((function(r){n.scroll.formatAt(e,t,r,i[r])})),this.update((new a.default).retain(e).retain(t,(0,w.default)(i)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],i=[];0===t?this.scroll.path(e).forEach((function(e){var t=r(e,1),o=t[0];o instanceof v.default?n.push(o):o instanceof h.default.Leaf&&i.push(o)})):(n=this.scroll.lines(e,t),i=this.scroll.descendants(h.default.Leaf,e,t));var o=[n,i].map((function(e){if(0===e.length)return{};var t=(0,m.bubbleFormats)(e.shift());while(Object.keys(t).length>0){var n=e.shift();if(null==n)return t;t=M((0,m.bubbleFormats)(n),t)}return t}));return O.default.apply(O.default,o)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"===typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(L({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(i).forEach((function(r){n.scroll.formatAt(e,t.length,r,i[r])})),this.update((new a.default).retain(e).insert(t,(0,w.default)(i)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===v.default.blotName&&(!(e.children.length>1)&&e.children.head instanceof y.default)}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),i=this.scroll.line(e+t),o=r(i,2),s=o[0],l=o[1],c=0,u=new a.default;null!=s&&(c=s instanceof f.default?s.newlineIndex(l)-l+1:s.length()-l,u=s.delta().slice(l,l+c-1).insert("\n"));var h=this.getContents(e,t+c),d=h.diff((new a.default).insert(n).concat(u)),p=(new a.default).retain(e).concat(d);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(D)&&h.default.find(t[0].target)){var r=h.default.find(t[0].target),o=(0,m.bubbleFormats)(r),s=r.offset(this.scroll),l=t[0].oldValue.replace(g.default.CONTENTS,""),c=(new a.default).insert(l),u=(new a.default).insert(r.value()),d=(new a.default).retain(s).concat(c.diff(u,n));e=d.reduce((function(e,t){return t.insert?e.insert(t.insert,o):e.push(t)}),new a.default),this.delta=i.compose(e)}else this.delta=this.getDelta(),e&&(0,S.default)(i.compose(e),this.delta)||(e=i.diff(this.delta,n));return e}}]),e}();function M(e,t){return Object.keys(t).reduce((function(n,i){return null==e[i]||(t[i]===e[i]?n[i]=t[i]:Array.isArray(t[i])?t[i].indexOf(e[i])<0&&(n[i]=t[i].concat([e[i]])):n[i]=[t[i],e[i]]),n}),{})}function T(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,w.default)(t.attributes);return delete n["image"],e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||(t=(0,w.default)(t),t.attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"===typeof t.insert){var i=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(i,t.attributes)}return e.push(t)}),new a.default)}t.default=I},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var i=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){r=!0,o=l}finally{try{!i&&a["return"]&&a["return"]()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(0),s=g(o),a=n(21),l=g(a),c=n(11),u=g(c),h=n(8),d=g(h),f=n(10),p=g(f);function g(e){return e&&e.__esModule?e:{default:e}}function m(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b=(0,p.default)("quill:selection"),y=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;v(this,e),this.index=t,this.length=n},_=function(){function e(t,n){var i=this;v(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=s.default.create("cursor",this),this.lastRange=this.savedRange=new y(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){i.mouseDown||setTimeout(i.update.bind(i,d.default.sources.USER),1)})),this.emitter.on(d.default.events.EDITOR_CHANGE,(function(e,t){e===d.default.events.TEXT_CHANGE&&t.length()>0&&i.update(d.default.sources.SILENT)})),this.emitter.on(d.default.events.SCROLL_BEFORE_UPDATE,(function(){if(i.hasFocus()){var e=i.getNativeRange();null!=e&&e.start.node!==i.cursor.textNode&&i.emitter.once(d.default.events.SCROLL_UPDATE,(function(){try{i.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(d.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,r=n.startNode,o=n.startOffset,s=n.endNode,a=n.endOffset;i.setNativeRange(r,o,s,a)}})),this.update(d.default.sources.SILENT)}return r(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(d.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!s.default.query(e,s.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var i=s.default.find(n.start.node,!1);if(null==i)return;if(i instanceof s.default.Leaf){var r=i.split(n.start.offset);i.parent.insertBefore(this.cursor,r)}else i.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var r=void 0,o=this.scroll.leaf(e),s=i(o,2),a=s[0],l=s[1];if(null==a)return null;var c=a.position(l,!0),u=i(c,2);r=u[0],l=u[1];var h=document.createRange();if(t>0){h.setStart(r,l);var d=this.scroll.leaf(e+t),f=i(d,2);if(a=f[0],l=f[1],null==a)return null;var p=a.position(l,!0),g=i(p,2);return r=g[0],l=g[1],h.setEnd(r,l),h.getBoundingClientRect()}var m="left",v=void 0;return r instanceof Text?(l<r.data.length?(h.setStart(r,l),h.setEnd(r,l+1)):(h.setStart(r,l-1),h.setEnd(r,l),m="right"),v=h.getBoundingClientRect()):(v=a.domNode.getBoundingClientRect(),l>0&&(m="right")),{bottom:v.top+v.height,height:v.height,left:v[m],right:v[m],top:v.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return b.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();if(null==e)return[null,null];var t=this.normalizedToRange(e);return[t,e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var r=n.map((function(e){var n=i(e,2),r=n[0],o=n[1],a=s.default.find(r,!0),l=a.offset(t.scroll);return 0===o?l:a instanceof s.default.Container?l+a.length():l+a.index(r,o)})),o=Math.min(Math.max.apply(Math,m(r)),this.scroll.length()-1),a=Math.min.apply(Math,[o].concat(m(r)));return new y(a,o-a)}},{key:"normalizeNative",value:function(e){if(!w(this.root,e.startContainer)||!e.collapsed&&!w(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){var t=e.node,n=e.offset;while(!(t instanceof Text)&&t.childNodes.length>0)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;t=t.lastChild,n=t instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],r=[],o=this.scroll.length();return n.forEach((function(e,n){e=Math.min(o-1,e);var s=void 0,a=t.scroll.leaf(e),l=i(a,2),c=l[0],u=l[1],h=c.position(u,0!==n),d=i(h,2);s=d[0],u=d[1],r.push(s,u)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var r=this.scroll.length()-1,o=this.scroll.line(Math.min(t.index,r)),s=i(o,1),a=s[0],l=a;if(t.length>0){var c=this.scroll.line(Math.min(t.index+t.length,r)),u=i(c,1);l=u[0]}if(null!=a&&null!=l){var h=e.getBoundingClientRect();n.top<h.top?e.scrollTop-=h.top-n.top:n.bottom>h.bottom&&(e.scrollTop+=n.bottom-h.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(b.info("setNativeRange",e,t,n,i),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus();var s=(this.getNativeRange()||{}).native;if(null==s||r||e!==s.startContainer||t!==s.startOffset||n!==s.endContainer||i!==s.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(i=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(e,t),a.setEnd(n,i),o.removeAllRanges(),o.addRange(a)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;if("string"===typeof t&&(n=t,t=!1),b.info("setRange",e),null!=e){var i=this.rangeToNative(e);this.setNativeRange.apply(this,m(i).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default.sources.USER,t=this.lastRange,n=this.getRange(),r=i(n,2),o=r[0],s=r[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,u.default)(t,this.lastRange)){var a;!this.composing&&null!=s&&s.native.collapsed&&s.start.node!==this.cursor.textNode&&this.cursor.restore();var c,h=[d.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(t),e];if((a=this.emitter).emit.apply(a,[d.default.events.EDITOR_CHANGE].concat(h)),e!==d.default.sources.SILENT)(c=this.emitter).emit.apply(c,h)}}}]),e}();function w(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=y,t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=n(0),s=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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}function u(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)}var h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),i(t,[{key:"insertInto",value:function(e,n){0===e.children.length?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(s.default.Embed);h.blotName="break",h.tagName="BR",t.default=h},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(44),o=n(30),s=n(1),a=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return i(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new r.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=l(t);e.insertBefore(n,e.children.head||void 0)}catch(i){if(i instanceof s.ParchmentError)return;throw i}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var i=this.children.find(n),r=i[0],o=i[1];return null==e.blotName&&e(r)||null!=e.blotName&&r instanceof e?[r,o]:r instanceof t?r.descendant(e,o):[null,-1]},t.prototype.descendants=function(e,n,i){void 0===n&&(n=0),void 0===i&&(i=Number.MAX_VALUE);var r=[],o=i;return this.children.forEachAt(n,i,(function(n,i,s){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&r.push(n),n instanceof t&&(r=r.concat(n.descendants(e,i,o))),o-=s})),r},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,i){this.children.forEachAt(e,t,(function(e,t,r){e.formatAt(t,r,n,i)}))},t.prototype.insertAt=function(e,t,n){var i=this.children.find(e),r=i[0],o=i[1];if(r)r.insertAt(o,t,n);else{var a=null==n?s.create("text",t):s.create(t,n);this.appendChild(a)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new s.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=s.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var i=this.children.find(e,n),r=i[0],o=i[1],s=[[this,e]];return r instanceof t?s.concat(r.path(o,n)):(null!=r&&s.push([r,o]),s)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,i,r){e=e.split(i,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,i=[],r=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(i.push.apply(i,e.addedNodes),r.push.apply(r,e.removedNodes))})),r.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=s.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),i.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=s.find(e.nextSibling));var i=l(e);i.next==t&&null!=i.next||(null!=i.parent&&i.parent.removeChild(n),n.insertBefore(i,t||void 0))}))},t}(o.default);function l(e){var t=s.find(e);if(null==t)try{t=s.create(e)}catch(n){t=s.create(s.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=a},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(31),s=n(17),a=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new o.default(n.domNode),n}return i(t,e),t.formats=function(e){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=a.query(e);n instanceof r.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var i=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(i),i},t.prototype.update=function(t,n){var i=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===i.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,i){var r=e.prototype.wrap.call(this,n,i);return r instanceof t&&r.statics.scope===this.statics.scope&&this.attributes.move(r),r},t}(s.default);t.default=l},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(30),o=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return e={},e[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=o.Scope.INLINE_BLOT,t}(r.default);t.default=s},function(e,t,n){var i=n(11),r=n(3),o={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var i=r(!0,{},t);for(var o in n||(i=Object.keys(i).reduce((function(e,t){return null!=i[t]&&(e[t]=i[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(i[o]=e[o]);return Object.keys(i).length>0?i:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return i(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var i=Object.keys(t).reduce((function(n,i){return void 0===e[i]&&(n[i]=t[i]),n}),{});return Object.keys(i).length>0?i:void 0}}},iterator:function(e){return new s(e)},length:function(e){return"number"===typeof e["delete"]?e["delete"]:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function s(e){this.ops=e,this.index=0,this.offset=0}s.prototype.hasNext=function(){return this.peekLength()<1/0},s.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,i=o.length(t);if(e>=i-n?(e=i-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t["delete"])return{delete:e};var r={};return t.attributes&&(r.attributes=t.attributes),"number"===typeof t.retain?r.retain=e:"string"===typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}return{retain:1/0}},s.prototype.peek=function(){return this.ops[this.index]},s.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},s.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},s.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),i=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(i)}return[]},e.exports=o},function(e,n){var i=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var n,i,r;try{n=Map}catch(h){n=function(){}}try{i=Set}catch(h){i=function(){}}try{r=Promise}catch(h){r=function(){}}function o(s,a,l,c,h){"object"===typeof a&&(l=a.depth,c=a.prototype,h=a.includeNonEnumerable,a=a.circular);var d=[],f=[],p="undefined"!=typeof t;function g(s,l){if(null===s)return null;if(0===l)return s;var m,v;if("object"!=typeof s)return s;if(e(s,n))m=new n;else if(e(s,i))m=new i;else if(e(s,r))m=new r((function(e,t){s.then((function(t){e(g(t,l-1))}),(function(e){t(g(e,l-1))}))}));else if(o.__isArray(s))m=[];else if(o.__isRegExp(s))m=new RegExp(s.source,u(s)),s.lastIndex&&(m.lastIndex=s.lastIndex);else if(o.__isDate(s))m=new Date(s.getTime());else{if(p&&t.isBuffer(s))return m=t.allocUnsafe?t.allocUnsafe(s.length):new t(s.length),s.copy(m),m;e(s,Error)?m=Object.create(s):"undefined"==typeof c?(v=Object.getPrototypeOf(s),m=Object.create(v)):(m=Object.create(c),v=c)}if(a){var b=d.indexOf(s);if(-1!=b)return f[b];d.push(s),f.push(m)}for(var y in e(s,n)&&s.forEach((function(e,t){var n=g(t,l-1),i=g(e,l-1);m.set(n,i)})),e(s,i)&&s.forEach((function(e){var t=g(e,l-1);m.add(t)})),s){var _;v&&(_=Object.getOwnPropertyDescriptor(v,y)),_&&null==_.set||(m[y]=g(s[y],l-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(s);for(y=0;y<w.length;y++){var C=w[y],S=Object.getOwnPropertyDescriptor(s,C);(!S||S.enumerable||h)&&(m[C]=g(s[C],l-1),S.enumerable||Object.defineProperty(m,C,{enumerable:!1}))}}if(h){var x=Object.getOwnPropertyNames(s);for(y=0;y<x.length;y++){var O=x[y];S=Object.getOwnPropertyDescriptor(s,O);S&&S.enumerable||(m[O]=g(s[O],l-1),Object.defineProperty(m,O,{enumerable:!1}))}}return m}return"undefined"==typeof a&&(a=!0),"undefined"==typeof l&&(l=1/0),g(s,l)}function s(e){return Object.prototype.toString.call(e)}function a(e){return"object"===typeof e&&"[object Date]"===s(e)}function l(e){return"object"===typeof e&&"[object Array]"===s(e)}function c(e){return"object"===typeof e&&"[object RegExp]"===s(e)}function u(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=s,o.__isDate=a,o.__isArray=l,o.__isRegExp=c,o.__getRegExpFlags=u,o}();"object"===typeof e&&e.exports&&(e.exports=i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){r=!0,o=l}finally{try{!i&&a["return"]&&a["return"]()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},s=n(0),a=b(s),l=n(8),c=b(l),u=n(4),h=b(u),d=n(16),f=b(d),p=n(13),g=b(p),m=n(25),v=b(m);function b(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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}function w(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)}function C(e){return e instanceof h.default||e instanceof u.BlockEmbed}var S=function(e){function t(e,n){y(this,t);var i=_(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.emitter=n.emitter,Array.isArray(n.whitelist)&&(i.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),i.domNode.addEventListener("DOMNodeInserted",(function(){})),i.optimize(),i.enable(),i}return w(t,e),r(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var r=this.line(e),s=i(r,2),a=s[0],l=s[1],c=this.line(e+n),h=i(c,1),d=h[0];if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=d&&a!==d&&l>0){if(a instanceof u.BlockEmbed||d instanceof u.BlockEmbed)return void this.optimize();if(a instanceof g.default){var p=a.newlineIndex(a.length(),!0);if(p>-1&&(a=a.split(p+1),a===d))return void this.optimize()}else if(d instanceof g.default){var m=d.newlineIndex(0);m>-1&&d.split(m+1)}var v=d.children.head instanceof f.default?null:d.children.head;a.moveChildren(d,v),a.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,i,r){(null==this.whitelist||this.whitelist[i])&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,i,r),this.optimize())}},{key:"insertAt",value:function(e,n,i){if(null==i||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==i||null==a.default.query(n,a.default.Scope.BLOCK)){var r=a.default.create(this.statics.defaultChild);this.appendChild(r),null==i&&n.endsWith("\n")&&(n=n.slice(0,-1)),r.insertAt(0,n,i)}else{var s=a.default.create(n,i);this.appendChild(s)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,i);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var i=a.default.create(this.statics.defaultChild);i.appendChild(e),e=i}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(C,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,i){var r=[],o=i;return t.children.forEachAt(n,i,(function(t,n,i){C(t)?r.push(t):t instanceof a.default.Container&&(r=r.concat(e(t,n,o))),o-=i})),r};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(c.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=c.default.sources.USER;"string"===typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(c.default.events.SCROLL_BEFORE_UPDATE,n,e),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(c.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);S.blotName="scroll",S.className="ql-editor",S.tagName="DIV",S.defaultChild="block",S.allowedChildren=[h.default,u.BlockEmbed,v.default],t.default=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var 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(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){r=!0,o=l}finally{try{!i&&a["return"]&&a["return"]()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(21),a=x(s),l=n(11),c=x(l),u=n(3),h=x(u),d=n(2),f=x(d),p=n(20),g=x(p),m=n(0),v=x(m),b=n(5),y=x(b),_=n(10),w=x(_),C=n(9),S=x(C);function x(e){return e&&e.__esModule?e:{default:e}}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 k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(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}function E(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)}var D=(0,w.default)("quill:keyboard"),I=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",M=function(e){function t(e,n){k(this,t);var i=L(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.bindings={},Object.keys(i.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist["list"])&&i.options.bindings[t]&&i.addBinding(i.options.bindings[t])})),i.addBinding({key:t.keys.ENTER,shiftKey:null},j),i.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(i.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},A),i.addBinding({key:t.keys.DELETE},{collapsed:!0},N)):(i.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},A),i.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},N)),i.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},P),i.addBinding({key:t.keys.DELETE},{collapsed:!1},P),i.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},A),i.listen(),i}return E(t,e),o(t,null,[{key:"match",value:function(e,t){return t=B(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),o(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=B(e);if(null==i||null==i.key)return D.warn("Attempted to add invalid keyboard binding",i);"function"===typeof t&&(t={handler:t}),"function"===typeof n&&(n={handler:n}),i=(0,h.default)(i,t,n),this.bindings[i.key]=this.bindings[i.key]||[],this.bindings[i.key].push(i)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,s=(e.bindings[o]||[]).filter((function(e){return t.match(n,e)}));if(0!==s.length){var a=e.quill.getSelection();if(null!=a&&e.quill.hasFocus()){var l=e.quill.getLine(a.index),u=r(l,2),h=u[0],d=u[1],f=e.quill.getLeaf(a.index),p=r(f,2),g=p[0],m=p[1],b=0===a.length?[g,m]:e.quill.getLeaf(a.index+a.length),y=r(b,2),_=y[0],w=y[1],C=g instanceof v.default.Text?g.value().slice(0,m):"",S=_ instanceof v.default.Text?_.value().slice(w):"",x={collapsed:0===a.length,empty:0===a.length&&h.length()<=1,format:e.quill.getFormat(a),offset:d,prefix:C,suffix:S},O=s.some((function(t){if(null!=t.collapsed&&t.collapsed!==x.collapsed)return!1;if(null!=t.empty&&t.empty!==x.empty)return!1;if(null!=t.offset&&t.offset!==x.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==x.format[e]})))return!1}else if("object"===i(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=x.format[e]:!1===t.format[e]?null==x.format[e]:(0,c.default)(t.format[e],x.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(x.prefix))&&(!(null!=t.suffix&&!t.suffix.test(x.suffix))&&!0!==t.handler.call(e,a,x))}));O&&n.preventDefault()}}}}))}}]),t}(S.default);function T(e,t){var n,i=e===M.keys.LEFT?"prefix":"suffix";return n={key:e,shiftKey:t,altKey:null},O(n,i,/^$/),O(n,"handler",(function(n){var i=n.index;e===M.keys.RIGHT&&(i+=n.length+1);var o=this.quill.getLeaf(i),s=r(o,1),a=s[0];return!(a instanceof v.default.Embed)||(e===M.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,y.default.sources.USER):this.quill.setSelection(n.index-1,y.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,y.default.sources.USER):this.quill.setSelection(n.index+n.length+1,y.default.sources.USER),!1)})),n}function A(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),i=r(n,1),o=i[0],s={};if(0===t.offset){var a=this.quill.getLine(e.index-1),l=r(a,1),c=l[0];if(null!=c&&c.length()>1){var u=o.formats(),h=this.quill.getFormat(e.index-1,1);s=g.default.attributes.diff(u,h)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,y.default.sources.USER),Object.keys(s).length>0&&this.quill.formatLine(e.index-d,d,s,y.default.sources.USER),this.quill.focus()}}function N(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var i={},o=0,s=this.quill.getLine(e.index),a=r(s,1),l=a[0];if(t.offset>=l.length()-1){var c=this.quill.getLine(e.index+1),u=r(c,1),h=u[0];if(h){var d=l.formats(),f=this.quill.getFormat(e.index,1);i=g.default.attributes.diff(d,f)||{},o=h.length()}}this.quill.deleteText(e.index,n,y.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index+o-1,n,i,y.default.sources.USER)}}function P(e){var t=this.quill.getLines(e),n={};if(t.length>1){var i=t[0].formats(),r=t[t.length-1].formats();n=g.default.attributes.diff(r,i)||{}}this.quill.deleteText(e,y.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,y.default.sources.USER),this.quill.setSelection(e.index,y.default.sources.SILENT),this.quill.focus()}function j(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var i=Object.keys(t.format).reduce((function(e,n){return v.default.query(n,v.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",i,y.default.sources.USER),this.quill.setSelection(e.index+1,y.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==i[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],y.default.sources.USER))}))}function R(e){return{key:M.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=v.default.query("code-block"),i=t.index,o=t.length,s=this.quill.scroll.descendant(n,i),a=r(s,2),l=a[0],c=a[1];if(null!=l){var u=this.quill.getIndex(l),h=l.newlineIndex(c,!0)+1,d=l.newlineIndex(u+c+o),f=l.domNode.textContent.slice(h,d).split("\n");c=0,f.forEach((function(t,r){e?(l.insertAt(h+c,n.TAB),c+=n.TAB.length,0===r?i+=n.TAB.length:o+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(h+c,n.TAB.length),c-=n.TAB.length,0===r?i-=n.TAB.length:o-=n.TAB.length),c+=t.length+1})),this.quill.update(y.default.sources.USER),this.quill.setSelection(i,o,y.default.sources.SILENT)}}}}function F(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],y.default.sources.USER)}}}function B(e){if("string"===typeof e||"number"===typeof e)return B({key:e});if("object"===("undefined"===typeof e?"undefined":i(e))&&(e=(0,a.default)(e,!1)),"string"===typeof e.key)if(null!=M.keys[e.key.toUpperCase()])e.key=M.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[I]=e.shortKey,delete e.shortKey),e}M.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},M.DEFAULTS={bindings:{bold:F("bold"),italic:F("italic"),underline:F("underline"),indent:{key:M.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",y.default.sources.USER)}},outdent:{key:M.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",y.default.sources.USER)}},"outdent backspace":{key:M.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",y.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,y.default.sources.USER)}},"indent code-block":R(!0),"outdent code-block":R(!1),"remove tab":{key:M.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,y.default.sources.USER)}},tab:{key:M.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new f.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,y.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,y.default.sources.SILENT)}},"list empty enter":{key:M.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,y.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,y.default.sources.USER)}},"checklist enter":{key:M.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),i=n[0],o=n[1],s=(0,h.default)({},i.formats(),{list:"checked"}),a=(new f.default).retain(e.index).insert("\n",s).retain(i.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(a,y.default.sources.USER),this.quill.setSelection(e.index+1,y.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:M.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),i=r(n,2),o=i[0],s=i[1],a=(new f.default).retain(e.index).insert("\n",t.format).retain(o.length()-s-1).retain(1,{header:null});this.quill.updateContents(a,y.default.sources.USER),this.quill.setSelection(e.index+1,y.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,i=this.quill.getLine(e.index),o=r(i,2),s=o[0],a=o[1];if(a>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",y.default.sources.USER),this.quill.history.cutoff();var c=(new f.default).retain(e.index-a).delete(n+1).retain(s.length()-2-a).retain(1,{list:l});this.quill.updateContents(c,y.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,y.default.sources.SILENT)}},"code exit":{key:M.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),i=n[0],o=n[1],s=(new f.default).retain(e.index+i.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(s,y.default.sources.USER)}},"embed left":T(M.keys.LEFT,!1),"embed left shift":T(M.keys.LEFT,!0),"embed right":T(M.keys.RIGHT,!1),"embed right shift":T(M.keys.RIGHT,!0)}},t.default=M,t.SHORTKEY=I},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){r=!0,o=l}finally{try{!i&&a["return"]&&a["return"]()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(0),a=u(s),l=n(7),c=u(l);function u(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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}function f(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)}var p=function(e){function t(e,n){h(this,t);var i=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.selection=n,i.textNode=document.createTextNode(t.CONTENTS),i.domNode.appendChild(i.textNode),i._length=0,i}return f(t,e),o(t,null,[{key:"value",value:function(){}}]),o(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);var i=this,o=0;while(null!=i&&i.statics.scope!==a.default.Scope.BLOCK_BLOT)o+=i.offset(i.parent),i=i.parent;null!=i&&(this._length=t.CONTENTS.length,i.optimize(),i.formatAt(o,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),r=void 0,o=void 0,s=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var l=[e,n.start.offset,n.end.offset];r=l[0],o=l[1],s=l[2]}while(null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof c.default?(r=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var h=[o,s].map((function(e){return Math.max(0,Math.min(r.data.length,e-1))})),d=i(h,2);return o=d[0],s=d[1],{startNode:r,startOffset:o,endNode:r,endOffset:s}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var i=this.restore();i&&(t.range=i)}}},{key:"value",value:function(){return""}}]),t}(a.default.Embed);p.blotName="cursor",p.className="ql-cursor",p.tagName="span",p.CONTENTS="\ufeff",t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=a(i),o=n(4),s=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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}function u(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)}var h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),t}(r.default.Container);h.allowedChildren=[s.default,o.BlockEmbed,h],t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=n(0),s=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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}function u(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)}var h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),i(t,[{key:"value",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):n}}]),t}(s.default.Attributor.Style),d=new s.default.Attributor.Class("color","ql-color",{scope:s.default.Scope.INLINE}),f=new h("color","color",{scope:s.default.Scope.INLINE});t.ColorAttributor=h,t.ColorClass=d,t.ColorStyle=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=n(6),s=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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}function u(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)}var h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),i(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return d(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(s.default);function d(e,t){var n=document.createElement("a");n.href=e;var i=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(i)>-1}h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",h.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=h,t.sanitize=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(23),s=c(o),a=n(107),l=c(a);function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var h=0;function d(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var f=function(){function e(t){var n=this;u(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case s.default.keys.ENTER:n.togglePicker();break;case s.default.keys.ESCAPE:n.escape(),e.preventDefault();break;default:}})),this.select.addEventListener("change",this.update.bind(this))}return r(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),d(this.label,"aria-expanded"),d(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case s.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case s.default.keys.ESCAPE:t.escape(),e.preventDefault();break;default:}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=l.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+h,h+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var i=e.buildItem(n);t.appendChild(i),!0===n.selected&&e.selectItem(i)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":i(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),r=D(i),o=n(5),s=D(o),a=n(4),l=D(a),c=n(16),u=D(c),h=n(25),d=D(h),f=n(24),p=D(f),g=n(35),m=D(g),v=n(6),b=D(v),y=n(22),_=D(y),w=n(7),C=D(w),S=n(55),x=D(S),O=n(42),k=D(O),L=n(23),E=D(L);function D(e){return e&&e.__esModule?e:{default:e}}s.default.register({"blots/block":l.default,"blots/block/embed":a.BlockEmbed,"blots/break":u.default,"blots/container":d.default,"blots/cursor":p.default,"blots/embed":m.default,"blots/inline":b.default,"blots/scroll":_.default,"blots/text":C.default,"modules/clipboard":x.default,"modules/history":k.default,"modules/keyboard":E.default}),r.default.register(l.default,u.default,p.default,b.default,_.default,C.default),t.default=s.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=function(){function e(e){this.domNode=e,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new i.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"===typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return i.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},e.prototype.deleteAt=function(e,t){var n=this.isolate(e,t);n.remove()},e.prototype.formatAt=function(e,t,n,r){var o=this.isolate(e,t);if(null!=i.query(n,i.Scope.BLOT)&&r)o.wrap(n,r);else if(null!=i.query(n,i.Scope.ATTRIBUTE)){var s=i.create(this.statics.scope);o.wrap(s),s.format(n,r)}},e.prototype.insertAt=function(e,t,n){var r=null==n?i.create("text",t):i.create(t,n),o=this.split(e);this.parent.insertBefore(r,o)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[i.DATA_KEY]&&delete this.domNode[i.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"===typeof e?i.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"===typeof e?i.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=n(32),o=n(33),s=n(1),a=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=i.default.keys(this.domNode),n=r.default.keys(this.domNode),a=o.default.keys(this.domNode);t.concat(n).concat(a).forEach((function(t){var n=s.query(t,s.Scope.ATTRIBUTE);n instanceof i.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var i=t.attributes[n].value(t.domNode);e.format(n,i)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=a},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);function o(e,t){var n=e.getAttribute("class")||"";return n.split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){var t=o(e,this.keyName);t.forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=o(e,this.keyName)[0]||"",n=t.slice(this.keyName.length+1);return this.canAdd(e,n)?n:""},t}(r.default);t.default=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(12);function o(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){var t=e.split(":");return t[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[o(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[o(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[o(this.keyName)];return this.canAdd(e,t)?t:""},t}(r.default);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t,n){r(this,e),this.quill=t,this.options=n,this.modules={}}return i(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=n(0),s=c(o),a=n(7),l=c(a);function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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}function d(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)}var f="\ufeff",p=function(e){function t(e){u(this,t);var n=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(f),n.rightGuard=document.createTextNode(f),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return d(t,e),i(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,i=e.data.split(f).join("");if(e===this.leftGuard)if(this.prev instanceof l.default){var r=this.prev.length();this.prev.insertAt(r,i),t={startNode:this.prev.domNode,startOffset:r+i.length}}else n=document.createTextNode(i),this.parent.insertBefore(s.default.create(n),this),t={startNode:n,startOffset:i.length};else e===this.rightGuard&&(this.next instanceof l.default?(this.next.insertAt(0,i),t={startNode:this.next.domNode,startOffset:i.length}):(n=document.createTextNode(i),this.parent.insertBefore(s.default.create(n),this.next),t={startNode:n,startOffset:i.length}));return e.data=f,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var i=n.restore(e.target);i&&(t.range=i)}}))}}]),t}(s.default.Embed);t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var i=n(0),r=o(i);function o(e){return e&&e.__esModule?e:{default:e}}var s={scope:r.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new r.default.Attributor.Attribute("align","align",s),l=new r.default.Attributor.Class("align","ql-align",s),c=new r.default.Attributor.Style("align","text-align",s);t.AlignAttribute=a,t.AlignClass=l,t.AlignStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var i=n(0),r=s(i),o=n(26);function s(e){return e&&e.__esModule?e:{default:e}}var a=new r.default.Attributor.Class("background","ql-bg",{scope:r.default.Scope.INLINE}),l=new o.ColorAttributor("background","background-color",{scope:r.default.Scope.INLINE});t.BackgroundClass=a,t.BackgroundStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var i=n(0),r=o(i);function o(e){return e&&e.__esModule?e:{default:e}}var s={scope:r.default.Scope.BLOCK,whitelist:["rtl"]},a=new r.default.Attributor.Attribute("direction","dir",s),l=new r.default.Attributor.Class("direction","ql-direction",s),c=new r.default.Attributor.Style("direction","direction",s);t.DirectionAttribute=a,t.DirectionClass=l,t.DirectionStyle=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=n(0),s=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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}function u(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)}var h={scope:s.default.Scope.INLINE,whitelist:["serif","monospace"]},d=new s.default.Attributor.Class("font","ql-font",h),f=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),i(t,[{key:"value",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(s.default.Attributor.Style),p=new f("font","font-family",h);t.FontStyle=p,t.FontClass=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var i=n(0),r=o(i);function o(e){return e&&e.__esModule?e:{default:e}}var s=new r.default.Attributor.Class("size","ql-size",{scope:r.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new r.default.Attributor.Style("size","font-size",{scope:r.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=s,t.SizeStyle=a},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(0),o=u(r),s=n(5),a=u(s),l=n(9),c=u(l);function u(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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}function f(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)}var p=function(e){function t(e,n){h(this,t);var i=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.lastRecorded=0,i.ignoreChange=!1,i.clear(),i.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,n,r){e!==a.default.events.TEXT_CHANGE||i.ignoreChange||(i.options.userOnly&&r!==a.default.sources.USER?i.transform(t):i.record(t,n))})),i.quill.keyboard.addBinding({key:"Z",shortKey:!0},i.undo.bind(i)),i.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},i.redo.bind(i)),/Win/i.test(navigator.platform)&&i.quill.keyboard.addBinding({key:"Y",shortKey:!0},i.redo.bind(i)),i}return f(t,e),i(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],a.default.sources.USER),this.ignoreChange=!1;var i=m(n[e]);this.quill.setSelection(i)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),i=Date.now();if(this.lastRecorded+this.options.delay>i&&this.stack.undo.length>0){var r=this.stack.undo.pop();n=n.compose(r.undo),e=r.redo.compose(e)}else this.lastRecorded=i;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(c.default);function g(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"===typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}function m(e){var t=e.reduce((function(e,t){return e+=t.delete||0,e}),0),n=e.length()-t;return g(e)&&(n-=1),n}p.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=p,t.getLastChangeIndex=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=n(3),s=S(o),a=n(2),l=S(a),c=n(8),u=S(c),h=n(23),d=S(h),f=n(34),p=S(f),g=n(59),m=S(g),v=n(60),b=S(v),y=n(28),_=S(y),w=n(61),C=S(w);function S(e){return e&&e.__esModule?e:{default:e}}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(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}function k(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)}var L=[!1,"center","right","justify"],E=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],D=[!1,"serif","monospace"],I=["1","2","3",!1],M=["small",!1,"large","huge"],T=function(e){function t(e,n){x(this,t);var i=O(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n)),r=function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==i.tooltip||i.tooltip.root.contains(n.target)||document.activeElement===i.tooltip.textbox||i.quill.hasFocus()||i.tooltip.hide(),null!=i.pickers&&i.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))};return e.emitter.listenDOM("click",document.body,r),i}return k(t,e),i(t,[{key:"addModule",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){var n=e.getAttribute("class")||"";n.split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n]["rtl"];else if("string"===typeof t[n])e.innerHTML=t[n];else{var i=e.value||"";null!=i&&t[n][i]&&(e.innerHTML=t[n][i])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&P(e,L),new b.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&P(e,E,"background"===n?"#ffffff":"#000000"),new m.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?P(e,D):e.classList.contains("ql-header")?P(e,I):e.classList.contains("ql-size")&&P(e,M)),new _.default(e)}));var i=function(){n.pickers.forEach((function(e){e.update()}))};this.quill.on(u.default.events.EDITOR_CHANGE,i)}}]),t}(p.default);T.DEFAULTS=(0,s.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&(t=document.createElement("input"),t.setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var i=e.quill.getSelection(!0);e.quill.updateContents((new l.default).retain(i.index).delete(i.length).insert({image:n.target.result}),u.default.sources.USER),e.quill.setSelection(i.index+1,u.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var A=function(e){function t(e,n){x(this,t);var i=O(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.textbox=i.root.querySelector('input[type="text"]'),i.listen(),i}return k(t,e),i(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){d.default.match(t,"enter")?(e.save(),t.preventDefault()):d.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,u.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,u.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=N(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var i=n.index+n.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),e,u.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",u.default.sources.USER),this.quill.setSelection(i+2,u.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),t}(C.default);function N(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}function P(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var i=document.createElement("option");t===n?i.setAttribute("selected","selected"):i.setAttribute("value",t),e.appendChild(i)}))}t.BaseTooltip=A,t.default=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){var t,n=this.iterator();while(t=n())if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){var t=0,n=this.head;while(null!=n){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);var n,i=this.iterator();while(n=i()){var r=n.length();if(e<r||t&&e===r&&(null==n.next||0!==n.next.length()))return[n,e];e-=r}return[null,0]},e.prototype.forEach=function(e){var t,n=this.iterator();while(t=n())e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0)){var i,r=this.find(e),o=r[0],s=r[1],a=e-s,l=this.iterator(o);while((i=l())&&a<e+t){var c=i.length();e>a?n(i,e-a,Math.min(t,a+c-e)):n(i,0,Math.min(c,e+t-a)),a+=c}}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){var n,i=this.iterator();while(n=i())t=e(t,n);return t},e}();t.default=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),o=n(1),s={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},a=100,l=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,s),n.attach(),n}return i(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,i,r){this.update(),e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.insertAt=function(t,n,i){this.update(),e.prototype.insertAt.call(this,t,n,i)},t.prototype.optimize=function(t,n){var i=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);var s=[].slice.call(this.observer.takeRecords());while(s.length>0)t.push(s.pop());for(var l=function(e,t){void 0===t&&(t=!0),null!=e&&e!==i&&null!=e.domNode.parentNode&&(null==e.domNode[o.DATA_KEY].mutations&&(e.domNode[o.DATA_KEY].mutations=[]),t&&l(e.parent))},c=function(e){null!=e.domNode[o.DATA_KEY]&&null!=e.domNode[o.DATA_KEY].mutations&&(e instanceof r.default&&e.children.forEach(c),e.optimize(n))},u=t,h=0;u.length>0;h+=1){if(h>=a)throw new Error("[Parchment] Maximum optimize iterations reached");u.forEach((function(e){var t=o.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(l(o.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=o.find(e,!1);l(t,!1),t instanceof r.default&&t.children.forEach((function(e){l(e,!1)}))}))):"attributes"===e.type&&l(t.prev)),l(t))})),this.children.forEach(c),u=[].slice.call(this.observer.takeRecords()),s=u.slice();while(s.length>0)t.push(s.pop())}},t.prototype.update=function(t,n){var i=this;void 0===n&&(n={}),t=t||this.observer.takeRecords(),t.map((function(e){var t=o.find(e.target,!0);return null==t?null:null==t.domNode[o.DATA_KEY].mutations?(t.domNode[o.DATA_KEY].mutations=[e],t):(t.domNode[o.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==i&&null!=e.domNode[o.DATA_KEY]&&e.update(e.domNode[o.DATA_KEY].mutations||[],n)})),null!=this.domNode[o.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="DIV",t}(r.default);t.default=l},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(18),o=n(1);function s(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,i){var o=this;n!==this.statics.blotName||i?e.prototype.format.call(this,n,i):(this.children.forEach((function(e){e instanceof r.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,i,r){if(null!=this.formats()[i]||o.query(i,o.Scope.ATTRIBUTE)){var s=this.isolate(t,n);s.format(i,r)}else e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var i=this.formats();if(0===Object.keys(i).length)return this.unwrap();var r=this.next;r instanceof t&&r.prev===this&&s(i,r.formats())&&(r.moveChildren(this),r.remove())},t.blotName="inline",t.scope=o.Scope.INLINE_BLOT,t.tagName="SPAN",t}(r.default);t.default=a},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(18),o=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(n){var i=o.query(t.blotName).tagName;if(n.tagName!==i)return e.formats.call(this,n)},t.prototype.format=function(n,i){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||i?e.prototype.format.call(this,n,i):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,i,r){null!=o.query(i,o.Scope.BLOCK)?this.format(i,r):e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.insertAt=function(t,n,i){if(null==i||null!=o.query(n,o.Scope.INLINE))e.prototype.insertAt.call(this,t,n,i);else{var r=this.split(t),s=o.create(n,i);r.parent.insertBefore(s,r)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="P",t}(r.default);t.default=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,i,r){0===t&&n===this.length()?this.format(i,r):e.prototype.formatAt.call(this,t,n,i,r)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(r.default);t.default=o},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var r=n(19),o=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return i(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t["normalize"]&&(t=t["normalize"]()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,i){null==i?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,i)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=o.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=o.Scope.INLINE_BLOT,t}(r.default);t.default=s},function(e,t,n){"use strict";var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)===!t?t:r.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!==typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return-1!==i&&i===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),i=n.length>>>0,r=arguments[1],o=0;o<i;o++)if(t=n[o],e.call(r,t,o,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1,i=1,r=0;function o(e,t,n){if(e==t)return e?[[r,e]]:[];(n<0||e.length<n)&&(n=null);var i=c(e,t),o=e.substring(0,i);e=e.substring(i),t=t.substring(i),i=u(e,t);var a=e.substring(e.length-i);e=e.substring(0,e.length-i),t=t.substring(0,t.length-i);var l=s(e,t);return o&&l.unshift([r,o]),a&&l.push([r,a]),d(l),null!=n&&(l=g(l,n)),l=m(l),l}function s(e,t){var s;if(!e)return[[i,t]];if(!t)return[[n,e]];var l=e.length>t.length?e:t,c=e.length>t.length?t:e,u=l.indexOf(c);if(-1!=u)return s=[[i,l.substring(0,u)],[r,c],[i,l.substring(u+c.length)]],e.length>t.length&&(s[0][0]=s[2][0]=n),s;if(1==c.length)return[[n,e],[i,t]];var d=h(e,t);if(d){var f=d[0],p=d[1],g=d[2],m=d[3],v=d[4],b=o(f,g),y=o(p,m);return b.concat([[r,v]],y)}return a(e,t)}function a(e,t){for(var r=e.length,o=t.length,s=Math.ceil((r+o)/2),a=s,c=2*s,u=new Array(c),h=new Array(c),d=0;d<c;d++)u[d]=-1,h[d]=-1;u[a+1]=0,h[a+1]=0;for(var f=r-o,p=f%2!=0,g=0,m=0,v=0,b=0,y=0;y<s;y++){for(var _=-y+g;_<=y-m;_+=2){var w=a+_;L=_==-y||_!=y&&u[w-1]<u[w+1]?u[w+1]:u[w-1]+1;var C=L-_;while(L<r&&C<o&&e.charAt(L)==t.charAt(C))L++,C++;if(u[w]=L,L>r)m+=2;else if(C>o)g+=2;else if(p){var S=a+f-_;if(S>=0&&S<c&&-1!=h[S]){var x=r-h[S];if(L>=x)return l(e,t,L,C)}}}for(var O=-y+v;O<=y-b;O+=2){S=a+O;x=O==-y||O!=y&&h[S-1]<h[S+1]?h[S+1]:h[S-1]+1;var k=x-O;while(x<r&&k<o&&e.charAt(r-x-1)==t.charAt(o-k-1))x++,k++;if(h[S]=x,x>r)b+=2;else if(k>o)v+=2;else if(!p){w=a+f-O;if(w>=0&&w<c&&-1!=u[w]){var L=u[w];C=a+L-w;if(x=r-x,L>=x)return l(e,t,L,C)}}}}return[[n,e],[i,t]]}function l(e,t,n,i){var r=e.substring(0,n),s=t.substring(0,i),a=e.substring(n),l=t.substring(i),c=o(r,s),u=o(a,l);return c.concat(u)}function c(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;var n=0,i=Math.min(e.length,t.length),r=i,o=0;while(n<r)e.substring(o,r)==t.substring(o,r)?(n=r,o=n):i=r,r=Math.floor((i-n)/2+n);return r}function u(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;var n=0,i=Math.min(e.length,t.length),r=i,o=0;while(n<r)e.substring(e.length-r,e.length-o)==t.substring(t.length-r,t.length-o)?(n=r,o=n):i=r,r=Math.floor((i-n)/2+n);return r}function h(e,t){var n=e.length>t.length?e:t,i=e.length>t.length?t:e;if(n.length<4||2*i.length<n.length)return null;function r(e,t,n){var i,r,o,s,a=e.substring(n,n+Math.floor(e.length/4)),l=-1,h="";while(-1!=(l=t.indexOf(a,l+1))){var d=c(e.substring(n),t.substring(l)),f=u(e.substring(0,n),t.substring(0,l));h.length<f+d&&(h=t.substring(l-f,l)+t.substring(l,l+d),i=e.substring(0,n-f),r=e.substring(n+d),o=t.substring(0,l-f),s=t.substring(l+d))}return 2*h.length>=e.length?[i,r,o,s,h]:null}var o,s,a,l,h,d=r(n,i,Math.ceil(n.length/4)),f=r(n,i,Math.ceil(n.length/2));if(!d&&!f)return null;o=f?d&&d[4].length>f[4].length?d:f:d,e.length>t.length?(s=o[0],a=o[1],l=o[2],h=o[3]):(l=o[0],h=o[1],s=o[2],a=o[3]);var p=o[4];return[s,a,l,h,p]}function d(e){e.push([r,""]);var t,o=0,s=0,a=0,l="",h="";while(o<e.length)switch(e[o][0]){case i:a++,h+=e[o][1],o++;break;case n:s++,l+=e[o][1],o++;break;case r:s+a>1?(0!==s&&0!==a&&(t=c(h,l),0!==t&&(o-s-a>0&&e[o-s-a-1][0]==r?e[o-s-a-1][1]+=h.substring(0,t):(e.splice(0,0,[r,h.substring(0,t)]),o++),h=h.substring(t),l=l.substring(t)),t=u(h,l),0!==t&&(e[o][1]=h.substring(h.length-t)+e[o][1],h=h.substring(0,h.length-t),l=l.substring(0,l.length-t))),0===s?e.splice(o-a,s+a,[i,h]):0===a?e.splice(o-s,s+a,[n,l]):e.splice(o-s-a,s+a,[n,l],[i,h]),o=o-s-a+(s?1:0)+(a?1:0)+1):0!==o&&e[o-1][0]==r?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,a=0,s=0,l="",h="";break}""===e[e.length-1][1]&&e.pop();var f=!1;o=1;while(o<e.length-1)e[o-1][0]==r&&e[o+1][0]==r&&(e[o][1].substring(e[o][1].length-e[o-1][1].length)==e[o-1][1]?(e[o][1]=e[o-1][1]+e[o][1].substring(0,e[o][1].length-e[o-1][1].length),e[o+1][1]=e[o-1][1]+e[o+1][1],e.splice(o-1,1),f=!0):e[o][1].substring(0,e[o+1][1].length)==e[o+1][1]&&(e[o-1][1]+=e[o+1][1],e[o][1]=e[o][1].substring(e[o+1][1].length)+e[o+1][1],e.splice(o+1,1),f=!0)),o++;f&&d(e)}var f=o;function p(e,t){if(0===t)return[r,e];for(var i=0,o=0;o<e.length;o++){var s=e[o];if(s[0]===n||s[0]===r){var a=i+s[1].length;if(t===a)return[o+1,e];if(t<a){e=e.slice();var l=t-i,c=[s[0],s[1].slice(0,l)],u=[s[0],s[1].slice(l)];return e.splice(o,1,c,u),[o+1,e]}i=a}}throw new Error("cursor_pos is out of bounds!")}function g(e,t){var n=p(e,t),i=n[1],o=n[0],s=i[o],a=i[o+1];if(null==s)return e;if(s[0]!==r)return e;if(null!=a&&s[1]+a[1]===a[1]+s[1])return i.splice(o,2,a,s),v(i,o,2);if(null!=a&&0===a[1].indexOf(s[1])){i.splice(o,2,[a[0],s[1]],[0,s[1]]);var l=a[1].slice(s[1].length);return l.length>0&&i.splice(o+2,0,[a[0],l]),v(i,o,3)}return e}function m(e){for(var t=!1,o=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},s=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},a=2;a<e.length;a+=1)e[a-2][0]===r&&s(e[a-2][1])&&e[a-1][0]===n&&o(e[a-1][1])&&e[a][0]===i&&o(e[a][1])&&(t=!0,e[a-1][1]=e[a-2][1].slice(-1)+e[a-1][1],e[a][1]=e[a-2][1].slice(-1)+e[a][1],e[a-2][1]=e[a-2][1].slice(0,-1));if(!t)return e;var l=[];for(a=0;a<e.length;a+=1)e[a][1].length>0&&l.push(e[a]);return l}function v(e,t,n){for(var i=t+n-1;i>=0&&i>=t-1;i--)if(i+1<e.length){var r=e[i],o=e[i+1];r[0]===o[1]&&e.splice(i,2,[r[0],r[1]+o[1]])}return e}f.INSERT=i,f.DELETE=n,f.EQUAL=r,e.exports=f},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}t=e.exports="function"===typeof Object.keys?Object.keys:n,t.shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function i(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}t=e.exports=n?i:r,t.supported=i,t.unsupported=r},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(i=!1)),s.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},s.prototype.listeners=function(e,t){var n=i?i+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var o=0,s=r.length,a=new Array(s);o<s;o++)a[o]=r[o].fn;return a},s.prototype.emit=function(e,t,n,r,o,s){var a=i?i+e:e;if(!this._events[a])return!1;var l,c,u=this._events[a],h=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),h){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,o),!0;case 6:return u.fn.call(u.context,t,n,r,o,s),!0}for(c=1,l=new Array(h-1);c<h;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var d,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),h){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,r);break;default:if(!l)for(d=1,l=new Array(h-1);d<h;d++)l[d-1]=arguments[d];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){var r=new o(t,n||this),s=i?i+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],r]:this._events[s].push(r):(this._events[s]=r,this._eventsCount++),this},s.prototype.once=function(e,t,n){var r=new o(t,n||this,!0),s=i?i+e:e;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],r]:this._events[s].push(r):(this._events[s]=r,this._eventsCount++),this},s.prototype.removeListener=function(e,t,n,o){var s=i?i+e:e;if(!this._events[s])return this;if(!t)return 0===--this._eventsCount?this._events=new r:delete this._events[s],this;var a=this._events[s];if(a.fn)a.fn!==t||o&&!a.once||n&&a.context!==n||(0===--this._eventsCount?this._events=new r:delete this._events[s]);else{for(var l=0,c=[],u=a.length;l<u;l++)(a[l].fn!==t||o&&!a[l].once||n&&a[l].context!==n)&&c.push(a[l]);c.length?this._events[s]=1===c.length?c[0]:c:0===--this._eventsCount?this._events=new r:delete this._events[s]}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&(0===--this._eventsCount?this._events=new r:delete this._events[t])):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prototype.setMaxListeners=function(){return this},s.prefixed=i,s.EventEmitter=s,"undefined"!==typeof e&&(e.exports=s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var 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(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){r=!0,o=l}finally{try{!i&&a["return"]&&a["return"]()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(3),a=k(s),l=n(2),c=k(l),u=n(0),h=k(u),d=n(5),f=k(d),p=n(10),g=k(p),m=n(9),v=k(m),b=n(36),y=n(37),_=n(13),w=k(_),C=n(26),S=n(38),x=n(39),O=n(40);function k(e){return e&&e.__esModule?e:{default:e}}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}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(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}function I(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)}var M=(0,g.default)("quill:clipboard"),T="__ql-matcher",A=[[Node.TEXT_NODE,X],[Node.TEXT_NODE,G],["br",q],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,U],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,Z],["li",K],["b",z.bind(z,"bold")],["i",z.bind(z,"italic")],["style",$]],N=[b.AlignAttribute,S.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),P=[b.AlignStyle,y.BackgroundStyle,C.ColorStyle,S.DirectionStyle,x.FontStyle,O.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),j=function(e){function t(e,n){E(this,t);var i=D(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.quill.root.addEventListener("paste",i.onPaste.bind(i)),i.container=i.quill.addContainer("ql-clipboard"),i.container.setAttribute("contenteditable",!0),i.container.setAttribute("tabindex",-1),i.matchers=[],A.concat(i.options.matchers).forEach((function(e){var t=r(e,2),o=t[0],s=t[1];(n.matchVisual||s!==Y)&&i.addMatcher(o,s)})),i}return I(t,e),o(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"===typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[w.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new c.default).insert(n,L({},w.default.blotName,t[w.default.blotName]))}var i=this.prepareMatching(),o=r(i,2),s=o[0],a=o[1],l=V(this.container,s,a);return B(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new c.default).retain(l.length()-1).delete(1))),M.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;if("string"===typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,f.default.sources.SILENT);else{var i=this.convert(t);this.quill.updateContents((new c.default).retain(e).concat(i),n),this.quill.setSelection(e+i.length(),f.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),i=(new c.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(f.default.sources.SILENT),setTimeout((function(){i=i.concat(t.convert()).delete(n.length),t.quill.updateContents(i,f.default.sources.USER),t.quill.setSelection(i.length()-n.length,f.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=r,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(i){var o=r(i,2),s=o[0],a=o[1];switch(s){case Node.TEXT_NODE:n.push(a);break;case Node.ELEMENT_NODE:t.push(a);break;default:[].forEach.call(e.container.querySelectorAll(s),(function(e){e[T]=e[T]||[],e[T].push(a)}));break}})),[t,n]}}]),t}(v.default);function R(e,t,n){return"object"===("undefined"===typeof t?"undefined":i(t))?Object.keys(t).reduce((function(e,n){return R(e,n,t[n])}),e):e.reduce((function(e,i){return i.attributes&&i.attributes[t]?e.push(i):e.insert(i.insert,(0,a.default)({},L({},t,n),i.attributes))}),new c.default)}function F(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function B(e,t){for(var n="",i=e.ops.length-1;i>=0&&n.length<t.length;--i){var r=e.ops[i];if("string"!==typeof r.insert)break;n=r.insert+n}return n.slice(-1*t.length)===t}function W(e){if(0===e.childNodes.length)return!1;var t=F(e);return["block","list-item"].indexOf(t.display)>-1}function V(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new c.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(i,r){var o=V(r,t,n);return r.nodeType===e.ELEMENT_NODE&&(o=t.reduce((function(e,t){return t(r,e)}),o),o=(r[T]||[]).reduce((function(e,t){return t(r,e)}),o)),i.concat(o)}),new c.default):new c.default}function z(e,t,n){return R(n,e,!0)}function H(e,t){var n=h.default.Attributor.Attribute.keys(e),i=h.default.Attributor.Class.keys(e),r=h.default.Attributor.Style.keys(e),o={};return n.concat(i).concat(r).forEach((function(t){var n=h.default.query(t,h.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(e),o[n.attrName])||(n=N[t],null==n||n.attrName!==t&&n.keyName!==t||(o[n.attrName]=n.value(e)||void 0),n=P[t],null==n||n.attrName!==t&&n.keyName!==t||(n=P[t],o[n.attrName]=n.value(e)||void 0))})),Object.keys(o).length>0&&(t=R(t,o)),t}function U(e,t){var n=h.default.query(e);if(null==n)return t;if(n.prototype instanceof h.default.Embed){var i={},r=n.value(e);null!=r&&(i[n.blotName]=r,t=(new c.default).insert(i,n.formats(e)))}else"function"===typeof n.formats&&(t=R(t,n.blotName,n.formats(e)));return t}function q(e,t){return B(t,"\n")||t.insert("\n"),t}function $(){return new c.default}function K(e,t){var n=h.default.query(e);if(null==n||"list-item"!==n.blotName||!B(t,"\n"))return t;var i=-1,r=e.parentNode;while(!r.classList.contains("ql-clipboard"))"list"===(h.default.query(r)||{}).blotName&&(i+=1),r=r.parentNode;return i<=0?t:t.compose((new c.default).retain(t.length()-1).retain(1,{indent:i}))}function G(e,t){return B(t,"\n")||(W(e)||t.length()>0&&e.nextSibling&&W(e.nextSibling))&&t.insert("\n"),t}function Y(e,t){if(W(e)&&null!=e.nextElementSibling&&!B(t,"\n\n")){var n=e.offsetHeight+parseFloat(F(e).marginTop)+parseFloat(F(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function Z(e,t){var n={},i=e.style||{};return i.fontStyle&&"italic"===F(e).fontStyle&&(n.italic=!0),i.fontWeight&&(F(e).fontWeight.startsWith("bold")||parseInt(F(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=R(t,n)),parseFloat(i.textIndent||0)>0&&(t=(new c.default).insert("\t").concat(t)),t}function X(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!F(e.parentNode).whiteSpace.startsWith("pre")){var i=function(e,t){return t=t.replace(/[^\u00a0]/g,""),t.length<1&&e?" ":t};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,i.bind(i,!0)),(null==e.previousSibling&&W(e.parentNode)||null!=e.previousSibling&&W(e.previousSibling))&&(n=n.replace(/^\s+/,i.bind(i,!1))),(null==e.nextSibling&&W(e.parentNode)||null!=e.nextSibling&&W(e.nextSibling))&&(n=n.replace(/\s+$/,i.bind(i,!1)))}return t.insert(n)}j.DEFAULTS={matchers:[],matchVisual:!0},t.default=j,t.matchAttributor=H,t.matchBlot=U,t.matchNewline=G,t.matchSpacing=Y,t.matchText=X},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=n(6),s=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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}function u(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)}var h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),i(t,[{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(s.default);h.blotName="bold",h.tagName=["STRONG","B"],t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var i=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){r=!0,o=l}finally{try{!i&&a["return"]&&a["return"]()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(2),s=g(o),a=n(0),l=g(a),c=n(5),u=g(c),h=n(10),d=g(h),f=n(9),p=g(f);function g(e){return e&&e.__esModule?e:{default:e}}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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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}function y(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)}var _=(0,d.default)("quill:toolbar"),w=function(e){function t(e,n){v(this,t);var r,o=b(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(o.options.container)){var s=document.createElement("div");S(s,o.options.container),e.container.parentNode.insertBefore(s,e.container),o.container=s}else"string"===typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(e){o.addHandler(e,o.options.handlers[e])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(e){o.attach(e)})),o.quill.on(u.default.events.EDITOR_CHANGE,(function(e,t){e===u.default.events.SELECTION_CHANGE&&o.update(t)})),o.quill.on(u.default.events.SCROLL_OPTIMIZE,(function(){var e=o.quill.selection.getRange(),t=i(e,1),n=t[0];o.update(n)})),o):(r=_.error("Container required for toolbar",o.options),b(o,r))}return y(t,e),r(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void _.warn("ignoring attaching to disabled format",n,e);if(null==l.default.query(n))return void _.warn("ignoring attaching to nonexistent format",n,e)}var r="SELECT"===e.tagName?"change":"click";e.addEventListener(r,(function(r){var o=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var a=e.options[e.selectedIndex];o=!a.hasAttribute("selected")&&(a.value||!1)}else o=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),r.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),h=i(c,1),d=h[0];if(null!=t.handlers[n])t.handlers[n].call(t,o);else if(l.default.query(n).prototype instanceof l.default.Embed){if(o=prompt("Enter "+n),!o)return;t.quill.updateContents((new s.default).retain(d.index).delete(d.length).insert(m({},n,o)),u.default.sources.USER)}else t.quill.format(n,o,u.default.sources.USER);t.update(d)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var r=i(n,2),o=r[0],s=r[1];if("SELECT"===s.tagName){var a=void 0;if(null==e)a=null;else if(null==t[o])a=s.querySelector("option[selected]");else if(!Array.isArray(t[o])){var l=t[o];"string"===typeof l&&(l=l.replace(/\"/g,'\\"')),a=s.querySelector('option[value="'+l+'"]')}null==a?(s.value="",s.selectedIndex=-1):a.selected=!0}else if(null==e)s.classList.remove("ql-active");else if(s.hasAttribute("value")){var c=t[o]===s.getAttribute("value")||null!=t[o]&&t[o].toString()===s.getAttribute("value")||null==t[o]&&!s.getAttribute("value");s.classList.toggle("ql-active",c)}else s.classList.toggle("ql-active",null!=t[o])}))}}]),t}(p.default);function C(e,t,n){var i=document.createElement("button");i.setAttribute("type","button"),i.classList.add("ql-"+t),null!=n&&(i.value=n),e.appendChild(i)}function S(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"===typeof e)C(n,e);else{var t=Object.keys(e)[0],i=e[t];Array.isArray(i)?x(n,t,i):C(n,t,i)}})),e.appendChild(n)}))}function x(e,t,n){var i=document.createElement("select");i.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),i.appendChild(t)})),e.appendChild(i)}w.DEFAULTS={},w.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=l.default.query(t,l.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,u.default.sources.USER)},direction:function(e){var t=this.quill.getFormat()["align"];"rtl"===e&&null==t?this.quill.format("align","right",u.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,u.default.sources.USER),this.quill.format("direction",e,u.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),i=parseInt(n.indent||0);if("+1"===e||"-1"===e){var r="+1"===e?1:-1;"rtl"===n.direction&&(r*=-1),this.quill.format("indent",i+r,u.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,u.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n["list"]||"unchecked"===n["list"]?this.quill.format("list",!1,u.default.sources.USER):this.quill.format("list","unchecked",u.default.sources.USER):this.quill.format("list",e,u.default.sources.USER)}}},t.default=w,t.addControls=S},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=n(28),s=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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}function u(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)}var h=function(e){function t(e,n){l(this,t);var i=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.label.innerHTML=n,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),i}return u(t,e),i(t,[{key:"buildItem",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var i=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";i&&("line"===i.tagName?i.style.stroke=o:i.style.fill=o)}}]),t}(s.default);t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=n(28),s=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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}function u(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)}var h=function(e){function t(e,n){l(this,t);var i=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return u(t,e),i(t,[{key:"selectItem",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(s.default);t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t,n){var i=this;r(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){i.root.style.marginTop=-1*i.quill.root.scrollTop+"px"})),this.hide()}return i(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var i=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect(),o=0;if(r.right>i.right&&(o=i.right-r.right,this.root.style.left=t+o+"px"),r.left<i.left&&(o=i.left-r.left,this.root.style.left=t+o+"px"),r.bottom>i.bottom){var s=r.bottom-r.top,a=e.bottom-e.top+s;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done);i=!0)if(n.push(s.value),t&&n.length===t)break}catch(l){r=!0,o=l}finally{try{!i&&a["return"]&&a["return"]()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(3),a=v(s),l=n(8),c=v(l),u=n(43),h=v(u),d=n(27),f=v(d),p=n(15),g=n(41),m=v(g);function v(e){return e&&e.__esModule?e:{default:e}}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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}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)}var w=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],C=function(e){function t(e,n){b(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=w);var i=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.quill.container.classList.add("ql-snow"),i}return _(t,e),o(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),m.default),this.tooltip=new S(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers["link"].call(e,!n.format.link)}))}}]),t}(h.default);C.DEFAULTS=(0,a.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);var i=this.quill.theme.tooltip;i.edit("link",n)}else this.quill.format("link",!1)}}}}});var S=function(e){function t(e,n){b(this,t);var i=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.preview=i.root.querySelector("a.ql-preview"),i}return _(t,e),o(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,c.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(c.default.events.SELECTION_CHANGE,(function(t,n,r){if(null!=t){if(0===t.length&&r===c.default.sources.USER){var o=e.quill.scroll.descendant(f.default,t.index),s=i(o,2),a=s[0],l=s[1];if(null!=a){e.linkRange=new p.Range(t.index-l,a.length());var u=f.default.formats(a.domNode);return e.preview.textContent=u,e.preview.setAttribute("href",u),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(u.BaseTooltip);S.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(29),r=ne(i),o=n(36),s=n(38),a=n(64),l=n(65),c=ne(l),u=n(66),h=ne(u),d=n(67),f=ne(d),p=n(37),g=n(26),m=n(39),v=n(40),b=n(56),y=ne(b),_=n(68),w=ne(_),C=n(27),S=ne(C),x=n(69),O=ne(x),k=n(70),L=ne(k),E=n(71),D=ne(E),I=n(72),M=ne(I),T=n(73),A=ne(T),N=n(13),P=ne(N),j=n(74),R=ne(j),F=n(75),B=ne(F),W=n(57),V=ne(W),z=n(41),H=ne(z),U=n(28),q=ne(U),$=n(59),K=ne($),G=n(60),Y=ne(G),Z=n(61),X=ne(Z),Q=n(108),J=ne(Q),ee=n(62),te=ne(ee);function ne(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":s.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":g.ColorClass,"attributors/class/direction":s.DirectionClass,"attributors/class/font":m.FontClass,"attributors/class/size":v.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":g.ColorStyle,"attributors/style/direction":s.DirectionStyle,"attributors/style/font":m.FontStyle,"attributors/style/size":v.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":s.DirectionClass,"formats/indent":a.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":g.ColorStyle,"formats/font":m.FontClass,"formats/size":v.SizeClass,"formats/blockquote":c.default,"formats/code-block":P.default,"formats/header":h.default,"formats/list":f.default,"formats/bold":y.default,"formats/code":N.Code,"formats/italic":w.default,"formats/link":S.default,"formats/script":O.default,"formats/strike":L.default,"formats/underline":D.default,"formats/image":M.default,"formats/video":A.default,"formats/list/item":d.ListItem,"modules/formula":R.default,"modules/syntax":B.default,"modules/toolbar":V.default,"themes/bubble":J.default,"themes/snow":te.default,"ui/icons":H.default,"ui/picker":q.default,"ui/icon-picker":Y.default,"ui/color-picker":K.default,"ui/tooltip":X.default},!0),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=n(0),s=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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}function u(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)}var h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),i(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var i=this.value(e)||0;n="+1"===n?i+1:i-1}return 0===n?(this.remove(e),!0):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(s.default.Attributor.Class),d=new h("indent","ql-indent",{scope:s.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),r=o(i);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function l(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)}var c=function(e){function t(){return s(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(r.default);c.blotName="blockquote",c.tagName="blockquote",t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=n(4),o=s(r);function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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}function c(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)}var u=function(e){function t(){return a(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c(t,e),i(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(o.default);u.blotName="header",u.tagName=["H1","H2","H3","H4","H5","H6"],t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=n(0),s=h(o),a=n(4),l=h(a),c=n(25),u=h(c);function h(e){return e&&e.__esModule?e:{default: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 f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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}function g(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)}var m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return g(t,e),i(t,[{key:"format",value:function(e,n){e!==v.blotName||n?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(s.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:r(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(l.default);m.blotName="list-item",m.tagName="LI";var v=function(e){function t(e){f(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i=function(t){if(t.target.parentNode===e){var i=n.statics.formats(e),r=s.default.find(t.target);"checked"===i?r.format("list","unchecked"):"unchecked"===i&&r.format("list","checked")}};return e.addEventListener("touchstart",i),e.addEventListener("mousedown",i),n}return g(t,e),i(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",i=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||i.setAttribute("data-checked","checked"===e),i}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),i(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return d({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(e,n){if(e instanceof m)r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var i=null==n?this.length():n.offset(this),o=this.split(i);o.parent.insertBefore(e,o)}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=s.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(u.default);v.blotName="list",v.scope=s.default.Scope.BLOCK_BLOT,v.tagName=["OL","UL"],v.defaultChild="list-item",v.allowedChildren=[m],t.ListItem=m,t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(56),r=o(i);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function l(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)}var c=function(e){function t(){return s(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(r.default);c.blotName="italic",c.tagName=["EM","I"],t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=n(6),s=a(o);function a(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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}function u(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)}var h=function(e){function t(){return l(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),i(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(s.default);h.blotName="script",h.tagName=["SUB","SUP"],t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),r=o(i);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function l(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)}var c=function(e){function t(){return s(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(r.default);c.blotName="strike",c.tagName="S",t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),r=o(i);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function l(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)}var c=function(e){function t(){return s(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),t}(r.default);c.blotName="underline",c.tagName="U",t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=n(0),s=l(o),a=n(27);function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}function h(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)}var d=["alt","height","width"],f=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),i(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,a.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(s.default.Embed);f.blotName="image",f.tagName="IMG",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=n(4),s=n(27),a=l(s);function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}function h(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)}var d=["height","width"],f=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),i(t,[{key:"format",value:function(e,n){d.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return a.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(o.BlockEmbed);f.blotName="video",f.className="ql-video",f.tagName="IFRAME",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=n(35),s=h(o),a=n(5),l=h(a),c=n(9),u=h(c);function h(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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}function p(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)}var g=function(e){function t(){return d(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),i(t,null,[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(s.default);g.blotName="formula",g.className="ql-formula",g.tagName="SPAN";var m=function(e){function t(){d(this,t);var e=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return p(t,e),i(t,null,[{key:"register",value:function(){l.default.register(g,!0)}}]),t}(u.default);t.FormulaBlot=g,t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},o=n(0),s=f(o),a=n(5),l=f(a),c=n(9),u=f(c),h=n(13),d=f(h);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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}function m(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)}var v=function(e){function t(){return p(this,t),g(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return m(t,e),i(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(d.default);v.className="ql-syntax";var b=new s.default.Attributor.Class("token","hljs",{scope:s.default.Scope.INLINE}),y=function(e){function t(e,n){p(this,t);var i=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!==typeof i.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return i.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){i.highlight(),r=null}),i.options.interval)})),i.highlight(),i}return m(t,e),i(t,null,[{key:"register",value:function(){l.default.register(b,!0),l.default.register(v,!0)}}]),i(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(v).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=t&&this.quill.setSelection(t,l.default.sources.SILENT)}}}]),t}(u.default);y.DEFAULTS={highlight:function(){return null==window.hljs?null:function(e){var t=window.hljs.highlightAuto(e);return t.value}}(),interval:1e3},t.CodeBlock=v,t.CodeToken=b,t.default=y},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var i=function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,i)}if("value"in r)return r.value;var s=r.get;return void 0!==s?s.call(i):void 0},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(3),s=p(o),a=n(8),l=p(a),c=n(43),u=p(c),h=n(15),d=n(41),f=p(d);function p(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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}function v(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)}var b=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],y=function(e){function t(e,n){g(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=b);var i=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.quill.container.classList.add("ql-bubble"),i}return v(t,e),r(t,[{key:"extendToolbar",value:function(e){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),f.default)}}]),t}(u.default);y.DEFAULTS=(0,s.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=function(e){function t(e,n){g(this,t);var i=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.quill.on(l.default.events.EDITOR_CHANGE,(function(e,t,n,r){if(e===l.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&r===l.default.sources.USER){i.show(),i.root.style.left="0px",i.root.style.width="",i.root.style.width=i.root.offsetWidth+"px";var o=i.quill.getLines(t.index,t.length);if(1===o.length)i.position(i.quill.getBounds(t));else{var s=o[o.length-1],a=i.quill.getIndex(s),c=Math.min(s.length()-1,t.index+t.length-a),u=i.quill.getBounds(new h.Range(a,c));i.position(u)}}else document.activeElement!==i.textbox&&i.quill.hasFocus()&&i.hide()})),i}return v(t,e),r(t,[{key:"listen",value:function(){var e=this;i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),t}(c.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=_,t.default=y},function(e,t,n){e.exports=n(63)}])["default"]}))}).call(this,n("1c35").Buffer)},"93b9":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return n.e("chunk-2d0a43df").then(n.bind(null,"0636"))}})},"93ba":function(e,t,n){"use strict";n.r(t),n.d(t,"ToggleTabFocusModeAction",(function(){return a}));var i=n("dff7"),r=n("3813"),o=n("b2cc"),s=n("8830");class a extends o["b"]{constructor(){super({id:a.ID,label:i["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}})}run(e,t){const n=s["b"].getTabFocusMode(),o=!n;s["b"].setTabFocusMode(o),o?Object(r["a"])(i["a"]("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):Object(r["a"])(i["a"]("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}a.ID="editor.action.toggleTabFocusMode",Object(o["j"])(a)},"93d9":function(e,t,n){"use strict";n.d(t,"a",(function(){return it})),n.d(t,"b",(function(){return rt})),n.d(t,"e",(function(){return at})),n.d(t,"d",(function(){return Et})),n.d(t,"c",(function(){return Bt}));var i=n("11f7"),r=(n("e2b8"),n("a666")),o=n("e8e3"),s=n("72a7"),a=n("308f"),l=n("2504");class c{constructor(e,t){this.renderer=e,this.modelProvider=t}get templateId(){return this.renderer.templateId}renderTemplate(e){const t=this.renderer.renderTemplate(e);return{data:t,disposable:r["a"].None}}renderElement(e,t,n,i){if(n.disposable&&n.disposable.dispose(),!n.data)return;const r=this.modelProvider();if(r.isResolved(e))return this.renderer.renderElement(r.get(e),e,n.data,i);const o=new l["b"],s=r.resolve(e,o.token);n.disposable={dispose:()=>o.cancel()},this.renderer.renderPlaceholder(e,n.data),s.then(t=>this.renderer.renderElement(t,e,n.data,i))}disposeTemplate(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)}}class u{constructor(e,t){this.modelProvider=e,this.accessibilityProvider=t}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(e){const t=this.modelProvider();return t.isResolved(e)?this.accessibilityProvider.getAriaLabel(t.get(e)):null}}function h(e,t){return Object.assign(Object.assign({},t),{accessibilityProvider:t.accessibilityProvider&&new u(e,t.accessibilityProvider)})}class d{constructor(e,t,n,i,r={}){const o=()=>this.model,a=i.map(e=>new c(e,o));this.list=new s["c"](e,t,n,a,h(o,r))}updateOptions(e){this.list.updateOptions(e)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return a["c"].map(this.list.onMouseDblClick,({element:e,index:t,browserEvent:n})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:n}))}get onPointer(){return a["c"].map(this.list.onPointer,({element:e,index:t,browserEvent:n})=>({element:void 0===e?void 0:this._model.get(e),index:t,browserEvent:n}))}get onDidChangeSelection(){return a["c"].map(this.list.onDidChangeSelection,({elements:e,indexes:t,browserEvent:n})=>({elements:e.map(e=>this._model.get(e)),indexes:t,browserEvent:n}))}get model(){return this._model}set model(e){this._model=e,this.list.splice(0,this.list.length,Object(o["r"])(e.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map(e=>this.model.get(e))}style(e){this.list.style(e)}dispose(){this.list.dispose()}}var f,p=n("dff7"),g=n("fbba"),m=n("0910"),v=n("4fc3"),b=n("0a0f"),y=n("6dec"),_=n("89cd"),w=n("a6d7"),C=n("b7d0"),S=n("1665"),x=n("258a"),O=(n("d95f"),n("b835"));(function(e){e[e["Unknown"]=0]="Unknown",e[e["Twistie"]=1]="Twistie",e[e["Element"]=2]="Element"})(f||(f={}));class k extends Error{constructor(e,t){super(`TreeError [${e}] ${t}`)}}class L{constructor(e){this.fn=e,this._map=new WeakMap}map(e){let t=this._map.get(e);return t||(t=this.fn(e),this._map.set(e,t)),t}}var E=n("650e"),D=n("7de1"),I=n("e32d"),M=n("7e93"),T=n("1b0e");function A(e){return"object"===typeof e&&"visibility"in e&&"data"in e}function N(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function P(e){return"boolean"===typeof e.collapsible}class j{constructor(e,t,n,i={}){this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new a["d"],this._onDidChangeCollapseState=new a["b"],this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new a["b"],this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new a["b"],this.onDidSplice=this._onDidSplice.event,this.collapseByDefault="undefined"!==typeof i.collapseByDefault&&i.collapseByDefault,this.filter=i.filter,this.autoExpandSingleChildren="undefined"!==typeof i.autoExpandSingleChildren&&i.autoExpandSingleChildren,this.root={parent:void 0,element:n,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,n=x["a"].empty(),i={}){if(0===e.length)throw new k(this.user,"Invalid tree location");i.diffIdentityProvider?this.spliceSmart(i.diffIdentityProvider,e,t,n,i):this.spliceSimple(e,t,n,i)}spliceSmart(e,t,n,i,r,o){var s;void 0===i&&(i=x["a"].empty()),void 0===o&&(o=null!==(s=r.diffDepth)&&void 0!==s?s:0);const{parentNode:a}=this.getParentNodeWithListIndex(t),l=[...i],c=t[t.length-1],u=new T["a"]({getElements:()=>a.children.map(t=>e.getId(t.element).toString())},{getElements:()=>[...a.children.slice(0,c),...l,...a.children.slice(c+n)].map(t=>e.getId(t.element).toString())}).ComputeDiff(!1);if(u.quitEarly)return this.spliceSimple(t,n,l,r);const h=t.slice(0,-1),d=(t,n,i)=>{if(o>0)for(let s=0;s<i;s++)t--,n--,this.spliceSmart(e,[...h,t,0],Number.MAX_SAFE_INTEGER,l[n].children,r,o-1)};let f=Math.min(a.children.length,c+n),p=l.length;for(const g of u.changes.sort((e,t)=>t.originalStart-e.originalStart))d(f,p,f-(g.originalStart+g.originalLength)),f=g.originalStart,p=g.modifiedStart-c,this.spliceSimple([...h,f],g.originalLength,x["a"].slice(l,p,p+g.modifiedLength),r);d(f,p,f)}spliceSimple(e,t,n=x["a"].empty(),{onDidCreateNode:i,onDidDeleteNode:r}){const{parentNode:s,listIndex:a,revealed:l,visible:c}=this.getParentNodeWithListIndex(e),u=[],h=x["a"].map(n,e=>this.createTreeNode(e,s,s.visible?1:0,l,u,i)),d=e[e.length-1],f=s.children.length>0;let p=0;for(let o=d;o>=0&&o<s.children.length;o--){const e=s.children[o];if(e.visible){p=e.visibleChildIndex;break}}const g=[];let m=0,v=0;for(const o of h)g.push(o),v+=o.renderNodeCount,o.visible&&(o.visibleChildIndex=p+m++);const b=Object(o["s"])(s.children,d,t,g);let y=0;for(const o of b)o.visible&&y++;if(0!==y)for(let o=d+g.length;o<s.children.length;o++){const e=s.children[o];e.visible&&(e.visibleChildIndex-=y)}if(s.visibleChildrenCount+=m-y,l&&c){const e=b.reduce((e,t)=>e+(t.visible?t.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(s,v-e),this.list.splice(a,e,u)}if(b.length>0&&r){const e=t=>{r(t),t.children.forEach(e)};b.forEach(e)}const _=s.children.length>0;f!==_&&this.setCollapsible(e.slice(0,-1),_),this._onDidSplice.fire({insertedNodes:g,deletedNodes:b});let w=s;while(w){if(2===w.visibility){this.refilter();break}w=w.parent}}rerender(e){if(0===e.length)throw new k(this.user,"Invalid tree location");const{node:t,listIndex:n,revealed:i}=this.getTreeNodeWithListIndex(e);t.visible&&i&&this.list.splice(n,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){const{listIndex:t,visible:n,revealed:i}=this.getTreeNodeWithListIndex(e);return n&&i?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){const n=this.getTreeNode(e);"undefined"===typeof t&&(t=!n.collapsible);const i={collapsible:t};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,i))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,n){const i=this.getTreeNode(e);"undefined"===typeof t&&(t=!i.collapsed);const r={collapsed:t,recursive:n||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,r))}_setCollapseState(e,t){const{node:n,listIndex:i,revealed:r}=this.getTreeNodeWithListIndex(e),o=this._setListNodeCollapseState(n,i,r,t);if(n!==this.root&&this.autoExpandSingleChildren&&o&&!P(t)&&n.collapsible&&!n.collapsed&&!t.recursive){let i=-1;for(let e=0;e<n.children.length;e++){const t=n.children[e];if(t.visible){if(i>-1){i=-1;break}i=e}}i>-1&&this._setCollapseState([...e,i],t)}return o}_setListNodeCollapseState(e,t,n,i){const r=this._setNodeCollapseState(e,i,!1);if(!n||!e.visible||!r)return r;const o=e.renderNodeCount,s=this.updateNodeAfterCollapseChange(e),a=o-(-1===t?0:1);return this.list.splice(t+1,a,s.slice(1)),r}_setNodeCollapseState(e,t,n){let i;if(e===this.root?i=!1:(P(t)?(i=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(i=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):i=!1,i&&this._onDidChangeCollapseState.fire({node:e,deep:n})),!P(t)&&t.recursive)for(const r of e.children)i=this._setNodeCollapseState(r,t,!0)||i;return i}expandTo(e){this.eventBufferer.bufferEvents(()=>{let t=this.getTreeNode(e);while(t.parent)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})})}refilter(){const e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t)}createTreeNode(e,t,n,i,r,o){const s={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"===typeof e.collapsible?e.collapsible:"undefined"!==typeof e.collapsed,collapsed:"undefined"===typeof e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(s,n);s.visibility=a,i&&r.push(s);const l=e.children||x["a"].empty(),c=i&&0!==a&&!s.collapsed,u=x["a"].map(l,e=>this.createTreeNode(e,s,a,c,r,o));let h=0,d=1;for(const f of u)s.children.push(f),d+=f.renderNodeCount,f.visible&&(f.visibleChildIndex=h++);return s.collapsible=s.collapsible||s.children.length>0,s.visibleChildrenCount=h,s.visible=2===a?h>0:1===a,s.visible?s.collapsed||(s.renderNodeCount=d):(s.renderNodeCount=0,i&&r.pop()),o&&o(s),s}updateNodeAfterCollapseChange(e){const t=e.renderNodeCount,n=[];return this._updateNodeAfterCollapseChange(e,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n}_updateNodeAfterCollapseChange(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(const n of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(n,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){const t=e.renderNodeCount,n=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,n),this._updateAncestorsRenderNodeCount(e.parent,n.length-t),n}_updateNodeAfterFilterChange(e,t,n,i=!0){let r;if(e!==this.root){if(r=this._filterNode(e,t),0===r)return e.visible=!1,e.renderNodeCount=0,!1;i&&n.push(e)}const o=n.length;e.renderNodeCount=e===this.root?0:1;let s=!1;if(e.collapsed&&0===r)e.visibleChildrenCount=0;else{let t=0;for(const o of e.children)s=this._updateNodeAfterFilterChange(o,r,n,i&&!e.collapsed)||s,o.visible&&(o.visibleChildIndex=t++);e.visibleChildrenCount=t}return e!==this.root&&(e.visible=2===r?s:1===r),e.visible?e.collapsed||(e.renderNodeCount+=n.length-o):(e.renderNodeCount=0,i&&n.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(0!==t)while(e)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){const n=this.filter?this.filter.filter(e.element,t):1;return"boolean"===typeof n?(e.filterData=void 0,n?1:0):A(n)?(e.filterData=n.data,N(n.visibility)):(e.filterData=void 0,N(n))}hasTreeNode(e,t=this.root){if(!e||0===e.length)return!0;const[n,...i]=e;return!(n<0||n>t.children.length)&&this.hasTreeNode(i,t.children[n])}getTreeNode(e,t=this.root){if(!e||0===e.length)return t;const[n,...i]=e;if(n<0||n>t.children.length)throw new k(this.user,"Invalid tree location");return this.getTreeNode(i,t.children[n])}getTreeNodeWithListIndex(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:t,listIndex:n,revealed:i,visible:r}=this.getParentNodeWithListIndex(e),o=e[e.length-1];if(o<0||o>t.children.length)throw new k(this.user,"Invalid tree location");const s=t.children[o];return{node:s,listIndex:n,revealed:i,visible:r&&s.visible}}getParentNodeWithListIndex(e,t=this.root,n=0,i=!0,r=!0){const[o,...s]=e;if(o<0||o>t.children.length)throw new k(this.user,"Invalid tree location");for(let a=0;a<o;a++)n+=t.children[a].renderNodeCount;return i=i&&!t.collapsed,r=r&&t.visible,0===s.length?{parentNode:t,listIndex:n,revealed:i,visible:r}:this.getParentNodeWithListIndex(s,t.children[o],n+1,i,r)}getNode(e=[]){return this.getTreeNode(e)}getNodeLocation(e){const t=[];let n=e;while(n.parent)t.push(n.parent.children.indexOf(n)),n=n.parent;return t.reverse()}getParentNodeLocation(e){return 0===e.length?void 0:1===e.length?[]:Object(o["u"])(e)[0]}}var R=n("5fe7"),F=n("30db"),B=n("49d9"),W=n("be5f"),V=n("561a");const z=Object(V["e"])("tree-item-expanded",V["b"].chevronDown),H=Object(V["e"])("tree-filter-on-type-on",V["b"].listFilter),U=Object(V["e"])("tree-filter-on-type-off",V["b"].listSelection),q=Object(V["e"])("tree-filter-clear",V["b"].close),$=Object(V["e"])("tree-item-loading",V["b"].loading);class K extends D["a"]{constructor(e){super(e.elements.map(e=>e.element)),this.data=e}}function G(e){return e instanceof D["a"]?new K(e):e}class Y{constructor(e,t){this.modelProvider=e,this.dnd=t,this.autoExpandDisposable=r["a"].None}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(e=>e.element),t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(G(e),t)}onDragOver(e,t,n,i,r=!0){const s=this.dnd.onDragOver(G(e),t&&t.element,n,i),a=this.autoExpandNode!==t;if(a&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=t),"undefined"===typeof t)return s;if(a&&"boolean"!==typeof s&&s.autoExpand&&(this.autoExpandDisposable=Object(R["i"])(()=>{const e=this.modelProvider(),n=e.getNodeLocation(t);e.isCollapsed(n)&&e.setCollapsed(n,!1),this.autoExpandNode=void 0},500)),"boolean"===typeof s||!s.accept||"undefined"===typeof s.bubble||s.feedback){if(!r){const e="boolean"===typeof s?s:s.accept,t="boolean"===typeof s?void 0:s.effect;return{accept:e,effect:t,feedback:[n]}}return s}if(1===s.bubble){const n=this.modelProvider(),r=n.getNodeLocation(t),o=n.getParentNodeLocation(r),s=n.getNode(o),a=o&&n.getListIndex(o);return this.onDragOver(e,s,a,i,!1)}const l=this.modelProvider(),c=l.getNodeLocation(t),u=l.getListIndex(c),h=l.getListRenderCount(c);return Object.assign(Object.assign({},s),{feedback:Object(o["r"])(u,u+h)})}drop(e,t,n,i){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(G(e),t&&t.element,n,i)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}}function Z(e,t){return t&&Object.assign(Object.assign({},t),{identityProvider:t.identityProvider&&{getId(e){return t.identityProvider.getId(e.element)}},dnd:t.dnd&&new Y(e,t.dnd),multipleSelectionController:t.multipleSelectionController&&{isSelectionSingleChangeEvent(e){return t.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))},isSelectionRangeChangeEvent(e){return t.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},e),{element:e.element}))}},accessibilityProvider:t.accessibilityProvider&&Object.assign(Object.assign({},t.accessibilityProvider),{getSetSize(t){const n=e(),i=n.getNodeLocation(t),r=n.getParentNodeLocation(i),o=n.getNode(r);return o.visibleChildrenCount},getPosInSet(e){return e.visibleChildIndex+1},isChecked:t.accessibilityProvider&&t.accessibilityProvider.isChecked?e=>t.accessibilityProvider.isChecked(e.element):void 0,getRole:t.accessibilityProvider&&t.accessibilityProvider.getRole?e=>t.accessibilityProvider.getRole(e.element):()=>"treeitem",getAriaLabel(e){return t.accessibilityProvider.getAriaLabel(e.element)},getWidgetAriaLabel(){return t.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:t.accessibilityProvider&&t.accessibilityProvider.getWidgetRole?()=>t.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:t.accessibilityProvider&&t.accessibilityProvider.getAriaLevel?e=>t.accessibilityProvider.getAriaLevel(e.element):e=>e.depth,getActiveDescendantId:t.accessibilityProvider.getActiveDescendantId&&(e=>t.accessibilityProvider.getActiveDescendantId(e.element))}),keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},t.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(e){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e.element)}}),enableKeyboardNavigation:t.simpleKeyboardNavigation})}class X{constructor(e){this.delegate=e}getHeight(e){return this.delegate.getHeight(e.element)}getTemplateId(e){return this.delegate.getTemplateId(e.element)}hasDynamicHeight(e){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(e.element)}setDynamicHeight(e,t){this.delegate.setDynamicHeight&&this.delegate.setDynamicHeight(e.element,t)}}var Q;(function(e){e["None"]="none",e["OnHover"]="onHover",e["Always"]="always"})(Q||(Q={}));class J{constructor(e,t=[]){this._elements=t,this.onDidChange=a["c"].forEach(e,e=>this._elements=e)}get elements(){return this._elements}}class ee{constructor(e,t,n,i,o={}){this.renderer=e,this.modelProvider=t,this.activeNodes=i,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=ee.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.renderedIndentGuides=new W["a"],this.activeIndentNodes=new Set,this.indentGuidesDisposable=r["a"].None,this.disposables=new r["b"],this.templateId=e.templateId,this.updateOptions(o),a["c"].map(n,e=>e.node)(this.onDidChangeNodeTwistieState,this,this.disposables),e.onDidChangeTwistieState&&e.onDidChangeTwistieState(this.onDidChangeTwistieState,this,this.disposables)}updateOptions(e={}){if("undefined"!==typeof e.indent&&(this.indent=Object(B["b"])(e.indent,0,40)),"undefined"!==typeof e.renderIndentGuides){const t=e.renderIndentGuides!==Q.None;if(t!==this.shouldRenderIndentGuides&&(this.shouldRenderIndentGuides=t,this.indentGuidesDisposable.dispose(),t)){const e=new r["b"];this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,e),this.indentGuidesDisposable=e,this._onDidChangeActiveNodes(this.activeNodes.elements)}}"undefined"!==typeof e.hideTwistiesOfChildlessElements&&(this.hideTwistiesOfChildlessElements=e.hideTwistiesOfChildlessElements)}renderTemplate(e){const t=Object(i["q"])(e,Object(i["a"])(".monaco-tl-row")),n=Object(i["q"])(t,Object(i["a"])(".monaco-tl-indent")),o=Object(i["q"])(t,Object(i["a"])(".monaco-tl-twistie")),s=Object(i["q"])(t,Object(i["a"])(".monaco-tl-contents")),a=this.renderer.renderTemplate(s);return{container:e,indent:n,twistie:o,indentGuidesDisposable:r["a"].None,templateData:a}}renderElement(e,t,n,i){"number"===typeof i&&(this.renderedNodes.set(e,{templateData:n,height:i}),this.renderedElements.set(e.element,e));const r=ee.DefaultIndent+(e.depth-1)*this.indent;n.twistie.style.paddingLeft=r+"px",n.indent.style.width=r+this.indent-16+"px",this.renderTwistie(e,n),"number"===typeof i&&this.renderIndentGuides(e,n),this.renderer.renderElement(e,t,n.templateData,i)}disposeElement(e,t,n,i){n.indentGuidesDisposable.dispose(),this.renderer.disposeElement&&this.renderer.disposeElement(e,t,n.templateData,i),"number"===typeof i&&(this.renderedNodes.delete(e),this.renderedElements.delete(e.element))}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}onDidChangeTwistieState(e){const t=this.renderedElements.get(e);t&&this.onDidChangeNodeTwistieState(t)}onDidChangeNodeTwistieState(e){const t=this.renderedNodes.get(e);t&&(this.renderTwistie(e,t.templateData),this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderIndentGuides(e,t.templateData))}renderTwistie(e,t){t.twistie.classList.remove(...z.classNamesArray);let n=!1;this.renderer.renderTwistie&&(n=this.renderer.renderTwistie(e.element,t.twistie)),e.collapsible&&(!this.hideTwistiesOfChildlessElements||e.visibleChildrenCount>0)?(n||t.twistie.classList.add(...z.classNamesArray),t.twistie.classList.add("collapsible"),t.twistie.classList.toggle("collapsed",e.collapsed)):t.twistie.classList.remove("collapsible","collapsed"),e.collapsible?t.container.setAttribute("aria-expanded",String(!e.collapsed)):t.container.removeAttribute("aria-expanded")}renderIndentGuides(e,t){if(Object(i["t"])(t.indent),t.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const n=new r["b"],o=this.modelProvider();let s=e;while(1){const e=o.getNodeLocation(s),a=o.getParentNodeLocation(e);if(!a)break;const l=o.getNode(a),c=Object(i["a"])(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(l)&&c.classList.add("active"),0===t.indent.childElementCount?t.indent.appendChild(c):t.indent.insertBefore(c,t.indent.firstElementChild),this.renderedIndentGuides.add(l,c),n.add(Object(r["i"])(()=>this.renderedIndentGuides.delete(l,c))),s=l}t.indentGuidesDisposable=n}_onDidChangeActiveNodes(e){if(!this.shouldRenderIndentGuides)return;const t=new Set,n=this.modelProvider();e.forEach(e=>{const i=n.getNodeLocation(e);try{const r=n.getParentNodeLocation(i);e.collapsible&&e.children.length>0&&!e.collapsed?t.add(e):r&&t.add(n.getNode(r))}catch(r){}}),this.activeIndentNodes.forEach(e=>{t.has(e)||this.renderedIndentGuides.forEach(e,e=>e.classList.remove("active"))}),t.forEach(e=>{this.activeIndentNodes.has(e)||this.renderedIndentGuides.forEach(e,e=>e.classList.add("active"))}),this.activeIndentNodes=t}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Object(r["f"])(this.disposables)}}ee.DefaultIndent=8;class te{constructor(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 r["b"],e.onWillRefilter(this.reset,this,this.disposables)}get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}set pattern(e){this._pattern=e,this._lowercasePattern=e.toLowerCase()}filter(e,t){if(this._filter){const n=this._filter.filter(e,t);if(this.tree.options.simpleKeyboardNavigation)return n;let i;if(i="boolean"===typeof n?n?1:0:A(n)?N(n.visibility):n,0===i)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:M["a"].Default,visibility:!0};const n=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(e),i=Array.isArray(n)?n:[n];for(const r of i){const e=r&&r.toString();if("undefined"===typeof e)return{data:M["a"].Default,visibility:!0};const t=Object(M["d"])(this._pattern,this._lowercasePattern,0,e,e.toLowerCase(),0,!0);if(t)return this._matchCount++,1===i.length?{data:t,visibility:!0}:{data:{label:e,score:t},visibility:!0}}return this.tree.options.filterOnType?2:{data:M["a"].Default,visibility:!0}}reset(){this._totalCount=0,this._matchCount=0}dispose(){Object(r["f"])(this.disposables)}}class ne{constructor(e,t,n,o,s){this.tree=e,this.view=n,this.filter=o,this.keyboardNavigationDelegate=s,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new a["b"],this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new a["b"],this.enabledDisposables=new r["b"],this.disposables=new r["b"],this.domNode=Object(i["a"])(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,this.disposables.add(Object(i["i"])(this.domNode,"dragstart",()=>this.onDragStart())),this.messageDomNode=Object(i["q"])(n.getHTMLElement(),Object(i["a"])(".monaco-list-type-filter-message")),this.labelDomNode=Object(i["q"])(this.domNode,Object(i["a"])("span.label"));const l=Object(i["q"])(this.domNode,Object(i["a"])(".controls"));this._filterOnType=!!e.options.filterOnType,this.filterOnTypeDomNode=Object(i["q"])(l,Object(i["a"])("input.filter")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitleAndIcon(),this.disposables.add(Object(i["i"])(this.filterOnTypeDomNode,"input",()=>this.onDidChangeFilterOnType())),this.clearDomNode=Object(i["q"])(l,Object(i["a"])("button.clear"+q.cssSelector)),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(p["a"])("clear","Clear"),this.keyboardNavigationEventFilter=e.options.keyboardNavigationEventFilter,t.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(e.options)}get enabled(){return this._enabled}get pattern(){return this._pattern}get filterOnType(){return this._filterOnType}updateOptions(e){e.simpleKeyboardNavigation?this.disable():this.enable(),"undefined"!==typeof e.filterOnType&&(this._filterOnType=!!e.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType,this.updateFilterOnTypeTitleAndIcon()),"undefined"!==typeof e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")}enable(){if(this._enabled)return;const e=this.enabledDisposables.add(new I["a"](this.view.getHTMLElement(),"keydown")),t=a["c"].chain(e.event).filter(e=>!Object(s["e"])(e.target)||e.target===this.filterOnTypeDomNode).filter(e=>"Dead"!==e.key&&!/^Media/.test(e.key)).map(e=>new O["a"](e)).filter(this.keyboardNavigationEventFilter||(()=>!0)).filter(()=>this.automaticKeyboardNavigation||this.triggered).filter(e=>this.keyboardNavigationDelegate.mightProducePrintableCharacter(e)&&!(18===e.keyCode||16===e.keyCode||15===e.keyCode||17===e.keyCode)||(this.pattern.length>0||this.triggered)&&(9===e.keyCode||1===e.keyCode)&&!e.altKey&&!e.ctrlKey&&!e.metaKey||1===e.keyCode&&(F["f"]?e.altKey&&!e.metaKey:e.ctrlKey)&&!e.shiftKey).forEach(e=>{e.stopPropagation(),e.preventDefault()}).event,n=this.enabledDisposables.add(new I["a"](this.clearDomNode,"click"));a["c"].chain(a["c"].any(t,n.event)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1}disable(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1)}onEventOrInput(e){"string"===typeof e?this.onInput(e):e instanceof MouseEvent||9===e.keyCode||1===e.keyCode&&(F["f"]?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)}onInput(e){const 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,e=>!M["a"].isDefault(e.filterData));const n=this.tree.getFocus();if(n.length>0){const e=n[0];null===this.tree.getRelativeTop(e)&&this.tree.reveal(e,.5)}this.render(),e||(this.triggered=!1)}onDragStart(){const e=this.view.getHTMLElement(),{left:t}=Object(i["D"])(e),n=e.clientWidth,o=n/2,s=this.domNode.clientWidth,a=new r["b"];let l=this.positionClassName;const c=()=>{switch(l){case"nw":this.domNode.style.top="4px",this.domNode.style.left="4px";break;case"ne":this.domNode.style.top="4px",this.domNode.style.left=n-s-6+"px";break}},u=e=>{e.preventDefault();const n=e.clientX-t;e.dataTransfer&&(e.dataTransfer.dropEffect="none"),l=n<o?"nw":"ne",c()},h=()=>{this.positionClassName=l,this.domNode.className="monaco-list-type-filter "+this.positionClassName,this.domNode.style.top="",this.domNode.style.left="",Object(r["f"])(a)};c(),this.domNode.classList.remove(l),this.domNode.classList.add("dragging"),a.add(Object(r["i"])(()=>this.domNode.classList.remove("dragging"))),a.add(Object(i["i"])(document,"dragover",e=>u(e))),a.add(Object(i["i"])(this.domNode,"dragend",()=>h())),E["c"].CurrentDragAndDropData=new E["b"]("vscode-ui"),a.add(Object(r["i"])(()=>E["c"].CurrentDragAndDropData=void 0))}onDidSpliceModel(){this._enabled&&0!==this.pattern.length&&(this.tree.refilter(),this.render())}onDidChangeFilterOnType(){this.tree.updateOptions({filterOnType:this.filterOnTypeDomNode.checked}),this.tree.refilter(),this.tree.domFocus(),this.render(),this.updateFilterOnTypeTitleAndIcon()}updateFilterOnTypeTitleAndIcon(){this.filterOnType?(this.filterOnTypeDomNode.classList.remove(...U.classNamesArray),this.filterOnTypeDomNode.classList.add(...H.classNamesArray),this.filterOnTypeDomNode.title=Object(p["a"])("disable filter on type","Disable Filter on Type")):(this.filterOnTypeDomNode.classList.remove(...H.classNamesArray),this.filterOnTypeDomNode.classList.add(...U.classNamesArray),this.filterOnTypeDomNode.title=Object(p["a"])("enable filter on type","Enable Filter on Type"))}render(){const e=this.filter.totalCount>0&&0===this.filter.matchCount;this.pattern&&this.tree.options.filterOnType&&e?(this.messageDomNode.textContent=Object(p["a"])("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerText="",this._empty=!1),this.domNode.classList.toggle("no-matches",e),this.domNode.title=Object(p["a"])("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"…"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)}shouldAllowFocus(e){return!(this.enabled&&this.pattern&&!this.filterOnType)||(this.filter.totalCount>0&&this.filter.matchCount<=1||!M["a"].isDefault(e.filterData))}dispose(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Object(r["f"])(this.disposables)}}function ie(e){let t=f.Unknown;return Object(i["J"])(e.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?t=f.Twistie:Object(i["J"])(e.browserEvent.target,"monaco-tl-contents","monaco-tl-row")&&(t=f.Element),{browserEvent:e.browserEvent,element:e.element?e.element.element:null,target:t}}function re(e,t){t(e),e.children.forEach(e=>re(e,t))}class oe{constructor(e,t){this.getFirstViewElementWithTrait=e,this.identityProvider=t,this.nodes=[],this._onDidChange=new a["b"],this.onDidChange=this._onDidChange.event}get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}set(e,t){var n;!(null===(n=t)||void 0===n?void 0:n.__forceEvent)&&Object(o["h"])(this.nodes,e)||this._set(e,!1,t)}_set(e,t,n){if(this.nodes=[...e],this.elements=void 0,this._nodeSet=void 0,!t){const e=this;this._onDidChange.fire({get elements(){return e.get()},browserEvent:n})}}get(){return this.elements||(this.elements=this.nodes.map(e=>e.element)),[...this.elements]}getNodes(){return this.nodes}has(e){return this.nodeSet.has(e)}onDidModelSplice({insertedNodes:e,deletedNodes:t}){if(!this.identityProvider){const e=this.createNodeSet(),n=t=>e.delete(t);return t.forEach(e=>re(e,n)),void this.set([...e.values()])}const n=new Set,i=e=>n.add(this.identityProvider.getId(e.element).toString());t.forEach(e=>re(e,i));const r=new Map,o=e=>r.set(this.identityProvider.getId(e.element).toString(),e);e.forEach(e=>re(e,o));const s=[];for(const a of this.nodes){const e=this.identityProvider.getId(a.element).toString(),t=n.has(e);if(t){const t=r.get(e);t&&s.push(t)}else s.push(a)}if(this.nodes.length>0&&0===s.length){const e=this.getFirstViewElementWithTrait();e&&s.push(e)}this._set(s,!0)}createNodeSet(){const e=new Set;for(const t of this.nodes)e.add(t);return e}}class se extends s["d"]{constructor(e,t){super(e),this.tree=t}onViewPointer(e){if(Object(s["e"])(e.browserEvent.target)||Object(s["f"])(e.browserEvent.target))return;const t=e.element;if(!t)return super.onViewPointer(e);if(this.isSelectionRangeChangeEvent(e)||this.isSelectionSingleChangeEvent(e))return super.onViewPointer(e);const n=e.browserEvent.target,i=n.classList.contains("monaco-tl-twistie")||n.classList.contains("monaco-icon-label")&&n.classList.contains("folder-icon")&&e.browserEvent.offsetX<16;let r=!1;if(r="function"===typeof this.tree.expandOnlyOnTwistieClick?this.tree.expandOnlyOnTwistieClick(t.element):!!this.tree.expandOnlyOnTwistieClick,r&&!i&&2!==e.browserEvent.detail)return super.onViewPointer(e);if(!this.tree.expandOnDoubleClick&&2===e.browserEvent.detail)return super.onViewPointer(e);if(t.collapsible){const n=this.tree.model,o=n.getNodeLocation(t),s=e.browserEvent.altKey;if(this.tree.setFocus([o]),n.setCollapsed(o,void 0,s),r&&i)return}super.onViewPointer(e)}onDoubleClick(e){const t=e.browserEvent.target.classList.contains("monaco-tl-twistie");!t&&this.tree.expandOnDoubleClick&&super.onDoubleClick(e)}}class ae extends s["c"]{constructor(e,t,n,i,r,o,s,a){super(e,t,n,i,a),this.focusTrait=r,this.selectionTrait=o,this.anchorTrait=s}createMouseController(e){return new se(this,e.tree)}splice(e,t,n=[]){if(super.splice(e,t,n),0===n.length)return;const i=[],r=[];let s;n.forEach((t,n)=>{this.focusTrait.has(t)&&i.push(e+n),this.selectionTrait.has(t)&&r.push(e+n),this.anchorTrait.has(t)&&(s=e+n)}),i.length>0&&super.setFocus(Object(o["g"])([...super.getFocus(),...i])),r.length>0&&super.setSelection(Object(o["g"])([...super.getSelection(),...r])),"number"===typeof s&&super.setAnchor(s)}setFocus(e,t,n=!1){super.setFocus(e,t),n||this.focusTrait.set(e.map(e=>this.element(e)),t)}setSelection(e,t,n=!1){super.setSelection(e,t),n||this.selectionTrait.set(e.map(e=>this.element(e)),t)}setAnchor(e,t=!1){super.setAnchor(e),t||("undefined"===typeof e?this.anchorTrait.set([]):this.anchorTrait.set([this.element(e)]))}}class le{constructor(e,t,n,o,l={}){this._options=l,this.eventBufferer=new a["d"],this.disposables=new r["b"],this._onWillRefilter=new a["b"],this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new a["b"];const c=new X(n),u=new a["f"],h=new a["f"],d=new J(h.event);this.renderers=o.map(e=>new ee(e,()=>this.model,u.event,d,l));for(let i of this.renderers)this.disposables.add(i);let f;l.keyboardNavigationLabelProvider&&(f=new te(this,l.keyboardNavigationLabelProvider,l.filter),l=Object.assign(Object.assign({},l),{filter:f}),this.disposables.add(f)),this.focus=new oe(()=>this.view.getFocusedElements()[0],l.identityProvider),this.selection=new oe(()=>this.view.getSelectedElements()[0],l.identityProvider),this.anchor=new oe(()=>this.view.getAnchorElement(),l.identityProvider),this.view=new ae(e,t,c,this.renderers,this.focus,this.selection,this.anchor,Object.assign(Object.assign({},Z(()=>this.model,l)),{tree:this})),this.model=this.createModel(e,this.view,l),u.input=this.model.onDidChangeCollapseState;const p=a["c"].forEach(this.model.onDidSplice,e=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(e),this.selection.onDidModelSplice(e)})});if(p(()=>null,null,this.disposables),h.input=a["c"].chain(a["c"].any(p,this.focus.onDidChange,this.selection.onDidChange)).debounce(()=>null,0).map(()=>{const e=new Set;for(const t of this.focus.getNodes())e.add(t);for(const t of this.selection.getNodes())e.add(t);return[...e.values()]}).event,!1!==l.keyboardSupport){const e=a["c"].chain(this.view.onKeyDown).filter(e=>!Object(s["e"])(e.target)).map(e=>new O["a"](e));e.filter(e=>15===e.keyCode).on(this.onLeftArrow,this,this.disposables),e.filter(e=>17===e.keyCode).on(this.onRightArrow,this,this.disposables),e.filter(e=>10===e.keyCode).on(this.onSpace,this,this.disposables)}if(l.keyboardNavigationLabelProvider){const e=l.keyboardNavigationDelegate||s["a"];this.typeFilterController=new ne(this,this.model,this.view,f,e),this.focusNavigationFilter=e=>this.typeFilterController.shouldAllowFocus(e),this.disposables.add(this.typeFilterController)}this.styleElement=Object(i["w"])(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===Q.Always)}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return a["c"].map(this.view.onMouseDblClick,ie)}get onPointer(){return a["c"].map(this.view.onPointer,ie)}get onDidFocus(){return this.view.onDidFocus}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get expandOnDoubleClick(){return"undefined"===typeof this._options.expandOnDoubleClick||this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return"undefined"===typeof this._options.expandOnlyOnTwistieClick||this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}updateOptions(e={}){this._options=Object.assign(Object.assign({},this._options),e);for(const t of this.renderers)t.updateOptions(e);this.view.updateOptions(Object.assign(Object.assign({},this._options),{enableKeyboardNavigation:this._options.simpleKeyboardNavigation})),this.typeFilterController&&this.typeFilterController.updateOptions(this._options),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===Q.Always)}get options(){return this._options}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(e){this.view.scrollTop=e}domFocus(){this.view.domFocus()}layout(e,t){this.view.layout(e,t)}style(e){const 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}; }`)),this.styleElement.textContent=n.join("\n"),this.view.style(e)}collapse(e,t=!1){return this.model.setCollapsed(e,!0,t)}expand(e,t=!1){return this.model.setCollapsed(e,!1,t)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(e,t){const n=e.map(e=>this.model.getNode(e));this.selection.set(n,t);const i=e.map(e=>this.model.getListIndex(e)).filter(e=>e>-1);this.view.setSelection(i,t,!0)}getSelection(){return this.selection.get()}setFocus(e,t){const n=e.map(e=>this.model.getNode(e));this.focus.set(n,t);const i=e.map(e=>this.model.getListIndex(e)).filter(e=>e>-1);this.view.setFocus(i,t,!0)}focusNext(e=1,t=!1,n,i=this.focusNavigationFilter){this.view.focusNext(e,t,n,i)}getFocus(){return this.focus.get()}reveal(e,t){this.model.expandTo(e);const n=this.model.getListIndex(e);-1!==n&&this.view.reveal(n,t)}getRelativeTop(e){const t=this.model.getListIndex(e);return-1===t?null:this.view.getRelativeTop(t)}onLeftArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const n=t[0],i=this.model.getNodeLocation(n),r=this.model.setCollapsed(i,!0);if(!r){const e=this.model.getParentNodeLocation(i);if(!e)return;const t=this.model.getListIndex(e);this.view.reveal(t),this.view.setFocus([t])}}onRightArrow(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const n=t[0],i=this.model.getNodeLocation(n),r=this.model.setCollapsed(i,!1);if(!r){if(!n.children.some(e=>e.visible))return;const[e]=this.view.getFocus(),t=e+1;this.view.reveal(t),this.view.setFocus([t])}}onSpace(e){e.preventDefault(),e.stopPropagation();const t=this.view.getFocusedElements();if(0===t.length)return;const n=t[0],i=this.model.getNodeLocation(n),r=e.browserEvent.altKey;this.model.setCollapsed(i,void 0,r)}dispose(){Object(r["f"])(this.disposables),this.view.dispose()}}class ce{constructor(e,t,n={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new j(e,t,null,n),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,n.sorter&&(this.sorter={compare(e,t){return n.sorter.compare(e.element,t.element)}}),this.identityProvider=n.identityProvider}setChildren(e,t=x["a"].empty(),n={}){const i=this.getElementLocation(e);this._setChildren(i,this.preserveCollapseState(t),n)}_setChildren(e,t=x["a"].empty(),n){const i=new Set,r=new Set,o=e=>{var t;if(null===e.element)return;const o=e;if(i.add(o.element),this.nodes.set(o.element,o),this.identityProvider){const e=this.identityProvider.getId(o.element).toString();r.add(e),this.nodesByIdentity.set(e,o)}null===(t=n.onDidCreateNode)||void 0===t||t.call(n,o)},s=e=>{var t;if(null===e.element)return;const o=e;if(i.has(o.element)||this.nodes.delete(o.element),this.identityProvider){const e=this.identityProvider.getId(o.element).toString();r.has(e)||this.nodesByIdentity.delete(e)}null===(t=n.onDidDeleteNode)||void 0===t||t.call(n,o)};this.model.splice([...e,0],Number.MAX_VALUE,t,Object.assign(Object.assign({},n),{onDidCreateNode:o,onDidDeleteNode:s}))}preserveCollapseState(e=x["a"].empty()){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),x["a"].map(e,e=>{let t=this.nodes.get(e.element);if(!t&&this.identityProvider){const n=this.identityProvider.getId(e.element).toString();t=this.nodesByIdentity.get(n)}if(!t)return Object.assign(Object.assign({},e),{children:this.preserveCollapseState(e.children)});const n="boolean"===typeof e.collapsible?e.collapsible:t.collapsible,i="undefined"!==typeof e.collapsed?e.collapsed:t.collapsed;return Object.assign(Object.assign({},e),{collapsible:n,collapsed:i,children:this.preserveCollapseState(e.children)})})}rerender(e){const t=this.getElementLocation(e);this.model.rerender(t)}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getElementLocation(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getElementLocation(e);return this.model.getListRenderCount(t)}isCollapsible(e){const t=this.getElementLocation(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const n=this.getElementLocation(e);return this.model.setCollapsible(n,t)}isCollapsed(e){const t=this.getElementLocation(e);return this.model.isCollapsed(t)}setCollapsed(e,t,n){const i=this.getElementLocation(e);return this.model.setCollapsed(i,t,n)}expandTo(e){const t=this.getElementLocation(e);this.model.expandTo(t)}refilter(){this.model.refilter()}getNode(e=null){if(null===e)return this.model.getNode(this.model.rootRef);const t=this.nodes.get(e);if(!t)throw new k(this.user,"Tree element not found: "+e);return t}getNodeLocation(e){return e.element}getParentNodeLocation(e){if(null===e)throw new k(this.user,"Invalid getParentNodeLocation call");const t=this.nodes.get(e);if(!t)throw new k(this.user,"Tree element not found: "+e);const n=this.model.getNodeLocation(t),i=this.model.getParentNodeLocation(n),r=this.model.getNode(i);return r.element}getElementLocation(e){if(null===e)return[];const t=this.nodes.get(e);if(!t)throw new k(this.user,"Tree element not found: "+e);return this.model.getNodeLocation(t)}}function ue(e){const t=[e.element],n=e.incompressible||!1;return{element:{elements:t,incompressible:n},children:x["a"].map(x["a"].from(e.children),ue),collapsible:e.collapsible,collapsed:e.collapsed}}function he(e){const t=[e.element],n=e.incompressible||!1;let i,r;while(1){if([r,i]=x["a"].consume(x["a"].from(e.children),2),1!==r.length)break;if(r[0].incompressible)break;e=r[0],t.push(e.element)}return{element:{elements:t,incompressible:n},children:x["a"].map(x["a"].concat(r,i),he),collapsible:e.collapsible,collapsed:e.collapsed}}function de(e,t=0){let n;return n=t<e.element.elements.length-1?[de(e,t+1)]:x["a"].map(x["a"].from(e.children),e=>de(e,0)),0===t&&e.element.incompressible?{element:e.element.elements[t],children:n,incompressible:!0,collapsible:e.collapsible,collapsed:e.collapsed}:{element:e.element.elements[t],children:n,collapsible:e.collapsible,collapsed:e.collapsed}}function fe(e){return de(e,0)}function pe(e,t,n){return e.element===t?Object.assign(Object.assign({},e),{children:n}):Object.assign(Object.assign({},e),{children:x["a"].map(x["a"].from(e.children),e=>pe(e,t,n))})}const ge=e=>({getId(t){return t.elements.map(t=>e.getId(t).toString()).join("\0")}});class me{constructor(e,t,n={}){this.user=e,this.rootRef=null,this.nodes=new Map,this.model=new ce(e,t,n),this.enabled="undefined"===typeof n.compressionEnabled||n.compressionEnabled,this.identityProvider=n.identityProvider}get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}setChildren(e,t=x["a"].empty(),n){const i=n.diffIdentityProvider&&ge(n.diffIdentityProvider);if(null===e){const e=x["a"].map(t,this.enabled?he:ue);return void this._setChildren(null,e,{diffIdentityProvider:i,diffDepth:1/0})}const r=this.nodes.get(e);if(!r)throw new Error("Unknown compressed tree node");const o=this.model.getNode(r),s=this.model.getParentNodeLocation(r),a=this.model.getNode(s),l=fe(o),c=pe(l,e,t),u=(this.enabled?he:ue)(c),h=a.children.map(e=>e===o?u:e);this._setChildren(a.element,h,{diffIdentityProvider:i,diffDepth:o.depth-a.depth})}setCompressionEnabled(e){if(e===this.enabled)return;this.enabled=e;const t=this.model.getNode(),n=t.children,i=x["a"].map(n,fe),r=x["a"].map(i,e?he:ue);this._setChildren(null,r,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(e,t,n){const i=new Set,r=e=>{for(const t of e.element.elements)i.add(t),this.nodes.set(t,e.element)},o=e=>{for(const t of e.element.elements)i.has(t)||this.nodes.delete(t)};this.model.setChildren(e,t,Object.assign(Object.assign({},n),{onDidCreateNode:r,onDidDeleteNode:o}))}has(e){return this.nodes.has(e)}getListIndex(e){const t=this.getCompressedNode(e);return this.model.getListIndex(t)}getListRenderCount(e){const t=this.getCompressedNode(e);return this.model.getListRenderCount(t)}getNode(e){if("undefined"===typeof e)return this.model.getNode();const t=this.getCompressedNode(e);return this.model.getNode(t)}getNodeLocation(e){const t=this.model.getNodeLocation(e);return null===t?null:t.elements[t.elements.length-1]}getParentNodeLocation(e){const t=this.getCompressedNode(e),n=this.model.getParentNodeLocation(t);return null===n?null:n.elements[n.elements.length-1]}isCollapsible(e){const t=this.getCompressedNode(e);return this.model.isCollapsible(t)}setCollapsible(e,t){const n=this.getCompressedNode(e);return this.model.setCollapsible(n,t)}isCollapsed(e){const t=this.getCompressedNode(e);return this.model.isCollapsed(t)}setCollapsed(e,t,n){const i=this.getCompressedNode(e);return this.model.setCollapsed(i,t,n)}expandTo(e){const t=this.getCompressedNode(e);this.model.expandTo(t)}rerender(e){const t=this.getCompressedNode(e);this.model.rerender(t)}refilter(){this.model.refilter()}getCompressedNode(e){if(null===e)return null;const t=this.nodes.get(e);if(!t)throw new k(this.user,"Tree element not found: "+e);return t}}const ve=e=>e[e.length-1];class be{constructor(e,t){this.unwrapper=e,this.node=t}get element(){return null===this.node.element?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(e=>new be(this.unwrapper,e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}function ye(e,t){return{splice(n,i,r){t.splice(n,i,r.map(t=>e.map(t)))},updateElementHeight(e,n){t.updateElementHeight(e,n)}}}function _e(e,t){return Object.assign(Object.assign({},t),{identityProvider:t.identityProvider&&{getId(n){return t.identityProvider.getId(e(n))}},sorter:t.sorter&&{compare(e,n){return t.sorter.compare(e.elements[0],n.elements[0])}},filter:t.filter&&{filter(n,i){return t.filter.filter(e(n),i)}}})}class we{constructor(e,t,n={}){this.rootRef=null,this.elementMapper=n.elementMapper||ve;const i=e=>this.elementMapper(e.elements);this.nodeMapper=new L(e=>new be(i,e)),this.model=new me(e,ye(this.nodeMapper,t),_e(i,n))}get onDidSplice(){return a["c"].map(this.model.onDidSplice,({insertedNodes:e,deletedNodes:t})=>({insertedNodes:e.map(e=>this.nodeMapper.map(e)),deletedNodes:t.map(e=>this.nodeMapper.map(e))}))}get onDidChangeCollapseState(){return a["c"].map(this.model.onDidChangeCollapseState,({node:e,deep:t})=>({node:this.nodeMapper.map(e),deep:t}))}get onDidChangeRenderNodeCount(){return a["c"].map(this.model.onDidChangeRenderNodeCount,e=>this.nodeMapper.map(e))}setChildren(e,t=x["a"].empty(),n={}){this.model.setChildren(e,t,n)}setCompressionEnabled(e){this.model.setCompressionEnabled(e)}has(e){return this.model.has(e)}getListIndex(e){return this.model.getListIndex(e)}getListRenderCount(e){return this.model.getListRenderCount(e)}getNode(e){return this.nodeMapper.map(this.model.getNode(e))}getNodeLocation(e){return e.element}getParentNodeLocation(e){return this.model.getParentNodeLocation(e)}isCollapsible(e){return this.model.isCollapsible(e)}setCollapsible(e,t){return this.model.setCollapsible(e,t)}isCollapsed(e){return this.model.isCollapsed(e)}setCollapsed(e,t,n){return this.model.setCollapsed(e,t,n)}expandTo(e){return this.model.expandTo(e)}rerender(e){return this.model.rerender(e)}refilter(){return this.model.refilter()}getCompressedTreeNode(e=null){return this.model.getNode(e)}}var Ce=n("6424"),Se=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};class xe extends le{constructor(e,t,n,i,r={}){super(e,t,n,i,r)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}setChildren(e,t=x["a"].empty(),n){this.model.setChildren(e,t,n)}rerender(e){void 0!==e?this.model.rerender(e):this.view.rerender()}hasElement(e){return this.model.has(e)}createModel(e,t,n){return new ce(e,t,n)}}class Oe{constructor(e,t){this._compressedTreeNodeProvider=e,this.renderer=t,this.templateId=t.templateId,t.onDidChangeTwistieState&&(this.onDidChangeTwistieState=t.onDidChangeTwistieState)}get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}renderTemplate(e){const t=this.renderer.renderTemplate(e);return{compressedTreeNode:void 0,data:t}}renderElement(e,t,n,i){const r=this.compressedTreeNodeProvider.getCompressedTreeNode(e.element);1===r.element.elements.length?(n.compressedTreeNode=void 0,this.renderer.renderElement(e,t,n.data,i)):(n.compressedTreeNode=r,this.renderer.renderCompressedElements(r,t,n.data,i))}disposeElement(e,t,n,i){n.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(n.compressedTreeNode,t,n.data,i):this.renderer.disposeElement&&this.renderer.disposeElement(e,t,n.data,i)}disposeTemplate(e){this.renderer.disposeTemplate(e.data)}renderTwistie(e,t){return!!this.renderer.renderTwistie&&this.renderer.renderTwistie(e,t)}}function ke(e,t){return t&&Object.assign(Object.assign({},t),{keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(n){let i;try{i=e().getCompressedTreeNode(n)}catch(r){return t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(n)}return 1===i.element.elements.length?t.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(n):t.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(i.element.elements)}}})}Se([Ce["a"]],Oe.prototype,"compressedTreeNodeProvider",null);class Le extends xe{constructor(e,t,n,i,r={}){const o=()=>this,s=i.map(e=>new Oe(o,e));super(e,t,n,s,ke(o,r))}setChildren(e,t=x["a"].empty(),n){this.model.setChildren(e,t,n)}createModel(e,t,n){return new we(e,t,n)}updateOptions(e={}){super.updateOptions(e),"undefined"!==typeof e.compressionEnabled&&this.model.setCompressionEnabled(e.compressionEnabled)}getCompressedTreeNode(e=null){return this.model.getCompressedTreeNode(e)}}var Ee=n("fdcc"),De=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function Ie(e){return Object.assign(Object.assign({},e),{children:[],refreshPromise:void 0,stale:!0,slow:!1,collapsedByDefault:void 0})}function Me(e,t){return!!t.parent&&(t.parent===e||Me(e,t.parent))}function Te(e,t){return e===t||Me(e,t)||Me(t,e)}class Ae{constructor(e){this.node=e}get element(){return this.node.element.element}get children(){return this.node.children.map(e=>new Ae(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class Ne{constructor(e,t,n){this.renderer=e,this.nodeMapper=t,this.onDidChangeTwistieState=n,this.renderedNodes=new Map,this.templateId=e.templateId}renderTemplate(e){const t=this.renderer.renderTemplate(e);return{templateData:t}}renderElement(e,t,n,i){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,i)}renderTwistie(e,t){return e.slow?(t.classList.add(...$.classNamesArray),!0):(t.classList.remove(...$.classNamesArray),!1)}disposeElement(e,t,n,i){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,n.templateData,i)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear()}}function Pe(e){return{browserEvent:e.browserEvent,elements:e.elements.map(e=>e.element)}}function je(e){return{browserEvent:e.browserEvent,element:e.element&&e.element.element,target:e.target}}class Re extends D["a"]{constructor(e){super(e.elements.map(e=>e.element)),this.data=e}}function Fe(e){return e instanceof D["a"]?new Re(e):e}class Be{constructor(e){this.dnd=e}getDragURI(e){return this.dnd.getDragURI(e.element)}getDragLabel(e,t){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e.map(e=>e.element),t)}onDragStart(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(Fe(e),t)}onDragOver(e,t,n,i,r=!0){return this.dnd.onDragOver(Fe(e),t&&t.element,n,i)}drop(e,t,n,i){this.dnd.drop(Fe(e),t&&t.element,n,i)}onDragEnd(e){this.dnd.onDragEnd&&this.dnd.onDragEnd(e)}}function We(e){return e&&Object.assign(Object.assign({},e),{collapseByDefault:!0,identityProvider:e.identityProvider&&{getId(t){return e.identityProvider.getId(t.element)}},dnd:e.dnd&&new Be(e.dnd),multipleSelectionController:e.multipleSelectionController&&{isSelectionSingleChangeEvent(t){return e.multipleSelectionController.isSelectionSingleChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))},isSelectionRangeChangeEvent(t){return e.multipleSelectionController.isSelectionRangeChangeEvent(Object.assign(Object.assign({},t),{element:t.element}))}},accessibilityProvider:e.accessibilityProvider&&Object.assign(Object.assign({},e.accessibilityProvider),{getPosInSet:void 0,getSetSize:void 0,getRole:e.accessibilityProvider.getRole?t=>e.accessibilityProvider.getRole(t.element):()=>"treeitem",isChecked:e.accessibilityProvider.isChecked?t=>{var n;return!!(null===(n=e.accessibilityProvider)||void 0===n?void 0:n.isChecked(t.element))}:void 0,getAriaLabel(t){return e.accessibilityProvider.getAriaLabel(t.element)},getWidgetAriaLabel(){return e.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:e.accessibilityProvider.getWidgetRole?()=>e.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:e.accessibilityProvider.getAriaLevel&&(t=>e.accessibilityProvider.getAriaLevel(t.element)),getActiveDescendantId:e.accessibilityProvider.getActiveDescendantId&&(t=>e.accessibilityProvider.getActiveDescendantId(t.element))}),filter:e.filter&&{filter(t,n){return e.filter.filter(t.element,n)}},keyboardNavigationLabelProvider:e.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},e.keyboardNavigationLabelProvider),{getKeyboardNavigationLabel(t){return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(t.element)}}),sorter:void 0,expandOnlyOnTwistieClick:"undefined"===typeof e.expandOnlyOnTwistieClick?void 0:"function"!==typeof e.expandOnlyOnTwistieClick?e.expandOnlyOnTwistieClick:t=>e.expandOnlyOnTwistieClick(t.element),additionalScrollHeight:e.additionalScrollHeight})}function Ve(e,t){t(e),e.children.forEach(e=>Ve(e,t))}class ze{constructor(e,t,n,i,o,s={}){this.user=e,this.dataSource=o,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new a["b"],this._onDidChangeNodeSlowState=new a["b"],this.nodeMapper=new L(e=>new Ae(e)),this.disposables=new r["b"],this.identityProvider=s.identityProvider,this.autoExpandSingleChildren="undefined"!==typeof s.autoExpandSingleChildren&&s.autoExpandSingleChildren,this.sorter=s.sorter,this.collapseByDefault=s.collapseByDefault,this.tree=this.createTree(e,t,n,i,s),this.root=Ie({element:void 0,parent:null,hasChildren:!0}),this.identityProvider&&(this.root=Object.assign(Object.assign({},this.root),{id:null})),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}get onDidChangeFocus(){return a["c"].map(this.tree.onDidChangeFocus,Pe)}get onDidChangeSelection(){return a["c"].map(this.tree.onDidChangeSelection,Pe)}get onMouseDblClick(){return a["c"].map(this.tree.onMouseDblClick,je)}get onPointer(){return a["c"].map(this.tree.onPointer,je)}get onDidFocus(){return this.tree.onDidFocus}get onDidDispose(){return this.tree.onDidDispose}createTree(e,t,n,i,r){const o=new X(n),s=i.map(e=>new Ne(e,this.nodeMapper,this._onDidChangeNodeSlowState.event)),a=We(r)||{};return new xe(e,t,o,s,a)}updateOptions(e={}){this.tree.updateOptions(e)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(e){this.tree.scrollTop=e}domFocus(){this.tree.domFocus()}layout(e,t){this.tree.layout(e,t)}style(e){this.tree.style(e)}getInput(){return this.root.element}setInput(e,t){return De(this,void 0,void 0,(function*(){this.refreshPromises.forEach(e=>e.cancel()),this.refreshPromises.clear(),this.root.element=e;const n=t&&{viewState:t,focus:[],selection:[]};yield this._updateChildren(e,!0,!1,n),n&&(this.tree.setFocus(n.focus),this.tree.setSelection(n.selection)),t&&"number"===typeof t.scrollTop&&(this.scrollTop=t.scrollTop)}))}_updateChildren(e=this.root.element,t=!0,n=!1,i,r){return De(this,void 0,void 0,(function*(){if("undefined"===typeof this.root.element)throw new k(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield a["c"].toPromise(this._onDidRender.event));const o=this.getDataNode(e);if(yield this.refreshAndRenderNode(o,t,i,r),n)try{this.tree.rerender(o)}catch(s){}}))}rerender(e){if(void 0===e||e===this.root.element)return void this.tree.rerender();const t=this.getDataNode(e);this.tree.rerender(t)}collapse(e,t=!1){const n=this.getDataNode(e);return this.tree.collapse(n===this.root?null:n,t)}expand(e,t=!1){return De(this,void 0,void 0,(function*(){if("undefined"===typeof this.root.element)throw new k(this.user,"Tree input not set");this.root.refreshPromise&&(yield this.root.refreshPromise,yield a["c"].toPromise(this._onDidRender.event));const n=this.getDataNode(e);if(this.tree.hasElement(n)&&!this.tree.isCollapsible(n))return!1;if(n.refreshPromise&&(yield this.root.refreshPromise,yield a["c"].toPromise(this._onDidRender.event)),n!==this.root&&!n.refreshPromise&&!this.tree.isCollapsed(n))return!1;const i=this.tree.expand(n===this.root?null:n,t);return n.refreshPromise&&(yield this.root.refreshPromise,yield a["c"].toPromise(this._onDidRender.event)),i}))}setSelection(e,t){const n=e.map(e=>this.getDataNode(e));this.tree.setSelection(n,t)}getSelection(){const e=this.tree.getSelection();return e.map(e=>e.element)}setFocus(e,t){const n=e.map(e=>this.getDataNode(e));this.tree.setFocus(n,t)}getFocus(){const e=this.tree.getFocus();return e.map(e=>e.element)}reveal(e,t){this.tree.reveal(this.getDataNode(e),t)}getDataNode(e){const t=this.nodes.get(e===this.root.element?null:e);if(!t)throw new k(this.user,"Data tree node not found: "+e);return t}refreshAndRenderNode(e,t,n,i){return De(this,void 0,void 0,(function*(){yield this.refreshNode(e,t,n),this.render(e,n,i)}))}refreshNode(e,t,n){return De(this,void 0,void 0,(function*(){let i;return this.subTreeRefreshPromises.forEach((r,o)=>{!i&&Te(o,e)&&(i=r.then(()=>this.refreshNode(e,t,n)))}),i||this.doRefreshSubTree(e,t,n)}))}doRefreshSubTree(e,t,n){return De(this,void 0,void 0,(function*(){let i;e.refreshPromise=new Promise(e=>i=e),this.subTreeRefreshPromises.set(e,e.refreshPromise),e.refreshPromise.finally(()=>{e.refreshPromise=void 0,this.subTreeRefreshPromises.delete(e)});try{const r=yield this.doRefreshNode(e,t,n);e.stale=!1,yield R["d"].settled(r.map(e=>this.doRefreshSubTree(e,t,n)))}finally{i()}}))}doRefreshNode(e,t,n){return De(this,void 0,void 0,(function*(){let i;if(e.hasChildren=!!this.dataSource.hasChildren(e.element),e.hasChildren){const t=Object(R["n"])(800);t.then(()=>{e.slow=!0,this._onDidChangeNodeSlowState.fire(e)},e=>null),i=this.doGetChildren(e).finally(()=>t.cancel())}else i=Promise.resolve(x["a"].empty());try{const r=yield i;return this.setChildren(e,r,t,n)}catch(r){if(e!==this.root&&this.tree.hasElement(e)&&this.tree.collapse(e),Object(Ee["d"])(r))return[];throw r}finally{e.slow&&(e.slow=!1,this._onDidChangeNodeSlowState.fire(e))}}))}doGetChildren(e){let t=this.refreshPromises.get(e);return t||(t=Object(R["h"])(()=>De(this,void 0,void 0,(function*(){const t=yield this.dataSource.getChildren(e.element);return this.processChildren(t)}))),this.refreshPromises.set(e,t),t.finally(()=>{this.refreshPromises.delete(e)}))}_onDidChangeCollapseState({node:e,deep:t}){null!==e.element&&!e.collapsed&&e.element.stale&&(t?this.collapse(e.element.element):this.refreshAndRenderNode(e.element,!1).catch(Ee["e"]))}setChildren(e,t,n,i){const r=[...t];if(0===e.children.length&&0===r.length)return[];const o=new Map,s=new Map;for(const c of e.children)if(o.set(c.element,c),this.identityProvider){const e=this.tree.isCollapsed(c);s.set(c.id,{node:c,collapsed:e})}const a=[],l=r.map(t=>{const r=!!this.dataSource.hasChildren(t);if(!this.identityProvider){const n=Ie({element:t,parent:e,hasChildren:r});return r&&this.collapseByDefault&&!this.collapseByDefault(t)&&(n.collapsedByDefault=!1,a.push(n)),n}const l=this.identityProvider.getId(t).toString(),c=s.get(l);if(c){const e=c.node;return o.delete(e.element),this.nodes.delete(e.element),this.nodes.set(t,e),e.element=t,e.hasChildren=r,n?c.collapsed?(e.children.forEach(e=>Ve(e,e=>this.nodes.delete(e.element))),e.children.splice(0,e.children.length),e.stale=!0):a.push(e):r&&this.collapseByDefault&&!this.collapseByDefault(t)&&(e.collapsedByDefault=!1,a.push(e)),e}const u=Ie({element:t,parent:e,id:l,hasChildren:r});return i&&i.viewState.focus&&i.viewState.focus.indexOf(l)>-1&&i.focus.push(u),i&&i.viewState.selection&&i.viewState.selection.indexOf(l)>-1&&i.selection.push(u),i&&i.viewState.expanded&&i.viewState.expanded.indexOf(l)>-1?a.push(u):r&&this.collapseByDefault&&!this.collapseByDefault(t)&&(u.collapsedByDefault=!1,a.push(u)),u});for(const c of o.values())Ve(c,e=>this.nodes.delete(e.element));for(const c of l)this.nodes.set(c.element,c);return e.children.splice(0,e.children.length,...l),e!==this.root&&this.autoExpandSingleChildren&&1===l.length&&0===a.length&&(l[0].collapsedByDefault=!1,a.push(l[0])),a}render(e,t,n){const i=e.children.map(e=>this.asTreeElement(e,t)),r=n&&Object.assign(Object.assign({},n),{diffIdentityProvider:n.diffIdentityProvider&&{getId(e){return n.diffIdentityProvider.getId(e.element)}}});this.tree.setChildren(e===this.root?null:e,i,r),e!==this.root&&this.tree.setCollapsible(e,e.hasChildren),this._onDidRender.fire()}asTreeElement(e,t){if(e.stale)return{element:e,collapsible:e.hasChildren,collapsed:!0};let n;return n=!(t&&t.viewState.expanded&&e.id&&t.viewState.expanded.indexOf(e.id)>-1)&&e.collapsedByDefault,e.collapsedByDefault=void 0,{element:e,children:e.hasChildren?x["a"].map(e.children,e=>this.asTreeElement(e,t)):[],collapsible:e.hasChildren,collapsed:n}}processChildren(e){return this.sorter&&(e=[...e].sort(this.sorter.compare.bind(this.sorter))),e}dispose(){this.disposables.dispose()}}class He{constructor(e){this.node=e}get element(){return{elements:this.node.element.elements.map(e=>e.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(e=>new He(e))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}}class Ue{constructor(e,t,n,i){this.renderer=e,this.nodeMapper=t,this.compressibleNodeMapperProvider=n,this.onDidChangeTwistieState=i,this.renderedNodes=new Map,this.disposables=[],this.templateId=e.templateId}renderTemplate(e){const t=this.renderer.renderTemplate(e);return{templateData:t}}renderElement(e,t,n,i){this.renderer.renderElement(this.nodeMapper.map(e),t,n.templateData,i)}renderCompressedElements(e,t,n,i){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(e),t,n.templateData,i)}renderTwistie(e,t){return e.slow?(t.classList.add(...$.classNamesArray),!0):(t.classList.remove(...$.classNamesArray),!1)}disposeElement(e,t,n,i){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(e),t,n.templateData,i)}disposeCompressedElements(e,t,n,i){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(e),t,n.templateData,i)}disposeTemplate(e){this.renderer.disposeTemplate(e.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=Object(r["f"])(this.disposables)}}function qe(e){const t=e&&We(e);return t&&Object.assign(Object.assign({},t),{keyboardNavigationLabelProvider:t.keyboardNavigationLabelProvider&&Object.assign(Object.assign({},t.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel(t){return e.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(t.map(e=>e.element))}})})}class $e extends ze{constructor(e,t,n,i,r,o,s={}){super(e,t,n,r,o,s),this.compressionDelegate=i,this.compressibleNodeMapper=new L(e=>new He(e)),this.filter=s.filter}createTree(e,t,n,i,r){const o=new X(n),s=i.map(e=>new Ue(e,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),a=qe(r)||{};return new Le(e,t,o,s,a)}asTreeElement(e,t){return Object.assign({incompressible:this.compressionDelegate.isIncompressible(e.element)},super.asTreeElement(e,t))}updateOptions(e={}){this.tree.updateOptions(e)}render(e,t){if(!this.identityProvider)return super.render(e,t);const n=e=>this.identityProvider.getId(e).toString(),i=e=>{const t=new Set;for(const i of e){const e=this.tree.getCompressedTreeNode(i===this.root?null:i);if(e.element)for(const i of e.element.elements)t.add(n(i.element))}return t},r=i(this.tree.getSelection()),o=i(this.tree.getFocus());super.render(e,t);const s=this.getSelection();let a=!1;const l=this.getFocus();let c=!1;const u=e=>{const t=e.element;if(t)for(let i=0;i<t.elements.length;i++){const e=n(t.elements[i].element),u=t.elements[t.elements.length-1].element;r.has(e)&&-1===s.indexOf(u)&&(s.push(u),a=!0),o.has(e)&&-1===l.indexOf(u)&&(l.push(u),c=!0)}e.children.forEach(u)};u(this.tree.getCompressedTreeNode(e===this.root?null:e)),a&&this.setSelection(s),c&&this.setFocus(l)}processChildren(e){return this.filter&&(e=x["a"].filter(e,e=>{const t=this.filter.filter(e,1),n=Ke(t);if(2===n)throw new Error("Recursive tree visibility not supported in async data compressed trees");return 1===n})),super.processChildren(e)}}function Ke(e){return"boolean"===typeof e?e?1:0:A(e)?N(e.visibility):N(e)}class Ge extends le{constructor(e,t,n,i,r,o={}){super(e,t,n,i,o),this.user=e,this.dataSource=r,this.identityProvider=o.identityProvider}createModel(e,t,n){return new ce(e,t,n)}}var Ye=n("4779"),Ze=(n("ec60"),n("e385"));class Xe{constructor(e,t,n){this.columns=e,this.getColumnSize=n,this.templateId=Xe.TemplateId,this.renderedTemplates=new Set;const i=new Map(t.map(e=>[e.templateId,e]));this.renderers=[];for(const r of e){const e=i.get(r.templateId);if(!e)throw new Error(`Table cell renderer for template id ${r.templateId} not found.`);this.renderers.push(e)}}renderTemplate(e){const t=Object(i["q"])(e,Object(i["a"])(".monaco-table-tr")),n=[],r=[];for(let s=0;s<this.columns.length;s++){const e=this.renderers[s],o=Object(i["q"])(t,Object(i["a"])(".monaco-table-td",{"data-col-index":s}));o.style.width=this.getColumnSize(s)+"px",n.push(o),r.push(e.renderTemplate(o))}const o={container:e,cellContainers:n,cellTemplateData:r};return this.renderedTemplates.add(o),o}renderElement(e,t,n,i){for(let r=0;r<this.columns.length;r++){const o=this.columns[r],s=o.project(e),a=this.renderers[r];a.renderElement(s,t,n.cellTemplateData[r],i)}}disposeElement(e,t,n,i){for(let r=0;r<this.columns.length;r++){const o=this.renderers[r];if(o.disposeElement){const s=this.columns[r],a=s.project(e);o.disposeElement(a,t,n.cellTemplateData[r],i)}}}disposeTemplate(e){for(let t=0;t<this.columns.length;t++){const n=this.renderers[t];n.disposeTemplate(e.cellTemplateData[t])}Object(i["t"])(e.container),this.renderedTemplates.delete(e)}layoutColumn(e,t){for(const{cellContainers:n}of this.renderedTemplates)n[e].style.width=t+"px"}}function Qe(e){return{getHeight(t){return e.getHeight(t)},getTemplateId(){return Xe.TemplateId}}}Xe.TemplateId="row";class Je{constructor(e,t){this.column=e,this.index=t,this._onDidLayout=new a["b"],this.onDidLayout=this._onDidLayout.event,this.element=Object(i["a"])(".monaco-table-th",{"data-col-index":t,title:e.tooltip},e.label)}get minimumSize(){var e;return null!==(e=this.column.minimumWidth)&&void 0!==e?e:120}get maximumSize(){var e;return null!==(e=this.column.maximumWidth)&&void 0!==e?e:Number.POSITIVE_INFINITY}get onDidChange(){var e;return null!==(e=this.column.onDidChangeWidthConstraints)&&void 0!==e?e:a["c"].None}layout(e){this._onDidLayout.fire([this.index,e])}}class et{constructor(e,t,n,r,o,l){this.virtualDelegate=n,this.domId="table_id_"+ ++et.InstanceCount,this.cachedHeight=0,this.domNode=Object(i["q"])(t,Object(i["a"])(".monaco-table."+this.domId));const c=r.map((e,t)=>new Je(e,t)),u={size:c.reduce((e,t)=>e+t.column.weight,0),views:c.map(e=>({size:e.column.weight,view:e}))};this.splitview=new Ze["b"](this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:u}),this.splitview.el.style.height=n.headerRowHeight+"px",this.splitview.el.style.lineHeight=n.headerRowHeight+"px";const h=new Xe(r,o,e=>this.splitview.getViewSize(e));this.list=new s["c"](e,this.domNode,Qe(n),[h],l),this.columnLayoutDisposable=a["c"].any(...c.map(e=>e.onDidLayout))(([e,t])=>h.layoutColumn(e,t)),this.styleElement=Object(i["w"])(this.domNode),this.style({})}get onDidChangeFocus(){return this.list.onDidChangeFocus}get onDidChangeSelection(){return this.list.onDidChangeSelection}get onMouseDblClick(){return this.list.onMouseDblClick}get onPointer(){return this.list.onPointer}get onDidFocus(){return this.list.onDidFocus}get onDidDispose(){return this.list.onDidDispose}updateOptions(e){this.list.updateOptions(e)}splice(e,t,n=[]){this.list.splice(e,t,n)}getHTMLElement(){return this.domNode}style(e){const t=[];t.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before {\n\t\t\ttop: ${this.virtualDelegate.headerRowHeight+1}px;\n\t\t\theight: calc(100% - ${this.virtualDelegate.headerRowHeight}px);\n\t\t}`),this.styleElement.textContent=t.join("\n"),this.list.style(e)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.splitview.dispose(),this.list.dispose(),this.columnLayoutDisposable.dispose()}}et.InstanceCount=0;var tt=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},nt=function(e,t){return function(n,i){t(n,i,e)}};const it=Object(b["c"])("listService");let rt=class{constructor(e){this._themeService=e,this.disposables=new r["b"],this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}get lastFocusedList(){return this._lastFocusedWidget}register(e,t){if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;const e=new s["b"](Object(i["w"])(),"");this.disposables.add(Object(w["b"])(e,this._themeService))}if(this.lists.some(t=>t.widget===e))throw new Error("Cannot register the same widget multiple times");const n={widget:e,extraContextKeys:t};return this.lists.push(n),e.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=e),Object(r["e"])(e.onDidFocus(()=>this._lastFocusedWidget=e),Object(r["i"])(()=>this.lists.splice(this.lists.indexOf(n),1)),e.onDidDispose(()=>{this.lists=this.lists.filter(e=>e!==n),this._lastFocusedWidget===e&&(this._lastFocusedWidget=void 0)}))}dispose(){this.disposables.dispose()}};rt=tt([nt(0,C["b"])],rt);const ot=new v["c"]("listFocus",!0),st=new v["c"]("listSupportsMultiselect",!0),at=v["a"].and(ot,v["a"].not(S["a"])),lt=new v["c"]("listHasSelectionOrFocus",!1),ct=new v["c"]("listDoubleSelection",!1),ut=new v["c"]("listMultiSelection",!1),ht=new v["c"]("listSelectionNavigation",!1),dt="listAutomaticKeyboardNavigation";function ft(e,t){const n=e.createScoped(t.getHTMLElement());return ot.bindTo(n),n}const pt="workbench.list.multiSelectModifier",gt="workbench.list.openMode",mt="workbench.list.horizontalScrolling",vt="workbench.list.keyboardNavigation",bt="workbench.list.automaticKeyboardNavigation",yt="workbench.tree.indent",_t="workbench.tree.renderIndentGuides",wt="workbench.list.smoothScrolling",Ct="workbench.list.mouseWheelScrollSensitivity",St="workbench.list.fastScrollSensitivity",xt="workbench.tree.expandMode";function Ot(e){return"alt"===e.getValue(pt)}class kt extends r["a"]{constructor(e){super(),this.configurationService=e,this.useAltAsMultipleSelectionModifier=Ot(e),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration(pt)&&(this.useAltAsMultipleSelectionModifier=Ot(this.configurationService))}))}isSelectionSingleChangeEvent(e){return this.useAltAsMultipleSelectionModifier?e.browserEvent.altKey:Object(s["h"])(e)}isSelectionRangeChangeEvent(e){return Object(s["g"])(e)}}function Lt(e,t,n){var i;const o=new r["b"],s=Object.assign(Object.assign({},e),{keyboardNavigationDelegate:{mightProducePrintableCharacter(e){return n.mightProducePrintableCharacter(e)}},smoothScrolling:Boolean(t.getValue(wt)),mouseWheelScrollSensitivity:t.getValue(Ct),fastScrollSensitivity:t.getValue(St),multipleSelectionController:null!==(i=e.multipleSelectionController)&&void 0!==i?i:o.add(new kt(t))});return[s,o]}let Et=class extends s["c"]{constructor(e,t,n,i,r,o,s,a,l,c){const u="undefined"!==typeof r.horizontalScrolling?r.horizontalScrolling:Boolean(l.getValue(mt)),[h,d]=Lt(r,l,c);super(e,t,n,i,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Object(w["d"])(a.getColorTheme(),w["e"])),h),{horizontalScrolling:u})),this.disposables.add(d),this.contextKeyService=ft(o,this),this.themeService=a,this.listSupportsMultiSelect=st.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==r.multipleSelectionSupport);const f=ht.bindTo(this.contextKeyService);f.set(Boolean(r.selectionNavigation)),this.listHasSelectionOrFocus=lt.bindTo(this.contextKeyService),this.listDoubleSelection=ct.bindTo(this.contextKeyService),this.listMultiSelection=ut.bindTo(this.contextKeyService),this.horizontalScrolling=r.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Ot(l),this.disposables.add(this.contextKeyService),this.disposables.add(s.register(this)),r.overrideStyles&&this.updateStyles(r.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)})})),this.disposables.add(this.onDidChangeFocus(()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)})),this.disposables.add(l.onDidChangeConfiguration(e=>{e.affectsConfiguration(pt)&&(this._useAltAsMultipleSelectionModifier=Ot(l));let t={};if(e.affectsConfiguration(mt)&&void 0===this.horizontalScrolling){const e=Boolean(l.getValue(mt));t=Object.assign(Object.assign({},t),{horizontalScrolling:e})}if(e.affectsConfiguration(wt)){const e=Boolean(l.getValue(wt));t=Object.assign(Object.assign({},t),{smoothScrolling:e})}if(e.affectsConfiguration(Ct)){const e=l.getValue(Ct);t=Object.assign(Object.assign({},t),{mouseWheelScrollSensitivity:e})}if(e.affectsConfiguration(St)){const e=l.getValue(St);t=Object.assign(Object.assign({},t),{fastScrollSensitivity:e})}Object.keys(t).length>0&&this.updateOptions(t)})),this.navigator=new Tt(this,Object.assign({configurationService:l},r)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;null===(t=this._styler)||void 0===t||t.dispose(),this._styler=Object(w["b"])(this,this.themeService,e)}dispose(){var e;null===(e=this._styler)||void 0===e||e.dispose(),super.dispose()}};Et=tt([nt(5,v["b"]),nt(6,it),nt(7,C["b"]),nt(8,g["a"]),nt(9,y["a"])],Et);let Dt=class extends d{constructor(e,t,n,i,o,s,a,l,c,u){const h="undefined"!==typeof o.horizontalScrolling?o.horizontalScrolling:Boolean(c.getValue(mt)),[d,f]=Lt(o,c,u);super(e,t,n,i,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Object(w["d"])(l.getColorTheme(),w["e"])),d),{horizontalScrolling:h})),this.disposables=new r["b"],this.disposables.add(f),this.contextKeyService=ft(s,this),this.themeService=l,this.horizontalScrolling=o.horizontalScrolling,this.listSupportsMultiSelect=st.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==o.multipleSelectionSupport);const p=ht.bindTo(this.contextKeyService);p.set(Boolean(o.selectionNavigation)),this._useAltAsMultipleSelectionModifier=Ot(c),this.disposables.add(this.contextKeyService),this.disposables.add(a.register(this)),o.overrideStyles&&this.updateStyles(o.overrideStyles),o.overrideStyles&&this.disposables.add(Object(w["b"])(this,l,o.overrideStyles)),this.disposables.add(c.onDidChangeConfiguration(e=>{e.affectsConfiguration(pt)&&(this._useAltAsMultipleSelectionModifier=Ot(c));let t={};if(e.affectsConfiguration(mt)&&void 0===this.horizontalScrolling){const e=Boolean(c.getValue(mt));t=Object.assign(Object.assign({},t),{horizontalScrolling:e})}if(e.affectsConfiguration(wt)){const e=Boolean(c.getValue(wt));t=Object.assign(Object.assign({},t),{smoothScrolling:e})}if(e.affectsConfiguration(Ct)){const e=c.getValue(Ct);t=Object.assign(Object.assign({},t),{mouseWheelScrollSensitivity:e})}if(e.affectsConfiguration(St)){const e=c.getValue(St);t=Object.assign(Object.assign({},t),{fastScrollSensitivity:e})}Object.keys(t).length>0&&this.updateOptions(t)})),this.navigator=new Tt(this,Object.assign({configurationService:c},o)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;null===(t=this._styler)||void 0===t||t.dispose(),this._styler=Object(w["b"])(this,this.themeService,e)}dispose(){var e;null===(e=this._styler)||void 0===e||e.dispose(),this.disposables.dispose(),super.dispose()}};Dt=tt([nt(5,v["b"]),nt(6,it),nt(7,C["b"]),nt(8,g["a"]),nt(9,y["a"])],Dt);let It=class extends et{constructor(e,t,n,i,o,s,a,l,c,u,h){const d="undefined"!==typeof s.horizontalScrolling?s.horizontalScrolling:Boolean(u.getValue(mt)),[f,p]=Lt(s,u,h);super(e,t,n,i,o,Object.assign(Object.assign(Object.assign({keyboardSupport:!1},Object(w["d"])(c.getColorTheme(),w["e"])),f),{horizontalScrolling:d})),this.disposables=new r["b"],this.disposables.add(p),this.contextKeyService=ft(a,this),this.themeService=c,this.listSupportsMultiSelect=st.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==s.multipleSelectionSupport);const g=ht.bindTo(this.contextKeyService);g.set(Boolean(s.selectionNavigation)),this.listHasSelectionOrFocus=lt.bindTo(this.contextKeyService),this.listDoubleSelection=ct.bindTo(this.contextKeyService),this.listMultiSelection=ut.bindTo(this.contextKeyService),this.horizontalScrolling=s.horizontalScrolling,this._useAltAsMultipleSelectionModifier=Ot(u),this.disposables.add(this.contextKeyService),this.disposables.add(l.register(this)),s.overrideStyles&&this.updateStyles(s.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const e=this.getSelection(),t=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(e.length>0||t.length>0),this.listMultiSelection.set(e.length>1),this.listDoubleSelection.set(2===e.length)})})),this.disposables.add(this.onDidChangeFocus(()=>{const e=this.getSelection(),t=this.getFocus();this.listHasSelectionOrFocus.set(e.length>0||t.length>0)})),this.disposables.add(u.onDidChangeConfiguration(e=>{e.affectsConfiguration(pt)&&(this._useAltAsMultipleSelectionModifier=Ot(u));let t={};if(e.affectsConfiguration(mt)&&void 0===this.horizontalScrolling){const e=Boolean(u.getValue(mt));t=Object.assign(Object.assign({},t),{horizontalScrolling:e})}if(e.affectsConfiguration(wt)){const e=Boolean(u.getValue(wt));t=Object.assign(Object.assign({},t),{smoothScrolling:e})}if(e.affectsConfiguration(Ct)){const e=u.getValue(Ct);t=Object.assign(Object.assign({},t),{mouseWheelScrollSensitivity:e})}if(e.affectsConfiguration(St)){const e=u.getValue(St);t=Object.assign(Object.assign({},t),{fastScrollSensitivity:e})}Object.keys(t).length>0&&this.updateOptions(t)})),this.navigator=new At(this,Object.assign({configurationService:u},s)),this.disposables.add(this.navigator)}updateOptions(e){super.updateOptions(e),e.overrideStyles&&this.updateStyles(e.overrideStyles),void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyles(e){var t;null===(t=this._styler)||void 0===t||t.dispose(),this._styler=Object(w["b"])(this,this.themeService,e)}dispose(){var e;null===(e=this._styler)||void 0===e||e.dispose(),this.disposables.dispose(),super.dispose()}};It=tt([nt(6,v["b"]),nt(7,it),nt(8,C["b"]),nt(9,g["a"]),nt(10,y["a"])],It);class Mt extends r["a"]{constructor(e,t){var n;super(),this.widget=e,this._onDidOpen=this._register(new a["b"]),this.onDidOpen=this._onDidOpen.event,this._register(a["c"].filter(this.widget.onDidChangeSelection,e=>e.browserEvent instanceof KeyboardEvent)(e=>this.onSelectionFromKeyboard(e))),this._register(this.widget.onPointer(e=>this.onPointer(e.element,e.browserEvent))),this._register(this.widget.onMouseDblClick(e=>this.onMouseDblClick(e.element,e.browserEvent))),"boolean"!==typeof(null===t||void 0===t?void 0:t.openOnSingleClick)&&(null===t||void 0===t?void 0:t.configurationService)?(this.openOnSingleClick="doubleClick"!==(null===t||void 0===t?void 0:t.configurationService.getValue(gt)),this._register(null===t||void 0===t?void 0:t.configurationService.onDidChangeConfiguration(()=>{this.openOnSingleClick="doubleClick"!==(null===t||void 0===t?void 0:t.configurationService.getValue(gt))}))):this.openOnSingleClick=null===(n=null===t||void 0===t?void 0:t.openOnSingleClick)||void 0===n||n}onSelectionFromKeyboard(e){if(1!==e.elements.length)return;const t=e.browserEvent,n="boolean"!==typeof t.preserveFocus||t.preserveFocus,i="boolean"===typeof t.pinned?t.pinned:!n,r=!1;this._open(this.getSelectedElement(),n,i,r,e.browserEvent)}onPointer(e,t){if(!this.openOnSingleClick)return;const n=2===t.detail;if(n)return;const i=1===t.button,r=!0,o=i,s=t.ctrlKey||t.metaKey||t.altKey;this._open(e,r,o,s,t)}onMouseDblClick(e,t){if(!t)return;const n=t.target,i=n.classList.contains("monaco-tl-twistie")||n.classList.contains("monaco-icon-label")&&n.classList.contains("folder-icon")&&t.offsetX<16;if(i)return;const r=!1,o=!0,s=t.ctrlKey||t.metaKey||t.altKey;this._open(e,r,o,s,t)}_open(e,t,n,i,r){e&&this._onDidOpen.fire({editorOptions:{preserveFocus:t,pinned:n,revealIfVisible:!0},sideBySide:i,element:e,browserEvent:r})}}class Tt extends Mt{constructor(e,t){super(e,t),this.widget=e}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class At extends Mt{constructor(e,t){super(e,t)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class Nt extends Mt{constructor(e,t){super(e,t)}getSelectedElement(){var e;return null!==(e=this.widget.getSelection()[0])&&void 0!==e?e:void 0}}function Pt(e,t){let n=!1;return i=>{if(n)return n=!1,!1;const r=t.softDispatch(i,e);return r&&r.enterChord?(n=!0,!1):(n=!1,!0)}}let jt=class extends xe{constructor(e,t,n,i,r,o,s,a,l,c,u){const{options:h,getAutomaticKeyboardNavigation:d,disposable:f}=Vt(t,r,o,l,c,u);super(e,t,n,i,h),this.disposables.add(f),this.internals=new zt(this,r,d,r.overrideStyles,o,s,a,l,u),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};jt=tt([nt(5,v["b"]),nt(6,it),nt(7,C["b"]),nt(8,g["a"]),nt(9,y["a"]),nt(10,Ye["b"])],jt);let Rt=class extends Le{constructor(e,t,n,i,r,o,s,a,l,c,u){const{options:h,getAutomaticKeyboardNavigation:d,disposable:f}=Vt(t,r,o,l,c,u);super(e,t,n,i,h),this.disposables.add(f),this.internals=new zt(this,r,d,r.overrideStyles,o,s,a,l,u),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};Rt=tt([nt(5,v["b"]),nt(6,it),nt(7,C["b"]),nt(8,g["a"]),nt(9,y["a"]),nt(10,Ye["b"])],Rt);let Ft=class extends Ge{constructor(e,t,n,i,r,o,s,a,l,c,u,h){const{options:d,getAutomaticKeyboardNavigation:f,disposable:p}=Vt(t,o,s,c,u,h);super(e,t,n,i,r,d),this.disposables.add(p),this.internals=new zt(this,o,f,o.overrideStyles,s,a,l,c,h),this.disposables.add(this.internals)}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};Ft=tt([nt(6,v["b"]),nt(7,it),nt(8,C["b"]),nt(9,g["a"]),nt(10,y["a"]),nt(11,Ye["b"])],Ft);let Bt=class extends ze{constructor(e,t,n,i,r,o,s,a,l,c,u,h){const{options:d,getAutomaticKeyboardNavigation:f,disposable:p}=Vt(t,o,s,c,u,h);super(e,t,n,i,r,d),this.disposables.add(p),this.internals=new zt(this,o,f,o.overrideStyles,s,a,l,c,h),this.disposables.add(this.internals)}get onDidOpen(){return this.internals.onDidOpen}updateOptions(e={}){super.updateOptions(e),e.overrideStyles&&this.internals.updateStyleOverrides(e.overrideStyles),this.internals.updateOptions(e)}};Bt=tt([nt(6,v["b"]),nt(7,it),nt(8,C["b"]),nt(9,g["a"]),nt(10,y["a"]),nt(11,Ye["b"])],Bt);let Wt=class extends $e{constructor(e,t,n,i,r,o,s,a,l,c,u,h,d){const{options:f,getAutomaticKeyboardNavigation:p,disposable:g}=Vt(t,s,a,u,h,d);super(e,t,n,i,r,o,f),this.disposables.add(g),this.internals=new zt(this,s,p,s.overrideStyles,a,l,c,u,d),this.disposables.add(this.internals)}updateOptions(e){super.updateOptions(e),this.internals.updateOptions(e)}};function Vt(e,t,n,i,r,o){var s;const a=()=>{let e=Boolean(n.getContextKeyValue(dt));return e&&(e=Boolean(i.getValue(bt))),e},l=o.isScreenReaderOptimized(),c=t.simpleKeyboardNavigation||l?"simple":i.getValue(vt),u=void 0!==t.horizontalScrolling?t.horizontalScrolling:Boolean(i.getValue(mt)),[h,d]=Lt(t,i,r),f=t.additionalScrollHeight;return{getAutomaticKeyboardNavigation:a,disposable:d,options:Object.assign(Object.assign({keyboardSupport:!1},h),{indent:"number"===typeof i.getValue(yt)?i.getValue(yt):void 0,renderIndentGuides:i.getValue(_t),smoothScrolling:Boolean(i.getValue(wt)),automaticKeyboardNavigation:a(),simpleKeyboardNavigation:"simple"===c,filterOnType:"filter"===c,horizontalScrolling:u,keyboardNavigationEventFilter:Pt(e,r),additionalScrollHeight:f,hideTwistiesOfChildlessElements:t.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:null!==(s=t.expandOnlyOnTwistieClick)&&void 0!==s?s:"doubleClick"===i.getValue(xt)})}}Wt=tt([nt(7,v["b"]),nt(8,it),nt(9,C["b"]),nt(10,g["a"]),nt(11,y["a"]),nt(12,Ye["b"])],Wt);let zt=class{constructor(e,t,n,i,r,o,s,a,l){this.tree=e,this.themeService=s,this.disposables=[],this.contextKeyService=ft(r,e),this.listSupportsMultiSelect=st.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(!1!==t.multipleSelectionSupport);const c=ht.bindTo(this.contextKeyService);c.set(Boolean(t.selectionNavigation)),this.hasSelectionOrFocus=lt.bindTo(this.contextKeyService),this.hasDoubleSelection=ct.bindTo(this.contextKeyService),this.hasMultiSelection=ut.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=Ot(a);const u=new Set;u.add(dt);const h=()=>{const t=l.isScreenReaderOptimized(),n=t?"simple":a.getValue(vt);e.updateOptions({simpleKeyboardNavigation:"simple"===n,filterOnType:"filter"===n})};this.updateStyleOverrides(i),this.disposables.push(this.contextKeyService,o.register(e),e.onDidChangeSelection(()=>{const t=e.getSelection(),n=e.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(t.length>0||n.length>0),this.hasMultiSelection.set(t.length>1),this.hasDoubleSelection.set(2===t.length)})}),e.onDidChangeFocus(()=>{const t=e.getSelection(),n=e.getFocus();this.hasSelectionOrFocus.set(t.length>0||n.length>0)}),a.onDidChangeConfiguration(i=>{let r={};if(i.affectsConfiguration(pt)&&(this._useAltAsMultipleSelectionModifier=Ot(a)),i.affectsConfiguration(yt)){const e=a.getValue(yt);r=Object.assign(Object.assign({},r),{indent:e})}if(i.affectsConfiguration(_t)){const e=a.getValue(_t);r=Object.assign(Object.assign({},r),{renderIndentGuides:e})}if(i.affectsConfiguration(wt)){const e=Boolean(!!a.getValue(wt));r=Object.assign(Object.assign({},r),{smoothScrolling:e})}if(i.affectsConfiguration(vt)&&h(),i.affectsConfiguration(bt)&&(r=Object.assign(Object.assign({},r),{automaticKeyboardNavigation:n()})),i.affectsConfiguration(mt)&&void 0===t.horizontalScrolling){const e=Boolean(!!a.getValue(mt));r=Object.assign(Object.assign({},r),{horizontalScrolling:e})}if(i.affectsConfiguration(xt)&&void 0===t.expandOnlyOnTwistieClick&&(r=Object.assign(Object.assign({},r),{expandOnlyOnTwistieClick:"doubleClick"===a.getValue(xt)})),i.affectsConfiguration(Ct)){const e=a.getValue(Ct);r=Object.assign(Object.assign({},r),{mouseWheelScrollSensitivity:e})}if(i.affectsConfiguration(St)){const e=a.getValue(St);r=Object.assign(Object.assign({},r),{fastScrollSensitivity:e})}Object.keys(r).length>0&&e.updateOptions(r)}),this.contextKeyService.onDidChangeContext(t=>{t.affectsSome(u)&&e.updateOptions({automaticKeyboardNavigation:n()})}),l.onDidChangeScreenReaderOptimized(()=>h())),this.navigator=new Nt(e,Object.assign({configurationService:a},t)),this.disposables.push(this.navigator)}get onDidOpen(){return this.navigator.onDidOpen}updateOptions(e){void 0!==e.multipleSelectionSupport&&this.listSupportsMultiSelect.set(!!e.multipleSelectionSupport)}updateStyleOverrides(e){Object(r["f"])(this.styler),this.styler=e?Object(w["b"])(this.tree,this.themeService,e):r["a"].None}dispose(){this.disposables=Object(r["f"])(this.disposables),Object(r["f"])(this.styler),this.styler=void 0}};zt=tt([nt(4,v["b"]),nt(5,it),nt(6,C["b"]),nt(7,g["a"]),nt(8,Ye["b"])],zt);const Ht=_["a"].as(m["a"].Configuration);Ht.registerConfiguration({id:"workbench",order:7,title:Object(p["a"])("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[pt]:{type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(p["a"])("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(p["a"])("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(p["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.")},[gt]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(p["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). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[mt]:{type:"boolean",default:!1,description:Object(p["a"])("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[yt]:{type:"number",default:8,minimum:0,maximum:40,description:Object(p["a"])("tree indent setting","Controls tree indentation in pixels.")},[_t]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(p["a"])("render tree indent guides","Controls whether the tree should render indent guides.")},[wt]:{type:"boolean",default:!1,description:Object(p["a"])("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Ct]:{type:"number",default:1,description:Object(p["a"])("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the deltaX and deltaY of mouse wheel scroll events.")},[St]:{type:"number",default:5,description:Object(p["a"])("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing Alt.")},[vt]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(p["a"])("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(p["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(p["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(p["a"])("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},[bt]:{type:"boolean",default:!0,markdownDescription:Object(p["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.")},[xt]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(p["a"])("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")}}})},"944a":function(e,t,n){var i=n("d066"),r=n("e065"),o=n("d44e");r("toStringTag"),o(i("Symbol"),"Symbol")},"944e":function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return d}));var i=n("3842");function r(e){return"interval"===e.type||"log"===e.type}function o(e,t,n,r){var o={},s=e[1]-e[0],l=o.interval=Object(i["n"])(s/t,!0);null!=n&&l<n&&(l=o.interval=n),null!=r&&l>r&&(l=o.interval=r);var u=o.intervalPrecision=a(l),h=o.niceTickExtent=[Object(i["w"])(Math.ceil(e[0]/l)*l,u),Object(i["w"])(Math.floor(e[1]/l)*l,u)];return c(h,e),o}function s(e){var t=Math.pow(10,Object(i["t"])(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Object(i["w"])(n*t)}function a(e){return Object(i["h"])(e)+2}function l(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function c(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),l(e,0,t),l(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function u(e,t){return e>=t[0]&&e<=t[1]}function h(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function d(e,t){return e*(t[1]-t[0])+t[0]}},"946b":function(e,t,n){e.exports=n("faa1").EventEmitter},"94a7":function(e,t,n){},"94ca":function(e,t,n){var i=n("d039"),r=n("1626"),o=/#|\.prototype\./,s=function(e,t){var n=l[a(e)];return n==u||n!=c&&(r(t)?i(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";e.exports=s},9523:function(e,t,n){var i=n("a395");function r(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"958f":function(e,t,n){"use strict";n.r(t),n.d(t,"MarkerController",(function(){return te})),n.d(t,"NextMarkerAction",(function(){return ie}));var i,r=n("dff7"),o=n("a666"),s=n("4fc3"),a=n("7061"),l=n("6a89"),c=n("b2cc"),u=n("c101"),h=(n("fe86"),n("11f7")),d=n("b400"),f=n("303e"),p=n("b7d0"),g=n("ceb8"),m=n("1898"),v=n("debc"),b=n("e8e3"),y=n("308f"),_=n("88d4"),w=n("82c9"),C=n("4b76"),S=n("561a");(function(e){function t(e){switch(e){case C["a"].Ignore:return"severity-ignore "+S["b"].info.classNames;case C["a"].Info:return S["b"].info.classNames;case C["a"].Warning:return S["b"].warning.classNames;case C["a"].Error:return S["b"].error.classNames;default:return""}}e.className=t})(i||(i={})),Object(p["f"])((e,t)=>{const n=e.getColor(f["mc"]);if(n){const e=S["b"].error.cssSelector;t.addRule(`\n\t\t\t.monaco-editor .zone-widget ${e},\n\t\t\t.markers-panel .marker-icon${e},\n\t\t\t.text-search-provider-messages .providerMessage ${e},\n\t\t\t.extensions-viewlet > .extensions ${e} {\n\t\t\t\tcolor: ${n};\n\t\t\t}\n\t\t`)}const i=e.getColor(f["oc"]);if(i){const e=S["b"].warning.cssSelector;t.addRule(`\n\t\t\t.monaco-editor .zone-widget ${e},\n\t\t\t.markers-panel .marker-icon${e},\n\t\t\t.extensions-viewlet > .extensions ${e},\n\t\t\t.extension-editor ${e},\n\t\t\t.text-search-provider-messages .providerMessage ${e},\n\t\t\t.preferences-editor ${e} {\n\t\t\t\tcolor: ${i};\n\t\t\t}\n\t\t`)}const r=e.getColor(f["nc"]);if(r){const e=S["b"].info.cssSelector;t.addRule(`\n\t\t\t.monaco-editor .zone-widget ${e},\n\t\t\t.markers-panel .marker-icon${e},\n\t\t\t.extensions-viewlet > .extensions ${e},\n\t\t\t.text-search-provider-messages .providerMessage ${e},\n\t\t\t.extension-editor ${e} {\n\t\t\t\tcolor: ${r};\n\t\t\t}\n\t\t`)}});var x=n("5bd7"),O=n("7e32"),k=n("7944"),L=n("0a0f"),E=n("3742"),D=n("47cb"),I=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},M=function(e,t){return function(n,i){t(n,i,e)}};class T{constructor(e,t,n,i,r){this._openerService=i,this._labelService=r,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new o["b"],this._editor=t;const s=document.createElement("div");s.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),s.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),s.appendChild(this._relatedBlock),this._disposables.add(h["o"](this._relatedBlock,"click",e=>{e.preventDefault();const t=this._relatedDiagnostics.get(e.target);t&&n(t)})),this._scrollable=new m["b"](s,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(e=>{s.style.left=`-${e.scrollLeft}px`,s.style.top=`-${e.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){Object(o["f"])(this._disposables)}update(e){const{source:t,message:n,relatedInformation:i,code:r}=e;let o=((null===t||void 0===t?void 0:t.length)||0)+"()".length;r&&(o+="string"===typeof r?r.length:r.value.length);const s=Object(E["R"])(n);this._lines=s.length,this._longestLineLength=0;for(const h of s)this._longestLineLength=Math.max(h.length+o,this._longestLineLength);h["t"](this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let a=this._messageBlock;for(const h of s)a=document.createElement("div"),a.innerText=h,""===h&&(a.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(a);if(t||r){const e=document.createElement("span");if(e.classList.add("details"),a.appendChild(e),t){const n=document.createElement("span");n.innerText=t,n.classList.add("source"),e.appendChild(n)}if(r)if("string"===typeof r){const t=document.createElement("span");t.innerText=`(${r})`,t.classList.add("code"),e.appendChild(t)}else{this._codeLink=h["a"]("a.code-link"),this._codeLink.setAttribute("href",""+r.target.toString()),this._codeLink.onclick=e=>{this._openerService.open(r.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()};const t=h["q"](this._codeLink,h["a"]("span"));t.innerText=r.value,e.appendChild(this._codeLink)}}if(h["t"](this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Object(b["n"])(i)){const e=this._relatedBlock.appendChild(document.createElement("div"));e.style.paddingTop=Math.floor(.66*this._editor.getOption(57))+"px",this._lines+=1;for(const t of i){let n=document.createElement("div"),i=document.createElement("a");i.classList.add("filename"),i.innerText=`${Object(v["a"])(t.resource)}(${t.startLineNumber}, ${t.startColumn}): `,i.title=this._labelService.getUriLabel(t.resource),this._relatedDiagnostics.set(i,t);let r=document.createElement("span");r.innerText=t.message,n.appendChild(i),n.appendChild(r),this._lines+=1,e.appendChild(n)}}const l=this._editor.getOption(41),c=Math.ceil(l.typicalFullwidthCharacterWidth*this._longestLineLength*.75),u=l.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:c,scrollHeight:u})}layout(e,t){this._scrollable.getDomNode().style.height=e+"px",this._scrollable.getDomNode().style.width=t+"px",this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case d["c"].Error:t=r["a"]("Error","Error");break;case d["c"].Warning:t=r["a"]("Warning","Warning");break;case d["c"].Info:t=r["a"]("Info","Info");break;case d["c"].Hint:t=r["a"]("Hint","Hint");break}let n=r["a"]("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn);const i=this._editor.getModel();if(i&&e.startLineNumber<=i.getLineCount()&&e.startLineNumber>=1){const t=i.getLineContent(e.startLineNumber);n=`${t}, ${n}`}return n}}let A=class e extends _["c"]{constructor(e,t,n,i,r,s,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0},r),this._themeService=t,this._openerService=n,this._menuService=i,this._contextKeyService=s,this._labelService=a,this._callOnDispose=new o["b"],this._onDidSelectRelatedInformation=new y["b"],this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=d["c"].Warning,this._backgroundColor=g["a"].white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(W);let t=R;this._severity===d["c"].Warning?t=F:this._severity===d["c"].Info&&(t=B);const n=e.getColor(t);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:this._backgroundColor,primaryHeadingColor:e.getColor(_["q"]),secondaryHeadingColor:e.getColor(_["r"])})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(t){super._fillHead(t),this._disposables.add(this._actionbarWidget.actionRunner.onBeforeRun(e=>this.editor.focus()));const n=[],i=this._menuService.createMenu(e.TitleMenu,this._contextKeyService);Object(k["c"])(i,void 0,n),this._actionbarWidget.push(n,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=h["q"](e,h["a"](""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new T(this._container,this.editor,e=>this._onDidSelectRelatedInformation.fire(e),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,n){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());let o=l["a"].lift(e);const s=this.editor.getPosition();let a=s&&o.containsPosition(s)?s:o.getStartPosition();super.show(a,this.computeRequiredHeight());const c=this.editor.getModel();if(c){const e=n>1?r["a"]("problems","{0} of {1} problems",t,n):r["a"]("change","{0} of {1} problem",t,n);this.setTitle(Object(w["b"])(c.uri),e)}this._icon.className="codicon "+i.className(d["c"].toSeverity(this._severity)),this.editor.revealPositionNearTop(a,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=e+"px"}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};A.TitleMenu=new O["b"]("gotoErrorTitleMenu"),A=I([M(1,p["b"]),M(2,x["a"]),M(3,O["a"]),M(4,L["a"]),M(5,s["b"]),M(6,D["a"])],A);let N=Object(f["hc"])(f["u"],f["t"]),P=Object(f["hc"])(f["X"],f["W"]),j=Object(f["hc"])(f["M"],f["L"]);const R=Object(f["wc"])("editorMarkerNavigationError.background",{dark:N,light:N,hc:N},r["a"]("editorMarkerNavigationError","Editor marker navigation widget error color.")),F=Object(f["wc"])("editorMarkerNavigationWarning.background",{dark:P,light:P,hc:P},r["a"]("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),B=Object(f["wc"])("editorMarkerNavigationInfo.background",{dark:j,light:j,hc:j},r["a"]("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),W=Object(f["wc"])("editorMarkerNavigation.background",{dark:"#2D2D30",light:g["a"].white,hc:"#0C141F"},r["a"]("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(p["f"])((e,t)=>{const n=e.getColor(f["Jc"]);n&&t.addRule(`.monaco-editor .marker-widget a.code-link span { color: ${n}; }`);const i=e.getColor(f["Ic"]);i&&t.addRule(`.monaco-editor .marker-widget a.code-link span:hover { color: ${i}; }`)});var V=n("5717"),z=n("6d8e"),H=n("f5f3"),U=n("db88"),q=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},$=function(e,t){return function(n,i){t(n,i,e)}};class K{constructor(e,t,n){this.marker=e,this.index=t,this.total=n}}let G=class e{constructor(t,n){this._markerService=n,this._onDidChange=new y["b"],this.onDidChange=this._onDidChange.event,this._dispoables=new o["b"],this._markers=[],this._nextIdx=-1,z["a"].isUri(t)?this._resourceFilter=e=>e.toString()===t.toString():t&&(this._resourceFilter=t);const i=()=>{this._markers=this._markerService.read({resource:z["a"].isUri(t)?t:void 0,severities:d["c"].Error|d["c"].Warning|d["c"].Info}),"function"===typeof t&&(this._markers=this._markers.filter(e=>this._resourceFilter(e.resource))),this._markers.sort(e._compareMarker)};i(),this._dispoables.add(n.onMarkerChanged(e=>{this._resourceFilter&&!e.some(e=>this._resourceFilter(e))||(i(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e||!(!this._resourceFilter||!e)&&this._resourceFilter(e)}get selected(){const e=this._markers[this._nextIdx];return e&&new K(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,n){let i=!1,r=this._markers.findIndex(t=>t.resource.toString()===e.uri.toString());r<0&&(r=Object(b["d"])(this._markers,{resource:e.uri},(e,t)=>Object(E["f"])(e.resource.toString(),t.resource.toString())),r<0&&(r=~r));for(let o=r;o<this._markers.length;o++){let n=l["a"].lift(this._markers[o]);if(n.isEmpty()){const t=e.getWordAtPosition(n.getStartPosition());t&&(n=new l["a"](n.startLineNumber,t.startColumn,n.startLineNumber,t.endColumn))}if(t&&(n.containsPosition(t)||t.isBeforeOrEqual(n.getStartPosition()))){this._nextIdx=o,i=!0;break}if(this._markers[o].resource.toString()!==e.uri.toString())break}i||(this._nextIdx=n?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(e,t,n){if(0===this._markers.length)return!1;let i=this._nextIdx;return-1===this._nextIdx?this._initIdx(t,n,e):e?this._nextIdx=(this._nextIdx+1)%this._markers.length:e||(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),i!==this._nextIdx}find(e,t){let n=this._markers.findIndex(t=>t.resource.toString()===e.toString());if(!(n<0))for(;n<this._markers.length;n++)if(l["a"].containsPosition(this._markers[n],t))return new K(this._markers[n],n+1,this._markers.length)}static _compareMarker(e,t){let n=Object(E["f"])(e.resource.toString(),t.resource.toString());return 0===n&&(n=d["c"].compare(e.severity,t.severity)),0===n&&(n=l["a"].compareRangesUsingStarts(e,t)),n}};G=q([$(1,d["b"])],G);const Y=Object(L["c"])("IMarkerNavigationService");let Z=class{constructor(e){this._markerService=e,this._provider=new U["a"]}getMarkerList(e){for(let t of this._provider){const n=t.getMarkerList(e);if(n)return n}return new G(e,this._markerService)}};Z=q([$(0,d["b"])],Z),Object(H["b"])(Y,Z,!0);var X=n("bf5b"),Q=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},J=function(e,t){return function(n,i){t(n,i,e)}},ee=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let te=class e{constructor(e,t,n,i,r){this._markerNavigationService=t,this._contextKeyService=n,this._editorService=i,this._instantiationService=r,this._sessionDispoables=new o["b"],this._editor=e,this._widgetVisible=ae.bindTo(this._contextKeyService)}static get(t){return t.getContribution(e.ID)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(A,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(e=>{var t,n,i;(null===(t=this._model)||void 0===t?void 0:t.selected)&&l["a"].containsPosition(null===(n=this._model)||void 0===n?void 0:n.selected.marker,e.position)||null===(i=this._model)||void 0===i||i.resetIndex()})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const e=this._model.find(this._editor.getModel().uri,this._widget.position);e?this._widget.updateMarker(e.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(e=>{this._editorService.openCodeEditor({resource:e.resource,options:{pinned:!0,revealIfOpened:!0,selection:l["a"].lift(e).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){const t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new a["a"](e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(t,n){return ee(this,void 0,void 0,(function*(){if(this._editor.hasModel()){const i=this._getOrCreateModel(n?void 0:this._editor.getModel().uri);if(i.move(t,this._editor.getModel(),this._editor.getPosition()),!i.selected)return;if(i.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const r=yield this._editorService.openCodeEditor({resource:i.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:i.selected.marker}},this._editor);r&&(e.get(r).close(),e.get(r).nagivate(t,n))}else this._widget.showAtMarker(i.selected.marker,i.selected.index,i.selected.total)}}))}};te.ID="editor.contrib.markerController",te=Q([J(1,Y),J(2,s["b"]),J(3,V["a"]),J(4,L["a"])],te);class ne extends c["b"]{constructor(e,t,n){super(n),this._next=e,this._multiFile=t}run(e,t){return ee(this,void 0,void 0,(function*(){t.hasModel()&&te.get(t).nagivate(this._next,this._multiFile)}))}}class ie extends ne{constructor(){super(!0,!1,{id:ie.ID,label:ie.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:u["a"].focus,primary:578,weight:100},menuOpts:{menuId:A.TitleMenu,title:ie.LABEL,icon:Object(X["b"])("marker-navigation-next",S["b"].chevronDown,r["a"]("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}ie.ID="editor.action.marker.next",ie.LABEL=r["a"]("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class re extends ne{constructor(){super(!1,!1,{id:re.ID,label:re.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:u["a"].focus,primary:1602,weight:100},menuOpts:{menuId:A.TitleMenu,title:ie.LABEL,icon:Object(X["b"])("marker-navigation-previous",S["b"].chevronUp,r["a"]("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}re.ID="editor.action.marker.prev",re.LABEL=r["a"]("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class oe extends ne{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:r["a"]("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:u["a"].focus,primary:66,weight:100},menuOpts:{menuId:O["b"].MenubarGoMenu,title:r["a"]({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class se extends ne{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:r["a"]("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:u["a"].focus,primary:1090,weight:100},menuOpts:{menuId:O["b"].MenubarGoMenu,title:r["a"]({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}Object(c["l"])(te.ID,te),Object(c["j"])(ie),Object(c["j"])(re),Object(c["j"])(oe),Object(c["j"])(se);const ae=new s["c"]("markersNavigationVisible",!1),le=c["c"].bindToContribution(te.get);Object(c["k"])(new le({id:"closeMarkersNavigation",precondition:ae,handler:e=>e.close(),kbOpts:{weight:150,kbExpr:u["a"].focus,primary:9,secondary:[1033]}}))},9619:function(e,t,n){var i=n("597f"),r=n("0e15");e.exports={throttle:i,debounce:r}},"962f":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return n.e("chunk-2d2311f7").then(n.bind(null,"eecd"))}})},"966d":function(e,t,n){"use strict";(function(t){function n(e,n,i,r){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,i)}));case 4:return t.nextTick((function(){e.call(null,n,i,r)}));default:o=new Array(a-1),s=0;while(s<o.length)o[s++]=arguments[s];return t.nextTick((function(){e.apply(null,o)}))}}"undefined"===typeof t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:n}:e.exports=t}).call(this,n("4362"))},9671:function(e,t,n){"use strict";var i=Function.prototype.call,r=Object.prototype.hasOwnProperty,o=n("0f7c");e.exports=o.call(i,r)},9680:function(e,t,n){"use strict";function i(e,t,n,i,r,o,s){if(0===r)return!1;var a=r,l=0,c=e;if(s>t+a&&s>i+a||s<t-a&&s<i-a||o>e+a&&o>n+a||o<e-a&&o<n-a)return!1;if(e===n)return Math.abs(o-e)<=a/2;l=(t-i)/(e-n),c=(e*i-n*t)/(e-n);var u=l*o-s+c,h=u*u/(l*l+1);return h<=a/2*a/2}n.d(t,"a",(function(){return i}))},"96b9":function(e,t,n){},"970b":function(e,t,n){function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n("d9e2"),e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},9742:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},9768:function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var i=n("3742"),r=n("3d37"),o=n("32b8"),s=n("4035"),a=n("5fe7");const l="**",c="/",u="[/\\\\]",h="[^/\\\\]",d=/\//g;function f(e){switch(e){case 0:return"";case 1:return h+"*?";default:return`(?:${u}|${h}+${u}|${u}${h}+)*?`}}function p(e,t){if(!e)return[];const n=[];let i=!1,r=!1,o="";for(const s of e){switch(s){case t:if(!i&&!r){n.push(o),o="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":r=!0;break;case"]":r=!1;break}o+=s}return o&&n.push(o),n}function g(e){if(!e)return"";let t="";const n=p(e,c);if(n.every(e=>e===l))t=".*";else{let e=!1;n.forEach((r,o)=>{if(r===l)return void(e||(t+=f(2),e=!0));let s=!1,a="",d=!1,m="";for(const e of r)if("}"!==e&&s)a+=e;else if(!d||"]"===e&&m)switch(e){case"{":s=!0;continue;case"[":d=!0;continue;case"}":const n=p(a,","),r=`(?:${n.map(e=>g(e)).join("|")})`;t+=r,s=!1,a="";break;case"]":t+="["+m+"]",d=!1,m="";break;case"?":t+=h;continue;case"*":t+=f(1);continue;default:t+=i["u"](e)}else{let t;t="-"===e?e:"^"!==e&&"!"!==e||m?e===c?"":i["u"](e):"^",m+=t}o<n.length-1&&(n[o+1]!==l||o+2<n.length)&&(t+=u),e=!1})}return t}const m=/^\*\*\/\*\.[\w\.-]+$/,v=/^\*\*\/([\w\.-]+)\/?$/,b=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,y=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,_=/^\*\*((\/[\w\.-]+)+)\/?$/,w=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,C=new s["a"](1e4),S=function(){return!1},x=function(){return null};function O(e,t){if(!e)return x;let n;n="string"!==typeof e?e.pattern:e,n=n.trim();const i=`${n}_${!!t.trimForExclusions}`;let r,o=C.get(i);if(o)return k(o,e);if(m.test(n)){const e=n.substr(4);o=function(t,i){return"string"===typeof t&&t.endsWith(e)?n:null}}else o=(r=v.exec(L(n,t)))?E(r[1],n):(t.trimForExclusions?y:b).test(n)?D(n,t):(r=_.exec(L(n,t)))?I(r[1].substr(1),n,!0):(r=w.exec(L(n,t)))?I(r[1],n,!1):M(n);return C.set(i,o),k(o,e)}function k(e,t){return"string"===typeof t?e:function(n,i){return r["b"](n,t.base)?e(o["f"](t.base,n),i):null}}function L(e,t){return t.trimForExclusions&&e.endsWith("/**")?e.substr(0,e.length-2):e}function E(e,t){const n="/"+e,i="\\"+e,r=function(r,o){return"string"!==typeof r?null:o?o===e?t:null:r===e||r.endsWith(n)||r.endsWith(i)?t:null},o=[e];return r.basenames=o,r.patterns=[t],r.allBasenames=o,r}function D(e,t){const n=R(e.slice(1,-1).split(",").map(e=>O(e,t)).filter(e=>e!==x),e),i=n.length;if(!i)return x;if(1===i)return n[0];const r=function(t,i){for(let r=0,o=n.length;r<o;r++)if(n[r](t,i))return e;return null},o=n.find(e=>!!e.allBasenames);o&&(r.allBasenames=o.allBasenames);const s=n.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return s.length&&(r.allPaths=s),r}function I(e,t,n){const i=o["h"]===o["e"].sep,r=i?e:e.replace(d,o["h"]),s=o["h"]+r,a=o["e"].sep+e,l=n?function(n,o){return"string"!==typeof n||n!==r&&!n.endsWith(s)&&(i||n!==e&&!n.endsWith(a))?null:t}:function(n,o){return"string"!==typeof n||n!==r&&(i||n!==e)?null:t};return l.allPaths=[(n?"*/":"./")+e],l}function M(e){try{const t=new RegExp(`^${g(e)}$`);return function(n){return t.lastIndex=0,"string"===typeof n&&t.test(n)?e:null}}catch(t){return x}}function T(e,t,n){return!(!e||"string"!==typeof t)&&A(e)(t,void 0,n)}function A(e,t={}){if(!e)return S;if("string"===typeof e||N(e)){const n=O(e,t);if(n===x)return S;const i=function(e,t){return!!n(e,t)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}return P(e,t)}function N(e){const t=e;return t&&"string"===typeof t.base&&"string"===typeof t.pattern}function P(e,t){const n=R(Object.getOwnPropertyNames(e).map(n=>j(n,e[n],t)).filter(e=>e!==x)),i=n.length;if(!i)return x;if(!n.some(e=>!!e.requiresSiblings)){if(1===i)return n[0];const e=function(e,t){for(let i=0,r=n.length;i<r;i++){const r=n[i](e,t);if(r)return r}return null},t=n.find(e=>!!e.allBasenames);t&&(e.allBasenames=t.allBasenames);const r=n.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return r.length&&(e.allPaths=r),e}const r=function(e,t,i){let r=void 0;for(let s=0,a=n.length;s<a;s++){const a=n[s];a.requiresSiblings&&i&&(t||(t=o["a"](e)),r||(r=t.substr(0,t.length-o["c"](e).length)));const l=a(e,t,r,i);if(l)return l}return null},s=n.find(e=>!!e.allBasenames);s&&(r.allBasenames=s.allBasenames);const a=n.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return a.length&&(r.allPaths=a),r}function j(e,t,n){if(!1===t)return x;const i=O(e,n);if(i===x)return x;if("boolean"===typeof t)return i;if(t){const n=t.when;if("string"===typeof n){const t=(t,r,o,s)=>{if(!s||!i(t,r))return null;const l=n.replace("$(basename)",o),c=s(l);return Object(a["k"])(c)?c.then(t=>t?e:null):c?e:null};return t.requiresSiblings=!0,t}}return i}function R(e,t){const n=e.filter(e=>!!e.basenames);if(n.length<2)return e;const i=n.reduce((e,t)=>{const n=t.basenames;return n?e.concat(n):e},[]);let r;if(t){r=[];for(let e=0,n=i.length;e<n;e++)r.push(t)}else r=n.reduce((e,t)=>{const n=t.patterns;return n?e.concat(n):e},[]);const o=function(e,t){if("string"!==typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=i.indexOf(t);return-1!==n?r[n]:null};o.basenames=i,o.patterns=r,o.allBasenames=i;const s=e.filter(e=>!e.basenames);return s.push(o),s}},9850:function(e,t,n){"use strict";var i=n("1687"),r=n("dce8"),o=Math.min,s=Math.max,a=new r["a"],l=new r["a"],c=new r["a"],u=new r["a"],h=new r["a"],d=new r["a"],f=function(){function e(e,t,n,i){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}return e.prototype.union=function(e){var t=o(e.x,this.x),n=o(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=s(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=s(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,o=i["create"]();return i["translate"](o,o,[-t.x,-t.y]),i["scale"](o,o,[n,r]),i["translate"](o,o,[e.x,e.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,o=i.x,s=i.x+i.width,a=i.y,l=i.y+i.height,c=t.x,u=t.x+t.width,f=t.y,p=t.y+t.height,g=!(s<c||u<o||l<f||p<a);if(n){var m=1/0,v=0,b=Math.abs(s-c),y=Math.abs(u-o),_=Math.abs(l-f),w=Math.abs(p-a),C=Math.min(b,y),S=Math.min(_,w);s<c||u<o?C>v&&(v=C,b<y?r["a"].set(d,-b,0):r["a"].set(d,y,0)):C<m&&(m=C,b<y?r["a"].set(h,b,0):r["a"].set(h,-y,0)),l<f||p<a?S>v&&(v=S,_<w?r["a"].set(d,0,-_):r["a"].set(d,0,w)):C<m&&(m=C,_<w?r["a"].set(h,0,_):r["a"].set(h,0,-w))}return n&&r["a"].copy(n,g?h:d),g},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],h=i[3],d=i[4],f=i[5];return t.x=n.x*r+d,t.y=n.y*h+f,t.width=n.width*r,t.height=n.height*h,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}a.x=c.x=n.x,a.y=u.y=n.y,l.x=u.x=n.x+n.width,l.y=c.y=n.y+n.height,a.transform(i),u.transform(i),l.transform(i),c.transform(i),t.x=o(a.x,l.x,c.x,u.x),t.y=o(a.y,l.y,c.y,u.y);var p=s(a.x,l.x,c.x,u.x),g=s(a.y,l.y,c.y,u.y);t.width=p-t.x,t.height=g-t.y}else t!==n&&e.copy(t,n)},e}();t["a"]=f},9861:function(e,t,n){n("5352")},9876:function(e,t,n){var i=n("03d6"),r=n("9742");e.exports=Object.keys||function(e){return i(e,r)}},9886:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CRender",{enumerable:!0,get:function(){return r["default"]}}),Object.defineProperty(t,"extendNewGraph",{enumerable:!0,get:function(){return o.extendNewGraph}}),t["default"]=void 0;var r=i(n("85c4")),o=n("b06d"),s=r["default"];t["default"]=s},"98b7":function(e,t,n){"use strict";var i,r=n("22d1");i=r["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},t["a"]=i},9911:function(e,t,n){"use strict";var i=n("23e7"),r=n("857a"),o=n("af03");i({target:"String",proto:!0,forced:o("link")},{link:function(e){return r(this,"a","href",e)}})},"998a":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("76a5");function r(e,t,n,r,o,s,a,l){var c=new i["a"]({style:{text:e,font:t,align:n,verticalAlign:r,padding:o,rich:s,overflow:a?"truncate":null,lineHeight:l}});return c.getBoundingRect()}},"99af":function(e,t,n){"use strict";var i=n("23e7"),r=n("d039"),o=n("e8b5"),s=n("861d"),a=n("7b0b"),l=n("07fa"),c=n("3511"),u=n("8418"),h=n("65f0"),d=n("1dde"),f=n("b622"),p=n("2d00"),g=f("isConcatSpreadable"),m=p>=51||!r((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),v=d("concat"),b=function(e){if(!s(e))return!1;var t=e[g];return void 0!==t?!!t:o(e)},y=!m||!v;i({target:"Array",proto:!0,arity:1,forced:y},{concat:function(e){var t,n,i,r,o,s=a(this),d=h(s,0),f=0;for(t=-1,i=arguments.length;t<i;t++)if(o=-1===t?s:arguments[t],b(o))for(r=l(o),c(f+r),n=0;n<r;n++,f++)n in o&&u(d,f,o[n]);else c(f+1),u(d,f++,o);return d.length=f,d}})},"9a1f":function(e,t,n){var i=n("c65b"),r=n("59ed"),o=n("825a"),s=n("0d51"),a=n("35a1"),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(r(n))return o(i(n,e));throw l(s(e)+" is not iterable")}},"9ab4":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation.
|
||
|
||
Permission to use, copy, modify, and/or distribute this software for any
|
||
purpose with or without fee is hereby granted.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
PERFORMANCE OF THIS SOFTWARE.
|
||
***************************************************************************** */
|
||
var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create},"9ab49":function(e,t,n){},"9b06":function(e,t,n){},"9b42":function(e,t,n){function i(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n["return"]&&(s=n["return"](),Object(s)!==s))return}finally{if(c)throw r}}return a}}n("a4d3"),n("e01a"),n("d28b"),n("14d9"),n("d3b7"),n("3ca3"),n("ddb0"),e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},"9bdd":function(e,t,n){var i=n("825a"),r=n("2a62");e.exports=function(e,t,n,o){try{return o?t(i(n)[0],n[1]):t(n)}catch(s){r(e,"throw",s)}}},"9bf2":function(e,t,n){var i=n("83ab"),r=n("0cfb"),o=n("aed9"),s=n("825a"),a=n("a04b"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",f="writable";t.f=i?o?function(e,t,n){if(s(e),t=a(t),s(n),"function"===typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var i=u(e,t);i&&i[f]&&(e[t]=n.value,n={configurable:d in n?n[d]:i[d],enumerable:h in n?n[h]:i[h],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(s(e),t=a(t),s(n),r)try{return c(e,t,n)}catch(i){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9bfc":function(e,t,n){"use strict";function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function o(e,t,n){function o(e,n,i){return"string"===typeof t?t:t(e,n,i)}n||(n=Error);var s=function(e){function t(t,n,i){return e.call(this,o(t,n,i))||this}return i(t,e),t}(n);s.prototype.name=n.name,s.prototype.code=e,r[e]=s}function s(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}function a(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function l(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function c(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,n){var i,r;if("string"===typeof t&&a(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be",l(e," argument"))r="The ".concat(e," ").concat(i," ").concat(s(t,"type"));else{var o=c(e,".")?"property":"argument";r='The "'.concat(e,'" ').concat(o," ").concat(i," ").concat(s(t,"type"))}return r+=". Received type ".concat(typeof n),r}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},"9c0c":function(e,t,n){var i=n("1609");e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},"9c0e":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"9c1d":function(e,t,n){"use strict";n.d(t,"a",(function(){return pr}));var i=n("efdb"),r=n("b2cc"),o=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},s=function(e,t){return function(n,i){t(n,i,e)}};let a=class{constructor(e,t){}dispose(){}};a.ID="editor.contrib.markerDecorations",a=o([s(1,i["a"])],a),Object(r["l"])(a.ID,a);n("96b9");var l=n("dff7"),c=n("11f7"),u=n("fdcc"),h=n("308f"),d=n("a666"),f=n("b589"),p=n("1ddc"),g=n("5717"),m=n("0f70"),v=n("8025"),b=n("6653"),y=n("30db"),_=n("a60f"),w=n("5d28"),C=n("5fe7"),S=n("00a3");class x{constructor(e,t){this.x=e,this.y=t,this._pageCoordinatesBrand=void 0}toClientCoordinates(){return new O(this.x-c["f"].scrollX,this.y-c["f"].scrollY)}}class O{constructor(e,t){this.clientX=e,this.clientY=t,this._clientCoordinatesBrand=void 0}toPageCoordinates(){return new x(this.clientX+c["f"].scrollX,this.clientY+c["f"].scrollY)}}class k{constructor(e,t,n,i){this.x=e,this.y=t,this.width=n,this.height=i,this._editorPagePositionBrand=void 0}}function L(e){const t=c["D"](e);return new k(t.left,t.top,t.width,t.height)}class E extends w["a"]{constructor(e,t){super(e),this._editorMouseEventBrand=void 0,this.pos=new x(this.posx,this.posy),this.editorPos=L(t)}}class D{constructor(e){this._editorViewDomNode=e}_create(e){return new E(e,this._editorViewDomNode)}onContextMenu(e,t){return c["i"](e,"contextmenu",e=>{t(this._create(e))})}onMouseUp(e,t){return c["i"](e,"mouseup",e=>{t(this._create(e))})}onMouseDown(e,t){return c["i"](e,"mousedown",e=>{t(this._create(e))})}onMouseLeave(e,t){return c["j"](e,e=>{t(this._create(e))})}onMouseMoveThrottled(e,t,n,i){const r=(e,t)=>n(e,this._create(t));return c["l"](e,"mousemove",t,r,i)}}class I{constructor(e){this._editorViewDomNode=e}_create(e){return new E(e,this._editorViewDomNode)}onPointerUp(e,t){return c["i"](e,"pointerup",e=>{t(this._create(e))})}onPointerDown(e,t){return c["i"](e,"pointerdown",e=>{t(this._create(e))})}onPointerLeave(e,t){return c["k"](e,e=>{t(this._create(e))})}onPointerMoveThrottled(e,t,n,i){const r=(e,t)=>n(e,this._create(t));return c["l"](e,"pointermove",t,r,i)}}class M extends d["a"]{constructor(e){super(),this._editorViewDomNode=e,this._globalMouseMoveMonitor=this._register(new S["a"]),this._keydownListener=null}startMonitoring(e,t,n,i,r){this._keydownListener=c["o"](document,"keydown",e=>{const t=e.toKeybinding();t.isModifierKey()||this._globalMouseMoveMonitor.stopMonitoring(!0,e.browserEvent)},!0);const o=(e,t)=>n(e,new E(t,this._editorViewDomNode));this._globalMouseMoveMonitor.startMonitoring(e,t,o,i,e=>{this._keydownListener.dispose(),r(e)})}stopMonitoring(){this._globalMouseMoveMonitor.stopMonitoring(!0)}}class T extends d["a"]{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(e){return!1}onCompositionEnd(e){return!1}onConfigurationChanged(e){return!1}onCursorStateChanged(e){return!1}onDecorationsChanged(e){return!1}onFlushed(e){return!1}onFocusChanged(e){return!1}onLanguageConfigurationChanged(e){return!1}onLineMappingChanged(e){return!1}onLinesChanged(e){return!1}onLinesDeleted(e){return!1}onLinesInserted(e){return!1}onRevealRangeRequest(e){return!1}onScrollChanged(e){return!1}onThemeChanged(e){return!1}onTokensChanged(e){return!1}onTokensColorsChanged(e){return!1}onZonesChanged(e){return!1}handleEvents(e){let t=!1;for(let n=0,i=e.length;n<i;n++){let i=e[n];switch(i.type){case 0:this.onCompositionStart(i)&&(t=!0);break;case 1:this.onCompositionEnd(i)&&(t=!0);break;case 2:this.onConfigurationChanged(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);break;default:console.info("View received unknown event: "),console.info(i)}}t&&(this._shouldRender=!0)}}class A extends T{constructor(e){super(),this._context=e,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}}class N{static write(e,t){b["a"],e.setAttribute("data-mprt",String(t))}static read(e){const t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)}static collect(e,t){let n=[],i=0;while(e&&e!==document.body){if(e===t)break;e.nodeType===e.ELEMENT_NODE&&(n[i++]=this.read(e)),e=e.parentElement}const r=new Uint8Array(i);for(let o=0;o<i;o++)r[o]=n[i-o-1];return r}}class P{constructor(e,t){this._restrictedRenderingContextBrand=void 0,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;const n=this._viewLayout.getCurrentViewport();this.scrollTop=n.top,this.scrollLeft=n.left,this.viewportWidth=n.width,this.viewportHeight=n.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e){return this._viewLayout.getVerticalOffsetForLineNumber(e)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}class j extends P{constructor(e,t,n){super(e,t),this._renderingContextBrand=void 0,this._viewLines=n}linesVisibleRangesForRange(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)}}class R{constructor(e,t,n){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=n}}class F{constructor(e,t){this.left=Math.round(e),this.width=Math.round(t)}toString(){return`[${this.left},${this.width}]`}}class B{constructor(e,t){this.outsideRenderedLine=e,this.left=Math.round(t)}}class W{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}class V{constructor(e,t){this._floatHorizontalRangeBrand=void 0,this.left=e,this.width=t}toString(){return`[${this.left},${this.width}]`}static compare(e,t){return e.left-t.left}}class z{static _createRange(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,t){e.selectNodeContents(t)}static _readClientRects(e,t,n,i,r){const o=this._createRange();try{return o.setStart(e,t),o.setEnd(n,i),o.getClientRects()}catch(s){return null}finally{this._detachRange(o,r)}}static _mergeAdjacentRanges(e){if(1===e.length)return[new F(e[0].left,e[0].width)];e.sort(V.compare);let t=[],n=0,i=e[0].left,r=e[0].width;for(let o=1,s=e.length;o<s;o++){const s=e[o],a=s.left,l=s.width;i+r+.9>=a?r=Math.max(r,a+l-i):(t[n++]=new F(i,r),i=a,r=l)}return t[n++]=new F(i,r),t}static _createHorizontalRangesFromClientRects(e,t){if(!e||0===e.length)return null;const n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];n[i]=new V(Math.max(0,r.left-t),r.width)}return this._mergeAdjacentRanges(n)}static readHorizontalRanges(e,t,n,i,r,o,s){const a=0,l=e.children.length-1;if(a>l)return null;if(t=Math.min(l,Math.max(a,t)),i=Math.min(l,Math.max(a,i)),t===i&&n===r&&0===n&&!e.children[t].firstChild){const n=e.children[t].getClientRects();return this._createHorizontalRangesFromClientRects(n,o)}t!==i&&i>0&&0===r&&(i--,r=1073741824);let c=e.children[t].firstChild,u=e.children[i].firstChild;if(c&&u||(!c&&0===n&&t>0&&(c=e.children[t-1].firstChild,n=1073741824),!u&&0===r&&i>0&&(u=e.children[i-1].firstChild,r=1073741824)),!c||!u)return null;n=Math.min(c.textContent.length,Math.max(0,n)),r=Math.min(u.textContent.length,Math.max(0,r));const h=this._readClientRects(c,n,u,r,s);return this._createHorizontalRangesFromClientRects(h,o)}}var H=n("7416"),U=n("6da2"),q=n("9c41"),$=n("fd49");const K=function(){return!!y["g"]||!(y["d"]||m["g"]||m["h"])}();let G=!0;class Y{constructor(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}get clientRectDeltaLeft(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft}}class Z{constructor(e,t){this.themeType=t;const n=e.options,i=n.get(41);this.renderWhitespace=n.get(87),this.renderControlCharacters=n.get(81),this.spaceWidth=i.spaceWidth,this.middotWidth=i.middotWidth,this.wsmiddotWidth=i.wsmiddotWidth,this.useMonospaceOptimizations=i.isMonospace&&!n.get(27),this.canUseHalfwidthRightwardsArrow=i.canUseHalfwidthRightwardsArrow,this.lineHeight=n.get(57),this.stopRenderingLineAfter=n.get(104),this.fontLigatures=n.get(42)}equals(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures}}class X{constructor(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=Object(b["b"])(e)}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(e){this._isMaybeInvalid=!0,this._options=e}onSelectionChanged(){return(this._options.themeType===q["a"].HIGH_CONTRAST||"selection"===this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)}renderLine(e,t,n,i){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;const r=n.getViewLineRenderingData(e),o=this._options,s=H["a"].filter(r.inlineDecorations,e,r.minColumn,r.maxColumn);let a=null;if(o.themeType===q["a"].HIGH_CONTRAST||"selection"===this._options.renderWhitespace){const t=n.selections;for(const n of t){if(n.endLineNumber<e||n.startLineNumber>e)continue;const t=n.startLineNumber===e?n.startColumn:r.minColumn,i=n.endLineNumber===e?n.endColumn:r.maxColumn;t<i&&(o.themeType===q["a"].HIGH_CONTRAST||"selection"!==this._options.renderWhitespace?s.push(new H["a"](t,i,"inline-selected-text",0)):(a||(a=[]),a.push(new U["b"](t-1,i-1))))}}const l=new U["c"](o.useMonospaceOptimizations,o.canUseHalfwidthRightwardsArrow,r.content,r.continuesWithWrappedLine,r.isBasicASCII,r.containsRTL,r.minColumn-1,r.tokens,s,r.tabSize,r.startVisibleColumn,o.spaceWidth,o.middotWidth,o.wsmiddotWidth,o.stopRenderingLineAfter,o.renderWhitespace,o.renderControlCharacters,o.fontLigatures!==$["e"].OFF,a);if(this._renderedViewLine&&this._renderedViewLine.input.equals(l))return!1;i.appendASCIIString('<div style="top:'),i.appendASCIIString(String(t)),i.appendASCIIString("px;height:"),i.appendASCIIString(String(this._options.lineHeight)),i.appendASCIIString('px;" class="'),i.appendASCIIString(X.CLASS_NAME),i.appendASCIIString('">');const c=Object(U["d"])(l,i);i.appendASCIIString("</div>");let u=null;return G&&K&&r.isBasicASCII&&o.useMonospaceOptimizations&&0===c.containsForeignElements&&r.content.length<300&&l.lineTokens.getCount()<100&&(u=new Q(this._renderedViewLine?this._renderedViewLine.domNode:null,l,c.characterMapping)),u||(u=te(this._renderedViewLine?this._renderedViewLine.domNode:null,l,c.characterMapping,c.containsRTL,c.containsForeignElements)),this._renderedViewLine=u,!0}layoutLine(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))}getWidth(){return this._renderedViewLine?this._renderedViewLine.getWidth():0}getWidthIsFast(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()}needsMonospaceFontCheck(){return!!this._renderedViewLine&&this._renderedViewLine instanceof Q}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof Q?this._renderedViewLine.monospaceAssumptionsAreValid():G}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof Q&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(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));const i=0|this._renderedViewLine.input.stopRenderingLineAfter;let r=!1;-1!==i&&e>i+1&&t>i+1&&(r=!0),-1!==i&&e>i+1&&(e=i+1),-1!==i&&t>i+1&&(t=i+1);const o=this._renderedViewLine.getVisibleRangesForRange(e,t,n);return o&&o.length>0?new W(r,o):null}getColumnOfNodeOffset(e,t,n){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,n):1}}X.CLASS_NAME="view-line";class Q{constructor(e,t,n){this.domNode=e,this.input=t,this._characterMapping=n,this._charWidth=t.spaceWidth}getWidth(){return this._getCharPosition(this._characterMapping.length)}getWidthIsFast(){return!0}monospaceAssumptionsAreValid(){if(!this.domNode)return G;const e=this.getWidth(),t=this.domNode.domNode.firstChild.offsetWidth;return Math.abs(e-t)>=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),G=!1),G}toSlowRenderedLine(){return te(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(e,t,n){const i=this._getCharPosition(e),r=this._getCharPosition(t);return[new F(i,r-i)]}_getCharPosition(e){const t=this._characterMapping.getAbsoluteOffset(e);return Math.round(this._charWidth*t)}getColumnOfNodeOffset(e,t,n){const i=t.textContent.length;let r=-1;while(t)t=t.previousSibling,r++;return this._characterMapping.getColumn(new U["a"](r,n),i)}}class J{constructor(e,t,n,i,r){if(this.domNode=e,this.input=t,this._characterMapping=n,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=r,this._cachedWidth=-1,this._pixelOffsetCache=null,!i||0===this._characterMapping.length){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(let e=0,t=this._characterMapping.length;e<=t;e++)this._pixelOffsetCache[e]=-1}}_getReadingTarget(e){return e.domNode.firstChild}getWidth(){return this.domNode?(-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0}getWidthIsFast(){return-1!==this._cachedWidth}getVisibleRangesForRange(e,t,n){if(!this.domNode)return null;if(null!==this._pixelOffsetCache){const i=this._readPixelOffset(this.domNode,e,n);if(-1===i)return null;const r=this._readPixelOffset(this.domNode,t,n);return-1===r?null:[new F(i,r-i)]}return this._readVisibleRangesForRange(this.domNode,e,t,n)}_readVisibleRangesForRange(e,t,n,i){if(t===n){const n=this._readPixelOffset(e,t,i);return-1===n?null:[new F(n,0)]}return this._readRawVisibleRangesForRange(e,t,n,i)}_readPixelOffset(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();const t=this._getReadingTarget(e);return t.firstChild?t.firstChild.offsetWidth:0}if(null!==this._pixelOffsetCache){const i=this._pixelOffsetCache[t];if(-1!==i)return i;const r=this._actualReadPixelOffset(e,t,n);return this._pixelOffsetCache[t]=r,r}return this._actualReadPixelOffset(e,t,n)}_actualReadPixelOffset(e,t,n){if(0===this._characterMapping.length){const t=z.readHorizontalRanges(this._getReadingTarget(e),0,0,0,0,n.clientRectDeltaLeft,n.endNode);return t&&0!==t.length?t[0].left:-1}if(t===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();const i=this._characterMapping.getDomPosition(t),r=z.readHorizontalRanges(this._getReadingTarget(e),i.partIndex,i.charIndex,i.partIndex,i.charIndex,n.clientRectDeltaLeft,n.endNode);if(!r||0===r.length)return-1;const o=r[0].left;if(this.input.isBasicASCII){const e=this._characterMapping.getAbsoluteOffset(t),n=Math.round(this.input.spaceWidth*e);if(Math.abs(n-o)<=1)return n}return o}_readRawVisibleRangesForRange(e,t,n,i){if(1===t&&n===this._characterMapping.length)return[new F(0,this.getWidth())];const r=this._characterMapping.getDomPosition(t),o=this._characterMapping.getDomPosition(n);return z.readHorizontalRanges(this._getReadingTarget(e),r.partIndex,r.charIndex,o.partIndex,o.charIndex,i.clientRectDeltaLeft,i.endNode)}getColumnOfNodeOffset(e,t,n){const i=t.textContent.length;let r=-1;while(t)t=t.previousSibling,r++;return this._characterMapping.getColumn(new U["a"](r,n),i)}}class ee extends J{_readVisibleRangesForRange(e,t,n,i){const r=super._readVisibleRangesForRange(e,t,n,i);if(!r||0===r.length||t===n||1===t&&n===this._characterMapping.length)return r;if(!this.input.containsRTL){const t=this._readPixelOffset(e,n,i);if(-1!==t){const e=r[r.length-1];e.left<t&&(e.width=t-e.left)}}return r}}const te=function(){return m["j"]?ne:ie}();function ne(e,t,n,i,r){return new ee(e,t,n,i,r)}function ie(e,t,n,i,r){return new J(e,t,n,i,r)}var re,oe=n("7061"),se=n("6a89"),ae=n("2e5d"),le=n("708a");class ce{constructor(e=null){this.hitTarget=e,this.type=0}}class ue{constructor(e,t,n){this.position=e,this.spanNode=t,this.injectedText=n,this.type=1}}(function(e){function t(e,t,n){const i=e.getPositionFromDOMInfo(t,n);return i?new ue(i,t,null):new ce(t)}e.createFromDOMInfo=t})(re||(re={}));class he{constructor(e,t){this.lastViewCursorsRenderData=e,this.lastTextareaPosition=t}}class de{constructor(e,t,n=0,i=null,r=null,o=null){this.element=e,this.type=t,this.mouseColumn=n,this.position=i,!r&&i&&(r=new se["a"](i.lineNumber,i.column,i.lineNumber,i.column)),this.range=r,this.detail=o}static _typeToString(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"}static toString(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+e.detail}toString(){return de.toString(this)}}class fe{static isTextArea(e){return 2===e.length&&3===e[0]&&6===e[1]}static isChildOfViewLines(e){return e.length>=4&&3===e[0]&&7===e[3]}static isStrictChildOfViewLines(e){return e.length>4&&3===e[0]&&7===e[3]}static isChildOfScrollableElement(e){return e.length>=2&&3===e[0]&&5===e[1]}static isChildOfMinimap(e){return e.length>=2&&3===e[0]&&8===e[1]}static isChildOfContentWidgets(e){return e.length>=4&&3===e[0]&&1===e[3]}static isChildOfOverflowingContentWidgets(e){return e.length>=1&&2===e[0]}static isChildOfOverlayWidgets(e){return e.length>=2&&3===e[0]&&4===e[1]}}class pe{constructor(e,t,n){this.model=e.model;const i=e.configuration.options;this.layoutInfo=i.get(129),this.viewDomNode=t.viewDomNode,this.lineHeight=i.get(57),this.stickyTabStops=i.get(103),this.typicalHalfwidthCharacterWidth=i.get(41).typicalHalfwidthCharacterWidth,this.lastRenderData=n,this._context=e,this._viewHelper=t}getZoneAtCoord(e){return pe.getZoneAtCoord(this._context,e)}static getZoneAtCoord(e,t){const n=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(n){const i=n.verticalOffset+n.height/2,r=e.model.getLineCount();let o,s=null,a=null;return n.afterLineNumber!==r&&(a=new oe["a"](n.afterLineNumber+1,1)),n.afterLineNumber>0&&(s=new oe["a"](n.afterLineNumber,e.model.getLineMaxColumn(n.afterLineNumber))),o=null===a?s:null===s?a:t<i?s:a,{viewZoneId:n.id,afterLineNumber:n.afterLineNumber,positionBefore:s,positionAfter:a,position:o}}return null}getFullLineRangeAtCoord(e){if(this._context.viewLayout.isAfterLines(e)){const e=this._context.model.getLineCount(),t=this._context.model.getLineMaxColumn(e);return{range:new se["a"](e,t,e,t),isAfterLines:!0}}const t=this._context.viewLayout.getLineNumberAtVerticalOffset(e),n=this._context.model.getLineMaxColumn(t);return{range:new se["a"](t,1,t,n),isAfterLines:!1}}getLineNumberAtVerticalOffset(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)}isAfterLines(e){return this._context.viewLayout.isAfterLines(e)}isInTopPadding(e){return this._context.viewLayout.isInTopPadding(e)}isInBottomPadding(e){return this._context.viewLayout.isInBottomPadding(e)}getVerticalOffsetForLineNumber(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)}findAttribute(e,t){return pe._findAttribute(e,t,this._viewHelper.viewDomNode)}static _findAttribute(e,t,n){while(e&&e!==document.body){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===n)return null;e=e.parentNode}return null}getLineWidth(e){return this._viewHelper.getLineWidth(e)}visibleRangeForPosition(e,t){return this._viewHelper.visibleRangeForPosition(e,t)}getPositionFromDOMInfo(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)}getCurrentScrollTop(){return this._context.viewLayout.getCurrentScrollTop()}getCurrentScrollLeft(){return this._context.viewLayout.getCurrentScrollLeft()}}class ge{constructor(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))}}class me extends ge{constructor(e,t,n,i){super(e,t,n),this._ctx=e,i?(this.target=i,this.targetPath=N.collect(i,e.viewDomNode)):(this.target=null,this.targetPath=new Uint8Array(0))}toString(){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}`}fulfill(e,t=null,n=null,i=null){let r=this.mouseColumn;return t&&t.column<this._ctx.model.getLineMaxColumn(t.lineNumber)&&(r=ae["a"].visibleColumnFromColumn(this._ctx.model.getLineContent(t.lineNumber),t.column,this._ctx.model.getTextModelOptions().tabSize)+1),new de(this.target,e,r,t,n,i)}withTarget(e){return new me(this._ctx,this.editorPos,this.pos,e)}}const ve={isAfterLines:!0};function be(e){return{isAfterLines:!1,horizontalDistanceToText:e}}class ye{constructor(e,t){this._context=e,this._viewHelper=t}mouseTargetIsWidget(e){const t=e.target,n=N.collect(t,this._viewHelper.viewDomNode);return!(!fe.isChildOfContentWidgets(n)&&!fe.isChildOfOverflowingContentWidgets(n))||!!fe.isChildOfOverlayWidgets(n)}createMouseTarget(e,t,n,i){const r=new pe(this._context,this._viewHelper,e),o=new me(r,t,n,i);try{const e=ye._createMouseTarget(r,o,!1);return e}catch(s){return o.fulfill(0)}}static _createMouseTarget(e,t,n){if(null===t.target){if(n)return t.fulfill(0);const i=ye._doHitTest(e,t);return 1===i.type?ye.createMouseTargetFromHitTestPosition(e,t,i.spanNode,i.position,i.injectedText):this._createMouseTarget(e,t.withTarget(i.hitTarget),!0)}const i=t;let r=null;return r=r||ye._hitTestContentWidget(e,i),r=r||ye._hitTestOverlayWidget(e,i),r=r||ye._hitTestMinimap(e,i),r=r||ye._hitTestScrollbarSlider(e,i),r=r||ye._hitTestViewZone(e,i),r=r||ye._hitTestMargin(e,i),r=r||ye._hitTestViewCursor(e,i),r=r||ye._hitTestTextArea(e,i),r=r||ye._hitTestViewLines(e,i,n),r=r||ye._hitTestScrollbar(e,i),r||t.fulfill(0)}static _hitTestContentWidget(e,t){if(fe.isChildOfContentWidgets(t.targetPath)||fe.isChildOfOverflowingContentWidgets(t.targetPath)){const n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(9,null,null,n):t.fulfill(0)}return null}static _hitTestOverlayWidget(e,t){if(fe.isChildOfOverlayWidgets(t.targetPath)){const n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(12,null,null,n):t.fulfill(0)}return null}static _hitTestViewCursor(e,t){if(t.target){const n=e.lastRenderData.lastViewCursorsRenderData;for(const e of n)if(t.target===e.domNode)return t.fulfill(6,e.position,null,{mightBeForeignElement:!1})}if(t.isInContentArea){const n=e.lastRenderData.lastViewCursorsRenderData,i=t.mouseContentHorizontalOffset,r=t.mouseVerticalOffset;for(const o of n){if(i<o.contentLeft)continue;if(i>o.contentLeft+o.width)continue;const n=e.getVerticalOffsetForLineNumber(o.position.lineNumber);if(n<=r&&r<=n+o.height)return t.fulfill(6,o.position,null,{mightBeForeignElement:!1})}}return null}static _hitTestViewZone(e,t){const n=e.getZoneAtCoord(t.mouseVerticalOffset);if(n){const e=t.isInContentArea?8:5;return t.fulfill(e,n.position,null,n)}return null}static _hitTestTextArea(e,t){return fe.isTextArea(t.targetPath)?e.lastRenderData.lastTextareaPosition?t.fulfill(6,e.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1}):t.fulfill(1,e.lastRenderData.lastTextareaPosition):null}static _hitTestMargin(e,t){if(t.isInMarginArea){const n=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),i=n.range.getStartPosition();let r=Math.abs(t.pos.x-t.editorPos.x);const o={isAfterLines:n.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:r};return r-=e.layoutInfo.glyphMarginLeft,r<=e.layoutInfo.glyphMarginWidth?t.fulfill(2,i,n.range,o):(r-=e.layoutInfo.glyphMarginWidth,r<=e.layoutInfo.lineNumbersWidth?t.fulfill(3,i,n.range,o):(r-=e.layoutInfo.lineNumbersWidth,t.fulfill(4,i,n.range,o)))}return null}static _hitTestViewLines(e,t,n){if(!fe.isChildOfViewLines(t.targetPath))return null;if(e.isInTopPadding(t.mouseVerticalOffset))return t.fulfill(7,new oe["a"](1,1),null,ve);if(e.isAfterLines(t.mouseVerticalOffset)||e.isInBottomPadding(t.mouseVerticalOffset)){const n=e.model.getLineCount(),i=e.model.getLineMaxColumn(n);return t.fulfill(7,new oe["a"](n,i),null,ve)}if(n){if(fe.isStrictChildOfViewLines(t.targetPath)){const n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(0===e.model.getLineLength(n)){const i=e.getLineWidth(n),r=be(t.mouseContentHorizontalOffset-i);return t.fulfill(7,new oe["a"](n,1),null,r)}const i=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>=i){const r=be(t.mouseContentHorizontalOffset-i),o=new oe["a"](n,e.model.getLineMaxColumn(n));return t.fulfill(7,o,null,r)}}return t.fulfill(0)}const i=ye._doHitTest(e,t);return 1===i.type?ye.createMouseTargetFromHitTestPosition(e,t,i.spanNode,i.position,i.injectedText):this._createMouseTarget(e,t.withTarget(i.hitTarget),!0)}static _hitTestMinimap(e,t){if(fe.isChildOfMinimap(t.targetPath)){const n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new oe["a"](n,i))}return null}static _hitTestScrollbarSlider(e,t){if(fe.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){const n=t.target.className;if(n&&/\b(slider|scrollbar)\b/.test(n)){const n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new oe["a"](n,i))}}return null}static _hitTestScrollbar(e,t){if(fe.isChildOfScrollableElement(t.targetPath)){const n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(11,new oe["a"](n,i))}return null}getMouseColumn(e,t){const n=this._context.configuration.options,i=n.get(129),r=this._context.viewLayout.getCurrentScrollLeft()+t.x-e.x-i.contentLeft;return ye._getMouseColumn(r,n.get(41).typicalHalfwidthCharacterWidth)}static _getMouseColumn(e,t){if(e<0)return 1;const n=Math.round(e/t);return n+1}static createMouseTargetFromHitTestPosition(e,t,n,i,r){const o=i.lineNumber,s=i.column,a=e.getLineWidth(o);if(t.mouseContentHorizontalOffset>a){const e=be(t.mouseContentHorizontalOffset-a);return t.fulfill(7,i,null,e)}const l=e.visibleRangeForPosition(o,s);if(!l)return t.fulfill(0,i);const c=l.left;if(t.mouseContentHorizontalOffset===c)return t.fulfill(6,i,null,{mightBeForeignElement:!!r});const u=[];if(u.push({offset:l.left,column:s}),s>1){const t=e.visibleRangeForPosition(o,s-1);t&&u.push({offset:t.left,column:s-1})}const h=e.model.getLineMaxColumn(o);if(s<h){const t=e.visibleRangeForPosition(o,s+1);t&&u.push({offset:t.left,column:s+1})}u.sort((e,t)=>e.offset-t.offset);const d=t.pos.toClientCoordinates(),f=n.getBoundingClientRect(),p=f.left<=d.clientX&&d.clientX<=f.right;for(let g=1;g<u.length;g++){const e=u[g-1],n=u[g];if(e.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=n.offset){const s=new se["a"](o,e.column,o,n.column);return t.fulfill(6,i,s,{mightBeForeignElement:!p||!!r})}}return t.fulfill(6,i,null,{mightBeForeignElement:!p||!!r})}static _doHitTestWithCaretRangeFromPoint(e,t){const n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.getVerticalOffsetForLineNumber(n),r=i+Math.floor(e.lineHeight/2);let o=t.pos.y+(r-t.mouseVerticalOffset);o<=t.editorPos.y&&(o=t.editorPos.y+1),o>=t.editorPos.y+e.layoutInfo.height&&(o=t.editorPos.y+e.layoutInfo.height-1);const s=new x(t.pos.x,o),a=this._actualDoHitTestWithCaretRangeFromPoint(e,s.toClientCoordinates());return 1===a.type?a:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())}static _actualDoHitTestWithCaretRangeFromPoint(e,t){const n=c["F"](e.viewDomNode);let i;if(i=n?"undefined"===typeof n.caretRangeFromPoint?_e(n,t.clientX,t.clientY):n.caretRangeFromPoint(t.clientX,t.clientY):document.caretRangeFromPoint(t.clientX,t.clientY),!i||!i.startContainer)return new ce;const r=i.startContainer;if(r.nodeType===r.TEXT_NODE){const t=r.parentNode,n=t?t.parentNode:null,o=n?n.parentNode:null,s=o&&o.nodeType===o.ELEMENT_NODE?o.className:null;return s===X.CLASS_NAME?re.createFromDOMInfo(e,t,i.startOffset):new ce(r.parentNode)}if(r.nodeType===r.ELEMENT_NODE){const t=r.parentNode,n=t?t.parentNode:null,i=n&&n.nodeType===n.ELEMENT_NODE?n.className:null;return i===X.CLASS_NAME?re.createFromDOMInfo(e,r,r.textContent.length):new ce(r)}return new ce}static _doHitTestWithCaretPositionFromPoint(e,t){const n=document.caretPositionFromPoint(t.clientX,t.clientY);if(n.offsetNode.nodeType===n.offsetNode.TEXT_NODE){const t=n.offsetNode.parentNode,i=t?t.parentNode:null,r=i?i.parentNode:null,o=r&&r.nodeType===r.ELEMENT_NODE?r.className:null;return o===X.CLASS_NAME?re.createFromDOMInfo(e,n.offsetNode.parentNode,n.offset):new ce(n.offsetNode.parentNode)}if(n.offsetNode.nodeType===n.offsetNode.ELEMENT_NODE){const t=n.offsetNode.parentNode,i=t&&t.nodeType===t.ELEMENT_NODE?t.className:null,r=t?t.parentNode:null,o=r&&r.nodeType===r.ELEMENT_NODE?r.className:null;if(i===X.CLASS_NAME){const t=n.offsetNode.childNodes[Math.min(n.offset,n.offsetNode.childNodes.length-1)];if(t)return re.createFromDOMInfo(e,t,0)}else if(o===X.CLASS_NAME)return re.createFromDOMInfo(e,n.offsetNode,0)}return new ce(n.offsetNode)}static _snapToSoftTabBoundary(e,t){const n=t.getLineContent(e.lineNumber),{tabSize:i}=t.getTextModelOptions(),r=le["a"].atomicPosition(n,e.column-1,i,2);return-1!==r?new oe["a"](e.lineNumber,r+1):e}static _doHitTest(e,t){let n=new ce;if("function"===typeof document.caretRangeFromPoint?n=this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint&&(n=this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates())),1===n.type){const t=e.model.getInjectedTextAt(n.position),i=e.model.normalizePosition(n.position,2);!t&&i.equals(n.position)||(n=new ue(i,n.spanNode,t))}return 1===n.type&&e.stickyTabStops&&(n=new ue(this._snapToSoftTabBoundary(n.position,e.model),n.spanNode,n.injectedText)),n}}function _e(e,t,n){const i=document.createRange();let r=e.elementFromPoint(t,n);if(null!==r){while(r&&r.firstChild&&r.firstChild.nodeType!==r.firstChild.TEXT_NODE&&r.lastChild&&r.lastChild.firstChild)r=r.lastChild;const e=r.getBoundingClientRect(),n=window.getComputedStyle(r,null).getPropertyValue("font"),o=r.innerText;let s,a=e.left,l=0;if(t>e.left+e.width)l=o.length;else{const e=we.getInstance();for(let i=0;i<o.length+1;i++){if(s=e.getCharWidth(o.charAt(i),n)/2,a+=s,t<a){l=i;break}a+=s}}i.setStart(r.firstChild,l),i.setEnd(r.firstChild,l)}return i}class we{constructor(){this._cache={},this._canvas=document.createElement("canvas")}static getInstance(){return we._INSTANCE||(we._INSTANCE=new we),we._INSTANCE}getCharWidth(e,t){const n=e+t;if(this._cache[n])return this._cache[n];const i=this._canvas.getContext("2d");i.font=t;const r=i.measureText(e),o=r.width;return this._cache[n]=o,o}}we._INSTANCE=null;var Ce=n("62bd");function Se(e){return function(t,n){let i=!1;return e&&(i=e.mouseTargetIsWidget(n)),i||n.preventDefault(),n}}class xe extends T{constructor(e,t,n){super(),this._context=e,this.viewController=t,this.viewHelper=n,this.mouseTargetFactory=new ye(this._context,n),this._mouseDownOperation=this._register(new Oe(this._context,this.viewController,this.viewHelper,(e,t)=>this._createMouseTarget(e,t),e=>this._getMouseColumn(e))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(129).height;const i=new D(this.viewHelper.viewDomNode);this._register(i.onContextMenu(this.viewHelper.viewDomNode,e=>this._onContextMenu(e,!0))),this._register(i.onMouseMoveThrottled(this.viewHelper.viewDomNode,e=>this._onMouseMove(e),Se(this.mouseTargetFactory),xe.MOUSE_MOVE_MINIMUM_TIME)),this._register(i.onMouseUp(this.viewHelper.viewDomNode,e=>this._onMouseUp(e))),this._register(i.onMouseLeave(this.viewHelper.viewDomNode,e=>this._onMouseLeave(e))),this._register(i.onMouseDown(this.viewHelper.viewDomNode,e=>this._onMouseDown(e)));const r=e=>{if(this.viewController.emitMouseWheel(e),!this._context.configuration.options.get(66))return;const t=new w["b"](e),n=y["f"]?(e.metaKey||e.ctrlKey)&&!e.shiftKey&&!e.altKey:e.ctrlKey&&!e.metaKey&&!e.shiftKey&&!e.altKey;if(n){const e=Ce["a"].getZoomLevel(),n=t.deltaY>0?1:-1;Ce["a"].setZoomLevel(e+n),t.preventDefault(),t.stopPropagation()}};this._register(c["i"](this.viewHelper.viewDomNode,c["d"].MOUSE_WHEEL,r,{capture:!0,passive:!1})),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){if(e.hasChanged(129)){const e=this._context.configuration.options.get(129).height;this._height!==e&&(this._height=e,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(e){return this._mouseDownOperation.onCursorStateChanged(e),!1}onFocusChanged(e){return!1}onScrollChanged(e){return this._mouseDownOperation.onScrollChanged(),!1}getTargetAtClientPoint(e,t){const n=new O(e,t),i=n.toPageCoordinates(),r=L(this.viewHelper.viewDomNode);return i.y<r.y||i.y>r.y+r.height||i.x<r.x||i.x>r.x+r.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),r,i,null)}_createMouseTarget(e,t){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),e.editorPos,e.pos,t?e.target:null)}_getMouseColumn(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)}_onContextMenu(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})}_onMouseMove(e){if(this._mouseDownOperation.isActive())return;const t=e.timestamp;t<this.lastMouseLeaveTime||this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})}_onMouseLeave(e){this.lastMouseLeaveTime=(new Date).getTime(),this.viewController.emitMouseLeave({event:e,target:null})}_onMouseUp(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})}_onMouseDown(e){const t=this._createMouseTarget(e,!0),n=6===t.type||7===t.type,i=2===t.type||3===t.type||4===t.type,r=3===t.type,o=this._context.configuration.options.get(97),s=8===t.type||5===t.type,a=9===t.type;let l=e.leftButton||e.middleButton;y["f"]&&e.leftButton&&e.ctrlKey&&(l=!1);const c=()=>{e.preventDefault(),this.viewHelper.focusTextArea()};if(l&&(n||r&&o))c(),this._mouseDownOperation.start(t.type,e);else if(i)e.preventDefault();else if(s){const n=t.detail;this.viewHelper.shouldSuppressMouseDownOnViewZone(n.viewZoneId)&&(c(),this._mouseDownOperation.start(t.type,e),e.preventDefault())}else a&&this.viewHelper.shouldSuppressMouseDownOnWidget(t.detail)&&(c(),e.preventDefault());this.viewController.emitMouseDown({event:e,target:t})}}xe.MOUSE_MOVE_MINIMUM_TIME=100;class Oe extends d["a"]{constructor(e,t,n,i,r){super(),this._context=e,this._viewController=t,this._viewHelper=n,this._createMouseTarget=i,this._getMouseColumn=r,this._mouseMoveMonitor=this._register(new M(this._viewHelper.viewDomNode)),this._onScrollTimeout=this._register(new C["g"]),this._mouseState=new ke,this._currentSelection=new v["a"](1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(e){this._lastMouseEvent=e,this._mouseState.setModifiers(e);const t=this._findMousePosition(e,!0);t&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0))}start(e,t){this._lastMouseEvent=t,this._mouseState.setStartedOnLineNumbers(3===e),this._mouseState.setStartButtons(t),this._mouseState.setModifiers(t);const n=this._findMousePosition(t,!0);if(!n||!n.position)return;this._mouseState.trySetCount(t.detail,n.position),t.detail=this._mouseState.count;const i=this._context.configuration.options;if(!i.get(79)&&i.get(29)&&!i.get(16)&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===n.type&&n.position&&this._currentSelection.containsPosition(n.position))return this._mouseState.isDragAndDrop=!0,this._isActive=!0,void this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,Se(null),e=>this._onMouseDownThenMove(e),e=>{const t=this._findMousePosition(this._lastMouseEvent,!0);e&&e instanceof KeyboardEvent?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:t?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});this._mouseState.isDragAndDrop=!1,this._dispatchMouse(n,t.shiftKey),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(t.target,t.buttons,Se(null),e=>this._onMouseDownThenMove(e),()=>this._stop()))}_stop(){this._isActive=!1,this._onScrollTimeout.cancel()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onScrollChanged(){this._isActive&&this._onScrollTimeout.setIfNotSet(()=>{if(!this._lastMouseEvent)return;const e=this._findMousePosition(this._lastMouseEvent,!1);e&&(this._mouseState.isDragAndDrop||this._dispatchMouse(e,!0))},10)}onCursorStateChanged(e){this._currentSelection=e.selections[0]}_getPositionOutsideEditor(e){const t=e.editorPos,n=this._context.model,i=this._context.viewLayout,r=this._getMouseColumn(e);if(e.posy<t.y){const n=Math.max(i.getCurrentScrollTop()-(t.y-e.posy),0),o=pe.getZoneAtCoord(this._context,n);if(o){const e=this._helpPositionJumpOverViewZone(o);if(e)return new de(null,13,r,e)}const s=i.getLineNumberAtVerticalOffset(n);return new de(null,13,r,new oe["a"](s,1))}if(e.posy>t.y+t.height){const o=i.getCurrentScrollTop()+(e.posy-t.y),s=pe.getZoneAtCoord(this._context,o);if(s){const e=this._helpPositionJumpOverViewZone(s);if(e)return new de(null,13,r,e)}const a=i.getLineNumberAtVerticalOffset(o);return new de(null,13,r,new oe["a"](a,n.getLineMaxColumn(a)))}const o=i.getLineNumberAtVerticalOffset(i.getCurrentScrollTop()+(e.posy-t.y));return e.posx<t.x?new de(null,13,r,new oe["a"](o,1)):e.posx>t.x+t.width?new de(null,13,r,new oe["a"](o,n.getLineMaxColumn(o))):null}_findMousePosition(e,t){const n=this._getPositionOutsideEditor(e);if(n)return n;const i=this._createMouseTarget(e,t),r=i.position;if(!r)return null;if(8===i.type||5===i.type){const e=this._helpPositionJumpOverViewZone(i.detail);if(e)return new de(i.element,i.type,i.mouseColumn,e,null,i.detail)}return i}_helpPositionJumpOverViewZone(e){const t=new oe["a"](this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),n=e.positionBefore,i=e.positionAfter;return n&&i?n.isBefore(t)?n:i:null}_dispatchMouse(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})}}class ke{constructor(){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}get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}get count(){return this._lastMouseDownCount}setModifiers(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey}setStartButtons(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton}setStartedOnLineNumbers(e){this._startedOnLineNumbers=e}trySetCount(e,t){const n=(new Date).getTime();n-this._lastSetMouseDownCountTime>ke.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)}}ke.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var Le=n("0a31"),Ee=n("e53c");class De extends xe{constructor(e,t,n){super(e,t,n),this._register(_["b"].addTarget(this.viewHelper.linesContentDomNode)),this._register(c["i"](this.viewHelper.linesContentDomNode,_["a"].Tap,e=>this.onTap(e))),this._register(c["i"](this.viewHelper.linesContentDomNode,_["a"].Change,e=>this.onChange(e))),this._register(c["i"](this.viewHelper.linesContentDomNode,_["a"].Contextmenu,e=>this._onContextMenu(new E(e,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(c["i"](this.viewHelper.linesContentDomNode,"pointerdown",e=>{const t=e.pointerType;this._lastPointerType="mouse"!==t?"touch"===t?"touch":"pen":"mouse"}));const i=new I(this.viewHelper.viewDomNode);this._register(i.onPointerMoveThrottled(this.viewHelper.viewDomNode,e=>this._onMouseMove(e),Se(this.mouseTargetFactory),xe.MOUSE_MOVE_MINIMUM_TIME)),this._register(i.onPointerUp(this.viewHelper.viewDomNode,e=>this._onMouseUp(e))),this._register(i.onPointerLeave(this.viewHelper.viewDomNode,e=>this._onMouseLeave(e))),this._register(i.onPointerDown(this.viewHelper.viewDomNode,e=>this._onMouseDown(e)))}onTap(e){if(!e.initialTarget||!this.viewHelper.linesContentDomNode.contains(e.initialTarget))return;e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new E(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})}onChange(e){"touch"===this._lastPointerType&&this._context.model.deltaScrollNow(-e.translationX,-e.translationY)}_onMouseDown(e){"touch"!==e.browserEvent.pointerType&&super._onMouseDown(e)}}class Ie extends xe{constructor(e,t,n){super(e,t,n),this._register(_["b"].addTarget(this.viewHelper.linesContentDomNode)),this._register(c["i"](this.viewHelper.linesContentDomNode,_["a"].Tap,e=>this.onTap(e))),this._register(c["i"](this.viewHelper.linesContentDomNode,_["a"].Change,e=>this.onChange(e))),this._register(c["i"](this.viewHelper.linesContentDomNode,_["a"].Contextmenu,e=>this._onContextMenu(new E(e,this.viewHelper.viewDomNode),!1)))}onTap(e){e.preventDefault(),this.viewHelper.focusTextArea();const t=this._createMouseTarget(new E(e,this.viewHelper.viewDomNode),!1);if(t.position){const e=document.createEvent("CustomEvent");e.initEvent(Ee["d"].Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(e),this.viewController.moveTo(t.position)}}onChange(e){this._context.model.deltaScrollNow(-e.translationX,-e.translationY)}}class Me extends d["a"]{constructor(e,t,n){super(),y["c"]&&Le["a"].pointerEvents?this.handler=this._register(new De(e,t,n)):window.TouchEvent?this.handler=this._register(new Ie(e,t,n)):this.handler=this._register(new xe(e,t,n))}getTargetAtClientPoint(e,t){return this.handler.getTargetAtClientPoint(e,t)}}n("56f3");var Te=n("3742"),Ae=n("0a89");n("2ab7");class Ne extends T{}var Pe=n("918c"),je=n("b7d0");class Re extends Ne{constructor(e){super(),this._context=e,this._readConfig(),this._lastCursorModelPosition=new oe["a"](1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const e=this._context.configuration.options;this._lineHeight=e.get(57);const t=e.get(58);this._renderLineNumbers=t.renderType,this._renderCustomLineNumbers=t.renderFn,this._renderFinalNewline=e.get(83);const n=e.get(129);this._lineNumbersLeft=n.lineNumbersLeft,this._lineNumbersWidth=n.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return this._readConfig(),!0}onCursorStateChanged(e){const t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(t);let n=!1;return this._activeLineNumber!==t.lineNumber&&(this._activeLineNumber=t.lineNumber,n=!0),2!==this._renderLineNumbers&&3!==this._renderLineNumbers||(n=!0),n}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getLineRenderLineNumber(e){const t=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new oe["a"](e,1));if(1!==t.column)return"";const n=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(n);if(2===this._renderLineNumbers){const e=Math.abs(this._lastCursorModelPosition.lineNumber-n);return 0===e?'<span class="relative-current-line-number">'+n+"</span>":String(e)}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===n||n%10===0?String(n):"":String(n)}prepareRender(e){if(0===this._renderLineNumbers)return void(this._renderResult=null);const t=y["d"]?this._lineHeight%2===0?" lh-even":" lh-odd":"",n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,r='<div class="'+Re.CLASS_NAME+t+'" style="left:'+this._lineNumbersLeft+"px;width:"+this._lineNumbersWidth+'px;">',o=this._context.model.getLineCount(),s=[];for(let a=n;a<=i;a++){const e=a-n;if(!this._renderFinalNewline&&a===o&&0===this._context.model.getLineLength(a)){s[e]="";continue}const i=this._getLineRenderLineNumber(a);i?a===this._activeLineNumber?s[e]='<div class="active-line-number '+Re.CLASS_NAME+t+'" style="left:'+this._lineNumbersLeft+"px;width:"+this._lineNumbersWidth+'px;">'+i+"</div>":s[e]=r+i+"</div>":s[e]=""}this._renderResult=s}render(e,t){if(!this._renderResult)return"";const n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}Re.CLASS_NAME="line-numbers",Object(je["f"])((e,t)=>{const n=e.getColor(Pe["k"]);n&&t.addRule(`.monaco-editor .line-numbers { color: ${n}; }`);const i=e.getColor(Pe["b"]);i&&t.addRule(`.monaco-editor .line-numbers.active-line-number { color: ${i}; }`)});class Fe extends A{constructor(e){super(e);const t=this._context.configuration.options,n=t.get(129);this._canUseLayerHinting=!t.get(26),this._contentLeft=n.contentLeft,this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,this._domNode=Object(b["b"])(document.createElement("div")),this._domNode.setClassName(Fe.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=Object(b["b"])(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(Fe.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(129);return this._canUseLayerHinting=!t.get(26),this._contentLeft=n.contentLeft,this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollTopChanged}prepareRender(e){}render(e){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);const 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)}}Fe.CLASS_NAME="glyph-margin",Fe.OUTER_CLASS_NAME="margin";var Be=n("e6ff"),We=n("e75b");class Ve{constructor(e,t,n){this._visibleTextAreaBrand=void 0,this.top=e,this.left=t,this.width=n}setWidth(e){return new Ve(this.top,this.left,e)}}const ze=m["g"];class He extends A{constructor(e,t,n){super(e),this._primaryCursorPosition=new oe["a"](1,1),this._primaryCursorVisibleRange=null,this._viewController=t,this._viewHelper=n,this._scrollLeft=0,this._scrollTop=0;const i=this._context.configuration.options,r=i.get(129);this._setAccessibilityOptions(i),this._contentLeft=r.contentLeft,this._contentWidth=r.contentWidth,this._contentHeight=r.height,this._fontInfo=i.get(41),this._lineHeight=i.get(57),this._emptySelectionClipboard=i.get(30),this._copyWithSyntaxHighlighting=i.get(19),this._visibleTextArea=null,this._selections=[new v["a"](1,1,1,1)],this._modelSelections=[new v["a"](1,1,1,1)],this._lastRenderPosition=null,this.textArea=Object(b["b"])(document.createElement("textarea")),N.write(this.textArea,6),this.textArea.setClassName("inputarea "+We["a"]),this.textArea.setAttribute("wrap","off"),this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(i)),this.textArea.setAttribute("tabindex",String(i.get(111))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",l["a"]("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),i.get(28)&&i.get(79)&&this.textArea.setAttribute("readonly","true"),this.textAreaCover=Object(b["b"])(document.createElement("div")),this.textAreaCover.setPosition("absolute");const o={getLineCount:()=>this._context.model.getLineCount(),getLineMaxColumn:e=>this._context.model.getLineMaxColumn(e),getValueInRange:(e,t)=>this._context.model.getValueInRange(e,t)},s={getDataToCopy:e=>{const t=this._context.model.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,y["j"]),n=this._context.model.getEOL(),i=this._emptySelectionClipboard&&1===this._modelSelections.length&&this._modelSelections[0].isEmpty(),r=Array.isArray(t)?t:null,o=Array.isArray(t)?t.join(n):t;let s=void 0,a=null;if(e&&(Ee["a"].forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&o.length<65536)){const e=this._context.model.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);e&&(s=e.html,a=e.mode)}return{isFromEmptySelection:i,multicursorText:r,text:o,html:s,mode:a}},getScreenReaderContent:e=>{if(1===this._accessibilitySupport){if(y["f"]){const e=this._selections[0];if(e.isEmpty()){const t=e.getStartPosition();let n=this._getWordBeforePosition(t);if(0===n.length&&(n=this._getCharacterBeforePosition(t)),n.length>0)return new Ae["b"](n,n.length,n.length,t,t)}}return Ae["b"].EMPTY}if(m["e"]){const e=this._selections[0];if(e.isEmpty()){const t=e.getStartPosition(),[n,i]=this._getAndroidWordAtPosition(t);if(n.length>0)return new Ae["b"](n,i,i,t,t)}return Ae["b"].EMPTY}return Ae["a"].fromEditorSelection(e,o,this._selections[0],this._accessibilityPageSize,0===this._accessibilitySupport)},deduceModelPosition:(e,t,n)=>this._context.model.deduceModelPositionRelativeToViewPosition(e,t,n)};this._textAreaInput=this._register(new Ee["c"](s,this.textArea)),this._register(this._textAreaInput.onKeyDown(e=>{this._viewController.emitKeyDown(e)})),this._register(this._textAreaInput.onKeyUp(e=>{this._viewController.emitKeyUp(e)})),this._register(this._textAreaInput.onPaste(e=>{let t=!1,n=null,i=null;e.metadata&&(t=this._emptySelectionClipboard&&!!e.metadata.isFromEmptySelection,n="undefined"!==typeof e.metadata.multicursorText?e.metadata.multicursorText:null,i=e.metadata.mode),this._viewController.paste(e.text,t,n,i)})),this._register(this._textAreaInput.onCut(()=>{this._viewController.cut()})),this._register(this._textAreaInput.onType(e=>{e.replacePrevCharCnt||e.replaceNextCharCnt||e.positionDelta?(Ae["c"]&&console.log(` => compositionType: <<${e.text}>>, ${e.replacePrevCharCnt}, ${e.replaceNextCharCnt}, ${e.positionDelta}`),this._viewController.compositionType(e.text,e.replacePrevCharCnt,e.replaceNextCharCnt,e.positionDelta)):(Ae["c"]&&console.log(` => type: <<${e.text}>>`),this._viewController.type(e.text))})),this._register(this._textAreaInput.onSelectionChangeRequest(e=>{this._viewController.setSelection(e)})),this._register(this._textAreaInput.onCompositionStart(e=>{const t=this._selections[0].startLineNumber,n=this._selections[0].startColumn+e.revealDeltaColumns;this._context.model.revealRange("keyboard",!0,new se["a"](t,n,t,n),0,1);const i=this._viewHelper.visibleRangeForPositionRelativeToEditor(t,n);i&&(this._visibleTextArea=new Ve(this._context.viewLayout.getVerticalOffsetForLineNumber(t),i.left,ze?0:1),this._render()),this.textArea.setClassName(`inputarea ${We["a"]} ime-input`),this._viewController.compositionStart(),this._context.model.onCompositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(e=>{this._visibleTextArea&&(this._visibleTextArea=this._visibleTextArea.setWidth(Ue(e.data,this._fontInfo)),this._render())})),this._register(this._textAreaInput.onCompositionEnd(()=>{this._visibleTextArea=null,this._render(),this.textArea.setClassName("inputarea "+We["a"]),this._viewController.compositionEnd(),this._context.model.onCompositionEnd()})),this._register(this._textAreaInput.onFocus(()=>{this._context.model.setHasFocus(!0)})),this._register(this._textAreaInput.onBlur(()=>{this._context.model.setHasFocus(!1)}))}dispose(){super.dispose()}_getAndroidWordAtPosition(e){const t='`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',n=this._context.model.getLineContent(e.lineNumber),i=Object(Be["a"])(t);let r=!0,o=e.column,s=!0,a=e.column,l=0;while(l<50&&(r||s)){if(r&&o<=1&&(r=!1),r){const e=n.charCodeAt(o-2),t=i.get(e);0!==t?r=!1:o--}if(s&&a>n.length&&(s=!1),s){const e=n.charCodeAt(a-1),t=i.get(e);0!==t?s=!1:a++}l++}return[n.substring(o-1,a-1),e.column-o]}_getWordBeforePosition(e){const t=this._context.model.getLineContent(e.lineNumber),n=Object(Be["a"])(this._context.configuration.options.get(115));let i=e.column,r=0;while(i>1){const o=t.charCodeAt(i-2),s=n.get(o);if(0!==s||r>50)return t.substring(i-1,e.column-1);r++,i--}return t.substring(0,e.column-1)}_getCharacterBeforePosition(e){if(e.column>1){const t=this._context.model.getLineContent(e.lineNumber),n=t.charAt(e.column-2);if(!Te["F"](n.charCodeAt(0)))return n}return""}_getAriaLabel(e){const t=e.get(2);return 1===t?l["a"]("accessibilityOffAriaLabel","The editor is not accessible at this time. Press {0} for options.",y["d"]?"Shift+Alt+F1":"Alt+F1"):e.get(4)}_setAccessibilityOptions(e){this._accessibilitySupport=e.get(2);const t=e.get(3);2===this._accessibilitySupport&&t===$["g"].accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=t}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(129);return this._setAccessibilityOptions(t),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._contentHeight=n.height,this._fontInfo=t.get(41),this._lineHeight=t.get(57),this._emptySelectionClipboard=t.get(30),this._copyWithSyntaxHighlighting=t.get(19),this.textArea.setAttribute("aria-label",this._getAriaLabel(t)),this.textArea.setAttribute("tabindex",String(t.get(111))),(e.hasChanged(28)||e.hasChanged(79))&&(t.get(28)&&t.get(79)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),e.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),this._modelSelections=e.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0}onZonesChanged(e){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(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")),e.role&&this.textArea.setAttribute("role",e.role)}prepareRender(e){this._primaryCursorPosition=new oe["a"](this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=e.visibleRangeForPosition(this._primaryCursorPosition)}render(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()}_render(){if(this._visibleTextArea)return void this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight);if(!this._primaryCursorVisibleRange)return void this._renderAtTopLeft();const e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(e<this._contentLeft||e>this._contentLeft+this._contentWidth)return void this._renderAtTopLeft();const t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;t<0||t>this._contentHeight?this._renderAtTopLeft():y["f"]?this._renderInsideEditor(this._primaryCursorPosition,t,e,ze?0:1,this._lineHeight):this._renderInsideEditor(this._primaryCursorPosition,t,e,ze?0:1,ze?0:1)}_renderInsideEditor(e,t,n,i,r){this._lastRenderPosition=e;const o=this.textArea,s=this.textAreaCover;p["a"].applyFontInfo(o,this._fontInfo),o.setTop(t),o.setLeft(n),o.setWidth(i),o.setHeight(r),s.setTop(0),s.setLeft(0),s.setWidth(0),s.setHeight(0)}_renderAtTopLeft(){this._lastRenderPosition=null;const e=this.textArea,t=this.textAreaCover;if(p["a"].applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),t.setTop(0),t.setLeft(0),ze)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);const n=this._context.configuration.options;n.get(47)?t.setClassName("monaco-editor-background textAreaCover "+Fe.OUTER_CLASS_NAME):0!==n.get(58).renderType?t.setClassName("monaco-editor-background textAreaCover "+Re.CLASS_NAME):t.setClassName("monaco-editor-background textAreaCover")}}function Ue(e,t){const n=document.createElement("canvas"),i=n.getContext("2d");i.font=qe(t);const r=i.measureText(e);return m["g"]?r.width+2:r.width}function qe(e){return $e("normal",e.fontWeight,e.fontSize,e.lineHeight,e.fontFamily)}function $e(e,t,n,i,r){return`${e} normal ${t} ${n}px / ${i}px ${r}`}var Ke=n("d585");class Ge{constructor(e,t,n,i){this.configuration=e,this.viewModel=t,this.userInputEvents=n,this.commandDelegate=i}paste(e,t,n,i){this.commandDelegate.paste(e,t,n,i)}type(e){this.commandDelegate.type(e)}compositionType(e,t,n,i){this.commandDelegate.compositionType(e,t,n,i)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(e){Ke["CoreNavigationCommands"].SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:e})}_validateViewColumn(e){const t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column<t?new oe["a"](e.lineNumber,t):e}_hasMulticursorModifier(e){switch(this.configuration.options.get(68)){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey;default:return!1}}_hasNonMulticursorModifier(e){switch(this.configuration.options.get(68)){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey;default:return!1}}dispatchMouse(e){const t=this.configuration.options,n=y["d"]&&t.get(95),i=t.get(16);e.middleButton&&!n?this._columnSelect(e.position,e.mouseColumn,e.inSelectionMode):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelect(e.position):this._createCursor(e.position,!0):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):e.mouseDownCount>=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):2===e.mouseDownCount?this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!0):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey||i?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)}_usualArgs(e){return e=this._validateViewColumn(e),{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e}}moveTo(e){Ke["CoreNavigationCommands"].MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_moveToSelect(e){Ke["CoreNavigationCommands"].MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_columnSelect(e,t,n){e=this._validateViewColumn(e),Ke["CoreNavigationCommands"].ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,doColumnSelect:n})}_createCursor(e,t){e=this._validateViewColumn(e),Ke["CoreNavigationCommands"].CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})}_lastCursorMoveToSelect(e){Ke["CoreNavigationCommands"].LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelect(e){Ke["CoreNavigationCommands"].WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_wordSelectDrag(e){Ke["CoreNavigationCommands"].WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorWordSelect(e){Ke["CoreNavigationCommands"].LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelect(e){Ke["CoreNavigationCommands"].LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lineSelectDrag(e){Ke["CoreNavigationCommands"].LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelect(e){Ke["CoreNavigationCommands"].LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_lastCursorLineSelectDrag(e){Ke["CoreNavigationCommands"].LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(e))}_selectAll(){Ke["CoreNavigationCommands"].SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)}emitKeyDown(e){this.userInputEvents.emitKeyDown(e)}emitKeyUp(e){this.userInputEvents.emitKeyUp(e)}emitContextMenu(e){this.userInputEvents.emitContextMenu(e)}emitMouseMove(e){this.userInputEvents.emitMouseMove(e)}emitMouseLeave(e){this.userInputEvents.emitMouseLeave(e)}emitMouseUp(e){this.userInputEvents.emitMouseUp(e)}emitMouseDown(e){this.userInputEvents.emitMouseDown(e)}emitMouseDrag(e){this.userInputEvents.emitMouseDrag(e)}emitMouseDrop(e){this.userInputEvents.emitMouseDrop(e)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(e){this.userInputEvents.emitMouseWheel(e)}}class Ye{constructor(e){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=e}emitKeyDown(e){this.onKeyDown&&this.onKeyDown(e)}emitKeyUp(e){this.onKeyUp&&this.onKeyUp(e)}emitContextMenu(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))}emitMouseMove(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))}emitMouseLeave(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))}emitMouseDown(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))}emitMouseUp(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))}emitMouseDrag(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))}emitMouseDrop(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))}emitMouseDropCanceled(){this.onMouseDropCanceled&&this.onMouseDropCanceled()}emitMouseWheel(e){this.onMouseWheel&&this.onMouseWheel(e)}_convertViewToModelMouseEvent(e){return e.target?{event:e.event,target:this._convertViewToModelMouseTarget(e.target)}:e}_convertViewToModelMouseTarget(e){return Ye.convertViewToModelMouseTarget(e,this._coordinatesConverter)}static convertViewToModelMouseTarget(e,t){return new Ze(e.element,e.type,e.mouseColumn,e.position?t.convertViewPositionToModelPosition(e.position):null,e.range?t.convertViewRangeToModelRange(e.range):null,e.detail)}}class Ze{constructor(e,t,n,i,r,o){this.element=e,this.type=t,this.mouseColumn=n,this.position=i,this.range=r,this.detail=o}toString(){return de.toString(this)}}var Xe,Qe=n("7ab3");class Je{constructor(e){this._createLine=e,this._set(1,[])}flush(){this._set(1,[])}_set(e,t){this._lines=t,this._rendLineNumberStart=e}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(e){const t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]}onLinesDeleted(e,t){if(0===this.getCount())return null;const n=this.getStartLineNumber(),i=this.getEndLineNumber();if(t<n){const n=t-e+1;return this._rendLineNumberStart-=n,null}if(e>i)return null;let r=0,o=0;for(let a=n;a<=i;a++){const n=a-this._rendLineNumberStart;e<=a&&a<=t&&(0===o?(r=n,o=1):o++)}if(e<n){let i=0;i=t<n?t-e+1:n-e,this._rendLineNumberStart-=i}const s=this._lines.splice(r,o);return s}onLinesChanged(e,t){if(0===this.getCount())return!1;const n=this.getStartLineNumber(),i=this.getEndLineNumber();let r=!1;for(let o=e;o<=t;o++)o>=n&&o<=i&&(this._lines[o-this._rendLineNumberStart].onContentChanged(),r=!0);return r}onLinesInserted(e,t){if(0===this.getCount())return null;const n=t-e+1,i=this.getStartLineNumber(),r=this.getEndLineNumber();if(e<=i)return this._rendLineNumberStart+=n,null;if(e>r)return null;if(n+e>r){const t=this._lines.splice(e-this._rendLineNumberStart,r-e+1);return t}const o=[];for(let u=0;u<n;u++)o[u]=this._createLine();const s=e-this._rendLineNumberStart,a=this._lines.slice(0,s),l=this._lines.slice(s,this._lines.length-n),c=this._lines.slice(this._lines.length-n,this._lines.length);return this._lines=a.concat(o).concat(l),c}onTokensChanged(e){if(0===this.getCount())return!1;const t=this.getStartLineNumber(),n=this.getEndLineNumber();let i=!1;for(let r=0,o=e.length;r<o;r++){const o=e[r];if(o.toLineNumber<t||o.fromLineNumber>n)continue;const s=Math.max(t,o.fromLineNumber),a=Math.min(n,o.toLineNumber);for(let e=s;e<=a;e++){const t=e-this._rendLineNumberStart;this._lines[t].onTokensChanged(),i=!0}}return i}}class et{constructor(e){this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new Je(()=>this._host.createVisibleLine())}_createDomNode(){const e=Object(b["b"])(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e}onConfigurationChanged(e){return!!e.hasChanged(129)}onFlushed(e){return this._linesCollection.flush(),!0}onLinesChanged(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)}onLinesDeleted(e){const t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(let n=0,i=t.length;n<i;n++){const e=t[n].getDomNode();e&&this.domNode.domNode.removeChild(e)}return!0}onLinesInserted(e){const t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(let n=0,i=t.length;n<i;n++){const e=t[n].getDomNode();e&&this.domNode.domNode.removeChild(e)}return!0}onScrollChanged(e){return e.scrollTopChanged}onTokensChanged(e){return this._linesCollection.onTokensChanged(e.ranges)}onZonesChanged(e){return!0}getStartLineNumber(){return this._linesCollection.getStartLineNumber()}getEndLineNumber(){return this._linesCollection.getEndLineNumber()}getVisibleLine(e){return this._linesCollection.getLine(e)}renderLines(e){const t=this._linesCollection._get(),n=new tt(this.domNode.domNode,this._host,e),i={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length},r=n.render(i,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(r.rendLineNumberStart,r.lines)}}class tt{constructor(e,t,n){this.domNode=e,this.host=t,this.viewportData=n}render(e,t,n,i){const r={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(r.rendLineNumberStart+r.linesLength-1<t||n<r.rendLineNumberStart){r.rendLineNumberStart=t,r.linesLength=n-t+1,r.lines=[];for(let e=t;e<=n;e++)r.lines[e-t]=this.host.createVisibleLine();return this._finishRendering(r,!0,i),r}if(this._renderUntouchedLines(r,Math.max(t-r.rendLineNumberStart,0),Math.min(n-r.rendLineNumberStart,r.linesLength-1),i,t),r.rendLineNumberStart>t){const e=t,o=Math.min(n,r.rendLineNumberStart-1);e<=o&&(this._insertLinesBefore(r,e,o,i,t),r.linesLength+=o-e+1)}else if(r.rendLineNumberStart<t){const e=Math.min(r.linesLength,t-r.rendLineNumberStart);e>0&&(this._removeLinesBefore(r,e),r.linesLength-=e)}if(r.rendLineNumberStart=t,r.rendLineNumberStart+r.linesLength-1<n){const e=r.rendLineNumberStart+r.linesLength,o=n;e<=o&&(this._insertLinesAfter(r,e,o,i,t),r.linesLength+=o-e+1)}else if(r.rendLineNumberStart+r.linesLength-1>n){const e=Math.max(0,n-r.rendLineNumberStart+1),t=r.linesLength-1,i=t-e+1;i>0&&(this._removeLinesAfter(r,i),r.linesLength-=i)}return this._finishRendering(r,!1,i),r}_renderUntouchedLines(e,t,n,i,r){const o=e.rendLineNumberStart,s=e.lines;for(let a=t;a<=n;a++){const e=o+a;s[a].layoutLine(e,i[e-r])}}_insertLinesBefore(e,t,n,i,r){const o=[];let s=0;for(let a=t;a<=n;a++)o[s++]=this.host.createVisibleLine();e.lines=o.concat(e.lines)}_removeLinesBefore(e,t){for(let n=0;n<t;n++){const t=e.lines[n].getDomNode();t&&this.domNode.removeChild(t)}e.lines.splice(0,t)}_insertLinesAfter(e,t,n,i,r){const o=[];let s=0;for(let a=t;a<=n;a++)o[s++]=this.host.createVisibleLine();e.lines=e.lines.concat(o)}_removeLinesAfter(e,t){const n=e.linesLength-t;for(let i=0;i<t;i++){const t=e.lines[n+i].getDomNode();t&&this.domNode.removeChild(t)}e.lines.splice(n,t)}_finishRenderingNewLines(e,t,n,i){tt._ttPolicy&&(n=tt._ttPolicy.createHTML(n));const r=this.domNode.lastChild;t||!r?this.domNode.innerHTML=n:r.insertAdjacentHTML("afterend",n);let o=this.domNode.lastChild;for(let s=e.linesLength-1;s>=0;s--){const t=e.lines[s];i[s]&&(t.setDomNode(o),o=o.previousSibling)}}_finishRenderingInvalidLines(e,t,n){const i=document.createElement("div");tt._ttPolicy&&(t=tt._ttPolicy.createHTML(t)),i.innerHTML=t;for(let r=0;r<e.linesLength;r++){const t=e.lines[r];if(n[r]){const e=i.firstChild,n=t.getDomNode();n.parentNode.replaceChild(e,n),t.setDomNode(e)}}}_finishRendering(e,t,n){const i=tt._sb,r=e.linesLength,o=e.lines,s=e.rendLineNumberStart,a=[];{i.reset();let l=!1;for(let e=0;e<r;e++){const t=o[e];a[e]=!1;const r=t.getDomNode();if(r)continue;const c=t.renderLine(e+s,n[e],this.viewportData,i);c&&(a[e]=!0,l=!0)}l&&this._finishRenderingNewLines(e,t,i.build(),a)}{i.reset();let t=!1;const l=[];for(let e=0;e<r;e++){const r=o[e];if(l[e]=!1,a[e])continue;const c=r.renderLine(e+s,n[e],this.viewportData,i);c&&(l[e]=!0,t=!0)}t&&this._finishRenderingInvalidLines(e,i.build(),l)}}}tt._ttPolicy=null===(Xe=window.trustedTypes)||void 0===Xe?void 0:Xe.createPolicy("editorViewLayer",{createHTML:e=>e}),tt._sb=Object(Qe["a"])(1e5);class nt extends A{constructor(e){super(e),this._visibleLines=new et(this),this.domNode=this._visibleLines.domNode,this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let e=0,t=this._dynamicOverlays.length;e<t;e++){const t=this._dynamicOverlays[e];if(t.shouldRender())return!0}return!1}dispose(){super.dispose();for(let e=0,t=this._dynamicOverlays.length;e<t;e++){const t=this._dynamicOverlays[e];t.dispose()}this._dynamicOverlays=[]}getDomNode(){return this.domNode}createVisibleLine(){return new it(this._context.configuration,this._dynamicOverlays)}addDynamicOverlay(e){this._dynamicOverlays.push(e)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e);const t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let i=t;i<=n;i++){const t=this._visibleLines.getVisibleLine(i);t.onConfigurationChanged(e)}return!0}onFlushed(e){return this._visibleLines.onFlushed(e)}onFocusChanged(e){return this._isFocused=e.isFocused,!0}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onScrollChanged(e){return this._visibleLines.onScrollChanged(e)||!0}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._visibleLines.onZonesChanged(e)}prepareRender(e){const t=this._dynamicOverlays.filter(e=>e.shouldRender());for(let n=0,i=t.length;n<i;n++){const i=t[n];i.prepareRender(e),i.onDidRender()}}render(e){this._viewOverlaysRender(e),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(e){this._visibleLines.renderLines(e.viewportData)}}class it{constructor(e,t){this._configuration=e,this._lineHeight=this._configuration.options.get(57),this._dynamicOverlays=t,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(e){this._domNode=Object(b["b"])(e)}onContentChanged(){}onTokensChanged(){}onConfigurationChanged(e){this._lineHeight=this._configuration.options.get(57)}renderLine(e,t,n,i){let r="";for(let o=0,s=this._dynamicOverlays.length;o<s;o++){const t=this._dynamicOverlays[o];r+=t.render(n.startLineNumber,e)}return this._renderedContent!==r&&(this._renderedContent=r,i.appendASCIIString('<div style="position:absolute;top:'),i.appendASCIIString(String(t)),i.appendASCIIString("px;width:100%;height:"),i.appendASCIIString(String(this._lineHeight)),i.appendASCIIString('px;">'),i.appendASCIIString(r),i.appendASCIIString("</div>"),!0)}layoutLine(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))}}class rt extends nt{constructor(e){super(e);const t=this._context.configuration.options,n=t.get(129);this._contentWidth=n.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(129);return this._contentWidth=n.contentWidth,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollWidthChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e),this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth))}}class ot extends nt{constructor(e){super(e);const t=this._context.configuration.options,n=t.get(129);this._contentLeft=n.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),p["a"].applyFontInfo(this.domNode,t.get(41))}onConfigurationChanged(e){const t=this._context.configuration.options;p["a"].applyFontInfo(this.domNode,t.get(41));const n=t.get(129);return this._contentLeft=n.contentLeft,super.onConfigurationChanged(e)||!0}onScrollChanged(e){return super.onScrollChanged(e)||e.scrollHeightChanged}_viewOverlaysRender(e){super._viewOverlaysRender(e);const t=Math.min(e.scrollHeight,1e6);this.domNode.setHeight(t),this.domNode.setWidth(this._contentLeft)}}class st{constructor(e,t){this._coordinateBrand=void 0,this.top=e,this.left=t}}class at extends A{constructor(e,t){super(e),this._viewDomNode=t,this._widgets={},this.domNode=Object(b["b"])(document.createElement("div")),N.write(this.domNode,1),this.domNode.setClassName("contentWidgets"),this.domNode.setPosition("absolute"),this.domNode.setTop(0),this.overflowingContentWidgetsDomNode=Object(b["b"])(document.createElement("div")),N.write(this.overflowingContentWidgetsDomNode,2),this.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets")}dispose(){super.dispose(),this._widgets={}}onConfigurationChanged(e){const t=Object.keys(this._widgets);for(const n of t)this._widgets[n].onConfigurationChanged(e);return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLineMappingChanged(e){const t=Object.keys(this._widgets);for(const n of t)this._widgets[n].onLineMappingChanged(e);return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onZonesChanged(e){return!0}addWidget(e){const t=new lt(this._context,this._viewDomNode,e);this._widgets[t.id]=t,t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode),this.setShouldRender()}setWidgetPosition(e,t,n){const i=this._widgets[e.getId()];i.setPosition(t,n),this.setShouldRender()}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t];delete this._widgets[t];const n=e.domNode.domNode;n.parentNode.removeChild(n),n.removeAttribute("monaco-visible-content-widget"),this.setShouldRender()}}shouldSuppressMouseDownOnWidget(e){return!!this._widgets.hasOwnProperty(e)&&this._widgets[e].suppressMouseDown}onBeforeRender(e){const t=Object.keys(this._widgets);for(const n of t)this._widgets[n].onBeforeRender(e)}prepareRender(e){const t=Object.keys(this._widgets);for(const n of t)this._widgets[n].prepareRender(e)}render(e){const t=Object.keys(this._widgets);for(const n of t)this._widgets[n].render(e)}}class lt{constructor(e,t,n){this._context=e,this._viewDomNode=t,this._actual=n,this.domNode=Object(b["b"])(this._actual.getDomNode()),this.id=this._actual.getId(),this.allowEditorOverflow=this._actual.allowEditorOverflow||!1,this.suppressMouseDown=this._actual.suppressMouseDown||!1;const i=this._context.configuration.options,r=i.get(129);this._fixedOverflowWidgets=i.get(34),this._contentWidth=r.contentWidth,this._contentLeft=r.contentLeft,this._lineHeight=i.get(57),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)}onConfigurationChanged(e){const t=this._context.configuration.options;if(this._lineHeight=t.get(57),e.hasChanged(129)){const e=t.get(129);this._contentLeft=e.contentLeft,this._contentWidth=e.contentWidth,this._maxWidth=this._getMaxWidth()}}onLineMappingChanged(e){this._setPosition(this._range)}_setPosition(e){if(this._range=e,this._viewRange=null,this._range){const e=this._context.model.validateModelRange(this._range);(this._context.model.coordinatesConverter.modelPositionIsVisible(e.getStartPosition())||this._context.model.coordinatesConverter.modelPositionIsVisible(e.getEndPosition()))&&(this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(e))}}_getMaxWidth(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth}setPosition(e,t){this._setPosition(e),this._preference=t,this._cachedDomNodeClientWidth=-1,this._cachedDomNodeClientHeight=-1}_layoutBoxInViewport(e,t,n,i,r){const o=e.top,s=o,a=t.top+this._lineHeight,l=r.viewportHeight-a,c=o-i,u=s>=i,h=a,d=l>=i;let f=e.left,p=t.left;return f+n>r.scrollLeft+r.viewportWidth&&(f=r.scrollLeft+r.viewportWidth-n),p+n>r.scrollLeft+r.viewportWidth&&(p=r.scrollLeft+r.viewportWidth-n),f<r.scrollLeft&&(f=r.scrollLeft),p<r.scrollLeft&&(p=r.scrollLeft),{fitsAbove:u,aboveTop:c,aboveLeft:f,fitsBelow:d,belowTop:h,belowLeft:p}}_layoutHorizontalSegmentInPage(e,t,n,i){const r=Math.max(0,t.left-i),o=Math.min(t.left+t.width+i,e.width);let s=t.left+n-c["f"].scrollX;if(s+i>o){const e=s-(o-i);s-=e,n-=e}if(s<r){const e=s-r;s-=e,n-=e}return[n,s]}_layoutBoxInPage(e,t,n,i,r){const o=e.top-i,s=t.top+this._lineHeight,a=c["D"](this._viewDomNode.domNode),l=a.top+o-c["f"].scrollY,u=a.top+s-c["f"].scrollY,h=c["z"](document.body),[d,f]=this._layoutHorizontalSegmentInPage(h,a,e.left-r.scrollLeft+this._contentLeft,n),[p,g]=this._layoutHorizontalSegmentInPage(h,a,t.left-r.scrollLeft+this._contentLeft,n),m=22,v=22,b=l>=m,y=u+i<=h.height-v;return this._fixedOverflowWidgets?{fitsAbove:b,aboveTop:Math.max(l,m),aboveLeft:f,fitsBelow:y,belowTop:u,belowLeft:g}:{fitsAbove:b,aboveTop:o,aboveLeft:d,fitsBelow:y,belowTop:s,belowLeft:p}}_prepareRenderWidgetAtExactPositionOverflowing(e){return new st(e.top,e.left+this._contentLeft)}_getTopAndBottomLeft(e){if(!this._viewRange)return[null,null];const t=e.linesVisibleRangesForRange(this._viewRange,!1);if(!t||0===t.length)return[null,null];let n=t[0],i=t[0];for(const u of t)u.lineNumber<n.lineNumber&&(n=u),u.lineNumber>i.lineNumber&&(i=u);let r=1073741824;for(const u of n.ranges)u.left<r&&(r=u.left);let o=1073741824;for(const u of i.ranges)u.left<o&&(o=u.left);const s=e.getVerticalOffsetForLineNumber(n.lineNumber)-e.scrollTop,a=new st(s,r),l=e.getVerticalOffsetForLineNumber(i.lineNumber)-e.scrollTop,c=new st(l,o);return[a,c]}_prepareRenderWidget(e){const[t,n]=this._getTopAndBottomLeft(e);if(!t||!n)return null;if(-1===this._cachedDomNodeClientWidth||-1===this._cachedDomNodeClientHeight){let e=null;if("function"===typeof this._actual.beforeRender&&(e=ct(this._actual.beforeRender,this._actual)),e)this._cachedDomNodeClientWidth=e.width,this._cachedDomNodeClientHeight=e.height;else{const e=this.domNode.domNode;this._cachedDomNodeClientWidth=e.clientWidth,this._cachedDomNodeClientHeight=e.clientHeight}}let i;if(i=this.allowEditorOverflow?this._layoutBoxInPage(t,n,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e):this._layoutBoxInViewport(t,n,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e),this._preference)for(let r=1;r<=2;r++)for(const e of this._preference)if(1===e){if(!i)return null;if(2===r||i.fitsAbove)return{coordinate:new st(i.aboveTop,i.aboveLeft),position:1}}else{if(2!==e)return this.allowEditorOverflow?{coordinate:this._prepareRenderWidgetAtExactPositionOverflowing(t),position:0}:{coordinate:t,position:0};if(!i)return null;if(2===r||i.fitsBelow)return{coordinate:new st(i.belowTop,i.belowLeft),position:2}}return null}onBeforeRender(e){this._viewRange&&this._preference&&(this._viewRange.endLineNumber<e.startLineNumber||this._viewRange.startLineNumber>e.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))}prepareRender(e){this._renderData=this._prepareRenderWidget(e)}render(e){if(!this._renderData)return this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),void("function"===typeof this._actual.afterRender&&ct(this._actual.afterRender,this._actual,null));this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),"function"===typeof this._actual.afterRender&&ct(this._actual.afterRender,this._actual,this._renderData.position)}}function ct(e,t,...n){try{return e.call(t,...n)}catch(i){return null}}n("930f");var ut=n("e8e3");let ht=!0;class dt extends Ne{constructor(e){super(),this._context=e;const t=this._context.configuration.options,n=t.get(129);this._lineHeight=t.get(57),this._renderLineHighlight=t.get(84),this._renderLineHighlightOnlyWhenFocus=t.get(85),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new v["a"](1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let e=!1;const t=ht?this._selections.slice(0,1):this._selections,n=t.map(e=>e.positionLineNumber);n.sort((e,t)=>e-t),ut["h"](this._cursorLineNumbers,n)||(this._cursorLineNumbers=n,e=!0);const i=t.every(e=>e.isEmpty());return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,e=!0),e}onThemeChanged(e){return this._readFromSelections()}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(129);return this._lineHeight=t.get(57),this._renderLineHighlight=t.get(84),this._renderLineHighlightOnlyWhenFocus=t.get(85),this._contentLeft=n.contentLeft,this._contentWidth=n.contentWidth,!0}onCursorStateChanged(e){return this._selections=e.selections,this._readFromSelections()}onFlushed(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollWidthChanged||e.scrollTopChanged}onZonesChanged(e){return!0}onFocusChanged(e){return!!this._renderLineHighlightOnlyWhenFocus&&(this._focused=e.isFocused,!0)}prepareRender(e){if(!this._shouldRenderThis())return void(this._renderData=null);const t=this._renderOne(e),n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,r=this._cursorLineNumbers.length;let o=0;const s=[];for(let a=n;a<=i;a++){const e=a-n;while(o<r&&this._cursorLineNumbers[o]<a)o++;o<r&&this._cursorLineNumbers[o]===a?s[e]=t:s[e]=""}this._renderData=s}render(e,t){if(!this._renderData)return"";const n=t-e;return n>=this._renderData.length?"":this._renderData[n]}}class ft extends dt{_renderOne(e){const t="current-line"+(this._shouldRenderOther()?" current-line-both":"");return`<div class="${t}" style="width:${Math.max(e.scrollWidth,this._contentWidth)}px; height:${this._lineHeight}px;"></div>`}_shouldRenderThis(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderOther(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class pt extends dt{_renderOne(e){const t="current-line"+(this._shouldRenderMargin()?" current-line-margin":"")+(this._shouldRenderOther()?" current-line-margin-both":"");return`<div class="${t}" style="width:${this._contentLeft}px; height:${this._lineHeight}px;"></div>`}_shouldRenderMargin(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderThis(){return!0}_shouldRenderOther(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}Object(je["f"])((e,t)=>{ht=!1;const n=e.getColor(Pe["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(Pe["j"])){const n=e.getColor(Pe["j"]);n&&(ht=!0,t.addRule(`.monaco-editor .view-overlays .current-line { border: 2px solid ${n}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ${n}; }`),"hc"===e.type&&(t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}});n("56dc");class gt extends Ne{constructor(e){super(),this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(57),this._typicalHalfwidthCharacterWidth=t.get(41).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(57),this._typicalHalfwidthCharacterWidth=t.get(41).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}prepareRender(e){const t=e.getDecorationsInViewport();let n=[],i=0;for(let a=0,l=t.length;a<l;a++){const e=t[a];e.options.className&&(n[i++]=e)}n=n.sort((e,t)=>{if(e.options.zIndex<t.options.zIndex)return-1;if(e.options.zIndex>t.options.zIndex)return 1;const n=e.options.className,i=t.options.className;return n<i?-1:n>i?1:se["a"].compareRangesUsingStarts(e.range,t.range)});const r=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,s=[];for(let a=r;a<=o;a++){const e=a-r;s[e]=""}this._renderWholeLineDecorations(e,n,s),this._renderNormalDecorations(e,n,s),this._renderResult=s}_renderWholeLineDecorations(e,t,n){const i=String(this._lineHeight),r=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber;for(let s=0,a=t.length;s<a;s++){const e=t[s];if(!e.options.isWholeLine)continue;const a='<div class="cdr '+e.options.className+'" style="left:0;width:100%;height:'+i+'px;"></div>',l=Math.max(e.range.startLineNumber,r),c=Math.min(e.range.endLineNumber,o);for(let t=l;t<=c;t++){const e=t-r;n[e]+=a}}}_renderNormalDecorations(e,t,n){const i=String(this._lineHeight),r=e.visibleRange.startLineNumber;let o=null,s=!1,a=null;for(let l=0,c=t.length;l<c;l++){const c=t[l];if(c.options.isWholeLine)continue;const u=c.options.className,h=Boolean(c.options.showIfCollapsed);let d=c.range;h&&1===d.endColumn&&d.endLineNumber!==d.startLineNumber&&(d=new se["a"](d.startLineNumber,d.startColumn,d.endLineNumber-1,this._context.model.getLineMaxColumn(d.endLineNumber-1))),o===u&&s===h&&se["a"].areIntersectingOrTouching(a,d)?a=se["a"].plusRange(a,d):(null!==o&&this._renderNormalDecoration(e,a,o,s,i,r,n),o=u,s=h,a=d)}null!==o&&this._renderNormalDecoration(e,a,o,s,i,r,n)}_renderNormalDecoration(e,t,n,i,r,o,s){const a=e.linesVisibleRangesForRange(t,"findMatch"===n);if(a)for(let l=0,c=a.length;l<c;l++){const e=a[l];if(e.outsideRenderedLine)continue;const t=e.lineNumber-o;if(i&&1===e.ranges.length){const t=e.ranges[0];0===t.width&&(e.ranges[0]=new F(t.left,this._typicalHalfwidthCharacterWidth))}for(let i=0,o=e.ranges.length;i<o;i++){const o=e.ranges[i],a='<div class="cdr '+n+'" style="left:'+String(o.left)+"px;width:"+String(o.width)+"px;height:"+r+'px;"></div>';s[t]+=a}}}render(e,t){if(!this._renderResult)return"";const n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}var mt=n("1898");class vt extends A{constructor(e,t,n,i){super(e);const r=this._context.configuration.options,o=r.get(91),s=r.get(65),a=r.get(32),l=r.get(94),u={listenOnDomNode:n.domNode,className:"editor-scrollable "+Object(je["e"])(e.theme.type),useShadows:!1,lazyRender:!0,vertical:o.vertical,horizontal:o.horizontal,verticalHasArrows:o.verticalHasArrows,horizontalHasArrows:o.horizontalHasArrows,verticalScrollbarSize:o.verticalScrollbarSize,verticalSliderSize:o.verticalSliderSize,horizontalScrollbarSize:o.horizontalScrollbarSize,horizontalSliderSize:o.horizontalSliderSize,handleMouseWheel:o.handleMouseWheel,alwaysConsumeMouseWheel:o.alwaysConsumeMouseWheel,arrowSize:o.arrowSize,mouseWheelScrollSensitivity:s,fastScrollSensitivity:a,scrollPredominantAxis:l,scrollByPage:o.scrollByPage};this.scrollbar=this._register(new mt["c"](t.domNode,u,this._context.viewLayout.getScrollable())),N.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=Object(b["b"])(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const h=(e,t,n)=>{const i={};if(t){const t=e.scrollTop;t&&(i.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0)}if(n){const t=e.scrollLeft;t&&(i.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0)}this._context.model.setScrollPosition(i,1)};this._register(c["i"](n.domNode,"scroll",e=>h(n.domNode,!0,!0))),this._register(c["i"](t.domNode,"scroll",e=>h(t.domNode,!0,!1))),this._register(c["i"](i.domNode,"scroll",e=>h(i.domNode,!0,!1))),this._register(c["i"](this.scrollbarDomNode.domNode,"scroll",e=>h(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){const e=this._context.configuration.options,t=e.get(129);this.scrollbarDomNode.setLeft(t.contentLeft);const n=e.get(63),i=n.side;"right"===i?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarMouseDown(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)}onConfigurationChanged(e){if(e.hasChanged(91)||e.hasChanged(65)||e.hasChanged(32)){const e=this._context.configuration.options,t=e.get(91),n=e.get(65),i=e.get(32),r=e.get(94),o={vertical:t.vertical,horizontal:t.horizontal,verticalScrollbarSize:t.verticalScrollbarSize,horizontalScrollbarSize:t.horizontalScrollbarSize,scrollByPage:t.scrollByPage,handleMouseWheel:t.handleMouseWheel,mouseWheelScrollSensitivity:n,fastScrollSensitivity:i,scrollPredominantAxis:r};this.scrollbar.updateOptions(o)}return e.hasChanged(129)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+Object(je["e"])(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}n("8478");class bt{constructor(e,t,n){this._decorationToRenderBrand=void 0,this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(n)}}class yt extends Ne{_render(e,t,n){const i=[];for(let s=e;s<=t;s++){const t=s-e;i[t]=[]}if(0===n.length)return i;n.sort((e,t)=>e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className<t.className?-1:1);let r=null,o=0;for(let s=0,a=n.length;s<a;s++){const a=n[s],l=a.className;let c=Math.max(a.startLineNumber,e)-e;const u=Math.min(a.endLineNumber,t)-e;r===l?(c=Math.max(o+1,c),o=Math.max(o,u)):(r=l,o=u);for(let e=c;e<=o;e++)i[e].push(r)}return i}}class _t extends yt{constructor(e){super(),this._context=e;const t=this._context.configuration.options,n=t.get(129);this._lineHeight=t.get(57),this._glyphMargin=t.get(47),this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(129);return this._lineHeight=t.get(57),this._glyphMargin=t.get(47),this._glyphMarginLeft=n.glyphMarginLeft,this._glyphMarginWidth=n.glyphMarginWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport();let n=[],i=0;for(let r=0,o=t.length;r<o;r++){const e=t[r],o=e.options.glyphMarginClassName;o&&(n[i++]=new bt(e.range.startLineNumber,e.range.endLineNumber,o))}return n}prepareRender(e){if(!this._glyphMargin)return void(this._renderResult=null);const t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),r=this._lineHeight.toString(),o=this._glyphMarginLeft.toString(),s=this._glyphMarginWidth.toString(),a='" style="left:'+o+"px;width:"+s+"px;height:"+r+'px;"></div>',l=[];for(let c=t;c<=n;c++){const e=c-t,n=i[e];0===n.length?l[e]="":l[e]='<div class="cgmr codicon '+n.join(" ")+a}this._renderResult=l}render(e,t){if(!this._renderResult)return"";const n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}n("0baa");class wt extends Ne{constructor(e){super(),this._context=e,this._primaryLineNumber=0;const t=this._context.configuration.options,n=t.get(130),i=t.get(41);this._lineHeight=t.get(57),this._spaceWidth=i.spaceWidth,this._enabled=t.get(82),this._activeIndentEnabled=t.get(50),this._maxIndentLeft=-1===n.wrappingColumn?-1:n.wrappingColumn*i.typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(130),i=t.get(41);return this._lineHeight=t.get(57),this._spaceWidth=i.spaceWidth,this._enabled=t.get(82),this._activeIndentEnabled=t.get(50),this._maxIndentLeft=-1===n.wrappingColumn?-1:n.wrappingColumn*i.typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){const t=e.selections[0],n=t.isEmpty()?t.positionLineNumber:0;return this._primaryLineNumber!==n&&(this._primaryLineNumber=n,!0)}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}onLanguageConfigurationChanged(e){return!0}prepareRender(e){if(!this._enabled)return void(this._renderResult=null);const t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,{indentSize:i}=this._context.model.getTextModelOptions(),r=i*this._spaceWidth,o=e.scrollWidth,s=this._lineHeight,a=this._context.model.getLinesIndentGuides(t,n);let l=0,c=0,u=0;if(this._activeIndentEnabled&&this._primaryLineNumber){const e=this._context.model.getActiveIndentGuide(this._primaryLineNumber,t,n);l=e.startLineNumber,c=e.endLineNumber,u=e.indent}const h=[];for(let d=t;d<=n;d++){const n=l<=d&&d<=c,i=d-t,f=a[i];let p="";if(f>=1){const t=e.visibleRangeForPosition(new oe["a"](d,1));let i=t?t.left:0;for(let e=1;e<=f;e++){const t=n&&e===u?"cigra":"cigr";if(p+=`<div class="${t}" style="left:${i}px;height:${s}px;width:${r}px"></div>`,i+=r,i>o||this._maxIndentLeft>0&&i>this._maxIndentLeft)break}}h[i]=p}this._renderResult=h}render(e,t){if(!this._renderResult)return"";const n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}Object(je["f"])((e,t)=>{const n=e.getColor(Pe["h"]);n&&t.addRule(`.monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 ${n} inset; }`);const i=e.getColor(Pe["a"])||n;i&&t.addRule(`.monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 ${i} inset; }`)});n("38a2b");class Ct{constructor(){this._currentVisibleRange=new se["a"](1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(e){this._currentVisibleRange=e}}class St{constructor(e,t,n,i,r,o){this.lineNumber=e,this.startColumn=t,this.endColumn=n,this.startScrollTop=i,this.stopScrollTop=r,this.scrollType=o,this.type="range",this.minLineNumber=e,this.maxLineNumber=e}}class xt{constructor(e,t,n,i){this.selections=e,this.startScrollTop=t,this.stopScrollTop=n,this.scrollType=i,this.type="selections";let r=e[0].startLineNumber,o=e[0].endLineNumber;for(let s=1,a=e.length;s<a;s++){const t=e[s];r=Math.min(r,t.startLineNumber),o=Math.max(o,t.endLineNumber)}this.minLineNumber=r,this.maxLineNumber=o}}class Ot extends A{constructor(e,t){super(e),this._linesContent=t,this._textRangeRestingSpot=document.createElement("div"),this._visibleLines=new et(this),this.domNode=this._visibleLines.domNode;const n=this._context.configuration,i=this._context.configuration.options,r=i.get(41),o=i.get(130);this._lineHeight=i.get(57),this._typicalHalfwidthCharacterWidth=r.typicalHalfwidthCharacterWidth,this._isViewportWrapping=o.isViewportWrapping,this._revealHorizontalRightPadding=i.get(88),this._cursorSurroundingLines=i.get(23),this._cursorSurroundingLinesStyle=i.get(24),this._canUseLayerHinting=!i.get(26),this._viewLineOptions=new Z(n,this._context.theme.type),N.write(this.domNode,7),this.domNode.setClassName("view-lines "+We["a"]),p["a"].applyFontInfo(this.domNode,r),this._maxLineWidth=0,this._asyncUpdateLineWidths=new C["e"](()=>{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new C["e"](()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new Ct,this._horizontalRevealRequest=null}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new X(this._viewLineOptions)}onConfigurationChanged(e){this._visibleLines.onConfigurationChanged(e),e.hasChanged(130)&&(this._maxLineWidth=0);const t=this._context.configuration.options,n=t.get(41),i=t.get(130);return this._lineHeight=t.get(57),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._isViewportWrapping=i.isViewportWrapping,this._revealHorizontalRightPadding=t.get(88),this._cursorSurroundingLines=t.get(23),this._cursorSurroundingLinesStyle=t.get(24),this._canUseLayerHinting=!t.get(26),p["a"].applyFontInfo(this.domNode,n),this._onOptionsMaybeChanged(),e.hasChanged(129)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const e=this._context.configuration,t=new Z(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;const e=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let t=e;t<=n;t++){const e=this._visibleLines.getVisibleLine(t);e.onOptionsChanged(this._viewLineOptions)}return!0}return!1}onCursorStateChanged(e){const t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();let i=!1;for(let r=t;r<=n;r++)i=this._visibleLines.getVisibleLine(r).onSelectionChanged()||i;return i}onDecorationsChanged(e){{const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let n=e;n<=t;n++)this._visibleLines.getVisibleLine(n).onDecorationsChanged()}return!0}onFlushed(e){const t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t}onLinesChanged(e){return this._visibleLines.onLinesChanged(e)}onLinesDeleted(e){return this._visibleLines.onLinesDeleted(e)}onLinesInserted(e){return this._visibleLines.onLinesInserted(e)}onRevealRangeRequest(e){const t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.source,e.range,e.selections,e.verticalType);if(-1===t)return!1;let n=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range&&e.range.startLineNumber!==e.range.endLineNumber?n={scrollTop:n.scrollTop,scrollLeft:0}:e.range?this._horizontalRevealRequest=new St(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType):e.selections&&e.selections.length>0&&(this._horizontalRevealRequest=new xt(e.selections,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType)):this._horizontalRevealRequest=null;const i=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop),r=i<=this._lineHeight?1:e.scrollType;return this._context.model.setScrollPosition(n,r),!0}onScrollChanged(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){const 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}onTokensChanged(e){return this._visibleLines.onTokensChanged(e)}onZonesChanged(e){return this._context.model.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(e)}onThemeChanged(e){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(e,t){const n=this._getViewLineDomNode(e);if(null===n)return null;const i=this._getLineNumberFor(n);if(-1===i)return null;if(i<1||i>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(i))return new oe["a"](i,1);const r=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber();if(i<r||i>o)return null;let s=this._visibleLines.getVisibleLine(i).getColumnOfNodeOffset(i,e,t);const a=this._context.model.getLineMinColumn(i);return s<a&&(s=a),new oe["a"](i,s)}_getViewLineDomNode(e){while(e&&1===e.nodeType){if(e.className===X.CLASS_NAME)return e;e=e.parentElement}return null}_getLineNumberFor(e){const t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let i=t;i<=n;i++){const t=this._visibleLines.getVisibleLine(i);if(e===t.getDomNode())return i}return-1}getLineWidth(e){const t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();return e<t||e>n?-1:this._visibleLines.getVisibleLine(e).getWidth()}linesVisibleRangesForRange(e,t){if(this.shouldRender())return null;const n=e.endLineNumber,i=se["a"].intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!i)return null;let r=[],o=0;const s=new Y(this.domNode.domNode,this._textRangeRestingSpot);let a=0;t&&(a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new oe["a"](i.startLineNumber,1)).lineNumber);const l=this._visibleLines.getStartLineNumber(),c=this._visibleLines.getEndLineNumber();for(let u=i.startLineNumber;u<=i.endLineNumber;u++){if(u<l||u>c)continue;const e=u===i.startLineNumber?i.startColumn:1,h=u===i.endLineNumber?i.endColumn:this._context.model.getLineMaxColumn(u),d=this._visibleLines.getVisibleLine(u).getVisibleRangesForRange(e,h,s);if(d){if(t&&u<n){const e=a;a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new oe["a"](u+1,1)).lineNumber,e!==a&&(d.ranges[d.ranges.length-1].width+=this._typicalHalfwidthCharacterWidth)}r[o++]=new R(d.outsideRenderedLine,u,d.ranges)}}return 0===o?null:r}_visibleRangesForLineRange(e,t,n){return this.shouldRender()||e<this._visibleLines.getStartLineNumber()||e>this._visibleLines.getEndLineNumber()?null:this._visibleLines.getVisibleLine(e).getVisibleRangesForRange(t,n,new Y(this.domNode.domNode,this._textRangeRestingSpot))}visibleRangeForPosition(e){const t=this._visibleRangesForLineRange(e.lineNumber,e.column,e.column);return t?new B(t.outsideRenderedLine,t.ranges[0].left):null}updateLineWidths(){this._updateLineWidths(!1)}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidths(e){const t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();let i=1,r=!0;for(let o=t;o<=n;o++){const t=this._visibleLines.getVisibleLine(o);!e||t.getWidthIsFast()?i=Math.max(i,t.getWidth()):r=!1}return r&&1===t&&n===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(i),r}_checkMonospaceFontAssumptions(){let e=-1,t=-1;const n=this._visibleLines.getStartLineNumber(),i=this._visibleLines.getEndLineNumber();for(let r=n;r<=i;r++){const n=this._visibleLines.getVisibleLine(r);if(n.needsMonospaceFontCheck()){const i=n.getWidth();i>t&&(t=i,e=r)}}if(-1!==e&&!this._visibleLines.getVisibleLine(e).monospaceAssumptionsAreValid())for(let r=n;r<=i;r++){const e=this._visibleLines.getVisibleLine(r);e.onMonospaceAssumptionsInvalidated()}}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(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){const t=this._horizontalRevealRequest;if(e.startLineNumber<=t.minLineNumber&&t.maxLineNumber<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const e=this._computeScrollLeftToReveal(t);e&&(this._isViewportWrapping||this._ensureMaxLineWidth(e.maxHorizontalOffset),this._context.model.setScrollPosition({scrollLeft:e.scrollLeft},t.scrollType))}}if(this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),y["d"]&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const e=this._visibleLines.getStartLineNumber(),t=this._visibleLines.getEndLineNumber();for(let n=e;n<=t;n++){const e=this._visibleLines.getVisibleLine(n);if(e.needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const t=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-t),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(e){const t=Math.ceil(e);this._maxLineWidth<t&&(this._maxLineWidth=t,this._context.model.setMaxLineWidth(this._maxLineWidth))}_computeScrollTopToRevealRange(e,t,n,i,r){const o=e.top,s=e.height,a=o+s;let l,c,u;if(i&&i.length>0){let e=i[0].startLineNumber,t=i[0].endLineNumber;for(let n=1,r=i.length;n<r;n++){const r=i[n];e=Math.min(e,r.startLineNumber),t=Math.max(t,r.endLineNumber)}l=!1,c=this._context.viewLayout.getVerticalOffsetForLineNumber(e),u=this._context.viewLayout.getVerticalOffsetForLineNumber(t)+this._lineHeight}else{if(!n)return-1;l=!0,c=this._context.viewLayout.getVerticalOffsetForLineNumber(n.startLineNumber),u=this._context.viewLayout.getVerticalOffsetForLineNumber(n.endLineNumber)+this._lineHeight}const h="mouse"===t&&"default"===this._cursorSurroundingLinesStyle;if(!h){const e=Math.min(s/this._lineHeight/2,this._cursorSurroundingLines);c-=e*this._lineHeight,u+=Math.max(0,e-1)*this._lineHeight}let d;if(0!==r&&4!==r||(u+=this._lineHeight),u-c>s){if(!l)return-1;d=c}else if(5===r||6===r)if(6===r&&o<=c&&u<=a)d=o;else{const e=Math.max(5*this._lineHeight,.2*s),t=c-e,n=u-s;d=Math.max(n,t)}else if(1===r||2===r)if(2===r&&o<=c&&u<=a)d=o;else{const e=(c+u)/2;d=Math.max(0,e-s/2)}else d=this._computeMinimumScrolling(o,a,c,u,3===r,4===r);return d}_computeScrollLeftToReveal(e){const t=this._context.viewLayout.getCurrentViewport(),n=t.left,i=n+t.width;let r=1073741824,o=0;if("range"===e.type){const t=this._visibleRangesForLineRange(e.lineNumber,e.startColumn,e.endColumn);if(!t)return null;for(const e of t.ranges)r=Math.min(r,e.left),o=Math.max(o,e.left+e.width)}else for(const a of e.selections){if(a.startLineNumber!==a.endLineNumber)return null;const e=this._visibleRangesForLineRange(a.startLineNumber,a.startColumn,a.endColumn);if(!e)return null;for(const t of e.ranges)r=Math.min(r,t.left),o=Math.max(o,t.left+t.width)}if(r=Math.max(0,r-Ot.HORIZONTAL_EXTRA_PX),o+=this._revealHorizontalRightPadding,"selections"===e.type&&o-r>t.width)return null;const s=this._computeMinimumScrolling(n,i,r,o);return{scrollLeft:s,maxHorizontalOffset:o}}_computeMinimumScrolling(e,t,n,i,r,o){e|=0,t|=0,n|=0,i|=0,r=!!r,o=!!o;const s=t-e,a=i-n;return a<s?r?n:o?Math.max(0,i-s):n<e?n:i>t?Math.max(0,i-s):e:n}}Ot.HORIZONTAL_EXTRA_PX=30;n("27e6");class kt extends yt{constructor(e){super(),this._context=e;const t=this._context.configuration.options,n=t.get(129);this._decorationsLeft=n.decorationsLeft,this._decorationsWidth=n.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(129);return this._decorationsLeft=n.decorationsLeft,this._decorationsWidth=n.decorationsWidth,!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport();let n=[],i=0;for(let r=0,o=t.length;r<o;r++){const e=t[r],o=e.options.linesDecorationsClassName;o&&(n[i++]=new bt(e.range.startLineNumber,e.range.endLineNumber,o));const s=e.options.firstLineDecorationClassName;s&&(n[i++]=new bt(e.range.startLineNumber,e.range.startLineNumber,s))}return n}prepareRender(e){const t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),r=this._decorationsLeft.toString(),o=this._decorationsWidth.toString(),s='" style="left:'+r+"px;width:"+o+'px;"></div>',a=[];for(let l=t;l<=n;l++){const e=l-t,n=i[e];let r="";for(let t=0,i=n.length;t<i;t++)r+='<div class="cldr '+n[t]+s;a[e]=r}this._renderResult=a}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}n("5d70");class Lt extends yt{constructor(e){super(),this._context=e,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){return!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_getDecorations(e){const t=e.getDecorationsInViewport();let n=[],i=0;for(let r=0,o=t.length;r<o;r++){const e=t[r],o=e.options.marginClassName;o&&(n[i++]=new bt(e.range.startLineNumber,e.range.endLineNumber,o))}return n}prepareRender(e){const t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._render(t,n,this._getDecorations(e)),r=[];for(let o=t;o<=n;o++){const e=o-t,n=i[e];let s="";for(let t=0,i=n.length;t<i;t++)s+='<div class="cmdr '+n[t]+'" style=""></div>';r[e]=s}this._renderResult=r}render(e,t){return this._renderResult?this._renderResult[t-e]:""}}n("f20b");class Et{constructor(e,t,n,i){this._rgba8Brand=void 0,this.r=Et._clamp(e),this.g=Et._clamp(t),this.b=Et._clamp(n),this.a=Et._clamp(i)}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}static _clamp(e){return e<0?0:e>255?255:0|e}}Et.Empty=new Et(0,0,0,0);var Dt=n("b707");class It extends d["a"]{constructor(){super(),this._onDidChange=new h["b"],this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(Dt["F"].onDidChange(e=>{e.changedColorMap&&this._updateColorMap()}))}static getInstance(){return this._INSTANCE||(this._INSTANCE=Object(d["h"])(new It)),this._INSTANCE}_updateColorMap(){const e=Dt["F"].getColorMap();if(!e)return this._colors=[Et.Empty],void(this._backgroundIsLight=!0);this._colors=[Et.Empty];for(let n=1;n<e.length;n++){const t=e[n].rgba;this._colors[n]=new Et(t.r,t.g,t.b,Math.round(255*t.a))}let t=e[2].getRelativeLuminance();this._backgroundIsLight=t>=.5,this._onDidChange.fire(void 0)}getColor(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]}backgroundIsLight(){return this._backgroundIsLight}}It._INSTANCE=null;var Mt=n("a8d0"),Tt=n("303e");const At=(()=>{const e=[];for(let t=32;t<=126;t++)e.push(t);return e.push(65533),e})(),Nt=(e,t)=>(e-=32,e<0||e>96?t<=2?(e+96)%96:95:e);var Pt=n("099d");class jt{constructor(e,t){this.scale=t,this._minimapCharRendererBrand=void 0,this.charDataNormal=jt.soften(e,.8),this.charDataLight=jt.soften(e,50/60)}static soften(e,t){let n=new Uint8ClampedArray(e.length);for(let i=0,r=e.length;i<r;i++)n[i]=Object(Pt["b"])(e[i]*t);return n}renderChar(e,t,n,i,r,o,s,a,l){const c=1*this.scale,u=2*this.scale,h=l?1:u;if(t+c>e.width||n+h>e.height)return void console.warn("bad render request outside image data");const d=a?this.charDataLight:this.charDataNormal,f=Nt(i,s),p=4*e.width,g=o.r,m=o.g,v=o.b,b=r.r-g,y=r.g-m,_=r.b-v,w=e.data;let C=f*c*u,S=n*p+4*t;for(let x=0;x<h;x++){let e=S;for(let t=0;t<c;t++){const t=d[C++]/255;w[e++]=g+b*t,w[e++]=m+y*t,w[e++]=v+_*t,e++}S+=p}}blockRenderChar(e,t,n,i,r,o,s){const a=1*this.scale,l=2*this.scale,c=s?1:l;if(t+a>e.width||n+c>e.height)return void console.warn("bad render request outside image data");const u=4*e.width,h=.5,d=r.r,f=r.g,p=r.b,g=i.r-d,m=i.g-f,v=i.b-p,b=d+g*h,y=f+m*h,_=p+v*h,w=e.data;let C=n*u+4*t;for(let S=0;S<c;S++){let e=C;for(let t=0;t<a;t++)w[e++]=b,w[e++]=y,w[e++]=_,e++;C+=u}}}var Rt=n("0bfb");const Ft={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},Bt=e=>{const t=new Uint8ClampedArray(e.length/2);for(let n=0;n<e.length;n+=2)t[n>>1]=Ft[e[n]]<<4|15&Ft[e[n+1]];return t},Wt={1:Object(Rt["a"])(()=>Bt("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:Object(Rt["a"])(()=>Bt("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))};class Vt{static create(e,t){if(this.lastCreated&&e===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;let n;return n=Wt[e]?new jt(Wt[e](),e):Vt.createFromSampleData(Vt.createSampleData(t).data,e),this.lastFontFamily=t,this.lastCreated=n,n}static createSampleData(e){const 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";let i=0;for(const r of At)n.fillText(String.fromCharCode(r),i,8),i+=10;return n.getImageData(0,0,960,16)}static createFromSampleData(e,t){const n=61440;if(e.length!==n)throw new Error("Unexpected source in MinimapCharRenderer");let i=Vt._downsample(e,t);return new jt(i,t)}static _downsampleChar(e,t,n,i,r){const o=1*r,s=2*r;let a=i,l=0;for(let c=0;c<s;c++){const i=c/s*16,r=(c+1)/s*16;for(let s=0;s<o;s++){const c=s/o*10,u=(s+1)/o*10;let h=0,d=0;for(let n=i;n<r;n++){const i=t+3840*Math.floor(n),r=1-(n-Math.floor(n));for(let t=c;t<u;t++){const n=1-(t-Math.floor(t)),o=i+4*Math.floor(t),s=n*r;d+=s,h+=e[o]*e[o+3]/255*s}}const f=h/d;l=Math.max(l,f),n[a++]=Object(Pt["b"])(f)}}return l}static _downsample(e,t){const n=2*t*1*t,i=96*n,r=new Uint8ClampedArray(i);let o=0,s=0,a=0;for(let l=0;l<96;l++)a=Math.max(a,this._downsampleChar(e,s,r,o,t)),o+=n,s+=40;if(a>0){const e=255/a;for(let t=0;t<i;t++)r[t]*=e}return r}}var zt=n("3352");const Ht=140,Ut=2;class qt{constructor(e,t,n){const i=e.options,r=i.get(127),o=i.get(129),s=o.minimap,a=i.get(41),l=i.get(63);this.renderMinimap=s.renderMinimap,this.size=l.size,this.minimapHeightIsEditorHeight=s.minimapHeightIsEditorHeight,this.scrollBeyondLastLine=i.get(93),this.showSlider=l.showSlider,this.pixelRatio=r,this.typicalHalfwidthCharacterWidth=a.typicalHalfwidthCharacterWidth,this.lineHeight=i.get(57),this.minimapLeft=s.minimapLeft,this.minimapWidth=s.minimapWidth,this.minimapHeight=o.height,this.canvasInnerWidth=s.minimapCanvasInnerWidth,this.canvasInnerHeight=s.minimapCanvasInnerHeight,this.canvasOuterWidth=s.minimapCanvasOuterWidth,this.canvasOuterHeight=s.minimapCanvasOuterHeight,this.isSampling=s.minimapIsSampling,this.editorHeight=o.height,this.fontScale=s.minimapScale,this.minimapLineHeight=s.minimapLineHeight,this.minimapCharWidth=1*this.fontScale,this.charRenderer=Object(Rt["a"])(()=>Vt.create(this.fontScale,a.fontFamily)),this.backgroundColor=qt._getMinimapBackground(t,n)}static _getMinimapBackground(e,t){const n=e.getColor(Tt["Zb"]);return n?new Et(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a):t.getColor(2)}equals(e){return this.renderMinimap===e.renderMinimap&&this.size===e.size&&this.minimapHeightIsEditorHeight===e.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===e.scrollBeyondLastLine&&this.showSlider===e.showSlider&&this.pixelRatio===e.pixelRatio&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.lineHeight===e.lineHeight&&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&&this.isSampling===e.isSampling&&this.editorHeight===e.editorHeight&&this.fontScale===e.fontScale&&this.minimapLineHeight===e.minimapLineHeight&&this.minimapCharWidth===e.minimapCharWidth&&this.backgroundColor&&this.backgroundColor.equals(e.backgroundColor)}}class $t{constructor(e,t,n,i,r,o,s,a){this.scrollTop=e,this.scrollHeight=t,this.sliderNeeded=n,this._computedSliderRatio=i,this.sliderTop=r,this.sliderHeight=o,this.startLineNumber=s,this.endLineNumber=a}getDesiredScrollTopFromDelta(e){return Math.round(this.scrollTop+e/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(e){return Math.round((e-this.sliderHeight/2)/this._computedSliderRatio)}static create(e,t,n,i,r,o,s,a,l,c,u){const h=e.pixelRatio,d=e.minimapLineHeight,f=Math.floor(e.canvasInnerHeight/d),p=e.lineHeight;if(e.minimapHeightIsEditorHeight){const t=a*e.lineHeight+(e.scrollBeyondLastLine?r-e.lineHeight:0),n=Math.max(1,Math.floor(r*r/t)),i=Math.max(0,e.minimapHeight-n),o=i/(c-r),u=l*o,h=i>0,d=Math.floor(e.canvasInnerHeight/e.minimapLineHeight);return new $t(l,c,h,o,u,n,1,Math.min(s,d))}let g,m;if(o&&n!==s){const e=n-t+1;g=Math.floor(e*d/h)}else{const e=r/p;g=Math.floor(e*d/h)}m=e.scrollBeyondLastLine?(s-1)*d/h:Math.max(0,s*d/h-g),m=Math.min(e.minimapHeight-g,m);const v=m/(c-r),b=l*v;let y=0;if(e.scrollBeyondLastLine){const e=r/p;y=e-1}if(f>=s+y){const e=1,t=s,n=m>0;return new $t(l,c,n,v,b,g,e,t)}{let e=Math.max(1,Math.floor(t-b*h/d));u&&u.scrollHeight===c&&(u.scrollTop>l&&(e=Math.min(e,u.startLineNumber)),u.scrollTop<l&&(e=Math.max(e,u.startLineNumber)));const n=Math.min(s,e+f-1),r=(l-i)/p,o=(t-e+r)*d/h;return new $t(l,c,!0,v,o,g,e,n)}}}class Kt{constructor(e){this.dy=e}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}Kt.INVALID=new Kt(-1);class Gt{constructor(e,t,n){this.renderedLayout=e,this._imageData=t,this._renderedLines=new Je(()=>Kt.INVALID),this._renderedLines._set(e.startLineNumber,n)}linesEquals(e){if(!this.scrollEquals(e))return!1;const t=this._renderedLines._get(),n=t.lines;for(let i=0,r=n.length;i<r;i++)if(-1===n[i].dy)return!1;return!0}scrollEquals(e){return this.renderedLayout.startLineNumber===e.startLineNumber&&this.renderedLayout.endLineNumber===e.endLineNumber}_get(){const e=this._renderedLines._get();return{imageData:this._imageData,rendLineNumberStart:e.rendLineNumberStart,lines:e.lines}}onLinesChanged(e,t){return this._renderedLines.onLinesChanged(e,t)}onLinesDeleted(e,t){this._renderedLines.onLinesDeleted(e,t)}onLinesInserted(e,t){this._renderedLines.onLinesInserted(e,t)}onTokensChanged(e){return this._renderedLines.onTokensChanged(e)}}class Yt{constructor(e,t,n,i){this._backgroundFillData=Yt._createBackgroundFillData(t,n,i),this._buffers=[e.createImageData(t,n),e.createImageData(t,n)],this._lastUsedBuffer=0}getBuffer(){this._lastUsedBuffer=1-this._lastUsedBuffer;const e=this._buffers[this._lastUsedBuffer];return e.data.set(this._backgroundFillData),e}static _createBackgroundFillData(e,t,n){const i=n.r,r=n.g,o=n.b,s=new Uint8ClampedArray(e*t*4);let a=0;for(let l=0;l<t;l++)for(let t=0;t<e;t++)s[a]=i,s[a+1]=r,s[a+2]=o,s[a+3]=255,a+=4;return s}}class Zt{constructor(e,t){this.samplingRatio=e,this.minimapLines=t}static compute(e,t,n){if(0===e.renderMinimap||!e.isSampling)return[null,[]];const i=e.pixelRatio,r=e.lineHeight,o=e.scrollBeyondLastLine,{minimapLineCount:s}=$["f"].computeContainedMinimapLineCount({viewLineCount:t,scrollBeyondLastLine:o,height:e.editorHeight,lineHeight:r,pixelRatio:i}),a=t/s,l=a/2;if(!n||0===n.minimapLines.length){let e=[];if(e[0]=1,s>1){for(let t=0,n=s-1;t<n;t++)e[t]=Math.round(t*a+l);e[s-1]=t}return[new Zt(a,e),[]]}const c=n.minimapLines,u=c.length;let h=[],d=0,f=0,p=1;const g=10;let m=[],v=null;for(let b=0;b<s;b++){const e=Math.max(p,Math.round(b*a)),n=Math.max(e,Math.round((b+1)*a));while(d<u&&c[d]<e){if(m.length<g){const e=d+1+f;v&&"deleted"===v.type&&v._oldIndex===d-1?v.deleteToLineNumber++:(v={type:"deleted",_oldIndex:d,deleteFromLineNumber:e,deleteToLineNumber:e},m.push(v)),f--}d++}let i;if(d<u&&c[d]<=n)i=c[d],d++;else if(i=0===b?1:b+1===s?t:Math.round(b*a+l),m.length<g){const e=d+1+f;v&&"inserted"===v.type&&v._i===b-1?v.insertToLineNumber++:(v={type:"inserted",_i:b,insertFromLineNumber:e,insertToLineNumber:e},m.push(v)),f++}h[b]=i,p=i}if(m.length<g)while(d<u){const e=d+1+f;v&&"deleted"===v.type&&v._oldIndex===d-1?v.deleteToLineNumber++:(v={type:"deleted",_oldIndex:d,deleteFromLineNumber:e,deleteToLineNumber:e},m.push(v)),f--,d++}else m=[{type:"flush"}];return[new Zt(a,h),m]}modelLineToMinimapLine(e){return Math.min(this.minimapLines.length,Math.max(1,Math.round(e/this.samplingRatio)))}modelLineRangeToMinimapLineRange(e,t){let n=this.modelLineToMinimapLine(e)-1;while(n>0&&this.minimapLines[n-1]>=e)n--;let i=this.modelLineToMinimapLine(t)-1;while(i+1<this.minimapLines.length&&this.minimapLines[i+1]<=t)i++;if(n===i){const i=this.minimapLines[n];if(i<e||i>t)return null}return[n+1,i+1]}decorationLineRangeToMinimapLineRange(e,t){let n=this.modelLineToMinimapLine(e),i=this.modelLineToMinimapLine(t);return e!==t&&i===n&&(i===this.minimapLines.length?n>1&&n--:i++),[n,i]}onLinesDeleted(e){const t=e.toLineNumber-e.fromLineNumber+1;let n=this.minimapLines.length,i=0;for(let r=this.minimapLines.length-1;r>=0;r--){if(this.minimapLines[r]<e.fromLineNumber)break;this.minimapLines[r]<=e.toLineNumber?(this.minimapLines[r]=Math.max(1,e.fromLineNumber-1),n=Math.min(n,r),i=Math.max(i,r)):this.minimapLines[r]-=t}return[n,i]}onLinesInserted(e){const t=e.toLineNumber-e.fromLineNumber+1;for(let n=this.minimapLines.length-1;n>=0;n--){if(this.minimapLines[n]<e.fromLineNumber)break;this.minimapLines[n]+=t}}}class Xt extends A{constructor(e){super(e),this.tokensColorTracker=It.getInstance(),this._selections=[],this._minimapSelections=null,this.options=new qt(this._context.configuration,this._context.theme,this.tokensColorTracker);const[t]=Zt.compute(this.options,this._context.model.getLineCount(),null);this._samplingState=t,this._shouldCheckSampling=!1,this._actual=new Qt(e.theme,this)}dispose(){this._actual.dispose(),super.dispose()}getDomNode(){return this._actual.getDomNode()}_onOptionsMaybeChanged(){const e=new qt(this._context.configuration,this._context.theme,this.tokensColorTracker);return!this.options.equals(e)&&(this.options=e,this._recreateLineSampling(),this._actual.onDidChangeOptions(),!0)}onConfigurationChanged(e){return this._onOptionsMaybeChanged()}onCursorStateChanged(e){return this._selections=e.selections,this._minimapSelections=null,this._actual.onSelectionChanged()}onDecorationsChanged(e){return!!e.affectsMinimap&&this._actual.onDecorationsChanged()}onFlushed(e){return this._samplingState&&(this._shouldCheckSampling=!0),this._actual.onFlushed()}onLinesChanged(e){if(this._samplingState){const t=this._samplingState.modelLineRangeToMinimapLineRange(e.fromLineNumber,e.toLineNumber);return!!t&&this._actual.onLinesChanged(t[0],t[1])}return this._actual.onLinesChanged(e.fromLineNumber,e.toLineNumber)}onLinesDeleted(e){if(this._samplingState){const[t,n]=this._samplingState.onLinesDeleted(e);return t<=n&&this._actual.onLinesChanged(t+1,n+1),this._shouldCheckSampling=!0,!0}return this._actual.onLinesDeleted(e.fromLineNumber,e.toLineNumber)}onLinesInserted(e){return this._samplingState?(this._samplingState.onLinesInserted(e),this._shouldCheckSampling=!0,!0):this._actual.onLinesInserted(e.fromLineNumber,e.toLineNumber)}onScrollChanged(e){return this._actual.onScrollChanged()}onThemeChanged(e){return this._context.model.invalidateMinimapColorCache(),this._actual.onThemeChanged(),this._onOptionsMaybeChanged(),!0}onTokensChanged(e){if(this._samplingState){let t=[];for(const n of e.ranges){const e=this._samplingState.modelLineRangeToMinimapLineRange(n.fromLineNumber,n.toLineNumber);e&&t.push({fromLineNumber:e[0],toLineNumber:e[1]})}return!!t.length&&this._actual.onTokensChanged(t)}return this._actual.onTokensChanged(e.ranges)}onTokensColorsChanged(e){return this._onOptionsMaybeChanged(),this._actual.onTokensColorsChanged()}onZonesChanged(e){return this._actual.onZonesChanged()}prepareRender(e){this._shouldCheckSampling&&(this._shouldCheckSampling=!1,this._recreateLineSampling())}render(e){let t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber;this._samplingState&&(t=this._samplingState.modelLineToMinimapLine(t),n=this._samplingState.modelLineToMinimapLine(n));const i={viewportContainsWhitespaceGaps:e.viewportData.whitespaceViewportData.length>0,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,viewportStartLineNumber:t,viewportEndLineNumber:n,viewportStartLineNumberVerticalOffset:e.getVerticalOffsetForLineNumber(t),scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,viewportWidth:e.viewportWidth,viewportHeight:e.viewportHeight};this._actual.render(i)}_recreateLineSampling(){this._minimapSelections=null;const e=Boolean(this._samplingState),[t,n]=Zt.compute(this.options,this._context.model.getLineCount(),this._samplingState);if(this._samplingState=t,e&&this._samplingState)for(const i of n)switch(i.type){case"deleted":this._actual.onLinesDeleted(i.deleteFromLineNumber,i.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(i.insertFromLineNumber,i.insertToLineNumber);break;case"flush":this._actual.onFlushed();break}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.model.getLineCount()}getRealLineCount(){return this._context.model.getLineCount()}getLineContent(e){return this._samplingState?this._context.model.getLineContent(this._samplingState.minimapLines[e-1]):this._context.model.getLineContent(e)}getMinimapLinesRenderingData(e,t,n){if(this._samplingState){let i=[];for(let r=0,o=t-e+1;r<o;r++)n[r]?i[r]=this._context.model.getViewLineData(this._samplingState.minimapLines[e+r-1]):i[r]=null;return i}return this._context.model.getMinimapLinesRenderingData(e,t,n).data}getSelections(){if(null===this._minimapSelections)if(this._samplingState){this._minimapSelections=[];for(const e of this._selections){const[t,n]=this._samplingState.decorationLineRangeToMinimapLineRange(e.startLineNumber,e.endLineNumber);this._minimapSelections.push(new v["a"](t,e.startColumn,n,e.endColumn))}}else this._minimapSelections=this._selections;return this._minimapSelections}getMinimapDecorationsInViewport(e,t){let n;if(this._samplingState){const i=this._samplingState.minimapLines[e-1],r=this._samplingState.minimapLines[t-1];n=new se["a"](i,1,r,this._context.model.getLineMaxColumn(r))}else n=new se["a"](e,1,t,this._context.model.getLineMaxColumn(t));const i=this._context.model.getDecorationsInViewport(n);if(this._samplingState){let e=[];for(const t of i){if(!t.options.minimap)continue;const n=t.range,i=this._samplingState.modelLineToMinimapLine(n.startLineNumber),r=this._samplingState.modelLineToMinimapLine(n.endLineNumber);e.push(new Mt["g"](new se["a"](i,n.startColumn,r,n.endColumn),t.options))}return e}return i}getOptions(){return this._context.model.getTextModelOptions()}revealLineNumber(e){this._samplingState&&(e=this._samplingState.minimapLines[e-1]),this._context.model.revealRange("mouse",!1,new se["a"](e,1,e,1),1,0)}setScrollTop(e){this._context.model.setScrollPosition({scrollTop:e},1)}}class Qt extends d["a"]{constructor(e,t){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=e,this._model=t,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(Tt["cc"]),this._domNode=Object(b["b"])(document.createElement("div")),N.write(this._domNode,8),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=Object(b["b"])(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=Object(b["b"])(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=Object(b["b"])(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=Object(b["b"])(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=Object(b["b"])(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._mouseDownListener=c["o"](this._domNode.domNode,"mousedown",e=>{e.preventDefault();const t=this._model.options.renderMinimap;if(0===t)return;if(!this._lastRenderData)return;if("proportional"!==this._model.options.size){if(e.leftButton&&this._lastRenderData){const t=c["D"](this._slider.domNode),n=t.top+t.height/2;this._startSliderDragging(e.buttons,e.posx,n,e.posy,this._lastRenderData.renderedLayout)}return}const n=this._model.options.minimapLineHeight,i=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*e.browserEvent.offsetY,r=Math.floor(i/n);let o=r+this._lastRenderData.renderedLayout.startLineNumber;o=Math.min(o,this._model.getLineCount()),this._model.revealLineNumber(o)}),this._sliderMouseMoveMonitor=new S["a"],this._sliderMouseDownListener=c["o"](this._slider.domNode,"mousedown",e=>{e.preventDefault(),e.stopPropagation(),e.leftButton&&this._lastRenderData&&this._startSliderDragging(e.buttons,e.posx,e.posy,e.posy,this._lastRenderData.renderedLayout)}),this._gestureDisposable=_["b"].addTarget(this._domNode.domNode),this._sliderTouchStartListener=c["i"](this._domNode.domNode,_["a"].Start,e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(e))},{passive:!1}),this._sliderTouchMoveListener=c["i"](this._domNode.domNode,_["a"].Change,e=>{e.preventDefault(),e.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(e)},{passive:!1}),this._sliderTouchEndListener=c["o"](this._domNode.domNode,_["a"].End,e=>{e.preventDefault(),e.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(e,t,n,i,r){this._slider.toggleClassName("active",!0);const o=(e,i)=>{const o=Math.abs(i-t);if(y["j"]&&o>Ht)return void this._model.setScrollTop(r.scrollTop);const s=e-n;this._model.setScrollTop(r.getDesiredScrollTopFromDelta(s))};i!==n&&o(i,t),this._sliderMouseMoveMonitor.startMonitoring(this._slider.domNode,e,S["b"],e=>o(e.posy,e.posx),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(e){const t=this._domNode.domNode.getBoundingClientRect().top,n=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(e.pageY-t);this._model.setScrollTop(n)}dispose(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){return"always"===this._model.options.showSlider?"minimap slider-always":"minimap slider-mouseover"}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new Yt(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(e,t){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e,t)}onLinesDeleted(e,t){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e,t),!0}onLinesInserted(e,t){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e,t),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(Tt["cc"]),this._renderDecorations=!0,!0}onTokensChanged(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(e){const t=this._model.options.renderMinimap;if(0===t)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const n=$t.create(this._model.options,e.viewportStartLineNumber,e.viewportEndLineNumber,e.viewportStartLineNumberVerticalOffset,e.viewportHeight,e.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(n.sliderNeeded?"block":"none"),this._slider.setTop(n.sliderTop),this._slider.setHeight(n.sliderHeight);const i=e.scrollLeft/this._model.options.typicalHalfwidthCharacterWidth,r=Math.min(this._model.options.minimapWidth,Math.round(i*this._model.options.minimapCharWidth/this._model.options.pixelRatio));this._sliderHorizontal.setLeft(r),this._sliderHorizontal.setWidth(this._model.options.minimapWidth-r),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(n.sliderHeight),this.renderDecorations(n),this._lastRenderData=this.renderLines(n)}renderDecorations(e){if(this._renderDecorations){this._renderDecorations=!1;const t=this._model.getSelections(),n=this._model.getMinimapDecorationsInViewport(e.startLineNumber,e.endLineNumber),{canvasInnerWidth:i,canvasInnerHeight:r}=this._model.options,o=this._model.options.minimapLineHeight,s=this._model.options.minimapCharWidth,a=this._model.getOptions().tabSize,l=this._decorationsCanvas.domNode.getContext("2d");l.clearRect(0,0,i,r);const c=new Map;for(let u=0;u<t.length;u++){const n=t[u];for(let t=n.startLineNumber;t<=n.endLineNumber;t++)this.renderDecorationOnLine(l,c,n,this._selectionColor,e,t,o,o,a,s)}for(let u=0;u<n.length;u++){const t=n[u];if(!t.options.minimap)continue;const i=t.options.minimap.getColor(this._theme);for(let n=t.range.startLineNumber;n<=t.range.endLineNumber;n++)switch(t.options.minimap.position){case zt["c"].Inline:this.renderDecorationOnLine(l,c,t.range,i,e,n,o,o,a,s);continue;case zt["c"].Gutter:const r=(n-e.startLineNumber)*o,u=2;this.renderDecoration(l,i,u,r,Ut,o);continue}}}}renderDecorationOnLine(e,t,n,i,r,o,s,a,l,c){const u=(o-r.startLineNumber)*a;if(u+s<0||u>this._model.options.canvasInnerHeight)return;let h=t.get(o);const d=!h;if(!h){const e=this._model.getLineContent(o);h=[$["h"]];for(let t=1;t<e.length+1;t++){const n=e.charCodeAt(t-1),i=9===n?l*c:Te["E"](n)?2*c:c;h[t]=h[t-1]+i}t.set(o,h)}const{startColumn:f,endColumn:p,startLineNumber:g,endLineNumber:m}=n,v=g===o?h[f-1]:$["h"],b=m>o?h.length-1:p-1;if(b>0){const t=h[b]-v||2;this.renderDecoration(e,i,v,u,t,s)}d&&this.renderLineHighlight(e,i,u,s)}renderLineHighlight(e,t,n,i){e.fillStyle=t&&t.transparent(.5).toString()||"",e.fillRect($["h"],n,e.canvas.width,i)}renderDecoration(e,t,n,i,r,o){e.fillStyle=t&&t.toString()||"",e.fillRect(n,i,r,o)}renderLines(e){const t=e.startLineNumber,n=e.endLineNumber,i=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){const t=this._lastRenderData._get();return new Gt(e,t.imageData,t.lines)}const r=this._getBuffer();if(!r)return null;let[o,s,a]=Qt._renderUntouchedLines(r,t,n,i,this._lastRenderData);const l=this._model.getMinimapLinesRenderingData(t,n,a),c=this._model.getOptions().tabSize,u=this._model.options.backgroundColor,h=this._model.tokensColorTracker,d=h.backgroundIsLight(),f=this._model.options.renderMinimap,p=this._model.options.charRenderer(),g=this._model.options.fontScale,m=this._model.options.minimapCharWidth,v=1===f?2:3,b=v*g,y=i>b?Math.floor((i-b)/2):0;let _=0;const w=[];for(let k=0,L=n-t+1;k<L;k++)a[k]&&Qt._renderLine(r,u,d,f,m,h,p,_,y,c,l[k],g,i),w[k]=new Kt(_),_+=i;const C=-1===o?0:o,S=-1===s?r.height:s,x=S-C,O=this._canvas.domNode.getContext("2d");return O.putImageData(r,0,0,0,C,r.width,x),new Gt(e,r,w)}static _renderUntouchedLines(e,t,n,i,r){const o=[];if(!r){for(let e=0,i=n-t+1;e<i;e++)o[e]=!0;return[-1,-1,o]}const s=r._get(),a=s.imageData.data,l=s.rendLineNumberStart,c=s.lines,u=c.length,h=e.width,d=e.data,f=(n-t+1)*i*h*4;let p=-1,g=-1,m=-1,v=-1,b=-1,y=-1,_=0;for(let S=t;S<=n;S++){const e=S-t,n=S-l,r=n>=0&&n<u?c[n].dy:-1;if(-1===r){o[e]=!0,_+=i;continue}const s=r*h*4,w=(r+i)*h*4,C=_*h*4,x=(_+i)*h*4;v===s&&y===C?(v=w,y=x):(-1!==m&&(d.set(a.subarray(m,v),b),-1===p&&0===m&&m===b&&(p=v),-1===g&&v===f&&m===b&&(g=m)),m=s,v=w,b=C,y=x),o[e]=!1,_+=i}-1!==m&&(d.set(a.subarray(m,v),b),-1===p&&0===m&&m===b&&(p=v),-1===g&&v===f&&m===b&&(g=m));const w=-1===p?-1:p/(4*h),C=-1===g?-1:g/(4*h);return[w,C,o]}static _renderLine(e,t,n,i,r,o,s,a,l,c,u,h,d){const f=u.content,p=u.tokens,g=e.width-r,m=1===d;let v=$["h"],b=0,y=0;for(let _=0,w=p.getCount();_<w;_++){const u=p.getEndOffset(_),d=p.getForeground(_),w=o.getColor(d);for(;b<u;b++){if(v>g)return;const o=f.charCodeAt(b);if(9===o){const e=c-(b+y)%c;y+=e-1,v+=e*r}else if(32===o)v+=r;else{const c=Te["E"](o)?2:1;for(let u=0;u<c;u++)if(2===i?s.blockRenderChar(e,v,a+l,w,t,n,m):s.renderChar(e,v,a+l,o,w,t,h,n,m),v+=r,v>g)return}}}}}Object(je["f"])((e,t)=>{const n=e.getColor(Tt["Zb"]);n&&t.addRule(`.monaco-editor .minimap > canvas { opacity: ${n.rgba.a}; will-change: opacity; }`);const i=e.getColor(Tt["ec"]);i&&t.addRule(`.monaco-editor .minimap-slider .minimap-slider-horizontal { background: ${i}; }`);const r=e.getColor(Tt["fc"]);r&&t.addRule(`.monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ${r}; }`);const o=e.getColor(Tt["dc"]);o&&t.addRule(`.monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ${o}; }`);const s=e.getColor(Tt["yc"]);s&&t.addRule(`.monaco-editor .minimap-shadow-visible { box-shadow: ${s} -6px 0 6px -6px inset; }`)});n("725e");class Jt extends A{constructor(e){super(e);const t=this._context.configuration.options,n=t.get(129);this._widgets={},this._verticalScrollbarWidth=n.verticalScrollbarWidth,this._minimapWidth=n.minimap.minimapWidth,this._horizontalScrollbarHeight=n.horizontalScrollbarHeight,this._editorHeight=n.height,this._editorWidth=n.width,this._domNode=Object(b["b"])(document.createElement("div")),N.write(this._domNode,4),this._domNode.setClassName("overlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(129);return this._verticalScrollbarWidth=n.verticalScrollbarWidth,this._minimapWidth=n.minimap.minimapWidth,this._horizontalScrollbarHeight=n.horizontalScrollbarHeight,this._editorHeight=n.height,this._editorWidth=n.width,!0}addWidget(e){const t=Object(b["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()}setWidgetPosition(e,t){const n=this._widgets[e.getId()];return n.preference!==t&&(n.preference=t,this.setShouldRender(),!0)}removeWidget(e){const t=e.getId();if(this._widgets.hasOwnProperty(t)){const e=this._widgets[t],n=e.domNode.domNode;delete this._widgets[t],n.parentNode.removeChild(n),this.setShouldRender()}}_renderWidget(e){const 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){const e=t.domNode.clientHeight;t.setTop(this._editorHeight-e-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()}prepareRender(e){}render(e){this._domNode.setWidth(this._editorWidth);const t=Object.keys(this._widgets);for(let n=0,i=t.length;n<i;n++){const e=t[n];this._renderWidget(this._widgets[e])}}}var en=n("ceb8");class tn{constructor(e,t){const n=e.options;this.lineHeight=n.get(57),this.pixelRatio=n.get(127),this.overviewRulerLanes=n.get(72),this.renderBorder=n.get(71);const i=t.getColor(Pe["m"]);this.borderColor=i?i.toString():null,this.hideCursor=n.get(49);const r=t.getColor(Pe["g"]);this.cursorColor=r?r.transparent(.7).toString():null,this.themeType=t.type;const o=n.get(63),s=o.enabled,a=o.side,l=s?t.getColor(Pe["l"])||Dt["F"].getDefaultBackground():null;this.backgroundColor=null===l||"left"===a?null:en["a"].Format.CSS.formatHex(l);const c=n.get(129),u=c.overviewRuler;this.top=u.top,this.right=u.right,this.domWidth=u.width,this.domHeight=u.height,0===this.overviewRulerLanes?(this.canvasWidth=0,this.canvasHeight=0):(this.canvasWidth=this.domWidth*this.pixelRatio|0,this.canvasHeight=this.domHeight*this.pixelRatio|0);const[h,d]=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes);this.x=h,this.w=d}_initLanes(e,t,n){const i=t-e;if(n>=3){const t=Math.floor(i/3),n=Math.floor(i/3),r=i-t-n,o=e,s=o+t,a=o+t+r;return[[0,o,s,o,a,o,s,o],[0,t,r,t+r,n,t+r+n,r+n,t+r+n]]}if(2===n){const t=Math.floor(i/2),n=i-t,r=e,o=r+t;return[[0,r,r,r,o,r,r,r],[0,t,t,t,n,t+n,t+n,t+n]]}{const t=e,n=i;return[[0,t,t,t,t,t,t,t],[0,n,n,n,n,n,n,n]]}}equals(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}}class nn extends A{constructor(e){super(e),this._domNode=Object(b["b"])(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Dt["F"].onDidChange(e=>{e.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(e){const t=new tn(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)}onConfigurationChanged(e){return this._updateSettings(!1)}onCursorStateChanged(e){this._cursorPositions=[];for(let t=0,n=e.selections.length;t<n;t++)this._cursorPositions[t]=e.selections[t].getPosition();return this._cursorPositions.sort(oe["a"].compare),!0}onDecorationsChanged(e){return!!e.affectsOverviewRuler}onFlushed(e){return!0}onScrollChanged(e){return e.scrollHeightChanged}onZonesChanged(e){return!0}onThemeChanged(e){return this._context.model.invalidateOverviewRulerColorCache(),this._updateSettings(!1)}getDomNode(){return this._domNode.domNode}prepareRender(e){}render(e){this._render()}_render(){if(0===this._settings.overviewRulerLanes)return void this._domNode.setBackgroundColor(this._settings.backgroundColor?this._settings.backgroundColor:"");const e=this._settings.canvasWidth,t=this._settings.canvasHeight,n=this._settings.lineHeight,i=this._context.viewLayout,r=this._context.viewLayout.getScrollHeight(),o=t/r,s=this._context.model.getAllOverviewRulerDecorations(this._context.theme),a=6*this._settings.pixelRatio|0,l=a/2|0,c=this._domNode.domNode.getContext("2d");null===this._settings.backgroundColor?c.clearRect(0,0,e,t):(c.fillStyle=this._settings.backgroundColor,c.fillRect(0,0,e,t));const u=this._settings.x,h=this._settings.w,d=Object.keys(s);d.sort();for(let f=0,p=d.length;f<p;f++){const e=d[f],r=s[e];c.fillStyle=e;let p=0,g=0,m=0;for(let s=0,d=r.length;s<d;s++){const e=r[3*s],d=r[3*s+1],f=r[3*s+2];let v=i.getVerticalOffsetForLineNumber(d)*o|0,b=(i.getVerticalOffsetForLineNumber(f)+n)*o|0;const y=b-v;if(y<a){let e=(v+b)/2|0;e<l?e=l:e+l>t&&(e=t-l),v=e-l,b=e+l}v>m+1||e!==p?(0!==s&&c.fillRect(u[p],g,h[p],m-g),p=e,g=v,m=b):b>m&&(m=b)}c.fillRect(u[p],g,h[p],m-g)}if(!this._settings.hideCursor&&this._settings.cursorColor){const e=2*this._settings.pixelRatio|0,n=e/2|0,r=this._settings.x[7],s=this._settings.w[7];c.fillStyle=this._settings.cursorColor;let a=-100,l=-100;for(let u=0,h=this._cursorPositions.length;u<h;u++){const h=this._cursorPositions[u];let d=i.getVerticalOffsetForLineNumber(h.lineNumber)*o|0;d<n?d=n:d+n>t&&(d=t-n);const f=d-n,p=f+e;f>l+1?(0!==u&&c.fillRect(r,a,s,l-a),a=f,l=p):p>l&&(l=p)}c.fillRect(r,a,s,l-a)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(c.beginPath(),c.lineWidth=1,c.strokeStyle=this._settings.borderColor,c.moveTo(0,0),c.lineTo(0,t),c.stroke(),c.moveTo(0,0),c.lineTo(e,0),c.stroke())}}var rn=n("32f2");class on extends T{constructor(e,t){super(),this._context=e;const n=this._context.configuration.options;this._domNode=Object(b["b"])(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new rn["b"](e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(n.get(57)),this._zoneManager.setPixelRatio(n.get(127)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return e.hasChanged(57)&&(this._zoneManager.setLineHeight(t.get(57)),this._render()),e.hasChanged(127)&&(this._zoneManager.setPixelRatio(t.get(127)),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}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,t=this._zoneManager.setDOMHeight(e.height)||t,t&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;const e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),n=this._zoneManager.resolveColorZones(),i=this._zoneManager.getId2Color(),r=this._domNode.domNode.getContext("2d");return r.clearRect(0,0,e,t),n.length>0&&this._renderOneLane(r,n,i,e),!0}_renderOneLane(e,t,n,i){let r=0,o=0,s=0;for(const a of t){const t=a.colorId,l=a.from,c=a.to;t!==r?(e.fillRect(0,o,i,s-o),r=t,e.fillStyle=n[r],o=l,s=c):s>=l?s=Math.max(s,c):(e.fillRect(0,o,i,s-o),o=l,s=c)}e.fillRect(0,o,i,s-o)}}n("ef37");class sn extends A{constructor(e){super(e),this.domNode=Object(b["b"])(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const t=this._context.configuration.options;this._rulers=t.get(90),this._typicalHalfwidthCharacterWidth=t.get(41).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._rulers=t.get(90),this._typicalHalfwidthCharacterWidth=t.get(41).typicalHalfwidthCharacterWidth,!0}onScrollChanged(e){return e.scrollHeightChanged}prepareRender(e){}_ensureRulersCount(){const e=this._renderedRulers.length,t=this._rulers.length;if(e===t)return;if(e<t){const{tabSize:n}=this._context.model.getTextModelOptions(),i=n;let r=t-e;while(r>0){const e=Object(b["b"])(document.createElement("div"));e.setClassName("view-ruler"),e.setWidth(i),this.domNode.appendChild(e),this._renderedRulers.push(e),r--}return}let n=e-t;while(n>0){const e=this._renderedRulers.pop();this.domNode.removeChild(e),n--}}render(e){this._ensureRulersCount();for(let t=0,n=this._rulers.length;t<n;t++){const n=this._renderedRulers[t],i=this._rulers[t];n.setBoxShadow(i.color?`1px 0 0 0 ${i.color} inset`:""),n.setHeight(Math.min(e.scrollHeight,1e6)),n.setLeft(i.column*this._typicalHalfwidthCharacterWidth)}}}Object(je["f"])((e,t)=>{const n=e.getColor(Pe["n"]);n&&t.addRule(`.monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ${n} inset; }`)});n("d8c3");class an extends A{constructor(e){super(e),this._scrollTop=0,this._width=0,this._updateWidth(),this._shouldShow=!1;const t=this._context.configuration.options,n=t.get(91);this._useShadows=n.useShadows,this._domNode=Object(b["b"])(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true")}dispose(){super.dispose()}_updateShouldShow(){const e=this._useShadows&&this._scrollTop>0;return this._shouldShow!==e&&(this._shouldShow=e,!0)}getDomNode(){return this._domNode}_updateWidth(){const e=this._context.configuration.options,t=e.get(129);0===t.minimap.renderMinimap||t.minimap.minimapWidth>0&&0===t.minimap.minimapLeft?this._width=t.width:this._width=t.width-t.minimap.minimapWidth-t.verticalScrollbarWidth}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(91);return this._useShadows=n.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()}prepareRender(e){}render(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}Object(je["f"])((e,t)=>{const n=e.getColor(Tt["yc"]);n&&t.addRule(`.monaco-editor .scroll-decoration { box-shadow: ${n} 0 6px 6px -6px inset; }`)});n("782d");class ln{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class cn{constructor(e,t){this.lineNumber=e,this.ranges=t}}function un(e){return new ln(e)}function hn(e){return new cn(e.lineNumber,e.ranges.map(un))}class dn extends Ne{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;const t=this._context.configuration.options;this._lineHeight=t.get(57),this._roundedSelection=t.get(89),this._typicalHalfwidthCharacterWidth=t.get(41).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){const t=this._context.configuration.options;return this._lineHeight=t.get(57),this._roundedSelection=t.get(89),this._typicalHalfwidthCharacterWidth=t.get(41).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n.ranges.length>1)return!0}return!1}_enrichVisibleRangesWithStyle(e,t,n){const i=this._typicalHalfwidthCharacterWidth/4;let r=null,o=null;if(n&&n.length>0&&t.length>0){const i=t[0].lineNumber;if(i===e.startLineNumber)for(let e=0;!r&&e<n.length;e++)n[e].lineNumber===i&&(r=n[e].ranges[0]);const s=t[t.length-1].lineNumber;if(s===e.endLineNumber)for(let e=n.length-1;!o&&e>=0;e--)n[e].lineNumber===s&&(o=n[e].ranges[0]);r&&!r.startStyle&&(r=null),o&&!o.startStyle&&(o=null)}for(let s=0,a=t.length;s<a;s++){const e=t[s].ranges[0],n=e.left,l=e.left+e.width,c={top:0,bottom:0},u={top:0,bottom:0};if(s>0){const e=t[s-1].ranges[0].left,r=t[s-1].ranges[0].left+t[s-1].ranges[0].width;fn(n-e)<i?c.top=2:n>e&&(c.top=1),fn(l-r)<i?u.top=2:e<l&&l<r&&(u.top=1)}else r&&(c.top=r.startStyle.top,u.top=r.endStyle.top);if(s+1<a){const e=t[s+1].ranges[0].left,r=t[s+1].ranges[0].left+t[s+1].ranges[0].width;fn(n-e)<i?c.bottom=2:e<n&&n<r&&(c.bottom=1),fn(l-r)<i?u.bottom=2:l<r&&(u.bottom=1)}else o&&(c.bottom=o.startStyle.bottom,u.bottom=o.endStyle.bottom);e.startStyle=c,e.endStyle=u}}_getVisibleRangesWithStyle(e,t,n){const i=t.linesVisibleRangesForRange(e,!0)||[],r=i.map(hn),o=this._visibleRangesHaveGaps(r);return!o&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(t.visibleRange,r,n),r}_createSelectionPiece(e,t,n,i,r){return'<div class="cslr '+n+'" style="top:'+e.toString()+"px;left:"+i.toString()+"px;width:"+r.toString()+"px;height:"+t+'px;"></div>'}_actualRenderOneSelection(e,t,n,i){if(0===i.length)return;const r=!!i[0].ranges[0].startStyle,o=this._lineHeight.toString(),s=(this._lineHeight-1).toString(),a=i[0].lineNumber,l=i[i.length-1].lineNumber;for(let c=0,u=i.length;c<u;c++){const u=i[c],h=u.lineNumber,d=h-t,f=n&&(h===l||h===a)?s:o,p=n&&h===a?1:0;let g="",m="";for(let e=0,t=u.ranges.length;e<t;e++){const t=u.ranges[e];if(r){const e=t.startStyle,n=t.endStyle;if(1===e.top||1===e.bottom){g+=this._createSelectionPiece(p,f,dn.SELECTION_CLASS_NAME,t.left-dn.ROUNDED_PIECE_WIDTH,dn.ROUNDED_PIECE_WIDTH);let n=dn.EDITOR_BACKGROUND_CLASS_NAME;1===e.top&&(n+=" "+dn.SELECTION_TOP_RIGHT),1===e.bottom&&(n+=" "+dn.SELECTION_BOTTOM_RIGHT),g+=this._createSelectionPiece(p,f,n,t.left-dn.ROUNDED_PIECE_WIDTH,dn.ROUNDED_PIECE_WIDTH)}if(1===n.top||1===n.bottom){g+=this._createSelectionPiece(p,f,dn.SELECTION_CLASS_NAME,t.left+t.width,dn.ROUNDED_PIECE_WIDTH);let e=dn.EDITOR_BACKGROUND_CLASS_NAME;1===n.top&&(e+=" "+dn.SELECTION_TOP_LEFT),1===n.bottom&&(e+=" "+dn.SELECTION_BOTTOM_LEFT),g+=this._createSelectionPiece(p,f,e,t.left+t.width,dn.ROUNDED_PIECE_WIDTH)}}let n=dn.SELECTION_CLASS_NAME;if(r){const e=t.startStyle,i=t.endStyle;0===e.top&&(n+=" "+dn.SELECTION_TOP_LEFT),0===e.bottom&&(n+=" "+dn.SELECTION_BOTTOM_LEFT),0===i.top&&(n+=" "+dn.SELECTION_TOP_RIGHT),0===i.bottom&&(n+=" "+dn.SELECTION_BOTTOM_RIGHT)}m+=this._createSelectionPiece(p,f,n,t.left,t.width)}e[d][0]+=g,e[d][1]+=m}}prepareRender(e){const t=[],n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber;for(let o=n;o<=i;o++){const e=o-n;t[e]=["",""]}const r=[];for(let o=0,s=this._selections.length;o<s;o++){const i=this._selections[o];if(i.isEmpty()){r[o]=null;continue}const s=this._getVisibleRangesWithStyle(i,e,this._previousFrameVisibleRangesWithStyle[o]);r[o]=s,this._actualRenderOneSelection(t,n,this._selections.length>1,s)}this._previousFrameVisibleRangesWithStyle=r,this._renderResult=t.map(([e,t])=>e+t)}render(e,t){if(!this._renderResult)return"";const n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]}}function fn(e){return e<0?-e:e}dn.SELECTION_CLASS_NAME="selected-text",dn.SELECTION_TOP_LEFT="top-left-radius",dn.SELECTION_BOTTOM_LEFT="bottom-left-radius",dn.SELECTION_TOP_RIGHT="top-right-radius",dn.SELECTION_BOTTOM_RIGHT="bottom-right-radius",dn.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",dn.ROUNDED_PIECE_WIDTH=10,Object(je["f"])((e,t)=>{const n=e.getColor(Tt["R"]);n&&t.addRule(`.monaco-editor .focused .selected-text { background-color: ${n}; }`);const i=e.getColor(Tt["J"]);i&&t.addRule(`.monaco-editor .selected-text { background-color: ${i}; }`);const r=e.getColor(Tt["S"]);r&&!r.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${r}; }`)});n("d93b");class pn{constructor(e,t,n,i,r,o){this.top=e,this.left=t,this.width=n,this.height=i,this.textContent=r,this.textContentClassName=o}}class gn{constructor(e){this._context=e;const t=this._context.configuration.options,n=t.get(41);this._cursorStyle=t.get(22),this._lineHeight=t.get(57),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(25),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(b["b"])(document.createElement("div")),this._domNode.setClassName("cursor "+We["a"]),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),p["a"].applyFontInfo(this._domNode,n),this._domNode.setDisplay("none"),this._position=new oe["a"](1,1),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(41);return this._cursorStyle=t.get(22),this._lineHeight=t.get(57),this._typicalHalfwidthCharacterWidth=n.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(25),this._typicalHalfwidthCharacterWidth),p["a"].applyFontInfo(this._domNode,n),!0}onCursorPositionChanged(e){return this._position=e,!0}_prepareRender(e){let t="";if(this._cursorStyle===$["i"].Line||this._cursorStyle===$["i"].LineThin){const n=e.visibleRangeForPosition(this._position);if(!n||n.outsideRenderedLine)return null;let i;if(this._cursorStyle===$["i"].Line){if(i=c["u"](this._lineCursorWidth>0?this._lineCursorWidth:2),i>2){const e=this._context.model.getLineContent(this._position.lineNumber),n=Te["L"](e,this._position.column-1);t=e.substr(this._position.column-1,n)}}else i=c["u"](1);let r=n.left;i>=2&&r>=1&&(r-=1);const o=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new pn(o,r,i,this._lineHeight,t,"")}const n=this._context.model.getLineContent(this._position.lineNumber),i=Te["L"](n,this._position.column-1),r=e.linesVisibleRangesForRange(new se["a"](this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+i),!1);if(!r||0===r.length)return null;const o=r[0];if(o.outsideRenderedLine||0===o.ranges.length)return null;const s=o.ranges[0],a=s.width<1?this._typicalHalfwidthCharacterWidth:s.width;let l="";if(this._cursorStyle===$["i"].Block){const e=this._context.model.getViewLineData(this._position.lineNumber);t=n.substr(this._position.column-1,i);const r=e.tokens.findTokenIndexAtOffset(this._position.column-1);l=e.tokens.getClassName(r)}let u=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,h=this._lineHeight;return this._cursorStyle!==$["i"].Underline&&this._cursorStyle!==$["i"].UnderlineThin||(u+=this._lineHeight-2,h=2),new pn(u,s.left,a,h,t,l)}prepareRender(e){this._renderData=this._prepareRender(e)}render(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${We["a"]} ${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)}}class mn extends A{constructor(e){super(e);const t=this._context.configuration.options;this._readOnly=t.get(79),this._cursorBlinking=t.get(20),this._cursorStyle=t.get(22),this._cursorSmoothCaretAnimation=t.get(21),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new gn(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=Object(b["b"])(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new C["g"],this._cursorFlatBlinkInterval=new C["c"],this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){const t=this._context.configuration.options;this._readOnly=t.get(79),this._cursorBlinking=t.get(20),this._cursorStyle=t.get(22),this._cursorSmoothCaretAnimation=t.get(21),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let n=0,i=this._secondaryCursors.length;n<i;n++)this._secondaryCursors[n].onConfigurationChanged(e);return!0}_onCursorPositionChanged(e,t){if(this._primaryCursor.onCursorPositionChanged(e),this._updateBlinking(),this._secondaryCursors.length<t.length){const e=t.length-this._secondaryCursors.length;for(let t=0;t<e;t++){const e=new gn(this._context);this._domNode.domNode.insertBefore(e.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(e)}}else if(this._secondaryCursors.length>t.length){const e=this._secondaryCursors.length-t.length;for(let t=0;t<e;t++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let n=0;n<t.length;n++)this._secondaryCursors[n].onCursorPositionChanged(t[n])}onCursorStateChanged(e){const t=[];for(let i=0,r=e.selections.length;i<r;i++)t[i]=e.selections[i].getPosition();this._onCursorPositionChanged(t[0],t.slice(1));const n=e.selections[0].isEmpty();return this._selectionIsEmpty!==n&&(this._selectionIsEmpty=n,this._updateDomClassName()),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onFocusChanged(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onTokensChanged(e){const t=t=>{for(let n=0,i=e.ranges.length;n<i;n++)if(e.ranges[n].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[n].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(const n of this._secondaryCursors)if(t(n.getPosition()))return!0;return!1}onZonesChanged(e){return!0}_getCursorBlinking(){return this._isComposingInput?0:this._editorHasFocus?this._readOnly?5:this._cursorBlinking:0}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();const e=this._getCursorBlinking(),t=0===e,n=5===e;t?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),t||n||(1===e?this._cursorFlatBlinkInterval.cancelAndSet(()=>{this._isVisible?this._hide():this._show()},mn.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},mn.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(this._selectionIsEmpty||(e+=" has-selection"),this._cursorStyle){case $["i"].Line:e+=" cursor-line-style";break;case $["i"].Block:e+=" cursor-block-style";break;case $["i"].Underline:e+=" cursor-underline-style";break;case $["i"].LineThin:e+=" cursor-line-thin-style";break;case $["i"].BlockOutline:e+=" cursor-block-outline-style";break;case $["i"].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}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1}prepareRender(e){this._primaryCursor.prepareRender(e);for(let t=0,n=this._secondaryCursors.length;t<n;t++)this._secondaryCursors[t].prepareRender(e)}render(e){let t=[],n=0;const i=this._primaryCursor.render(e);i&&(t[n++]=i);for(let r=0,o=this._secondaryCursors.length;r<o;r++){const i=this._secondaryCursors[r].render(e);i&&(t[n++]=i)}this._renderData=t}getLastRenderData(){return this._renderData}}mn.BLINK_INTERVAL=500,Object(je["f"])((e,t)=>{const n=e.getColor(Pe["g"]);if(n){let i=e.getColor(Pe["f"]);i||(i=n.opposite()),t.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${n}; border-color: ${n}; color: ${i}; }`),"hc"===e.type&&t.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${i}; border-right: 1px solid ${i}; }`)}});const vn=()=>{throw new Error("Invalid change accessor")};class bn extends A{constructor(e){super(e);const t=this._context.configuration.options,n=t.get(129);this._lineHeight=t.get(57),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,this.domNode=Object(b["b"])(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=Object(b["b"])(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const e=this._context.viewLayout.getWhitespaces(),t=new Map;for(const i of e)t.set(i.id,i);let n=!1;return this._context.model.changeWhitespace(e=>{const i=Object.keys(this._zones);for(let r=0,o=i.length;r<o;r++){const o=i[r],s=this._zones[o],a=this._computeWhitespaceProps(s.delegate),l=t.get(o);!l||l.afterLineNumber===a.afterViewLineNumber&&l.height===a.heightInPx||(e.changeOneWhitespace(o,a.afterViewLineNumber,a.heightInPx),this._safeCallOnComputedHeight(s.delegate,a.heightInPx),n=!0)}}),n}onConfigurationChanged(e){const t=this._context.configuration.options,n=t.get(129);return this._lineHeight=t.get(57),this._contentWidth=n.contentWidth,this._contentLeft=n.contentLeft,e.hasChanged(57)&&this._recomputeWhitespacesProps(),!0}onLineMappingChanged(e){return this._recomputeWhitespacesProps()}onLinesDeleted(e){return!0}onScrollChanged(e){return e.scrollTopChanged||e.scrollWidthChanged}onZonesChanged(e){return!0}onLinesInserted(e){return!0}_getZoneOrdinal(e){return"undefined"!==typeof e.afterColumn?e.afterColumn:1e4}_computeWhitespaceProps(e){if(0===e.afterLineNumber)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};let t,n;if("undefined"!==typeof e.afterColumn)t=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{const n=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new oe["a"](n,this._context.model.getModelLineMaxColumn(n))}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});const 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)}}changeViewZones(e){let t=!1;return this._context.model.changeWhitespace(n=>{const i={addZone:e=>(t=!0,this._addZone(n,e)),removeZone:e=>{e&&(t=this._removeZone(n,e)||t)},layoutZone:e=>{e&&(t=this._layoutZone(n,e)||t)}};yn(e,i),i.addZone=vn,i.removeZone=vn,i.layoutZone=vn}),t}_addZone(e,t){const n=this._computeWhitespaceProps(t),i=e.insertWhitespace(n.afterViewLineNumber,this._getZoneOrdinal(t),n.heightInPx,n.minWidthInPx),r={whitespaceId:i,delegate:t,isVisible:!1,domNode:Object(b["b"])(t.domNode),marginDomNode:t.marginDomNode?Object(b["b"])(t.marginDomNode):null};return this._safeCallOnComputedHeight(r.delegate,n.heightInPx),r.domNode.setPosition("absolute"),r.domNode.domNode.style.width="100%",r.domNode.setDisplay("none"),r.domNode.setAttribute("monaco-view-zone",r.whitespaceId),this.domNode.appendChild(r.domNode),r.marginDomNode&&(r.marginDomNode.setPosition("absolute"),r.marginDomNode.domNode.style.width="100%",r.marginDomNode.setDisplay("none"),r.marginDomNode.setAttribute("monaco-view-zone",r.whitespaceId),this.marginDomNode.appendChild(r.marginDomNode)),this._zones[r.whitespaceId]=r,this.setShouldRender(),r.whitespaceId}_removeZone(e,t){if(this._zones.hasOwnProperty(t)){const 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}_layoutZone(e,t){if(this._zones.hasOwnProperty(t)){const n=this._zones[t],i=this._computeWhitespaceProps(n.delegate);return e.changeOneWhitespace(n.whitespaceId,i.afterViewLineNumber,i.heightInPx),this._safeCallOnComputedHeight(n.delegate,i.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(e){if(this._zones.hasOwnProperty(e)){const t=this._zones[e];return Boolean(t.delegate.suppressMouseDown)}return!1}_heightInPixels(e){return"number"===typeof e.heightInPx?e.heightInPx:"number"===typeof e.heightInLines?this._lineHeight*e.heightInLines:this._lineHeight}_minWidthInPixels(e){return"number"===typeof e.minWidthInPx?e.minWidthInPx:0}_safeCallOnComputedHeight(e,t){if("function"===typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(n){Object(u["e"])(n)}}_safeCallOnDomNodeTop(e,t){if("function"===typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(n){Object(u["e"])(n)}}prepareRender(e){}render(e){const t=e.viewportData.whitespaceViewportData,n={};let i=!1;for(let o=0,s=t.length;o<s;o++)n[t[o].id]=t[o],i=!0;const r=Object.keys(this._zones);for(let o=0,s=r.length;o<s;o++){const t=r[o],i=this._zones[t];let s=0,a=0,l="none";n.hasOwnProperty(t)?(s=n[t].verticalOffset-e.bigNumbersDelta,a=n[t].height,l="block",i.isVisible||(i.domNode.setAttribute("monaco-visible-view-zone","true"),i.isVisible=!0),this._safeCallOnDomNodeTop(i.delegate,e.getScrolledTopFromAbsoluteTop(n[t].verticalOffset))):(i.isVisible&&(i.domNode.removeAttribute("monaco-visible-view-zone"),i.isVisible=!1),this._safeCallOnDomNodeTop(i.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))),i.domNode.setTop(s),i.domNode.setHeight(a),i.domNode.setDisplay(l),i.marginDomNode&&(i.marginDomNode.setTop(s),i.marginDomNode.setHeight(a),i.marginDomNode.setDisplay(l))}i&&(this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth)),this.marginDomNode.setWidth(this._contentLeft))}}function yn(e,t){try{return e(t)}catch(n){Object(u["e"])(n)}}class _n{constructor(e){this._theme=e}get type(){return this._theme.type}update(e){this._theme=e}getColor(e){return this._theme.getColor(e)}}class wn{constructor(e,t,n){this.configuration=e,this.theme=new _n(t),this.model=n,this.viewLayout=n.viewLayout}addEventHandler(e){this.model.addViewEventHandler(e)}removeEventHandler(e){this.model.removeViewEventHandler(e)}}class Cn{constructor(e,t,n,i){this.selections=e,this.startLineNumber=0|t.startLineNumber,this.endLineNumber=0|t.endLineNumber,this.relativeVerticalOffset=t.relativeVerticalOffset,this.bigNumbersDelta=0|t.bigNumbersDelta,this.whitespaceViewportData=n,this._model=i,this.visibleRange=new se["a"](t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}getViewLineRenderingData(e){return this._model.getViewLineRenderingData(this.visibleRange,e)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}class Sn extends T{constructor(e,t,n,i,r,o){super(),this._selections=[new v["a"](1,1,1,1)],this._renderAnimationFrame=null;const s=new Ge(t,i,r,e);this._context=new wn(t,n.getColorTheme(),i),this._configPixelRatio=this._context.configuration.options.get(127),this._context.addEventHandler(this),this._register(n.onDidColorThemeChange(e=>{this._context.theme.update(e),this._context.model.onDidColorThemeChange(),this.render(!0,!1)})),this._viewParts=[],this._textAreaHandler=new He(this._context,s,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=Object(b["b"])(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=Object(b["b"])(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=Object(b["b"])(document.createElement("div")),N.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new vt(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new Ot(this._context,this._linesContent),this._viewZones=new bn(this._context),this._viewParts.push(this._viewZones);const a=new nn(this._context);this._viewParts.push(a);const l=new an(this._context);this._viewParts.push(l);const c=new rt(this._context);this._viewParts.push(c),c.addDynamicOverlay(new ft(this._context)),c.addDynamicOverlay(new dn(this._context)),c.addDynamicOverlay(new wt(this._context)),c.addDynamicOverlay(new gt(this._context));const u=new ot(this._context);this._viewParts.push(u),u.addDynamicOverlay(new pt(this._context)),u.addDynamicOverlay(new _t(this._context)),u.addDynamicOverlay(new Lt(this._context)),u.addDynamicOverlay(new kt(this._context)),u.addDynamicOverlay(new Re(this._context));const h=new Fe(this._context);h.getDomNode().appendChild(this._viewZones.marginDomNode),h.getDomNode().appendChild(u.getDomNode()),this._viewParts.push(h),this._contentWidgets=new at(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new mn(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new Jt(this._context),this._viewParts.push(this._overlayWidgets);const d=new sn(this._context);this._viewParts.push(d);const f=new Xt(this._context);if(this._viewParts.push(f),a){const e=this._scrollbar.getOverviewRulerLayoutInfo();e.parent.insertBefore(a.getDomNode(),e.insertBefore)}this._linesContent.appendChild(c.getDomNode()),this._linesContent.appendChild(d.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(h.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(l.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(f.getDomNode()),this.domNode.appendChild(this._overflowGuardContainer),o?o.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode):this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this._applyLayout(),this._pointerHandler=this._register(new Me(this._context,s,this._createPointerHandlerHelper()))}_flushAccumulatedAndRenderNow(){this._renderNow()}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:e=>{this._textAreaHandler.textArea.domNode.dispatchEvent(e)},getLastRenderData:()=>{const e=this._viewCursors.getLastRenderData()||[],t=this._textAreaHandler.getLastRenderData();return new he(e,t)},shouldSuppressMouseDownOnViewZone:e=>this._viewZones.shouldSuppressMouseDownOnViewZone(e),shouldSuppressMouseDownOnWidget:e=>this._contentWidgets.shouldSuppressMouseDownOnWidget(e),getPositionFromDOMInfo:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(e,t)),visibleRangeForPosition:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new oe["a"](e,t))),getLineWidth:e=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(e))}}_createTextAreaHandlerHelper(){return{visibleRangeForPositionRelativeToEditor:(e,t)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new oe["a"](e,t)))}}_applyLayout(){const e=this._context.configuration.options,t=e.get(129);this.domNode.setWidth(t.width),this.domNode.setHeight(t.height),this._overflowGuardContainer.setWidth(t.width),this._overflowGuardContainer.setHeight(t.height),this._linesContent.setWidth(1e6),this._linesContent.setHeight(1e6)}_getEditorClassName(){const e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(126)+" "+Object(je["e"])(this._context.theme.type)+e}handleEvents(e){super.handleEvents(e),this._scheduleRender()}onConfigurationChanged(e){return this._configPixelRatio=this._context.configuration.options.get(127),this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(e){return this._selections=e.selections,!1}onFocusChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(e){return this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const e of this._viewParts)e.dispose();super.dispose()}_scheduleRender(){null===this._renderAnimationFrame&&(this._renderAnimationFrame=c["T"](this._onRenderScheduled.bind(this),100))}_onRenderScheduled(){this._renderAnimationFrame=null,this._flushAccumulatedAndRenderNow()}_renderNow(){xn(()=>this._actualRender())}_getViewPartsToRender(){let e=[],t=0;for(const n of this._viewParts)n.shouldRender()&&(e[t++]=n);return e}_actualRender(){if(!c["N"](this.domNode.domNode))return;let e=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&0===e.length)return;const t=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);const n=new Cn(this._selections,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());const i=new j(this._context.viewLayout,n,this._viewLines);for(const r of e)r.prepareRender(i);for(const r of e)r.render(i),r.onDidRender();Math.abs(m["a"]()-this._configPixelRatio)>.001&&this._context.configuration.updatePixelRatio()}delegateVerticalScrollbarMouseDown(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)}restoreState(e){this._context.model.setScrollPosition({scrollTop:e.scrollTop},1),this._context.model.tokenizeViewport(),this._renderNow(),this._viewLines.updateLineWidths(),this._context.model.setScrollPosition({scrollLeft:e.scrollLeft},1)}getOffsetForColumn(e,t){const n=this._context.model.validateModelPosition({lineNumber:e,column:t}),i=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(n);this._flushAccumulatedAndRenderNow();const r=this._viewLines.visibleRangeForPosition(new oe["a"](i.lineNumber,i.column));return r?r.left:-1}getTargetAtClientPoint(e,t){const n=this._pointerHandler.getTargetAtClientPoint(e,t);return n?Ye.convertViewToModelMouseTarget(n,this._context.model.coordinatesConverter):null}createOverviewRuler(e){return new on(this._context,e)}change(e){this._viewZones.changeViewZones(e),this._scheduleRender()}render(e,t){if(t){this._viewLines.forceShouldRender();for(const e of this._viewParts)e.forceShouldRender()}e?this._flushAccumulatedAndRenderNow():this._scheduleRender()}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(e){this._textAreaHandler.setAriaOptions(e)}addContentWidget(e){this._contentWidgets.addWidget(e.widget),this.layoutContentWidget(e),this._scheduleRender()}layoutContentWidget(e){let t=e.position&&e.position.range||null;if(null===t){const n=e.position?e.position.position:null;null!==n&&(t=new se["a"](n.lineNumber,n.column,n.lineNumber,n.column))}const n=e.position?e.position.preference:null;this._contentWidgets.setWidgetPosition(e.widget,t,n),this._scheduleRender()}removeContentWidget(e){this._contentWidgets.removeWidget(e.widget),this._scheduleRender()}addOverlayWidget(e){this._overlayWidgets.addWidget(e.widget),this.layoutOverlayWidget(e),this._scheduleRender()}layoutOverlayWidget(e){const t=e.position?e.position.preference:null,n=this._overlayWidgets.setWidgetPosition(e.widget,t);n&&this._scheduleRender()}removeOverlayWidget(e){this._overlayWidgets.removeWidget(e.widget),this._scheduleRender()}}function xn(e){try{return e()}catch(t){Object(u["e"])(t)}}class On{constructor(e){this._selTrackedRange=null,this._trackSelection=!0,this._setState(e,new ae["f"](new se["a"](1,1,1,1),0,new oe["a"](1,1),0),new ae["f"](new se["a"](1,1,1,1),0,new oe["a"](1,1),0))}dispose(e){this._removeTrackedRange(e)}startTrackingSelection(e){this._trackSelection=!0,this._updateTrackedRange(e)}stopTrackingSelection(e){this._trackSelection=!1,this._removeTrackedRange(e)}_updateTrackedRange(e){this._trackSelection&&(this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new ae["d"](this.modelState,this.viewState)}readSelectionFromMarkers(e){const t=e.model._getTrackedRange(this._selTrackedRange);return 0===this.modelState.selection.getDirection()?new v["a"](t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new v["a"](t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}ensureValidState(e){this._setState(e,this.modelState,this.viewState)}setState(e,t,n){this._setState(e,t,n)}static _validatePositionWithCache(e,t,n,i){return t.equals(n)?i:e.normalizePosition(t,2)}static _validateViewState(e,t){const n=t.position,i=t.selectionStart.getStartPosition(),r=t.selectionStart.getEndPosition(),o=e.normalizePosition(n,2),s=this._validatePositionWithCache(e,i,n,o),a=this._validatePositionWithCache(e,r,i,s);return n.equals(o)&&i.equals(s)&&r.equals(a)?t:new ae["f"](se["a"].fromPositions(s,a),t.selectionStartLeftoverVisibleColumns+i.column-s.column,o,t.leftoverVisibleColumns+n.column-o.column)}_setState(e,t,n){if(n&&(n=On._validateViewState(e.viewModel,n)),t){const n=e.model.validateRange(t.selectionStart),i=t.selectionStart.equalsRange(n)?t.selectionStartLeftoverVisibleColumns:0,r=e.model.validatePosition(t.position),o=t.position.equals(r)?t.leftoverVisibleColumns:0;t=new ae["f"](n,i,r,o)}else{if(!n)return;const i=e.model.validateRange(e.coordinatesConverter.convertViewRangeToModelRange(n.selectionStart)),r=e.model.validatePosition(e.coordinatesConverter.convertViewPositionToModelPosition(n.position));t=new ae["f"](i,n.selectionStartLeftoverVisibleColumns,r,n.leftoverVisibleColumns)}if(n){const i=e.coordinatesConverter.validateViewRange(n.selectionStart,t.selectionStart),r=e.coordinatesConverter.validateViewPosition(n.position,t.position);n=new ae["f"](i,t.selectionStartLeftoverVisibleColumns,r,t.leftoverVisibleColumns)}else{const i=e.coordinatesConverter.convertModelPositionToViewPosition(new oe["a"](t.selectionStart.startLineNumber,t.selectionStart.startColumn)),r=e.coordinatesConverter.convertModelPositionToViewPosition(new oe["a"](t.selectionStart.endLineNumber,t.selectionStart.endColumn)),o=new se["a"](i.lineNumber,i.column,r.lineNumber,r.column),s=e.coordinatesConverter.convertModelPositionToViewPosition(t.position);n=new ae["f"](o,t.selectionStartLeftoverVisibleColumns,s,t.leftoverVisibleColumns)}this.modelState=t,this.viewState=n,this._updateTrackedRange(e)}}class kn{constructor(e){this.context=e,this.primaryCursor=new On(e),this.secondaryCursors=[],this.lastAddedCursorIndex=0}dispose(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()}startTrackingSelections(){this.primaryCursor.startTrackingSelection(this.context);for(let e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].startTrackingSelection(this.context)}stopTrackingSelections(){this.primaryCursor.stopTrackingSelection(this.context);for(let e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].stopTrackingSelection(this.context)}updateContext(e){this.context=e}ensureValidState(){this.primaryCursor.ensureValidState(this.context);for(let e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].ensureValidState(this.context)}readSelectionFromMarkers(){let e=[];e[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(let t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].readSelectionFromMarkers(this.context);return e}getAll(){let e=[];e[0]=this.primaryCursor.asCursorState();for(let t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].asCursorState();return e}getViewPositions(){let e=[];e[0]=this.primaryCursor.viewState.position;for(let t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.position;return e}getTopMostViewPosition(){let e=this.primaryCursor.viewState.position;for(let t=0,n=this.secondaryCursors.length;t<n;t++){const n=this.secondaryCursors[t].viewState.position;n.isBefore(e)&&(e=n)}return e}getBottomMostViewPosition(){let e=this.primaryCursor.viewState.position;for(let t=0,n=this.secondaryCursors.length;t<n;t++){const n=this.secondaryCursors[t].viewState.position;e.isBeforeOrEqual(n)&&(e=n)}return e}getSelections(){let e=[];e[0]=this.primaryCursor.modelState.selection;for(let t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].modelState.selection;return e}getViewSelections(){let e=[];e[0]=this.primaryCursor.viewState.selection;for(let t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.selection;return e}setSelections(e){this.setStates(ae["d"].fromModelSelections(e))}getPrimaryCursor(){return this.primaryCursor.asCursorState()}setStates(e){null!==e&&(this.primaryCursor.setState(this.context,e[0].modelState,e[0].viewState),this._setSecondaryStates(e.slice(1)))}_setSecondaryStates(e){const t=this.secondaryCursors.length,n=e.length;if(t<n){let e=n-t;for(let t=0;t<e;t++)this._addSecondaryCursor()}else if(t>n){let e=t-n;for(let t=0;t<e;t++)this._removeSecondaryCursor(this.secondaryCursors.length-1)}for(let i=0;i<n;i++)this.secondaryCursors[i].setState(this.context,e[i].modelState,e[i].viewState)}killSecondaryCursors(){this._setSecondaryStates([])}_addSecondaryCursor(){this.secondaryCursors.push(new On(this.context)),this.lastAddedCursorIndex=this.secondaryCursors.length}getLastAddedCursorIndex(){return 0===this.secondaryCursors.length||0===this.lastAddedCursorIndex?0:this.lastAddedCursorIndex}_removeSecondaryCursor(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)}_getAll(){let e=[];e[0]=this.primaryCursor;for(let t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t];return e}normalize(){if(0===this.secondaryCursors.length)return;let e=this._getAll(),t=[];for(let n=0,i=e.length;n<i;n++)t.push({index:n,selection:e[n].modelState.selection});t.sort((e,t)=>e.selection.startLineNumber===t.selection.startLineNumber?e.selection.startColumn-t.selection.startColumn:e.selection.startLineNumber-t.selection.startLineNumber);for(let n=0;n<t.length-1;n++){const i=t[n],r=t[n+1],o=i.selection,s=r.selection;if(!this.context.cursorConfig.multiCursorMergeOverlapping)continue;let a;if(a=s.isEmpty()||o.isEmpty()?s.getStartPosition().isBeforeOrEqual(o.getEndPosition()):s.getStartPosition().isBefore(o.getEndPosition()),a){const o=i.index<r.index?n:n+1,s=i.index<r.index?n+1:n,a=t[s].index,l=t[o].index,c=t[s].selection,u=t[o].selection;if(!c.equalsSelection(u)){const n=c.plusRange(u),i=c.selectionStartLineNumber===c.startLineNumber&&c.selectionStartColumn===c.startColumn,r=u.selectionStartLineNumber===u.startLineNumber&&u.selectionStartColumn===u.startColumn;let s,h;a===this.lastAddedCursorIndex?(s=i,this.lastAddedCursorIndex=l):s=r,h=s?new v["a"](n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn):new v["a"](n.endLineNumber,n.endColumn,n.startLineNumber,n.startColumn),t[o].selection=h;const d=ae["d"].fromModelSelection(h);e[l].setState(this.context,d.modelState,d.viewState)}for(const e of t)e.index>a&&e.index--;e.splice(a,1),t.splice(s,1),this._removeSecondaryCursor(a-1),n--}}}}var Ln=n("b272"),En=n("191f"),Dn=n("338e");class In{constructor(){this.type=0}}class Mn{constructor(){this.type=1}}class Tn{constructor(e){this.type=2,this._source=e}hasChanged(e){return this._source.hasChanged(e)}}class An{constructor(e,t){this.type=3,this.selections=e,this.modelSelections=t}}class Nn{constructor(e){this.type=4,e?(this.affectsMinimap=e.affectsMinimap,this.affectsOverviewRuler=e.affectsOverviewRuler):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0)}}class Pn{constructor(){this.type=5}}class jn{constructor(e){this.type=6,this.isFocused=e}}class Rn{constructor(){this.type=7}}class Fn{constructor(){this.type=8}}class Bn{constructor(e,t){this.type=9,this.fromLineNumber=e,this.toLineNumber=t}}class Wn{constructor(e,t){this.type=10,this.fromLineNumber=e,this.toLineNumber=t}}class Vn{constructor(e,t){this.type=11,this.fromLineNumber=e,this.toLineNumber=t}}class zn{constructor(e,t,n,i,r,o){this.type=12,this.source=e,this.range=t,this.selections=n,this.verticalType=i,this.revealHorizontal=r,this.scrollType=o}}class Hn{constructor(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}}class Un{constructor(){this.type=14}}class qn{constructor(e){this.type=15,this.ranges=e}}class $n{constructor(){this.type=16}}class Kn{constructor(){this.type=17}}class Gn extends d["a"]{constructor(){super(),this._onEvent=this._register(new h["b"]),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(e){this._addOutgoingEvent(e),this._emitOugoingEvents()}_addOutgoingEvent(e){for(let t=0,n=this._outgoingEvents.length;t<n;t++)if(this._outgoingEvents[t].kind===e.kind)return void(this._outgoingEvents[t]=this._outgoingEvents[t].merge(e));this._outgoingEvents.push(e)}_emitOugoingEvents(){while(this._outgoingEvents.length>0){if(this._collector||this._isConsumingViewEventQueue)return;const e=this._outgoingEvents.shift();e.isNoOp()||this._onEvent.fire(e)}}addViewEventHandler(e){for(let t=0,n=this._eventHandlers.length;t<n;t++)this._eventHandlers[t]===e&&console.warn("Detected duplicate listener in ViewEventDispatcher",e);this._eventHandlers.push(e)}removeViewEventHandler(e){for(let t=0;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}}beginEmitViewEvents(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new Yn),this._collector}endEmitViewEvents(){if(this._collectorCnt--,0===this._collectorCnt){const e=this._collector.outgoingEvents,t=this._collector.viewEvents;this._collector=null;for(const n of e)this._addOutgoingEvent(n);t.length>0&&this._emitMany(t)}this._emitOugoingEvents()}emitSingleViewEvent(e){try{const t=this.beginEmitViewEvents();t.emitViewEvent(e)}finally{this.endEmitViewEvents()}}_emitMany(e){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(e):this._viewEventQueue=e,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){while(this._viewEventQueue){const e=this._viewEventQueue;this._viewEventQueue=null;const t=this._eventHandlers.slice(0);for(const n of t)n.handleEvents(e)}}}class Yn{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(e){this.viewEvents.push(e)}emitOutgoingEvent(e){this.outgoingEvents.push(e)}}class Zn{constructor(e,t,n,i){this.kind=0,this._oldContentWidth=e,this._oldContentHeight=t,this.contentWidth=n,this.contentHeight=i,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}merge(e){return 0!==e.kind?this:new Zn(this._oldContentWidth,this._oldContentHeight,e.contentWidth,e.contentHeight)}}class Xn{constructor(e,t){this.kind=1,this.oldHasFocus=e,this.hasFocus=t}isNoOp(){return this.oldHasFocus===this.hasFocus}merge(e){return 1!==e.kind?this:new Xn(this.oldHasFocus,e.hasFocus)}}class Qn{constructor(e,t,n,i,r,o,s,a){this.kind=2,this._oldScrollWidth=e,this._oldScrollLeft=t,this._oldScrollHeight=n,this._oldScrollTop=i,this.scrollWidth=r,this.scrollLeft=o,this.scrollHeight=s,this.scrollTop=a,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}merge(e){return 2!==e.kind?this:new Qn(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop)}}class Jn{constructor(){this.kind=3}isNoOp(){return!1}merge(e){return this}}class ei{constructor(e,t,n,i,r,o,s){this.kind=5,this.oldSelections=e,this.selections=t,this.oldModelVersionId=n,this.modelVersionId=i,this.source=r,this.reason=o,this.reachedMaxCursorCount=s}static _selectionsAreEqual(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;const n=e.length,i=t.length;if(n!==i)return!1;for(let r=0;r<n;r++)if(!e[r].equalsSelection(t[r]))return!1;return!0}isNoOp(){return ei._selectionsAreEqual(this.oldSelections,this.selections)&&this.oldModelVersionId===this.modelVersionId}merge(e){return 5!==e.kind?this:new ei(this.oldSelections,e.selections,this.oldModelVersionId,e.modelVersionId,e.source,e.reason,this.reachedMaxCursorCount||e.reachedMaxCursorCount)}}class ti{constructor(){this.kind=4}isNoOp(){return!1}merge(e){return this}}class ni{constructor(e,t){this.modelVersionId=e.getVersionId(),this.cursorState=t.getCursorStates()}equals(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(let t=0,n=this.cursorState.length;t<n;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0}}class ii{constructor(e,t,n){this._model=e,this._autoClosedCharactersDecorations=t,this._autoClosedEnclosingDecorations=n}static getAllAutoClosedCharacters(e){let t=[];for(const n of e)t=t.concat(n.getAutoClosedCharactersRanges());return t}dispose(){this._autoClosedCharactersDecorations=this._model.deltaDecorations(this._autoClosedCharactersDecorations,[]),this._autoClosedEnclosingDecorations=this._model.deltaDecorations(this._autoClosedEnclosingDecorations,[])}getAutoClosedCharactersRanges(){let e=[];for(let t=0;t<this._autoClosedCharactersDecorations.length;t++){const n=this._model.getDecorationRange(this._autoClosedCharactersDecorations[t]);n&&e.push(n)}return e}isValid(e){let t=[];for(let n=0;n<this._autoClosedEnclosingDecorations.length;n++){const e=this._model.getDecorationRange(this._autoClosedEnclosingDecorations[n]);if(e&&(t.push(e),e.startLineNumber!==e.endLineNumber))return!1}t.sort(se["a"].compareRangesUsingStarts),e.sort(se["a"].compareRangesUsingStarts);for(let n=0;n<e.length;n++){if(n>=t.length)return!1;if(!t[n].strictContainsRange(e[n]))return!1}return!0}}class ri extends d["a"]{constructor(e,t,n,i){super(),this._model=e,this._knownModelVersionId=this._model.getVersionId(),this._viewModel=t,this._coordinatesConverter=n,this.context=new ae["c"](this._model,this._viewModel,this._coordinatesConverter,i),this._cursors=new kn(this.context),this._hasFocus=!1,this._isHandling=!1,this._isDoingComposition=!1,this._selectionsWhenCompositionStarted=null,this._columnSelectData=null,this._autoClosedActions=[],this._prevEditOperationType=0}dispose(){this._cursors.dispose(),this._autoClosedActions=Object(d["f"])(this._autoClosedActions),super.dispose()}updateConfiguration(e){this.context=new ae["c"](this._model,this._viewModel,this._coordinatesConverter,e),this._cursors.updateContext(this.context)}onLineMappingChanged(e){this._knownModelVersionId===this._model.getVersionId()&&this.setStates(e,"viewModel",0,this.getCursorStates())}setHasFocus(e){this._hasFocus=e}_validateAutoClosedActions(){if(this._autoClosedActions.length>0){let e=this._cursors.getSelections();for(let t=0;t<this._autoClosedActions.length;t++){const n=this._autoClosedActions[t];n.isValid(e)||(n.dispose(),this._autoClosedActions.splice(t,1),t--)}}}getPrimaryCursorState(){return this._cursors.getPrimaryCursor()}getLastAddedCursorIndex(){return this._cursors.getLastAddedCursorIndex()}getCursorStates(){return this._cursors.getAll()}setStates(e,t,n,i){let r=!1;null!==i&&i.length>ri.MAX_CURSOR_COUNT&&(i=i.slice(0,ri.MAX_CURSOR_COUNT),r=!0);const o=new ni(this._model,this);return this._cursors.setStates(i),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,t,n,o,r)}setCursorColumnSelectData(e){this._columnSelectData=e}revealPrimary(e,t,n,i){const r=this._cursors.getViewPositions();if(r.length>1)this._emitCursorRevealRange(e,t,null,this._cursors.getViewSelections(),0,n,i);else{const o=r[0],s=new se["a"](o.lineNumber,o.column,o.lineNumber,o.column);this._emitCursorRevealRange(e,t,s,null,0,n,i)}}_revealPrimaryCursor(e,t,n,i,r){const o=this._cursors.getViewPositions();if(o.length>1)this._emitCursorRevealRange(e,t,null,this._cursors.getViewSelections(),n,i,r);else{const s=o[0],a=new se["a"](s.lineNumber,s.column,s.lineNumber,s.column);this._emitCursorRevealRange(e,t,a,null,n,i,r)}}_emitCursorRevealRange(e,t,n,i,r,o,s){e.emitViewEvent(new zn(t,n,i,r,o,s))}saveState(){let e=[];const t=this._cursors.getSelections();for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push({inSelectionMode:!i.isEmpty(),selectionStart:{lineNumber:i.selectionStartLineNumber,column:i.selectionStartColumn},position:{lineNumber:i.positionLineNumber,column:i.positionColumn}})}return e}restoreState(e,t){let n=[];for(let i=0,r=t.length;i<r;i++){const e=t[i];let r=1,o=1;e.position&&e.position.lineNumber&&(r=e.position.lineNumber),e.position&&e.position.column&&(o=e.position.column);let s=r,a=o;e.selectionStart&&e.selectionStart.lineNumber&&(s=e.selectionStart.lineNumber),e.selectionStart&&e.selectionStart.column&&(a=e.selectionStart.column),n.push({selectionStartLineNumber:s,selectionStartColumn:a,positionLineNumber:r,positionColumn:o})}this.setStates(e,"restoreState",0,ae["d"].fromModelSelections(n)),this.revealPrimary(e,"restoreState",!0,1)}onModelContentChanged(e,t){if(t instanceof Dn["c"]){const t=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,ae["d"].fromModelSelections(t))}else{if(this._knownModelVersionId=t.versionId,this._isHandling)return;const n=t.containsEvent(1);if(this._prevEditOperationType=0,n)this._cursors.dispose(),this._cursors=new kn(this.context),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,"model",1,null,!1);else if(this._hasFocus&&t.resultingSelection&&t.resultingSelection.length>0){const n=ae["d"].fromModelSelections(t.resultingSelection);this.setStates(e,"modelChange",t.isUndoing?5:t.isRedoing?6:2,n)&&this._revealPrimaryCursor(e,"modelChange",0,!0,0)}else{const t=this._cursors.readSelectionFromMarkers();this.setStates(e,"modelChange",2,ae["d"].fromModelSelections(t))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const e=this._cursors.getPrimaryCursor(),t=e.viewState.selectionStart.getStartPosition(),n=e.viewState.position;return{isReal:!1,fromViewLineNumber:t.lineNumber,fromViewVisualColumn:ae["a"].visibleColumnFromColumn2(this.context.cursorConfig,this._viewModel,t),toViewLineNumber:n.lineNumber,toViewVisualColumn:ae["a"].visibleColumnFromColumn2(this.context.cursorConfig,this._viewModel,n)}}getSelections(){return this._cursors.getSelections()}setSelections(e,t,n,i){this.setStates(e,t,i,ae["d"].fromModelSelections(n))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(e){this._prevEditOperationType=e}_pushAutoClosedAction(e,t){let n=[],i=[];for(let s=0,a=e.length;s<a;s++)n.push({range:e[s],options:{description:"auto-closed-character",inlineClassName:"auto-closed-character",stickiness:1}}),i.push({range:t[s],options:{description:"auto-closed-enclosing",stickiness:1}});const r=this._model.deltaDecorations([],n),o=this._model.deltaDecorations([],i);this._autoClosedActions.push(new ii(this._model,r,o))}_executeEditOperation(e){if(!e)return;e.shouldPushStackElementBefore&&this._model.pushStackElement();const t=oi.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(t){this._interpretCommandResult(t);let n=[],i=[];for(let t=0;t<e.commands.length;t++){const r=e.commands[t];r instanceof En["b"]&&r.enclosingRange&&r.closeCharacterRange&&(n.push(r.closeCharacterRange),i.push(r.enclosingRange))}n.length>0&&this._pushAutoClosedAction(n,i),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()}_emitStateChangedIfNecessary(e,t,n,i,r){const o=new ni(this._model,this);if(o.equals(i))return!1;const s=this._cursors.getSelections(),a=this._cursors.getViewSelections();if(e.emitViewEvent(new An(a,s)),!i||i.cursorState.length!==o.cursorState.length||o.cursorState.some((e,t)=>!e.modelState.equals(i.cursorState[t].modelState))){const a=i?i.cursorState.map(e=>e.modelState.selection):null,l=i?i.modelVersionId:0;e.emitOutgoingEvent(new ei(a,s,l,o.modelVersionId,t||"keyboard",n,r))}return!0}_findAutoClosingPairs(e){if(!e.length)return null;let t=[];for(let n=0,i=e.length;n<i;n++){const i=e[n];if(!i.text||i.text.indexOf("\n")>=0)return null;const r=i.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!r)return null;const o=r[1],s=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(o);if(!s||1!==s.length)return null;const a=s[0].open,l=i.text.length-r[2].length-1,c=i.text.lastIndexOf(a,l-1);if(-1===c)return null;t.push([c,l])}return t}executeEdits(e,t,n,i){let r=null;"snippet"===t&&(r=this._findAutoClosingPairs(n)),r&&(n[0]._isTracked=!0);let o=[],s=[];const a=this._model.pushEditOperations(this.getSelections(),n,e=>{if(r)for(let n=0,i=r.length;n<i;n++){const[t,i]=r[n],a=e[n],l=a.range.startLineNumber,c=a.range.startColumn-1+t,u=a.range.startColumn-1+i;o.push(new se["a"](l,u+1,l,u+2)),s.push(new se["a"](l,c+1,l,u+2))}const t=i(e);return t&&(this._isHandling=!0),t});a&&(this._isHandling=!1,this.setSelections(e,t,a,0)),o.length>0&&this._pushAutoClosedAction(o,s)}_executeEdit(e,t,n,i=0){if(this.context.cursorConfig.readOnly)return;const r=new ni(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),e()}catch(o){Object(u["e"])(o)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,n,i,r,!1)&&this._revealPrimaryCursor(t,n,0,!0,0)}setIsDoingComposition(e){this._isDoingComposition=e}getAutoClosedCharacters(){return ii.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(e){this._selectionsWhenCompositionStarted=this.getSelections().slice(0)}endComposition(e,t){this._executeEdit(()=>{"keyboard"===t&&(this._executeEditOperation(En["a"].compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this._selectionsWhenCompositionStarted,this.getSelections(),this.getAutoClosedCharacters())),this._selectionsWhenCompositionStarted=null)},e,t)}type(e,t,n){this._executeEdit(()=>{if("keyboard"===n){const e=t.length;let n=0;while(n<e){const e=Te["L"](t,n),i=t.substr(n,e);this._executeEditOperation(En["a"].typeWithInterceptors(this._isDoingComposition,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),this.getAutoClosedCharacters(),i)),n+=e}}else this._executeEditOperation(En["a"].typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t))},e,n)}compositionType(e,t,n,i,r,o){if(0!==t.length||0!==n||0!==i)this._executeEdit(()=>{this._executeEditOperation(En["a"].compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),t,n,i,r))},e,o);else if(0!==r){const t=this.getSelections().map(e=>{const t=e.getPosition();return new v["a"](t.lineNumber,t.column+r,t.lineNumber,t.column+r)});this.setSelections(e,o,t,0)}}paste(e,t,n,i,r){this._executeEdit(()=>{this._executeEditOperation(En["a"].paste(this.context.cursorConfig,this._model,this.getSelections(),t,n,i||[]))},e,r,4)}cut(e,t){this._executeEdit(()=>{this._executeEditOperation(Ln["a"].cut(this.context.cursorConfig,this._model,this.getSelections()))},e,t)}executeCommand(e,t,n){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new ae["e"](0,[t],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,n)}executeCommands(e,t,n){this._executeEdit(()=>{this._executeEditOperation(new ae["e"](0,t,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},e,n)}}ri.MAX_CURSOR_COUNT=1e4;class oi{static executeCommands(e,t,n){const i={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]},r=this._innerExecuteCommands(i,n);for(let o=0,s=i.trackedRanges.length;o<s;o++)i.model._setTrackedRange(i.trackedRanges[o],null,0);return r}static _innerExecuteCommands(e,t){if(this._arrayIsEmpty(t))return null;const n=this._getEditOperations(e,t);if(0===n.operations.length)return null;const i=n.operations,r=this._getLoserCursorMap(i);if(r.hasOwnProperty("0"))return console.warn("Ignoring commands"),null;let o=[];for(let l=0,c=i.length;l<c;l++)r.hasOwnProperty(i[l].identifier.major.toString())||o.push(i[l]);n.hadTrackedEditOperation&&o.length>0&&(o[0]._isTracked=!0);let s=e.model.pushEditOperations(e.selectionsBefore,o,n=>{let i=[];for(let t=0;t<e.selectionsBefore.length;t++)i[t]=[];for(const e of n)e.identifier&&i[e.identifier.major].push(e);const r=(e,t)=>e.identifier.minor-t.identifier.minor;let o=[];for(let s=0;s<e.selectionsBefore.length;s++)i[s].length>0?(i[s].sort(r),o[s]=t[s].computeCursorState(e.model,{getInverseEditOperations:()=>i[s],getTrackedSelection:t=>{const n=parseInt(t,10),i=e.model._getTrackedRange(e.trackedRanges[n]);return 0===e.trackedRangesDirection[n]?new v["a"](i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new v["a"](i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn)}})):o[s]=e.selectionsBefore[s];return o});s||(s=e.selectionsBefore);let a=[];for(let l in r)r.hasOwnProperty(l)&&a.push(parseInt(l,10));a.sort((e,t)=>t-e);for(const l of a)s.splice(l,1);return s}static _arrayIsEmpty(e){for(let t=0,n=e.length;t<n;t++)if(e[t])return!1;return!0}static _getEditOperations(e,t){let n=[],i=!1;for(let r=0,o=t.length;r<o;r++){const o=t[r];if(o){const t=this._getEditOperationsFromCommand(e,r,o);n=n.concat(t.operations),i=i||t.hadTrackedEditOperation}}return{operations:n,hadTrackedEditOperation:i}}static _getEditOperationsFromCommand(e,t,n){let i=[],r=0;const o=(e,o,s=!1)=>{se["a"].isEmpty(e)&&""===o||i.push({identifier:{major:t,minor:r++},range:e,text:o,forceMoveMarkers:s,isAutoWhitespaceEdit:n.insertsAutoWhitespace})};let s=!1;const a=(e,t,n)=>{s=!0,o(e,t,n)},l=(t,n)=>{const i=v["a"].liftSelection(t);let r;if(i.isEmpty())if("boolean"===typeof n)r=n?2:3;else{const t=e.model.getLineMaxColumn(i.startLineNumber);r=i.startColumn===t?2:3}else r=1;const o=e.trackedRanges.length,s=e.model._setTrackedRange(null,i,r);return e.trackedRanges[o]=s,e.trackedRangesDirection[o]=i.getDirection(),o.toString()},c={addEditOperation:o,addTrackedEditOperation:a,trackSelection:l};try{n.getEditOperations(e.model,c)}catch(h){return Object(u["e"])(h),{operations:[],hadTrackedEditOperation:!1}}return{operations:i,hadTrackedEditOperation:s}}static _getLoserCursorMap(e){e=e.slice(0),e.sort((e,t)=>-se["a"].compareRangesUsingEnds(e.range,t.range));let t={};for(let n=1;n<e.length;n++){const i=e[n-1],r=e[n];if(se["a"].getStartPosition(i.range).isBefore(se["a"].getEndPosition(r.range))){let o;o=i.identifier.major>r.identifier.major?i.identifier.major:r.identifier.major,t[o.toString()]=!0;for(let t=0;t<e.length;t++)e[t].identifier.major===o&&(e.splice(t,1),t<n&&n--,t--);n>0&&n--}}return t}}var si=n("f58f"),ai=n("8ae8"),li=n("c101"),ci=n("4d05"),ui=n("42e3");class hi{constructor(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}insert(e){this._hasPending=!0,this._inserts.push(e)}change(e){this._hasPending=!0,this._changes.push(e)}remove(e){this._hasPending=!0,this._removes.push(e)}mustCommit(){return this._hasPending}commit(e){if(!this._hasPending)return;const t=this._inserts,n=this._changes,i=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],e._commitPendingChanges(t,n,i)}}class di{constructor(e,t,n,i,r){this.id=e,this.afterLineNumber=t,this.ordinal=n,this.height=i,this.minWidth=r,this.prefixSum=0}}class fi{constructor(e,t,n,i){this._instanceId=Te["Q"](++fi.INSTANCE_COUNT),this._pendingChanges=new hi,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=e,this._lineHeight=t,this._paddingTop=n,this._paddingBottom=i}static findInsertionIndex(e,t,n){let i=0,r=e.length;while(i<r){const o=i+r>>>1;t===e[o].afterLineNumber?n<e[o].ordinal?r=o:i=o+1:t<e[o].afterLineNumber?r=o:i=o+1}return i}setLineHeight(e){this._checkPendingChanges(),this._lineHeight=e}setPadding(e,t){this._paddingTop=e,this._paddingBottom=t}onFlushed(e){this._checkPendingChanges(),this._lineCount=e}changeWhitespace(e){let t=!1;try{const n={insertWhitespace:(e,n,i,r)=>{t=!0,e|=0,n|=0,i|=0,r|=0;const o=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new di(o,e,n,i,r)),o},changeOneWhitespace:(e,n,i)=>{t=!0,n|=0,i|=0,this._pendingChanges.change({id:e,newAfterLineNumber:n,newHeight:i})},removeWhitespace:e=>{t=!0,this._pendingChanges.remove({id:e})}};e(n)}finally{this._pendingChanges.commit(this)}return t}_commitPendingChanges(e,t,n){if((e.length>0||n.length>0)&&(this._minWidth=-1),e.length+t.length+n.length<=1){for(const t of e)this._insertWhitespace(t);for(const e of t)this._changeOneWhitespace(e.id,e.newAfterLineNumber,e.newHeight);for(const e of n){const t=this._findWhitespaceIndex(e.id);-1!==t&&this._removeWhitespace(t)}return}const i=new Set;for(const a of n)i.add(a.id);const r=new Map;for(const a of t)r.set(a.id,a);const o=e=>{let t=[];for(const n of e)if(!i.has(n.id)){if(r.has(n.id)){const e=r.get(n.id);n.afterLineNumber=e.newAfterLineNumber,n.height=e.newHeight}t.push(n)}return t},s=o(this._arr).concat(o(e));s.sort((e,t)=>e.afterLineNumber===t.afterLineNumber?e.ordinal-t.ordinal:e.afterLineNumber-t.afterLineNumber),this._arr=s,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(e){const t=fi.findInsertionIndex(this._arr,e.afterLineNumber,e.ordinal);this._arr.splice(t,0,e),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)}_findWhitespaceIndex(e){const t=this._arr;for(let n=0,i=t.length;n<i;n++)if(t[n].id===e)return n;return-1}_changeOneWhitespace(e,t,n){const i=this._findWhitespaceIndex(e);if(-1!==i&&(this._arr[i].height!==n&&(this._arr[i].height=n,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,i-1)),this._arr[i].afterLineNumber!==t)){const e=this._arr[i];this._removeWhitespace(i),e.afterLineNumber=t,this._insertWhitespace(e)}}_removeWhitespace(e){this._arr.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1)}onLinesDeleted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount-=t-e+1;for(let n=0,i=this._arr.length;n<i;n++){const i=this._arr[n].afterLineNumber;e<=i&&i<=t?this._arr[n].afterLineNumber=e-1:i>t&&(this._arr[n].afterLineNumber-=t-e+1)}}onLinesInserted(e,t){this._checkPendingChanges(),e|=0,t|=0,this._lineCount+=t-e+1;for(let n=0,i=this._arr.length;n<i;n++){const i=this._arr[n].afterLineNumber;e<=i&&(this._arr[n].afterLineNumber+=t-e+1)}}getWhitespacesTotalHeight(){return this._checkPendingChanges(),0===this._arr.length?0:this.getWhitespacesAccumulatedHeight(this._arr.length-1)}getWhitespacesAccumulatedHeight(e){this._checkPendingChanges(),e|=0;let t=Math.max(0,this._prefixSumValidIndex+1);0===t&&(this._arr[0].prefixSum=this._arr[0].height,t++);for(let 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}getLinesTotalHeight(){this._checkPendingChanges();const e=this._lineHeight*this._lineCount,t=this.getWhitespacesTotalHeight();return e+t+this._paddingTop+this._paddingBottom}getWhitespaceAccumulatedHeightBeforeLineNumber(e){this._checkPendingChanges(),e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e);return-1===t?0:this.getWhitespacesAccumulatedHeight(t)}_findLastWhitespaceBeforeLineNumber(e){e|=0;const t=this._arr;let n=0,i=t.length-1;while(n<=i){const r=i-n|0,o=r/2|0,s=n+o|0;if(t[s].afterLineNumber<e){if(s+1>=t.length||t[s+1].afterLineNumber>=e)return s;n=s+1|0}else i=s-1|0}return-1}_findFirstWhitespaceAfterLineNumber(e){e|=0;const t=this._findLastWhitespaceBeforeLineNumber(e),n=t+1;return n<this._arr.length?n:-1}getFirstWhitespaceIndexAfterLineNumber(e){return this._checkPendingChanges(),e|=0,this._findFirstWhitespaceAfterLineNumber(e)}getVerticalOffsetForLineNumber(e){let t;this._checkPendingChanges(),e|=0,t=e>1?this._lineHeight*(e-1):0;const n=this.getWhitespaceAccumulatedHeightBeforeLineNumber(e);return t+n+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),-1===this._minWidth){let e=0;for(let t=0,n=this._arr.length;t<n;t++)e=Math.max(e,this._arr[t].minWidth);this._minWidth=e}return this._minWidth}isAfterLines(e){this._checkPendingChanges();const t=this.getLinesTotalHeight();return e>t}isInTopPadding(e){return 0!==this._paddingTop&&(this._checkPendingChanges(),e<this._paddingTop)}isInBottomPadding(e){if(0===this._paddingBottom)return!1;this._checkPendingChanges();const t=this.getLinesTotalHeight();return e>=t-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(e){if(this._checkPendingChanges(),e|=0,e<0)return 1;const t=0|this._lineCount,n=this._lineHeight;let i=1,r=t;while(i<r){const t=(i+r)/2|0,o=0|this.getVerticalOffsetForLineNumber(t);if(e>=o+n)i=t+1;else{if(e>=o)return t;r=t}}return i>t?t:i}getLinesViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const n=this._lineHeight,i=0|this.getLineNumberAtOrAfterVerticalOffset(e),r=0|this.getVerticalOffsetForLineNumber(i);let o=0|this._lineCount,s=0|this.getFirstWhitespaceIndexAfterLineNumber(i);const a=0|this.getWhitespacesCount();let l,c;-1===s?(s=a,c=o+1,l=0):(c=0|this.getAfterLineNumberForWhitespaceIndex(s),l=0|this.getHeightForWhitespaceIndex(s));let u=r,h=u;const d=5e5;let f=0;r>=d&&(f=Math.floor(r/d)*d,f=Math.floor(f/n)*n,h-=f);const p=[],g=e+(t-e)/2;let m=-1;for(let _=i;_<=o;_++){if(-1===m){const e=u,t=u+n;(e<=g&&g<t||e>g)&&(m=_)}u+=n,p[_-i]=h,h+=n;while(c===_)h+=l,u+=l,s++,s>=a?c=o+1:(c=0|this.getAfterLineNumberForWhitespaceIndex(s),l=0|this.getHeightForWhitespaceIndex(s));if(u>=t){o=_;break}}-1===m&&(m=o);const v=0|this.getVerticalOffsetForLineNumber(o);let b=i,y=o;return b<y&&r<e&&b++,b<y&&v+n>t&&y--,{bigNumbersDelta:f,startLineNumber:i,endLineNumber:o,relativeVerticalOffset:p,centeredLineNumber:m,completelyVisibleStartLineNumber:b,completelyVisibleEndLineNumber:y}}getVerticalOffsetForWhitespaceIndex(e){this._checkPendingChanges(),e|=0;const t=this.getAfterLineNumberForWhitespaceIndex(e);let n,i;return n=t>=1?this._lineHeight*t:0,i=e>0?this.getWhitespacesAccumulatedHeight(e-1):0,n+i+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(e){this._checkPendingChanges(),e|=0;let t=0,n=this.getWhitespacesCount()-1;if(n<0)return-1;const i=this.getVerticalOffsetForWhitespaceIndex(n),r=this.getHeightForWhitespaceIndex(n);if(e>=i+r)return-1;while(t<n){const i=Math.floor((t+n)/2),r=this.getVerticalOffsetForWhitespaceIndex(i),o=this.getHeightForWhitespaceIndex(i);if(e>=r+o)t=i+1;else{if(e>=r)return i;n=i}}return t}getWhitespaceAtVerticalOffset(e){this._checkPendingChanges(),e|=0;const t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;const n=this.getVerticalOffsetForWhitespaceIndex(t);if(n>e)return null;const i=this.getHeightForWhitespaceIndex(t),r=this.getIdForWhitespaceIndex(t),o=this.getAfterLineNumberForWhitespaceIndex(t);return{id:r,afterLineNumber:o,verticalOffset:n,height:i}}getWhitespaceViewportData(e,t){this._checkPendingChanges(),e|=0,t|=0;const n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),i=this.getWhitespacesCount()-1;if(n<0)return[];let r=[];for(let o=n;o<=i;o++){const e=this.getVerticalOffsetForWhitespaceIndex(o),n=this.getHeightForWhitespaceIndex(o);if(e>=t)break;r.push({id:this.getIdForWhitespaceIndex(o),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(o),verticalOffset:e,height:n})}return r}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].id}getAfterLineNumberForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].afterLineNumber}getHeightForWhitespaceIndex(e){return this._checkPendingChanges(),e|=0,this._arr[e].height}}fi.INSTANCE_COUNT=0;const pi=125;class gi{constructor(e,t,n,i){e|=0,t|=0,n|=0,i|=0,e<0&&(e=0),t<0&&(t=0),n<0&&(n=0),i<0&&(i=0),this.width=e,this.contentWidth=t,this.scrollWidth=Math.max(e,t),this.height=n,this.contentHeight=i,this.scrollHeight=Math.max(n,i)}equals(e){return this.width===e.width&&this.contentWidth===e.contentWidth&&this.height===e.height&&this.contentHeight===e.contentHeight}}class mi extends d["a"]{constructor(e,t){super(),this._onDidContentSizeChange=this._register(new h["b"]),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new gi(0,0,0,0),this._scrollable=this._register(new ui["a"](e,t)),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(e){this._scrollable.setSmoothScrollDuration(e)}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}getScrollDimensions(){return this._dimensions}setScrollDimensions(e){if(this._dimensions.equals(e))return;const t=this._dimensions;this._dimensions=e,this._scrollable.setScrollDimensions({width:e.width,scrollWidth:e.scrollWidth,height:e.height,scrollHeight:e.scrollHeight},!0);const n=t.contentWidth!==e.contentWidth,i=t.contentHeight!==e.contentHeight;(n||i)&&this._onDidContentSizeChange.fire(new Zn(t.contentWidth,t.contentHeight,e.contentWidth,e.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(e){this._scrollable.setScrollPositionNow(e)}setScrollPositionSmooth(e){this._scrollable.setScrollPositionSmooth(e)}}class vi extends d["a"]{constructor(e,t,n){super(),this._configuration=e;const i=this._configuration.options,r=i.get(129),o=i.get(73);this._linesLayout=new fi(t,i.get(57),o.top,o.bottom),this._scrollable=this._register(new mi(0,n)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new gi(r.contentWidth,0,r.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(102)?pi:0)}onConfigurationChanged(e){const t=this._configuration.options;if(e.hasChanged(57)&&this._linesLayout.setLineHeight(t.get(57)),e.hasChanged(73)){const e=t.get(73);this._linesLayout.setPadding(e.top,e.bottom)}if(e.hasChanged(129)){const e=t.get(129),n=e.contentWidth,i=e.height,r=this._scrollable.getScrollDimensions(),o=r.contentWidth;this._scrollable.setScrollDimensions(new gi(n,r.contentWidth,i,this._getContentHeight(n,i,o)))}else this._updateHeight();e.hasChanged(102)&&this._configureSmoothScrollDuration()}onFlushed(e){this._linesLayout.onFlushed(e)}onLinesDeleted(e,t){this._linesLayout.onLinesDeleted(e,t)}onLinesInserted(e,t){this._linesLayout.onLinesInserted(e,t)}_getHorizontalScrollbarHeight(e,t){const n=this._configuration.options,i=n.get(91);return 2===i.horizontal||e>=t?0:i.horizontalScrollbarSize}_getContentHeight(e,t,n){const i=this._configuration.options;let r=this._linesLayout.getLinesTotalHeight();return i.get(93)?r+=Math.max(0,t-i.get(57)-i.get(73).bottom):r+=this._getHorizontalScrollbarHeight(e,n),r}_updateHeight(){const e=this._scrollable.getScrollDimensions(),t=e.width,n=e.height,i=e.contentWidth;this._scrollable.setScrollDimensions(new gi(t,e.contentWidth,n,this._getContentHeight(t,n,i)))}getCurrentViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getCurrentScrollPosition();return new Mt["h"](t.scrollTop,t.scrollLeft,e.width,e.height)}getFutureViewport(){const e=this._scrollable.getScrollDimensions(),t=this._scrollable.getFutureScrollPosition();return new Mt["h"](t.scrollTop,t.scrollLeft,e.width,e.height)}_computeContentWidth(e){const t=this._configuration.options,n=t.get(130),i=t.get(41);if(n.isViewportWrapping){const n=t.get(129),r=t.get(63);return e>n.contentWidth+i.typicalHalfwidthCharacterWidth&&r.enabled&&"right"===r.side?e+n.verticalScrollbarWidth:e}{const n=t.get(92)*i.typicalHalfwidthCharacterWidth,r=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+n,r)}}setMaxLineWidth(e){const t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new gi(t.width,this._computeContentWidth(e),t.height,t.contentHeight)),this._updateHeight()}saveState(){const e=this._scrollable.getFutureScrollPosition();let t=e.scrollTop,n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t),i=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n);return{scrollTop:t,scrollTopWithoutViewZones:t-i,scrollLeft:e.scrollLeft}}changeWhitespace(e){const t=this._linesLayout.changeWhitespace(e);return t&&this.onHeightMaybeChanged(),t}getVerticalOffsetForLineNumber(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)}isAfterLines(e){return this._linesLayout.isAfterLines(e)}isInTopPadding(e){return this._linesLayout.isInTopPadding(e)}isInBottomPadding(e){return this._linesLayout.isInBottomPadding(e)}getLineNumberAtVerticalOffset(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)}getWhitespaceAtVerticalOffset(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)}getLinesViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)}getLinesViewportDataAtScrollTop(e){const 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)}getWhitespaceViewportData(){const e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){const e=this._scrollable.getScrollDimensions();return e.contentWidth}getScrollWidth(){const e=this._scrollable.getScrollDimensions();return e.scrollWidth}getContentHeight(){const e=this._scrollable.getScrollDimensions();return e.contentHeight}getScrollHeight(){const e=this._scrollable.getScrollDimensions();return e.scrollHeight}getCurrentScrollLeft(){const e=this._scrollable.getCurrentScrollPosition();return e.scrollLeft}getCurrentScrollTop(){const e=this._scrollable.getCurrentScrollPosition();return e.scrollTop}validateScrollPosition(e){return this._scrollable.validateScrollPosition(e)}setScrollPosition(e,t){1===t?this._scrollable.setScrollPositionNow(e):this._scrollable.setScrollPositionSmooth(e)}deltaScrollNow(e,t){const n=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t})}}var bi=n("e1b5"),yi=n("b57f"),_i=n("2de5");class wi{constructor(e){this._lines=e}convertViewPositionToModelPosition(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)}convertViewRangeToModelRange(e){return this._lines.convertViewRangeToModelRange(e)}validateViewPosition(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)}validateViewRange(e,t){return this._lines.validateViewRange(e,t)}convertModelPositionToViewPosition(e,t){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column,t)}convertModelRangeToViewRange(e,t){return this._lines.convertModelRangeToViewRange(e,t)}modelPositionIsVisible(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)}getModelLineViewLineCount(e){return this._lines.getModelLineViewLineCount(e)}}class Ci{constructor(e){this._counts=e,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._counts.length;e<t;e++){const t=this._counts[e],n=e>0?this._modelToView[e-1]:0;this._modelToView[e]=n+t;for(let i=0;i<t;i++)this._viewToModel[n+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}}changeValue(e,t){this._counts[e]!==t&&(this._counts[e]=t,this._invalidate(e))}removeValues(e,t){this._counts.splice(e,t),this._invalidate(e)}insertValues(e,t){this._counts=ut["b"](this._counts,e,t),this._invalidate(e)}getTotalValue(){return this._ensureValid(),this._viewToModel.length}getAccumulatedValue(e){return this._ensureValid(),this._modelToView[e]}getIndexOf(e){this._ensureValid();const t=this._viewToModel[e],n=t>0?this._modelToView[t-1]:0;return new _i["b"](t,e-n)}}class Si{constructor(e,t,n,i,r,o,s,a,l){this._editorId=e,this.model=t,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=n,this._monospaceLineBreaksComputerFactory=i,this.fontInfo=r,this.tabSize=o,this.wrappingStrategy=s,this.wrappingColumn=a,this.wrappingIndent=l,this._constructLines(!0,null)}dispose(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])}createCoordinatesConverter(){return new wi(this)}_constructLines(e,t){this.lines=[],e&&(this.hiddenAreasIds=[]);const n=this.model.getLinesContent(),i=this.model.getInjectedTextDecorations(this._editorId),r=Dn["b"].fromDecorations(i),o=n.length,s=this.createLineBreaksComputer(),a=r.length;let l=0,c=l<a?r[l].lineNumber:o+1;for(let v=0;v<o;v++){let e=null;if(v+1===c){e=[];while(v+1===c&&l<a)e.push(r[l]),l++,c=l<a?r[l].lineNumber:o+1}s.addRequest(n[v],e,t?t[v]:null)}const u=s.finalize();let h=[],d=this.hiddenAreasIds.map(e=>this.model.getDecorationRange(e)).sort(se["a"].compareRangesUsingStarts),f=1,p=0,g=-1,m=g+1<d.length?p+1:o+2;for(let v=0;v<o;v++){let e=v+1;e===m&&(g++,f=d[g].startLineNumber,p=d[g].endLineNumber,m=g+1<d.length?p+1:o+2);let t=e>=f&&e<=p,n=Ii(u[v],!t);h[v]=n.getViewLineCount(),this.lines[v]=n}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new Ci(h)}getHiddenAreas(){return this.hiddenAreasIds.map(e=>this.model.getDecorationRange(e))}_reduceRanges(e){if(0===e.length)return[];let t=e.map(e=>this.model.validateRange(e)).sort(se["a"].compareRangesUsingStarts),n=[],i=t[0].startLineNumber,r=t[0].endLineNumber;for(let o=1,s=t.length;o<s;o++){let e=t[o];e.startLineNumber>r+1?(n.push(new se["a"](i,1,r,1)),i=e.startLineNumber,r=e.endLineNumber):e.endLineNumber>r&&(r=e.endLineNumber)}return n.push(new se["a"](i,1,r,1)),n}setHiddenAreas(e){let t=this._reduceRanges(e),n=this.hiddenAreasIds.map(e=>this.model.getDecorationRange(e)).sort(se["a"].compareRangesUsingStarts);if(t.length===n.length){let e=!1;for(let i=0;i<t.length;i++)if(!t[i].equalsRange(n[i])){e=!0;break}if(!e)return!1}let i=[];for(const u of t)i.push({range:u,options:yi["a"].EMPTY});this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,i);let r=t,o=1,s=0,a=-1,l=a+1<r.length?s+1:this.lines.length+2,c=!1;for(let u=0;u<this.lines.length;u++){let e=u+1;e===l&&(a++,o=r[a].startLineNumber,s=r[a].endLineNumber,l=a+1<r.length?s+1:this.lines.length+2);let t=!1;if(e>=o&&e<=s?this.lines[u].isVisible()&&(this.lines[u]=this.lines[u].setVisible(!1),t=!0):(c=!0,this.lines[u].isVisible()||(this.lines[u]=this.lines[u].setVisible(!0),t=!0)),t){let e=this.lines[u].getViewLineCount();this.prefixSumComputer.changeValue(u,e)}}return c||this.setHiddenAreas([]),!0}modelPositionIsVisible(e,t){return!(e<1||e>this.lines.length)&&this.lines[e-1].isVisible()}getModelLineViewLineCount(e){return e<1||e>this.lines.length?1:this.lines[e-1].getViewLineCount()}setTabSize(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1,null),!0)}setWrappingSettings(e,t,n,i){const r=this.fontInfo.equals(e),o=this.wrappingStrategy===t,s=this.wrappingColumn===n,a=this.wrappingIndent===i;if(r&&o&&s&&a)return!1;const l=r&&o&&!s&&a;this.fontInfo=e,this.wrappingStrategy=t,this.wrappingColumn=n,this.wrappingIndent=i;let c=null;if(l){c=[];for(let e=0,t=this.lines.length;e<t;e++)c[e]=this.lines[e].getLineBreakData()}return this._constructLines(!1,c),!0}createLineBreaksComputer(){const e="advanced"===this.wrappingStrategy?this._domLineBreaksComputerFactory:this._monospaceLineBreaksComputerFactory;return e.createLineBreaksComputer(this.fontInfo,this.tabSize,this.wrappingColumn,this.wrappingIndent)}onModelFlushed(){this._constructLines(!0,null)}onModelLinesDeleted(e,t,n){if(!e||e<=this._validModelVersionId)return null;let i=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,r=this.prefixSumComputer.getAccumulatedValue(n-1);return this.lines.splice(t-1,n-t+1),this.prefixSumComputer.removeValues(t-1,n-t+1),new Wn(i,r)}onModelLinesInserted(e,t,n,i){if(!e||e<=this._validModelVersionId)return null;const r=t>2&&!this.lines[t-2].isVisible();let o=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,s=0,a=[],l=[];for(let c=0,u=i.length;c<u;c++){let e=Ii(i[c],!r);a.push(e);let t=e.getViewLineCount();s+=t,l[c]=t}return this.lines=this.lines.slice(0,t-1).concat(a).concat(this.lines.slice(t-1)),this.prefixSumComputer.insertValues(t-1,l),new Vn(o,o+s-1)}onModelLineChanged(e,t,n){if(null!==e&&e<=this._validModelVersionId)return[!1,null,null,null];let i=t-1,r=this.lines[i].getViewLineCount(),o=this.lines[i].isVisible(),s=Ii(n,o);this.lines[i]=s;let a=this.lines[i].getViewLineCount(),l=!1,c=0,u=-1,h=0,d=-1,f=0,p=-1;r>a?(c=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,u=c+a-1,f=u+1,p=f+(r-a)-1,l=!0):r<a?(c=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,u=c+r-1,h=u+1,d=h+(a-r)-1,l=!0):(c=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,u=c+a-1),this.prefixSumComputer.changeValue(i,a);const g=c<=u?new Bn(c,u):null,m=h<=d?new Vn(h,d):null,v=f<=p?new Wn(f,p):null;return[l,g,m,v]}acceptVersionId(e){this._validModelVersionId=e,1!==this.lines.length||this.lines[0].isVisible()||this.setHiddenAreas([])}getViewLineCount(){return this.prefixSumComputer.getTotalValue()}_toValidViewLineNumber(e){if(e<1)return 1;const t=this.getViewLineCount();return e>t?t:0|e}getActiveIndentGuide(e,t,n){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),n=this._toValidViewLineNumber(n);const i=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),r=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),o=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),s=this.model.getActiveIndentGuide(i.lineNumber,r.lineNumber,o.lineNumber),a=this.convertModelPositionToViewPosition(s.startLineNumber,1),l=this.convertModelPositionToViewPosition(s.endLineNumber,this.model.getLineMaxColumn(s.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:l.lineNumber,indent:s.indent}}getViewLinesIndentGuides(e,t){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);const n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),i=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));let r=[],o=[],s=[];const a=n.lineNumber-1,l=i.lineNumber-1;let c=null;for(let f=a;f<=l;f++){const e=this.lines[f];if(e.isVisible()){let t=e.getViewLineNumberOfModelPosition(0,f===a?n.column:1),i=e.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(f+1)),r=i-t+1,l=0;r>1&&1===e.getViewLineMinColumn(this.model,f+1,i)&&(l=0===t?1:2),o.push(r),s.push(l),null===c&&(c=new oe["a"](f+1,0))}else null!==c&&(r=r.concat(this.model.getLinesIndentGuides(c.lineNumber,f)),c=null)}null!==c&&(r=r.concat(this.model.getLinesIndentGuides(c.lineNumber,i.lineNumber)),c=null);const u=t-e+1;let h=new Array(u),d=0;for(let f=0,p=r.length;f<p;f++){let e,t=r[f],n=Math.min(u-d,o[f]),i=s[f];e=2===i?0:1===i?1:n;for(let r=0;r<n;r++)r===e&&(t=0),h[d++]=t}return h}getViewLineContent(e){e=this._toValidViewLineNumber(e);let t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineContent(this.model,n+1,i)}getViewLineLength(e){e=this._toValidViewLineNumber(e);let t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineLength(this.model,n+1,i)}getViewLineMinColumn(e){e=this._toValidViewLineNumber(e);let t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineMinColumn(this.model,n+1,i)}getViewLineMaxColumn(e){e=this._toValidViewLineNumber(e);let t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineMaxColumn(this.model,n+1,i)}getViewLineData(e){e=this._toValidViewLineNumber(e);let t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getViewLineData(this.model,n+1,i)}getViewLinesData(e,t,n){e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);let i=this.prefixSumComputer.getIndexOf(e-1),r=e,o=i.index,s=i.remainder,a=[];for(let l=o,c=this.model.getLineCount();l<c;l++){let i=this.lines[l];if(!i.isVisible())continue;let c=l===o?s:0,u=i.getViewLineCount()-c,h=!1;r+u>t&&(h=!0,u=t-r+1);let d=c+u;if(i.getViewLinesData(this.model,l+1,c,d,r-e,n,a),r+=u,h)break}return a}validateViewPosition(e,t,n){e=this._toValidViewLineNumber(e);let i=this.prefixSumComputer.getIndexOf(e-1),r=i.index,o=i.remainder,s=this.lines[r],a=s.getViewLineMinColumn(this.model,r+1,o),l=s.getViewLineMaxColumn(this.model,r+1,o);t<a&&(t=a),t>l&&(t=l);let c=s.getModelColumnOfViewPosition(o,t),u=this.model.validatePosition(new oe["a"](r+1,c));return u.equals(n)?new oe["a"](e,t):this.convertModelPositionToViewPosition(n.lineNumber,n.column)}validateViewRange(e,t){const n=this.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),i=this.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new se["a"](n.lineNumber,n.column,i.lineNumber,i.column)}convertViewPositionToModelPosition(e,t){e=this._toValidViewLineNumber(e);let n=this.prefixSumComputer.getIndexOf(e-1),i=n.index,r=n.remainder,o=this.lines[i].getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new oe["a"](i+1,o))}convertViewRangeToModelRange(e){const t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),n=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new se["a"](t.lineNumber,t.column,n.lineNumber,n.column)}convertModelPositionToViewPosition(e,t,n=2){const i=this.model.validatePosition(new oe["a"](e,t)),r=i.lineNumber,o=i.column;let s=r-1,a=!1;while(s>0&&!this.lines[s].isVisible())s--,a=!0;if(0===s&&!this.lines[s].isVisible())return new oe["a"](1,1);const l=1+(0===s?0:this.prefixSumComputer.getAccumulatedValue(s-1));let c;return c=a?this.lines[s].getViewPositionOfModelPosition(l,this.model.getLineMaxColumn(s+1),n):this.lines[r-1].getViewPositionOfModelPosition(l,o,n),c}convertModelRangeToViewRange(e,t=0){if(e.isEmpty()){const n=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,t);return se["a"].fromPositions(n)}{const t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn,1),n=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn,0);return new se["a"](t.lineNumber,t.column,n.lineNumber,n.column)}}_getViewLineNumberForModelPosition(e,t){let n=e-1;if(this.lines[n].isVisible()){const e=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(e,t)}while(n>0&&!this.lines[n].isVisible())n--;if(0===n&&!this.lines[n].isVisible())return 1;const i=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(i,this.model.getLineMaxColumn(n+1))}getAllOverviewRulerDecorations(e,t,n){const i=this.model.getOverviewRulerDecorations(e,t),r=new Ai;for(const o of i){const e=o.options.overviewRuler,t=e?e.position:0;if(0===t)continue;const i=e.getColor(n),s=this._getViewLineNumberForModelPosition(o.range.startLineNumber,o.range.startColumn),a=this._getViewLineNumberForModelPosition(o.range.endLineNumber,o.range.endColumn);r.accept(i,s,a,t)}return r.result}getDecorationsInRange(e,t,n){const i=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),r=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(r.lineNumber-i.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new se["a"](i.lineNumber,1,r.lineNumber,r.column),t,n);let o=[];const s=i.lineNumber-1,a=r.lineNumber-1;let l=null;for(let d=s;d<=a;d++){const e=this.lines[d];if(e.isVisible())null===l&&(l=new oe["a"](d+1,d===s?i.column:1));else if(null!==l){const e=this.model.getLineMaxColumn(d);o=o.concat(this.model.getDecorationsInRange(new se["a"](l.lineNumber,l.column,d,e),t,n)),l=null}}null!==l&&(o=o.concat(this.model.getDecorationsInRange(new se["a"](l.lineNumber,l.column,r.lineNumber,r.column),t,n)),l=null),o.sort((e,t)=>{const n=se["a"].compareRangesUsingStarts(e.range,t.range);return 0===n?e.id<t.id?-1:e.id>t.id?1:0:n});let c=[],u=0,h=null;for(const d of o){const e=d.id;h!==e&&(h=e,c[u++]=d)}return c}getInjectedTextAt(e){const t=this._toValidViewLineNumber(e.lineNumber),n=this.prefixSumComputer.getIndexOf(t-1),i=n.index,r=n.remainder;return this.lines[i].getInjectedTextAt(r,e.column)}normalizePosition(e,t){const n=this._toValidViewLineNumber(e.lineNumber),i=this.prefixSumComputer.getIndexOf(n-1),r=i.index,o=i.remainder;return this.lines[r].normalizePosition(this.model,r+1,o,e,t)}getLineIndentColumn(e){const t=this._toValidViewLineNumber(e),n=this.prefixSumComputer.getIndexOf(t-1),i=n.index,r=n.remainder;return 0===r?this.model.getLineIndentColumn(i+1):0}}class xi{constructor(){}isVisible(){return!0}setVisible(e){return e?this:Oi.INSTANCE}getLineBreakData(){return null}getViewLineCount(){return 1}getViewLineContent(e,t,n){return e.getLineContent(t)}getViewLineLength(e,t,n){return e.getLineLength(t)}getViewLineMinColumn(e,t,n){return e.getLineMinColumn(t)}getViewLineMaxColumn(e,t,n){return e.getLineMaxColumn(t)}getViewLineData(e,t,n){let i=e.getLineTokens(t),r=i.getLineContent();return new Mt["e"](r,!1,1,r.length+1,0,i.inflate(),null)}getViewLinesData(e,t,n,i,r,o,s){o[r]?s[r]=this.getViewLineData(e,t,0):s[r]=null}getModelColumnOfViewPosition(e,t){return t}getViewPositionOfModelPosition(e,t){return new oe["a"](e,t)}getViewLineNumberOfModelPosition(e,t){return e}normalizePosition(e,t,n,i,r){return i}getInjectedTextAt(e,t){return null}}xi.INSTANCE=new xi;class Oi{constructor(){}isVisible(){return!1}setVisible(e){return e?xi.INSTANCE:this}getLineBreakData(){return null}getViewLineCount(){return 0}getViewLineContent(e,t,n){throw new Error("Not supported")}getViewLineLength(e,t,n){throw new Error("Not supported")}getViewLineMinColumn(e,t,n){throw new Error("Not supported")}getViewLineMaxColumn(e,t,n){throw new Error("Not supported")}getViewLineData(e,t,n){throw new Error("Not supported")}getViewLinesData(e,t,n,i,r,o,s){throw new Error("Not supported")}getModelColumnOfViewPosition(e,t){throw new Error("Not supported")}getViewPositionOfModelPosition(e,t){throw new Error("Not supported")}getViewLineNumberOfModelPosition(e,t){throw new Error("Not supported")}normalizePosition(e,t,n,i,r){throw new Error("Not supported")}getInjectedTextAt(e,t){throw new Error("Not supported")}}Oi.INSTANCE=new Oi;class ki{constructor(e,t){this._lineBreakData=e,this._isVisible=t}isVisible(){return this._isVisible}setVisible(e){return this._isVisible=e,this}getLineBreakData(){return this._lineBreakData}getViewLineCount(){return this._isVisible?this._lineBreakData.breakOffsets.length:0}getInputStartOffsetOfOutputLineIndex(e){return this._lineBreakData.getInputOffsetOfOutputPosition(e,0)}getInputEndOffsetOfOutputLineIndex(e,t,n){return n+1===this._lineBreakData.breakOffsets.length?e.getLineMaxColumn(t)-1:this._lineBreakData.getInputOffsetOfOutputPosition(n+1,0)}getViewLineContent(e,t,n){if(!this._isVisible)throw new Error("Not supported");const i=n>0?this._lineBreakData.breakOffsets[n-1]:0,r=n<this._lineBreakData.breakOffsets.length?this._lineBreakData.breakOffsets[n]:this._lineBreakData.breakOffsets[this._lineBreakData.breakOffsets.length-1];let o;if(null!==this._lineBreakData.injectionOffsets){const n=this._lineBreakData.injectionOffsets.map((e,t)=>new Dn["b"](0,0,e+1,this._lineBreakData.injectionOptions[t],0));o=Dn["b"].applyInjectedText(e.getLineContent(t),n).substring(i,r)}else o=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:r+1});return n>0&&(o=Ei(this._lineBreakData.wrappedTextIndentLength)+o),o}getViewLineLength(e,t,n){if(!this._isVisible)throw new Error("Not supported");const i=n>0?this._lineBreakData.breakOffsets[n-1]:0,r=n<this._lineBreakData.breakOffsets.length?this._lineBreakData.breakOffsets[n]:this._lineBreakData.breakOffsets[this._lineBreakData.breakOffsets.length-1];let o=r-i;return n>0&&(o=this._lineBreakData.wrappedTextIndentLength+o),o}getViewLineMinColumn(e,t,n){if(!this._isVisible)throw new Error("Not supported");return this._getViewLineMinColumn(n)}_getViewLineMinColumn(e){return e>0?this._lineBreakData.wrappedTextIndentLength+1:1}getViewLineMaxColumn(e,t,n){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineLength(e,t,n)+1}getViewLineData(e,t,n){if(!this._isVisible)throw new Error("Not supported");const i=this._lineBreakData,r=n>0?i.wrappedTextIndentLength:0,o=i.injectionOffsets,s=i.injectionOptions;let a,l,c;if(o){const u=e.getLineTokens(t).withInserted(o.map((e,t)=>({offset:e,text:s[t].content,tokenMetadata:bi["a"].defaultTokenMetadata}))),h=n>0?i.breakOffsets[n-1]:0,d=i.breakOffsets[n];a=u.getLineContent().substring(h,d),l=u.sliceAndInflate(h,d,r),c=new Array;let f=0;for(let e=0;e<o.length;e++){const t=s[e].content.length,r=o[e]+f,a=o[e]+f+t;if(r>d)break;if(h<a){const t=s[e];if(t.inlineClassName){const e=n>0?i.wrappedTextIndentLength:0,o=e+Math.max(r-h,0),s=e+Math.min(a-h,d);o!==s&&c.push(new Mt["d"](o,s,t.inlineClassName,t.inlineClassNameAffectsLetterSpacing))}}f+=t}}else{const i=this.getInputStartOffsetOfOutputLineIndex(n),o=this.getInputEndOffsetOfOutputLineIndex(e,t,n),s=e.getLineTokens(t);a=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:o+1}),l=s.sliceAndInflate(i,o,r),c=null}n>0&&(a=Ei(i.wrappedTextIndentLength)+a);const u=n>0?i.wrappedTextIndentLength+1:1,h=a.length+1,d=n+1<this.getViewLineCount(),f=0===n?0:i.breakOffsetsVisibleColumn[n-1];return new Mt["e"](a,d,u,h,f,l,c)}getViewLinesData(e,t,n,i,r,o,s){if(!this._isVisible)throw new Error("Not supported");for(let a=n;a<i;a++){let i=r+a-n;o[i]?s[i]=this.getViewLineData(e,t,a):s[i]=null}}getModelColumnOfViewPosition(e,t){if(!this._isVisible)throw new Error("Not supported");let n=t-1;return e>0&&(n<this._lineBreakData.wrappedTextIndentLength?n=0:n-=this._lineBreakData.wrappedTextIndentLength),this._lineBreakData.getInputOffsetOfOutputPosition(e,n)+1}getViewPositionOfModelPosition(e,t,n=2){if(!this._isVisible)throw new Error("Not supported");let i=this._lineBreakData.getOutputPositionOfInputOffset(t-1,n),r=i.outputLineIndex,o=i.outputOffset+1;return r>0&&(o+=this._lineBreakData.wrappedTextIndentLength),new oe["a"](e+r,o)}getViewLineNumberOfModelPosition(e,t){if(!this._isVisible)throw new Error("Not supported");const n=this._lineBreakData.getOutputPositionOfInputOffset(t-1);return e+n.outputLineIndex}normalizePosition(e,t,n,i,r){if(null!==this._lineBreakData.injectionOffsets){const e=i.lineNumber-n,t=this._lineBreakData.outputPositionToOffsetInUnwrappedLine(n,i.column-1),o=this._lineBreakData.normalizeOffsetAroundInjections(t,r);if(o!==t)return this._lineBreakData.getOutputPositionOfOffsetInUnwrappedLine(o,r).toPosition(e,this._lineBreakData.wrappedTextIndentLength)}if(0===r){if(n>0&&i.column===this._getViewLineMinColumn(n))return new oe["a"](i.lineNumber-1,this.getViewLineMaxColumn(e,t,n-1))}else if(1===r){const r=this.getViewLineCount()-1;if(n<r&&i.column===this.getViewLineMaxColumn(e,t,n))return new oe["a"](i.lineNumber+1,this._getViewLineMinColumn(n+1))}return i}getInjectedTextAt(e,t){return this._lineBreakData.getInjectedText(e,t-1)}}let Li=[""];function Ei(e){if(e>=Li.length)for(let t=1;t<=e;t++)Li[t]=Di(t);return Li[e]}function Di(e){return new Array(e+1).join(" ")}function Ii(e,t){return null===e?t?xi.INSTANCE:Oi.INSTANCE:new ki(e,t)}class Mi{constructor(e){this._lines=e}_validPosition(e){return this._lines.model.validatePosition(e)}_validRange(e){return this._lines.model.validateRange(e)}convertViewPositionToModelPosition(e){return this._validPosition(e)}convertViewRangeToModelRange(e){return this._validRange(e)}validateViewPosition(e,t){return this._validPosition(t)}validateViewRange(e,t){return this._validRange(t)}convertModelPositionToViewPosition(e){return this._validPosition(e)}convertModelRangeToViewRange(e){return this._validRange(e)}modelPositionIsVisible(e){const t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)}getModelLineViewLineCount(e){return 1}}class Ti{constructor(e){this.model=e}dispose(){}createCoordinatesConverter(){return new Mi(this)}getHiddenAreas(){return[]}setHiddenAreas(e){return!1}setTabSize(e){return!1}setWrappingSettings(e,t,n,i){return!1}createLineBreaksComputer(){let e=[];return{addRequest:(t,n,i)=>{e.push(null)},finalize:()=>e}}onModelFlushed(){}onModelLinesDeleted(e,t,n){return new Wn(t,n)}onModelLinesInserted(e,t,n,i){return new Vn(t,n)}onModelLineChanged(e,t,n){return[!1,new Bn(t,t),null,null]}acceptVersionId(e){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(e,t,n){return{startLineNumber:e,endLineNumber:e,indent:0}}getViewLinesIndentGuides(e,t){const n=t-e+1;let i=new Array(n);for(let r=0;r<n;r++)i[r]=0;return i}getViewLineContent(e){return this.model.getLineContent(e)}getViewLineLength(e){return this.model.getLineLength(e)}getViewLineMinColumn(e){return this.model.getLineMinColumn(e)}getViewLineMaxColumn(e){return this.model.getLineMaxColumn(e)}getViewLineData(e){let t=this.model.getLineTokens(e),n=t.getLineContent();return new Mt["e"](n,!1,1,n.length+1,0,t.inflate(),null)}getViewLinesData(e,t,n){const i=this.model.getLineCount();e=Math.min(Math.max(1,e),i),t=Math.min(Math.max(1,t),i);let r=[];for(let o=e;o<=t;o++){let t=o-e;n[t]||(r[t]=null),r[t]=this.getViewLineData(o)}return r}getAllOverviewRulerDecorations(e,t,n){const i=this.model.getOverviewRulerDecorations(e,t),r=new Ai;for(const o of i){const e=o.options.overviewRuler,t=e?e.position:0;if(0===t)continue;const i=e.getColor(n),s=o.range.startLineNumber,a=o.range.endLineNumber;r.accept(i,s,a,t)}return r.result}getDecorationsInRange(e,t,n){return this.model.getDecorationsInRange(e,t,n)}normalizePosition(e,t){return this.model.normalizePosition(e,t)}getLineIndentColumn(e){return this.model.getLineIndentColumn(e)}getInjectedTextAt(e){return null}}class Ai{constructor(){this.result=Object.create(null)}accept(e,t,n,i){let r=this.result[e];if(r){const e=r[r.length-3],o=r[r.length-1];if(e===i&&o+1>=t)return void(n>o&&(r[r.length-1]=n));r.push(i,t,n)}else this.result[e]=[i,t,n]}}class Ni{constructor(e,t,n,i,r){this.editorId=e,this.model=t,this.configuration=n,this._linesCollection=i,this._coordinatesConverter=r,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(e){const t=e.id;let n=this._decorationsCache[t];if(!n){const i=e.range,r=e.options;let o;if(r.isWholeLine){const e=this._coordinatesConverter.convertModelPositionToViewPosition(new oe["a"](i.startLineNumber,1),0),t=this._coordinatesConverter.convertModelPositionToViewPosition(new oe["a"](i.endLineNumber,this.model.getLineMaxColumn(i.endLineNumber)),1);o=new se["a"](e.lineNumber,e.column,t.lineNumber,t.column)}else o=this._coordinatesConverter.convertModelRangeToViewRange(i,1);n=new Mt["g"](o,r),this._decorationsCache[t]=n}return n}getDecorationsViewportData(e){let t=null!==this._cachedModelDecorationsResolver;return t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver}_getDecorationsViewportData(e){const t=this._linesCollection.getDecorationsInRange(e,this.editorId,Object($["m"])(this.configuration.options)),n=e.startLineNumber,i=e.endLineNumber;let r=[],o=0,s=[];for(let a=n;a<=i;a++)s[a-n]=[];for(let a=0,l=t.length;a<l;a++){let e=t[a],l=e.options,c=this._getOrCreateViewModelDecoration(e),u=c.range;if(r[o++]=c,l.inlineClassName){let e=new Mt["a"](u,l.inlineClassName,l.inlineClassNameAffectsLetterSpacing?3:0),t=Math.max(n,u.startLineNumber),r=Math.min(i,u.endLineNumber);for(let i=t;i<=r;i++)s[i-n].push(e)}if(l.beforeContentClassName&&n<=u.startLineNumber&&u.startLineNumber<=i){let e=new Mt["a"](new se["a"](u.startLineNumber,u.startColumn,u.startLineNumber,u.startColumn),l.beforeContentClassName,1);s[u.startLineNumber-n].push(e)}if(l.afterContentClassName&&n<=u.endLineNumber&&u.endLineNumber<=i){let e=new Mt["a"](new se["a"](u.endLineNumber,u.endColumn,u.endLineNumber,u.endColumn),l.afterContentClassName,2);s[u.endLineNumber-n].push(e)}}return{decorations:r,inlineDecorations:s}}}const Pi=!0;class ji extends d["a"]{constructor(e,t,n,i,r,o){if(super(),this._editorId=e,this._configuration=t,this.model=n,this._eventDispatcher=new Gn,this.onEvent=this._eventDispatcher.onEvent,this.cursorConfig=new ae["b"](this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._tokenizeViewportSoon=this._register(new C["e"](()=>this.tokenizeViewport(),50)),this._updateConfigurationViewLineCount=this._register(new C["e"](()=>this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStartLine=-1,this._viewportStartLineTrackedRange=null,this._viewportStartLineDelta=0,Pi&&this.model.isTooLargeForTokenization())this._lines=new Ti(this.model);else{const e=this._configuration.options,t=e.get(41),n=e.get(123),o=e.get(130),s=e.get(122);this._lines=new Si(this._editorId,this.model,i,r,t,this.model.getOptions().tabSize,n,o.wrappingColumn,s)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new ri(n,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new vi(this._configuration,this.getLineCount(),o)),this._register(this.viewLayout.onDidScroll(e=>{e.scrollTopChanged&&this._tokenizeViewportSoon.schedule(),this._eventDispatcher.emitSingleViewEvent(new Hn(e)),this._eventDispatcher.emitOutgoingEvent(new Qn(e.oldScrollWidth,e.oldScrollLeft,e.oldScrollHeight,e.oldScrollTop,e.scrollWidth,e.scrollLeft,e.scrollHeight,e.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(e=>{this._eventDispatcher.emitOutgoingEvent(e)})),this._decorations=new Ni(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(It.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new $n)})),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this.invalidateMinimapColorCache(),this._viewportStartLineTrackedRange=this.model._setTrackedRange(this._viewportStartLineTrackedRange,null,1),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(e){this._eventDispatcher.addViewEventHandler(e)}removeViewEventHandler(e){this._eventDispatcher.removeViewEventHandler(e)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}tokenizeViewport(){const e=this.viewLayout.getLinesViewportData(),t=this.coordinatesConverter.convertViewPositionToModelPosition(new oe["a"](e.startLineNumber,1)),n=this.coordinatesConverter.convertViewPositionToModelPosition(new oe["a"](e.endLineNumber,1));this.model.tokenizeViewport(t.lineNumber,n.lineNumber)}setHasFocus(e){this._hasFocus=e,this._cursor.setHasFocus(e),this._eventDispatcher.emitSingleViewEvent(new jn(e)),this._eventDispatcher.emitOutgoingEvent(new Xn(!e,e))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new In)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new Mn)}onDidColorThemeChange(){this._eventDispatcher.emitSingleViewEvent(new Un)}_onConfigurationChanged(e,t){let n=null;if(-1!==this._viewportStartLine){let e=new oe["a"](this._viewportStartLine,this.getLineMinColumn(this._viewportStartLine));n=this.coordinatesConverter.convertViewPositionToModelPosition(e)}let i=!1;const r=this._configuration.options,o=r.get(41),s=r.get(123),a=r.get(130),l=r.get(122);if(this._lines.setWrappingSettings(o,s,a.wrappingColumn,l)&&(e.emitViewEvent(new Pn),e.emitViewEvent(new Fn),e.emitViewEvent(new Nn(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(i=!0),this._updateConfigurationViewLineCount.schedule()),t.hasChanged(79)&&(this._decorations.reset(),e.emitViewEvent(new Nn(null))),e.emitViewEvent(new Tn(t)),this.viewLayout.onConfigurationChanged(t),i&&n){const e=this.coordinatesConverter.convertModelPositionToViewPosition(n),t=this.viewLayout.getVerticalOffsetForLineNumber(e.lineNumber);this.viewLayout.setScrollPosition({scrollTop:t+this._viewportStartLineDelta},1)}ae["b"].shouldRecreate(t)&&(this.cursorConfig=new ae["b"](this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText(e=>{try{const t=this._eventDispatcher.beginEmitViewEvents();let n=!1,i=!1;const r=e.changes,o=e instanceof Dn["d"]?e.versionId:null,s=this._lines.createLineBreaksComputer();for(const e of r)switch(e.changeType){case 4:for(let t=0;t<e.detail.length;t++){const n=e.detail[t];let i=e.injectedTexts[t];i&&(i=i.filter(e=>!e.ownerId||e.ownerId===this._editorId)),s.addRequest(n,i,null)}break;case 2:{let t=null;e.injectedText&&(t=e.injectedText.filter(e=>!e.ownerId||e.ownerId===this._editorId)),s.addRequest(e.detail,t,null);break}}const a=s.finalize();let l=0;for(const e of r)switch(e.changeType){case 1:this._lines.onModelFlushed(),t.emitViewEvent(new Pn),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),n=!0;break;case 3:{const i=this._lines.onModelLinesDeleted(o,e.fromLineNumber,e.toLineNumber);null!==i&&(t.emitViewEvent(i),this.viewLayout.onLinesDeleted(i.fromLineNumber,i.toLineNumber)),n=!0;break}case 4:{const i=a.slice(l,l+e.detail.length);l+=e.detail.length;const r=this._lines.onModelLinesInserted(o,e.fromLineNumber,e.toLineNumber,i);null!==r&&(t.emitViewEvent(r),this.viewLayout.onLinesInserted(r.fromLineNumber,r.toLineNumber)),n=!0;break}case 2:{const n=a[l];l++;const[r,s,c,u]=this._lines.onModelLineChanged(o,e.lineNumber,n);i=r,s&&t.emitViewEvent(s),c&&(t.emitViewEvent(c),this.viewLayout.onLinesInserted(c.fromLineNumber,c.toLineNumber)),u&&(t.emitViewEvent(u),this.viewLayout.onLinesDeleted(u.fromLineNumber,u.toLineNumber));break}case 5:break}null!==o&&this._lines.acceptVersionId(o),this.viewLayout.onHeightMaybeChanged(),!n&&i&&(t.emitViewEvent(new Fn),t.emitViewEvent(new Nn(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}if(this._viewportStartLine=-1,this._configuration.setMaxLineNumber(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&this._viewportStartLineTrackedRange){const e=this.model._getTrackedRange(this._viewportStartLineTrackedRange);if(e){const t=this.coordinatesConverter.convertModelPositionToViewPosition(e.getStartPosition()),n=this.viewLayout.getVerticalOffsetForLineNumber(t.lineNumber);this.viewLayout.setScrollPosition({scrollTop:n+this._viewportStartLineDelta},1)}}try{const t=this._eventDispatcher.beginEmitViewEvents();this._cursor.onModelContentChanged(t,e)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(this.model.onDidChangeTokens(e=>{let t=[];for(let n=0,i=e.ranges.length;n<i;n++){const i=e.ranges[n],r=this.coordinatesConverter.convertModelPositionToViewPosition(new oe["a"](i.fromLineNumber,1)).lineNumber,o=this.coordinatesConverter.convertModelPositionToViewPosition(new oe["a"](i.toLineNumber,this.model.getLineMaxColumn(i.toLineNumber))).lineNumber;t[n]={fromLineNumber:r,toLineNumber:o}}this._eventDispatcher.emitSingleViewEvent(new qn(t)),e.tokenizationSupportChanged&&this._tokenizeViewportSoon.schedule()})),this._register(this.model.onDidChangeLanguageConfiguration(e=>{this._eventDispatcher.emitSingleViewEvent(new Rn),this.cursorConfig=new ae["b"](this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeLanguage(e=>{this.cursorConfig=new ae["b"](this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeOptions(e=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const e=this._eventDispatcher.beginEmitViewEvents();e.emitViewEvent(new Pn),e.emitViewEvent(new Fn),e.emitViewEvent(new Nn(null)),this._cursor.onLineMappingChanged(e),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new ae["b"](this.model.getLanguageIdentifier(),this.model.getOptions(),this._configuration),this._cursor.updateConfiguration(this.cursorConfig)})),this._register(this.model.onDidChangeDecorations(e=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new Nn(e))}))}setHiddenAreas(e){try{const t=this._eventDispatcher.beginEmitViewEvents();let n=this._lines.setHiddenAreas(e);n&&(t.emitViewEvent(new Pn),t.emitViewEvent(new Fn),t.emitViewEvent(new Nn(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}getVisibleRangesPlusViewportAboveBelow(){const e=this._configuration.options.get(129),t=this._configuration.options.get(57),n=Math.max(20,Math.round(e.height/t)),i=this.viewLayout.getLinesViewportData(),r=Math.max(1,i.completelyVisibleStartLineNumber-n),o=Math.min(this.getLineCount(),i.completelyVisibleEndLineNumber+n);return this._toModelVisibleRanges(new se["a"](r,this.getLineMinColumn(r),o,this.getLineMaxColumn(o)))}getVisibleRanges(){const e=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(e)}_toModelVisibleRanges(e){const t=this.coordinatesConverter.convertViewRangeToModelRange(e),n=this._lines.getHiddenAreas();if(0===n.length)return[t];let i=[],r=0,o=t.startLineNumber,s=t.startColumn,a=t.endLineNumber,l=t.endColumn;for(let c=0,u=n.length;c<u;c++){const e=n[c].startLineNumber,t=n[c].endLineNumber;t<o||(e>a||(o<e&&(i[r++]=new se["a"](o,s,e-1,this.model.getLineMaxColumn(e-1))),o=t+1,s=1))}return(o<a||o===a&&s<l)&&(i[r++]=new se["a"](o,s,a,l)),i}getCompletelyVisibleViewRange(){const e=this.viewLayout.getLinesViewportData(),t=e.completelyVisibleStartLineNumber,n=e.completelyVisibleEndLineNumber;return new se["a"](t,this.getLineMinColumn(t),n,this.getLineMaxColumn(n))}getCompletelyVisibleViewRangeAtScrollTop(e){const t=this.viewLayout.getLinesViewportDataAtScrollTop(e),n=t.completelyVisibleStartLineNumber,i=t.completelyVisibleEndLineNumber;return new se["a"](n,this.getLineMinColumn(n),i,this.getLineMaxColumn(i))}saveState(){const e=this.viewLayout.saveState(),t=e.scrollTop,n=this.viewLayout.getLineNumberAtVerticalOffset(t),i=this.coordinatesConverter.convertViewPositionToModelPosition(new oe["a"](n,this.getLineMinColumn(n))),r=this.viewLayout.getVerticalOffsetForLineNumber(n)-t;return{scrollLeft:e.scrollLeft,firstPosition:i,firstPositionDeltaTop:r}}reduceRestoreState(e){if("undefined"===typeof e.firstPosition)return this._reduceRestoreStateCompatibility(e);const t=this.model.validatePosition(e.firstPosition),n=this.coordinatesConverter.convertModelPositionToViewPosition(t),i=this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:i}}_reduceRestoreStateCompatibility(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getTextModelOptions(){return this.model.getOptions()}getLineCount(){return this._lines.getViewLineCount()}setViewport(e,t,n){this._viewportStartLine=e;let i=this.coordinatesConverter.convertViewPositionToModelPosition(new oe["a"](e,this.getLineMinColumn(e)));this._viewportStartLineTrackedRange=this.model._setTrackedRange(this._viewportStartLineTrackedRange,new se["a"](i.lineNumber,i.column,i.lineNumber,i.column),1);const r=this.viewLayout.getVerticalOffsetForLineNumber(e),o=this.viewLayout.getCurrentScrollTop();this._viewportStartLineDelta=o-r}getActiveIndentGuide(e,t,n){return this._lines.getActiveIndentGuide(e,t,n)}getLinesIndentGuides(e,t){return this._lines.getViewLinesIndentGuides(e,t)}getLineContent(e){return this._lines.getViewLineContent(e)}getLineLength(e){return this._lines.getViewLineLength(e)}getLineMinColumn(e){return this._lines.getViewLineMinColumn(e)}getLineMaxColumn(e){return this._lines.getViewLineMaxColumn(e)}getLineFirstNonWhitespaceColumn(e){const t=Te["v"](this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=Te["J"](this.getLineContent(e));return-1===t?0:t+2}getDecorationsInViewport(e){return this._decorations.getDecorationsViewportData(e).decorations}getInjectedTextAt(e){return this._lines.getInjectedTextAt(e)}getViewLineRenderingData(e,t){let n=this.model.mightContainRTL(),i=this.model.mightContainNonBasicASCII(),r=this.getTabSize(),o=this._lines.getViewLineData(t),s=this._decorations.getDecorationsViewportData(e).inlineDecorations,a=s[t-e.startLineNumber];return o.inlineDecorations&&(a=[...a,...o.inlineDecorations.map(e=>e.toInlineDecoration(t))]),new Mt["f"](o.minColumn,o.maxColumn,o.content,o.continuesWithWrappedLine,n,i,o.tokens,a,r,o.startVisibleColumn)}getViewLineData(e){return this._lines.getViewLineData(e)}getMinimapLinesRenderingData(e,t,n){let i=this._lines.getViewLinesData(e,t,n);return new Mt["c"](this.getTabSize(),i)}getAllOverviewRulerDecorations(e){return this._lines.getAllOverviewRulerDecorations(this._editorId,Object($["m"])(this._configuration.options),e)}invalidateOverviewRulerColorCache(){const e=this.model.getOverviewRulerDecorations();for(const t of e){const e=t.options.overviewRuler;e&&e.invalidateCachedColor()}}invalidateMinimapColorCache(){const e=this.model.getAllDecorations();for(const t of e){const e=t.options.minimap;e&&e.invalidateCachedColor()}}getValueInRange(e,t){const n=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(n,t)}getModelLineMaxColumn(e){return this.model.getLineMaxColumn(e)}validateModelPosition(e){return this.model.validatePosition(e)}validateModelRange(e){return this.model.validateRange(e)}deduceModelPositionRelativeToViewPosition(e,t,n){const i=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=n:t+=n);const r=this.model.getOffsetAt(i),o=r+t;return this.model.getPositionAt(o)}getEOL(){return this.model.getEOL()}getPlainTextToCopy(e,t,n){const i=n?"\r\n":this.model.getEOL();e=e.slice(0),e.sort(se["a"].compareRangesUsingStarts);let r=!1,o=!1;for(const a of e)a.isEmpty()?r=!0:o=!0;if(!o){if(!t)return"";const n=e.map(e=>e.startLineNumber);let r="";for(let e=0;e<n.length;e++)e>0&&n[e-1]===n[e]||(r+=this.model.getLineContent(n[e])+i);return r}if(r&&t){let t=[],i=0;for(const r of e){const e=r.startLineNumber;r.isEmpty()?e!==i&&t.push(this.model.getLineContent(e)):t.push(this.model.getValueInRange(r,n?2:0)),i=e}return 1===t.length?t[0]:t}let s=[];for(const a of e)a.isEmpty()||s.push(this.model.getValueInRange(a,n?2:0));return 1===s.length?s[0]:s}getRichTextToCopy(e,t){const n=this.model.getLanguageIdentifier();if(1===n.id)return null;if(1!==e.length)return null;let i=e[0];if(i.isEmpty()){if(!t)return null;const e=i.startLineNumber;i=new se["a"](e,this.model.getLineMinColumn(e),e,this.model.getLineMaxColumn(e))}const r=this._configuration.options.get(41),o=this._getColorMap(),s=/[:;\\\/<>]/.test(r.fontFamily),a=s||r.fontFamily===$["c"].fontFamily;let l;if(a)l=$["c"].fontFamily;else{l=r.fontFamily,l=l.replace(/"/g,"'");const e=/[,']/.test(l);if(!e){const e=/[+ ]/.test(l);e&&(l=`'${l}'`)}l=`${l}, ${$["c"].fontFamily}`}return{mode:n.language,html:`<div style="color: ${o[1]};background-color: ${o[2]};font-family: ${l};font-weight: ${r.fontWeight};font-size: ${r.fontSize}px;line-height: ${r.lineHeight}px;white-space: pre;">`+this._getHTMLToCopy(i,o)+"</div>"}}_getHTMLToCopy(e,t){const n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,o=e.endColumn,s=this.getTabSize();let a="";for(let l=n;l<=r;l++){const e=this.model.getLineTokens(l),c=e.getLineContent(),u=l===n?i-1:0,h=l===r?o-1:c.length;a+=""===c?"<br>":Object(ci["a"])(c,e.inflate(),t,u,h,s,y["j"])}return a}_getColorMap(){let e=Dt["F"].getColorMap(),t=["#000000"];if(e)for(let n=1,i=e.length;n<i;n++)t[n]=en["a"].Format.CSS.formatHex(e[n]);return t}pushStackElement(){this.model.pushStackElement()}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(e,t,n){this._withViewEventsCollector(i=>this._cursor.setStates(i,e,t,n))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(e){this._cursor.setCursorColumnSelectData(e)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(e){this._cursor.setPrevEditOperationType(e)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(e,t,n=0){this._withViewEventsCollector(i=>this._cursor.setSelections(i,e,t,n))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(e){this._withViewEventsCollector(t=>this._cursor.restoreState(t,e))}_executeCursorEdit(e){this._cursor.context.cursorConfig.readOnly?this._eventDispatcher.emitOutgoingEvent(new ti):this._withViewEventsCollector(e)}executeEdits(e,t,n){this._executeCursorEdit(i=>this._cursor.executeEdits(i,e,t,n))}startComposition(){this._cursor.setIsDoingComposition(!0),this._executeCursorEdit(e=>this._cursor.startComposition(e))}endComposition(e){this._cursor.setIsDoingComposition(!1),this._executeCursorEdit(t=>this._cursor.endComposition(t,e))}type(e,t){this._executeCursorEdit(n=>this._cursor.type(n,e,t))}compositionType(e,t,n,i,r){this._executeCursorEdit(o=>this._cursor.compositionType(o,e,t,n,i,r))}paste(e,t,n,i){this._executeCursorEdit(r=>this._cursor.paste(r,e,t,n,i))}cut(e){this._executeCursorEdit(t=>this._cursor.cut(t,e))}executeCommand(e,t){this._executeCursorEdit(n=>this._cursor.executeCommand(n,e,t))}executeCommands(e,t){this._executeCursorEdit(n=>this._cursor.executeCommands(n,e,t))}revealPrimaryCursor(e,t){this._withViewEventsCollector(n=>this._cursor.revealPrimary(n,e,t,0))}revealTopMostCursor(e){const t=this._cursor.getTopMostViewPosition(),n=new se["a"](t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(t=>t.emitViewEvent(new zn(e,n,null,0,!0,0)))}revealBottomMostCursor(e){const t=this._cursor.getBottomMostViewPosition(),n=new se["a"](t.lineNumber,t.column,t.lineNumber,t.column);this._withViewEventsCollector(t=>t.emitViewEvent(new zn(e,n,null,0,!0,0)))}revealRange(e,t,n,i,r){this._withViewEventsCollector(o=>o.emitViewEvent(new zn(e,n,null,i,t,r)))}getVerticalOffsetForLineNumber(e){return this.viewLayout.getVerticalOffsetForLineNumber(e)}getScrollTop(){return this.viewLayout.getCurrentScrollTop()}setScrollTop(e,t){this.viewLayout.setScrollPosition({scrollTop:e},t)}setScrollPosition(e,t){this.viewLayout.setScrollPosition(e,t)}deltaScrollNow(e,t){this.viewLayout.deltaScrollNow(e,t)}changeWhitespace(e){const t=this.viewLayout.changeWhitespace(e);t&&(this._eventDispatcher.emitSingleViewEvent(new Kn),this._eventDispatcher.emitOutgoingEvent(new Jn))}setMaxLineWidth(e){this.viewLayout.setMaxLineWidth(e)}_withViewEventsCollector(e){try{const t=this._eventDispatcher.beginEmitViewEvents();e(t)}finally{this._eventDispatcher.endEmitViewEvents()}}normalizePosition(e,t){return this._lines.normalizePosition(e,t)}getLineIndentColumn(e){return this._lines.getLineIndentColumn(e)}}var Ri=n("9e74"),Fi=n("4fc3"),Bi=n("0a0f"),Wi=n("f07b"),Vi=n("b0cd"),zi=n("4779"),Hi=n("ef8e"),Ui=n("3170");class qi extends Ui["a"]{constructor(e,t){super(0);for(let n=0;n<e.length;n++)this.set(e.charCodeAt(n),1);for(let n=0;n<t.length;n++)this.set(t.charCodeAt(n),2)}get(e){return e>=0&&e<256?this._asciiMap[e]:e>=12352&&e<=12543||e>=13312&&e<=19903||e>=19968&&e<=40959?3:this._map.get(e)||this._defaultValue}}let $i=[],Ki=[];class Gi{constructor(e,t){this.classifier=new qi(e,t)}static create(e){return new Gi(e.get(118),e.get(117))}createLineBreaksComputer(e,t,n,i){t|=0,n=+n;const r=[],o=[],s=[];return{addRequest:(e,t,n)=>{r.push(e),o.push(t),s.push(n)},finalize:()=>{const a=e.typicalFullwidthCharacterWidth/e.typicalHalfwidthCharacterWidth;let l=[];for(let e=0,c=r.length;e<c;e++){const c=o[e],u=s[e];!u||u.injectionOptions||c?l[e]=Zi(this.classifier,r[e],c,t,n,a,i):l[e]=Yi(this.classifier,u,r[e],t,n,a,i)}return $i.length=0,Ki.length=0,l}}}}function Yi(e,t,n,i,r,o,s){if(-1===r)return null;const a=n.length;if(a<=1)return null;const l=t.breakOffsets,c=t.breakOffsetsVisibleColumn,u=er(n,i,r,o,s),h=r-u;let d=$i,f=Ki,p=0,g=0,m=0,v=r;const b=l.length;let y=0;if(y>=0){let e=Math.abs(c[y]-v);while(y+1<b){const t=Math.abs(c[y+1]-v);if(t>=e)break;e=t,y++}}while(y<b){let t=y<0?0:l[y],r=y<0?0:c[y];g>t&&(t=g,r=m);let s=0,u=0,_=0,w=0;if(r<=v){let m=r,b=0===t?0:n.charCodeAt(t-1),y=0===t?0:e.get(b),C=!0;for(let r=t;r<a;r++){const t=r,a=n.charCodeAt(r);let l,c;if(Te["F"](a)?(r++,l=0,c=2):(l=e.get(a),c=Xi(a,m,i,o)),t>g&&Ji(b,y,a,l)&&(s=t,u=m),m+=c,m>v){t>g?(_=t,w=m-c):(_=r+1,w=m),m-u>h&&(s=0),C=!1;break}b=a,y=l}if(C){p>0&&(d[p]=l[l.length-1],f[p]=c[l.length-1],p++);break}}if(0===s){let a=r,l=n.charCodeAt(t),c=e.get(l),d=!1;for(let i=t-1;i>=g;i--){const t=i+1,r=n.charCodeAt(i);if(9===r){d=!0;break}let f,p;if(Te["G"](r)?(i--,f=0,p=2):(f=e.get(r),p=Te["E"](r)?o:1),a<=v){if(0===_&&(_=t,w=a),a<=v-h)break;if(Ji(r,f,l,c)){s=t,u=a;break}}a-=p,l=r,c=f}if(0!==s){const e=h-(w-u);if(e<=i){const t=n.charCodeAt(_);let r;r=Te["F"](t)?2:Xi(t,w,i,o),e-r<0&&(s=0)}}if(d){y--;continue}}if(0===s&&(s=_,u=w),s<=g){const e=n.charCodeAt(g);Te["F"](e)?(s=g+2,u=m+2):(s=g+1,u=m+Xi(e,m,i,o))}g=s,d[p]=s,m=u,f[p]=u,p++,v=u+h;while(y<0||y<b&&c[y]<u)y++;let C=Math.abs(c[y]-v);while(y+1<b){const e=Math.abs(c[y+1]-v);if(e>=C)break;C=e,y++}}return 0===p?null:(d.length=p,f.length=p,$i=t.breakOffsets,Ki=t.breakOffsetsVisibleColumn,t.breakOffsets=d,t.breakOffsetsVisibleColumn=f,t.wrappedTextIndentLength=u,t)}function Zi(e,t,n,i,r,o,s){const a=Dn["b"].applyInjectedText(t,n);let l,c;if(n&&n.length>0?(l=n.map(e=>e.options),c=n.map(e=>e.column-1)):(l=null,c=null),-1===r)return l?new Mt["b"]([a.length],[],0,c,l):null;const u=a.length;if(u<=1)return l?new Mt["b"]([a.length],[],0,c,l):null;const h=er(a,i,r,o,s),d=r-h;let f=[],p=[],g=0,m=0,v=0,b=r,y=a.charCodeAt(0),_=e.get(y),w=Xi(y,0,i,o),C=1;Te["F"](y)&&(w+=1,y=a.charCodeAt(1),_=e.get(y),C++);for(let S=C;S<u;S++){const t=S,n=a.charCodeAt(S);let r,s;Te["F"](n)?(S++,r=0,s=2):(r=e.get(n),s=Xi(n,w,i,o)),Ji(y,_,n,r)&&(m=t,v=w),w+=s,w>b&&((0===m||w-v>d)&&(m=t,v=w-s),f[g]=m,p[g]=v,g++,b=v+d,m=0),y=n,_=r}return 0!==g||n&&0!==n.length?(f[g]=u,p[g]=w,new Mt["b"](f,p,h,c,l)):null}function Xi(e,t,n,i){return 9===e?n-t%n:Te["E"](e)||e<32?i:1}function Qi(e,t){return t-e%t}function Ji(e,t,n,i){return 32!==n&&(2===t||3===t&&2!==i||1===i||3===i&&1!==t)}function er(e,t,n,i,r){let o=0;if(0!==r){const s=Te["v"](e);if(-1!==s){for(let n=0;n<s;n++){const i=9===e.charCodeAt(n)?Qi(o,t):1;o+=i}const a=3===r?2:2===r?1:0;for(let e=0;e<a;e++){const e=Qi(o,t);o+=e}o+i>n&&(o=0)}}return o}var tr;const nr=null===(tr=window.trustedTypes)||void 0===tr?void 0:tr.createPolicy("domLineBreaksComputer",{createHTML:e=>e});class ir{static create(){return new ir}constructor(){}createLineBreaksComputer(e,t,n,i){t|=0,n=+n;let r=[],o=[];return{addRequest:(e,t,n)=>{r.push(e),o.push(t)},finalize:()=>rr(r,e,t,n,i,o)}}}function rr(e,t,n,i,r,o){var s;function a(t){const n=o[t];if(n){const i=Dn["b"].applyInjectedText(e[t],n),r=n.map(e=>e.options),o=n.map(e=>e.column-1);return new Mt["b"]([i.length],[],0,o,r)}return null}if(-1===i){const t=[];for(let n=0,i=e.length;n<i;n++)t[n]=a(n);return t}const l=Math.round(i*t.typicalHalfwidthCharacterWidth);2!==r&&3!==r||(r=1);const c=document.createElement("div");p["a"].applyFontInfoSlow(c,t);const u=Object(Qe["a"])(1e4),h=[],d=[],f=[],g=[],m=[];for(let p=0;p<e.length;p++){const i=Dn["b"].applyInjectedText(e[p],o[p]);let s=0,a=0,c=l;if(0!==r)if(s=Te["v"](i),-1===s)s=0;else{for(let t=0;t<s;t++){const e=9===i.charCodeAt(t)?n-a%n:1;a+=e}const e=Math.ceil(t.spaceWidth*a);e+t.typicalFullwidthCharacterWidth>l?(s=0,a=0):c=l-e}const v=i.substr(s),b=or(v,a,n,c,u);h[p]=s,d[p]=a,f[p]=v,g[p]=b[0],m[p]=b[1]}const v=u.build(),b=null!==(s=null===nr||void 0===nr?void 0:nr.createHTML(v))&&void 0!==s?s:v;c.innerHTML=b,c.style.position="absolute",c.style.top="10000",c.style.wordWrap="break-word",document.body.appendChild(c);let y=document.createRange();const _=Array.prototype.slice.call(c.children,0);let w=[];for(let p=0;p<e.length;p++){const e=_[p],t=sr(y,e,f[p],g[p]);if(null===t){w[p]=a(p);continue}const n=h[p],i=d[p],r=m[p],s=[];for(let o=0,a=t.length;o<a;o++)s[o]=r[t[o]];if(0!==n)for(let o=0,a=t.length;o<a;o++)t[o]+=n;let l,c;const u=o[p];u?(l=u.map(e=>e.options),c=u.map(e=>e.column-1)):(l=null,c=null),w[p]=new Mt["b"](t,s,i,c,l)}return document.body.removeChild(c),w}function or(e,t,n,i,r){r.appendASCIIString('<div style="width:'),r.appendASCIIString(String(i)),r.appendASCIIString('px;">');const o=e.length;let s=t,a=0,l=[],c=[],u=0<o?e.charCodeAt(0):0;r.appendASCIIString("<span>");for(let h=0;h<o;h++){0!==h&&h%16384===0&&r.appendASCIIString("</span><span>"),l[h]=a,c[h]=s;const t=u;u=h+1<o?e.charCodeAt(h+1):0;let i=1,d=1;switch(t){case 9:i=n-s%n,d=i;for(let e=1;e<=i;e++)e<i?r.write1(160):r.appendASCII(32);break;case 32:32===u?r.write1(160):r.appendASCII(32);break;case 60:r.appendASCIIString("<");break;case 62:r.appendASCIIString(">");break;case 38:r.appendASCIIString("&");break;case 0:r.appendASCIIString("�");break;case 65279:case 8232:case 8233:case 133:r.write1(65533);break;default:Te["E"](t)&&d++,t<32?r.write1(9216+t):r.write1(t)}a+=i,s+=d}return r.appendASCIIString("</span>"),l[e.length]=a,c[e.length]=s,r.appendASCIIString("</div>"),[l,c]}function sr(e,t,n,i){if(n.length<=1)return null;const r=Array.prototype.slice.call(t.children,0),o=[];try{ar(e,r,i,0,null,n.length-1,null,o)}catch(s){return console.log(s),null}return 0===o.length?null:(o.push(n.length),o)}function ar(e,t,n,i,r,o,s,a){if(i===o)return;if(r=r||lr(e,t,n[i],n[i+1]),s=s||lr(e,t,n[o],n[o+1]),Math.abs(r[0].top-s[0].top)<=.1)return;if(i+1===o)return void a.push(o);const l=i+(o-i)/2|0,c=lr(e,t,n[l],n[l+1]);ar(e,t,n,i,r,l,c,a),ar(e,t,n,l,c,o,s,a)}function lr(e,t,n,i){return e.setStart(t[n/16384|0].firstChild,n%16384),e.setEnd(t[i/16384|0].firstChild,i%16384),e.getClientRects()}var cr=n("d48d"),ur=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},hr=function(e,t){return function(n,i){t(n,i,e)}};let dr=0;class fr{constructor(e,t,n,i,r){this.model=e,this.viewModel=t,this.view=n,this.hasRealView=i,this.listenersToRemove=r}dispose(){Object(d["f"])(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}let pr=class e extends d["a"]{constructor(e,t,n,i,o,s,a,l,c,d){super(),this._onDidDispose=this._register(new h["b"]),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new h["b"]),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new h["b"]),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new h["b"]),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new h["b"]),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new h["b"]),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeConfiguration=this._register(new h["b"]),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onDidChangeModel=this._register(new h["b"]),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new h["b"]),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new h["b"]),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new h["b"]),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new h["b"]),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new gr),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new gr),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new h["b"]),this.onWillType=this._onWillType.event,this._onDidType=this._register(new h["b"]),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new h["b"]),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new h["b"]),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new h["b"]),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new h["b"]),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new h["b"]),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new h["b"]),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new h["b"]),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new h["b"]),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onContextMenu=this._register(new h["b"]),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new h["b"]),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new h["b"]),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new h["b"]),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new h["b"]),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new h["b"]),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new h["b"]),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new h["b"]),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new h["b"]),this.onDidChangeViewZones=this._onDidChangeViewZones.event;const f=Object.assign({},t);let p;this._domElement=e,this._overflowWidgetsDomNode=f.overflowWidgetsDomNode,delete f.overflowWidgetsDomNode,this._id=++dr,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this.isSimpleWidget=n.isSimpleWidget||!1,this._telemetryData=n.telemetryData,this._configuration=this._register(this._createConfiguration(f,d)),this._register(this._configuration.onDidChange(e=>{this._onDidChangeConfiguration.fire(e);const t=this._configuration.options;if(e.hasChanged(129)){const e=t.get(129);this._onDidLayoutChange.fire(e)}})),this._contextKeyService=this._register(a.createScoped(this._domElement)),this._notificationService=c,this._codeEditorService=o,this._commandService=s,this._themeService=l,this._register(new mr(this,this._contextKeyService)),this._register(new vr(this,this._contextKeyService)),this._instantiationService=i.createChild(new Wi["a"]([Fi["b"],this._contextKeyService])),this._modelData=null,this._contributions={},this._actions={},this._focusTracker=new br(e),this._register(this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())})),this._contentWidgets={},this._overlayWidgets={},p=Array.isArray(n.contributions)?n.contributions:r["d"].getEditorContributions();for(const r of p)if(this._contributions[r.id])Object(u["e"])(new Error("Cannot have two contributions with the same id "+r.id));else try{const e=this._instantiationService.createInstance(r.ctor,this);this._contributions[r.id]=e}catch(g){Object(u["e"])(g)}r["d"].getEditorActions().forEach(e=>{if(this._actions[e.id])return void Object(u["e"])(new Error("Cannot have two actions with the same id "+e.id));const t=new si["a"](e.id,e.label,e.alias,Object(Hi["o"])(e.precondition),()=>this._instantiationService.invokeFunction(t=>Promise.resolve(e.runEditorCommand(t,this,null))),this._contextKeyService);this._actions[t.id]=t}),this._codeEditorService.addCodeEditor(this)}_createConfiguration(e,t){return new p["a"](this.isSimpleWidget,e,this._domElement,t)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return ai["a"].ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose();const e=Object.keys(this._contributions);for(let t=0,n=e.length;t<n;t++){const n=e[t];this._contributions[n].dispose()}this._contributions={},this._actions={},this._contentWidgets={},this._overlayWidgets={},this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(e){return this._instantiationService.invokeFunction(e)}updateOptions(e){this._configuration.updateOptions(e)}getOptions(){return this._configuration.options}getOption(e){return this._configuration.options.get(e)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(e){return this._modelData?cr["a"].getWordAtPosition(this._modelData.model,this._configuration.options.get(115),e):null}getValue(e=null){if(!this._modelData)return"";const t=!(!e||!e.preserveBOM);let 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)}setValue(e){this._modelData&&this._modelData.model.setValue(e)}getModel(){return this._modelData?this._modelData.model:null}setModel(e=null){const t=e;if(null===this._modelData&&null===t)return;if(this._modelData&&this._modelData.model===t)return;const n=this.hasTextFocus(),i=this._detachModel();this._attachModel(t),n&&this.hasModel()&&this.focus();const r={oldModelUrl:i?i.uri:null,newModelUrl:t?t.uri:null};this._removeDecorationTypes(),this._onDidChangeModel.fire(r),this._postDetachModelCleanup(i)}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(let e in this._decorationTypeSubtypes){const t=this._decorationTypeSubtypes[e];for(let n in t)this._removeDecorationType(e+"-"+n)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetForPosition(e,t,n){const i=e.model.validatePosition({lineNumber:t,column:n}),r=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(i);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(r.lineNumber)}getTopForLineNumber(t){return this._modelData?e._getVerticalOffsetForPosition(this._modelData,t,1):-1}getTopForPosition(t,n){return this._modelData?e._getVerticalOffsetForPosition(this._modelData,t,n):-1}setHiddenAreas(e){this._modelData&&this._modelData.viewModel.setHiddenAreas(e.map(e=>se["a"].lift(e)))}getVisibleColumnFromPosition(e){if(!this._modelData)return e.column;const t=this._modelData.model.validatePosition(e),n=this._modelData.model.getOptions().tabSize;return ae["a"].visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,n)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(e){if(this._modelData){if(!oe["a"].isIPosition(e))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections("api",[{selectionStartLineNumber:e.lineNumber,selectionStartColumn:e.column,positionLineNumber:e.lineNumber,positionColumn:e.column}])}}_sendRevealRange(e,t,n,i){if(!this._modelData)return;if(!se["a"].isIRange(e))throw new Error("Invalid arguments");const r=this._modelData.model.validateRange(e),o=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(r);this._modelData.viewModel.revealRange("api",n,o,t,i)}revealLine(e,t=0){this._revealLine(e,0,t)}revealLineInCenter(e,t=0){this._revealLine(e,1,t)}revealLineInCenterIfOutsideViewport(e,t=0){this._revealLine(e,2,t)}revealLineNearTop(e,t=0){this._revealLine(e,5,t)}_revealLine(e,t,n){if("number"!==typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new se["a"](e,1,e,1),t,!1,n)}revealPosition(e,t=0){this._revealPosition(e,0,!0,t)}revealPositionInCenter(e,t=0){this._revealPosition(e,1,!0,t)}revealPositionInCenterIfOutsideViewport(e,t=0){this._revealPosition(e,2,!0,t)}revealPositionNearTop(e,t=0){this._revealPosition(e,5,!0,t)}_revealPosition(e,t,n,i){if(!oe["a"].isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new se["a"](e.lineNumber,e.column,e.lineNumber,e.column),t,n,i)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(e){const t=v["a"].isISelection(e),n=se["a"].isIRange(e);if(!t&&!n)throw new Error("Invalid arguments");if(t)this._setSelectionImpl(e);else if(n){const t={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(t)}}_setSelectionImpl(e){if(!this._modelData)return;const t=new v["a"](e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.viewModel.setSelections("api",[t])}revealLines(e,t,n=0){this._revealLines(e,t,0,n)}revealLinesInCenter(e,t,n=0){this._revealLines(e,t,1,n)}revealLinesInCenterIfOutsideViewport(e,t,n=0){this._revealLines(e,t,2,n)}revealLinesNearTop(e,t,n=0){this._revealLines(e,t,5,n)}_revealLines(e,t,n,i){if("number"!==typeof e||"number"!==typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new se["a"](e,1,t,1),n,!1,i)}revealRange(e,t=0,n=!1,i=!0){this._revealRange(e,n?1:0,i,t)}revealRangeInCenter(e,t=0){this._revealRange(e,1,!0,t)}revealRangeInCenterIfOutsideViewport(e,t=0){this._revealRange(e,2,!0,t)}revealRangeNearTop(e,t=0){this._revealRange(e,5,!0,t)}revealRangeNearTopIfOutsideViewport(e,t=0){this._revealRange(e,6,!0,t)}revealRangeAtTop(e,t=0){this._revealRange(e,3,!0,t)}_revealRange(e,t,n,i){if(!se["a"].isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(se["a"].lift(e),t,n,i)}setSelections(e,t="api",n=0){if(this._modelData){if(!e||0===e.length)throw new Error("Invalid arguments");for(let t=0,n=e.length;t<n;t++)if(!v["a"].isISelection(e[t]))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(t,e,n)}}getContentWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1}getScrollWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1}getScrollLeft(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1}getContentHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1}getScrollHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1}getScrollTop(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1}setScrollLeft(e,t=1){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.setScrollPosition({scrollLeft:e},t)}}setScrollTop(e,t=1){if(this._modelData){if("number"!==typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.setScrollPosition({scrollTop:e},t)}}setScrollPosition(e,t=1){this._modelData&&this._modelData.viewModel.setScrollPosition(e,t)}saveViewState(){if(!this._modelData)return null;const e={},t=Object.keys(this._contributions);for(const r of t){const t=this._contributions[r];"function"===typeof t.saveViewState&&(e[r]=t.saveViewState())}const n=this._modelData.viewModel.saveCursorState(),i=this._modelData.viewModel.saveState();return{cursorState:n,viewState:i,contributionsState:e}}restoreViewState(e){if(!this._modelData||!this._modelData.hasRealView)return;const t=e;if(t&&t.cursorState&&t.viewState){const e=t.cursorState;Array.isArray(e)?this._modelData.viewModel.restoreCursorState(e):this._modelData.viewModel.restoreCursorState([e]);const n=t.contributionsState||{},i=Object.keys(this._contributions);for(let t=0,o=i.length;t<o;t++){const e=i[t],r=this._contributions[e];"function"===typeof r.restoreViewState&&r.restoreViewState(n[e])}const r=this._modelData.viewModel.reduceRestoreState(t.viewState);this._modelData.view.restoreState(r)}}getContribution(e){return this._contributions[e]||null}getActions(){const e=[],t=Object.keys(this._actions);for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(this._actions[i])}return e}getSupportedActions(){let e=this.getActions();return e=e.filter(e=>e.isSupported()),e}getAction(e){return this._actions[e]||null}trigger(e,t,n){switch(n=n||{},t){case"compositionStart":return void this._startComposition();case"compositionEnd":return void this._endComposition(e);case"type":{const t=n;return void this._type(e,t.text||"")}case"replacePreviousChar":{const t=n;return void this._compositionType(e,t.text||"",t.replaceCharCnt||0,0,0)}case"compositionType":{const t=n;return void this._compositionType(e,t.text||"",t.replacePrevCharCnt||0,t.replaceNextCharCnt||0,t.positionDelta||0)}case"paste":{const t=n;return void this._paste(e,t.text||"",t.pasteOnNewLine||!1,t.multicursorText||null,t.mode||null)}case"cut":return void this._cut(e)}const i=this.getAction(t);i?Promise.resolve(i.run()).then(void 0,u["e"]):this._modelData&&(this._triggerEditorCommand(e,t,n)||this._triggerCommand(t,n))}_triggerCommand(e,t){this._commandService.executeCommand(e,t)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(e){this._modelData&&(this._modelData.viewModel.endComposition(e),this._onDidCompositionEnd.fire())}_type(e,t){this._modelData&&0!==t.length&&("keyboard"===e&&this._onWillType.fire(t),this._modelData.viewModel.type(t,e),"keyboard"===e&&this._onDidType.fire(t))}_compositionType(e,t,n,i,r){this._modelData&&this._modelData.viewModel.compositionType(t,n,i,r,e)}_paste(e,t,n,i,r){if(!this._modelData||0===t.length)return;const o=this._modelData.viewModel.getSelection().getStartPosition();this._modelData.viewModel.paste(t,n,i,e);const s=this._modelData.viewModel.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire({range:new se["a"](o.lineNumber,o.column,s.lineNumber,s.column),mode:r})}_cut(e){this._modelData&&this._modelData.viewModel.cut(e)}_triggerEditorCommand(e,t,n){const i=r["d"].getEditorCommand(t);return!!i&&(n=n||{},n.source=e,this._instantiationService.invokeFunction(e=>{Promise.resolve(i.runEditorCommand(e,this,n)).then(void 0,u["e"])}),!0)}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!!this._modelData&&(!this._configuration.options.get(79)&&(this._modelData.model.pushStackElement(),!0))}popUndoStop(){return!!this._modelData&&(!this._configuration.options.get(79)&&(this._modelData.model.popStackElement(),!0))}executeEdits(e,t,n){if(!this._modelData)return!1;if(this._configuration.options.get(79))return!1;let i;return i=n?Array.isArray(n)?()=>n:n:()=>null,this._modelData.viewModel.executeEdits(e,t,i),!0}executeCommand(e,t){this._modelData&&this._modelData.viewModel.executeCommand(t,e)}executeCommands(e,t){this._modelData&&this._modelData.viewModel.executeCommands(t,e)}changeDecorations(e){return this._modelData?this._modelData.model.changeDecorations(e,this._id):null}getLineDecorations(e){return this._modelData?this._modelData.model.getLineDecorations(e,this._id,Object($["m"])(this._configuration.options)):null}deltaDecorations(e,t){return this._modelData?0===e.length&&0===t.length?e:this._modelData.model.deltaDecorations(e,t,this._id):[]}removeDecorations(e){const t=this._decorationTypeKeysToIds[e];t&&this.deltaDecorations(t,[]),this._decorationTypeKeysToIds.hasOwnProperty(e)&&delete this._decorationTypeKeysToIds[e],this._decorationTypeSubtypes.hasOwnProperty(e)&&delete this._decorationTypeSubtypes[e]}getLayoutInfo(){const e=this._configuration.options,t=e.get(129);return t}createOverviewRuler(e){return this._modelData&&this._modelData.hasRealView?this._modelData.view.createOverviewRuler(e):null}getContainerDomNode(){return this._domElement}getDomNode(){return this._modelData&&this._modelData.hasRealView?this._modelData.view.domNode.domNode:null}delegateVerticalScrollbarMouseDown(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.delegateVerticalScrollbarMouseDown(e)}layout(e){this._configuration.observeReferenceElement(e),this.render()}focus(){this._modelData&&this._modelData.hasRealView&&this._modelData.view.focus()}hasTextFocus(){return!(!this._modelData||!this._modelData.hasRealView)&&this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(e){const t={widget:e,position:e.getPosition()};this._contentWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting a content widget with the same id."),this._contentWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(t)}layoutContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const n=this._contentWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(n)}}removeContentWidget(e){const t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){const e=this._contentWidgets[t];delete this._contentWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(e)}}addOverlayWidget(e){const t={widget:e,position:e.getPosition()};this._overlayWidgets.hasOwnProperty(e.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[e.getId()]=t,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(t)}layoutOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const n=this._overlayWidgets[t];n.position=e.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(n)}}removeOverlayWidget(e){const t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){const e=this._overlayWidgets[t];delete this._overlayWidgets[t],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(e)}}changeViewZones(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.change(e)}getTargetAtClientPoint(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getTargetAtClientPoint(e,t):null}getScrolledVisiblePosition(t){if(!this._modelData||!this._modelData.hasRealView)return null;const n=this._modelData.model.validatePosition(t),i=this._configuration.options,r=i.get(129),o=e._getVerticalOffsetForPosition(this._modelData,n.lineNumber,n.column)-this.getScrollTop(),s=this._modelData.view.getOffsetForColumn(n.lineNumber,n.column)+r.glyphMarginWidth+r.lineNumbersWidth+r.decorationsWidth-this.getScrollLeft();return{top:o,left:s,height:i.get(57)}}getOffsetForColumn(e,t){return this._modelData&&this._modelData.hasRealView?this._modelData.view.getOffsetForColumn(e,t):-1}render(e=!1){this._modelData&&this._modelData.hasRealView&&this._modelData.view.render(!0,e)}setAriaOptions(e){this._modelData&&this._modelData.hasRealView&&this._modelData.view.setAriaOptions(e)}applyFontInfo(e){p["a"].applyFontInfoSlow(e,this._configuration.options.get(41))}_attachModel(e){if(!e)return void(this._modelData=null);const t=[];this._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines()),this._configuration.setMaxLineNumber(e.getLineCount()),e.onBeforeAttached();const n=new ji(this._id,this._configuration,e,ir.create(),Gi.create(this._configuration.options),e=>c["V"](e));t.push(e.onDidChangeDecorations(e=>this._onDidChangeModelDecorations.fire(e))),t.push(e.onDidChangeLanguage(t=>{this._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language),this._onDidChangeModelLanguage.fire(t)})),t.push(e.onDidChangeLanguageConfiguration(e=>this._onDidChangeModelLanguageConfiguration.fire(e))),t.push(e.onDidChangeContent(e=>this._onDidChangeModelContent.fire(e))),t.push(e.onDidChangeOptions(e=>this._onDidChangeModelOptions.fire(e))),t.push(e.onWillDispose(()=>this.setModel(null))),t.push(n.onEvent(e=>{switch(e.kind){case 0:this._onDidContentSizeChange.fire(e);break;case 1:this._editorTextFocus.setValue(e.hasFocus);break;case 2:this._onDidScrollChange.fire(e);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidAttemptReadOnlyEdit.fire();break;case 5:{e.reachedMaxCursorCount&&this._notificationService.warn(l["a"]("cursors.maximum","The number of cursors has been limited to {0}.",ri.MAX_CURSOR_COUNT));const t=[];for(let r=0,o=e.selections.length;r<o;r++)t[r]=e.selections[r].getPosition();const n={position:t[0],secondaryPositions:t.slice(1),reason:e.reason,source:e.source};this._onDidChangeCursorPosition.fire(n);const i={selection:e.selections[0],secondarySelections:e.selections.slice(1),modelVersionId:e.modelVersionId,oldSelections:e.oldSelections,oldModelVersionId:e.oldModelVersionId,source:e.source,reason:e.reason};this._onDidChangeCursorSelection.fire(i);break}}}));const[i,r]=this._createView(n);if(r){this._domElement.appendChild(i.domNode.domNode);let t=Object.keys(this._contentWidgets);for(let e=0,n=t.length;e<n;e++){const n=t[e];i.addContentWidget(this._contentWidgets[n])}t=Object.keys(this._overlayWidgets);for(let e=0,n=t.length;e<n;e++){const n=t[e];i.addOverlayWidget(this._overlayWidgets[n])}i.render(!1,!0),i.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new fr(e,n,i,r,t)}_createView(e){let t;t=this.isSimpleWidget?{paste:(e,t,n,i)=>{this._paste("keyboard",e,t,n,i)},type:e=>{this._type("keyboard",e)},compositionType:(e,t,n,i)=>{this._compositionType("keyboard",e,t,n,i)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:{paste:(e,t,n,i)=>{const r={text:e,pasteOnNewLine:t,multicursorText:n,mode:i};this._commandService.executeCommand("paste",r)},type:e=>{const t={text:e};this._commandService.executeCommand("type",t)},compositionType:(e,t,n,i)=>{if(n||i){const r={text:e,replacePrevCharCnt:t,replaceNextCharCnt:n,positionDelta:i};this._commandService.executeCommand("compositionType",r)}else{const n={text:e,replaceCharCnt:t};this._commandService.executeCommand("replacePreviousChar",n)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const n=new Ye(e.coordinatesConverter);n.onKeyDown=e=>this._onKeyDown.fire(e),n.onKeyUp=e=>this._onKeyUp.fire(e),n.onContextMenu=e=>this._onContextMenu.fire(e),n.onMouseMove=e=>this._onMouseMove.fire(e),n.onMouseLeave=e=>this._onMouseLeave.fire(e),n.onMouseDown=e=>this._onMouseDown.fire(e),n.onMouseUp=e=>this._onMouseUp.fire(e),n.onMouseDrag=e=>this._onMouseDrag.fire(e),n.onMouseDrop=e=>this._onMouseDrop.fire(e),n.onMouseDropCanceled=e=>this._onMouseDropCanceled.fire(e),n.onMouseWheel=e=>this._onMouseWheel.fire(e);const i=new Sn(t,this._configuration,this._themeService,e,n,this._overflowWidgetsDomNode);return[i,!0]}_postDetachModelCleanup(e){e&&e.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){if(!this._modelData)return null;const 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.contains(t)&&this._domElement.removeChild(t),e}_removeDecorationType(e){this._codeEditorService.removeDecorationType(e)}hasModel(){return null!==this._modelData}};pr=ur([hr(3,Bi["a"]),hr(4,g["a"]),hr(5,Ri["b"]),hr(6,Fi["b"]),hr(7,je["b"]),hr(8,Vi["a"]),hr(9,zi["b"])],pr);class gr extends d["a"]{constructor(){super(),this._onDidChangeToTrue=this._register(new h["b"]),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new h["b"]),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(e){const t=e?2:1;this._value!==t&&(this._value=t,2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire())}}class mr extends d["a"]{constructor(e,t){super(),this._editor=e,t.createKey("editorId",e.getId()),this._editorSimpleInput=li["a"].editorSimpleInput.bindTo(t),this._editorFocus=li["a"].focus.bindTo(t),this._textInputFocus=li["a"].textInputFocus.bindTo(t),this._editorTextFocus=li["a"].editorTextFocus.bindTo(t),this._editorTabMovesFocus=li["a"].tabMovesFocus.bindTo(t),this._editorReadonly=li["a"].readOnly.bindTo(t),this._inDiffEditor=li["a"].inDiffEditor.bindTo(t),this._editorColumnSelection=li["a"].columnSelection.bindTo(t),this._hasMultipleSelections=li["a"].hasMultipleSelections.bindTo(t),this._hasNonEmptySelection=li["a"].hasNonEmptySelection.bindTo(t),this._canUndo=li["a"].canUndo.bindTo(t),this._canRedo=li["a"].canRedo.bindTo(t),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromConfig())),this._register(this._editor.onDidChangeCursorSelection(()=>this._updateFromSelection())),this._register(this._editor.onDidFocusEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidFocusEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidChangeModel(()=>this._updateFromModel())),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromModel())),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const e=this._editor.getOptions();this._editorTabMovesFocus.set(e.get(128)),this._editorReadonly.set(e.get(79)),this._inDiffEditor.set(e.get(52)),this._editorColumnSelection.set(e.get(16))}_updateFromSelection(){const e=this._editor.getSelections();e?(this._hasMultipleSelections.set(e.length>1),this._hasNonEmptySelection.set(e.some(e=>!e.isEmpty()))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))}}class vr extends d["a"]{constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this._langId=li["a"].languageId.bindTo(t),this._hasCompletionItemProvider=li["a"].hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=li["a"].hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=li["a"].hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=li["a"].hasDefinitionProvider.bindTo(t),this._hasDeclarationProvider=li["a"].hasDeclarationProvider.bindTo(t),this._hasImplementationProvider=li["a"].hasImplementationProvider.bindTo(t),this._hasTypeDefinitionProvider=li["a"].hasTypeDefinitionProvider.bindTo(t),this._hasHoverProvider=li["a"].hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=li["a"].hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=li["a"].hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=li["a"].hasReferenceProvider.bindTo(t),this._hasRenameProvider=li["a"].hasRenameProvider.bindTo(t),this._hasSignatureHelpProvider=li["a"].hasSignatureHelpProvider.bindTo(t),this._hasInlayHintsProvider=li["a"].hasInlayHintsProvider.bindTo(t),this._hasDocumentFormattingProvider=li["a"].hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=li["a"].hasDocumentSelectionFormattingProvider.bindTo(t),this._hasMultipleDocumentFormattingProvider=li["a"].hasMultipleDocumentFormattingProvider.bindTo(t),this._hasMultipleDocumentSelectionFormattingProvider=li["a"].hasMultipleDocumentSelectionFormattingProvider.bindTo(t),this._isInWalkThrough=li["a"].isInWalkThroughSnippet.bindTo(t);const n=()=>this._update();this._register(e.onDidChangeModel(n)),this._register(e.onDidChangeModelLanguage(n)),this._register(Dt["d"].onDidChange(n)),this._register(Dt["a"].onDidChange(n)),this._register(Dt["b"].onDidChange(n)),this._register(Dt["f"].onDidChange(n)),this._register(Dt["e"].onDidChange(n)),this._register(Dt["q"].onDidChange(n)),this._register(Dt["G"].onDidChange(n)),this._register(Dt["p"].onDidChange(n)),this._register(Dt["i"].onDidChange(n)),this._register(Dt["m"].onDidChange(n)),this._register(Dt["y"].onDidChange(n)),this._register(Dt["z"].onDidChange(n)),this._register(Dt["g"].onDidChange(n)),this._register(Dt["j"].onDidChange(n)),this._register(Dt["B"].onDidChange(n)),this._register(Dt["r"].onDidChange(n)),n()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents(()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()})}_update(){const e=this._editor.getModel();e?this._contextKeyService.bufferChangeEvents(()=>{this._langId.set(e.getLanguageIdentifier().language),this._hasCompletionItemProvider.set(Dt["d"].has(e)),this._hasCodeActionsProvider.set(Dt["a"].has(e)),this._hasCodeLensProvider.set(Dt["b"].has(e)),this._hasDefinitionProvider.set(Dt["f"].has(e)),this._hasDeclarationProvider.set(Dt["e"].has(e)),this._hasImplementationProvider.set(Dt["q"].has(e)),this._hasTypeDefinitionProvider.set(Dt["G"].has(e)),this._hasHoverProvider.set(Dt["p"].has(e)),this._hasDocumentHighlightProvider.set(Dt["i"].has(e)),this._hasDocumentSymbolProvider.set(Dt["m"].has(e)),this._hasReferenceProvider.set(Dt["y"].has(e)),this._hasRenameProvider.set(Dt["z"].has(e)),this._hasSignatureHelpProvider.set(Dt["B"].has(e)),this._hasInlayHintsProvider.set(Dt["r"].has(e)),this._hasDocumentFormattingProvider.set(Dt["g"].has(e)||Dt["j"].has(e)),this._hasDocumentSelectionFormattingProvider.set(Dt["j"].has(e)),this._hasMultipleDocumentFormattingProvider.set(Dt["g"].all(e).length+Dt["j"].all(e).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(Dt["j"].all(e).length>1),this._isInWalkThrough.set(e.uri.scheme===f["c"].walkThroughSnippet)}):this.reset()}}class br extends d["a"]{constructor(e){super(),this._onChange=this._register(new h["b"]),this.onChange=this._onChange.event,this._hasFocus=!1,this._domFocusTracker=this._register(c["Y"](e)),this._register(this._domFocusTracker.onDidFocus(()=>{this._hasFocus=!0,this._onChange.fire(void 0)})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasFocus=!1,this._onChange.fire(void 0)}))}hasFocus(){return this._hasFocus}}const yr=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='"),_r=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 wr(e){return yr+encodeURIComponent(e.toString())+_r}const Cr=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),Sr=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');function xr(e){return Cr+encodeURIComponent(e.toString())+Sr}Object(je["f"])((e,t)=>{const n=e.getColor(Tt["t"]);n&&t.addRule(`.monaco-editor .squiggly-error { border-bottom: 4px double ${n}; }`);const i=e.getColor(Tt["u"]);i&&t.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${wr(i)}") repeat-x bottom left; }`);const r=e.getColor(Tt["s"]);r&&t.addRule(`.monaco-editor .squiggly-error::before { display: block; content: ''; width: 100%; height: 100%; background: ${r}; }`);const o=e.getColor(Tt["W"]);o&&t.addRule(`.monaco-editor .squiggly-warning { border-bottom: 4px double ${o}; }`);const s=e.getColor(Tt["X"]);s&&t.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${wr(s)}") repeat-x bottom left; }`);const a=e.getColor(Tt["V"]);a&&t.addRule(`.monaco-editor .squiggly-warning::before { display: block; content: ''; width: 100%; height: 100%; background: ${a}; }`);const l=e.getColor(Tt["L"]);l&&t.addRule(`.monaco-editor .squiggly-info { border-bottom: 4px double ${l}; }`);const c=e.getColor(Tt["M"]);c&&t.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${wr(c)}") repeat-x bottom left; }`);const u=e.getColor(Tt["K"]);u&&t.addRule(`.monaco-editor .squiggly-info::before { display: block; content: ''; width: 100%; height: 100%; background: ${u}; }`);const h=e.getColor(Tt["C"]);h&&t.addRule(`.monaco-editor .squiggly-hint { border-bottom: 2px dotted ${h}; }`);const d=e.getColor(Tt["D"]);d&&t.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${xr(d)}") no-repeat bottom left; }`);const f=e.getColor(Pe["p"]);f&&t.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${f.rgba.a}; }`);const p=e.getColor(Pe["o"]);p&&t.addRule(`.monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed ${p}; }`);const g=e.getColor(Tt["B"])||"inherit";t.addRule(`.monaco-editor.showDeprecated .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: ${g}}`)})},"9c3e":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));class i{constructor(e){this._prefix=e,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const r=new i("id#")},"9c41":function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){e["DARK"]="dark",e["LIGHT"]="light",e["HIGH_CONTRAST"]="hc"}(i||(i={}))},"9cf9":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return s}));var i=Math.round;function r(e,t,n){if(t){var r=t.x1,o=t.x2,a=t.y1,l=t.y2;e.x1=r,e.x2=o,e.y1=a,e.y2=l;var c=n&&n.lineWidth;return c?(i(2*r)===i(2*o)&&(e.x1=e.x2=s(r,c,!0)),i(2*a)===i(2*l)&&(e.y1=e.y2=s(a,c,!0)),e):e}}function o(e,t,n){if(t){var i=t.x,r=t.y,o=t.width,a=t.height;e.x=i,e.y=r,e.width=o,e.height=a;var l=n&&n.lineWidth;return l?(e.x=s(i,l,!0),e.y=s(r,l,!0),e.width=Math.max(s(i+o,l,!1)-e.x,0===o?0:1),e.height=Math.max(s(r+a,l,!1)-e.y,0===a?0:1),e):e}}function s(e,t,n){if(!t)return e;var r=i(2*e);return(r+i(t))%2===0?r/2:(r+(n?1:-1))/2}},"9d11":function(e,t,n){var i=n("fc5e"),r=Math.max,o=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):o(e,t)}},"9d37":function(e,t,n){"use strict";e.exports=r;var i=n("fe34");function r(e){if(!(this instanceof r))return new r(e);i.call(this,e)}n("3fb5")(r,i),r.prototype._transform=function(e,t,n){n(null,e)}},"9d48":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:function(){return n.e("chunk-2d0e5b34").then(n.bind(null,"9634"))}})},"9d57":function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"f",(function(){return m})),n.d(t,"c",(function(){return v})),n.d(t,"a",(function(){return b}));var i=n("6d8b"),r=n("3842"),o=n("ee1a"),s=n("cccd"),a=n("f658"),l="__ec_stack_";function c(e){return e.get("stack")||l+e.seriesIndex}function u(e){return e.dim+e.index}function h(e){var t=[],n=e.axis,r="axis0";if("category"===n.type){for(var o=n.getBandWidth(),s=0;s<e.count;s++)t.push(Object(i["defaults"])({bandWidth:o,axisKey:r,stackId:l+s},e));var a=g(t),c=[];for(s=0;s<e.count;s++){var u=a[r][l+s];u.offsetCenter=u.offset+u.width/2,c.push(u)}return c}}function d(e,t){var n=[];return t.eachSeriesByType(e,(function(e){y(e)&&n.push(e)})),n}function f(e){var t={};Object(i["each"])(e,(function(e){var n=e.coordinateSystem,i=n.getBaseAxis();if("time"===i.type||"value"===i.type)for(var r=e.getData(),o=i.dim+"_"+i.index,s=r.getDimensionIndex(r.mapDimension(i.dim)),a=r.getStore(),l=0,c=a.count();l<c;++l){var u=a.get(s,l);t[o]?t[o].push(u):t[o]=[u]}}));var n={};for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(o){o.sort((function(e,t){return e-t}));for(var s=null,a=1;a<o.length;++a){var l=o[a]-o[a-1];l>0&&(s=null===s?l:Math.min(s,l))}n[r]=s}}return n}function p(e){var t=f(e),n=[];return Object(i["each"])(e,(function(e){var i,o=e.coordinateSystem,s=o.getBaseAxis(),a=s.getExtent();if("category"===s.type)i=s.getBandWidth();else if("value"===s.type||"time"===s.type){var l=s.dim+"_"+s.index,h=t[l],d=Math.abs(a[1]-a[0]),f=s.scale.getExtent(),p=Math.abs(f[1]-f[0]);i=h?d/p*h:d}else{var g=e.getData();i=Math.abs(a[1]-a[0])/g.count()}var m=Object(r["q"])(e.get("barWidth"),i),v=Object(r["q"])(e.get("barMaxWidth"),i),b=Object(r["q"])(e.get("barMinWidth")||(_(e)?.5:1),i),y=e.get("barGap"),w=e.get("barCategoryGap");n.push({bandWidth:i,barWidth:m,barMaxWidth:v,barMinWidth:b,barGap:y,barCategoryGap:w,axisKey:u(s),stackId:c(e)})})),g(n)}function g(e){var t={};Object(i["each"])(e,(function(e,n){var i=e.axisKey,r=e.bandWidth,o=t[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},s=o.stacks;t[i]=o;var a=e.stackId;s[a]||o.autoWidthCount++,s[a]=s[a]||{width:0,maxWidth:0};var l=e.barWidth;l&&!s[a].width&&(s[a].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var c=e.barMaxWidth;c&&(s[a].maxWidth=c);var u=e.barMinWidth;u&&(s[a].minWidth=u);var h=e.barGap;null!=h&&(o.gap=h);var d=e.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return Object(i["each"])(t,(function(e,t){n[t]={};var o=e.stacks,s=e.bandWidth,a=e.categoryGap;if(null==a){var l=Object(i["keys"])(o).length;a=Math.max(35-4*l,15)+"%"}var c=Object(r["q"])(a,s),u=Object(r["q"])(e.gap,1),h=e.remainedWidth,d=e.autoWidthCount,f=(h-c)/(d+(d-1)*u);f=Math.max(f,0),Object(i["each"])(o,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){i=e.width;t&&(i=Math.min(i,t)),n&&(i=Math.max(i,n)),e.width=i,h-=i+u*i,d--}else{var i=f;t&&t<i&&(i=Math.min(t,h)),n&&n>i&&(i=n),i!==f&&(e.width=i,h-=i+u*i,d--)}})),f=(h-c)/(d+(d-1)*u),f=Math.max(f,0);var p,g=0;Object(i["each"])(o,(function(e,t){e.width||(e.width=f),p=e,g+=e.width*(1+u)})),p&&(g-=p.width*u);var m=-g/2;Object(i["each"])(o,(function(e,i){n[t][i]=n[t][i]||{bandWidth:s,offset:m,width:e.width},m+=e.width*(1+u)}))})),n}function m(e,t,n){if(e&&t){var i=e[u(t)];return null!=i&&null!=n?i[c(n)]:i}}function v(e,t){var n=d(e,t),r=p(n);Object(i["each"])(n,(function(e){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),o=c(e),s=r[u(i)][o],a=s.offset,l=s.width;t.setLayout({bandWidth:s.bandWidth,offset:a,size:l})}))}function b(e){return{seriesType:e,plan:Object(s["a"])(),reset:function(e){if(y(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),s=t.getDimensionIndex(t.mapDimension(r.dim)),l=t.getDimensionIndex(t.mapDimension(i.dim)),c=e.get("showBackground",!0),u=t.mapDimension(r.dim),h=t.getCalculationInfo("stackResultDimension"),d=Object(o["c"])(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=r.isHorizontal(),p=w(i,r),g=_(e),m=e.get("barMinHeight")||0,v=h&&t.getDimensionIndex(h),b=t.getLayout("size"),C=t.getLayout("offset");return{progress:function(e,t){var i,r=e.count,o=g&&Object(a["a"])(3*r),u=g&&c&&Object(a["a"])(3*r),h=g&&Object(a["a"])(r),y=n.master.getRect(),_=f?y.width:y.height,w=t.getStore(),S=0;while(null!=(i=e.next())){var x=w.get(d?v:s,i),O=w.get(l,i),k=p,L=void 0;d&&(L=+x-w.get(s,i));var E=void 0,D=void 0,I=void 0,M=void 0;if(f){var T=n.dataToPoint([x,O]);if(d){var A=n.dataToPoint([L,O]);k=A[0]}E=k,D=T[1]+C,I=T[0]-k,M=b,Math.abs(I)<m&&(I=(I<0?-1:1)*m)}else{T=n.dataToPoint([O,x]);if(d){A=n.dataToPoint([O,L]);k=A[1]}E=T[0]+C,D=k,I=b,M=T[1]-k,Math.abs(M)<m&&(M=(M<=0?-1:1)*m)}g?(o[S]=E,o[S+1]=D,o[S+2]=f?I:M,u&&(u[S]=f?y.x:E,u[S+1]=f?D:y.y,u[S+2]=_),h[i]=i):t.setItemLayout(i,{x:E,y:D,width:I,height:M}),S+=3}g&&t.setLayout({largePoints:o,largeDataIndices:h,largeBackgroundPoints:u,valueAxisHorizontal:f})}}}}}}function y(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function _(e){return e.pipelineContext&&e.pipelineContext.large}function w(e,t){var n=t.model.get("startValue");return n||(n=0),t.toGlobalCoord(t.dataToCoord("log"===t.type?n>0?n:1:n))}},"9d85":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.changeDefaultConfig=m,Object.defineProperty(t,"colorConfig",{enumerable:!0,get:function(){return i.colorConfig}}),Object.defineProperty(t,"gridConfig",{enumerable:!0,get:function(){return r.gridConfig}}),Object.defineProperty(t,"xAxisConfig",{enumerable:!0,get:function(){return o.xAxisConfig}}),Object.defineProperty(t,"yAxisConfig",{enumerable:!0,get:function(){return o.yAxisConfig}}),Object.defineProperty(t,"titleConfig",{enumerable:!0,get:function(){return s.titleConfig}}),Object.defineProperty(t,"lineConfig",{enumerable:!0,get:function(){return a.lineConfig}}),Object.defineProperty(t,"barConfig",{enumerable:!0,get:function(){return l.barConfig}}),Object.defineProperty(t,"pieConfig",{enumerable:!0,get:function(){return c.pieConfig}}),Object.defineProperty(t,"radarAxisConfig",{enumerable:!0,get:function(){return u.radarAxisConfig}}),Object.defineProperty(t,"radarConfig",{enumerable:!0,get:function(){return h.radarConfig}}),Object.defineProperty(t,"gaugeConfig",{enumerable:!0,get:function(){return d.gaugeConfig}}),Object.defineProperty(t,"legendConfig",{enumerable:!0,get:function(){return f.legendConfig}}),t.keys=void 0;var i=n("f3cb"),r=n("49bc"),o=n("c930"),s=n("887c"),a=n("6eb9"),l=n("f111"),c=n("222a"),u=n("0cd4"),h=n("3938"),d=n("cc6d"),f=n("60f1"),p=n("becb"),g={colorConfig:i.colorConfig,gridConfig:r.gridConfig,xAxisConfig:o.xAxisConfig,yAxisConfig:o.yAxisConfig,titleConfig:s.titleConfig,lineConfig:a.lineConfig,barConfig:l.barConfig,pieConfig:c.pieConfig,radarAxisConfig:u.radarAxisConfig,radarConfig:h.radarConfig,gaugeConfig:d.gaugeConfig,legendConfig:f.legendConfig};function m(e,t){g["".concat(e,"Config")]?(0,p.deepMerge)(g["".concat(e,"Config")],t):console.warn("Change default config Error - Invalid key!")}var v=["color","title","legend","xAxis","yAxis","grid","radarAxis","line","bar","pie","radar","gauge"];t.keys=v},"9e56":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));class i{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||""===this.value||e.value.startsWith(this.value+i.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new i(this.value+i.sep+e)}}function r(e,t){return!(e.include&&!e.include.intersects(t))&&((!e.excludes||!e.excludes.some(n=>s(t,n,e.include)))&&!(!e.includeSourceActions&&i.Source.contains(t)))}function o(e,t){const n=t.kind?new i(t.kind):void 0;return!!(!e.include||n&&e.include.contains(n))&&(!(e.excludes&&n&&e.excludes.some(t=>s(n,t,e.include)))&&(!(!e.includeSourceActions&&n&&i.Source.contains(n))&&!(e.onlyIncludePreferredActions&&!t.isPreferred)))}function s(e,t,n){return!!t.contains(e)&&(!n||!t.contains(n))}i.sep=".",i.None=new i("@@none@@"),i.Empty=new i(""),i.QuickFix=new i("quickfix"),i.Refactor=new i("refactor"),i.Source=new i("source"),i.SourceOrganizeImports=i.Source.append("organizeImports"),i.SourceFixAll=i.Source.append("fixAll");class a{constructor(e,t,n){this.kind=e,this.apply=t,this.preferred=n}static fromUser(e,t){return e&&"object"===typeof e?new a(a.getKindFromUser(e,t.kind),a.getApplyFromUser(e,t.apply),a.getPreferredUser(e)):new a(t.kind,t.apply,!1)}static getApplyFromUser(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}}static getKindFromUser(e,t){return"string"===typeof e.kind?new i(e.kind):t}static getPreferredUser(e){return"boolean"===typeof e.preferred&&e.preferred}}},"9e74":function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u}));var i=n("a666"),r=n("ef8e"),o=n("0a0f"),s=n("308f"),a=n("db88"),l=n("258a");const c=Object(o["c"])("commandService"),u=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new s["b"],this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,t){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){const t=[];for(let i of e.description.args)t.push(i.constraint);const n=e.handler;e.handler=function(e,...i){return Object(r["n"])(i,t),n(e,...i)}}const{id:n}=e;let o=this._commands.get(n);o||(o=new a["a"],this._commands.set(n,o));let s=o.unshift(e),l=Object(i["i"])(()=>{s();const e=this._commands.get(n);(null===e||void 0===e?void 0:e.isEmpty())&&this._commands.delete(n)});return this._onDidRegisterCommand.fire(n),l}registerCommandAlias(e,t){return u.registerCommand(e,(e,...n)=>e.get(c).executeCommand(t,...n))}getCommand(e){const t=this._commands.get(e);if(t&&!t.isEmpty())return l["a"].first(t)}getCommands(){const e=new Map;for(const t of this._commands.keys()){const n=this.getCommand(t);n&&e.set(t,n)}return e}};u.registerCommand("noop",()=>{})},"9eb0":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return n.e("chunk-2d0d7e63").then(n.bind(null,"797b"))}})},"9eb8":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("fe45"),r=n("30db"),o=n("9e74"),s=n("89cd");class a{constructor(){this._coreKeybindings=[],this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(e){if(1===r["a"]){if(e&&e.win)return e.win}else if(2===r["a"]){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e}registerKeybindingRule(e){const t=a.bindToCurrentPlatform(e);if(t&&t.primary){const n=Object(i["f"])(t.primary,r["a"]);n&&this._registerDefaultKeybinding(n,e.id,e.args,e.weight,0,e.when)}if(t&&Array.isArray(t.secondary))for(let n=0,o=t.secondary.length;n<o;n++){const o=t.secondary[n],s=Object(i["f"])(o,r["a"]);s&&this._registerDefaultKeybinding(s,e.id,e.args,e.weight,-n-1,e.when)}}registerCommandAndKeybindingRule(e){this.registerKeybindingRule(e),o["a"].registerCommand(e)}static _mightProduceChar(e){return e>=21&&e<=30||(e>=31&&e<=56||(80===e||81===e||82===e||83===e||84===e||85===e||86===e||110===e||111===e||87===e||88===e||89===e||90===e||91===e||92===e))}_assertNoCtrlAlt(e,t){e.ctrlKey&&e.altKey&&!e.metaKey&&a._mightProduceChar(e.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",e," for ",t)}_registerDefaultKeybinding(e,t,n,i,o,s){1===r["a"]&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e,command:t,commandArgs:n,when:s,weight1:i,weight2:o,extensionId:null,isBuiltinExtension:!1}),this._cachedMergedKeybindings=null}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(u)),this._cachedMergedKeybindings.slice(0)}}const l=new a,c={EditorModes:"platform.keybindingsRegistry"};function u(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}s["a"].add(c.EditorModes,l)},"9ede":function(e,t,n){e.exports=n("faa1").EventEmitter},"9ee1":function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};const n=Math.max(e.start,t.start),i=Math.min(e.end,t.end);return i-n<=0?{start:0,end:0}:{start:n,end:i}}function n(e){return e.end-e.start<=0}function i(e,i){return!n(t(e,i))}function r(e,t){const i=[],r={start:e.start,end:Math.min(t.start,e.end)},o={start:Math.max(t.end,e.start),end:e.end};return n(r)||i.push(r),n(o)||i.push(o),i}e.intersect=t,e.isEmpty=n,e.intersects=i,e.relativeComplement=r}(i||(i={}))},"9f4d":function(e,t,n){"use strict";n.r(t);var i=n("dff7"),r=n("fe45"),o=n("b2cc"),s=n("6a89"),a=n("c101"),l=n("d3f4"),c=n("7061"),u=n("8025"),h=n("70cb");class d{constructor(e,t){this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,n){if(n<0)return!1;const i=t.length,r=e.length;if(n+i>r)return!1;for(let o=0;o<i;o++){const i=e.charCodeAt(n+o),r=t.charCodeAt(o);if(i!==r&&(!(i>=65&&i<=90&&i+32===r)&&!(r>=65&&r<=90&&r+32===i)))return!1}return!0}_createOperationsForBlockComment(e,t,n,i,r,o){const a=e.startLineNumber,l=e.startColumn,c=e.endLineNumber,u=e.endColumn,h=r.getLineContent(a),f=r.getLineContent(c);let p,g=h.lastIndexOf(t,l-1+t.length),m=f.indexOf(n,u-1-n.length);if(-1!==g&&-1!==m)if(a===c){const e=h.substring(g+t.length,m);e.indexOf(n)>=0&&(g=-1,m=-1)}else{const e=h.substring(g+t.length),i=f.substring(0,m);(e.indexOf(n)>=0||i.indexOf(n)>=0)&&(g=-1,m=-1)}-1!==g&&-1!==m?(i&&g+t.length<h.length&&32===h.charCodeAt(g+t.length)&&(t+=" "),i&&m>0&&32===f.charCodeAt(m-1)&&(n=" "+n,m-=1),p=d._createRemoveBlockCommentOperations(new s["a"](a,g+t.length+1,c,m+1),t,n)):(p=d._createAddBlockCommentOperations(e,t,n,this._insertSpace),this._usedEndToken=1===p.length?n:null);for(const s of p)o.addTrackedEditOperation(s.range,s.text)}static _createRemoveBlockCommentOperations(e,t,n){let i=[];return s["a"].isEmpty(e)?i.push(l["a"].delete(new s["a"](e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+n.length))):(i.push(l["a"].delete(new s["a"](e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),i.push(l["a"].delete(new s["a"](e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+n.length)))),i}static _createAddBlockCommentOperations(e,t,n,i){let r=[];return s["a"].isEmpty(e)?r.push(l["a"].replace(new s["a"](e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+n)):(r.push(l["a"].insert(new c["a"](e.startLineNumber,e.startColumn),t+(i?" ":""))),r.push(l["a"].insert(new c["a"](e.endLineNumber,e.endColumn),(i?" ":"")+n))),r}getEditOperations(e,t){const n=this._selection.startLineNumber,i=this._selection.startColumn;e.tokenizeIfCheap(n);const r=e.getLanguageIdAtPosition(n,i),o=h["a"].getComments(r);o&&o.blockCommentStartToken&&o.blockCommentEndToken&&this._createOperationsForBlockComment(this._selection,o.blockCommentStartToken,o.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){const n=t.getInverseEditOperations();if(2===n.length){const e=n[0],t=n[1];return new u["a"](e.range.endLineNumber,e.range.endColumn,t.range.startLineNumber,t.range.startColumn)}{const e=n[0].range,t=this._usedEndToken?-this._usedEndToken.length-1:0;return new u["a"](e.endLineNumber,e.endColumn+t,e.endLineNumber,e.endColumn+t)}}}var f=n("3742");class p{constructor(e,t,n,i,r,o){this._selection=e,this._tabSize=t,this._type=n,this._insertSpace=i,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=r,this._ignoreFirstLine=o||!1}static _gatherPreflightCommentStrings(e,t,n){e.tokenizeIfCheap(t);const i=e.getLanguageIdAtPosition(t,1),r=h["a"].getComments(i),o=r?r.lineCommentToken:null;if(!o)return null;let s=[];for(let a=0,l=n-t+1;a<l;a++)s[a]={ignore:!1,commentStr:o,commentStrOffset:0,commentStrLength:o.length};return s}static _analyzeLines(e,t,n,i,r,o,s){let a,l=!0;a=0===e||1!==e;for(let c=0,u=i.length;c<u;c++){const u=i[c],h=r+c;if(h===r&&s){u.ignore=!0;continue}const p=n.getLineContent(h),g=f["v"](p);if(-1!==g){if(l=!1,u.ignore=!1,u.commentStrOffset=g,a&&!d._haystackHasNeedleAtOffset(p,u.commentStr,g)&&(0===e?a=!1:1===e||(u.ignore=!0)),a&&t){const e=g+u.commentStrLength;e<p.length&&32===p.charCodeAt(e)&&(u.commentStrLength+=1)}}else u.ignore=o,u.commentStrOffset=p.length}if(0===e&&l){a=!1;for(let e=0,t=i.length;e<t;e++)i[e].ignore=!1}return{supported:!0,shouldRemoveComments:a,lines:i}}static _gatherPreflightData(e,t,n,i,r,o,s){const a=p._gatherPreflightCommentStrings(n,i,r);return null===a?{supported:!1}:p._analyzeLines(e,t,n,a,i,o,s)}_executeLineComments(e,t,n,i){let r;n.shouldRemoveComments?r=p._createRemoveLineCommentsOperations(n.lines,i.startLineNumber):(p._normalizeInsertionPoint(e,n.lines,i.startLineNumber,this._tabSize),r=this._createAddLineCommentsOperations(n.lines,i.startLineNumber));const o=new c["a"](i.positionLineNumber,i.positionColumn);for(let a=0,l=r.length;a<l;a++)if(t.addEditOperation(r[a].range,r[a].text),s["a"].isEmpty(r[a].range)&&s["a"].getStartPosition(r[a].range).equals(o)){const t=e.getLineContent(o.lineNumber);t.length+1===o.column&&(this._deltaColumn=(r[a].text||"").length)}this._selectionId=t.trackSelection(i)}_attemptRemoveBlockComment(e,t,n,i){let r=t.startLineNumber,o=t.endLineNumber,a=i.length+Math.max(e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.startColumn),l=e.getLineContent(r).lastIndexOf(n,a-1),c=e.getLineContent(o).indexOf(i,t.endColumn-1-n.length);return-1!==l&&-1===c&&(c=e.getLineContent(r).indexOf(i,l+n.length),o=r),-1===l&&-1!==c&&(l=e.getLineContent(o).lastIndexOf(n,c),r=o),!t.isEmpty()||-1!==l&&-1!==c||(l=e.getLineContent(r).indexOf(n),-1!==l&&(c=e.getLineContent(r).indexOf(i,l+n.length))),-1!==l&&32===e.getLineContent(r).charCodeAt(l+n.length)&&(n+=" "),-1!==c&&32===e.getLineContent(o).charCodeAt(c-1)&&(i=" "+i,c-=1),-1!==l&&-1!==c?d._createRemoveBlockCommentOperations(new s["a"](r,l+n.length+1,o,c+1),n,i):null}_executeBlockComment(e,t,n){e.tokenizeIfCheap(n.startLineNumber);let i=e.getLanguageIdAtPosition(n.startLineNumber,1),r=h["a"].getComments(i);if(!r||!r.blockCommentStartToken||!r.blockCommentEndToken)return;const o=r.blockCommentStartToken,a=r.blockCommentEndToken;let l=this._attemptRemoveBlockComment(e,n,o,a);if(!l){if(n.isEmpty()){const t=e.getLineContent(n.startLineNumber);let i=f["v"](t);-1===i&&(i=t.length),l=d._createAddBlockCommentOperations(new s["a"](n.startLineNumber,i+1,n.startLineNumber,t.length+1),o,a,this._insertSpace)}else l=d._createAddBlockCommentOperations(new s["a"](n.startLineNumber,e.getLineFirstNonWhitespaceColumn(n.startLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),o,a,this._insertSpace);1===l.length&&(this._deltaColumn=o.length+1)}this._selectionId=t.trackSelection(n);for(const s of l)t.addEditOperation(s.range,s.text)}getEditOperations(e,t){let n=this._selection;if(this._moveEndPositionDown=!1,n.startLineNumber===n.endLineNumber&&this._ignoreFirstLine)return t.addEditOperation(new s["a"](n.startLineNumber,e.getLineMaxColumn(n.startLineNumber),n.startLineNumber+1,1),n.startLineNumber===e.getLineCount()?"":"\n"),void(this._selectionId=t.trackSelection(n));n.startLineNumber<n.endLineNumber&&1===n.endColumn&&(this._moveEndPositionDown=!0,n=n.setEndPosition(n.endLineNumber-1,e.getLineMaxColumn(n.endLineNumber-1)));const i=p._gatherPreflightData(this._type,this._insertSpace,e,n.startLineNumber,n.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine);return i.supported?this._executeLineComments(e,t,i,n):this._executeBlockComment(e,t,n)}computeCursorState(e,t){let 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)}static _createRemoveLineCommentsOperations(e,t){let n=[];for(let i=0,r=e.length;i<r;i++){const r=e[i];r.ignore||n.push(l["a"].delete(new s["a"](t+i,r.commentStrOffset+1,t+i,r.commentStrOffset+r.commentStrLength+1)))}return n}_createAddLineCommentsOperations(e,t){let n=[];const i=this._insertSpace?" ":"";for(let r=0,o=e.length;r<o;r++){const o=e[r];o.ignore||n.push(l["a"].insert(new c["a"](t+r,o.commentStrOffset+1),o.commentStr+i))}return n}static nextVisibleColumn(e,t,n,i){return n?e+(t-e%t):e+i}static _normalizeInsertionPoint(e,t,n,i){let r,o,s=1073741824;for(let a=0,l=t.length;a<l;a++){if(t[a].ignore)continue;const r=e.getLineContent(n+a);let o=0;for(let e=0,n=t[a].commentStrOffset;o<s&&e<n;e++)o=p.nextVisibleColumn(o,i,9===r.charCodeAt(e),1);o<s&&(s=o)}s=Math.floor(s/i)*i;for(let a=0,l=t.length;a<l;a++){if(t[a].ignore)continue;const l=e.getLineContent(n+a);let c=0;for(r=0,o=t[a].commentStrOffset;c<s&&r<o;r++)c=p.nextVisibleColumn(c,i,9===l.charCodeAt(r),1);t[a].commentStrOffset=c>s?r-1:r}}}var g=n("7e32");class m extends o["b"]{constructor(e,t){super(t),this._type=e}run(e,t){if(!t.hasModel())return;const n=t.getModel(),i=[],r=n.getOptions(),o=t.getOption(17),a=t.getSelections().map((e,t)=>({selection:e,index:t,ignoreFirstLine:!1}));a.sort((e,t)=>s["a"].compareRangesUsingStarts(e.selection,t.selection));let l=a[0];for(let s=1;s<a.length;s++){const e=a[s];l.selection.endLineNumber===e.selection.startLineNumber&&(l.index<e.index?e.ignoreFirstLine=!0:(l.ignoreFirstLine=!0,l=e))}for(const s of a)i.push(new p(s.selection,r.tabSize,this._type,o.insertSpace,o.ignoreEmptyLines,s.ignoreFirstLine));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}class v extends m{constructor(){super(0,{id:"editor.action.commentLine",label:i["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:g["b"].MenubarEditMenu,group:"5_insert",title:i["a"]({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})}}class b extends m{constructor(){super(1,{id:"editor.action.addCommentLine",label:i["a"]("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:a["a"].writable,kbOpts:{kbExpr:a["a"].editorTextFocus,primary:Object(r["a"])(2089,2081),weight:100}})}}class y extends m{constructor(){super(2,{id:"editor.action.removeCommentLine",label:i["a"]("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:a["a"].writable,kbOpts:{kbExpr:a["a"].editorTextFocus,primary:Object(r["a"])(2089,2099),weight:100}})}}class _ extends o["b"]{constructor(){super({id:"editor.action.blockComment",label:i["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:g["b"].MenubarEditMenu,group:"5_insert",title:i["a"]({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})}run(e,t){if(!t.hasModel())return;const n=t.getOption(17),i=[],r=t.getSelections();for(const o of r)i.push(new d(o,n.insertSpace));t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop()}}Object(o["j"])(v),Object(o["j"])(b),Object(o["j"])(y),Object(o["j"])(_)},"9f5f":function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:function(){return n.e("chunk-2d0f0a11").then(n.bind(null,"9cd5"))}})},"9f7f":function(e,t,n){var i=n("d039"),r=n("da84"),o=r.RegExp,s=i((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=s||i((function(){return!o("a","y").sticky})),l=s||i((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:l,MISSED_STICKY:a,UNSUPPORTED_Y:s}},"9fbb":function(e,t,n){var i=n("4d88");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},"9fbc":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("6d8b");function r(e){return new o(e)}var o=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var s,a=h(this._modBy),l=this._modDataCount||0,c=h(e&&e.modBy),u=e&&e.modDataCount||0;function h(e){return!(e>=1)&&(e=1),e}a===c&&l===u||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,s=this._doReset(r)),this._modBy=c,this._modDataCount=u;var d=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(s||f<p)){var g=this._progress;if(Object(i["isArray"])(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],f,p,c,u);else this._doProgress(g,f,p,c,u)}this._dueIndex=p;var v=null!=this._settedOutputEnd?this._settedOutputEnd:p;0,this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,i,r){s.reset(t,n,i,r),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:s.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),Object(i["isArray"])(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),s=function(){var e,t,n,i,r,o={reset:function(l,c,u,h){t=l,e=c,n=u,i=h,r=Math.ceil(i/n),o.next=n>1&&i>0?a:s}};return o;function s(){return t<e?t++:null}function a(){var o=t%r*n+Math.ceil(t/r),s=t>=e?null:o<i?o:t;return t++,s}}()},a007:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return i}));var i,r=n("ef8e"),o=n("2e5d"),s=n("f85a"),a=n("d48d"),l=n("7061"),c=n("6a89");class u{static addCursorDown(e,t,n){let i=[],r=0;for(let a=0,l=t.length;a<l;a++){const l=t[a];i[r++]=new o["d"](l.modelState,l.viewState),i[r++]=n?o["d"].fromModelState(s["a"].translateDown(e.cursorConfig,e.model,l.modelState)):o["d"].fromViewState(s["a"].translateDown(e.cursorConfig,e,l.viewState))}return i}static addCursorUp(e,t,n){let i=[],r=0;for(let a=0,l=t.length;a<l;a++){const l=t[a];i[r++]=new o["d"](l.modelState,l.viewState),i[r++]=n?o["d"].fromModelState(s["a"].translateUp(e.cursorConfig,e.model,l.modelState)):o["d"].fromViewState(s["a"].translateUp(e.cursorConfig,e,l.viewState))}return i}static moveToBeginningOfLine(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r];i[r]=this._moveToLineStart(e,o,n)}return i}static _moveToLineStart(e,t,n){const i=t.viewState.position.column,r=t.modelState.position.column,o=i===r,s=t.viewState.position.lineNumber,a=e.getLineFirstNonWhitespaceColumn(s),l=i===a;return o||l?this._moveToLineStartByModel(e,t,n):this._moveToLineStartByView(e,t,n)}static _moveToLineStartByView(e,t,n){return o["d"].fromViewState(s["a"].moveToBeginningOfLine(e.cursorConfig,e,t.viewState,n))}static _moveToLineStartByModel(e,t,n){return o["d"].fromModelState(s["a"].moveToBeginningOfLine(e.cursorConfig,e.model,t.modelState,n))}static moveToEndOfLine(e,t,n,i){let r=[];for(let o=0,s=t.length;o<s;o++){const s=t[o];r[o]=this._moveToLineEnd(e,s,n,i)}return r}static _moveToLineEnd(e,t,n,i){const r=t.viewState.position,o=e.getLineMaxColumn(r.lineNumber),s=r.column===o,a=t.modelState.position,l=e.model.getLineMaxColumn(a.lineNumber),c=o-r.column===l-a.column;return s||c?this._moveToLineEndByModel(e,t,n,i):this._moveToLineEndByView(e,t,n,i)}static _moveToLineEndByView(e,t,n,i){return o["d"].fromViewState(s["a"].moveToEndOfLine(e.cursorConfig,e,t.viewState,n,i))}static _moveToLineEndByModel(e,t,n,i){return o["d"].fromModelState(s["a"].moveToEndOfLine(e.cursorConfig,e.model,t.modelState,n,i))}static expandLineSelection(e,t){let n=[];for(let i=0,r=t.length;i<r;i++){const r=t[i],s=r.modelState.selection.startLineNumber,a=e.model.getLineCount();let u,h=r.modelState.selection.endLineNumber;h===a?u=e.model.getLineMaxColumn(a):(h++,u=1),n[i]=o["d"].fromModelState(new o["f"](new c["a"](s,1,s,1),0,new l["a"](h,u),0))}return n}static moveToBeginningOfBuffer(e,t,n){let i=[];for(let r=0,a=t.length;r<a;r++){const a=t[r];i[r]=o["d"].fromModelState(s["a"].moveToBeginningOfBuffer(e.cursorConfig,e.model,a.modelState,n))}return i}static moveToEndOfBuffer(e,t,n){let i=[];for(let r=0,a=t.length;r<a;r++){const a=t[r];i[r]=o["d"].fromModelState(s["a"].moveToEndOfBuffer(e.cursorConfig,e.model,a.modelState,n))}return i}static selectAll(e,t){const n=e.model.getLineCount(),i=e.model.getLineMaxColumn(n);return o["d"].fromModelState(new o["f"](new c["a"](1,1,1,1),0,new l["a"](n,i),0))}static line(e,t,n,i,r){const s=e.model.validatePosition(i),a=r?e.coordinatesConverter.validateViewPosition(new l["a"](r.lineNumber,r.column),s):e.coordinatesConverter.convertModelPositionToViewPosition(s);if(!n||!t.modelState.hasSelection()){const t=e.model.getLineCount();let n=s.lineNumber+1,i=1;return n>t&&(n=t,i=e.model.getLineMaxColumn(n)),o["d"].fromModelState(new o["f"](new c["a"](s.lineNumber,1,n,i),0,new l["a"](n,i),0))}const u=t.modelState.selectionStart.getStartPosition().lineNumber;if(s.lineNumber<u)return o["d"].fromViewState(t.viewState.move(t.modelState.hasSelection(),a.lineNumber,1,0));if(s.lineNumber>u){const n=e.getLineCount();let i=a.lineNumber+1,r=1;return i>n&&(i=n,r=e.getLineMaxColumn(i)),o["d"].fromViewState(t.viewState.move(t.modelState.hasSelection(),i,r,0))}{const e=t.modelState.selectionStart.getEndPosition();return o["d"].fromModelState(t.modelState.move(t.modelState.hasSelection(),e.lineNumber,e.column,0))}}static word(e,t,n,i){const r=e.model.validatePosition(i);return o["d"].fromModelState(a["a"].word(e.cursorConfig,e.model,t.modelState,n,r))}static cancelSelection(e,t){if(!t.modelState.hasSelection())return new o["d"](t.modelState,t.viewState);const n=t.viewState.position.lineNumber,i=t.viewState.position.column;return o["d"].fromViewState(new o["f"](new c["a"](n,i,n,i),0,new l["a"](n,i),0))}static moveTo(e,t,n,i,r){const s=e.model.validatePosition(i),a=r?e.coordinatesConverter.validateViewPosition(new l["a"](r.lineNumber,r.column),s):e.coordinatesConverter.convertModelPositionToViewPosition(s);return o["d"].fromViewState(t.viewState.move(n,a.lineNumber,a.column,0))}static simpleMove(e,t,n,i,r,a){switch(n){case 0:return 4===a?this._moveHalfLineLeft(e,t,i):this._moveLeft(e,t,i,r);case 1:return 4===a?this._moveHalfLineRight(e,t,i):this._moveRight(e,t,i,r);case 2:return 2===a?this._moveUpByViewLines(e,t,i,r):this._moveUpByModelLines(e,t,i,r);case 3:return 2===a?this._moveDownByViewLines(e,t,i,r):this._moveDownByModelLines(e,t,i,r);case 4:return 2===a?t.map(t=>o["d"].fromViewState(s["a"].moveToPrevBlankLine(e.cursorConfig,e,t.viewState,i))):t.map(t=>o["d"].fromModelState(s["a"].moveToPrevBlankLine(e.cursorConfig,e.model,t.modelState,i)));case 5:return 2===a?t.map(t=>o["d"].fromViewState(s["a"].moveToNextBlankLine(e.cursorConfig,e,t.viewState,i))):t.map(t=>o["d"].fromModelState(s["a"].moveToNextBlankLine(e.cursorConfig,e.model,t.modelState,i)));case 6:return this._moveToViewMinColumn(e,t,i);case 7:return this._moveToViewFirstNonWhitespaceColumn(e,t,i);case 8:return this._moveToViewCenterColumn(e,t,i);case 9:return this._moveToViewMaxColumn(e,t,i);case 10:return this._moveToViewLastNonWhitespaceColumn(e,t,i);default:return null}}static viewportMove(e,t,n,i,r){const o=e.getCompletelyVisibleViewRange(),s=e.coordinatesConverter.convertViewRangeToModelRange(o);switch(n){case 11:{const n=this._firstLineNumberInRange(e.model,s,r),o=e.model.getLineFirstNonWhitespaceColumn(n);return[this._moveToModelPosition(e,t[0],i,n,o)]}case 13:{const n=this._lastLineNumberInRange(e.model,s,r),o=e.model.getLineFirstNonWhitespaceColumn(n);return[this._moveToModelPosition(e,t[0],i,n,o)]}case 12:{const n=Math.round((s.startLineNumber+s.endLineNumber)/2),r=e.model.getLineFirstNonWhitespaceColumn(n);return[this._moveToModelPosition(e,t[0],i,n,r)]}case 14:{let n=[];for(let r=0,s=t.length;r<s;r++){const s=t[r];n[r]=this.findPositionInViewportIfOutside(e,s,o,i)}return n}default:return null}}static findPositionInViewportIfOutside(e,t,n,i){let r=t.viewState.position.lineNumber;if(n.startLineNumber<=r&&r<=n.endLineNumber-1)return new o["d"](t.modelState,t.viewState);{r>n.endLineNumber-1&&(r=n.endLineNumber-1),r<n.startLineNumber&&(r=n.startLineNumber);const o=e.getLineFirstNonWhitespaceColumn(r);return this._moveToViewPosition(e,t,i,r,o)}}static _firstLineNumberInRange(e,t,n){let i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.min(t.endLineNumber,i+n-1)}static _lastLineNumberInRange(e,t,n){let i=t.startLineNumber;return t.startColumn!==e.getLineMinColumn(i)&&i++,Math.max(i,t.endLineNumber-n+1)}static _moveLeft(e,t,n,i){return t.map(t=>o["d"].fromViewState(s["a"].moveLeft(e.cursorConfig,e,t.viewState,n,i)))}static _moveHalfLineLeft(e,t,n){let i=[];for(let r=0,a=t.length;r<a;r++){const a=t[r],l=a.viewState.position.lineNumber,c=Math.round(e.getLineContent(l).length/2);i[r]=o["d"].fromViewState(s["a"].moveLeft(e.cursorConfig,e,a.viewState,n,c))}return i}static _moveRight(e,t,n,i){return t.map(t=>o["d"].fromViewState(s["a"].moveRight(e.cursorConfig,e,t.viewState,n,i)))}static _moveHalfLineRight(e,t,n){let i=[];for(let r=0,a=t.length;r<a;r++){const a=t[r],l=a.viewState.position.lineNumber,c=Math.round(e.getLineContent(l).length/2);i[r]=o["d"].fromViewState(s["a"].moveRight(e.cursorConfig,e,a.viewState,n,c))}return i}static _moveDownByViewLines(e,t,n,i){let r=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];r[a]=o["d"].fromViewState(s["a"].moveDown(e.cursorConfig,e,l.viewState,n,i))}return r}static _moveDownByModelLines(e,t,n,i){let r=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];r[a]=o["d"].fromModelState(s["a"].moveDown(e.cursorConfig,e.model,l.modelState,n,i))}return r}static _moveUpByViewLines(e,t,n,i){let r=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];r[a]=o["d"].fromViewState(s["a"].moveUp(e.cursorConfig,e,l.viewState,n,i))}return r}static _moveUpByModelLines(e,t,n,i){let r=[];for(let a=0,l=t.length;a<l;a++){const l=t[a];r[a]=o["d"].fromModelState(s["a"].moveUp(e.cursorConfig,e.model,l.modelState,n,i))}return r}static _moveToViewPosition(e,t,n,i,r){return o["d"].fromViewState(t.viewState.move(n,i,r,0))}static _moveToModelPosition(e,t,n,i,r){return o["d"].fromModelState(t.modelState.move(n,i,r,0))}static _moveToViewMinColumn(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],s=o.viewState.position.lineNumber,a=e.getLineMinColumn(s);i[r]=this._moveToViewPosition(e,o,n,s,a)}return i}static _moveToViewFirstNonWhitespaceColumn(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],s=o.viewState.position.lineNumber,a=e.getLineFirstNonWhitespaceColumn(s);i[r]=this._moveToViewPosition(e,o,n,s,a)}return i}static _moveToViewCenterColumn(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],s=o.viewState.position.lineNumber,a=Math.round((e.getLineMaxColumn(s)+e.getLineMinColumn(s))/2);i[r]=this._moveToViewPosition(e,o,n,s,a)}return i}static _moveToViewMaxColumn(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],s=o.viewState.position.lineNumber,a=e.getLineMaxColumn(s);i[r]=this._moveToViewPosition(e,o,n,s,a)}return i}static _moveToViewLastNonWhitespaceColumn(e,t,n){let i=[];for(let r=0,o=t.length;r<o;r++){const o=t[r],s=o.viewState.position.lineNumber,a=e.getLineLastNonWhitespaceColumn(s);i[r]=this._moveToViewPosition(e,o,n,s,a)}return i}}(function(e){const t=function(e){if(!r["j"](e))return!1;let t=e;return!!r["k"](t.to)&&(!(!r["l"](t.select)&&!r["g"](t.select))&&(!(!r["l"](t.by)&&!r["k"](t.by))&&!(!r["l"](t.value)&&!r["i"](t.value))))};function n(t){if(!t.to)return null;let n;switch(t.to){case e.RawDirection.Left:n=0;break;case e.RawDirection.Right:n=1;break;case e.RawDirection.Up:n=2;break;case e.RawDirection.Down:n=3;break;case e.RawDirection.PrevBlankLine:n=4;break;case e.RawDirection.NextBlankLine:n=5;break;case e.RawDirection.WrappedLineStart:n=6;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:n=7;break;case e.RawDirection.WrappedLineColumnCenter:n=8;break;case e.RawDirection.WrappedLineEnd:n=9;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:n=10;break;case e.RawDirection.ViewPortTop:n=11;break;case e.RawDirection.ViewPortBottom:n=13;break;case e.RawDirection.ViewPortCenter:n=12;break;case e.RawDirection.ViewPortIfOutside:n=14;break;default:return null}let i=0;switch(t.by){case e.RawUnit.Line:i=1;break;case e.RawUnit.WrappedLine:i=2;break;case e.RawUnit.Character:i=3;break;case e.RawUnit.HalfLine:i=4;break}return{direction:n,unit:i,select:!!t.select,value:t.value||1}}e.description={description:"Move cursor to a logical position in the view",args:[{name:"Cursor move argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down', 'prevBlankLine', 'nextBlankLine',\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:t,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","prevBlankLine","nextBlankLine","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},e.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",PrevBlankLine:"prevBlankLine",NextBlankLine:"nextBlankLine",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"},e.parse=n})(i||(i={}))},a026:function(e,t,n){"use strict";n.r(t),function(e){
|
||
/*!
|
||
* Vue.js v2.6.12
|
||
* (c) 2014-2020 Evan You
|
||
* Released under the MIT License.
|
||
*/
|
||
var n=Object.freeze({});function i(e){return void 0===e||null===e}function r(e){return void 0!==e&&null!==e}function o(e){return!0===e}function s(e){return!1===e}function a(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function l(e){return null!==e&&"object"===typeof e}var c=Object.prototype.toString;function u(e){return"[object Object]"===c.call(e)}function h(e){return"[object RegExp]"===c.call(e)}function d(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return r(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function g(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r<i.length;r++)n[i[r]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var v=m("slot,component",!0),b=m("key,ref,slot,slot-scope,is");function y(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function w(e,t){return _.call(e,t)}function C(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var S=/-(\w)/g,x=C((function(e){return e.replace(S,(function(e,t){return t?t.toUpperCase():""}))})),O=C((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),k=/\B([A-Z])/g,L=C((function(e){return e.replace(k,"-$1").toLowerCase()}));function E(e,t){function n(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function D(e,t){return e.bind(t)}var I=Function.prototype.bind?D:E;function M(e,t){t=t||0;var n=e.length-t,i=new Array(n);while(n--)i[n]=e[n+t];return i}function T(e,t){for(var n in t)e[n]=t[n];return e}function A(e){for(var t={},n=0;n<e.length;n++)e[n]&&T(t,e[n]);return t}function N(e,t,n){}var P=function(e,t,n){return!1},j=function(e){return e};function R(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}function F(e,t){if(e===t)return!0;var n=l(e),i=l(t);if(!n||!i)return!n&&!i&&String(e)===String(t);try{var r=Array.isArray(e),o=Array.isArray(t);if(r&&o)return e.length===t.length&&e.every((function(e,n){return F(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(r||o)return!1;var s=Object.keys(e),a=Object.keys(t);return s.length===a.length&&s.every((function(n){return F(e[n],t[n])}))}catch(c){return!1}}function B(e,t){for(var n=0;n<e.length;n++)if(F(e[n],t))return n;return-1}function W(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var V="data-server-rendered",z=["component","directive","filter"],H=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],U={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:P,isReservedAttr:P,isUnknownElement:P,getTagNamespace:N,parsePlatformTagName:j,mustUseProp:P,async:!0,_lifecycleHooks:H},q=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function $(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function K(e,t,n,i){Object.defineProperty(e,t,{value:n,enumerable:!!i,writable:!0,configurable:!0})}var G=new RegExp("[^"+q.source+".$_\\d]");function Y(e){if(!G.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var Z,X="__proto__"in{},Q="undefined"!==typeof window,J="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,ee=J&&WXEnvironment.platform.toLowerCase(),te=Q&&window.navigator.userAgent.toLowerCase(),ne=te&&/msie|trident/.test(te),ie=te&&te.indexOf("msie 9.0")>0,re=te&&te.indexOf("edge/")>0,oe=(te&&te.indexOf("android"),te&&/iphone|ipad|ipod|ios/.test(te)||"ios"===ee),se=(te&&/chrome\/\d+/.test(te),te&&/phantomjs/.test(te),te&&te.match(/firefox\/(\d+)/)),ae={}.watch,le=!1;if(Q)try{var ce={};Object.defineProperty(ce,"passive",{get:function(){le=!0}}),window.addEventListener("test-passive",null,ce)}catch(Xc){}var ue=function(){return void 0===Z&&(Z=!Q&&!J&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),Z},he=Q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function de(e){return"function"===typeof e&&/native code/.test(e.toString())}var fe,pe="undefined"!==typeof Symbol&&de(Symbol)&&"undefined"!==typeof Reflect&&de(Reflect.ownKeys);fe="undefined"!==typeof Set&&de(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ge=N,me=0,ve=function(){this.id=me++,this.subs=[]};ve.prototype.addSub=function(e){this.subs.push(e)},ve.prototype.removeSub=function(e){y(this.subs,e)},ve.prototype.depend=function(){ve.target&&ve.target.addDep(this)},ve.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},ve.target=null;var be=[];function ye(e){be.push(e),ve.target=e}function _e(){be.pop(),ve.target=be[be.length-1]}var we=function(e,t,n,i,r,o,s,a){this.tag=e,this.data=t,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},Ce={child:{configurable:!0}};Ce.child.get=function(){return this.componentInstance},Object.defineProperties(we.prototype,Ce);var Se=function(e){void 0===e&&(e="");var t=new we;return t.text=e,t.isComment=!0,t};function xe(e){return new we(void 0,void 0,void 0,String(e))}function Oe(e){var t=new we(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var ke=Array.prototype,Le=Object.create(ke),Ee=["push","pop","shift","unshift","splice","sort","reverse"];Ee.forEach((function(e){var t=ke[e];K(Le,e,(function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];var r,o=t.apply(this,n),s=this.__ob__;switch(e){case"push":case"unshift":r=n;break;case"splice":r=n.slice(2);break}return r&&s.observeArray(r),s.dep.notify(),o}))}));var De=Object.getOwnPropertyNames(Le),Ie=!0;function Me(e){Ie=e}var Te=function(e){this.value=e,this.dep=new ve,this.vmCount=0,K(e,"__ob__",this),Array.isArray(e)?(X?Ae(e,Le):Ne(e,Le,De),this.observeArray(e)):this.walk(e)};function Ae(e,t){e.__proto__=t}function Ne(e,t,n){for(var i=0,r=n.length;i<r;i++){var o=n[i];K(e,o,t[o])}}function Pe(e,t){var n;if(l(e)&&!(e instanceof we))return w(e,"__ob__")&&e.__ob__ instanceof Te?n=e.__ob__:Ie&&!ue()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Te(e)),t&&n&&n.vmCount++,n}function je(e,t,n,i,r){var o=new ve,s=Object.getOwnPropertyDescriptor(e,t);if(!s||!1!==s.configurable){var a=s&&s.get,l=s&&s.set;a&&!l||2!==arguments.length||(n=e[t]);var c=!r&&Pe(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=a?a.call(e):n;return ve.target&&(o.depend(),c&&(c.dep.depend(),Array.isArray(t)&&Be(t))),t},set:function(t){var i=a?a.call(e):n;t===i||t!==t&&i!==i||a&&!l||(l?l.call(e,t):n=t,c=!r&&Pe(t),o.notify())}})}}function Re(e,t,n){if(Array.isArray(e)&&d(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var i=e.__ob__;return e._isVue||i&&i.vmCount?n:i?(je(i.value,t,n),i.dep.notify(),n):(e[t]=n,n)}function Fe(e,t){if(Array.isArray(e)&&d(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||w(e,t)&&(delete e[t],n&&n.dep.notify())}}function Be(e){for(var t=void 0,n=0,i=e.length;n<i;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Be(t)}Te.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)je(e,t[n])},Te.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Pe(e[t])};var We=U.optionMergeStrategies;function Ve(e,t){if(!t)return e;for(var n,i,r,o=pe?Reflect.ownKeys(t):Object.keys(t),s=0;s<o.length;s++)n=o[s],"__ob__"!==n&&(i=e[n],r=t[n],w(e,n)?i!==r&&u(i)&&u(r)&&Ve(i,r):Re(e,n,r));return e}function ze(e,t,n){return n?function(){var i="function"===typeof t?t.call(n,n):t,r="function"===typeof e?e.call(n,n):e;return i?Ve(i,r):r}:t?e?function(){return Ve("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function He(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?Ue(n):n}function Ue(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function qe(e,t,n,i){var r=Object.create(e||null);return t?T(r,t):r}We.data=function(e,t,n){return n?ze(e,t,n):t&&"function"!==typeof t?e:ze(e,t)},H.forEach((function(e){We[e]=He})),z.forEach((function(e){We[e+"s"]=qe})),We.watch=function(e,t,n,i){if(e===ae&&(e=void 0),t===ae&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var r={};for(var o in T(r,e),t){var s=r[o],a=t[o];s&&!Array.isArray(s)&&(s=[s]),r[o]=s?s.concat(a):Array.isArray(a)?a:[a]}return r},We.props=We.methods=We.inject=We.computed=function(e,t,n,i){if(!e)return t;var r=Object.create(null);return T(r,e),t&&T(r,t),r},We.provide=ze;var $e=function(e,t){return void 0===t?e:t};function Ke(e,t){var n=e.props;if(n){var i,r,o,s={};if(Array.isArray(n)){i=n.length;while(i--)r=n[i],"string"===typeof r&&(o=x(r),s[o]={type:null})}else if(u(n))for(var a in n)r=n[a],o=x(a),s[o]=u(r)?r:{type:r};else 0;e.props=s}}function Ge(e,t){var n=e.inject;if(n){var i=e.inject={};if(Array.isArray(n))for(var r=0;r<n.length;r++)i[n[r]]={from:n[r]};else if(u(n))for(var o in n){var s=n[o];i[o]=u(s)?T({from:o},s):{from:s}}else 0}}function Ye(e){var t=e.directives;if(t)for(var n in t){var i=t[n];"function"===typeof i&&(t[n]={bind:i,update:i})}}function Ze(e,t,n){if("function"===typeof t&&(t=t.options),Ke(t,n),Ge(t,n),Ye(t),!t._base&&(t.extends&&(e=Ze(e,t.extends,n)),t.mixins))for(var i=0,r=t.mixins.length;i<r;i++)e=Ze(e,t.mixins[i],n);var o,s={};for(o in e)a(o);for(o in t)w(e,o)||a(o);function a(i){var r=We[i]||$e;s[i]=r(e[i],t[i],n,i)}return s}function Xe(e,t,n,i){if("string"===typeof n){var r=e[t];if(w(r,n))return r[n];var o=x(n);if(w(r,o))return r[o];var s=O(o);if(w(r,s))return r[s];var a=r[n]||r[o]||r[s];return a}}function Qe(e,t,n,i){var r=t[e],o=!w(n,e),s=n[e],a=nt(Boolean,r.type);if(a>-1)if(o&&!w(r,"default"))s=!1;else if(""===s||s===L(e)){var l=nt(String,r.type);(l<0||a<l)&&(s=!0)}if(void 0===s){s=Je(i,r,e);var c=Ie;Me(!0),Pe(s),Me(c)}return s}function Je(e,t,n){if(w(t,"default")){var i=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof i&&"Function"!==et(t.type)?i.call(e):i}}function et(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function tt(e,t){return et(e)===et(t)}function nt(e,t){if(!Array.isArray(t))return tt(t,e)?0:-1;for(var n=0,i=t.length;n<i;n++)if(tt(t[n],e))return n;return-1}function it(e,t,n){ye();try{if(t){var i=t;while(i=i.$parent){var r=i.$options.errorCaptured;if(r)for(var o=0;o<r.length;o++)try{var s=!1===r[o].call(i,e,t,n);if(s)return}catch(Xc){ot(Xc,i,"errorCaptured hook")}}}ot(e,t,n)}finally{_e()}}function rt(e,t,n,i,r){var o;try{o=n?e.apply(t,n):e.call(t),o&&!o._isVue&&f(o)&&!o._handled&&(o.catch((function(e){return it(e,i,r+" (Promise/async)")})),o._handled=!0)}catch(Xc){it(Xc,i,r)}return o}function ot(e,t,n){if(U.errorHandler)try{return U.errorHandler.call(null,e,t,n)}catch(Xc){Xc!==e&&st(Xc,null,"config.errorHandler")}st(e,t,n)}function st(e,t,n){if(!Q&&!J||"undefined"===typeof console)throw e;console.error(e)}var at,lt=!1,ct=[],ut=!1;function ht(){ut=!1;var e=ct.slice(0);ct.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&de(Promise)){var dt=Promise.resolve();at=function(){dt.then(ht),oe&&setTimeout(N)},lt=!0}else if(ne||"undefined"===typeof MutationObserver||!de(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())at="undefined"!==typeof setImmediate&&de(setImmediate)?function(){setImmediate(ht)}:function(){setTimeout(ht,0)};else{var ft=1,pt=new MutationObserver(ht),gt=document.createTextNode(String(ft));pt.observe(gt,{characterData:!0}),at=function(){ft=(ft+1)%2,gt.data=String(ft)},lt=!0}function mt(e,t){var n;if(ct.push((function(){if(e)try{e.call(t)}catch(Xc){it(Xc,t,"nextTick")}else n&&n(t)})),ut||(ut=!0,at()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var vt=new fe;function bt(e){yt(e,vt),vt.clear()}function yt(e,t){var n,i,r=Array.isArray(e);if(!(!r&&!l(e)||Object.isFrozen(e)||e instanceof we)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(r){n=e.length;while(n--)yt(e[n],t)}else{i=Object.keys(e),n=i.length;while(n--)yt(e[i[n]],t)}}}var _t=C((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var i="!"===e.charAt(0);return e=i?e.slice(1):e,{name:e,once:n,capture:i,passive:t}}));function wt(e,t){function n(){var e=arguments,i=n.fns;if(!Array.isArray(i))return rt(i,null,arguments,t,"v-on handler");for(var r=i.slice(),o=0;o<r.length;o++)rt(r[o],null,e,t,"v-on handler")}return n.fns=e,n}function Ct(e,t,n,r,s,a){var l,c,u,h;for(l in e)c=e[l],u=t[l],h=_t(l),i(c)||(i(u)?(i(c.fns)&&(c=e[l]=wt(c,a)),o(h.once)&&(c=e[l]=s(h.name,c,h.capture)),n(h.name,c,h.capture,h.passive,h.params)):c!==u&&(u.fns=c,e[l]=u));for(l in t)i(e[l])&&(h=_t(l),r(h.name,t[l],h.capture))}function St(e,t,n){var s;e instanceof we&&(e=e.data.hook||(e.data.hook={}));var a=e[t];function l(){n.apply(this,arguments),y(s.fns,l)}i(a)?s=wt([l]):r(a.fns)&&o(a.merged)?(s=a,s.fns.push(l)):s=wt([a,l]),s.merged=!0,e[t]=s}function xt(e,t,n){var o=t.options.props;if(!i(o)){var s={},a=e.attrs,l=e.props;if(r(a)||r(l))for(var c in o){var u=L(c);Ot(s,l,c,u,!0)||Ot(s,a,c,u,!1)}return s}}function Ot(e,t,n,i,o){if(r(t)){if(w(t,n))return e[n]=t[n],o||delete t[n],!0;if(w(t,i))return e[n]=t[i],o||delete t[i],!0}return!1}function kt(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function Lt(e){return a(e)?[xe(e)]:Array.isArray(e)?Dt(e):void 0}function Et(e){return r(e)&&r(e.text)&&s(e.isComment)}function Dt(e,t){var n,s,l,c,u=[];for(n=0;n<e.length;n++)s=e[n],i(s)||"boolean"===typeof s||(l=u.length-1,c=u[l],Array.isArray(s)?s.length>0&&(s=Dt(s,(t||"")+"_"+n),Et(s[0])&&Et(c)&&(u[l]=xe(c.text+s[0].text),s.shift()),u.push.apply(u,s)):a(s)?Et(c)?u[l]=xe(c.text+s):""!==s&&u.push(xe(s)):Et(s)&&Et(c)?u[l]=xe(c.text+s.text):(o(e._isVList)&&r(s.tag)&&i(s.key)&&r(t)&&(s.key="__vlist"+t+"_"+n+"__"),u.push(s)));return u}function It(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Mt(e){var t=Tt(e.$options.inject,e);t&&(Me(!1),Object.keys(t).forEach((function(n){je(e,n,t[n])})),Me(!0))}function Tt(e,t){if(e){for(var n=Object.create(null),i=pe?Reflect.ownKeys(e):Object.keys(e),r=0;r<i.length;r++){var o=i[r];if("__ob__"!==o){var s=e[o].from,a=t;while(a){if(a._provided&&w(a._provided,s)){n[o]=a._provided[s];break}a=a.$parent}if(!a)if("default"in e[o]){var l=e[o].default;n[o]="function"===typeof l?l.call(t):l}else 0}}return n}}function At(e,t){if(!e||!e.length)return{};for(var n={},i=0,r=e.length;i<r;i++){var o=e[i],s=o.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,o.context!==t&&o.fnContext!==t||!s||null==s.slot)(n.default||(n.default=[])).push(o);else{var a=s.slot,l=n[a]||(n[a]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var c in n)n[c].every(Nt)&&delete n[c];return n}function Nt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Pt(e,t,i){var r,o=Object.keys(t).length>0,s=e?!!e.$stable:!o,a=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&i&&i!==n&&a===i.$key&&!o&&!i.$hasNormal)return i;for(var l in r={},e)e[l]&&"$"!==l[0]&&(r[l]=jt(t,l,e[l]))}else r={};for(var c in t)c in r||(r[c]=Rt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=r),K(r,"$stable",s),K(r,"$key",a),K(r,"$hasNormal",o),r}function jt(e,t,n){var i=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:Lt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:i,enumerable:!0,configurable:!0}),i}function Rt(e,t){return function(){return e[t]}}function Ft(e,t){var n,i,o,s,a;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),i=0,o=e.length;i<o;i++)n[i]=t(e[i],i);else if("number"===typeof e)for(n=new Array(e),i=0;i<e;i++)n[i]=t(i+1,i);else if(l(e))if(pe&&e[Symbol.iterator]){n=[];var c=e[Symbol.iterator](),u=c.next();while(!u.done)n.push(t(u.value,n.length)),u=c.next()}else for(s=Object.keys(e),n=new Array(s.length),i=0,o=s.length;i<o;i++)a=s[i],n[i]=t(e[a],a,i);return r(n)||(n=[]),n._isVList=!0,n}function Bt(e,t,n,i){var r,o=this.$scopedSlots[e];o?(n=n||{},i&&(n=T(T({},i),n)),r=o(n)||t):r=this.$slots[e]||t;var s=n&&n.slot;return s?this.$createElement("template",{slot:s},r):r}function Wt(e){return Xe(this.$options,"filters",e,!0)||j}function Vt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function zt(e,t,n,i,r){var o=U.keyCodes[t]||n;return r&&i&&!U.keyCodes[t]?Vt(r,i):o?Vt(o,e):i?L(i)!==t:void 0}function Ht(e,t,n,i,r){if(n)if(l(n)){var o;Array.isArray(n)&&(n=A(n));var s=function(s){if("class"===s||"style"===s||b(s))o=e;else{var a=e.attrs&&e.attrs.type;o=i||U.mustUseProp(t,a,s)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=x(s),c=L(s);if(!(l in o)&&!(c in o)&&(o[s]=n[s],r)){var u=e.on||(e.on={});u["update:"+s]=function(e){n[s]=e}}};for(var a in n)s(a)}else;return e}function Ut(e,t){var n=this._staticTrees||(this._staticTrees=[]),i=n[e];return i&&!t||(i=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),$t(i,"__static__"+e,!1)),i}function qt(e,t,n){return $t(e,"__once__"+t+(n?"_"+n:""),!0),e}function $t(e,t,n){if(Array.isArray(e))for(var i=0;i<e.length;i++)e[i]&&"string"!==typeof e[i]&&Kt(e[i],t+"_"+i,n);else Kt(e,t,n)}function Kt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Gt(e,t){if(t)if(u(t)){var n=e.on=e.on?T({},e.on):{};for(var i in t){var r=n[i],o=t[i];n[i]=r?[].concat(r,o):o}}else;return e}function Yt(e,t,n,i){t=t||{$stable:!n};for(var r=0;r<e.length;r++){var o=e[r];Array.isArray(o)?Yt(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return i&&(t.$key=i),t}function Zt(e,t){for(var n=0;n<t.length;n+=2){var i=t[n];"string"===typeof i&&i&&(e[t[n]]=t[n+1])}return e}function Xt(e,t){return"string"===typeof e?t+e:e}function Qt(e){e._o=qt,e._n=g,e._s=p,e._l=Ft,e._t=Bt,e._q=F,e._i=B,e._m=Ut,e._f=Wt,e._k=zt,e._b=Ht,e._v=xe,e._e=Se,e._u=Yt,e._g=Gt,e._d=Zt,e._p=Xt}function Jt(e,t,i,r,s){var a,l=this,c=s.options;w(r,"_uid")?(a=Object.create(r),a._original=r):(a=r,r=r._original);var u=o(c._compiled),h=!u;this.data=e,this.props=t,this.children=i,this.parent=r,this.listeners=e.on||n,this.injections=Tt(c.inject,r),this.slots=function(){return l.$slots||Pt(e.scopedSlots,l.$slots=At(i,r)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Pt(e.scopedSlots,this.slots())}}),u&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=Pt(e.scopedSlots,this.$slots)),c._scopeId?this._c=function(e,t,n,i){var o=fn(a,e,t,n,i,h);return o&&!Array.isArray(o)&&(o.fnScopeId=c._scopeId,o.fnContext=r),o}:this._c=function(e,t,n,i){return fn(a,e,t,n,i,h)}}function en(e,t,i,o,s){var a=e.options,l={},c=a.props;if(r(c))for(var u in c)l[u]=Qe(u,c,t||n);else r(i.attrs)&&nn(l,i.attrs),r(i.props)&&nn(l,i.props);var h=new Jt(i,l,s,o,e),d=a.render.call(null,h._c,h);if(d instanceof we)return tn(d,i,h.parent,a,h);if(Array.isArray(d)){for(var f=Lt(d)||[],p=new Array(f.length),g=0;g<f.length;g++)p[g]=tn(f[g],i,h.parent,a,h);return p}}function tn(e,t,n,i,r){var o=Oe(e);return o.fnContext=n,o.fnOptions=i,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function nn(e,t){for(var n in t)e[x(n)]=t[n]}Qt(Jt.prototype);var rn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;rn.prepatch(n,n)}else{var i=e.componentInstance=an(e,Tn);i.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,i=t.componentInstance=e.componentInstance;Rn(i,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,Vn(n,"mounted")),e.data.keepAlive&&(t._isMounted?ei(n):Bn(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Wn(t,!0):t.$destroy())}},on=Object.keys(rn);function sn(e,t,n,s,a){if(!i(e)){var c=n.$options._base;if(l(e)&&(e=c.extend(e)),"function"===typeof e){var u;if(i(e.cid)&&(u=e,e=Sn(u,c),void 0===e))return Cn(u,t,n,s,a);t=t||{},Si(e),r(t.model)&&un(e.options,t);var h=xt(t,e,a);if(o(e.options.functional))return en(e,h,t,n,s);var d=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var f=t.slot;t={},f&&(t.slot=f)}ln(t);var p=e.options.name||a,g=new we("vue-component-"+e.cid+(p?"-"+p:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:h,listeners:d,tag:a,children:s},u);return g}}}function an(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;return r(i)&&(n.render=i.render,n.staticRenderFns=i.staticRenderFns),new e.componentOptions.Ctor(n)}function ln(e){for(var t=e.hook||(e.hook={}),n=0;n<on.length;n++){var i=on[n],r=t[i],o=rn[i];r===o||r&&r._merged||(t[i]=r?cn(o,r):o)}}function cn(e,t){var n=function(n,i){e(n,i),t(n,i)};return n._merged=!0,n}function un(e,t){var n=e.model&&e.model.prop||"value",i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),s=o[i],a=t.model.callback;r(s)?(Array.isArray(s)?-1===s.indexOf(a):s!==a)&&(o[i]=[a].concat(s)):o[i]=a}var hn=1,dn=2;function fn(e,t,n,i,r,s){return(Array.isArray(n)||a(n))&&(r=i,i=n,n=void 0),o(s)&&(r=dn),pn(e,t,n,i,r)}function pn(e,t,n,i,o){if(r(n)&&r(n.__ob__))return Se();if(r(n)&&r(n.is)&&(t=n.is),!t)return Se();var s,a,l;(Array.isArray(i)&&"function"===typeof i[0]&&(n=n||{},n.scopedSlots={default:i[0]},i.length=0),o===dn?i=Lt(i):o===hn&&(i=kt(i)),"string"===typeof t)?(a=e.$vnode&&e.$vnode.ns||U.getTagNamespace(t),s=U.isReservedTag(t)?new we(U.parsePlatformTagName(t),n,i,void 0,void 0,e):n&&n.pre||!r(l=Xe(e.$options,"components",t))?new we(t,n,i,void 0,void 0,e):sn(l,n,e,i,t)):s=sn(t,n,e,i);return Array.isArray(s)?s:r(s)?(r(a)&&gn(s,a),r(n)&&mn(n),s):Se()}function gn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),r(e.children))for(var s=0,a=e.children.length;s<a;s++){var l=e.children[s];r(l.tag)&&(i(l.ns)||o(n)&&"svg"!==l.tag)&&gn(l,t,n)}}function mn(e){l(e.style)&&bt(e.style),l(e.class)&&bt(e.class)}function vn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,i=e.$vnode=t._parentVnode,r=i&&i.context;e.$slots=At(t._renderChildren,r),e.$scopedSlots=n,e._c=function(t,n,i,r){return fn(e,t,n,i,r,!1)},e.$createElement=function(t,n,i,r){return fn(e,t,n,i,r,!0)};var o=i&&i.data;je(e,"$attrs",o&&o.attrs||n,null,!0),je(e,"$listeners",t._parentListeners||n,null,!0)}var bn,yn=null;function _n(e){Qt(e.prototype),e.prototype.$nextTick=function(e){return mt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,i=n.render,r=n._parentVnode;r&&(t.$scopedSlots=Pt(r.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=r;try{yn=t,e=i.call(t._renderProxy,t.$createElement)}catch(Xc){it(Xc,t,"render"),e=t._vnode}finally{yn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof we||(e=Se()),e.parent=r,e}}function wn(e,t){return(e.__esModule||pe&&"Module"===e[Symbol.toStringTag])&&(e=e.default),l(e)?t.extend(e):e}function Cn(e,t,n,i,r){var o=Se();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:i,tag:r},o}function Sn(e,t){if(o(e.error)&&r(e.errorComp))return e.errorComp;if(r(e.resolved))return e.resolved;var n=yn;if(n&&r(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),o(e.loading)&&r(e.loadingComp))return e.loadingComp;if(n&&!r(e.owners)){var s=e.owners=[n],a=!0,c=null,u=null;n.$on("hook:destroyed",(function(){return y(s,n)}));var h=function(e){for(var t=0,n=s.length;t<n;t++)s[t].$forceUpdate();e&&(s.length=0,null!==c&&(clearTimeout(c),c=null),null!==u&&(clearTimeout(u),u=null))},d=W((function(n){e.resolved=wn(n,t),a?s.length=0:h(!0)})),p=W((function(t){r(e.errorComp)&&(e.error=!0,h(!0))})),g=e(d,p);return l(g)&&(f(g)?i(e.resolved)&&g.then(d,p):f(g.component)&&(g.component.then(d,p),r(g.error)&&(e.errorComp=wn(g.error,t)),r(g.loading)&&(e.loadingComp=wn(g.loading,t),0===g.delay?e.loading=!0:c=setTimeout((function(){c=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,h(!1))}),g.delay||200)),r(g.timeout)&&(u=setTimeout((function(){u=null,i(e.resolved)&&p(null)}),g.timeout)))),a=!1,e.loading?e.loadingComp:e.resolved}}function xn(e){return e.isComment&&e.asyncFactory}function On(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(r(n)&&(r(n.componentOptions)||xn(n)))return n}}function kn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&In(e,t)}function Ln(e,t){bn.$on(e,t)}function En(e,t){bn.$off(e,t)}function Dn(e,t){var n=bn;return function i(){var r=t.apply(null,arguments);null!==r&&n.$off(e,i)}}function In(e,t,n){bn=e,Ct(t,n||{},Ln,En,Dn,e),bn=void 0}function Mn(e){var t=/^hook:/;e.prototype.$on=function(e,n){var i=this;if(Array.isArray(e))for(var r=0,o=e.length;r<o;r++)i.$on(e[r],n);else(i._events[e]||(i._events[e]=[])).push(n),t.test(e)&&(i._hasHookEvent=!0);return i},e.prototype.$once=function(e,t){var n=this;function i(){n.$off(e,i),t.apply(n,arguments)}return i.fn=t,n.$on(e,i),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var i=0,r=e.length;i<r;i++)n.$off(e[i],t);return n}var o,s=n._events[e];if(!s)return n;if(!t)return n._events[e]=null,n;var a=s.length;while(a--)if(o=s[a],o===t||o.fn===t){s.splice(a,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?M(n):n;for(var i=M(arguments,1),r='event handler for "'+e+'"',o=0,s=n.length;o<s;o++)rt(n[o],t,i,t,r)}return t}}var Tn=null;function An(e){var t=Tn;return Tn=e,function(){Tn=t}}function Nn(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function Pn(e){e.prototype._update=function(e,t){var n=this,i=n.$el,r=n._vnode,o=An(n);n._vnode=e,n.$el=r?n.__patch__(r,e):n.__patch__(n.$el,e,t,!1),o(),i&&(i.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Vn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||y(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Vn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function jn(e,t,n){var i;return e.$el=t,e.$options.render||(e.$options.render=Se),Vn(e,"beforeMount"),i=function(){e._update(e._render(),n)},new ri(e,i,N,{before:function(){e._isMounted&&!e._isDestroyed&&Vn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Vn(e,"mounted")),e}function Rn(e,t,i,r,o){var s=r.data.scopedSlots,a=e.$scopedSlots,l=!!(s&&!s.$stable||a!==n&&!a.$stable||s&&e.$scopedSlots.$key!==s.$key),c=!!(o||e.$options._renderChildren||l);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=o,e.$attrs=r.data.attrs||n,e.$listeners=i||n,t&&e.$options.props){Me(!1);for(var u=e._props,h=e.$options._propKeys||[],d=0;d<h.length;d++){var f=h[d],p=e.$options.props;u[f]=Qe(f,p,t,e)}Me(!0),e.$options.propsData=t}i=i||n;var g=e.$options._parentListeners;e.$options._parentListeners=i,In(e,i,g),c&&(e.$slots=At(o,r.context),e.$forceUpdate())}function Fn(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function Bn(e,t){if(t){if(e._directInactive=!1,Fn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Bn(e.$children[n]);Vn(e,"activated")}}function Wn(e,t){if((!t||(e._directInactive=!0,!Fn(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Wn(e.$children[n]);Vn(e,"deactivated")}}function Vn(e,t){ye();var n=e.$options[t],i=t+" hook";if(n)for(var r=0,o=n.length;r<o;r++)rt(n[r],e,null,e,i);e._hasHookEvent&&e.$emit("hook:"+t),_e()}var zn=[],Hn=[],Un={},qn=!1,$n=!1,Kn=0;function Gn(){Kn=zn.length=Hn.length=0,Un={},qn=$n=!1}var Yn=0,Zn=Date.now;if(Q&&!ne){var Xn=window.performance;Xn&&"function"===typeof Xn.now&&Zn()>document.createEvent("Event").timeStamp&&(Zn=function(){return Xn.now()})}function Qn(){var e,t;for(Yn=Zn(),$n=!0,zn.sort((function(e,t){return e.id-t.id})),Kn=0;Kn<zn.length;Kn++)e=zn[Kn],e.before&&e.before(),t=e.id,Un[t]=null,e.run();var n=Hn.slice(),i=zn.slice();Gn(),ti(n),Jn(i),he&&U.devtools&&he.emit("flush")}function Jn(e){var t=e.length;while(t--){var n=e[t],i=n.vm;i._watcher===n&&i._isMounted&&!i._isDestroyed&&Vn(i,"updated")}}function ei(e){e._inactive=!1,Hn.push(e)}function ti(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Bn(e[t],!0)}function ni(e){var t=e.id;if(null==Un[t]){if(Un[t]=!0,$n){var n=zn.length-1;while(n>Kn&&zn[n].id>e.id)n--;zn.splice(n+1,0,e)}else zn.push(e);qn||(qn=!0,mt(Qn))}}var ii=0,ri=function(e,t,n,i,r){this.vm=e,r&&(e._watcher=this),e._watchers.push(this),i?(this.deep=!!i.deep,this.user=!!i.user,this.lazy=!!i.lazy,this.sync=!!i.sync,this.before=i.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++ii,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new fe,this.newDepIds=new fe,this.expression="","function"===typeof t?this.getter=t:(this.getter=Y(t),this.getter||(this.getter=N)),this.value=this.lazy?void 0:this.get()};ri.prototype.get=function(){var e;ye(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Xc){if(!this.user)throw Xc;it(Xc,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&bt(e),_e(),this.cleanupDeps()}return e},ri.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},ri.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},ri.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():ni(this)},ri.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||l(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Xc){it(Xc,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},ri.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ri.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},ri.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var oi={enumerable:!0,configurable:!0,get:N,set:N};function si(e,t,n){oi.get=function(){return this[t][n]},oi.set=function(e){this[t][n]=e},Object.defineProperty(e,n,oi)}function ai(e){e._watchers=[];var t=e.$options;t.props&&li(e,t.props),t.methods&&mi(e,t.methods),t.data?ci(e):Pe(e._data={},!0),t.computed&&di(e,t.computed),t.watch&&t.watch!==ae&&vi(e,t.watch)}function li(e,t){var n=e.$options.propsData||{},i=e._props={},r=e.$options._propKeys=[],o=!e.$parent;o||Me(!1);var s=function(o){r.push(o);var s=Qe(o,t,n,e);je(i,o,s),o in e||si(e,"_props",o)};for(var a in t)s(a);Me(!0)}function ci(e){var t=e.$options.data;t=e._data="function"===typeof t?ui(t,e):t||{},u(t)||(t={});var n=Object.keys(t),i=e.$options.props,r=(e.$options.methods,n.length);while(r--){var o=n[r];0,i&&w(i,o)||$(o)||si(e,"_data",o)}Pe(t,!0)}function ui(e,t){ye();try{return e.call(t,t)}catch(Xc){return it(Xc,t,"data()"),{}}finally{_e()}}var hi={lazy:!0};function di(e,t){var n=e._computedWatchers=Object.create(null),i=ue();for(var r in t){var o=t[r],s="function"===typeof o?o:o.get;0,i||(n[r]=new ri(e,s||N,N,hi)),r in e||fi(e,r,o)}}function fi(e,t,n){var i=!ue();"function"===typeof n?(oi.get=i?pi(t):gi(n),oi.set=N):(oi.get=n.get?i&&!1!==n.cache?pi(t):gi(n.get):N,oi.set=n.set||N),Object.defineProperty(e,t,oi)}function pi(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ve.target&&t.depend(),t.value}}function gi(e){return function(){return e.call(this,this)}}function mi(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?N:I(t[n],e)}function vi(e,t){for(var n in t){var i=t[n];if(Array.isArray(i))for(var r=0;r<i.length;r++)bi(e,n,i[r]);else bi(e,n,i)}}function bi(e,t,n,i){return u(n)&&(i=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,i)}function yi(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Re,e.prototype.$delete=Fe,e.prototype.$watch=function(e,t,n){var i=this;if(u(t))return bi(i,e,t,n);n=n||{},n.user=!0;var r=new ri(i,e,t,n);if(n.immediate)try{t.call(i,r.value)}catch(o){it(o,i,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}var _i=0;function wi(e){e.prototype._init=function(e){var t=this;t._uid=_i++,t._isVue=!0,e&&e._isComponent?Ci(t,e):t.$options=Ze(Si(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Nn(t),kn(t),vn(t),Vn(t,"beforeCreate"),Mt(t),ai(t),It(t),Vn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function Ci(e,t){var n=e.$options=Object.create(e.constructor.options),i=t._parentVnode;n.parent=t.parent,n._parentVnode=i;var r=i.componentOptions;n.propsData=r.propsData,n._parentListeners=r.listeners,n._renderChildren=r.children,n._componentTag=r.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function Si(e){var t=e.options;if(e.super){var n=Si(e.super),i=e.superOptions;if(n!==i){e.superOptions=n;var r=xi(e);r&&T(e.extendOptions,r),t=e.options=Ze(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function xi(e){var t,n=e.options,i=e.sealedOptions;for(var r in n)n[r]!==i[r]&&(t||(t={}),t[r]=n[r]);return t}function Oi(e){this._init(e)}function ki(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=M(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function Li(e){e.mixin=function(e){return this.options=Ze(this.options,e),this}}function Ei(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,i=n.cid,r=e._Ctor||(e._Ctor={});if(r[i])return r[i];var o=e.name||n.options.name;var s=function(e){this._init(e)};return s.prototype=Object.create(n.prototype),s.prototype.constructor=s,s.cid=t++,s.options=Ze(n.options,e),s["super"]=n,s.options.props&&Di(s),s.options.computed&&Ii(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,z.forEach((function(e){s[e]=n[e]})),o&&(s.options.components[o]=s),s.superOptions=n.options,s.extendOptions=e,s.sealedOptions=T({},s.options),r[i]=s,s}}function Di(e){var t=e.options.props;for(var n in t)si(e.prototype,"_props",n)}function Ii(e){var t=e.options.computed;for(var n in t)fi(e.prototype,n,t[n])}function Mi(e){z.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function Ti(e){return e&&(e.Ctor.options.name||e.tag)}function Ai(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!h(e)&&e.test(t)}function Ni(e,t){var n=e.cache,i=e.keys,r=e._vnode;for(var o in n){var s=n[o];if(s){var a=Ti(s.componentOptions);a&&!t(a)&&Pi(n,o,i,r)}}}function Pi(e,t,n,i){var r=e[t];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),e[t]=null,y(n,t)}wi(Oi),yi(Oi),Mn(Oi),Pn(Oi),_n(Oi);var ji=[String,RegExp,Array],Ri={name:"keep-alive",abstract:!0,props:{include:ji,exclude:ji,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Pi(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Ni(e,(function(e){return Ai(t,e)}))})),this.$watch("exclude",(function(t){Ni(e,(function(e){return!Ai(t,e)}))}))},render:function(){var e=this.$slots.default,t=On(e),n=t&&t.componentOptions;if(n){var i=Ti(n),r=this,o=r.include,s=r.exclude;if(o&&(!i||!Ai(o,i))||s&&i&&Ai(s,i))return t;var a=this,l=a.cache,c=a.keys,u=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;l[u]?(t.componentInstance=l[u].componentInstance,y(c,u),c.push(u)):(l[u]=t,c.push(u),this.max&&c.length>parseInt(this.max)&&Pi(l,c[0],c,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Fi={KeepAlive:Ri};function Bi(e){var t={get:function(){return U}};Object.defineProperty(e,"config",t),e.util={warn:ge,extend:T,mergeOptions:Ze,defineReactive:je},e.set=Re,e.delete=Fe,e.nextTick=mt,e.observable=function(e){return Pe(e),e},e.options=Object.create(null),z.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,T(e.options.components,Fi),ki(e),Li(e),Ei(e),Mi(e)}Bi(Oi),Object.defineProperty(Oi.prototype,"$isServer",{get:ue}),Object.defineProperty(Oi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Oi,"FunctionalRenderContext",{value:Jt}),Oi.version="2.6.12";var Wi=m("style,class"),Vi=m("input,textarea,option,select,progress"),zi=function(e,t,n){return"value"===n&&Vi(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Hi=m("contenteditable,draggable,spellcheck"),Ui=m("events,caret,typing,plaintext-only"),qi=function(e,t){return Zi(t)||"false"===t?"false":"contenteditable"===e&&Ui(t)?t:"true"},$i=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Ki="http://www.w3.org/1999/xlink",Gi=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Yi=function(e){return Gi(e)?e.slice(6,e.length):""},Zi=function(e){return null==e||!1===e};function Xi(e){var t=e.data,n=e,i=e;while(r(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(t=Qi(i.data,t));while(r(n=n.parent))n&&n.data&&(t=Qi(t,n.data));return Ji(t.staticClass,t.class)}function Qi(e,t){return{staticClass:er(e.staticClass,t.staticClass),class:r(e.class)?[e.class,t.class]:t.class}}function Ji(e,t){return r(e)||r(t)?er(e,tr(t)):""}function er(e,t){return e?t?e+" "+t:e:t||""}function tr(e){return Array.isArray(e)?nr(e):l(e)?ir(e):"string"===typeof e?e:""}function nr(e){for(var t,n="",i=0,o=e.length;i<o;i++)r(t=tr(e[i]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function ir(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var rr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},or=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),sr=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),ar=function(e){return"pre"===e},lr=function(e){return or(e)||sr(e)};function cr(e){return sr(e)?"svg":"math"===e?"math":void 0}var ur=Object.create(null);function hr(e){if(!Q)return!0;if(lr(e))return!1;if(e=e.toLowerCase(),null!=ur[e])return ur[e];var t=document.createElement(e);return e.indexOf("-")>-1?ur[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ur[e]=/HTMLUnknownElement/.test(t.toString())}var dr=m("text,number,password,search,email,tel,url");function fr(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function pr(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function gr(e,t){return document.createElementNS(rr[e],t)}function mr(e){return document.createTextNode(e)}function vr(e){return document.createComment(e)}function br(e,t,n){e.insertBefore(t,n)}function yr(e,t){e.removeChild(t)}function _r(e,t){e.appendChild(t)}function wr(e){return e.parentNode}function Cr(e){return e.nextSibling}function Sr(e){return e.tagName}function xr(e,t){e.textContent=t}function Or(e,t){e.setAttribute(t,"")}var kr=Object.freeze({createElement:pr,createElementNS:gr,createTextNode:mr,createComment:vr,insertBefore:br,removeChild:yr,appendChild:_r,parentNode:wr,nextSibling:Cr,tagName:Sr,setTextContent:xr,setStyleScope:Or}),Lr={create:function(e,t){Er(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Er(e,!0),Er(t))},destroy:function(e){Er(e,!0)}};function Er(e,t){var n=e.data.ref;if(r(n)){var i=e.context,o=e.componentInstance||e.elm,s=i.$refs;t?Array.isArray(s[n])?y(s[n],o):s[n]===o&&(s[n]=void 0):e.data.refInFor?Array.isArray(s[n])?s[n].indexOf(o)<0&&s[n].push(o):s[n]=[o]:s[n]=o}}var Dr=new we("",{},[]),Ir=["create","activate","update","remove","destroy"];function Mr(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&r(e.data)===r(t.data)&&Tr(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&i(t.asyncFactory.error))}function Tr(e,t){if("input"!==e.tag)return!0;var n,i=r(n=e.data)&&r(n=n.attrs)&&n.type,o=r(n=t.data)&&r(n=n.attrs)&&n.type;return i===o||dr(i)&&dr(o)}function Ar(e,t,n){var i,o,s={};for(i=t;i<=n;++i)o=e[i].key,r(o)&&(s[o]=i);return s}function Nr(e){var t,n,s={},l=e.modules,c=e.nodeOps;for(t=0;t<Ir.length;++t)for(s[Ir[t]]=[],n=0;n<l.length;++n)r(l[n][Ir[t]])&&s[Ir[t]].push(l[n][Ir[t]]);function u(e){return new we(c.tagName(e).toLowerCase(),{},[],void 0,e)}function h(e,t){function n(){0===--n.listeners&&d(e)}return n.listeners=t,n}function d(e){var t=c.parentNode(e);r(t)&&c.removeChild(t,e)}function f(e,t,n,i,s,a,l){if(r(e.elm)&&r(a)&&(e=a[l]=Oe(e)),e.isRootInsert=!s,!p(e,t,n,i)){var u=e.data,h=e.children,d=e.tag;r(d)?(e.elm=e.ns?c.createElementNS(e.ns,d):c.createElement(d,e),C(e),y(e,h,t),r(u)&&w(e,t),b(n,e.elm,i)):o(e.isComment)?(e.elm=c.createComment(e.text),b(n,e.elm,i)):(e.elm=c.createTextNode(e.text),b(n,e.elm,i))}}function p(e,t,n,i){var s=e.data;if(r(s)){var a=r(e.componentInstance)&&s.keepAlive;if(r(s=s.hook)&&r(s=s.init)&&s(e,!1),r(e.componentInstance))return g(e,t),b(n,e.elm,i),o(a)&&v(e,t,n,i),!0}}function g(e,t){r(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,_(e)?(w(e,t),C(e)):(Er(e),t.push(e))}function v(e,t,n,i){var o,a=e;while(a.componentInstance)if(a=a.componentInstance._vnode,r(o=a.data)&&r(o=o.transition)){for(o=0;o<s.activate.length;++o)s.activate[o](Dr,a);t.push(a);break}b(n,e.elm,i)}function b(e,t,n){r(e)&&(r(n)?c.parentNode(n)===e&&c.insertBefore(e,t,n):c.appendChild(e,t))}function y(e,t,n){if(Array.isArray(t)){0;for(var i=0;i<t.length;++i)f(t[i],n,e.elm,null,!0,t,i)}else a(e.text)&&c.appendChild(e.elm,c.createTextNode(String(e.text)))}function _(e){while(e.componentInstance)e=e.componentInstance._vnode;return r(e.tag)}function w(e,n){for(var i=0;i<s.create.length;++i)s.create[i](Dr,e);t=e.data.hook,r(t)&&(r(t.create)&&t.create(Dr,e),r(t.insert)&&n.push(e))}function C(e){var t;if(r(t=e.fnScopeId))c.setStyleScope(e.elm,t);else{var n=e;while(n)r(t=n.context)&&r(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t),n=n.parent}r(t=Tn)&&t!==e.context&&t!==e.fnContext&&r(t=t.$options._scopeId)&&c.setStyleScope(e.elm,t)}function S(e,t,n,i,r,o){for(;i<=r;++i)f(n[i],o,e,t,!1,n,i)}function x(e){var t,n,i=e.data;if(r(i))for(r(t=i.hook)&&r(t=t.destroy)&&t(e),t=0;t<s.destroy.length;++t)s.destroy[t](e);if(r(t=e.children))for(n=0;n<e.children.length;++n)x(e.children[n])}function O(e,t,n){for(;t<=n;++t){var i=e[t];r(i)&&(r(i.tag)?(k(i),x(i)):d(i.elm))}}function k(e,t){if(r(t)||r(e.data)){var n,i=s.remove.length+1;for(r(t)?t.listeners+=i:t=h(e.elm,i),r(n=e.componentInstance)&&r(n=n._vnode)&&r(n.data)&&k(n,t),n=0;n<s.remove.length;++n)s.remove[n](e,t);r(n=e.data.hook)&&r(n=n.remove)?n(e,t):t()}else d(e.elm)}function L(e,t,n,o,s){var a,l,u,h,d=0,p=0,g=t.length-1,m=t[0],v=t[g],b=n.length-1,y=n[0],_=n[b],w=!s;while(d<=g&&p<=b)i(m)?m=t[++d]:i(v)?v=t[--g]:Mr(m,y)?(D(m,y,o,n,p),m=t[++d],y=n[++p]):Mr(v,_)?(D(v,_,o,n,b),v=t[--g],_=n[--b]):Mr(m,_)?(D(m,_,o,n,b),w&&c.insertBefore(e,m.elm,c.nextSibling(v.elm)),m=t[++d],_=n[--b]):Mr(v,y)?(D(v,y,o,n,p),w&&c.insertBefore(e,v.elm,m.elm),v=t[--g],y=n[++p]):(i(a)&&(a=Ar(t,d,g)),l=r(y.key)?a[y.key]:E(y,t,d,g),i(l)?f(y,o,e,m.elm,!1,n,p):(u=t[l],Mr(u,y)?(D(u,y,o,n,p),t[l]=void 0,w&&c.insertBefore(e,u.elm,m.elm)):f(y,o,e,m.elm,!1,n,p)),y=n[++p]);d>g?(h=i(n[b+1])?null:n[b+1].elm,S(e,h,n,p,b,o)):p>b&&O(t,d,g)}function E(e,t,n,i){for(var o=n;o<i;o++){var s=t[o];if(r(s)&&Mr(e,s))return o}}function D(e,t,n,a,l,u){if(e!==t){r(t.elm)&&r(a)&&(t=a[l]=Oe(t));var h=t.elm=e.elm;if(o(e.isAsyncPlaceholder))r(t.asyncFactory.resolved)?T(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))t.componentInstance=e.componentInstance;else{var d,f=t.data;r(f)&&r(d=f.hook)&&r(d=d.prepatch)&&d(e,t);var p=e.children,g=t.children;if(r(f)&&_(t)){for(d=0;d<s.update.length;++d)s.update[d](e,t);r(d=f.hook)&&r(d=d.update)&&d(e,t)}i(t.text)?r(p)&&r(g)?p!==g&&L(h,p,g,n,u):r(g)?(r(e.text)&&c.setTextContent(h,""),S(h,null,g,0,g.length-1,n)):r(p)?O(p,0,p.length-1):r(e.text)&&c.setTextContent(h,""):e.text!==t.text&&c.setTextContent(h,t.text),r(f)&&r(d=f.hook)&&r(d=d.postpatch)&&d(e,t)}}}function I(e,t,n){if(o(n)&&r(e.parent))e.parent.data.pendingInsert=t;else for(var i=0;i<t.length;++i)t[i].data.hook.insert(t[i])}var M=m("attrs,class,staticClass,staticStyle,key");function T(e,t,n,i){var s,a=t.tag,l=t.data,c=t.children;if(i=i||l&&l.pre,t.elm=e,o(t.isComment)&&r(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(r(l)&&(r(s=l.hook)&&r(s=s.init)&&s(t,!0),r(s=t.componentInstance)))return g(t,n),!0;if(r(a)){if(r(c))if(e.hasChildNodes())if(r(s=l)&&r(s=s.domProps)&&r(s=s.innerHTML)){if(s!==e.innerHTML)return!1}else{for(var u=!0,h=e.firstChild,d=0;d<c.length;d++){if(!h||!T(h,c[d],n,i)){u=!1;break}h=h.nextSibling}if(!u||h)return!1}else y(t,c,n);if(r(l)){var f=!1;for(var p in l)if(!M(p)){f=!0,w(t,n);break}!f&&l["class"]&&bt(l["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,a){if(!i(t)){var l=!1,h=[];if(i(e))l=!0,f(t,h);else{var d=r(e.nodeType);if(!d&&Mr(e,t))D(e,t,h,null,null,a);else{if(d){if(1===e.nodeType&&e.hasAttribute(V)&&(e.removeAttribute(V),n=!0),o(n)&&T(e,t,h))return I(t,h,!0),e;e=u(e)}var p=e.elm,g=c.parentNode(p);if(f(t,h,p._leaveCb?null:g,c.nextSibling(p)),r(t.parent)){var m=t.parent,v=_(t);while(m){for(var b=0;b<s.destroy.length;++b)s.destroy[b](m);if(m.elm=t.elm,v){for(var y=0;y<s.create.length;++y)s.create[y](Dr,m);var w=m.data.hook.insert;if(w.merged)for(var C=1;C<w.fns.length;C++)w.fns[C]()}else Er(m);m=m.parent}}r(g)?O([e],0,0):r(e.tag)&&x(e)}}return I(t,h,l),t.elm}r(e)&&x(e)}}var Pr={create:jr,update:jr,destroy:function(e){jr(e,Dr)}};function jr(e,t){(e.data.directives||t.data.directives)&&Rr(e,t)}function Rr(e,t){var n,i,r,o=e===Dr,s=t===Dr,a=Br(e.data.directives,e.context),l=Br(t.data.directives,t.context),c=[],u=[];for(n in l)i=a[n],r=l[n],i?(r.oldValue=i.value,r.oldArg=i.arg,Vr(r,"update",t,e),r.def&&r.def.componentUpdated&&u.push(r)):(Vr(r,"bind",t,e),r.def&&r.def.inserted&&c.push(r));if(c.length){var h=function(){for(var n=0;n<c.length;n++)Vr(c[n],"inserted",t,e)};o?St(t,"insert",h):h()}if(u.length&&St(t,"postpatch",(function(){for(var n=0;n<u.length;n++)Vr(u[n],"componentUpdated",t,e)})),!o)for(n in a)l[n]||Vr(a[n],"unbind",e,e,s)}var Fr=Object.create(null);function Br(e,t){var n,i,r=Object.create(null);if(!e)return r;for(n=0;n<e.length;n++)i=e[n],i.modifiers||(i.modifiers=Fr),r[Wr(i)]=i,i.def=Xe(t.$options,"directives",i.name,!0);return r}function Wr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Vr(e,t,n,i,r){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,i,r)}catch(Xc){it(Xc,n.context,"directive "+e.name+" "+t+" hook")}}var zr=[Lr,Pr];function Hr(e,t){var n=t.componentOptions;if((!r(n)||!1!==n.Ctor.options.inheritAttrs)&&(!i(e.data.attrs)||!i(t.data.attrs))){var o,s,a,l=t.elm,c=e.data.attrs||{},u=t.data.attrs||{};for(o in r(u.__ob__)&&(u=t.data.attrs=T({},u)),u)s=u[o],a=c[o],a!==s&&Ur(l,o,s);for(o in(ne||re)&&u.value!==c.value&&Ur(l,"value",u.value),c)i(u[o])&&(Gi(o)?l.removeAttributeNS(Ki,Yi(o)):Hi(o)||l.removeAttribute(o))}}function Ur(e,t,n){e.tagName.indexOf("-")>-1?qr(e,t,n):$i(t)?Zi(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Hi(t)?e.setAttribute(t,qi(t,n)):Gi(t)?Zi(n)?e.removeAttributeNS(Ki,Yi(t)):e.setAttributeNS(Ki,t,n):qr(e,t,n)}function qr(e,t,n){if(Zi(n))e.removeAttribute(t);else{if(ne&&!ie&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var i=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",i)};e.addEventListener("input",i),e.__ieph=!0}e.setAttribute(t,n)}}var $r={create:Hr,update:Hr};function Kr(e,t){var n=t.elm,o=t.data,s=e.data;if(!(i(o.staticClass)&&i(o.class)&&(i(s)||i(s.staticClass)&&i(s.class)))){var a=Xi(t),l=n._transitionClasses;r(l)&&(a=er(a,tr(l))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var Gr,Yr,Zr,Xr,Qr,Jr,eo={create:Kr,update:Kr},to=/[\w).+\-_$\]]/;function no(e){var t,n,i,r,o,s=!1,a=!1,l=!1,c=!1,u=0,h=0,d=0,f=0;for(i=0;i<e.length;i++)if(n=t,t=e.charCodeAt(i),s)39===t&&92!==n&&(s=!1);else if(a)34===t&&92!==n&&(a=!1);else if(l)96===t&&92!==n&&(l=!1);else if(c)47===t&&92!==n&&(c=!1);else if(124!==t||124===e.charCodeAt(i+1)||124===e.charCodeAt(i-1)||u||h||d){switch(t){case 34:a=!0;break;case 39:s=!0;break;case 96:l=!0;break;case 40:d++;break;case 41:d--;break;case 91:h++;break;case 93:h--;break;case 123:u++;break;case 125:u--;break}if(47===t){for(var p=i-1,g=void 0;p>=0;p--)if(g=e.charAt(p)," "!==g)break;g&&to.test(g)||(c=!0)}}else void 0===r?(f=i+1,r=e.slice(0,i).trim()):m();function m(){(o||(o=[])).push(e.slice(f,i).trim()),f=i+1}if(void 0===r?r=e.slice(0,i).trim():0!==f&&m(),o)for(i=0;i<o.length;i++)r=io(r,o[i]);return r}function io(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var i=t.slice(0,n),r=t.slice(n+1);return'_f("'+i+'")('+e+(")"!==r?","+r:r)}function ro(e,t){console.error("[Vue compiler]: "+e)}function oo(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function so(e,t,n,i,r){(e.props||(e.props=[])).push(vo({name:t,value:n,dynamic:r},i)),e.plain=!1}function ao(e,t,n,i,r){var o=r?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[]);o.push(vo({name:t,value:n,dynamic:r},i)),e.plain=!1}function lo(e,t,n,i){e.attrsMap[t]=n,e.attrsList.push(vo({name:t,value:n},i))}function co(e,t,n,i,r,o,s,a){(e.directives||(e.directives=[])).push(vo({name:t,rawName:n,value:i,arg:r,isDynamicArg:o,modifiers:s},a)),e.plain=!1}function uo(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function ho(e,t,i,r,o,s,a,l){var c;r=r||n,r.right?l?t="("+t+")==='click'?'contextmenu':("+t+")":"click"===t&&(t="contextmenu",delete r.right):r.middle&&(l?t="("+t+")==='click'?'mouseup':("+t+")":"click"===t&&(t="mouseup")),r.capture&&(delete r.capture,t=uo("!",t,l)),r.once&&(delete r.once,t=uo("~",t,l)),r.passive&&(delete r.passive,t=uo("&",t,l)),r.native?(delete r.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});var u=vo({value:i.trim(),dynamic:l},a);r!==n&&(u.modifiers=r);var h=c[t];Array.isArray(h)?o?h.unshift(u):h.push(u):c[t]=h?o?[u,h]:[h,u]:u,e.plain=!1}function fo(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}function po(e,t,n){var i=go(e,":"+t)||go(e,"v-bind:"+t);if(null!=i)return no(i);if(!1!==n){var r=go(e,t);if(null!=r)return JSON.stringify(r)}}function go(e,t,n){var i;if(null!=(i=e.attrsMap[t]))for(var r=e.attrsList,o=0,s=r.length;o<s;o++)if(r[o].name===t){r.splice(o,1);break}return n&&delete e.attrsMap[t],i}function mo(e,t){for(var n=e.attrsList,i=0,r=n.length;i<r;i++){var o=n[i];if(t.test(o.name))return n.splice(i,1),o}}function vo(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function bo(e,t,n){var i=n||{},r=i.number,o=i.trim,s="$$v",a=s;o&&(a="(typeof "+s+" === 'string'? "+s+".trim(): "+s+")"),r&&(a="_n("+a+")");var l=yo(t,a);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ("+s+") {"+l+"}"}}function yo(e,t){var n=_o(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function _o(e){if(e=e.trim(),Gr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<Gr-1)return Xr=e.lastIndexOf("."),Xr>-1?{exp:e.slice(0,Xr),key:'"'+e.slice(Xr+1)+'"'}:{exp:e,key:null};Yr=e,Xr=Qr=Jr=0;while(!Co())Zr=wo(),So(Zr)?Oo(Zr):91===Zr&&xo(Zr);return{exp:e.slice(0,Qr),key:e.slice(Qr+1,Jr)}}function wo(){return Yr.charCodeAt(++Xr)}function Co(){return Xr>=Gr}function So(e){return 34===e||39===e}function xo(e){var t=1;Qr=Xr;while(!Co())if(e=wo(),So(e))Oo(e);else if(91===e&&t++,93===e&&t--,0===t){Jr=Xr;break}}function Oo(e){var t=e;while(!Co())if(e=wo(),e===t)break}var ko,Lo="__r",Eo="__c";function Do(e,t,n){n;var i=t.value,r=t.modifiers,o=e.tag,s=e.attrsMap.type;if(e.component)return bo(e,i,r),!1;if("select"===o)To(e,i,r);else if("input"===o&&"checkbox"===s)Io(e,i,r);else if("input"===o&&"radio"===s)Mo(e,i,r);else if("input"===o||"textarea"===o)Ao(e,i,r);else{if(!U.isReservedTag(o))return bo(e,i,r),!1}return!0}function Io(e,t,n){var i=n&&n.number,r=po(e,"value")||"null",o=po(e,"true-value")||"true",s=po(e,"false-value")||"false";so(e,"checked","Array.isArray("+t+")?_i("+t+","+r+")>-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),ho(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+s+");if(Array.isArray($$a)){var $$v="+(i?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+yo(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+yo(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+yo(t,"$$c")+"}",null,!0)}function Mo(e,t,n){var i=n&&n.number,r=po(e,"value")||"null";r=i?"_n("+r+")":r,so(e,"checked","_q("+t+","+r+")"),ho(e,"change",yo(t,r),null,!0)}function To(e,t,n){var i=n&&n.number,r='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(i?"_n(val)":"val")+"})",o="$event.target.multiple ? $$selectedVal : $$selectedVal[0]",s="var $$selectedVal = "+r+";";s=s+" "+yo(t,o),ho(e,"change",s,null,!0)}function Ao(e,t,n){var i=e.attrsMap.type,r=n||{},o=r.lazy,s=r.number,a=r.trim,l=!o&&"range"!==i,c=o?"change":"range"===i?Lo:"input",u="$event.target.value";a&&(u="$event.target.value.trim()"),s&&(u="_n("+u+")");var h=yo(t,u);l&&(h="if($event.target.composing)return;"+h),so(e,"value","("+t+")"),ho(e,c,h,null,!0),(a||s)&&ho(e,"blur","$forceUpdate()")}function No(e){if(r(e[Lo])){var t=ne?"change":"input";e[t]=[].concat(e[Lo],e[t]||[]),delete e[Lo]}r(e[Eo])&&(e.change=[].concat(e[Eo],e.change||[]),delete e[Eo])}function Po(e,t,n){var i=ko;return function r(){var o=t.apply(null,arguments);null!==o&&Fo(e,r,n,i)}}var jo=lt&&!(se&&Number(se[1])<=53);function Ro(e,t,n,i){if(jo){var r=Yn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}ko.addEventListener(e,t,le?{capture:n,passive:i}:n)}function Fo(e,t,n,i){(i||ko).removeEventListener(e,t._wrapper||t,n)}function Bo(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};ko=t.elm,No(n),Ct(n,r,Ro,Fo,Po,t.context),ko=void 0}}var Wo,Vo={create:Bo,update:Bo};function zo(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,o,s=t.elm,a=e.data.domProps||{},l=t.data.domProps||{};for(n in r(l.__ob__)&&(l=t.data.domProps=T({},l)),a)n in l||(s[n]="");for(n in l){if(o=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===a[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=o;var c=i(o)?"":String(o);Ho(s,c)&&(s.value=c)}else if("innerHTML"===n&&sr(s.tagName)&&i(s.innerHTML)){Wo=Wo||document.createElement("div"),Wo.innerHTML="<svg>"+o+"</svg>";var u=Wo.firstChild;while(s.firstChild)s.removeChild(s.firstChild);while(u.firstChild)s.appendChild(u.firstChild)}else if(o!==a[n])try{s[n]=o}catch(Xc){}}}}function Ho(e,t){return!e.composing&&("OPTION"===e.tagName||Uo(e,t)||qo(e,t))}function Uo(e,t){var n=!0;try{n=document.activeElement!==e}catch(Xc){}return n&&e.value!==t}function qo(e,t){var n=e.value,i=e._vModifiers;if(r(i)){if(i.number)return g(n)!==g(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}var $o={create:zo,update:zo},Ko=C((function(e){var t={},n=/;(?![^(]*\))/g,i=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Go(e){var t=Yo(e.style);return e.staticStyle?T(e.staticStyle,t):t}function Yo(e){return Array.isArray(e)?A(e):"string"===typeof e?Ko(e):e}function Zo(e,t){var n,i={};if(t){var r=e;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=Go(r.data))&&T(i,n)}(n=Go(e.data))&&T(i,n);var o=e;while(o=o.parent)o.data&&(n=Go(o.data))&&T(i,n);return i}var Xo,Qo=/^--/,Jo=/\s*!important$/,es=function(e,t,n){if(Qo.test(t))e.style.setProperty(t,n);else if(Jo.test(n))e.style.setProperty(L(t),n.replace(Jo,""),"important");else{var i=ns(t);if(Array.isArray(n))for(var r=0,o=n.length;r<o;r++)e.style[i]=n[r];else e.style[i]=n}},ts=["Webkit","Moz","ms"],ns=C((function(e){if(Xo=Xo||document.createElement("div").style,e=x(e),"filter"!==e&&e in Xo)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<ts.length;n++){var i=ts[n]+t;if(i in Xo)return i}}));function is(e,t){var n=t.data,o=e.data;if(!(i(n.staticStyle)&&i(n.style)&&i(o.staticStyle)&&i(o.style))){var s,a,l=t.elm,c=o.staticStyle,u=o.normalizedStyle||o.style||{},h=c||u,d=Yo(t.data.style)||{};t.data.normalizedStyle=r(d.__ob__)?T({},d):d;var f=Zo(t,!0);for(a in h)i(f[a])&&es(l,a,"");for(a in f)s=f[a],s!==h[a]&&es(l,a,null==s?"":s)}}var rs={create:is,update:is},os=/\s+/;function ss(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(os).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function as(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(os).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",i=" "+t+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function ls(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&T(t,cs(e.name||"v")),T(t,e),t}return"string"===typeof e?cs(e):void 0}}var cs=C((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),us=Q&&!ie,hs="transition",ds="animation",fs="transition",ps="transitionend",gs="animation",ms="animationend";us&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(fs="WebkitTransition",ps="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(gs="WebkitAnimation",ms="webkitAnimationEnd"));var vs=Q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function bs(e){vs((function(){vs(e)}))}function ys(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),ss(e,t))}function _s(e,t){e._transitionClasses&&y(e._transitionClasses,t),as(e,t)}function ws(e,t,n){var i=Ss(e,t),r=i.type,o=i.timeout,s=i.propCount;if(!r)return n();var a=r===hs?ps:ms,l=0,c=function(){e.removeEventListener(a,u),n()},u=function(t){t.target===e&&++l>=s&&c()};setTimeout((function(){l<s&&c()}),o+1),e.addEventListener(a,u)}var Cs=/\b(transform|all)(,|$)/;function Ss(e,t){var n,i=window.getComputedStyle(e),r=(i[fs+"Delay"]||"").split(", "),o=(i[fs+"Duration"]||"").split(", "),s=xs(r,o),a=(i[gs+"Delay"]||"").split(", "),l=(i[gs+"Duration"]||"").split(", "),c=xs(a,l),u=0,h=0;t===hs?s>0&&(n=hs,u=s,h=o.length):t===ds?c>0&&(n=ds,u=c,h=l.length):(u=Math.max(s,c),n=u>0?s>c?hs:ds:null,h=n?n===hs?o.length:l.length:0);var d=n===hs&&Cs.test(i[fs+"Property"]);return{type:n,timeout:u,propCount:h,hasTransform:d}}function xs(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Os(t)+Os(e[n])})))}function Os(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ks(e,t){var n=e.elm;r(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=ls(e.data.transition);if(!i(o)&&!r(n._enterCb)&&1===n.nodeType){var s=o.css,a=o.type,c=o.enterClass,u=o.enterToClass,h=o.enterActiveClass,d=o.appearClass,f=o.appearToClass,p=o.appearActiveClass,m=o.beforeEnter,v=o.enter,b=o.afterEnter,y=o.enterCancelled,_=o.beforeAppear,w=o.appear,C=o.afterAppear,S=o.appearCancelled,x=o.duration,O=Tn,k=Tn.$vnode;while(k&&k.parent)O=k.context,k=k.parent;var L=!O._isMounted||!e.isRootInsert;if(!L||w||""===w){var E=L&&d?d:c,D=L&&p?p:h,I=L&&f?f:u,M=L&&_||m,T=L&&"function"===typeof w?w:v,A=L&&C||b,N=L&&S||y,P=g(l(x)?x.enter:x);0;var j=!1!==s&&!ie,R=Ds(T),F=n._enterCb=W((function(){j&&(_s(n,I),_s(n,D)),F.cancelled?(j&&_s(n,E),N&&N(n)):A&&A(n),n._enterCb=null}));e.data.show||St(e,"insert",(function(){var t=n.parentNode,i=t&&t._pending&&t._pending[e.key];i&&i.tag===e.tag&&i.elm._leaveCb&&i.elm._leaveCb(),T&&T(n,F)})),M&&M(n),j&&(ys(n,E),ys(n,D),bs((function(){_s(n,E),F.cancelled||(ys(n,I),R||(Es(P)?setTimeout(F,P):ws(n,a,F)))}))),e.data.show&&(t&&t(),T&&T(n,F)),j||R||F()}}}function Ls(e,t){var n=e.elm;r(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=ls(e.data.transition);if(i(o)||1!==n.nodeType)return t();if(!r(n._leaveCb)){var s=o.css,a=o.type,c=o.leaveClass,u=o.leaveToClass,h=o.leaveActiveClass,d=o.beforeLeave,f=o.leave,p=o.afterLeave,m=o.leaveCancelled,v=o.delayLeave,b=o.duration,y=!1!==s&&!ie,_=Ds(f),w=g(l(b)?b.leave:b);0;var C=n._leaveCb=W((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),y&&(_s(n,u),_s(n,h)),C.cancelled?(y&&_s(n,c),m&&m(n)):(t(),p&&p(n)),n._leaveCb=null}));v?v(S):S()}function S(){C.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),d&&d(n),y&&(ys(n,c),ys(n,h),bs((function(){_s(n,c),C.cancelled||(ys(n,u),_||(Es(w)?setTimeout(C,w):ws(n,a,C)))}))),f&&f(n,C),y||_||C())}}function Es(e){return"number"===typeof e&&!isNaN(e)}function Ds(e){if(i(e))return!1;var t=e.fns;return r(t)?Ds(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Is(e,t){!0!==t.data.show&&ks(t)}var Ms=Q?{create:Is,activate:Is,remove:function(e,t){!0!==e.data.show?Ls(e,t):t()}}:{},Ts=[$r,eo,Vo,$o,rs,Ms],As=Ts.concat(zr),Ns=Nr({nodeOps:kr,modules:As});ie&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&zs(e,"input")}));var Ps={inserted:function(e,t,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?St(n,"postpatch",(function(){Ps.componentUpdated(e,t,n)})):js(e,t,n.context),e._vOptions=[].map.call(e.options,Bs)):("textarea"===n.tag||dr(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Ws),e.addEventListener("compositionend",Vs),e.addEventListener("change",Vs),ie&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){js(e,t,n.context);var i=e._vOptions,r=e._vOptions=[].map.call(e.options,Bs);if(r.some((function(e,t){return!F(e,i[t])}))){var o=e.multiple?t.value.some((function(e){return Fs(e,r)})):t.value!==t.oldValue&&Fs(t.value,r);o&&zs(e,"change")}}}};function js(e,t,n){Rs(e,t,n),(ne||re)&&setTimeout((function(){Rs(e,t,n)}),0)}function Rs(e,t,n){var i=t.value,r=e.multiple;if(!r||Array.isArray(i)){for(var o,s,a=0,l=e.options.length;a<l;a++)if(s=e.options[a],r)o=B(i,Bs(s))>-1,s.selected!==o&&(s.selected=o);else if(F(Bs(s),i))return void(e.selectedIndex!==a&&(e.selectedIndex=a));r||(e.selectedIndex=-1)}}function Fs(e,t){return t.every((function(t){return!F(t,e)}))}function Bs(e){return"_value"in e?e._value:e.value}function Ws(e){e.target.composing=!0}function Vs(e){e.target.composing&&(e.target.composing=!1,zs(e.target,"input"))}function zs(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Hs(e){return!e.componentInstance||e.data&&e.data.transition?e:Hs(e.componentInstance._vnode)}var Us={bind:function(e,t,n){var i=t.value;n=Hs(n);var r=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;i&&r?(n.data.show=!0,ks(n,(function(){e.style.display=o}))):e.style.display=i?o:"none"},update:function(e,t,n){var i=t.value,r=t.oldValue;if(!i!==!r){n=Hs(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,i?ks(n,(function(){e.style.display=e.__vOriginalDisplay})):Ls(n,(function(){e.style.display="none"}))):e.style.display=i?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,i,r){r||(e.style.display=e.__vOriginalDisplay)}},qs={model:Ps,show:Us},$s={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ks(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ks(On(t.children)):e}function Gs(e){var t={},n=e.$options;for(var i in n.propsData)t[i]=e[i];var r=n._parentListeners;for(var o in r)t[x(o)]=r[o];return t}function Ys(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Zs(e){while(e=e.parent)if(e.data.transition)return!0}function Xs(e,t){return t.key===e.key&&t.tag===e.tag}var Qs=function(e){return e.tag||xn(e)},Js=function(e){return"show"===e.name},ea={name:"transition",props:$s,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Qs),n.length)){0;var i=this.mode;0;var r=n[0];if(Zs(this.$vnode))return r;var o=Ks(r);if(!o)return r;if(this._leaving)return Ys(e,r);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var l=(o.data||(o.data={})).transition=Gs(this),c=this._vnode,u=Ks(c);if(o.data.directives&&o.data.directives.some(Js)&&(o.data.show=!0),u&&u.data&&!Xs(o,u)&&!xn(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var h=u.data.transition=T({},l);if("out-in"===i)return this._leaving=!0,St(h,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Ys(e,r);if("in-out"===i){if(xn(o))return c;var d,f=function(){d()};St(l,"afterEnter",f),St(l,"enterCancelled",f),St(h,"delayLeave",(function(e){d=e}))}}return r}}},ta=T({tag:String,moveClass:String},$s);delete ta.mode;var na={props:ta,beforeMount:function(){var e=this,t=this._update;this._update=function(n,i){var r=An(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,r(),t.call(e,n,i)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],s=Gs(this),a=0;a<r.length;a++){var l=r[a];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),n[l.key]=l,(l.data||(l.data={})).transition=s;else;}if(i){for(var c=[],u=[],h=0;h<i.length;h++){var d=i[h];d.data.transition=s,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?c.push(d):u.push(d)}this.kept=e(t,null,c),this.removed=u}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(ia),e.forEach(ra),e.forEach(oa),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,i=n.style;ys(n,t),i.transform=i.WebkitTransform=i.transitionDuration="",n.addEventListener(ps,n._moveCb=function e(i){i&&i.target!==n||i&&!/transform$/.test(i.propertyName)||(n.removeEventListener(ps,e),n._moveCb=null,_s(n,t))})}})))},methods:{hasMove:function(e,t){if(!us)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){as(n,e)})),ss(n,t),n.style.display="none",this.$el.appendChild(n);var i=Ss(n);return this.$el.removeChild(n),this._hasMove=i.hasTransform}}};function ia(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function ra(e){e.data.newPos=e.elm.getBoundingClientRect()}function oa(e){var t=e.data.pos,n=e.data.newPos,i=t.left-n.left,r=t.top-n.top;if(i||r){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+i+"px,"+r+"px)",o.transitionDuration="0s"}}var sa={Transition:ea,TransitionGroup:na};Oi.config.mustUseProp=zi,Oi.config.isReservedTag=lr,Oi.config.isReservedAttr=Wi,Oi.config.getTagNamespace=cr,Oi.config.isUnknownElement=hr,T(Oi.options.directives,qs),T(Oi.options.components,sa),Oi.prototype.__patch__=Q?Ns:N,Oi.prototype.$mount=function(e,t){return e=e&&Q?fr(e):void 0,jn(this,e,t)},Q&&setTimeout((function(){U.devtools&&he&&he.emit("init",Oi)}),0);var aa=/\{\{((?:.|\r?\n)+?)\}\}/g,la=/[-.*+?^${}()|[\]\/\\]/g,ca=C((function(e){var t=e[0].replace(la,"\\$&"),n=e[1].replace(la,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));function ua(e,t){var n=t?ca(t):aa;if(n.test(e)){var i,r,o,s=[],a=[],l=n.lastIndex=0;while(i=n.exec(e)){r=i.index,r>l&&(a.push(o=e.slice(l,r)),s.push(JSON.stringify(o)));var c=no(i[1].trim());s.push("_s("+c+")"),a.push({"@binding":c}),l=r+i[0].length}return l<e.length&&(a.push(o=e.slice(l)),s.push(JSON.stringify(o))),{expression:s.join("+"),tokens:a}}}function ha(e,t){t.warn;var n=go(e,"class");n&&(e.staticClass=JSON.stringify(n));var i=po(e,"class",!1);i&&(e.classBinding=i)}function da(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}var fa={staticKeys:["staticClass"],transformNode:ha,genData:da};function pa(e,t){t.warn;var n=go(e,"style");n&&(e.staticStyle=JSON.stringify(Ko(n)));var i=po(e,"style",!1);i&&(e.styleBinding=i)}function ga(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}var ma,va={staticKeys:["staticStyle"],transformNode:pa,genData:ga},ba={decode:function(e){return ma=ma||document.createElement("div"),ma.innerHTML=e,ma.textContent}},ya=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),_a=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),wa=m("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Ca=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Sa=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,xa="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+q.source+"]*",Oa="((?:"+xa+"\\:)?"+xa+")",ka=new RegExp("^<"+Oa),La=/^\s*(\/?)>/,Ea=new RegExp("^<\\/"+Oa+"[^>]*>"),Da=/^<!DOCTYPE [^>]+>/i,Ia=/^<!\--/,Ma=/^<!\[/,Ta=m("script,style,textarea",!0),Aa={},Na={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},Pa=/&(?:lt|gt|quot|amp|#39);/g,ja=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Ra=m("pre,textarea",!0),Fa=function(e,t){return e&&Ra(e)&&"\n"===t[0]};function Ba(e,t){var n=t?ja:Pa;return e.replace(n,(function(e){return Na[e]}))}function Wa(e,t){var n,i,r=[],o=t.expectHTML,s=t.isUnaryTag||P,a=t.canBeLeftOpenTag||P,l=0;while(e){if(n=e,i&&Ta(i)){var c=0,u=i.toLowerCase(),h=Aa[u]||(Aa[u]=new RegExp("([\\s\\S]*?)(</"+u+"[^>]*>)","i")),d=e.replace(h,(function(e,n,i){return c=i.length,Ta(u)||"noscript"===u||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Fa(u,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));l+=e.length-d.length,e=d,k(u,l-c,l)}else{var f=e.indexOf("<");if(0===f){if(Ia.test(e)){var p=e.indexOf("--\x3e");if(p>=0){t.shouldKeepComment&&t.comment(e.substring(4,p),l,l+p+3),S(p+3);continue}}if(Ma.test(e)){var g=e.indexOf("]>");if(g>=0){S(g+2);continue}}var m=e.match(Da);if(m){S(m[0].length);continue}var v=e.match(Ea);if(v){var b=l;S(v[0].length),k(v[1],b,l);continue}var y=x();if(y){O(y),Fa(y.tagName,e)&&S(1);continue}}var _=void 0,w=void 0,C=void 0;if(f>=0){w=e.slice(f);while(!Ea.test(w)&&!ka.test(w)&&!Ia.test(w)&&!Ma.test(w)){if(C=w.indexOf("<",1),C<0)break;f+=C,w=e.slice(f)}_=e.substring(0,f)}f<0&&(_=e),_&&S(_.length),t.chars&&_&&t.chars(_,l-_.length,l)}if(e===n){t.chars&&t.chars(e);break}}function S(t){l+=t,e=e.substring(t)}function x(){var t=e.match(ka);if(t){var n,i,r={tagName:t[1],attrs:[],start:l};S(t[0].length);while(!(n=e.match(La))&&(i=e.match(Sa)||e.match(Ca)))i.start=l,S(i[0].length),i.end=l,r.attrs.push(i);if(n)return r.unarySlash=n[1],S(n[0].length),r.end=l,r}}function O(e){var n=e.tagName,l=e.unarySlash;o&&("p"===i&&wa(n)&&k(i),a(n)&&i===n&&k(n));for(var c=s(n)||!!l,u=e.attrs.length,h=new Array(u),d=0;d<u;d++){var f=e.attrs[d],p=f[3]||f[4]||f[5]||"",g="a"===n&&"href"===f[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;h[d]={name:f[1],value:Ba(p,g)}}c||(r.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:h,start:e.start,end:e.end}),i=n),t.start&&t.start(n,h,c,e.start,e.end)}function k(e,n,o){var s,a;if(null==n&&(n=l),null==o&&(o=l),e){for(a=e.toLowerCase(),s=r.length-1;s>=0;s--)if(r[s].lowerCasedTag===a)break}else s=0;if(s>=0){for(var c=r.length-1;c>=s;c--)t.end&&t.end(r[c].tag,n,o);r.length=s,i=s&&r[s-1].tag}else"br"===a?t.start&&t.start(e,[],!0,n,o):"p"===a&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}k()}var Va,za,Ha,Ua,qa,$a,Ka,Ga,Ya=/^@|^v-on:/,Za=/^v-|^@|^:|^#/,Xa=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Qa=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ja=/^\(|\)$/g,el=/^\[.*\]$/,tl=/:(.*)$/,nl=/^:|^\.|^v-bind:/,il=/\.[^.\]]+(?=[^\]]*$)/g,rl=/^v-slot(:|$)|^#/,ol=/[\r\n]/,sl=/\s+/g,al=C(ba.decode),ll="_empty_";function cl(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:Il(t),rawAttrsMap:{},parent:n,children:[]}}function ul(e,t){Va=t.warn||ro,$a=t.isPreTag||P,Ka=t.mustUseProp||P,Ga=t.getTagNamespace||P;var n=t.isReservedTag||P;(function(e){return!!e.component||!n(e.tag)}),Ha=oo(t.modules,"transformNode"),Ua=oo(t.modules,"preTransformNode"),qa=oo(t.modules,"postTransformNode"),za=t.delimiters;var i,r,o=[],s=!1!==t.preserveWhitespace,a=t.whitespace,l=!1,c=!1;function u(e){if(h(e),l||e.processed||(e=fl(e,t)),o.length||e===i||i.if&&(e.elseif||e.else)&&wl(i,{exp:e.elseif,block:e}),r&&!e.forbidden)if(e.elseif||e.else)yl(e,r);else{if(e.slotScope){var n=e.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[n]=e}r.children.push(e),e.parent=r}e.children=e.children.filter((function(e){return!e.slotScope})),h(e),e.pre&&(l=!1),$a(e.tag)&&(c=!1);for(var s=0;s<qa.length;s++)qa[s](e,t)}function h(e){var t;if(!c)while((t=e.children[e.children.length-1])&&3===t.type&&" "===t.text)e.children.pop()}return Wa(e,{warn:Va,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,s,a,h){var d=r&&r.ns||Ga(e);ne&&"svg"===d&&(n=Pl(n));var f=cl(e,n,r);d&&(f.ns=d),Tl(f)&&!ue()&&(f.forbidden=!0);for(var p=0;p<Ua.length;p++)f=Ua[p](f,t)||f;l||(hl(f),f.pre&&(l=!0)),$a(f.tag)&&(c=!0),l?dl(f):f.processed||(ml(f),bl(f),Cl(f)),i||(i=f),s?u(f):(r=f,o.push(f))},end:function(e,t,n){var i=o[o.length-1];o.length-=1,r=o[o.length-1],u(i)},chars:function(e,t,n){if(r&&(!ne||"textarea"!==r.tag||r.attrsMap.placeholder!==e)){var i,o,u=r.children;if(e=c||e.trim()?Ml(r)?e:al(e):u.length?a?"condense"===a&&ol.test(e)?"":" ":s?" ":"":"",e)c||"condense"!==a||(e=e.replace(sl," ")),!l&&" "!==e&&(i=ua(e,za))?o={type:2,expression:i.expression,tokens:i.tokens,text:e}:" "===e&&u.length&&" "===u[u.length-1].text||(o={type:3,text:e}),o&&u.push(o)}},comment:function(e,t,n){if(r){var i={type:3,text:e,isComment:!0};0,r.children.push(i)}}}),i}function hl(e){null!=go(e,"v-pre")&&(e.pre=!0)}function dl(e){var t=e.attrsList,n=t.length;if(n)for(var i=e.attrs=new Array(n),r=0;r<n;r++)i[r]={name:t[r].name,value:JSON.stringify(t[r].value)},null!=t[r].start&&(i[r].start=t[r].start,i[r].end=t[r].end);else e.pre||(e.plain=!0)}function fl(e,t){pl(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,gl(e),Sl(e),Ol(e),kl(e);for(var n=0;n<Ha.length;n++)e=Ha[n](e,t)||e;return Ll(e),e}function pl(e){var t=po(e,"key");t&&(e.key=t)}function gl(e){var t=po(e,"ref");t&&(e.ref=t,e.refInFor=El(e))}function ml(e){var t;if(t=go(e,"v-for")){var n=vl(t);n&&T(e,n)}}function vl(e){var t=e.match(Xa);if(t){var n={};n.for=t[2].trim();var i=t[1].trim().replace(Ja,""),r=i.match(Qa);return r?(n.alias=i.replace(Qa,"").trim(),n.iterator1=r[1].trim(),r[2]&&(n.iterator2=r[2].trim())):n.alias=i,n}}function bl(e){var t=go(e,"v-if");if(t)e.if=t,wl(e,{exp:t,block:e});else{null!=go(e,"v-else")&&(e.else=!0);var n=go(e,"v-else-if");n&&(e.elseif=n)}}function yl(e,t){var n=_l(t.children);n&&n.if&&wl(n,{exp:e.elseif,block:e})}function _l(e){var t=e.length;while(t--){if(1===e[t].type)return e[t];e.pop()}}function wl(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function Cl(e){var t=go(e,"v-once");null!=t&&(e.once=!0)}function Sl(e){var t;"template"===e.tag?(t=go(e,"scope"),e.slotScope=t||go(e,"slot-scope")):(t=go(e,"slot-scope"))&&(e.slotScope=t);var n=po(e,"slot");if(n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||ao(e,"slot",n,fo(e,"slot"))),"template"===e.tag){var i=mo(e,rl);if(i){0;var r=xl(i),o=r.name,s=r.dynamic;e.slotTarget=o,e.slotTargetDynamic=s,e.slotScope=i.value||ll}}else{var a=mo(e,rl);if(a){0;var l=e.scopedSlots||(e.scopedSlots={}),c=xl(a),u=c.name,h=c.dynamic,d=l[u]=cl("template",[],e);d.slotTarget=u,d.slotTargetDynamic=h,d.children=e.children.filter((function(e){if(!e.slotScope)return e.parent=d,!0})),d.slotScope=a.value||ll,e.children=[],e.plain=!1}}}function xl(e){var t=e.name.replace(rl,"");return t||"#"!==e.name[0]&&(t="default"),el.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function Ol(e){"slot"===e.tag&&(e.slotName=po(e,"name"))}function kl(e){var t;(t=po(e,"is"))&&(e.component=t),null!=go(e,"inline-template")&&(e.inlineTemplate=!0)}function Ll(e){var t,n,i,r,o,s,a,l,c=e.attrsList;for(t=0,n=c.length;t<n;t++){if(i=r=c[t].name,o=c[t].value,Za.test(i))if(e.hasBindings=!0,s=Dl(i.replace(Za,"")),s&&(i=i.replace(il,"")),nl.test(i))i=i.replace(nl,""),o=no(o),l=el.test(i),l&&(i=i.slice(1,-1)),s&&(s.prop&&!l&&(i=x(i),"innerHtml"===i&&(i="innerHTML")),s.camel&&!l&&(i=x(i)),s.sync&&(a=yo(o,"$event"),l?ho(e,'"update:"+('+i+")",a,null,!1,Va,c[t],!0):(ho(e,"update:"+x(i),a,null,!1,Va,c[t]),L(i)!==x(i)&&ho(e,"update:"+L(i),a,null,!1,Va,c[t])))),s&&s.prop||!e.component&&Ka(e.tag,e.attrsMap.type,i)?so(e,i,o,c[t],l):ao(e,i,o,c[t],l);else if(Ya.test(i))i=i.replace(Ya,""),l=el.test(i),l&&(i=i.slice(1,-1)),ho(e,i,o,s,!1,Va,c[t],l);else{i=i.replace(Za,"");var u=i.match(tl),h=u&&u[1];l=!1,h&&(i=i.slice(0,-(h.length+1)),el.test(h)&&(h=h.slice(1,-1),l=!0)),co(e,i,r,o,h,l,s,c[t])}else ao(e,i,JSON.stringify(o),c[t]),!e.component&&"muted"===i&&Ka(e.tag,e.attrsMap.type,i)&&so(e,i,"true",c[t])}}function El(e){var t=e;while(t){if(void 0!==t.for)return!0;t=t.parent}return!1}function Dl(e){var t=e.match(il);if(t){var n={};return t.forEach((function(e){n[e.slice(1)]=!0})),n}}function Il(e){for(var t={},n=0,i=e.length;n<i;n++)t[e[n].name]=e[n].value;return t}function Ml(e){return"script"===e.tag||"style"===e.tag}function Tl(e){return"style"===e.tag||"script"===e.tag&&(!e.attrsMap.type||"text/javascript"===e.attrsMap.type)}var Al=/^xmlns:NS\d+/,Nl=/^NS\d+:/;function Pl(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Al.test(i.name)||(i.name=i.name.replace(Nl,""),t.push(i))}return t}function jl(e,t){if("input"===e.tag){var n,i=e.attrsMap;if(!i["v-model"])return;if((i[":type"]||i["v-bind:type"])&&(n=po(e,"type")),i.type||n||!i["v-bind"]||(n="("+i["v-bind"]+").type"),n){var r=go(e,"v-if",!0),o=r?"&&("+r+")":"",s=null!=go(e,"v-else",!0),a=go(e,"v-else-if",!0),l=Rl(e);ml(l),lo(l,"type","checkbox"),fl(l,t),l.processed=!0,l.if="("+n+")==='checkbox'"+o,wl(l,{exp:l.if,block:l});var c=Rl(e);go(c,"v-for",!0),lo(c,"type","radio"),fl(c,t),wl(l,{exp:"("+n+")==='radio'"+o,block:c});var u=Rl(e);return go(u,"v-for",!0),lo(u,":type",n),fl(u,t),wl(l,{exp:r,block:u}),s?l.else=!0:a&&(l.elseif=a),l}}}function Rl(e){return cl(e.tag,e.attrsList.slice(),e.parent)}var Fl={preTransformNode:jl},Bl=[fa,va,Fl];function Wl(e,t){t.value&&so(e,"textContent","_s("+t.value+")",t)}function Vl(e,t){t.value&&so(e,"innerHTML","_s("+t.value+")",t)}var zl,Hl,Ul={model:Do,text:Wl,html:Vl},ql={expectHTML:!0,modules:Bl,directives:Ul,isPreTag:ar,isUnaryTag:ya,mustUseProp:zi,canBeLeftOpenTag:_a,isReservedTag:lr,getTagNamespace:cr,staticKeys:R(Bl)},$l=C(Gl);function Kl(e,t){e&&(zl=$l(t.staticKeys||""),Hl=t.isReservedTag||P,Yl(e),Zl(e,!1))}function Gl(e){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}function Yl(e){if(e.static=Xl(e),1===e.type){if(!Hl(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,n=e.children.length;t<n;t++){var i=e.children[t];Yl(i),i.static||(e.static=!1)}if(e.ifConditions)for(var r=1,o=e.ifConditions.length;r<o;r++){var s=e.ifConditions[r].block;Yl(s),s.static||(e.static=!1)}}}function Zl(e,t){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=t),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var n=0,i=e.children.length;n<i;n++)Zl(e.children[n],t||!!e.for);if(e.ifConditions)for(var r=1,o=e.ifConditions.length;r<o;r++)Zl(e.ifConditions[r].block,t)}}function Xl(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e.if||e.for||v(e.tag)||!Hl(e.tag)||Ql(e)||!Object.keys(e).every(zl))))}function Ql(e){while(e.parent){if(e=e.parent,"template"!==e.tag)return!1;if(e.for)return!0}return!1}var Jl=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,ec=/\([^)]*?\);*$/,tc=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,nc={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ic={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},rc=function(e){return"if("+e+")return null;"},oc={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:rc("$event.target !== $event.currentTarget"),ctrl:rc("!$event.ctrlKey"),shift:rc("!$event.shiftKey"),alt:rc("!$event.altKey"),meta:rc("!$event.metaKey"),left:rc("'button' in $event && $event.button !== 0"),middle:rc("'button' in $event && $event.button !== 1"),right:rc("'button' in $event && $event.button !== 2")};function sc(e,t){var n=t?"nativeOn:":"on:",i="",r="";for(var o in e){var s=ac(e[o]);e[o]&&e[o].dynamic?r+=o+","+s+",":i+='"'+o+'":'+s+","}return i="{"+i.slice(0,-1)+"}",r?n+"_d("+i+",["+r.slice(0,-1)+"])":n+i}function ac(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return ac(e)})).join(",")+"]";var t=tc.test(e.value),n=Jl.test(e.value),i=tc.test(e.value.replace(ec,""));if(e.modifiers){var r="",o="",s=[];for(var a in e.modifiers)if(oc[a])o+=oc[a],nc[a]&&s.push(a);else if("exact"===a){var l=e.modifiers;o+=rc(["ctrl","shift","alt","meta"].filter((function(e){return!l[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else s.push(a);s.length&&(r+=lc(s)),o&&(r+=o);var c=t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":i?"return "+e.value:e.value;return"function($event){"+r+c+"}"}return t||n?e.value:"function($event){"+(i?"return "+e.value:e.value)+"}"}function lc(e){return"if(!$event.type.indexOf('key')&&"+e.map(cc).join("&&")+")return null;"}function cc(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=nc[e],i=ic[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(i)+")"}function uc(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}}function hc(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}}var dc={on:uc,bind:hc,cloak:N},fc=function(e){this.options=e,this.warn=e.warn||ro,this.transforms=oo(e.modules,"transformCode"),this.dataGenFns=oo(e.modules,"genData"),this.directives=T(T({},dc),e.directives);var t=e.isReservedTag||P;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function pc(e,t){var n=new fc(t),i=e?gc(e,n):'_c("div")';return{render:"with(this){return "+i+"}",staticRenderFns:n.staticRenderFns}}function gc(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return mc(e,t);if(e.once&&!e.onceProcessed)return vc(e,t);if(e.for&&!e.forProcessed)return _c(e,t);if(e.if&&!e.ifProcessed)return bc(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return Nc(e,t);var n;if(e.component)n=Pc(e.component,e,t);else{var i;(!e.plain||e.pre&&t.maybeComponent(e))&&(i=wc(e,t));var r=e.inlineTemplate?null:Ec(e,t,!0);n="_c('"+e.tag+"'"+(i?","+i:"")+(r?","+r:"")+")"}for(var o=0;o<t.transforms.length;o++)n=t.transforms[o](e,n);return n}return Ec(e,t)||"void 0"}function mc(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+gc(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function vc(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return bc(e,t);if(e.staticInFor){var n="",i=e.parent;while(i){if(i.for){n=i.key;break}i=i.parent}return n?"_o("+gc(e,t)+","+t.onceId+++","+n+")":gc(e,t)}return mc(e,t)}function bc(e,t,n,i){return e.ifProcessed=!0,yc(e.ifConditions.slice(),t,n,i)}function yc(e,t,n,i){if(!e.length)return i||"_e()";var r=e.shift();return r.exp?"("+r.exp+")?"+o(r.block)+":"+yc(e,t,n,i):""+o(r.block);function o(e){return n?n(e,t):e.once?vc(e,t):gc(e,t)}}function _c(e,t,n,i){var r=e.for,o=e.alias,s=e.iterator1?","+e.iterator1:"",a=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(i||"_l")+"(("+r+"),function("+o+s+a+"){return "+(n||gc)(e,t)+"})"}function wc(e,t){var n="{",i=Cc(e,t);i&&(n+=i+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var r=0;r<t.dataGenFns.length;r++)n+=t.dataGenFns[r](e);if(e.attrs&&(n+="attrs:"+jc(e.attrs)+","),e.props&&(n+="domProps:"+jc(e.props)+","),e.events&&(n+=sc(e.events,!1)+","),e.nativeEvents&&(n+=sc(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=xc(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=Sc(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+jc(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Cc(e,t){var n=e.directives;if(n){var i,r,o,s,a="directives:[",l=!1;for(i=0,r=n.length;i<r;i++){o=n[i],s=!0;var c=t.directives[o.name];c&&(s=!!c(e,o,t.warn)),s&&(l=!0,a+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?",arg:"+(o.isDynamicArg?o.arg:'"'+o.arg+'"'):"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}return l?a.slice(0,-1)+"]":void 0}}function Sc(e,t){var n=e.children[0];if(n&&1===n.type){var i=pc(n,t.options);return"inlineTemplate:{render:function(){"+i.render+"},staticRenderFns:["+i.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}function xc(e,t,n){var i=e.for||Object.keys(t).some((function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||kc(n)})),r=!!e.if;if(!i){var o=e.parent;while(o){if(o.slotScope&&o.slotScope!==ll||o.for){i=!0;break}o.if&&(r=!0),o=o.parent}}var s=Object.keys(t).map((function(e){return Lc(t[e],n)})).join(",");return"scopedSlots:_u(["+s+"]"+(i?",null,true":"")+(!i&&r?",null,false,"+Oc(s):"")+")"}function Oc(e){var t=5381,n=e.length;while(n)t=33*t^e.charCodeAt(--n);return t>>>0}function kc(e){return 1===e.type&&("slot"===e.tag||e.children.some(kc))}function Lc(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return bc(e,t,Lc,"null");if(e.for&&!e.forProcessed)return _c(e,t,Lc);var i=e.slotScope===ll?"":String(e.slotScope),r="function("+i+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Ec(e,t)||"undefined")+":undefined":Ec(e,t)||"undefined":gc(e,t))+"}",o=i?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+r+o+"}"}function Ec(e,t,n,i,r){var o=e.children;if(o.length){var s=o[0];if(1===o.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag){var a=n?t.maybeComponent(s)?",1":",0":"";return""+(i||gc)(s,t)+a}var l=n?Dc(o,t.maybeComponent):0,c=r||Mc;return"["+o.map((function(e){return c(e,t)})).join(",")+"]"+(l?","+l:"")}}function Dc(e,t){for(var n=0,i=0;i<e.length;i++){var r=e[i];if(1===r.type){if(Ic(r)||r.ifConditions&&r.ifConditions.some((function(e){return Ic(e.block)}))){n=2;break}(t(r)||r.ifConditions&&r.ifConditions.some((function(e){return t(e.block)})))&&(n=1)}}return n}function Ic(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Mc(e,t){return 1===e.type?gc(e,t):3===e.type&&e.isComment?Ac(e):Tc(e)}function Tc(e){return"_v("+(2===e.type?e.expression:Rc(JSON.stringify(e.text)))+")"}function Ac(e){return"_e("+JSON.stringify(e.text)+")"}function Nc(e,t){var n=e.slotName||'"default"',i=Ec(e,t),r="_t("+n+(i?","+i:""),o=e.attrs||e.dynamicAttrs?jc((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:x(e.name),value:e.value,dynamic:e.dynamic}}))):null,s=e.attrsMap["v-bind"];return!o&&!s||i||(r+=",null"),o&&(r+=","+o),s&&(r+=(o?"":",null")+","+s),r+")"}function Pc(e,t,n){var i=t.inlineTemplate?null:Ec(t,n,!0);return"_c("+e+","+wc(t,n)+(i?","+i:"")+")"}function jc(e){for(var t="",n="",i=0;i<e.length;i++){var r=e[i],o=Rc(r.value);r.dynamic?n+=r.name+","+o+",":t+='"'+r.name+'":'+o+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function Rc(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function Fc(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),N}}function Bc(e){var t=Object.create(null);return function(n,i,r){i=T({},i);i.warn;delete i.warn;var o=i.delimiters?String(i.delimiters)+n:n;if(t[o])return t[o];var s=e(n,i);var a={},l=[];return a.render=Fc(s.render,l),a.staticRenderFns=s.staticRenderFns.map((function(e){return Fc(e,l)})),t[o]=a}}function Wc(e){return function(t){function n(n,i){var r=Object.create(t),o=[],s=[],a=function(e,t,n){(n?s:o).push(e)};if(i)for(var l in i.modules&&(r.modules=(t.modules||[]).concat(i.modules)),i.directives&&(r.directives=T(Object.create(t.directives||null),i.directives)),i)"modules"!==l&&"directives"!==l&&(r[l]=i[l]);r.warn=a;var c=e(n.trim(),r);return c.errors=o,c.tips=s,c}return{compile:n,compileToFunctions:Bc(n)}}}var Vc,zc=Wc((function(e,t){var n=ul(e.trim(),t);!1!==t.optimize&&Kl(n,t);var i=pc(n,t);return{ast:n,render:i.render,staticRenderFns:i.staticRenderFns}})),Hc=zc(ql),Uc=(Hc.compile,Hc.compileToFunctions);function qc(e){return Vc=Vc||document.createElement("div"),Vc.innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Vc.innerHTML.indexOf(" ")>0}var $c=!!Q&&qc(!1),Kc=!!Q&&qc(!0),Gc=C((function(e){var t=fr(e);return t&&t.innerHTML})),Yc=Oi.prototype.$mount;function Zc(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}Oi.prototype.$mount=function(e,t){if(e=e&&fr(e),e===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var i=n.template;if(i)if("string"===typeof i)"#"===i.charAt(0)&&(i=Gc(i));else{if(!i.nodeType)return this;i=i.innerHTML}else e&&(i=Zc(e));if(i){0;var r=Uc(i,{outputSourceRange:!1,shouldDecodeNewlines:$c,shouldDecodeNewlinesForHref:Kc,delimiters:n.delimiters,comments:n.comments},this),o=r.render,s=r.staticRenderFns;n.render=o,n.staticRenderFns=s}}return Yc.call(this,e,t)},Oi.compile=Uc,t["default"]=Oi}.call(this,n("c8ba"))},a04b:function(e,t,n){var i=n("c04e"),r=n("d9b5");e.exports=function(e){var t=i(e,"string");return r(t)?t:t+""}},a054:function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return m}));var i=n("dff7"),r=n("fdcc"),o=n("8025"),s=n("6d8e"),a=n("e679"),l=n("1e93"),c=n("82c9");function u(e){return e.toString()}class h{constructor(e,t,n,i,r,o,s){this.beforeVersionId=e,this.afterVersionId=t,this.beforeEOL=n,this.afterEOL=i,this.beforeCursorState=r,this.afterCursorState=o,this.changes=s}static create(e,t){const n=e.getAlternativeVersionId(),i=p(e);return new h(n,n,i,i,t,t,[])}append(e,t,n,i,r){t.length>0&&(this.changes=Object(a["b"])(this.changes,t)),this.afterEOL=n,this.afterVersionId=i,this.afterCursorState=r}static _writeSelectionsSize(e){return 4+16*(e?e.length:0)}static _writeSelections(e,t,n){if(l["f"](e,t?t.length:0,n),n+=4,t)for(const i of t)l["f"](e,i.selectionStartLineNumber,n),n+=4,l["f"](e,i.selectionStartColumn,n),n+=4,l["f"](e,i.positionLineNumber,n),n+=4,l["f"](e,i.positionColumn,n),n+=4;return n}static _readSelections(e,t,n){const i=l["c"](e,t);t+=4;for(let r=0;r<i;r++){const i=l["c"](e,t);t+=4;const r=l["c"](e,t);t+=4;const s=l["c"](e,t);t+=4;const a=l["c"](e,t);t+=4,n.push(new o["a"](i,r,s,a))}return t}serialize(){let e=10+h._writeSelectionsSize(this.beforeCursorState)+h._writeSelectionsSize(this.afterCursorState)+4;for(const i of this.changes)e+=i.writeSize();const t=new Uint8Array(e);let n=0;l["f"](t,this.beforeVersionId,n),n+=4,l["f"](t,this.afterVersionId,n),n+=4,l["g"](t,this.beforeEOL,n),n+=1,l["g"](t,this.afterEOL,n),n+=1,n=h._writeSelections(t,this.beforeCursorState,n),n=h._writeSelections(t,this.afterCursorState,n),l["f"](t,this.changes.length,n),n+=4;for(const i of this.changes)n=i.write(t,n);return t.buffer}static deserialize(e){const t=new Uint8Array(e);let n=0;const i=l["c"](t,n);n+=4;const r=l["c"](t,n);n+=4;const o=l["d"](t,n);n+=1;const s=l["d"](t,n);n+=1;const c=[];n=h._readSelections(t,n,c);const u=[];n=h._readSelections(t,n,u);const d=l["c"](t,n);n+=4;const f=[];for(let l=0;l<d;l++)n=a["a"].read(t,n,f);return new h(i,r,o,s,c,u,f)}}class d{constructor(e,t){this.model=e,this._data=h.create(e,t)}get type(){return 0}get resource(){return s["a"].isUri(this.model)?this.model:this.model.uri}get label(){return i["a"]("edit","Typing")}toString(){const e=this._data instanceof h?this._data:h.deserialize(this._data);return e.changes.map(e=>e.toString()).join(", ")}matchesResource(e){const t=s["a"].isUri(this.model)?this.model:this.model.uri;return t.toString()===e.toString()}setModel(e){this.model=e}canAppend(e){return this.model===e&&this._data instanceof h}append(e,t,n,i,r){this._data instanceof h&&this._data.append(e,t,n,i,r)}close(){this._data instanceof h&&(this._data=this._data.serialize())}open(){this._data instanceof h||(this._data=h.deserialize(this._data))}undo(){if(s["a"].isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof h&&(this._data=this._data.serialize());const e=h.deserialize(this._data);this.model._applyUndo(e.changes,e.beforeEOL,e.beforeVersionId,e.beforeCursorState)}redo(){if(s["a"].isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof h&&(this._data=this._data.serialize());const e=h.deserialize(this._data);this.model._applyRedo(e.changes,e.afterEOL,e.afterVersionId,e.afterCursorState)}heapSize(){return this._data instanceof h&&(this._data=this._data.serialize()),this._data.byteLength+168}}class f{constructor(e,t){this.type=1,this.label=e,this._isOpen=!0,this._editStackElementsArr=t.slice(0),this._editStackElementsMap=new Map;for(const n of this._editStackElementsArr){const e=u(n.resource);this._editStackElementsMap.set(e,n)}this._delegate=null}get resources(){return this._editStackElementsArr.map(e=>e.resource)}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(e){const t=u(e);return this._editStackElementsMap.has(t)}setModel(e){const t=u(s["a"].isUri(e)?e:e.uri);this._editStackElementsMap.has(t)&&this._editStackElementsMap.get(t).setModel(e)}canAppend(e){if(!this._isOpen)return!1;const t=u(e.uri);if(this._editStackElementsMap.has(t)){const n=this._editStackElementsMap.get(t);return n.canAppend(e)}return!1}append(e,t,n,i,r){const o=u(e.uri),s=this._editStackElementsMap.get(o);s.append(e,t,n,i,r)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const e of this._editStackElementsArr)e.undo()}redo(){for(const e of this._editStackElementsArr)e.redo()}heapSize(e){const t=u(e);if(this._editStackElementsMap.has(t)){const e=this._editStackElementsMap.get(t);return e.heapSize()}return 0}split(){return this._editStackElementsArr}toString(){let e=[];for(const t of this._editStackElementsArr)e.push(`${Object(c["b"])(t.resource)}: ${t}`);return`{${e.join(", ")}}`}}function p(e){const t=e.getEOL();return"\n"===t?0:1}function g(e){return!!e&&(e instanceof d||e instanceof f)}class m{constructor(e,t){this._model=e,this._undoRedoService=t}pushStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);g(e)&&e.close()}popStackElement(){const e=this._undoRedoService.getLastElement(this._model.uri);g(e)&&e.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(e){const t=this._undoRedoService.getLastElement(this._model.uri);if(g(t)&&t.canAppend(this._model))return t;const n=new d(this._model,e);return this._undoRedoService.pushElement(n),n}pushEOL(e){const t=this._getOrCreateEditStackElement(null);this._model.setEOL(e),t.append(this._model,[],p(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(e,t,n){const i=this._getOrCreateEditStackElement(e),r=this._model.applyEdits(t,!0),o=m._computeCursorState(n,r),s=r.map((e,t)=>({index:t,textChange:e.textChange}));return s.sort((e,t)=>e.textChange.oldPosition===t.textChange.oldPosition?e.index-t.index:e.textChange.oldPosition-t.textChange.oldPosition),i.append(this._model,s.map(e=>e.textChange),p(this._model),this._model.getAlternativeVersionId(),o),o}static _computeCursorState(e,t){try{return e?e(t):null}catch(n){return Object(r["e"])(n),null}}}},a0a2:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return n.e("chunk-2d0b6187").then(n.bind(null,"1c65"))}})},a106:function(e,t,n){"use strict";n.r(t),n.d(t,"getSelectionSearchString",(function(){return bt})),n.d(t,"CommonFindController",(function(){return yt})),n.d(t,"FindController",(function(){return _t})),n.d(t,"StartFindAction",(function(){return wt})),n.d(t,"StartFindWithSelectionAction",(function(){return Ct})),n.d(t,"MatchFindAction",(function(){return St})),n.d(t,"NextMatchFindAction",(function(){return xt})),n.d(t,"PreviousMatchFindAction",(function(){return Ot})),n.d(t,"SelectionMatchFindAction",(function(){return kt})),n.d(t,"NextSelectionMatchFindAction",(function(){return Lt})),n.d(t,"PreviousSelectionMatchFindAction",(function(){return Et})),n.d(t,"StartFindReplaceAction",(function(){return Dt}));var i=n("dff7"),r=n("5fe7"),o=n("a666"),s=n("3742"),a=n("b2cc"),l=n("c101"),c=n("2c29"),u=n("7061"),h=n("6a89"),d=n("8025"),f=n("8c02"),p=n("3352"),g=n("b57f"),m=n("303e"),v=n("b7d0");class b{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const e=this._findScopeDecorationIds.map(e=>this._editor.getModel().getDecorationRange(e)).filter(e=>!!e);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){const t=this._decorations.indexOf(e);return t>=0?t+1:1}getCurrentMatchesPosition(e){let t=this._editor.getModel().getDecorationsInRange(e);for(const n of t){const e=n.options;if(e===b._FIND_MATCH_DECORATION||e===b._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(n.id)}return 0}setCurrentFindMatch(e){let t=null,n=0;if(e)for(let i=0,r=this._decorations.length;i<r;i++){let r=this._editor.getModel().getDecorationRange(this._decorations[i]);if(e.equalsRange(r)){t=this._decorations[i],n=i+1;break}}return null===this._highlightedDecorationId&&null===t||this._editor.changeDecorations(e=>{if(null!==this._highlightedDecorationId&&(e.changeDecorationOptions(this._highlightedDecorationId,b._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),null!==t&&(this._highlightedDecorationId=t,e.changeDecorationOptions(this._highlightedDecorationId,b._CURRENT_FIND_MATCH_DECORATION)),null!==this._rangeHighlightDecorationId&&(e.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),null!==t){let n=this._editor.getModel().getDecorationRange(t);if(n.startLineNumber!==n.endLineNumber&&1===n.endColumn){let e=n.endLineNumber-1,t=this._editor.getModel().getLineMaxColumn(e);n=new h["a"](n.startLineNumber,n.startColumn,e,t)}this._rangeHighlightDecorationId=e.addDecoration(n,b._RANGE_HIGHLIGHT_DECORATION)}}),n}set(e,t){this._editor.changeDecorations(n=>{let i=b._FIND_MATCH_DECORATION,r=[];if(e.length>1e3){i=b._FIND_MATCH_NO_OVERVIEW_DECORATION;const t=this._editor.getModel().getLineCount(),n=this._editor.getLayoutInfo().height,o=n/t,s=Math.max(2,Math.ceil(3/o));let a=e[0].range.startLineNumber,l=e[0].range.endLineNumber;for(let i=1,c=e.length;i<c;i++){const t=e[i].range;l+s>=t.startLineNumber?t.endLineNumber>l&&(l=t.endLineNumber):(r.push({range:new h["a"](a,1,l,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),a=t.startLineNumber,l=t.endLineNumber)}r.push({range:new h["a"](a,1,l,1),options:b._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}let o=new Array(e.length);for(let t=0,s=e.length;t<s;t++)o[t]={range:e[t].range,options:i};this._decorations=n.deltaDecorations(this._decorations,o),this._overviewRulerApproximateDecorations=n.deltaDecorations(this._overviewRulerApproximateDecorations,r),this._rangeHighlightDecorationId&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach(e=>n.removeDecoration(e)),this._findScopeDecorationIds=[]),(null===t||void 0===t?void 0:t.length)&&(this._findScopeDecorationIds=t.map(e=>n.addDecoration(e,b._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(0===this._decorations.length)return null;for(let t=this._decorations.length-1;t>=0;t--){let n=this._decorations[t],i=this._editor.getModel().getDecorationRange(n);if(i&&!(i.endLineNumber>e.lineNumber)){if(i.endLineNumber<e.lineNumber)return i;if(!(i.endColumn>e.column))return i}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(0===this._decorations.length)return null;for(let t=0,n=this._decorations.length;t<n;t++){let n=this._decorations[t],i=this._editor.getModel().getDecorationRange(n);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])}_allDecorations(){let e=[];return e=e.concat(this._decorations),e=e.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&e.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e}}b._CURRENT_FIND_MATCH_DECORATION=g["a"].register({description:"current-find-match",stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Object(v["g"])(m["ic"]),position:p["d"].Center},minimap:{color:Object(v["g"])(m["bc"]),position:p["c"].Inline}}),b._FIND_MATCH_DECORATION=g["a"].register({description:"find-match",stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Object(v["g"])(m["ic"]),position:p["d"].Center},minimap:{color:Object(v["g"])(m["bc"]),position:p["c"].Inline}}),b._FIND_MATCH_NO_OVERVIEW_DECORATION=g["a"].register({description:"find-match-no-overview",stickiness:1,className:"findMatch",showIfCollapsed:!0}),b._FIND_MATCH_ONLY_OVERVIEW_DECORATION=g["a"].register({description:"find-match-only-overview",stickiness:1,overviewRuler:{color:Object(v["g"])(m["ic"]),position:p["d"].Center}}),b._RANGE_HIGHLIGHT_DECORATION=g["a"].register({description:"find-range-highlight",stickiness:1,className:"rangeHighlight",isWholeLine:!0}),b._FIND_SCOPE_DECORATION=g["a"].register({description:"find-scope",className:"findScope",isWholeLine:!0});class y{constructor(e,t,n){this._editorSelection=e,this._ranges=t,this._replaceStrings=n,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){let e=[];for(let t=0;t<this._ranges.length;t++)e.push({range:this._ranges[t],text:this._replaceStrings[t]});e.sort((e,t)=>h["a"].compareRangesUsingStarts(e.range,t.range));let n=[],i=e[0];for(let t=1;t<e.length;t++)i.range.endLineNumber===e[t].range.startLineNumber&&i.range.endColumn===e[t].range.startColumn?(i.range=i.range.plusRange(e[t].range),i.text=i.text+e[t].text):(n.push(i),i=e[t]);n.push(i);for(const r of n)t.addEditOperation(r.range,r.text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)}computeCursorState(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)}}function _(e,t){if(e&&""!==e[0]){const n=w(e,t,"-"),i=w(e,t,"_");return n&&!i?C(e,t,"-"):!n&&i?C(e,t,"_"):e[0].toUpperCase()===e[0]?t.toUpperCase():e[0].toLowerCase()===e[0]?t.toLowerCase():s["o"](e[0][0])&&t.length>0?t[0].toUpperCase()+t.substr(1):e[0][0].toUpperCase()!==e[0][0]&&t.length>0?t[0].toLowerCase()+t.substr(1):t}return t}function w(e,t,n){const i=-1!==e[0].indexOf(n)&&-1!==t.indexOf(n);return i&&e[0].split(n).length===t.split(n).length}function C(e,t,n){const i=t.split(n),r=e[0].split(n);let o="";return i.forEach((e,t)=>{o+=_([r[t]],e)+n}),o.slice(0,-1)}class S{constructor(e){this.staticValue=e,this.kind=0}}class x{constructor(e){this.pieces=e,this.kind=1}}class O{constructor(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new S(e[0].staticValue):this._state=new x(e):this._state=new S("")}static fromStaticValue(e){return new O([k.staticValue(e)])}get hasReplacementPatterns(){return 1===this._state.kind}buildReplaceString(e,t){if(0===this._state.kind)return t?_(e,this._state.staticValue):this._state.staticValue;let n="";for(let i=0,r=this._state.pieces.length;i<r;i++){let t=this._state.pieces[i];if(null!==t.staticValue){n+=t.staticValue;continue}let r=O._substitute(t.matchIndex,e);if(null!==t.caseOps&&t.caseOps.length>0){let e=[],n=t.caseOps.length,i=0;for(let o=0,s=r.length;o<s;o++){if(i>=n){e.push(r.slice(o));break}switch(t.caseOps[i]){case"U":e.push(r[o].toUpperCase());break;case"u":e.push(r[o].toUpperCase()),i++;break;case"L":e.push(r[o].toLowerCase());break;case"l":e.push(r[o].toLowerCase()),i++;break;default:e.push(r[o])}}r=e.join("")}n+=r}return n}static _substitute(e,t){if(null===t)return"";if(0===e)return t[0];let n="";while(e>0){if(e<t.length){let i=t[e]||"";return i+n}n=String(e%10)+n,e=Math.floor(e/10)}return"$"+n}}class k{constructor(e,t,n){this.staticValue=e,this.matchIndex=t,n&&0!==n.length?this.caseOps=n.slice(0):this.caseOps=null}static staticValue(e){return new k(e,-1,null)}static caseOps(e,t){return new k(null,e,t)}}class L{constructor(e){this._source=e,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}emitUnchanged(e){this._emitStatic(this._source.substring(this._lastCharIndex,e)),this._lastCharIndex=e}emitStatic(e,t){this._emitStatic(e),this._lastCharIndex=t}_emitStatic(e){0!==e.length&&(this._currentStaticPiece+=e)}emitMatchIndex(e,t,n){0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=k.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=k.caseOps(e,n),this._lastCharIndex=t}finalize(){return this.emitUnchanged(this._source.length),0!==this._currentStaticPiece.length&&(this._result[this._resultLen++]=k.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new O(this._result)}}function E(e){if(!e||0===e.length)return new O(null);let t=[],n=new L(e);for(let i=0,r=e.length;i<r;i++){let o=e.charCodeAt(i);if(92!==o){if(36===o){if(i++,i>=r)break;let o=e.charCodeAt(i);if(36===o){n.emitUnchanged(i-1),n.emitStatic("$",i+1);continue}if(48===o||38===o){n.emitUnchanged(i-1),n.emitMatchIndex(0,i+1,t),t.length=0;continue}if(49<=o&&o<=57){let s=o-48;if(i+1<r){let r=e.charCodeAt(i+1);if(48<=r&&r<=57){i++,s=10*s+(r-48),n.emitUnchanged(i-2),n.emitMatchIndex(s,i+1,t),t.length=0;continue}}n.emitUnchanged(i-1),n.emitMatchIndex(s,i+1,t),t.length=0;continue}}}else{if(i++,i>=r)break;let o=e.charCodeAt(i);switch(o){case 92:n.emitUnchanged(i-1),n.emitStatic("\\",i+1);break;case 110:n.emitUnchanged(i-1),n.emitStatic("\n",i+1);break;case 116:n.emitUnchanged(i-1),n.emitStatic("\t",i+1);break;case 117:case 85:case 108:case 76:n.emitUnchanged(i-1),n.emitStatic("",i+1),t.push(String.fromCharCode(o));break}}}return n.finalize()}var D=n("4fc3"),I=n("e8e3");const M=new D["c"]("findWidgetVisible",!1),T=new D["c"]("findInputFocussed",!1),A=new D["c"]("replaceInputFocussed",!1),N={primary:545,mac:{primary:2593}},P={primary:565,mac:{primary:2613}},j={primary:560,mac:{primary:2608}},R={primary:554,mac:{primary:2602}},F={primary:558,mac:{primary:2606}},B={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},W=19999,V=240;class z{constructor(e,t){this._toDispose=new o["b"],this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new r["g"],this._decorations=new b(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new r["e"](()=>this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(e=>{3!==e.reason&&5!==e.reason&&6!==e.reason||this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(e=>{this._ignoreModelContentChanged||(e.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(e=>this._onStateChanged(e))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,Object(o["f"])(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){if(!this._isDisposed&&this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)){let t=this._editor.getModel();t.isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)},V)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let n=null;"undefined"!==typeof t?null!==t&&(n=Array.isArray(t)?t:[t]):n=this._decorations.getFindScopes(),null!==n&&(n=n.map(e=>{if(e.startLineNumber!==e.endLineNumber){let t=e.endLineNumber;return 1===e.endColumn&&(t-=1),new h["a"](e.startLineNumber,1,t,this._editor.getModel().getLineMaxColumn(t))}return e}));let i=this._findMatches(n,!1,W);this._decorations.set(i,n);const r=this._editor.getSelection();let o=this._decorations.getCurrentMatchesPosition(r);if(0===o&&i.length>0){const e=Object(I["i"])(i.map(e=>e.range),e=>h["a"].compareRangesUsingStarts(e,r)>=0);o=e>0?e-1+1:o}this._state.changeMatchInfo(o,this._decorations.getCount(),void 0),e&&this._editor.getOption(33).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){let e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){let t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:n,column:i}=e,r=this._editor.getModel();return t||1===i?(1===n?n=r.getLineCount():n--,i=r.getLineMaxColumn(n)):i--,new u["a"](n,i)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){const t=this._decorations.matchAfterPosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<W){let t=this._decorations.matchBeforePosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._prevSearchPosition(e),t=this._decorations.matchBeforePosition(e)),void(t&&this._setCurrentFindMatch(t))}if(this._cannotFind())return;let n=this._decorations.getFindScope(),i=z._getSearchRange(this._editor.getModel(),n);i.getEndPosition().isBefore(e)&&(e=i.getEndPosition()),e.isBefore(i.getStartPosition())&&(e=i.getEndPosition());let{lineNumber:r,column:o}=e,s=this._editor.getModel(),a=new u["a"](r,o),l=s.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(115):null,!1);return l&&l.range.isEmpty()&&l.range.getStartPosition().equals(a)&&(a=this._prevSearchPosition(a),l=s.findPreviousMatch(this._state.searchString,a,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(115):null,!1)),l?t||i.containsRange(l.range)?void this._setCurrentFindMatch(l.range):this._moveToPrevMatch(l.range.getStartPosition(),!0):void 0}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:n,column:i}=e,r=this._editor.getModel();return t||i===r.getLineMaxColumn(n)?(n===r.getLineCount()?n=1:n++,i=1):i++,new u["a"](n,i)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){const t=this._decorations.matchBeforePosition(e);return void(t&&this._setCurrentFindMatch(t))}if(this._decorations.getCount()<W){let 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))}let t=this._getNextMatch(e,!1,!0);t&&this._setCurrentFindMatch(t.range)}_getNextMatch(e,t,n,i=!1){if(this._cannotFind())return null;let r=this._decorations.getFindScope(),o=z._getSearchRange(this._editor.getModel(),r);o.getEndPosition().isBefore(e)&&(e=o.getStartPosition()),e.isBefore(o.getStartPosition())&&(e=o.getStartPosition());let{lineNumber:s,column:a}=e,l=this._editor.getModel(),c=new u["a"](s,a),h=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(115):null,t);return n&&h&&h.range.isEmpty()&&h.range.getStartPosition().equals(c)&&(c=this._nextSearchPosition(c),h=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(115):null,t)),h?i||o.containsRange(h.range)?h:this._getNextMatch(h.range.getEndPosition(),t,n,!0):null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_getReplacePattern(){return this._state.isRegex?E(this._state.replaceString):O.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;let e=this._getReplacePattern(),t=this._editor.getSelection(),n=this._getNextMatch(t.getStartPosition(),!0,!1);if(n)if(t.equalsRange(n.range)){let i=e.buildReplaceString(n.matches,this._state.preserveCase),r=new c["a"](t,i);this._executeEditorCommand("replace",r),this._decorations.setStartPosition(new u["a"](t.startLineNumber,t.startColumn+i.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(n.range)}_findMatches(e,t,n){const i=(e||[null]).map(e=>z._getSearchRange(this._editor.getModel(),e));return this._editor.getModel().findMatches(this._state.searchString,i,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(115):null,t,n)}replaceAll(){if(!this._hasMatches())return;const e=this._decorations.getFindScopes();null===e&&this._state.matchesCount>=W?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){const e=new f["a"](this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(115):null),t=e.parseSearchRequest();if(!t)return;let n=t.regex;if(!n.multiline){let e="mu";n.ignoreCase&&(e+="i"),n.global&&(e+="g"),n=new RegExp(n.source,e)}const i=this._editor.getModel(),r=i.getValue(1),o=i.getFullModelRange(),s=this._getReplacePattern();let a;const l=this._state.preserveCase;a=s.hasReplacementPatterns||l?r.replace(n,(function(){return s.buildReplaceString(arguments,l)})):r.replace(n,s.buildReplaceString(null,l));let u=new c["b"](o,a,this._editor.getSelection());this._executeEditorCommand("replaceAll",u)}_regularReplaceAll(e){const t=this._getReplacePattern();let n=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),i=[];for(let o=0,s=n.length;o<s;o++)i[o]=t.buildReplaceString(n[o].matches,this._state.preserveCase);let r=new y(this._editor.getSelection(),n.map(e=>e.range),i);this._executeEditorCommand("replaceAll",r)}selectAllMatches(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes(),t=this._findMatches(e,!1,1073741824),n=t.map(e=>new d["a"](e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)),i=this._editor.getSelection();for(let r=0,o=n.length;r<o;r++){let e=n[r];if(e.equalsRange(i)){n=[i].concat(n.slice(0,r)).concat(n.slice(r+1));break}}this._editor.setSelections(n)}_executeEditorCommand(e,t){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(e,t),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}var H=n("11f7"),U=(n("8899"),n("1b7d")),q=n("ceb8"),$=n("308f"),K=n("561a");const G={inputActiveOptionBorder:q["a"].fromHex("#007ACC00"),inputActiveOptionForeground:q["a"].fromHex("#FFFFFF"),inputActiveOptionBackground:q["a"].fromHex("#0E639C50")};class Y extends U["a"]{constructor(e){super(),this._onChange=this._register(new $["b"]),this.onChange=this._onChange.event,this._onKeyDown=this._register(new $["b"]),this.onKeyDown=this._onKeyDown.event,this._opts=Object.assign(Object.assign({},G),e),this._checked=this._opts.isChecked;const t=["monaco-custom-checkbox"];this._opts.icon&&t.push(...K["a"].asClassNameArray(this._opts.icon)),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this.domNode.title=this._opts.title,this.domNode.classList.add(...t),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,e=>{this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault()}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,e=>{if(10===e.keyCode||3===e.keyCode)return this.checked=!this._checked,this._onChange.fire(!0),void e.preventDefault();this._onKeyDown.fire(e)})}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled")}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}style(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=e.inputActiveOptionForeground),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"transparent")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}const Z=i["a"]("caseDescription","Match Case"),X=i["a"]("wordsDescription","Match Whole Word"),Q=i["a"]("regexDescription","Use Regular Expression");class J extends Y{constructor(e){super({icon:K["b"].caseSensitive,title:Z+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class ee extends Y{constructor(e){super({icon:K["b"].wholeWord,title:X+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class te extends Y{constructor(e){super({icon:K["b"].regex,title:Q+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class ne extends U["a"]{constructor(e,t,n,i){super(),this._hideSoon=this._register(new r["e"](()=>this._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=n,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const o=i.getColorTheme().getColor(m["hb"]),s=i.getColorTheme().getColor(m["ib"]),a=i.getColorTheme().getColor(m["gb"]);this.caseSensitive=this._register(new J({appendTitle:this._keybindingLabelFor(B.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,inputActiveOptionBorder:o,inputActiveOptionForeground:s,inputActiveOptionBackground:a})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new ee({appendTitle:this._keybindingLabelFor(B.ToggleWholeWordCommand),isChecked:this._state.wholeWord,inputActiveOptionBorder:o,inputActiveOptionForeground:s,inputActiveOptionBackground:a})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new te({appendTitle:this._keybindingLabelFor(B.ToggleRegexCommand),isChecked:this._state.isRegex,inputActiveOptionBorder:o,inputActiveOptionForeground:s,inputActiveOptionBackground:a})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()})),this._register(H["j"](this._domNode,e=>this._onMouseOut())),this._register(H["i"](this._domNode,"mouseover",e=>this._onMouseOver())),this._applyTheme(i.getColorTheme()),this._register(i.onDidColorThemeChange(this._applyTheme.bind(this)))}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return ne.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseOut(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}_applyTheme(e){let t={inputActiveOptionBorder:e.getColor(m["hb"]),inputActiveOptionForeground:e.getColor(m["ib"]),inputActiveOptionBackground:e.getColor(m["gb"])};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)}}function ie(e,t){return 1===e||2!==e&&t}ne.ID="editor.contrib.findOptionsWidget",Object(v["f"])((e,t)=>{const n=e.getColor(m["Y"]);n&&t.addRule(`.monaco-editor .findOptionsWidget { background-color: ${n}; }`);const i=e.getColor(m["ab"]);i&&t.addRule(`.monaco-editor .findOptionsWidget { color: ${i}; }`);const r=e.getColor(m["Mc"]);r&&t.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 0 8px 2px ${r}; }`);const o=e.getColor(m["h"]);o&&t.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${o}; }`)});class re extends o["a"]{constructor(){super(),this._onFindReplaceStateChange=this._register(new $["b"]),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0}get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return ie(this._isRegexOverride,this._isRegex)}get wholeWord(){return ie(this._wholeWordOverride,this._wholeWord)}get matchCase(){return ie(this._matchCaseOverride,this._matchCase)}get preserveCase(){return ie(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}changeMatchInfo(e,t,n){let i={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1},r=!1;0===t&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,i.matchesPosition=!0,r=!0),this._matchesCount!==t&&(this._matchesCount=t,i.matchesCount=!0,r=!0),"undefined"!==typeof n&&(h["a"].equalsRange(this._currentMatch,n)||(this._currentMatch=n,i.currentMatch=!0,r=!0)),r&&this._onFindReplaceStateChange.fire(i)}change(e,t,n=!0){var i;let r={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,loop:!1},o=!1;const s=this.isRegex,a=this.wholeWord,l=this.matchCase,c=this.preserveCase;"undefined"!==typeof e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,r.searchString=!0,o=!0),"undefined"!==typeof e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,r.replaceString=!0,o=!0),"undefined"!==typeof e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,r.isRevealed=!0,o=!0),"undefined"!==typeof e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,r.isReplaceRevealed=!0,o=!0),"undefined"!==typeof e.isRegex&&(this._isRegex=e.isRegex),"undefined"!==typeof e.wholeWord&&(this._wholeWord=e.wholeWord),"undefined"!==typeof e.matchCase&&(this._matchCase=e.matchCase),"undefined"!==typeof e.preserveCase&&(this._preserveCase=e.preserveCase),"undefined"!==typeof e.searchScope&&((null===(i=e.searchScope)||void 0===i?void 0:i.every(e=>{var t;return null===(t=this._searchScope)||void 0===t?void 0:t.some(t=>!h["a"].equalsRange(t,e))}))||(this._searchScope=e.searchScope,r.searchScope=!0,o=!0)),"undefined"!==typeof e.loop&&this._loop!==e.loop&&(this._loop=e.loop,r.loop=!0,o=!0),this._isRegexOverride="undefined"!==typeof e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride="undefined"!==typeof e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride="undefined"!==typeof e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride="undefined"!==typeof e.preserveCaseOverride?e.preserveCaseOverride:0,s!==this.isRegex&&(o=!0,r.isRegex=!0),a!==this.wholeWord&&(o=!0,r.wholeWord=!0),l!==this.matchCase&&(o=!0,r.matchCase=!0),c!==this.preserveCase&&(o=!0,r.preserveCase=!0),o&&this._onFindReplaceStateChange.fire(r)}canNavigateBack(){return this.canNavigateInLoop()||1!==this.matchesPosition}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=W}}n("01b0");var oe=n("3813"),se=n("70c3"),ae=n("fdcc"),le=n("30db"),ce=(n("caa1"),n("d3ef"));const ue=i["a"]("defaultLabel","input");class he extends U["a"]{constructor(e,t,n,i){super(),this._showOptionButtons=n,this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this._onDidOptionChange=this._register(new $["b"]),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new $["b"]),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new $["b"]),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new $["b"]),this._onKeyUp=this._register(new $["b"]),this._onCaseSensitiveKeyDown=this._register(new $["b"]),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new $["b"]),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.contextViewProvider=t,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||ue,this.inputActiveOptionBorder=i.inputActiveOptionBorder,this.inputActiveOptionForeground=i.inputActiveOptionForeground,this.inputActiveOptionBackground=i.inputActiveOptionBackground,this.inputBackground=i.inputBackground,this.inputForeground=i.inputForeground,this.inputBorder=i.inputBorder,this.inputValidationInfoBorder=i.inputValidationInfoBorder,this.inputValidationInfoBackground=i.inputValidationInfoBackground,this.inputValidationInfoForeground=i.inputValidationInfoForeground,this.inputValidationWarningBorder=i.inputValidationWarningBorder,this.inputValidationWarningBackground=i.inputValidationWarningBackground,this.inputValidationWarningForeground=i.inputValidationWarningForeground,this.inputValidationErrorBorder=i.inputValidationErrorBorder,this.inputValidationErrorBackground=i.inputValidationErrorBackground,this.inputValidationErrorForeground=i.inputValidationErrorForeground;const r=i.appendCaseSensitiveLabel||"",o=i.appendWholeWordsLabel||"",s=i.appendRegexLabel||"",a=i.history||[],l=!!i.flexibleHeight,c=!!i.flexibleWidth,u=i.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new ce["a"](this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},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,history:a,flexibleHeight:l,flexibleWidth:c,flexibleMaxHeight:u})),this.regex=this._register(new te({appendTitle:s,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.regex.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(e=>{this._onRegexKeyDown.fire(e)})),this.wholeWords=this._register(new ee({appendTitle:o,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.wholeWords.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new J({appendTitle:r,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.caseSensitive.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(e=>{this._onCaseSensitiveKeyDown.fire(e)})),this._showOptionButtons&&(this.inputBox.paddingRight=this.caseSensitive.width()+this.wholeWords.width()+this.regex.width());let h=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){let t=h.indexOf(document.activeElement);if(t>=0){let 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(),this.inputBox.focus()):n>=0&&h[n].focus(),H["c"].stop(e,!0)}}});let d=document.createElement("div");d.className="controls",d.style.display=this._showOptionButtons?"block":"none",d.appendChild(this.caseSensitive.domNode),d.appendChild(this.wholeWords.domNode),d.appendChild(this.regex.domNode),this.domNode.appendChild(d),e&&e.appendChild(this.domNode),this._register(H["i"](this.inputBox.inputElement,"compositionstart",e=>{this.imeSessionInProgress=!0})),this._register(H["i"](this.inputBox.inputElement,"compositionend",e=>{this.imeSessionInProgress=!1,this._onInput.fire()})),this.onkeydown(this.inputBox.inputElement,e=>this._onKeyDown.fire(e)),this.onkeyup(this.inputBox.inputElement,e=>this._onKeyUp.fire(e)),this.oninput(this.inputBox.inputElement,e=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,e=>this._onMouseDown.fire(e))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()}setFocusInputOnOptionClick(e){this.fixFocusOnOptionClickEnabled=e}setEnabled(e){e?this.enable():this.disable()}getValue(){return this.inputBox.value}setValue(e){this.inputBox.value!==e&&(this.inputBox.value=e)}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,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()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);const 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)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){return this.caseSensitive.checked}setCaseSensitive(e){this.caseSensitive.checked=e}getWholeWords(){return this.wholeWords.checked}setWholeWords(e){this.wholeWords.checked=e}getRegex(){return this.regex.checked}setRegex(e){this.regex.checked=e,this.validate()}focusOnCaseSensitive(){this.caseSensitive.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}clearMessage(){this.inputBox.hideMessage()}}var de=n("9eb8");const fe=i["a"]("defaultLabel","input"),pe=i["a"]("label.preserveCaseCheckbox","Preserve Case");class ge extends Y{constructor(e){super({icon:K["b"].preserveCase,title:pe+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}}class me extends U["a"]{constructor(e,t,n,i){super(),this._showOptionButtons=n,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new $["b"]),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new $["b"]),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new $["b"]),this._onInput=this._register(new $["b"]),this._onKeyUp=this._register(new $["b"]),this._onPreserveCaseKeyDown=this._register(new $["b"]),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=i.placeholder||"",this.validation=i.validation,this.label=i.label||fe,this.inputActiveOptionBorder=i.inputActiveOptionBorder,this.inputActiveOptionForeground=i.inputActiveOptionForeground,this.inputActiveOptionBackground=i.inputActiveOptionBackground,this.inputBackground=i.inputBackground,this.inputForeground=i.inputForeground,this.inputBorder=i.inputBorder,this.inputValidationInfoBorder=i.inputValidationInfoBorder,this.inputValidationInfoBackground=i.inputValidationInfoBackground,this.inputValidationInfoForeground=i.inputValidationInfoForeground,this.inputValidationWarningBorder=i.inputValidationWarningBorder,this.inputValidationWarningBackground=i.inputValidationWarningBackground,this.inputValidationWarningForeground=i.inputValidationWarningForeground,this.inputValidationErrorBorder=i.inputValidationErrorBorder,this.inputValidationErrorBackground=i.inputValidationErrorBackground,this.inputValidationErrorForeground=i.inputValidationErrorForeground;const r=i.appendPreserveCaseLabel||"",o=i.history||[],s=!!i.flexibleHeight,a=!!i.flexibleWidth,l=i.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new ce["a"](this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},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,history:o,flexibleHeight:s,flexibleWidth:a,flexibleMaxHeight:l})),this.preserveCase=this._register(new ge({appendTitle:r,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground})),this._register(this.preserveCase.onChange(e=>{this._onDidOptionChange.fire(e),!e&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(e=>{this._onPreserveCaseKeyDown.fire(e)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;let c=[this.preserveCase.domNode];this.onkeydown(this.domNode,e=>{if(e.equals(15)||e.equals(17)||e.equals(9)){let t=c.indexOf(document.activeElement);if(t>=0){let 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(),this.inputBox.focus()):n>=0&&c[n].focus(),H["c"].stop(e,!0)}}});let u=document.createElement("div");u.className="controls",u.style.display=this._showOptionButtons?"block":"none",u.appendChild(this.preserveCase.domNode),this.domNode.appendChild(u),e&&e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,e=>this._onKeyDown.fire(e)),this.onkeyup(this.inputBox.inputElement,e=>this._onKeyUp.fire(e)),this.oninput(this.inputBox.inputElement,e=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,e=>this._onMouseDown.fire(e))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}style(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionForeground=e.inputActiveOptionForeground,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()}applyStyles(){if(this.domNode){const e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionForeground:this.inputActiveOptionForeground,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(e);const 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)}}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){this.inputBox&&this.inputBox.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}var ve=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},be=function(e,t){return function(n,i){t(n,i,e)}};const ye="historyNavigationWidget",_e="historyNavigationEnabled";function we(e,t,n){new D["c"](n,t).bindTo(e)}function Ce(e,t){return e.createScoped(t.target)}function Se(e,t){return e.getContext(document.activeElement).getValue(t)}function xe(e,t){const n=Ce(e,t);we(n,t,ye);const i=new D["c"](_e,!0).bindTo(n);return{scopedContextKeyService:n,historyNavigationEnablement:i}}let Oe=class extends he{constructor(e,t,n,i,r=!1){super(e,t,r,n),this._register(xe(i,{target:this.inputBox.element,historyNavigator:this.inputBox}).scopedContextKeyService)}};Oe=ve([be(3,D["b"])],Oe);let ke=class extends me{constructor(e,t,n,i,r=!1){super(e,t,r,n),this._register(xe(i,{target:this.inputBox.element,historyNavigator:this.inputBox}).scopedContextKeyService)}};ke=ve([be(3,D["b"])],ke),de["a"].registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:D["a"].and(D["a"].has(ye),D["a"].equals(_e,!0)),primary:16,secondary:[528],handler:(e,t)=>{const n=Se(e.get(D["b"]),ye);if(n){const e=n.historyNavigator;e.showPreviousValue()}}}),de["a"].registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:D["a"].and(D["a"].has(ye),D["a"].equals(_e,!0)),primary:18,secondary:[530],handler:(e,t)=>{const n=Se(e.get(D["b"]),ye);if(n){const e=n.historyNavigator;e.showNextValue()}}});var Le=n("bf5b"),Ee=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const De=Object(Le["b"])("find-selection",K["b"].selection,i["a"]("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),Ie=Object(Le["b"])("find-collapsed",K["b"].chevronRight,i["a"]("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),Me=Object(Le["b"])("find-expanded",K["b"].chevronDown,i["a"]("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),Te=Object(Le["b"])("find-replace",K["b"].replace,i["a"]("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Ae=Object(Le["b"])("find-replace-all",K["b"].replaceAll,i["a"]("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),Ne=Object(Le["b"])("find-previous-match",K["b"].arrowUp,i["a"]("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Pe=Object(Le["b"])("find-next-match",K["b"].arrowDown,i["a"]("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),je=i["a"]("label.find","Find"),Re=i["a"]("placeholder.find","Find"),Fe=i["a"]("label.previousMatchButton","Previous Match"),Be=i["a"]("label.nextMatchButton","Next Match"),We=i["a"]("label.toggleSelectionFind","Find in Selection"),Ve=i["a"]("label.closeButton","Close"),ze=i["a"]("label.replace","Replace"),He=i["a"]("placeholder.replace","Replace"),Ue=i["a"]("label.replaceButton","Replace"),qe=i["a"]("label.replaceAllButton","Replace All"),$e=i["a"]("label.toggleReplaceButton","Toggle Replace"),Ke=i["a"]("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",W),Ge=i["a"]("label.matchesLocation","{0} of {1}"),Ye=i["a"]("label.noResults","No results"),Ze=419,Xe=275,Qe=Xe-54;let Je=69;const et=33,tt="ctrlEnterReplaceAll.windows.donotask",nt=le["f"]?256:2048;class it{constructor(e){this.afterLineNumber=e,this.heightInPx=et,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function rt(e,t,n){const i=!!t.match(/\n/);n&&i&&n.selectionStart>0&&e.stopPropagation()}function ot(e,t,n){const i=!!t.match(/\n/);n&&i&&n.selectionEnd<n.value.length&&e.stopPropagation()}class st extends U["a"]{constructor(e,t,n,i,s,a,l,c,u){super(),this._cachedHeight=null,this._revealTimeouts=[],this._codeEditor=e,this._controller=t,this._state=n,this._contextViewProvider=i,this._keybindingService=s,this._contextKeyService=a,this._storageService=c,this._notificationService=u,this._ctrlEnterReplaceAllWarningPrompted=!!c.getBoolean(tt,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new r["a"](500),this._register(Object(o["i"])(()=>this._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(e=>this._onStateChanged(e))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(e=>{if(e.hasChanged(79)&&(this._codeEditor.getOption(79)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),e.hasChanged(129)&&this._tryUpdateWidgetWidth(),e.hasChanged(2)&&this.updateAccessibilitySupport(),e.hasChanged(33)){const e=this._codeEditor.getOption(33).addExtraSpaceOnTop;e&&!this._viewZone&&(this._viewZone=new it(0),this._showViewZone()),!e&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(()=>Ee(this,void 0,void 0,(function*(){if(this._isVisible){let e=yield this._controller.getGlobalBufferTerm();e&&e!==this._state.searchString&&(this._state.change({searchString:e},!1),this._findInput.select())}})))),this._findInputFocused=T.bindTo(a),this._findFocusTracker=this._register(H["Y"](this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=A.bindTo(a),this._replaceFocusTracker=this._register(H["Y"](this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(33).addExtraSpaceOnTop&&(this._viewZone=new it(0)),this._applyTheme(l.getColorTheme()),this._register(l.onDidColorThemeChange(this._applyTheme.bind(this))),this._register(this._codeEditor.onDidChangeModel(()=>{this._isVisible&&(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(e=>{e.scrollTopChanged?this._layoutViewZone():setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return st.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(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(79)||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=H["I"](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.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){let e=this._state.searchString.length>0&&0===this._state.matchesCount;this._domNode.classList.toggle("no-results",e),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,ae["e"])}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){let e;if(this._matchesCount.style.minWidth=Je+"px",this._state.matchesCount>=W?this._matchesCount.title=Ke:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=W&&(t+="+");let n=String(this._state.matchesPosition);"0"===n&&(n="?"),e=s["w"](Ge,n,t)}else e=Ye;this._matchesCount.appendChild(document.createTextNode(e)),Object(oe["a"])(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),Je=Math.max(Je,this._matchesCount.clientWidth)}_getAriaLabel(e,t,n){if(e===Ye)return""===n?i["a"]("ariaSearchNoResultEmpty","{0} found",e):i["a"]("ariaSearchNoResult","{0} found for '{1}'",e,n);if(t){const r=i["a"]("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,n,t.startLineNumber+":"+t.startColumn),o=this._codeEditor.getModel();if(o&&t.startLineNumber<=o.getLineCount()&&t.startLineNumber>=1){const e=o.getLineContent(t.startLineNumber);return`${e}, ${r}`}return r}return i["a"]("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,n)}_updateToggleSelectionFindButton(){let 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()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);let e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);let n=!this._codeEditor.getOption(79);this._toggleReplaceBtn.setEnabled(this._isVisible&&n)}_reveal(){if(this._revealTimeouts.forEach(e=>{clearTimeout(e)}),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(33).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":const t=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=t;break;default:break}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout(()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")},0)),this._revealTimeouts.push(setTimeout(()=>{this._findInput.validate()},200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(33).seedSearchStringFromSelection&&e){const n=this._codeEditor.getDomNode();if(n){const i=H["D"](n),r=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),o=i.left+(r?r.left:0),s=r?r.top:0;if(this._viewZone&&s<this._viewZone.heightInPx){e.endLineNumber>e.startLineNumber&&(t=!1);const n=H["G"](this._domNode).left;o>n&&(t=!1);const r=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition()),s=i.left+(r?r.left:0);s>n&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach(e=>{clearTimeout(e)}),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){const t=this._codeEditor.getOption(33).addExtraSpaceOnTop;if(!t)return void this._removeViewZone();if(!this._isVisible)return;const n=this._viewZone;void 0===this._viewZoneId&&n&&this._codeEditor.changeViewZones(t=>{n.heightInPx=this._getHeight(),this._viewZoneId=t.addZone(n),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+n.heightInPx)})}_showViewZone(e=!0){if(!this._isVisible)return;const t=this._codeEditor.getOption(33).addExtraSpaceOnTop;if(!t)return;void 0===this._viewZone&&(this._viewZone=new it(0));const n=this._viewZone;this._codeEditor.changeViewZones(t=>{if(void 0!==this._viewZoneId){const i=this._getHeight();if(i===n.heightInPx)return;let r=i-n.heightInPx;return n.heightInPx=i,t.layoutZone(this._viewZoneId),void(e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+r))}{let i=this._getHeight();if(i-=this._codeEditor.getOption(73).top,i<=0)return;n.heightInPx=i,this._viewZoneId=t.addZone(n),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+i)}})}_removeViewZone(){this._codeEditor.changeViewZones(e=>{void 0!==this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))})}_applyTheme(e){let t={inputActiveOptionBorder:e.getColor(m["hb"]),inputActiveOptionBackground:e.getColor(m["gb"]),inputActiveOptionForeground:e.getColor(m["ib"]),inputBackground:e.getColor(m["jb"]),inputForeground:e.getColor(m["lb"]),inputBorder:e.getColor(m["kb"]),inputValidationInfoBackground:e.getColor(m["pb"]),inputValidationInfoForeground:e.getColor(m["rb"]),inputValidationInfoBorder:e.getColor(m["qb"]),inputValidationWarningBackground:e.getColor(m["sb"]),inputValidationWarningForeground:e.getColor(m["ub"]),inputValidationWarningBorder:e.getColor(m["tb"]),inputValidationErrorBackground:e.getColor(m["mb"]),inputValidationErrorForeground:e.getColor(m["ob"]),inputValidationErrorBorder:e.getColor(m["nb"])};this._findInput.style(t),this._replaceInput.style(t),this._toggleSelectionFind.style(t)}_tryUpdateWidgetWidth(){if(!this._isVisible)return;if(!H["N"](this._domNode))return;const e=this._codeEditor.getLayoutInfo(),t=e.contentWidth;if(t<=0)return void this._domNode.classList.add("hiddenEditor");this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const n=e.width,i=e.minimap.minimapWidth;let r=!1,o=!1,s=!1;if(this._resized){let e=H["I"](this._domNode);if(e>Ze)return this._domNode.style.maxWidth=n-28-i-15+"px",void(this._replaceInput.width=H["I"](this._findInput.domNode))}if(Ze+28+i>=n&&(o=!0),Ze+28+i-Je>=n&&(s=!0),Ze+28+i-Je>=n+50&&(r=!0),this._domNode.classList.toggle("collapsed-find-widget",r),this._domNode.classList.toggle("narrow-find-widget",s),this._domNode.classList.toggle("reduced-find-widget",o),s||r||(this._domNode.style.maxWidth=n-28-i-15+"px"),this._resized){this._findInput.inputBox.layout();let e=this._findInput.inputBox.element.clientWidth;e>0&&(this._replaceInput.width=e)}else this._isReplaceVisible&&(this._replaceInput.width=H["I"](this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){const e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=e+"px",!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){let e=this._codeEditor.getSelections();e.map(e=>{1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));const t=this._state.currentMatch;return e.startLineNumber===e.endLineNumber||h["a"].equalsRange(e,t)?null:e}).filter(e=>!!e),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){return e.equals(3|nt)?(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)?rt(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?ot(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0}_onReplaceInputKeyDown(e){return e.equals(3|nt)?(le["j"]&&le["g"]&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(i["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(tt,!0,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)?rt(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?ot(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){const e=!0,t=!0;this._findInput=this._register(new Oe(null,this._contextViewProvider,{width:Qe,label:je,placeholder:Re,appendCaseSensitiveLabel:this._keybindingLabelFor(B.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(B.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(B.ToggleRegexCommand),validation:e=>{if(0===e.length||!this._findInput.getRegex())return null;try{return new RegExp(e,"gu"),null}catch(t){return{content:t.message}}},flexibleHeight:e,flexibleWidth:t,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(e=>this._onFindInputKeyDown(e))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(e=>{e.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),e.preventDefault())})),this._register(this._findInput.onRegexKeyDown(e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),e.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(e=>{this._tryUpdateHeight()&&this._showViewZone()})),le["d"]&&this._register(this._findInput.onMouseDown(e=>this._onFindInputMouseDown(e))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new at({label:Fe+this._keybindingLabelFor(B.PreviousMatchFindAction),icon:Ne,onTrigger:()=>{this._codeEditor.getAction(B.PreviousMatchFindAction).run().then(void 0,ae["e"])}})),this._nextBtn=this._register(new at({label:Be+this._keybindingLabelFor(B.NextMatchFindAction),icon:Pe,onTrigger:()=>{this._codeEditor.getAction(B.NextMatchFindAction).run().then(void 0,ae["e"])}}));let n=document.createElement("div");n.className="find-part",n.appendChild(this._findInput.domNode);const i=document.createElement("div");i.className="find-actions",n.appendChild(i),i.appendChild(this._matchesCount),i.appendChild(this._prevBtn.domNode),i.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new Y({icon:De,title:We+this._keybindingLabelFor(B.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let e=this._codeEditor.getSelections();e.map(e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e)).filter(e=>!!e),e.length&&this._state.change({searchScope:e},!0)}}else this._state.change({searchScope:null},!0)})),i.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new at({label:Ve+this._keybindingLabelFor(B.CloseFindWidgetCommand),icon:Le["c"],onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:e=>{e.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),e.preventDefault())}})),i.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new ke(null,void 0,{label:ze,placeholder:He,appendPreserveCaseLabel:this._keybindingLabelFor(B.TogglePreserveCaseCommand),history:[],flexibleHeight:e,flexibleWidth:t,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(e=>this._onReplaceInputKeyDown(e))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(e=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(e=>{e.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),e.preventDefault())})),this._replaceBtn=this._register(new at({label:Ue+this._keybindingLabelFor(B.ReplaceOneAction),icon:Te,onTrigger:()=>{this._controller.replace()},onKeyDown:e=>{e.equals(1026)&&(this._closeBtn.focus(),e.preventDefault())}})),this._replaceAllBtn=this._register(new at({label:qe+this._keybindingLabelFor(B.ReplaceAllAction),icon:Ae,onTrigger:()=>{this._controller.replaceAll()}}));let r=document.createElement("div");r.className="replace-part",r.appendChild(this._replaceInput.domNode);const o=document.createElement("div");o.className="replace-actions",r.appendChild(o),o.appendChild(this._replaceBtn.domNode),o.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new at({label:$e,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=H["I"](this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),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=Ze+"px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(n),this._domNode.appendChild(r),this._resizeSash=new se["b"](this._domNode,this,{orientation:0,size:2}),this._resized=!1;let s=Ze;this._register(this._resizeSash.onDidStart(()=>{s=H["I"](this._domNode)})),this._register(this._resizeSash.onDidChange(e=>{this._resized=!0;let t=s+e.startX-e.currentX;if(t<Ze)return;const n=parseFloat(H["A"](this._domNode).maxWidth)||0;t>n||(this._domNode.style.width=t+"px",this._isReplaceVisible&&(this._replaceInput.width=H["I"](this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{const e=H["I"](this._domNode);if(e<Ze)return;let t=Ze;if(!this._resized||e===Ze){const e=this._codeEditor.getLayoutInfo();t=e.width-28-e.minimap.minimapWidth-15,this._resized=!0}this._domNode.style.width=t+"px",this._isReplaceVisible&&(this._replaceInput.width=H["I"](this._findInput.domNode)),this._findInput.inputBox.layout()}))}updateAccessibilitySupport(){const e=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(2!==e)}}st.ID="editor.contrib.findWidget";class at extends U["a"]{constructor(e){super(),this._opts=e;let t="button";this._opts.className&&(t=t+" "+this._opts.className),this._opts.icon&&(t=t+" "+v["d"].asClassName(this._opts.icon)),this._domNode=document.createElement("div"),this._domNode.title=this._opts.label,this._domNode.tabIndex=0,this._domNode.className=t,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this.onclick(this._domNode,e=>{this._opts.onTrigger(),e.preventDefault()}),this.onkeydown(this._domNode,e=>{if(e.equals(10)||e.equals(3))return this._opts.onTrigger(),void e.preventDefault();this._opts.onKeyDown&&this._opts.onKeyDown(e)})}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...v["d"].asClassNameArray(Ie)),this._domNode.classList.add(...v["d"].asClassNameArray(Me))):(this._domNode.classList.remove(...v["d"].asClassNameArray(Me)),this._domNode.classList.add(...v["d"].asClassNameArray(Ie)))}}Object(v["f"])((e,t)=>{const n=(e,n)=>{n&&t.addRule(`.monaco-editor ${e} { background-color: ${n}; }`)};n(".findMatch",e.getColor(m["x"])),n(".currentFindMatch",e.getColor(m["v"])),n(".findScope",e.getColor(m["z"]));const i=e.getColor(m["Y"]);n(".find-widget",i);const r=e.getColor(m["Mc"]);r&&t.addRule(`.monaco-editor .find-widget { box-shadow: 0 0 8px 2px ${r}; }`);const o=e.getColor(m["y"]);o&&t.addRule(`.monaco-editor .findMatch { border: 1px ${"hc"===e.type?"dotted":"solid"} ${o}; box-sizing: border-box; }`);const s=e.getColor(m["w"]);s&&t.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${s}; padding: 1px; box-sizing: border-box; }`);const a=e.getColor(m["A"]);a&&t.addRule(`.monaco-editor .findScope { border: 1px ${"hc"===e.type?"dashed":"solid"} ${a}; }`);const l=e.getColor(m["h"]);l&&t.addRule(`.monaco-editor .find-widget { border: 1px solid ${l}; }`);const c=e.getColor(m["ab"]);c&&t.addRule(`.monaco-editor .find-widget { color: ${c}; }`);const u=e.getColor(m["cb"]);u&&t.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${u}; }`);const h=e.getColor(m["bb"]);if(h)t.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${h}; }`);else{const n=e.getColor(m["Z"]);n&&t.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${n}; }`)}const d=e.getColor(m["db"]);d&&t.addRule(`.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ${d}; }`)});var lt=n("7e32"),ct=n("f577"),ut=n("533b"),ht=n("6dec"),dt=n("03e8"),ft=n("b0cd"),pt=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},gt=function(e,t){return function(n,i){t(n,i,e)}},mt=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const vt=524288;function bt(e,t="single",n=!1){if(!e.hasModel())return null;const i=e.getSelection();if("single"===t&&i.startLineNumber===i.endLineNumber||"multiple"===t)if(i.isEmpty()){const t=e.getConfiguredWordAtPosition(i.getStartPosition());if(t&&!1===n)return t.word}else if(e.getModel().getValueLengthInRange(i)<vt)return e.getModel().getValueInRange(i);return null}let yt=class e extends o["a"]{constructor(e,t,n,i){super(),this._editor=e,this._findWidgetVisible=M.bindTo(t),this._contextKeyService=t,this._storageService=n,this._clipboardService=i,this._updateHistoryDelayer=new r["a"](500),this._state=this._register(new re),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange(e=>this._onStateChanged(e))),this._model=null,this._register(this._editor.onDidChangeModel(()=>{let e=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),e&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(33).loop})}))}get editor(){return this._editor}static get(t){return t.getContribution(e.ID)}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(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)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,0),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,0),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,0),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,0)}loadQueryState(){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)}isFindInputFocused(){return!!T.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();e.map(e=>(1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()?null:e)).filter(e=>!!e),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=s["u"](e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=!1){}_start(e){return mt(this,void 0,void 0,(function*(){if(this.disposeModel(),!this._editor.hasModel())return;let t={isRevealed:!0};if("single"===e.seedSearchStringFromSelection){let n=bt(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);n&&(this._state.isRegex?t.searchString=s["u"](n):t.searchString=n)}else if("multiple"===e.seedSearchStringFromSelection&&!e.updateSearchScope){let n=bt(this._editor,e.seedSearchStringFromSelection);n&&(t.searchString=n)}if(!t.searchString&&e.seedSearchStringFromGlobalClipboard){let e=yield this.getGlobalBufferTerm();if(!this._editor.hasModel())return;e&&(t.searchString=e)}if(e.forceRevealReplace?t.isReplaceRevealed=!0:this._findWidgetVisible.get()||(t.isReplaceRevealed=!1),e.updateSearchScope){let e=this._editor.getSelections();e.some(e=>!e.isEmpty())&&(t.searchScope=e)}t.loop=e.loop,this._state.change(t,!1),this._model||(this._model=new z(this._editor,this._state))}))}start(e){return this._start(e)}moveToNextMatch(){return!!this._model&&(this._model.moveToNextMatch(),!0)}moveToPrevMatch(){return!!this._model&&(this._model.moveToPrevMatch(),!0)}replace(){return!!this._model&&(this._model.replace(),!0)}replaceAll(){return!!this._model&&(this._model.replaceAll(),!0)}selectAllMatches(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)}getGlobalBufferTerm(){return mt(this,void 0,void 0,(function*(){return this._editor.getOption(33).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}))}setGlobalBufferTerm(e){this._editor.getOption(33).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};yt.ID="editor.contrib.findController",yt=pt([gt(1,D["b"]),gt(2,dt["a"]),gt(3,ct["a"])],yt);let _t=class extends yt{constructor(e,t,n,i,r,o,s,a){super(e,n,s,a),this._contextViewService=t,this._keybindingService=i,this._themeService=r,this._notificationService=o,this._widget=null,this._findOptionsWidget=null}_start(e){const t=Object.create(null,{_start:{get:()=>super._start}});return mt(this,void 0,void 0,(function*(){this._widget||this._createFindWidget();const n=this._editor.getSelection();let i=!1;switch(this._editor.getOption(33).autoFindInSelection){case"always":i=!0;break;case"never":i=!1;break;case"multiline":const e=!!n&&n.startLineNumber!==n.endLineNumber;i=e;break;default:break}e.updateSearchScope=i,yield t._start.call(this,e),this._widget&&(2===e.shouldFocus?this._widget.focusReplaceInput():1===e.shouldFocus&&this._widget.focusFindInput())}))}highlightFindOptions(e=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!e?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new st(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new ne(this._editor,this._state,this._keybindingService,this._themeService))}};_t=pt([gt(1,ut["b"]),gt(2,D["b"]),gt(3,ht["a"]),gt(4,v["b"]),gt(5,ft["a"]),gt(6,dt["a"]),gt(7,ct["a"])],_t);const wt=Object(a["p"])(new a["f"]({id:B.StartFindAction,label:i["a"]("startFindAction","Find"),alias:"Find",precondition:D["a"].or(l["a"].focus,D["a"].has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:lt["b"].MenubarEditMenu,group:"3_find",title:i["a"]({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}}));wt.addImplementation(0,(e,t,n)=>{const i=yt.get(t);return!!i&&i.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(33).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(33).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getOption(33).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(33).loop})});class Ct extends a["b"]{constructor(){super({id:B.StartFindWithSelection,label:i["a"]("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}run(e,t){return mt(this,void 0,void 0,(function*(){let e=yt.get(t);e&&(yield e.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(33).loop}),e.setGlobalBufferTerm(e.getState().searchString))}))}}class St extends a["b"]{run(e,t){return mt(this,void 0,void 0,(function*(){let e=yt.get(t);e&&!this._run(e)&&(yield e.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===e.getState().searchString.length&&"never"!==t.getOption(33).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(33).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(33).loop}),this._run(e))}))}}class xt extends St{constructor(){super({id:B.NextMatchFindAction,label:i["a"]("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:l["a"].focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:D["a"].and(l["a"].focus,T),primary:3,weight:100}]})}_run(e){const t=e.moveToNextMatch();return!!t&&(e.editor.pushUndoStop(),!0)}}class Ot extends St{constructor(){super({id:B.PreviousMatchFindAction,label:i["a"]("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:l["a"].focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:D["a"].and(l["a"].focus,T),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}}class kt extends a["b"]{run(e,t){return mt(this,void 0,void 0,(function*(){let e=yt.get(t);if(!e)return;const n="selection"===t.getOption(33).seedSearchStringFromSelection;let i=null;"never"!==t.getOption(33).seedSearchStringFromSelection&&(i=bt(t,"single",n)),i&&e.setSearchString(i),this._run(e)||(yield e.start({forceRevealReplace:!1,seedSearchStringFromSelection:"never"!==t.getOption(33).seedSearchStringFromSelection?"single":"none",seedSearchStringFromNonEmptySelection:n,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(33).loop}),this._run(e))}))}}class Lt extends kt{constructor(){super({id:B.NextSelectionMatchFindAction,label:i["a"]("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:l["a"].focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}}class Et extends kt{constructor(){super({id:B.PreviousSelectionMatchFindAction,label:i["a"]("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:l["a"].focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}}const Dt=Object(a["p"])(new a["f"]({id:B.StartFindReplaceAction,label:i["a"]("startReplace","Replace"),alias:"Replace",precondition:D["a"].or(l["a"].focus,D["a"].has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:lt["b"].MenubarEditMenu,group:"3_find",title:i["a"]({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}}));Dt.addImplementation(0,(e,t,n)=>{if(!t.hasModel()||t.getOption(79))return!1;const i=yt.get(t);if(!i)return!1;const r=t.getSelection(),o=i.isFindInputFocused(),s=!r.isEmpty()&&r.startLineNumber===r.endLineNumber&&"never"!==t.getOption(33).seedSearchStringFromSelection&&!o,a=o||s?2:1;return i.start({forceRevealReplace:!0,seedSearchStringFromSelection:s?"single":"none",seedSearchStringFromNonEmptySelection:"selection"===t.getOption(33).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:"never"!==t.getOption(33).seedSearchStringFromSelection,shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(33).loop})}),Object(a["l"])(yt.ID,_t),Object(a["j"])(Ct),Object(a["j"])(xt),Object(a["j"])(Ot),Object(a["j"])(Lt),Object(a["j"])(Et);const It=a["c"].bindToContribution(yt.get);Object(a["k"])(new It({id:B.CloseFindWidgetCommand,precondition:M,handler:e=>e.closeFindWidget(),kbOpts:{weight:105,kbExpr:D["a"].and(l["a"].focus,D["a"].not("isComposing")),primary:9,secondary:[1033]}})),Object(a["k"])(new It({id:B.ToggleCaseSensitiveCommand,precondition:void 0,handler:e=>e.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:l["a"].focus,primary:N.primary,mac:N.mac,win:N.win,linux:N.linux}})),Object(a["k"])(new It({id:B.ToggleWholeWordCommand,precondition:void 0,handler:e=>e.toggleWholeWords(),kbOpts:{weight:105,kbExpr:l["a"].focus,primary:P.primary,mac:P.mac,win:P.win,linux:P.linux}})),Object(a["k"])(new It({id:B.ToggleRegexCommand,precondition:void 0,handler:e=>e.toggleRegex(),kbOpts:{weight:105,kbExpr:l["a"].focus,primary:j.primary,mac:j.mac,win:j.win,linux:j.linux}})),Object(a["k"])(new It({id:B.ToggleSearchScopeCommand,precondition:void 0,handler:e=>e.toggleSearchScope(),kbOpts:{weight:105,kbExpr:l["a"].focus,primary:R.primary,mac:R.mac,win:R.win,linux:R.linux}})),Object(a["k"])(new It({id:B.TogglePreserveCaseCommand,precondition:void 0,handler:e=>e.togglePreserveCase(),kbOpts:{weight:105,kbExpr:l["a"].focus,primary:F.primary,mac:F.mac,win:F.win,linux:F.linux}})),Object(a["k"])(new It({id:B.ReplaceOneAction,precondition:M,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:l["a"].focus,primary:3094}})),Object(a["k"])(new It({id:B.ReplaceOneAction,precondition:M,handler:e=>e.replace(),kbOpts:{weight:105,kbExpr:D["a"].and(l["a"].focus,A),primary:3}})),Object(a["k"])(new It({id:B.ReplaceAllAction,precondition:M,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:l["a"].focus,primary:2563}})),Object(a["k"])(new It({id:B.ReplaceAllAction,precondition:M,handler:e=>e.replaceAll(),kbOpts:{weight:105,kbExpr:D["a"].and(l["a"].focus,A),primary:void 0,mac:{primary:2051}}})),Object(a["k"])(new It({id:B.SelectAllMatchesAction,precondition:M,handler:e=>e.selectAllMatches(),kbOpts:{weight:105,kbExpr:l["a"].focus,primary:515}}))},a143:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.radarAxis=f;var r=i(n("278c")),o=i(n("9523")),s=i(n("448a")),a=n("18ad"),l=n("9d85"),c=n("5557"),u=n("becb");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,o["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.radar,i=[];n&&(i=p(n),i=g(i,e),i=m(i,e),i=v(i),i=b(i),i=y(i),i=[i]);var r=i;i.length&&!i[0].show&&(r=[]),(0,a.doUpdate)({chart:e,series:r,key:"radarAxisSplitArea",getGraphConfig:_,beforeUpdate:S,beforeChange:x}),(0,a.doUpdate)({chart:e,series:r,key:"radarAxisSplitLine",getGraphConfig:O,beforeUpdate:E,beforeChange:D}),(0,a.doUpdate)({chart:e,series:r,key:"radarAxisLine",getGraphConfig:I}),(0,a.doUpdate)({chart:e,series:r,key:"radarAxisLable",getGraphConfig:A}),e.radarAxis=i[0]}function p(e){return(0,u.deepMerge)((0,c.deepClone)(l.radarAxisConfig),e)}function g(e,t){var n=t.render.area,i=e.center;return e.centerPos=i.map((function(e,t){return"number"===typeof e?e:parseInt(e)/100*n[t]})),e}function m(e,t){var n=t.render.area,i=e.splitNum,r=e.radius,o=Math.min.apply(Math,(0,s["default"])(n))/2;"number"!==typeof r&&(r=parseInt(r)/100*o);var a=r/i;return e.ringRadius=new Array(i).fill(0).map((function(e,t){return a*(t+1)})),e.radius=r,e}function v(e){var t=e.indicator,n=e.centerPos,i=e.radius,r=e.startAngle,o=2*Math.PI,a=t.length,l=o/a,u=new Array(a).fill(0).map((function(e,t){return l*t+r}));return e.axisLineAngles=u,e.axisLinePosition=u.map((function(e){return c.getCircleRadianPoint.apply(void 0,(0,s["default"])(n).concat([i,e]))})),e}function b(e){var t=e.ringRadius,n=t[0]/2;return e.areaRadius=t.map((function(e){return e-n})),e}function y(e){var t=e.axisLineAngles,n=e.centerPos,i=e.radius,r=e.axisLabel;return i+=r.labelGap,e.axisLabelPosition=t.map((function(e){return c.getCircleRadianPoint.apply(void 0,(0,s["default"])(n).concat([i,e]))})),e}function _(e){var t=e.areaRadius,n=e.polygon,i=e.animationCurve,r=e.animationFrame,o=e.rLevel,s=n?"regPolygon":"ring";return t.map((function(t,n){return{name:s,index:o,visible:e.splitArea.show,animationCurve:i,animationFrame:r,shape:w(e,n),style:C(e,n)}}))}function w(e,t){var n=e.polygon,i=e.areaRadius,r=e.indicator,o=e.centerPos,s=r.length,a={rx:o[0],ry:o[1],r:i[t]};return n&&(a.side=s),a}function C(e,t){var n=e.splitArea,i=e.ringRadius,r=e.axisLineAngles,o=e.polygon,a=e.centerPos,l=n.color,h=n.style;h=d({fill:"rgba(0, 0, 0, 0)"},h);var f=i[0]-0;if(o){var p=c.getCircleRadianPoint.apply(void 0,(0,s["default"])(a).concat([i[0],r[0]])),g=c.getCircleRadianPoint.apply(void 0,(0,s["default"])(a).concat([i[0],r[1]]));f=(0,u.getPointToLineDistance)(a,p,g)}if(h=(0,u.deepMerge)((0,c.deepClone)(h,!0),{lineWidth:f}),!l.length)return h;var m=l.length;return(0,u.deepMerge)(h,{stroke:l[t%m]})}function S(e,t,n,i){var r=e[n];if(r){var o=i.chart.render,s=t.polygon,a=r[0].name,l=s?"regPolygon":"ring",c=l!==a;c&&(r.forEach((function(e){return o.delGraph(e)})),e[n]=null)}}function x(e,t){var n=t.shape.side;"number"===typeof n&&(e.shape.side=n)}function O(e){var t=e.ringRadius,n=e.polygon,i=e.animationCurve,r=e.animationFrame,o=e.rLevel,s=n?"regPolygon":"ring";return t.map((function(t,n){return{name:s,index:o,animationCurve:i,animationFrame:r,visible:e.splitLine.show,shape:k(e,n),style:L(e,n)}}))}function k(e,t){var n=e.ringRadius,i=e.centerPos,r=e.indicator,o=e.polygon,s={rx:i[0],ry:i[1],r:n[t]},a=r.length;return o&&(s.side=a),s}function L(e,t){var n=e.splitLine,i=n.color,r=n.style;if(r=d({fill:"rgba(0, 0, 0, 0)"},r),!i.length)return r;var o=i.length;return(0,u.deepMerge)(r,{stroke:i[t%o]})}function E(e,t,n,i){var r=e[n];if(r){var o=i.chart.render,s=t.polygon,a=r[0].name,l=s?"regPolygon":"ring",c=l!==a;c&&(r.forEach((function(e){return o.delGraph(e)})),e[n]=null)}}function D(e,t){var n=t.shape.side;"number"===typeof n&&(e.shape.side=n)}function I(e){var t=e.axisLinePosition,n=e.animationCurve,i=e.animationFrame,r=e.rLevel;return t.map((function(t,o){return{name:"polyline",index:r,visible:e.axisLine.show,animationCurve:n,animationFrame:i,shape:M(e,o),style:T(e,o)}}))}function M(e,t){var n=e.centerPos,i=e.axisLinePosition,r=[n,i[t]];return{points:r}}function T(e,t){var n=e.axisLine,i=n.color,r=n.style;if(!i.length)return r;var o=i.length;return(0,u.deepMerge)(r,{stroke:i[t%o]})}function A(e){var t=e.axisLabelPosition,n=e.animationCurve,i=e.animationFrame,r=e.rLevel;return t.map((function(t,o){return{name:"text",index:r,visible:e.axisLabel.show,animationCurve:n,animationFrame:i,shape:N(e,o),style:P(e,o)}}))}function N(e,t){var n=e.axisLabelPosition,i=e.indicator;return{content:i[t].name,position:n[t]}}function P(e,t){var n=e.axisLabel,i=(0,r["default"])(e.centerPos,2),o=i[0],s=i[1],a=e.axisLabelPosition,l=n.color,c=n.style,h=(0,r["default"])(a[t],2),d=h[0],f=h[1],p=d>o?"left":"right",g=f>s?"top":"bottom";if(c=(0,u.deepMerge)({textAlign:p,textBaseline:g},c),!l.length)return c;var m=l.length;return(0,u.deepMerge)(c,{fill:l[t%m]})}},a157:function(e,t,n){},a15a:function(e,t,n){"use strict";n.d(t,"d",(function(){return b})),n.d(t,"a",(function(){return w})),n.d(t,"c",(function(){return C})),n.d(t,"b",(function(){return S}));var i=n("6d8b"),r=n("cbe5"),o=n("cb11"),s=n("c7a2"),a=n("d9fc"),l=n("2306"),c=n("9850"),u=n("e86a"),h=n("3842"),d=r["b"].extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i+o),e.lineTo(n-r,i+o),e.closePath()}}),f=r["b"].extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i),e.lineTo(n,i+o),e.lineTo(n-r,i),e.closePath()}}),p=r["b"].extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,r=t.width/5*3,o=Math.max(r,t.height),s=r/2,a=s*s/(o-s),l=i-o+s+a,c=Math.asin(a/s),u=Math.cos(c)*s,h=Math.sin(c),d=Math.cos(c),f=.6*s,p=.7*s;e.moveTo(n-u,l+a),e.arc(n,l,s,Math.PI-c,2*Math.PI+c),e.bezierCurveTo(n+u-h*f,l+a+d*f,n,i-p,n,i),e.bezierCurveTo(n,i-p,n-u+h*f,l+a+d*f,n-u,l+a),e.closePath()}}),g=r["b"].extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,r=t.x,o=t.y,s=i/3*2;e.moveTo(r,o),e.lineTo(r+s,o+n),e.lineTo(r,o+n/4*3),e.lineTo(r-s,o+n),e.lineTo(r,o),e.closePath()}}),m={line:o["a"],rect:s["a"],roundRect:s["a"],square:s["a"],circle:a["a"],diamond:f,pin:p,arrow:g,triangle:d},v={line:function(e,t,n,i,r){r.x1=e,r.y1=t+i/2,r.x2=e+n,r.y2=t+i/2},rect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i},roundRect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(e,t,n,i,r){var o=Math.min(n,i);r.x=e,r.y=t,r.width=o,r.height=o},circle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.r=Math.min(n,i)/2},diamond:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i},pin:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},arrow:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},triangle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i}},b={};Object(i["each"])(m,(function(e,t){b[t]=new e}));var y=r["b"].extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=Object(u["c"])(e,t,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===t.position&&(i.y=n.y+.4*n.height),i},buildPath:function(e,t,n){var i=t.symbolType;if("none"!==i){var r=b[i];r||(i="rect",r=b[i]),v[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(e,r.shape,n)}}});function _(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function w(e,t,n,i,r,o,s){var a,u=0===e.indexOf("empty");return u&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),a=0===e.indexOf("image://")?l["makeImage"](e.slice(8),new c["a"](t,n,i,r),s?"center":"cover"):0===e.indexOf("path://")?l["makePath"](e.slice(7),{},new c["a"](t,n,i,r),s?"center":"cover"):new y({shape:{symbolType:e,x:t,y:n,width:i,height:r}}),a.__isEmptyBrush=u,a.setColor=_,o&&a.setColor(o),a}function C(e){return Object(i["isArray"])(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function S(e,t){if(null!=e)return Object(i["isArray"])(e)||(e=[e,e]),[Object(h["q"])(e[0],t[0])||0,Object(h["q"])(Object(i["retrieve2"])(e[1],e[0]),t[1])||0]}},a15b:function(e,t,n){"use strict";var i=n("23e7"),r=n("e330"),o=n("44ad"),s=n("fc6a"),a=n("a640"),l=r([].join),c=o!=Object,u=a("join",",");i({target:"Array",proto:!0,forced:c||!u},{join:function(e){return l(s(this),void 0===e?",":e)}})},a15e:function(e,t,n){"use strict";n.r(t);var i=n("41b2"),r=n.n(i),o=n("1098"),s=n.n(o),a=/%[sdj%]/g,l=function(){};function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=1,r=t[0],o=t.length;if("function"===typeof r)return r.apply(null,t.slice(1));if("string"===typeof r){for(var s=String(r).replace(a,(function(e){if("%%"===e)return"%";if(i>=o)return e;switch(e){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch(n){return"[Circular]"}break;default:return e}})),l=t[i];i<o;l=t[++i])s+=" "+l;return s}return r}function u(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}function h(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!u(t)||"string"!==typeof e||e))}function d(e,t,n){var i=[],r=0,o=e.length;function s(e){i.push.apply(i,e),r++,r===o&&n(i)}e.forEach((function(e){t(e,s)}))}function f(e,t,n){var i=0,r=e.length;function o(s){if(s&&s.length)n(s);else{var a=i;i+=1,a<r?t(e[a],o):n([])}}o([])}function p(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}function g(e,t,n,i){if(t.first){var r=p(e);return f(r,n,i)}var o=t.firstFields||[];!0===o&&(o=Object.keys(e));var s=Object.keys(e),a=s.length,l=0,c=[],u=function(e){c.push.apply(c,e),l++,l===a&&i(c)};s.forEach((function(t){var i=e[t];-1!==o.indexOf(t)?f(i,n,u):d(i,n,u)}))}function m(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:t,field:t.field||e.fullField}}}function v(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];"object"===("undefined"===typeof i?"undefined":s()(i))&&"object"===s()(e[n])?e[n]=r()({},e[n],i):e[n]=i}return e}function b(e,t,n,i,r,o){!e.required||n.hasOwnProperty(e.field)&&!h(t,o||e.type)||i.push(c(r.messages.required,e.fullField))}var y=b;function _(e,t,n,i,r){(/^\s+$/.test(t)||""===t)&&i.push(c(r.messages.whitespace,e.fullField))}var w=_,C={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},S={integer:function(e){return S.number(e)&&parseInt(e,10)===e},float:function(e){return S.number(e)&&!S.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){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"===("undefined"===typeof e?"undefined":s()(e))&&!S.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(C.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(C.url)},hex:function(e){return"string"===typeof e&&!!e.match(C.hex)}};function x(e,t,n,i,r){if(e.required&&void 0===t)y(e,t,n,i,r);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=e.type;o.indexOf(a)>-1?S[a](t)||i.push(c(r.messages.types[a],e.fullField,e.type)):a&&("undefined"===typeof t?"undefined":s()(t))!==e.type&&i.push(c(r.messages.types[a],e.fullField,e.type))}}var O=x;function k(e,t,n,i,r){var o="number"===typeof e.len,s="number"===typeof e.min,a="number"===typeof e.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=t,h=null,d="number"===typeof t,f="string"===typeof t,p=Array.isArray(t);if(d?h="number":f?h="string":p&&(h="array"),!h)return!1;p&&(u=t.length),f&&(u=t.replace(l,"_").length),o?u!==e.len&&i.push(c(r.messages[h].len,e.fullField,e.len)):s&&!a&&u<e.min?i.push(c(r.messages[h].min,e.fullField,e.min)):a&&!s&&u>e.max?i.push(c(r.messages[h].max,e.fullField,e.max)):s&&a&&(u<e.min||u>e.max)&&i.push(c(r.messages[h].range,e.fullField,e.min,e.max))}var L=k,E="enum";function D(e,t,n,i,r){e[E]=Array.isArray(e[E])?e[E]:[],-1===e[E].indexOf(t)&&i.push(c(r.messages[E],e.fullField,e[E].join(", ")))}var I=D;function M(e,t,n,i,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||i.push(c(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var o=new RegExp(e.pattern);o.test(t)||i.push(c(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}var T=M,A={required:y,whitespace:w,type:O,range:L,enum:I,pattern:T};function N(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(h(t,"string")&&!e.required)return n();A.required(e,t,i,o,r,"string"),h(t,"string")||(A.type(e,t,i,o,r),A.range(e,t,i,o,r),A.pattern(e,t,i,o,r),!0===e.whitespace&&A.whitespace(e,t,i,o,r))}n(o)}var P=N;function j(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(h(t)&&!e.required)return n();A.required(e,t,i,o,r),void 0!==t&&A.type(e,t,i,o,r)}n(o)}var R=j;function F(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(h(t)&&!e.required)return n();A.required(e,t,i,o,r),void 0!==t&&(A.type(e,t,i,o,r),A.range(e,t,i,o,r))}n(o)}var B=F;function W(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(h(t)&&!e.required)return n();A.required(e,t,i,o,r),void 0!==t&&A.type(e,t,i,o,r)}n(o)}var V=W;function z(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(h(t)&&!e.required)return n();A.required(e,t,i,o,r),h(t)||A.type(e,t,i,o,r)}n(o)}var H=z;function U(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(h(t)&&!e.required)return n();A.required(e,t,i,o,r),void 0!==t&&(A.type(e,t,i,o,r),A.range(e,t,i,o,r))}n(o)}var q=U;function $(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(h(t)&&!e.required)return n();A.required(e,t,i,o,r),void 0!==t&&(A.type(e,t,i,o,r),A.range(e,t,i,o,r))}n(o)}var K=$;function G(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(h(t,"array")&&!e.required)return n();A.required(e,t,i,o,r,"array"),h(t,"array")||(A.type(e,t,i,o,r),A.range(e,t,i,o,r))}n(o)}var Y=G;function Z(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(h(t)&&!e.required)return n();A.required(e,t,i,o,r),void 0!==t&&A.type(e,t,i,o,r)}n(o)}var X=Z,Q="enum";function J(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(h(t)&&!e.required)return n();A.required(e,t,i,o,r),t&&A[Q](e,t,i,o,r)}n(o)}var ee=J;function te(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(h(t,"string")&&!e.required)return n();A.required(e,t,i,o,r),h(t,"string")||A.pattern(e,t,i,o,r)}n(o)}var ne=te;function ie(e,t,n,i,r){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(h(t)&&!e.required)return n();if(A.required(e,t,i,o,r),!h(t)){var a=void 0;a="number"===typeof t?new Date(t):t,A.type(e,a,i,o,r),a&&A.range(e,a.getTime(),i,o,r)}}n(o)}var re=ie;function oe(e,t,n,i,r){var o=[],a=Array.isArray(t)?"array":"undefined"===typeof t?"undefined":s()(t);A.required(e,t,i,o,r,a),n(o)}var se=oe;function ae(e,t,n,i,r){var o=e.type,s=[],a=e.required||!e.required&&i.hasOwnProperty(e.field);if(a){if(h(t,o)&&!e.required)return n();A.required(e,t,i,s,r,o),h(t,o)||A.type(e,t,i,s,r)}n(s)}var le=ae,ce={string:P,method:R,number:B,boolean:V,regexp:H,integer:q,float:K,array:Y,object:X,enum:ee,pattern:ne,date:re,url:le,hex:le,email:le,required:se};function ue(){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}}}var he=ue();function de(e){this.rules=null,this._messages=he,this.define(e)}de.prototype={messages:function(e){return e&&(this._messages=v(ue(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof e?"undefined":s()(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){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],o=e,a=n,u=i;if("function"===typeof a&&(u=a,a={}),this.rules&&0!==Object.keys(this.rules).length){if(a.messages){var h=this.messages();h===he&&(h=ue()),v(h,a.messages),a.messages=h}else a.messages=this.messages();var d=void 0,f=void 0,p={},b=a.keys||Object.keys(this.rules);b.forEach((function(n){d=t.rules[n],f=o[n],d.forEach((function(i){var s=i;"function"===typeof s.transform&&(o===e&&(o=r()({},o)),f=o[n]=s.transform(f)),s="function"===typeof s?{validator:s}:r()({},s),s.validator=t.getValidationMethod(s),s.field=n,s.fullField=s.fullField||n,s.type=t.getType(s),s.validator&&(p[n]=p[n]||[],p[n].push({rule:s,value:f,source:o,field:n}))}))}));var y={};g(p,a,(function(e,t){var n=e.rule,i=("object"===n.type||"array"===n.type)&&("object"===s()(n.fields)||"object"===s()(n.defaultField));function o(e,t){return r()({},t,{fullField:n.fullField+"."+e})}function u(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=s;if(Array.isArray(u)||(u=[u]),u.length&&l("async-validator:",u),u.length&&n.message&&(u=[].concat(n.message)),u=u.map(m(n)),a.first&&u.length)return y[n.field]=1,t(u);if(i){if(n.required&&!e.value)return u=n.message?[].concat(n.message).map(m(n)):a.error?[a.error(n,c(a.messages.required,n.field))]:[],t(u);var h={};if(n.defaultField)for(var d in e.value)e.value.hasOwnProperty(d)&&(h[d]=n.defaultField);for(var f in h=r()({},h,e.rule.fields),h)if(h.hasOwnProperty(f)){var p=Array.isArray(h[f])?h[f]:[h[f]];h[f]=p.map(o.bind(null,f))}var g=new de(h);g.messages(a.messages),e.rule.options&&(e.rule.options.messages=a.messages,e.rule.options.error=a.error),g.validate(e.value,e.rule.options||a,(function(e){t(e&&e.length?u.concat(e):e)}))}else t(u)}i=i&&(n.required||!n.required&&e.value),n.field=e.field;var h=n.validator(n,e.value,u,e.source,a);h&&h.then&&h.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){_(e)}))}else u&&u();function _(e){var t=void 0,n=void 0,i=[],r={};function o(e){Array.isArray(e)?i=i.concat.apply(i,e):i.push(e)}for(t=0;t<e.length;t++)o(e[t]);if(i.length)for(t=0;t<i.length;t++)n=i[t].field,r[n]=r[n]||[],r[n].push(i[t]);else i=null,r=null;u(i,r)}},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!ce.hasOwnProperty(e.type))throw new Error(c("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]?ce.required:ce[this.getType(e)]||!1}},de.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");ce[e]=t},de.messages=he;t["default"]=de},a222:function(e,t,n){"use strict";n.r(t),n.d(t,"IPadShowKeyboard",(function(){return a}));n("722f9");var i=n("11f7"),r=n("a666"),o=n("b2cc"),s=n("30db");class a extends r["a"]{constructor(e){super(),this.editor=e,this.widget=null,s["c"]&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){const e=!this.editor.getOption(79);!this.widget&&e?this.widget=new l(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}a.ID="editor.contrib.iPadShowKeyboard";class l extends r["a"]{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(i["i"](this._domNode,"touchstart",e=>{this.editor.focus()})),this._register(i["i"](this._domNode,"focus",e=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return l.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}l.ID="editor.contrib.ShowKeyboardWidget",Object(o["l"])(a.ID,a)},a29f:function(e,t,n){"use strict";var i=n("bbc7"),r=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e){while(e.length>1){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var i=[],r=0;r<n.length;++r)"undefined"!==typeof n[r]&&i.push(n[r]);t.obj[t.prop]=i}}},l=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},i=0;i<e.length;++i)"undefined"!==typeof e[i]&&(n[i]=e[i]);return n},c=function e(t,n,i){if(!n)return t;if("object"!==typeof n){if(o(t))t.push(n);else{if(!t||"object"!==typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!==typeof t)return[t].concat(n);var s=t;return o(t)&&!o(n)&&(s=l(t,i)),o(t)&&o(n)?(n.forEach((function(n,o){if(r.call(t,o)){var s=t[o];s&&"object"===typeof s&&n&&"object"===typeof n?t[o]=e(s,n,i):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var s=n[o];return r.call(t,o)?t[o]=e(t[o],s,i):t[o]=s,t}),s)},u=function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},h=function(e,t,n){var i=e.replace(/\+/g," ");if("iso-8859-1"===n)return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch(r){return i}},d=1024,f=function(e,t,n,r,o){if(0===e.length)return e;var a=e;if("symbol"===typeof e?a=Symbol.prototype.toString.call(e):"string"!==typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var l="",c=0;c<a.length;c+=d){for(var u=a.length>=d?a.slice(c,c+d):a,h=[],f=0;f<u.length;++f){var p=u.charCodeAt(f);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||o===i.RFC1738&&(40===p||41===p)?h[h.length]=u.charAt(f):p<128?h[h.length]=s[p]:p<2048?h[h.length]=s[192|p>>6]+s[128|63&p]:p<55296||p>=57344?h[h.length]=s[224|p>>12]+s[128|p>>6&63]+s[128|63&p]:(f+=1,p=65536+((1023&p)<<10|1023&u.charCodeAt(f)),h[h.length]=s[240|p>>18]+s[128|p>>12&63]+s[128|p>>6&63]+s[128|63&p])}l+=h.join("")}return l},p=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],i=0;i<t.length;++i)for(var r=t[i],o=r.obj[r.prop],s=Object.keys(o),l=0;l<s.length;++l){var c=s[l],u=o[c];"object"===typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:o,prop:c}),n.push(u))}return a(t),e},g=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},m=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},v=function(e,t){return[].concat(e,t)},b=function(e,t){if(o(e)){for(var n=[],i=0;i<e.length;i+=1)n.push(t(e[i]));return n}return t(e)};e.exports={arrayToObject:l,assign:u,combine:v,compact:p,decode:h,encode:f,isBuffer:m,isRegExp:g,maybeMap:b,merge:c}},a34a:function(e,t,n){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},i(e)}n("a4d3"),n("e01a"),n("d28b"),n("6c57"),n("d3b7"),n("3ca3"),n("ddb0");var r=n("7ec2")();e.exports=r;try{regeneratorRuntime=r}catch(o){"object"===("undefined"===typeof globalThis?"undefined":i(globalThis))?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},a37f:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("a666");class r extends i["a"]{constructor(e,t,n){super(),this.referenceDomElement=e,this.changeCallback=n,this.width=-1,this.height=-1,this.resizeObserver=null,this.measureReferenceDomElementToken=-1,this.measureReferenceDomElement(!1,t)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this.width}getHeight(){return this.height}startObserving(){"undefined"!==typeof ResizeObserver?!this.resizeObserver&&this.referenceDomElement&&(this.resizeObserver=new ResizeObserver(e=>{e&&e[0]&&e[0].contentRect?this.observe({width:e[0].contentRect.width,height:e[0].contentRect.height}):this.observe()}),this.resizeObserver.observe(this.referenceDomElement)):-1===this.measureReferenceDomElementToken&&(this.measureReferenceDomElementToken=setInterval(()=>this.observe(),100))}stopObserving(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),-1!==this.measureReferenceDomElementToken&&(clearInterval(this.measureReferenceDomElementToken),this.measureReferenceDomElementToken=-1)}observe(e){this.measureReferenceDomElement(!0,e)}measureReferenceDomElement(e,t){let n=0,i=0;t?(n=t.width,i=t.height):this.referenceDomElement&&(n=this.referenceDomElement.clientWidth,i=this.referenceDomElement.clientHeight),n=Math.max(5,n),i=Math.max(5,i),this.width===n&&this.height===i||(this.width=n,this.height=i,e&&this.changeCallback())}}},a38e:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("53ca");n("8172"),n("d9e2"),n("efec"),n("a9e3");function r(e,t){if("object"!=Object(i["a"])(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Object(i["a"])(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function o(e){var t=r(e,"string");return"symbol"==Object(i["a"])(t)?t:t+""}},a395:function(e,t,n){var i=n("7037")["default"],r=n("e50d");function o(e){var t=r(e,"string");return"symbol"==i(t)?t:t+""}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},a3de:function(e,t,n){"use strict";var i=!("undefined"===typeof window||!window.document||!window.document.createElement),r={canUseDOM:i,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen,isInWorker:!i};e.exports=r},a40b:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("0a0f");const r="editorWorkerService",o=Object(i["c"])(r)},a434:function(e,t,n){"use strict";var i=n("23e7"),r=n("7b0b"),o=n("23cb"),s=n("5926"),a=n("07fa"),l=n("3a34"),c=n("3511"),u=n("65f0"),h=n("8418"),d=n("083a"),f=n("1dde"),p=f("splice"),g=Math.max,m=Math.min;i({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var n,i,f,p,v,b,y=r(this),_=a(y),w=o(e,_),C=arguments.length;for(0===C?n=i=0:1===C?(n=0,i=_-w):(n=C-2,i=m(g(s(t),0),_-w)),c(_+n-i),f=u(y,i),p=0;p<i;p++)v=w+p,v in y&&h(f,p,y[v]);if(f.length=i,n<i){for(p=w;p<_-i;p++)v=p+i,b=p+n,v in y?y[b]=y[v]:d(y,b);for(p=_;p>_-i+n;p--)d(y,p-1)}else if(n>i)for(p=_-i;p>w;p--)v=p+i-1,b=p+n-1,v in y?y[b]=y[v]:d(y,b);for(p=0;p<n;p++)y[p+w]=arguments[p+2];return l(y,_-i+n),f}})},a43f:function(e,t,n){"use strict";const i=n("63f00"),r=n("6155").NumberAllocator;function o(e){if(!(this instanceof o))return new o(e);e>0&&(this.aliasToTopic=new i({max:e}),this.topicToAlias={},this.numberAllocator=new r(1,e),this.max=e,this.length=0)}o.prototype.put=function(e,t){if(0===t||t>this.max)return!1;const n=this.aliasToTopic.get(t);return n&&delete this.topicToAlias[n],this.aliasToTopic.set(t,e),this.topicToAlias[e]=t,this.numberAllocator.use(t),this.length=this.aliasToTopic.length,!0},o.prototype.getTopicByAlias=function(e){return this.aliasToTopic.get(e)},o.prototype.getAliasByTopic=function(e){const t=this.topicToAlias[e];return"undefined"!==typeof t&&this.aliasToTopic.get(t),t},o.prototype.clear=function(){this.aliasToTopic.reset(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0},o.prototype.getLruAlias=function(){const e=this.numberAllocator.firstVacant();return e||this.aliasToTopic.keys()[this.aliasToTopic.length-1]},e.exports=o},a48d:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return n.e("chunk-2d0bcec1").then(n.bind(null,"2a95"))}})},a493:function(e,t,n){"use strict";(function(t){var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var r=n("0e8b"),o=n("f6ba");n("3fb5")(c,r);for(var s=i(o.prototype),a=0;a<s.length;a++){var l=s[a];c.prototype[l]||(c.prototype[l]=o.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);r.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||t.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,n("4362"))},a4b4:function(e,t,n){var i=n("342f");e.exports=/web0s(?!.*chrome)/i.test(i)},a4d3:function(e,t,n){n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a50f:function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},a5d8:function(e,t,n){},a60f:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c}));var i,r=n("e8e3"),o=n("a666"),s=n("11f7"),a=n("6424"),l=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};(function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"})(i||(i={}));class c extends o["a"]{constructor(){super(),this.dispatched=!1,this.activeTouches={},this.handle=null,this.targets=[],this.ignoreTargets=[],this._lastSetTapCountTime=0,this._register(s["i"](document,"touchstart",e=>this.onTouchStart(e),{passive:!1})),this._register(s["i"](document,"touchend",e=>this.onTouchEnd(e))),this._register(s["i"](document,"touchmove",e=>this.onTouchMove(e),{passive:!1}))}static addTarget(e){return c.isTouchDevice()?(c.INSTANCE||(c.INSTANCE=new c),c.INSTANCE.targets.push(e),{dispose:()=>{c.INSTANCE.targets=c.INSTANCE.targets.filter(t=>t!==e)}}):o["a"].None}static ignoreTarget(e){return c.isTouchDevice()?(c.INSTANCE||(c.INSTANCE=new c),c.INSTANCE.ignoreTargets.push(e),{dispose:()=>{c.INSTANCE.ignoreTargets=c.INSTANCE.ignoreTargets.filter(t=>t!==e)}}):o["a"].None}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(e){let t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let n=0,r=e.targetTouches.length;n<r;n++){let 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]};let o=this.newGestureEvent(i.Start,r.target);o.pageX=r.pageX,o.pageY=r.pageY,this.dispatchEvent(o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}onTouchEnd(e){let t=Date.now(),n=Object.keys(this.activeTouches).length;for(let o=0,s=e.changedTouches.length;o<s;o++){let s=e.changedTouches.item(o);if(!this.activeTouches.hasOwnProperty(String(s.identifier))){console.warn("move of an UNKNOWN touch",s);continue}let a=this.activeTouches[s.identifier],l=Date.now()-a.initialTimeStamp;if(l<c.HOLD_DELAY&&Math.abs(a.initialPageX-r["t"](a.rollingPageX))<30&&Math.abs(a.initialPageY-r["t"](a.rollingPageY))<30){let e=this.newGestureEvent(i.Tap,a.initialTarget);e.pageX=r["t"](a.rollingPageX),e.pageY=r["t"](a.rollingPageY),this.dispatchEvent(e)}else if(l>=c.HOLD_DELAY&&Math.abs(a.initialPageX-r["t"](a.rollingPageX))<30&&Math.abs(a.initialPageY-r["t"](a.rollingPageY))<30){let e=this.newGestureEvent(i.Contextmenu,a.initialTarget);e.pageX=r["t"](a.rollingPageX),e.pageY=r["t"](a.rollingPageY),this.dispatchEvent(e)}else if(1===n){let e=r["t"](a.rollingPageX),n=r["t"](a.rollingPageY),i=r["t"](a.rollingTimestamps)-a.rollingTimestamps[0],o=e-a.rollingPageX[0],s=n-a.rollingPageY[0];const l=this.targets.filter(e=>a.initialTarget instanceof Node&&e.contains(a.initialTarget));this.inertia(l,t,Math.abs(o)/i,o>0?1:-1,e,Math.abs(s)/i,s>0?1:-1,n)}this.dispatchEvent(this.newGestureEvent(i.End,a.initialTarget)),delete this.activeTouches[s.identifier]}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}newGestureEvent(e,t){let n=document.createEvent("CustomEvent");return n.initEvent(e,!1,!0),n.initialTarget=t,n.tapCount=0,n}dispatchEvent(e){if(e.type===i.Tap){const t=(new Date).getTime();let n=0;n=t-this._lastSetTapCountTime>c.CLEAR_TAP_COUNT_TIME?1:2,this._lastSetTapCountTime=t,e.tapCount=n}else e.type!==i.Change&&e.type!==i.Contextmenu||(this._lastSetTapCountTime=0);for(let t=0;t<this.ignoreTargets.length;t++)if(e.initialTarget instanceof Node&&this.ignoreTargets[t].contains(e.initialTarget))return;this.targets.forEach(t=>{e.initialTarget instanceof Node&&t.contains(e.initialTarget)&&(t.dispatchEvent(e),this.dispatched=!0)})}inertia(e,t,n,r,o,a,l,u){this.handle=s["V"](()=>{let s=Date.now(),h=s-t,d=0,f=0,p=!0;n+=c.SCROLL_FRICTION*h,a+=c.SCROLL_FRICTION*h,n>0&&(p=!1,d=r*n*h),a>0&&(p=!1,f=l*a*h);let g=this.newGestureEvent(i.Change);g.translationX=d,g.translationY=f,e.forEach(e=>e.dispatchEvent(g)),p||this.inertia(e,s,n,r,o+d,a,l,u+f)})}onTouchMove(e){let t=Date.now();for(let n=0,o=e.changedTouches.length;n<o;n++){let o=e.changedTouches.item(n);if(!this.activeTouches.hasOwnProperty(String(o.identifier))){console.warn("end of an UNKNOWN touch",o);continue}let s=this.activeTouches[o.identifier],a=this.newGestureEvent(i.Change,s.initialTarget);a.translationX=o.pageX-r["t"](s.rollingPageX),a.translationY=o.pageY-r["t"](s.rollingPageY),a.pageX=o.pageX,a.pageY=o.pageY,this.dispatchEvent(a),s.rollingPageX.length>3&&(s.rollingPageX.shift(),s.rollingPageY.shift(),s.rollingTimestamps.shift()),s.rollingPageX.push(o.pageX),s.rollingPageY.push(o.pageY),s.rollingTimestamps.push(t)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)}}c.SCROLL_FRICTION=-.005,c.HOLD_DELAY=700,c.CLEAR_TAP_COUNT_TIME=400,l([a["a"]],c,"isTouchDevice",null)},a630:function(e,t,n){var i=n("23e7"),r=n("4df4"),o=n("1c7e"),s=!o((function(e){Array.from(e)}));i({target:"Array",stat:!0,forced:s},{from:r})},a640:function(e,t,n){"use strict";var i=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&i((function(){n.call(null,t||function(){return 1},1)}))}},a645:function(e,t,n){"use strict";e.exports=Error},a666:function(e,t,n){"use strict";n.d(t,"h",(function(){return d})),n.d(t,"g",(function(){return p})),n.d(t,"f",(function(){return g})),n.d(t,"e",(function(){return m})),n.d(t,"i",(function(){return v})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return y})),n.d(t,"d",(function(){return _})),n.d(t,"c",(function(){return w}));var i=n("0bfb"),r=n("258a");const o=!1;let s=null;function a(e){s=e}if(o){const e="__is_disposable_tracked__";a(new class{trackDisposable(t){const n=new Error("Potentially leaked disposable").stack;setTimeout(()=>{t[e]||console.log(n)},3e3)}setParent(t,n){if(t&&t!==y.None)try{t[e]=!0}catch(i){}}markAsDisposed(t){if(t&&t!==y.None)try{t[e]=!0}catch(n){}}markAsSingleton(e){}})}function l(e){return null===s||void 0===s||s.trackDisposable(e),e}function c(e){null===s||void 0===s||s.markAsDisposed(e)}function u(e,t){null===s||void 0===s||s.setParent(e,t)}function h(e,t){if(s)for(const n of e)s.setParent(n,t)}function d(e){return null===s||void 0===s||s.markAsSingleton(e),e}class f extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function p(e){return"function"===typeof e.dispose&&0===e.dispose.length}function g(e){if(r["a"].is(e)){let n=[];for(const i of e)if(i)try{i.dispose()}catch(t){n.push(t)}if(1===n.length)throw n[0];if(n.length>1)throw new f(n);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function m(...e){const t=v(()=>g(e));return h(e,t),t}function v(e){const t=l({dispose:Object(i["a"])(()=>{c(t),e()})});return t}class b{constructor(){this._toDispose=new Set,this._isDisposed=!1,l(this)}dispose(){this._isDisposed||(c(this),this._isDisposed=!0,this.clear())}clear(){try{g(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return u(e,this),this._isDisposed?b.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}b.DISABLE_DISPOSED_WARNING=!1;class y{constructor(){this._store=new b,l(this),u(this._store,this)}dispose(){c(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}y.None=Object.freeze({dispose(){}});class _{constructor(){this._isDisposed=!1,l(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),e&&u(e,this),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,c(this),null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e&&u(e,null),e}}class w{constructor(e){this.object=e}dispose(){}}},a6d7:function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return u}));var i=n("303e");function r(e,t){const n=Object.create(null);for(let r in t){const o=t[r];o&&(n[r]=Object(i["xc"])(o,e))}return n}function o(e,t,n){function i(){const i=r(e.getColorTheme(),t);"function"===typeof n?n(i):n.style(i)}return i(),e.onDidColorThemeChange(i)}function s(e,t,n){return o(t,{badgeBackground:(null===n||void 0===n?void 0:n.badgeBackground)||i["c"],badgeForeground:(null===n||void 0===n?void 0:n.badgeForeground)||i["d"],badgeBorder:i["h"]},e)}function a(e,t,n){return o(t,Object.assign(Object.assign({},l),n||{}),e)}const l={listFocusBackground:i["Gb"],listFocusForeground:i["Hb"],listFocusOutline:i["Jb"],listActiveSelectionBackground:i["zb"],listActiveSelectionForeground:i["Ab"],listActiveSelectionIconForeground:i["Bb"],listFocusAndSelectionBackground:i["zb"],listFocusAndSelectionForeground:i["Ab"],listInactiveSelectionBackground:i["Pb"],listInactiveSelectionIconForeground:i["Rb"],listInactiveSelectionForeground:i["Qb"],listInactiveFocusBackground:i["Nb"],listInactiveFocusOutline:i["Ob"],listHoverBackground:i["Lb"],listHoverForeground:i["Mb"],listDropBackground:i["Cb"],listSelectionOutline:i["b"],listHoverOutline:i["b"],listFilterWidgetBackground:i["Db"],listFilterWidgetOutline:i["Fb"],listFilterWidgetNoMatchesOutline:i["Eb"],listMatchesShadow:i["Mc"],treeIndentGuidesStroke:i["Lc"],tableColumnsBorder:i["Gc"]},c={shadowColor:i["Mc"],borderColor:i["Tb"],foregroundColor:i["Ub"],backgroundColor:i["Sb"],selectionForegroundColor:i["Xb"],selectionBackgroundColor:i["Vb"],selectionBorderColor:i["Wb"],separatorColor:i["Yb"]};function u(e,t,n){return o(t,Object.assign(Object.assign({},c),n),e)}},a736:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"mergeColor",{enumerable:!0,get:function(){return i.mergeColor}}),Object.defineProperty(t,"title",{enumerable:!0,get:function(){return r.title}}),Object.defineProperty(t,"grid",{enumerable:!0,get:function(){return o.grid}}),Object.defineProperty(t,"axis",{enumerable:!0,get:function(){return s.axis}}),Object.defineProperty(t,"line",{enumerable:!0,get:function(){return a.line}}),Object.defineProperty(t,"bar",{enumerable:!0,get:function(){return l.bar}}),Object.defineProperty(t,"pie",{enumerable:!0,get:function(){return c.pie}}),Object.defineProperty(t,"radarAxis",{enumerable:!0,get:function(){return u.radarAxis}}),Object.defineProperty(t,"radar",{enumerable:!0,get:function(){return h.radar}}),Object.defineProperty(t,"gauge",{enumerable:!0,get:function(){return d.gauge}}),Object.defineProperty(t,"legend",{enumerable:!0,get:function(){return f.legend}});var i=n("8a1d"),r=n("873c"),o=n("46bb6"),s=n("0680"),a=n("252fe"),l=n("204e"),c=n("729e"),u=n("a143"),h=n("4eb1"),d=n("1f55"),f=n("60f7")},a753:function(e,t,n){},a771:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return n.e("chunk-2d237ee7").then(n.bind(null,"fce9"))}})},a79b:function(e,t,n){"use strict";n.r(t),n.d(t,"jsonDefaults",(function(){return a}));n("33f9");var i=n("0ab8"),r=function(){function e(e,t,n){this._onDidChange=new i["Emitter"],this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(n)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!1,configurable:!0}),e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},e.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},e}(),o={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},s={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},a=new r("json",o,s);function l(){return n.e("chunk-e13e4362").then(n.bind(null,"47b9"))}i["languages"].json={jsonDefaults:a},i["languages"].register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),i["languages"].onLanguage("json",(function(){l().then((function(e){return e.setupMode(a)}))}))},a79d:function(e,t,n){"use strict";var i=n("23e7"),r=n("c430"),o=n("d256"),s=n("d039"),a=n("d066"),l=n("1626"),c=n("4840"),u=n("cdf9"),h=n("cb2d"),d=o&&o.prototype,f=!!o&&s((function(){d["finally"].call({then:function(){}},(function(){}))}));if(i({target:"Promise",proto:!0,real:!0,forced:f},{finally:function(e){var t=c(this,a("Promise")),n=l(e);return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!r&&l(o)){var p=a("Promise").prototype["finally"];d["finally"]!==p&&h(d,"finally",p,{unsafe:!0})}},a7c9:function(e,t){class n{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}}e.exports=n},a870:function(e,t,n){"use strict";n.r(t),n.d(t,"darken",(function(){return b})),n.d(t,"fade",(function(){return _})),n.d(t,"getColorFromRgbValue",(function(){return v})),n.d(t,"getOpacity",(function(){return f})),n.d(t,"getRgbValue",(function(){return d})),n.d(t,"getRgbaValue",(function(){return p})),n.d(t,"isHex",(function(){return r})),n.d(t,"isRgb",(function(){return o})),n.d(t,"isRgbOrRgba",(function(){return a})),n.d(t,"isRgba",(function(){return s})),n.d(t,"lighten",(function(){return y})),n.d(t,"toHex",(function(){return m})),n.d(t,"toRgb",(function(){return g}));var i=(e=>(e.transparent="rgba(0,0,0,0)",e.black="#000000",e.silver="#C0C0C0",e.gray="#808080",e.white="#FFFFFF",e.maroon="#800000",e.red="#FF0000",e.purple="#800080",e.fuchsia="#FF00FF",e.green="#008000",e.lime="#00FF00",e.olive="#808000",e.yellow="#FFFF00",e.navy="#000080",e.blue="#0000FF",e.teal="#008080",e.aqua="#00FFFF",e.aliceblue="#f0f8ff",e.antiquewhite="#faebd7",e.aquamarine="#7fffd4",e.azure="#f0ffff",e.beige="#f5f5dc",e.bisque="#ffe4c4",e.blanchedalmond="#ffebcd",e.blueviolet="#8a2be2",e.brown="#a52a2a",e.burlywood="#deb887",e.cadetblue="#5f9ea0",e.chartreuse="#7fff00",e.chocolate="#d2691e",e.coral="#ff7f50",e.cornflowerblue="#6495ed",e.cornsilk="#fff8dc",e.crimson="#dc143c",e.cyan="#00ffff",e.darkblue="#00008b",e.darkcyan="#008b8b",e.darkgoldenrod="#b8860b",e.darkgray="#a9a9a9",e.darkgreen="#006400",e.darkgrey="#a9a9a9",e.darkkhaki="#bdb76b",e.darkmagenta="#8b008b",e.darkolivegreen="#556b2f",e.darkorange="#ff8c00",e.darkorchid="#9932cc",e.darkred="#8b0000",e.darksalmon="#e9967a",e.darkseagreen="#8fbc8f",e.darkslateblue="#483d8b",e.darkslategray="#2f4f4f",e.darkslategrey="#2f4f4f",e.darkturquoise="#00ced1",e.darkviolet="#9400d3",e.deeppink="#ff1493",e.deepskyblue="#00bfff",e.dimgray="#696969",e.dimgrey="#696969",e.dodgerblue="#1e90ff",e.firebrick="#b22222",e.floralwhite="#fffaf0",e.forestgreen="#228b22",e.gainsboro="#dcdcdc",e.ghostwhite="#f8f8ff",e.gold="#ffd700",e.goldenrod="#daa520",e.greenyellow="#adff2f",e.grey="#808080",e.honeydew="#f0fff0",e.hotpink="#ff69b4",e.indianred="#cd5c5c",e.indigo="#4b0082",e.ivory="#fffff0",e.khaki="#f0e68c",e.lavender="#e6e6fa",e.lavenderblush="#fff0f5",e.lawngreen="#7cfc00",e.lemonchiffon="#fffacd",e.lightblue="#add8e6",e.lightcoral="#f08080",e.lightcyan="#e0ffff",e.lightgoldenrodyellow="#fafad2",e.lightgray="#d3d3d3",e.lightgreen="#90ee90",e.lightgrey="#d3d3d3",e.lightpink="#ffb6c1",e.lightsalmon="#ffa07a",e.lightseagreen="#20b2aa",e.lightskyblue="#87cefa",e.lightslategray="#778899",e.lightslategrey="#778899",e.lightsteelblue="#b0c4de",e.lightyellow="#ffffe0",e.limegreen="#32cd32",e.linen="#faf0e6",e.magenta="#ff00ff",e.mediumaquamarine="#66cdaa",e.mediumblue="#0000cd",e.mediumorchid="#ba55d3",e.mediumpurple="#9370db",e.mediumseagreen="#3cb371",e.mediumslateblue="#7b68ee",e.mediumspringgreen="#00fa9a",e.mediumturquoise="#48d1cc",e.mediumvioletred="#c71585",e.midnightblue="#191970",e.mintcream="#f5fffa",e.mistyrose="#ffe4e1",e.moccasin="#ffe4b5",e.navajowhite="#ffdead",e.oldlace="#fdf5e6",e.olivedrab="#6b8e23",e.orange="#ffa500",e.orangered="#ff4500",e.orchid="#da70d6",e.palegoldenrod="#eee8aa",e.palegreen="#98fb98",e.paleturquoise="#afeeee",e.palevioletred="#db7093",e.papayawhip="#ffefd5",e.peachpuff="#ffdab9",e.peru="#cd853f",e.pink="#ffc0cb",e.plum="#dda0dd",e.powderblue="#b0e0e6",e.rosybrown="#bc8f8f",e.royalblue="#4169e1",e.saddlebrown="#8b4513",e.salmon="#fa8072",e.sandybrown="#f4a460",e.seagreen="#2e8b57",e.seashell="#fff5ee",e.sienna="#a0522d",e.skyblue="#87ceeb",e.slateblue="#6a5acd",e.slategray="#708090",e.snow="#fffafa",e.springgreen="#00ff7f",e.steelblue="#4682b4",e.tan="#d2b48c",e.thistle="#d8bfd8",e.tomato="#ff6347",e.turquoise="#40e0d0",e.violet="#ee82ee",e.wheat="#f5deb3",e.whitesmoke="#f5f5f5",e.yellowgreen="#9acd32",e))(i||{});function r(e){return"string"==typeof e&&(e=e.toLowerCase(),/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e))}function o(e){return"string"==typeof e&&(e=e.toLowerCase(),/^(rgb\(|RGB\()/.test(e))}function s(e){return"string"==typeof e&&(e=e.toLowerCase(),/^(rgba|RGBA)/.test(e))}function a(e){return/^(rgb|rgba|RGB|RGBA)/.test(e)}function l(e){return i[e]}function c(e){if(r(e)||a(e))return e;const t=l(e);if(!t)throw new Error("Color: Invalid Input of "+e);return t}function u(e){e=e.replace("#",""),3===e.length&&(e=Array.from(e).map(e=>e+e).join(""));const t=e.split("");return new Array(3).fill(0).map((e,n)=>parseInt(`0x${t[2*n]}${t[2*n+1]}`))}function h(e){return e.replace(/rgb\(|rgba\(|\)/g,"").split(",").slice(0,3).map(e=>parseInt(e))}function d(e){const t=c(e).toLowerCase();return r(t)?u(t):h(t)}function f(e){const t=c(e);return s(t)?Number(t.toLowerCase().split(",").slice(-1)[0].replace(/[)|\s]/g,"")):1}function p(e){const t=d(e);return t&&[...t,f(e)]}function g(e,t){const n=d(e);return"number"==typeof t?`rgba(${n.join(",")},${t})`:`rgb(${n.join(",")})`}function m(e){if(r(e))return e;const t=d(e),n=e=>Number(e).toString(16).padStart(2,"0");return"#"+t.map(n).join("")}function v(e){if(!Array.isArray(e))throw new Error(`getColorFromRgbValue: ${e} is not an array`);const{length:t}=e;if(3!==t&&4!==t)throw new Error("getColorFromRgbValue: value length should be 3 or 4");return(3===t?"rgb(":"rgba(")+e.join(",")+")"}function b(e,t=0){let n=p(e);return n=n.map((e,n)=>3===n?e:e-Math.ceil(2.55*t)).map(e=>e<0?0:e),v(n)}function y(e,t=0){let n=p(e);return n=n.map((e,n)=>3===n?e:e+Math.ceil(2.55*t)).map(e=>e>255?255:e),v(n)}function _(e,t=100){const n=d(e);return v([...n,t/100])}},a8d0:function(e,t,n){"use strict";n.d(t,"h",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return h})),n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return f})),n.d(t,"g",(function(){return p}));var i=n("3742"),r=n("7061"),o=n("6a89");class s{constructor(e,t,n,i){this._viewportBrand=void 0,this.top=0|e,this.left=0|t,this.width=0|n,this.height=0|i}}class a{constructor(e,t){this.outputLineIndex=e,this.outputOffset=t}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(e,t){const n=this.outputLineIndex>0?t:0;return new r["a"](e+this.outputLineIndex,n+this.outputOffset+1)}}class l{constructor(e,t,n,i,r){this.breakOffsets=e,this.breakOffsetsVisibleColumn=t,this.wrappedTextIndentLength=n,this.injectionOffsets=i,this.injectionOptions=r}getInputOffsetOfOutputPosition(e,t){let n=0;if(n=0===e?t:this.breakOffsets[e-1]+t,null!==this.injectionOffsets)for(let i=0;i<this.injectionOffsets.length;i++){if(!(n>this.injectionOffsets[i]))break;n<this.injectionOffsets[i]+this.injectionOptions[i].content.length?n=this.injectionOffsets[i]:n-=this.injectionOptions[i].content.length}return n}getOutputPositionOfInputOffset(e,t=2){let n=0;if(null!==this.injectionOffsets)for(let i=0;i<this.injectionOffsets.length;i++){if(e<this.injectionOffsets[i])break;if(1!==t&&e===this.injectionOffsets[i])break;n+=this.injectionOptions[i].content.length}return e+=n,this.getOutputPositionOfOffsetInUnwrappedLine(e,t)}getOutputPositionOfOffsetInUnwrappedLine(e,t=2){let n=0,i=this.breakOffsets.length-1,r=0,o=0;while(n<=i){r=n+(i-n)/2|0;const s=this.breakOffsets[r];if(o=r>0?this.breakOffsets[r-1]:0,0===t)if(e<=o)i=r-1;else{if(!(e>s))break;n=r+1}else if(e<o)i=r-1;else{if(!(e>=s))break;n=r+1}}return new a(r,e-o)}outputPositionToOffsetInUnwrappedLine(e,t){let n=(e>0?this.breakOffsets[e-1]:0)+t;return e>0&&(n-=this.wrappedTextIndentLength),n}normalizeOffsetAroundInjections(e,t){const n=this.getInjectedTextAtOffset(e);if(!n)return e;if(2===t)return e===n.offsetInUnwrappedLine+n.length?n.offsetInUnwrappedLine+n.length:n.offsetInUnwrappedLine;if(1===t){let e=n.offsetInUnwrappedLine+n.length,t=n.injectedTextIndex;while(t+1<this.injectionOffsets.length&&this.injectionOffsets[t+1]===this.injectionOffsets[t])e+=this.injectionOptions[t+1].content.length,t++;return e}let i=n.offsetInUnwrappedLine,r=n.injectedTextIndex;while(r-1>=0&&this.injectionOffsets[r-1]===this.injectionOffsets[r])i-=this.injectionOptions[r-1].content.length,r++;return i}getInjectedText(e,t){const n=this.outputPositionToOffsetInUnwrappedLine(e,t),i=this.getInjectedTextAtOffset(n);return i?{options:this.injectionOptions[i.injectedTextIndex]}:null}getInjectedTextAtOffset(e){const t=this.injectionOffsets,n=this.injectionOptions;if(null!==t){let i=0;for(let r=0;r<t.length;r++){const o=n[r].content.length,s=t[r]+i,a=t[r]+i+o;if(s>e)break;if(e<=a)return{injectedTextIndex:r,offsetInUnwrappedLine:s,length:o};i+=o}}}}class c{constructor(e,t){this.tabSize=e,this.data=t}}class u{constructor(e,t,n,i,r,o,s){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=t,this.minColumn=n,this.maxColumn=i,this.startVisibleColumn=r,this.tokens=o,this.inlineDecorations=s}}class h{constructor(e,t,n,i,r,o,s,a,l,c){this.minColumn=e,this.maxColumn=t,this.content=n,this.continuesWithWrappedLine=i,this.isBasicASCII=h.isBasicASCII(n,o),this.containsRTL=h.containsRTL(n,this.isBasicASCII,r),this.tokens=s,this.inlineDecorations=a,this.tabSize=l,this.startVisibleColumn=c}static isBasicASCII(e,t){return!t||i["B"](e)}static containsRTL(e,t,n){return!(t||!n)&&i["m"](e)}}class d{constructor(e,t,n){this.range=e,this.inlineClassName=t,this.type=n}}class f{constructor(e,t,n,i){this.startOffset=e,this.endOffset=t,this.inlineClassName=n,this.inlineClassNameAffectsLetterSpacing=i}toInlineDecoration(e){return new d(new o["a"](e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class p{constructor(e,t){this._viewModelDecorationBrand=void 0,this.range=e,this.options=t}}},a8f5:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:function(){return n.e("chunk-2d0c8f4c").then(n.bind(null,"56a6"))}})},a925:function(e,t,n){"use strict";
|
||
/*!
|
||
* vue-i18n v8.28.2
|
||
* (c) 2022 kazuya kawaguchi
|
||
* Released under the MIT License.
|
||
*/var i=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],r=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function o(e,t){"undefined"!==typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}function s(e,t){"undefined"!==typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}var a=Array.isArray;function l(e){return null!==e&&"object"===typeof e}function c(e){return"boolean"===typeof e}function u(e){return"string"===typeof e}var h=Object.prototype.toString,d="[object Object]";function f(e){return h.call(e)===d}function p(e){return null===e||void 0===e}function g(e){return"function"===typeof e}function m(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var n=null,i=null;return 1===e.length?l(e[0])||a(e[0])?i=e[0]:"string"===typeof e[0]&&(n=e[0]):2===e.length&&("string"===typeof e[0]&&(n=e[0]),(l(e[1])||a(e[1]))&&(i=e[1])),{locale:n,params:i}}function v(e){return JSON.parse(JSON.stringify(e))}function b(e,t){if(e.delete(t))return e}function y(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function _(e,t){return!!~e.indexOf(t)}var w=Object.prototype.hasOwnProperty;function C(e,t){return w.call(e,t)}function S(e){for(var t=arguments,n=Object(e),i=1;i<arguments.length;i++){var r=t[i];if(void 0!==r&&null!==r){var o=void 0;for(o in r)C(r,o)&&(l(r[o])?n[o]=S(n[o],r[o]):n[o]=r[o])}}return n}function x(e,t){if(e===t)return!0;var n=l(e),i=l(t);if(!n||!i)return!n&&!i&&String(e)===String(t);try{var r=a(e),o=a(t);if(r&&o)return e.length===t.length&&e.every((function(e,n){return x(e,t[n])}));if(r||o)return!1;var s=Object.keys(e),c=Object.keys(t);return s.length===c.length&&s.every((function(n){return x(e[n],t[n])}))}catch(u){return!1}}function O(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function k(e){return null!=e&&Object.keys(e).forEach((function(t){"string"==typeof e[t]&&(e[t]=O(e[t]))})),e}function L(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var i=this.$i18n;return i._t.apply(i,[e,i.locale,i._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){var n=[],i=arguments.length-2;while(i-- >0)n[i]=arguments[i+2];var r=this.$i18n;return r._tc.apply(r,[e,r.locale,r._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){var t,n=[],i=arguments.length-1;while(i-- >0)n[i]=arguments[i+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){var t,n=[],i=arguments.length-1;while(i-- >0)n[i]=arguments[i+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}}function E(e){function t(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===e&&(e=!1),e?{mounted:t}:{beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n)if(e.i18n instanceof ke){if(e.__i18nBridge||e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{},n=e.__i18nBridge||e.__i18n;n.forEach((function(e){t=S(t,JSON.parse(e))})),Object.keys(t).forEach((function(n){e.i18n.mergeLocaleMessage(n,t[n])}))}catch(l){0}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(f(e.i18n)){var i=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ke?this.$root.$i18n:null;if(i&&(e.i18n.root=this.$root,e.i18n.formatter=i.formatter,e.i18n.fallbackLocale=i.fallbackLocale,e.i18n.formatFallbackMessages=i.formatFallbackMessages,e.i18n.silentTranslationWarn=i.silentTranslationWarn,e.i18n.silentFallbackWarn=i.silentFallbackWarn,e.i18n.pluralizationRules=i.pluralizationRules,e.i18n.preserveDirectiveContent=i.preserveDirectiveContent),e.__i18nBridge||e.__i18n)try{var r=e.i18n&&e.i18n.messages?e.i18n.messages:{},o=e.__i18nBridge||e.__i18n;o.forEach((function(e){r=S(r,JSON.parse(e))})),e.i18n.messages=r}catch(l){0}var s=e.i18n,a=s.sharedMessages;a&&f(a)&&(e.i18n.messages=S(e.i18n.messages,a)),this._i18n=new ke(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),i&&i.onComponentInstanceCreated(this._i18n)}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ke?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof ke&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n?(e.i18n instanceof ke||f(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ke||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof ke)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:t,beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick((function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)}))}}}}var D={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var n=t.data,i=t.parent,r=t.props,o=t.slots,s=i.$i18n;if(s){var a=r.path,l=r.locale,c=r.places,u=o(),h=s.i(a,l,I(u)||c?M(u.default,c):u),d=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return d?e(d,n,h):h}}};function I(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}function M(e,t){var n=t?T(t):{};if(!e)return n;e=e.filter((function(e){return e.tag||""!==e.text.trim()}));var i=e.every(P);return e.reduce(i?A:N,n)}function T(e){return Array.isArray(e)?e.reduce(N,{}):Object.assign({},e)}function A(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function N(e,t,n){return e[n]=t,e}function P(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var j,R={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var n=t.props,r=t.parent,o=t.data,s=r.$i18n;if(!s)return null;var a=null,c=null;u(n.format)?a=n.format:l(n.format)&&(n.format.key&&(a=n.format.key),c=Object.keys(n.format).reduce((function(e,t){var r;return _(i,t)?Object.assign({},e,(r={},r[t]=n.format[t],r)):e}),null));var h=n.locale||s.locale,d=s._ntp(n.value,h,a,c),f=d.map((function(e,t){var n,i=o.scopedSlots&&o.scopedSlots[e.type];return i?i((n={},n[e.type]=e.value,n.index=t,n.parts=d,n)):e.value})),p=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return p?e(p,{attrs:o.attrs,class:o["class"],staticClass:o.staticClass},f):f}};function F(e,t,n){V(e,n)&&H(e,t,n)}function B(e,t,n,i){if(V(e,n)){var r=n.context.$i18n;z(e,n)&&x(t.value,t.oldValue)&&x(e._localeMessage,r.getLocaleMessage(r.locale))||H(e,t,n)}}function W(e,t,n,i){var r=n.context;if(r){var s=n.context.$i18n||{};t.modifiers.preserve||s.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e["_vt"],e._locale=void 0,delete e["_locale"],e._localeMessage=void 0,delete e["_localeMessage"]}else o("Vue instance does not exists in VNode context")}function V(e,t){var n=t.context;return n?!!n.$i18n||(o("VueI18n instance does not exists in Vue instance"),!1):(o("Vue instance does not exists in VNode context"),!1)}function z(e,t){var n=t.context;return e._locale===n.$i18n.locale}function H(e,t,n){var i,r,s=t.value,a=U(s),l=a.path,c=a.locale,u=a.args,h=a.choice;if(l||c||u)if(l){var d=n.context;e._vt=e.textContent=null!=h?(i=d.$i18n).tc.apply(i,[l,h].concat(q(c,u))):(r=d.$i18n).t.apply(r,[l].concat(q(c,u))),e._locale=d.$i18n.locale,e._localeMessage=d.$i18n.getLocaleMessage(d.$i18n.locale)}else o("`path` is required in v-t directive");else o("value type not supported")}function U(e){var t,n,i,r;return u(e)?t=e:f(e)&&(t=e.path,n=e.locale,i=e.args,r=e.choice),{path:t,locale:n,args:i,choice:r}}function q(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||f(t))&&n.push(t),n}function $(e,t){void 0===t&&(t={bridge:!1}),$.installed=!0,j=e;j.version&&Number(j.version.split(".")[0]);L(j),j.mixin(E(t.bridge)),j.directive("t",{bind:F,update:B,unbind:W}),j.component(D.name,D),j.component(R.name,R);var n=j.config.optionMergeStrategies;n.i18n=function(e,t){return void 0===t?e:t}}var K=function(){this._caches=Object.create(null)};K.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=Z(e),this._caches[e]=n),X(n,t)};var G=/^(?:\d)+/,Y=/^(?:\w)+/;function Z(e){var t=[],n=0,i="";while(n<e.length){var r=e[n++];if("{"===r){i&&t.push({type:"text",value:i}),i="";var o="";r=e[n++];while(void 0!==r&&"}"!==r)o+=r,r=e[n++];var s="}"===r,a=G.test(o)?"list":s&&Y.test(o)?"named":"unknown";t.push({value:o,type:a})}else"%"===r?"{"!==e[n]&&(i+=r):i+=r}return i&&t.push({type:"text",value:i}),t}function X(e,t){var n=[],i=0,r=Array.isArray(t)?"list":l(t)?"named":"unknown";if("unknown"===r)return n;while(i<e.length){var o=e[i];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(t[parseInt(o.value,10)]);break;case"named":"named"===r&&n.push(t[o.value]);break;case"unknown":0;break}i++}return n}var Q=0,J=1,ee=2,te=3,ne=0,ie=1,re=2,oe=3,se=4,ae=5,le=6,ce=7,ue=8,he=[];he[ne]={ws:[ne],ident:[oe,Q],"[":[se],eof:[ce]},he[ie]={ws:[ie],".":[re],"[":[se],eof:[ce]},he[re]={ws:[re],ident:[oe,Q],0:[oe,Q],number:[oe,Q]},he[oe]={ident:[oe,Q],0:[oe,Q],number:[oe,Q],ws:[ie,J],".":[re,J],"[":[se,J],eof:[ce,J]},he[se]={"'":[ae,Q],'"':[le,Q],"[":[se,ee],"]":[ie,te],eof:ue,else:[se,Q]},he[ae]={"'":[se,Q],eof:ue,else:[ae,Q]},he[le]={'"':[se,Q],eof:ue,else:[le,Q]};var de=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function fe(e){return de.test(e)}function pe(e){var t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t!==n||34!==t&&39!==t?e:e.slice(1,-1)}function ge(e){if(void 0===e||null===e)return"eof";var t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function me(e){var t=e.trim();return("0"!==e.charAt(0)||!isNaN(e))&&(fe(t)?pe(t):"*"+t)}function ve(e){var t,n,i,r,o,s,a,l=[],c=-1,u=ne,h=0,d=[];function f(){var t=e[c+1];if(u===ae&&"'"===t||u===le&&'"'===t)return c++,i="\\"+t,d[Q](),!0}d[J]=function(){void 0!==n&&(l.push(n),n=void 0)},d[Q]=function(){void 0===n?n=i:n+=i},d[ee]=function(){d[Q](),h++},d[te]=function(){if(h>0)h--,u=se,d[Q]();else{if(h=0,void 0===n)return!1;if(n=me(n),!1===n)return!1;d[J]()}};while(null!==u)if(c++,t=e[c],"\\"!==t||!f()){if(r=ge(t),a=he[u],o=a[r]||a["else"]||ue,o===ue)return;if(u=o[0],s=d[o[1]],s&&(i=o[2],i=void 0===i?t:i,!1===s()))return;if(u===ce)return l}}var be=function(){this._cache=Object.create(null)};be.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=ve(e),t&&(this._cache[e]=t)),t||[]},be.prototype.getPathValue=function(e,t){if(!l(e))return null;var n=this.parsePath(t);if(0===n.length)return null;var i=n.length,r=e,o=0;while(o<i){var s=r[n[o]];if(void 0===s||null===s)return null;r=s,o++}return r};var ye,_e=/<\/?[\w\s="/.':;#-\/]+>/,we=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,Ce=/^@(?:\.([a-zA-Z]+))?:/,Se=/[()]/g,xe={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},Oe=new K,ke=function(e){var t=this;void 0===e&&(e={}),!j&&"undefined"!==typeof window&&window.Vue&&$(window.Vue);var n=e.locale||"en-US",i=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),r=e.messages||{},o=e.dateTimeFormats||e.datetimeFormats||{},s=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||Oe,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._fallbackRootWithEmptyString=void 0===e.fallbackRootWithEmptyString||!!e.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new be,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in e&&(this.__VUE_I18N_BRIDGE__=e.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(e,n){var i=Object.getPrototypeOf(t);if(i&&i.getChoiceIndex){var r=i.getChoiceIndex;return r.call(t,e,n)}var o=function(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0};return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,n]):o(e,n)},this._exist=function(e,n){return!(!e||!n)&&(!p(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])})),this._initVM({locale:n,fallbackLocale:i,messages:r,dateTimeFormats:o,numberFormats:s})},Le={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};ke.prototype._checkLocaleMessage=function(e,t,n){var i=[],r=function(e,t,n,i){if(f(n))Object.keys(n).forEach((function(o){var s=n[o];f(s)?(i.push(o),i.push("."),r(e,t,s,i),i.pop(),i.pop()):(i.push(o),r(e,t,s,i),i.pop())}));else if(a(n))n.forEach((function(n,o){f(n)?(i.push("["+o+"]"),i.push("."),r(e,t,n,i),i.pop(),i.pop()):(i.push("["+o+"]"),r(e,t,n,i),i.pop())}));else if(u(n)){var l=_e.test(n);if(l){var c="Detected HTML in message '"+n+"' of keypath '"+i.join("")+"' at '"+t+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?o(c):"error"===e&&s(c)}}};r(t,e,n,i)},ke.prototype._initVM=function(e){var t=j.config.silent;j.config.silent=!0,this._vm=new j({data:e,__VUE18N__INSTANCE__:!0}),j.config.silent=t},ke.prototype.destroyVM=function(){this._vm.$destroy()},ke.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)},ke.prototype.unsubscribeDataChanging=function(e){b(this._dataListeners,e)},ke.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",(function(){var t=y(e._dataListeners),n=t.length;while(n--)j.nextTick((function(){t[n]&&t[n].$forceUpdate()}))}),{deep:!0})},ke.prototype.watchLocale=function(e){if(e){if(!this.__VUE_I18N_BRIDGE__)return null;var t=this,n=this._vm;return this.vm.$watch("locale",(function(i){n.$set(n,"locale",i),t.__VUE_I18N_BRIDGE__&&e&&(e.locale.value=i),n.$forceUpdate()}),{immediate:!0})}if(!this._sync||!this._root)return null;var i=this._vm;return this._root.$i18n.vm.$watch("locale",(function(e){i.$set(i,"locale",e),i.$forceUpdate()}),{immediate:!0})},ke.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},Le.vm.get=function(){return this._vm},Le.messages.get=function(){return v(this._getMessages())},Le.dateTimeFormats.get=function(){return v(this._getDateTimeFormats())},Le.numberFormats.get=function(){return v(this._getNumberFormats())},Le.availableLocales.get=function(){return Object.keys(this.messages).sort()},Le.locale.get=function(){return this._vm.locale},Le.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},Le.fallbackLocale.get=function(){return this._vm.fallbackLocale},Le.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},Le.formatFallbackMessages.get=function(){return this._formatFallbackMessages},Le.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},Le.missing.get=function(){return this._missing},Le.missing.set=function(e){this._missing=e},Le.formatter.get=function(){return this._formatter},Le.formatter.set=function(e){this._formatter=e},Le.silentTranslationWarn.get=function(){return this._silentTranslationWarn},Le.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},Le.silentFallbackWarn.get=function(){return this._silentFallbackWarn},Le.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},Le.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},Le.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},Le.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},Le.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var i=this._getMessages();Object.keys(i).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,i[e])}))}},Le.postTranslation.get=function(){return this._postTranslation},Le.postTranslation.set=function(e){this._postTranslation=e},Le.sync.get=function(){return this._sync},Le.sync.set=function(e){this._sync=e},ke.prototype._getMessages=function(){return this._vm.messages},ke.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},ke.prototype._getNumberFormats=function(){return this._vm.numberFormats},ke.prototype._warnDefault=function(e,t,n,i,r,o){if(!p(n))return n;if(this._missing){var s=this._missing.apply(null,[e,t,i,r]);if(u(s))return s}else 0;if(this._formatFallbackMessages){var a=m.apply(void 0,r);return this._render(t,o,a.params,t)}return t},ke.prototype._isFallbackRoot=function(e){return(this._fallbackRootWithEmptyString?!e:p(e))&&!p(this._root)&&this._fallbackRoot},ke.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},ke.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},ke.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},ke.prototype._interpolate=function(e,t,n,i,r,o,s){if(!t)return null;var l,c=this._path.getPathValue(t,n);if(a(c)||f(c))return c;if(p(c)){if(!f(t))return null;if(l=t[n],!u(l)&&!g(l))return null}else{if(!u(c)&&!g(c))return null;l=c}return u(l)&&(l.indexOf("@:")>=0||l.indexOf("@.")>=0)&&(l=this._link(e,t,l,i,"raw",o,s)),this._render(l,r,o,n)},ke.prototype._link=function(e,t,n,i,r,o,s){var l=n,c=l.match(we);for(var u in c)if(c.hasOwnProperty(u)){var h=c[u],d=h.match(Ce),f=d[0],p=d[1],g=h.replace(f,"").replace(Se,"");if(_(s,g))return l;s.push(g);var m=this._interpolate(e,t,g,i,"raw"===r?"string":r,"raw"===r?void 0:o,s);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");var v=this._root.$i18n;m=v._translate(v._getMessages(),v.locale,v.fallbackLocale,g,i,r,o)}m=this._warnDefault(e,g,m,i,a(o)?o:[o],r),this._modifiers.hasOwnProperty(p)?m=this._modifiers[p](m):xe.hasOwnProperty(p)&&(m=xe[p](m)),s.pop(),l=m?l.replace(h,m):l}return l},ke.prototype._createMessageContext=function(e,t,n,i){var r=this,o=a(e)?e:[],s=l(e)?e:{},c=function(e){return o[e]},u=function(e){return s[e]},h=this._getMessages(),d=this.locale;return{list:c,named:u,values:e,formatter:t,path:n,messages:h,locale:d,linked:function(e){return r._interpolate(d,h[d]||{},e,null,i,void 0,[e])}}},ke.prototype._render=function(e,t,n,i){if(g(e))return e(this._createMessageContext(n,this._formatter||Oe,i,t));var r=this._formatter.interpolate(e,n,i);return r||(r=Oe.interpolate(e,n,i)),"string"!==t||u(r)?r:r.join("")},ke.prototype._appendItemToChain=function(e,t,n){var i=!1;return _(e,t)||(i=!0,t&&(i="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),n&&n[t]&&(i=n[t]))),i},ke.prototype._appendLocaleToChain=function(e,t,n){var i,r=t.split("-");do{var o=r.join("-");i=this._appendItemToChain(e,o,n),r.splice(-1,1)}while(r.length&&!0===i);return i},ke.prototype._appendBlockToChain=function(e,t,n){for(var i=!0,r=0;r<t.length&&c(i);r++){var o=t[r];u(o)&&(i=this._appendLocaleToChain(e,o,n))}return i},ke.prototype._getLocaleChain=function(e,t){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[e];if(!n){t||(t=this.fallbackLocale),n=[];var i,r=[e];while(a(r))r=this._appendBlockToChain(n,r,t);i=a(t)?t:l(t)?t["default"]?t["default"]:null:t,r=u(i)?[i]:i,r&&this._appendBlockToChain(n,r,null),this._localeChainCache[e]=n}return n},ke.prototype._translate=function(e,t,n,i,r,o,s){for(var a,l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(a=this._interpolate(u,e[u],i,r,o,s,[i]),!p(a))return a}return null},ke.prototype._t=function(e,t,n,i){var r,o=[],s=arguments.length-4;while(s-- >0)o[s]=arguments[s+4];if(!e)return"";var a=m.apply(void 0,o);this._escapeParameterHtml&&(a.params=k(a.params));var l=a.locale||t,c=this._translate(n,l,this.fallbackLocale,e,i,"string",a.params);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return(r=this._root).$t.apply(r,[e].concat(o))}return c=this._warnDefault(l,e,c,i,o,"string"),this._postTranslation&&null!==c&&void 0!==c&&(c=this._postTranslation(c,e)),c},ke.prototype.t=function(e){var t,n=[],i=arguments.length-1;while(i-- >0)n[i]=arguments[i+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},ke.prototype._i=function(e,t,n,i,r){var o=this._translate(n,t,this.fallbackLocale,e,i,"raw",r);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,r)}return this._warnDefault(t,e,o,i,[r],"raw")},ke.prototype.i=function(e,t,n){return e?(u(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},ke.prototype._tc=function(e,t,n,i,r){var o,s=[],a=arguments.length-5;while(a-- >0)s[a]=arguments[a+5];if(!e)return"";void 0===r&&(r=1);var l={count:r,n:r},c=m.apply(void 0,s);return c.params=Object.assign(l,c.params),s=null===c.locale?[c.params]:[c.locale,c.params],this.fetchChoice((o=this)._t.apply(o,[e,t,n,i].concat(s)),r)},ke.prototype.fetchChoice=function(e,t){if(!e||!u(e))return null;var n=e.split("|");return t=this.getChoiceIndex(t,n.length),n[t]?n[t].trim():e},ke.prototype.tc=function(e,t){var n,i=[],r=arguments.length-2;while(r-- >0)i[r]=arguments[r+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(i))},ke.prototype._te=function(e,t,n){var i=[],r=arguments.length-3;while(r-- >0)i[r]=arguments[r+3];var o=m.apply(void 0,i).locale||t;return this._exist(n[o],e)},ke.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},ke.prototype.getLocaleMessage=function(e){return v(this._vm.messages[e]||{})},ke.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},ke.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,S("undefined"!==typeof this._vm.messages[e]&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},t))},ke.prototype.getDateTimeFormat=function(e){return v(this._vm.dateTimeFormats[e]||{})},ke.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},ke.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,S(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},ke.prototype._clearDateTimeFormat=function(e,t){for(var n in t){var i=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(i)&&delete this._dateTimeFormatters[i]}},ke.prototype._localizeDateTime=function(e,t,n,i,r,o){for(var s=t,a=i[s],l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(a=i[u],s=u,!p(a)&&!p(a[r]))break}if(p(a)||p(a[r]))return null;var h,d=a[r];if(o)h=new Intl.DateTimeFormat(s,Object.assign({},d,o));else{var f=s+"__"+r;h=this._dateTimeFormatters[f],h||(h=this._dateTimeFormatters[f]=new Intl.DateTimeFormat(s,d))}return h.format(e)},ke.prototype._d=function(e,t,n,i){if(!n){var r=i?new Intl.DateTimeFormat(t,i):new Intl.DateTimeFormat(t);return r.format(e)}var o=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n,i);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return o||""},ke.prototype.d=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var i=this.locale,o=null,s=null;return 1===t.length?(u(t[0])?o=t[0]:l(t[0])&&(t[0].locale&&(i=t[0].locale),t[0].key&&(o=t[0].key)),s=Object.keys(t[0]).reduce((function(e,n){var i;return _(r,n)?Object.assign({},e,(i={},i[n]=t[0][n],i)):e}),null)):2===t.length&&(u(t[0])&&(o=t[0]),u(t[1])&&(i=t[1])),this._d(e,i,o,s)},ke.prototype.getNumberFormat=function(e){return v(this._vm.numberFormats[e]||{})},ke.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},ke.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,S(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},ke.prototype._clearNumberFormat=function(e,t){for(var n in t){var i=e+"__"+n;this._numberFormatters.hasOwnProperty(i)&&delete this._numberFormatters[i]}},ke.prototype._getNumberFormatter=function(e,t,n,i,r,o){for(var s=t,a=i[s],l=this._getLocaleChain(t,n),c=0;c<l.length;c++){var u=l[c];if(a=i[u],s=u,!p(a)&&!p(a[r]))break}if(p(a)||p(a[r]))return null;var h,d=a[r];if(o)h=new Intl.NumberFormat(s,Object.assign({},d,o));else{var f=s+"__"+r;h=this._numberFormatters[f],h||(h=this._numberFormatters[f]=new Intl.NumberFormat(s,d))}return h},ke.prototype._n=function(e,t,n,i){if(!ke.availabilities.numberFormat)return"";if(!n){var r=i?new Intl.NumberFormat(t,i):new Intl.NumberFormat(t);return r.format(e)}var o=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,i),s=o&&o.format(e);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:n,locale:t},i))}return s||""},ke.prototype.n=function(e){var t=[],n=arguments.length-1;while(n-- >0)t[n]=arguments[n+1];var r=this.locale,o=null,s=null;return 1===t.length?u(t[0])?o=t[0]:l(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(o=t[0].key),s=Object.keys(t[0]).reduce((function(e,n){var r;return _(i,n)?Object.assign({},e,(r={},r[n]=t[0][n],r)):e}),null)):2===t.length&&(u(t[0])&&(o=t[0]),u(t[1])&&(r=t[1])),this._n(e,r,o,s)},ke.prototype._ntp=function(e,t,n,i){if(!ke.availabilities.numberFormat)return[];if(!n){var r=i?new Intl.NumberFormat(t,i):new Intl.NumberFormat(t);return r.formatToParts(e)}var o=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,i),s=o&&o.formatToParts(e);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,i)}return s||[]},Object.defineProperties(ke.prototype,Le),Object.defineProperty(ke,"availabilities",{get:function(){if(!ye){var e="undefined"!==typeof Intl;ye={dateTimeFormat:e&&"undefined"!==typeof Intl.DateTimeFormat,numberFormat:e&&"undefined"!==typeof Intl.NumberFormat}}return ye}}),ke.install=$,ke.version="8.28.2",t["a"]=ke},a9e3:function(e,t,n){"use strict";var i=n("83ab"),r=n("da84"),o=n("e330"),s=n("94ca"),a=n("cb2d"),l=n("1a2d"),c=n("7156"),u=n("3a9b"),h=n("d9b5"),d=n("c04e"),f=n("d039"),p=n("241c").f,g=n("06cf").f,m=n("9bf2").f,v=n("408a"),b=n("58a8").trim,y="Number",_=r[y],w=_.prototype,C=r.TypeError,S=o("".slice),x=o("".charCodeAt),O=function(e){var t=d(e,"number");return"bigint"==typeof t?t:k(t)},k=function(e){var t,n,i,r,o,s,a,l,c=d(e,"number");if(h(c))throw C("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=b(c),t=x(c,0),43===t||45===t){if(n=x(c,2),88===n||120===n)return NaN}else if(48===t){switch(x(c,1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+c}for(o=S(c,2),s=o.length,a=0;a<s;a++)if(l=x(o,a),l<48||l>r)return NaN;return parseInt(o,i)}return+c};if(s(y,!_(" 0o1")||!_("0b1")||_("+0x1"))){for(var L,E=function(e){var t=arguments.length<1?0:_(O(e)),n=this;return u(w,n)&&f((function(){v(n)}))?c(Object(t),n,E):t},D=i?p(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),I=0;D.length>I;I++)l(_,L=D[I])&&!l(E,L)&&m(E,L,g(_,L));E.prototype=w,w.constructor=E,a(r,y,E,{constructor:!0})}},aa22:function(e,t,n){"use strict";var i=n("8707").Buffer,r=i.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function s(e){var t=o(e);if("string"!==typeof t&&(i.isEncoding===r||!r(e)))throw new Error("Unknown encoding: "+e);return t||e}function a(e){var t;switch(this.encoding=s(e),this.encoding){case"utf16le":this.text=p,this.end=g,t=4;break;case"utf8":this.fillLast=h,t=4;break;case"base64":this.text=m,this.end=v,t=3;break;default:return this.write=b,void(this.end=y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function l(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function c(e,t,n){var i=t.length-1;if(i<n)return 0;var r=l(t[i]);return r>=0?(r>0&&(e.lastNeed=r-1),r):--i<n||-2===r?0:(r=l(t[i]),r>=0?(r>0&&(e.lastNeed=r-2),r):--i<n||-2===r?0:(r=l(t[i]),r>=0?(r>0&&(2===r?r=0:e.lastNeed=r-3),r):0))}function u(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"<22>";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"<22>"}}function h(e){var t=this.lastTotal-this.lastNeed,n=u(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function d(e,t){var n=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t}function p(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function g(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function m(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}t.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},a.prototype.end=f,a.prototype.text=d,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},aa3d:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"f",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return h}));var i=n("ef8e");function r(e){if(!e||"object"!==typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{e[n]&&"object"===typeof e[n]?t[n]=r(e[n]):t[n]=e[n]}),t}function o(e){if(!e||"object"!==typeof e)return e;const t=[e];while(t.length>0){const e=t.shift();Object.freeze(e);for(const n in e)if(s.call(e,n)){const i=e[n];"object"!==typeof i||Object.isFrozen(i)||t.push(i)}}return e}const s=Object.prototype.hasOwnProperty;function a(e,t){return l(e,t,new Set)}function l(e,t,n){if(Object(i["m"])(e))return e;const r=t(e);if("undefined"!==typeof r)return r;if(Object(i["f"])(e)){const i=[];for(const r of e)i.push(l(r,t,n));return i}if(Object(i["j"])(e)){if(n.has(e))throw new Error("Cannot clone recursive data-structure");n.add(e);const i={};for(let r in e)s.call(e,r)&&(i[r]=l(e[r],t,n));return n.delete(e),i}return e}function c(e,t,n=!0){return Object(i["j"])(e)?(Object(i["j"])(t)&&Object.keys(t).forEach(r=>{r in e?n&&(Object(i["j"])(e[r])&&Object(i["j"])(t[r])?c(e[r],t[r],n):e[r]=t[r]):e[r]=t[r]}),e):t}function u(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!==typeof t)return!1;if("object"!==typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;let n,i;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{const r=[];for(i in e)r.push(i);r.sort();const o=[];for(i in t)o.push(i);if(o.sort(),!u(r,o))return!1;for(n=0;n<r.length;n++)if(!u(e[r[n]],t[r[n]]))return!1}return!0}function h(e,t,n){const i=t(e);return"undefined"===typeof i?n:i}},aa74:function(e,t,n){"use strict";n.d(t,"cb",(function(){return c["B"]})),n.d(t,"l",(function(){return c["d"]})),n.d(t,"g",(function(){return c["a"]})),n.d(t,"B",(function(){return c["l"]})),n.d(t,"j",(function(){return c["b"]})),n.d(t,"n",(function(){return c["f"]})),n.d(t,"m",(function(){return c["e"]})),n.d(t,"o",(function(){return c["g"]})),n.d(t,"w",(function(){return c["i"]})),n.d(t,"x",(function(){return c["j"]})),n.d(t,"R",(function(){return c["w"]})),n.d(t,"P",(function(){return c["u"]})),n.d(t,"Q",(function(){return c["v"]})),n.d(t,"N",(function(){return c["s"]})),n.d(t,"O",(function(){return c["t"]})),n.d(t,"T",(function(){return c["y"]})),n.d(t,"H",(function(){return c["m"]})),n.d(t,"I",(function(){return c["n"]})),n.d(t,"v",(function(){return c["h"]})),n.d(t,"L",(function(){return c["q"]})),n.d(t,"J",(function(){return c["o"]})),n.d(t,"U",(function(){return c["z"]})),n.d(t,"K",(function(){return c["p"]})),n.d(t,"V",(function(){return c["A"]})),n.d(t,"M",(function(){return c["r"]})),n.d(t,"y",(function(){return c["k"]})),n.d(t,"S",(function(){return c["x"]})),n.d(t,"k",(function(){return c["c"]})),n.d(t,"eb",(function(){return g})),n.d(t,"D",(function(){return m})),n.d(t,"bb",(function(){return v})),n.d(t,"db",(function(){return b})),n.d(t,"i",(function(){return y})),n.d(t,"X",(function(){return _["c"]})),n.d(t,"A",(function(){return i})),n.d(t,"Z",(function(){return R["a"]})),n.d(t,"W",(function(){return F["e"]})),n.d(t,"F",(function(){return B["a"]})),n.d(t,"G",(function(){return B["a"]})),n.d(t,"E",(function(){return r})),n.d(t,"Y",(function(){return o})),n.d(t,"z",(function(){return s})),n.d(t,"u",(function(){return a})),n.d(t,"ab",(function(){return l})),n.d(t,"p",(function(){return de["a"]})),n.d(t,"e",(function(){return p["a"]})),n.d(t,"f",(function(){return x["a"]})),n.d(t,"a",(function(){return fe["a"]})),n.d(t,"c",(function(){return u["a"]})),n.d(t,"d",(function(){return h["a"]})),n.d(t,"h",(function(){return d["b"]})),n.d(t,"b",(function(){return f["a"]})),n.d(t,"C",(function(){return pe["b"]})),n.d(t,"r",(function(){return ge})),n.d(t,"s",(function(){return me})),n.d(t,"t",(function(){return ve})),n.d(t,"q",(function(){return be}));var i={};n.r(i),n.d(i,"createList",(function(){return T})),n.d(i,"getLayoutRect",(function(){return O["g"]})),n.d(i,"createDimensions",(function(){return D["a"]})),n.d(i,"dataStack",(function(){return A})),n.d(i,"createSymbol",(function(){return I["a"]})),n.d(i,"createScale",(function(){return N})),n.d(i,"mixinAxisModelCommonMethods",(function(){return P})),n.d(i,"getECData",(function(){return L["a"]})),n.d(i,"enableHoverEmphasis",(function(){return M["o"]})),n.d(i,"createTextStyle",(function(){return j}));var r={};n.r(r),n.d(r,"linearMap",(function(){return W["m"]})),n.d(r,"round",(function(){return W["w"]})),n.d(r,"asc",(function(){return W["c"]})),n.d(r,"getPrecision",(function(){return W["h"]})),n.d(r,"getPrecisionSafe",(function(){return W["i"]})),n.d(r,"getPixelPrecision",(function(){return W["g"]})),n.d(r,"getPercentWithPrecision",(function(){return W["f"]})),n.d(r,"MAX_SAFE_INTEGER",(function(){return W["a"]})),n.d(r,"remRadian",(function(){return W["v"]})),n.d(r,"isRadianAroundZero",(function(){return W["l"]})),n.d(r,"parseDate",(function(){return W["p"]})),n.d(r,"quantity",(function(){return W["s"]})),n.d(r,"quantityExponent",(function(){return W["t"]})),n.d(r,"nice",(function(){return W["n"]})),n.d(r,"quantile",(function(){return W["r"]})),n.d(r,"reformIntervals",(function(){return W["u"]})),n.d(r,"isNumeric",(function(){return W["k"]})),n.d(r,"numericToNumber",(function(){return W["o"]}));var o={};n.r(o),n.d(o,"parse",(function(){return W["p"]})),n.d(o,"format",(function(){return V["h"]}));var s={};n.r(s),n.d(s,"extendShape",(function(){return z["extendShape"]})),n.d(s,"extendPath",(function(){return z["extendPath"]})),n.d(s,"makePath",(function(){return z["makePath"]})),n.d(s,"makeImage",(function(){return z["makeImage"]})),n.d(s,"mergePath",(function(){return z["mergePath"]})),n.d(s,"resizePath",(function(){return z["resizePath"]})),n.d(s,"createIcon",(function(){return z["createIcon"]})),n.d(s,"updateProps",(function(){return H["h"]})),n.d(s,"initProps",(function(){return H["c"]})),n.d(s,"getTransform",(function(){return z["getTransform"]})),n.d(s,"clipPointsByRect",(function(){return z["clipPointsByRect"]})),n.d(s,"clipRectByRect",(function(){return z["clipRectByRect"]})),n.d(s,"registerShape",(function(){return z["registerShape"]})),n.d(s,"getShapeClass",(function(){return z["getShapeClass"]})),n.d(s,"Group",(function(){return U["a"]})),n.d(s,"Image",(function(){return q["a"]})),n.d(s,"Text",(function(){return $["a"]})),n.d(s,"Circle",(function(){return K["a"]})),n.d(s,"Ellipse",(function(){return G["a"]})),n.d(s,"Sector",(function(){return Y["a"]})),n.d(s,"Ring",(function(){return Z["a"]})),n.d(s,"Polygon",(function(){return X["a"]})),n.d(s,"Polyline",(function(){return Q["a"]})),n.d(s,"Rect",(function(){return J["a"]})),n.d(s,"Line",(function(){return ee["a"]})),n.d(s,"BezierCurve",(function(){return te["a"]})),n.d(s,"Arc",(function(){return ne["a"]})),n.d(s,"IncrementalDisplayable",(function(){return ie["a"]})),n.d(s,"CompoundPath",(function(){return re["a"]})),n.d(s,"LinearGradient",(function(){return oe["a"]})),n.d(s,"RadialGradient",(function(){return se["a"]})),n.d(s,"BoundingRect",(function(){return ae["a"]}));var a={};n.r(a),n.d(a,"addCommas",(function(){return le["a"]})),n.d(a,"toCamelCase",(function(){return le["j"]})),n.d(a,"normalizeCssArray",(function(){return le["i"]})),n.d(a,"encodeHTML",(function(){return ce["a"]})),n.d(a,"formatTpl",(function(){return le["e"]})),n.d(a,"getTooltipMarker",(function(){return le["g"]})),n.d(a,"formatTime",(function(){return le["d"]})),n.d(a,"capitalFirst",(function(){return le["b"]})),n.d(a,"truncateText",(function(){return ue["c"]})),n.d(a,"getTextRect",(function(){return he["a"]}));var l={};n.r(l),n.d(l,"map",(function(){return b["map"]})),n.d(l,"each",(function(){return b["each"]})),n.d(l,"indexOf",(function(){return b["indexOf"]})),n.d(l,"inherits",(function(){return b["inherits"]})),n.d(l,"reduce",(function(){return b["reduce"]})),n.d(l,"filter",(function(){return b["filter"]})),n.d(l,"bind",(function(){return b["bind"]})),n.d(l,"curry",(function(){return b["curry"]})),n.d(l,"isArray",(function(){return b["isArray"]})),n.d(l,"isString",(function(){return b["isString"]})),n.d(l,"isObject",(function(){return b["isObject"]})),n.d(l,"isFunction",(function(){return b["isFunction"]})),n.d(l,"extend",(function(){return b["extend"]})),n.d(l,"defaults",(function(){return b["defaults"]})),n.d(l,"clone",(function(){return b["clone"]})),n.d(l,"merge",(function(){return b["merge"]}));var c=n("1be7"),u=n("6cb7"),h=n("b12f"),d=n("4f85"),f=n("e887"),p=n("b682"),g=n("697e7"),m=n("1687"),v=n("401b"),b=n("6d8b"),y=n("41ef"),_=n("88b3"),w=n("1830"),C=n("697e"),S=n("2023"),x=n("4319"),O=n("f934"),k=n("ee1a"),L=n("861c"),E=n("7837"),D=n("b1d4"),I=n("a15a"),M=n("7d6c");function T(e){return Object(w["a"])(null,e)}var A={isDimensionStacked:k["c"],enableDataStack:k["a"],getStackedDimension:k["b"]};function N(e,t){var n=t;t instanceof x["a"]||(n=new x["a"](t));var i=C["a"](n);return i.setExtent(e[0],e[1]),C["i"](i,n),i}function P(e){b["mixin"](e,S["a"])}function j(e,t){return t=t||{},Object(E["c"])(e,null,null,"normal"!==t.state)}var R=n("22b4"),F=n("726e"),B=n("bda7"),W=n("3842"),V=n("f876"),z=n("2306"),H=n("deca"),U=n("2dc5"),q=n("0da8"),$=n("76a5"),K=n("d9fc"),G=n("ae69"),Y=n("4aa2"),Z=n("4573"),X=n("87b1"),Q=n("d498"),J=n("c7a2"),ee=n("cb11"),te=n("ac0f"),ne=n("8d32"),ie=n("392f"),re=n("d4c6"),oe=n("48a9"),se=n("dded"),ae=n("9850"),le=n("eda2"),ce=n("65ed"),ue=n("d409"),he=n("998a"),de=n("22d1"),fe=n("84ce"),pe=n("5210");function ge(e){var t=u["a"].extend(e);return u["a"].registerClass(t),t}function me(e){var t=h["a"].extend(e);return h["a"].registerClass(t),t}function ve(e){var t=d["b"].extend(e);return d["b"].registerClass(t),t}function be(e){var t=f["a"].extend(e);return f["a"].registerClass(t),t}var ye=n("ee29");Object(R["a"])(ye["a"])},aa80:function(e,t,n){},ab13:function(e,t,n){var i=n("b622"),r=i("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(i){}}return!1}},ab36:function(e,t,n){var i=n("861d"),r=n("9112");e.exports=function(e,t){i(t)&&"cause"in t&&r(e,"cause",t.cause)}},ab52:function(e,t,n){(function(t){var i=n("566b"),r=function(){},o=function(e){return e.setHeader&&"function"===typeof e.abort},s=function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length},a=function(e,n,l){if("function"===typeof n)return a(e,null,n);n||(n={}),l=i(l||r);var c=e._writableState,u=e._readableState,h=n.readable||!1!==n.readable&&e.readable,d=n.writable||!1!==n.writable&&e.writable,f=!1,p=function(){e.writable||g()},g=function(){d=!1,h||l.call(e)},m=function(){h=!1,d||l.call(e)},v=function(t){l.call(e,t?new Error("exited with error code: "+t):null)},b=function(t){l.call(e,t)},y=function(){t.nextTick(_)},_=function(){if(!f)return(!h||u&&u.ended&&!u.destroyed)&&(!d||c&&c.ended&&!c.destroyed)?void 0:l.call(e,new Error("premature close"))},w=function(){e.req.on("finish",g)};return o(e)?(e.on("complete",g),e.on("abort",y),e.req?w():e.on("request",w)):d&&!c&&(e.on("end",p),e.on("close",p)),s(e)&&e.on("exit",v),e.on("end",m),e.on("finish",g),!1!==n.error&&e.on("error",b),e.on("close",y),function(){f=!0,e.removeListener("complete",g),e.removeListener("abort",y),e.removeListener("request",w),e.req&&e.req.removeListener("finish",g),e.removeListener("end",p),e.removeListener("close",p),e.removeListener("finish",g),e.removeListener("exit",v),e.removeListener("end",m),e.removeListener("error",b),e.removeListener("close",y)}};e.exports=a}).call(this,n("4362"))},abca:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:function(){return n.e("chunk-2d221799").then(n.bind(null,"cb04"))}})},abf2:function(e,t,n){},ac0f:function(e,t,n){"use strict";var i=n("9ab4"),r=n("cbe5"),o=n("401b"),s=n("4a3f"),a=[],l=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function c(e,t,n){var i=e.cpx2,r=e.cpy2;return null!=i||null!=r?[(n?s["b"]:s["a"])(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?s["b"]:s["a"])(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?s["i"]:s["h"])(e.x1,e.cpx1,e.x2,t),(n?s["i"]:s["h"])(e.y1,e.cpy1,e.y2,t)]}var u=function(e){function t(t){return e.call(this,t)||this}return Object(i["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new l},t.prototype.buildPath=function(e,t){var n=t.x1,i=t.y1,r=t.x2,o=t.y2,l=t.cpx1,c=t.cpy1,u=t.cpx2,h=t.cpy2,d=t.percent;0!==d&&(e.moveTo(n,i),null==u||null==h?(d<1&&(Object(s["n"])(n,l,r,d,a),l=a[1],r=a[2],Object(s["n"])(i,c,o,d,a),c=a[1],o=a[2]),e.quadraticCurveTo(l,c,r,o)):(d<1&&(Object(s["g"])(n,l,u,r,d,a),l=a[1],u=a[2],r=a[3],Object(s["g"])(i,c,h,o,d,a),c=a[1],h=a[2],o=a[3]),e.bezierCurveTo(l,c,u,h,r,o)))},t.prototype.pointAt=function(e){return c(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=c(this.shape,e,!0);return o["normalize"](t,t)},t}(r["b"]);u.prototype.type="bezier-curve",t["a"]=u},ac1f:function(e,t,n){"use strict";var i=n("23e7"),r=n("9263");i({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},ad6d:function(e,t,n){"use strict";var i=n("825a");e.exports=function(){var e=i(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},addb:function(e,t,n){var i=n("4dae"),r=Math.floor,o=function(e,t){var n=e.length,l=r(n/2);return n<8?s(e,t):a(e,o(i(e,0,l),t),o(i(e,l),t),t)},s=function(e,t){var n,i,r=e.length,o=1;while(o<r){i=o,n=e[o];while(i&&t(e[i-1],n)>0)e[i]=e[--i];i!==o++&&(e[i]=n)}return e},a=function(e,t,n,i){var r=t.length,o=n.length,s=0,a=0;while(s<r||a<o)e[s+a]=s<r&&a<o?i(t[s],n[a])<=0?t[s++]:n[a++]:s<r?t[s++]:n[a++];return e};e.exports=o},ade3:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("a38e");function r(e,t,n){return(t=Object(i["a"])(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},ae10:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=i(n("278c")),o=i(n("448a"));function s(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.25,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.25;if(!(e instanceof Array))return console.error("polylineToBezierCurve: Parameter polyline must be an array!"),!1;if(e.length<=2)return console.error("polylineToBezierCurve: Converting to a curve requires at least 3 points!"),!1;var r=e[0],s=e.length-1,c=new Array(s).fill(0).map((function(r,s){return[].concat((0,o["default"])(a(e,s,t,n,i)),[e[s+1]])}));return t&&l(c,r),c.unshift(e[0]),c}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.25,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.25,o=e.length;if(!(o<3||t>=o)){var s=t-1;s<0&&(s=n?o+s:0);var a=t+1;a>=o&&(a=n?a-o:o-1);var l=t+2;l>=o&&(l=n?l-o:o-1);var c=e[s],u=e[t],h=e[a],d=e[l];return[[u[0]+i*(h[0]-c[0]),u[1]+i*(h[1]-c[1])],[h[0]-r*(d[0]-u[0]),h[1]-r*(d[1]-u[1])]]}}function l(e,t){var n=e[0],i=e.slice(-1)[0];return e.push([c(i[1],i[2]),c(n[0],t),t]),e}function c(e,t){var n=(0,r["default"])(e,2),i=n[0],o=n[1],s=(0,r["default"])(t,2),a=s[0],l=s[1],c=a-i,u=l-o;return[a+c,l+u]}var u=s;t["default"]=u},ae69:function(e,t,n){"use strict";var i=n("9ab4"),r=n("cbe5"),o=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),s=function(e){function t(t){return e.call(this,t)||this}return Object(i["a"])(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){var n=.5522848,i=t.cx,r=t.cy,o=t.rx,s=t.ry,a=o*n,l=s*n;e.moveTo(i-o,r),e.bezierCurveTo(i-o,r-l,i-a,r-s,i,r-s),e.bezierCurveTo(i+a,r-s,i+o,r-l,i+o,r),e.bezierCurveTo(i+o,r+l,i+a,r+s,i,r+s),e.bezierCurveTo(i-a,r+s,i-o,r+l,i-o,r),e.closePath()},t}(r["b"]);s.prototype.type="ellipse",t["a"]=s},ae84:function(e,t,n){"use strict";function i(e){const t=e.split("/");for(let n=0;n<t.length;n++)if("+"!==t[n]){if("#"===t[n])return n===t.length-1;if(-1!==t[n].indexOf("+")||-1!==t[n].indexOf("#"))return!1}return!0}function r(e){if(0===e.length)return"empty_topic_list";for(let t=0;t<e.length;t++)if(!i(e[t]))return e[t];return null}e.exports={validateTopics:r}},ae93:function(e,t,n){"use strict";var i,r,o,s=n("d039"),a=n("1626"),l=n("861d"),c=n("7c73"),u=n("e163"),h=n("cb2d"),d=n("b622"),f=n("c430"),p=d("iterator"),g=!1;[].keys&&(o=[].keys(),"next"in o?(r=u(u(o)),r!==Object.prototype&&(i=r)):g=!0);var m=!l(i)||s((function(){var e={};return i[p].call(e)!==e}));m?i={}:f&&(i=c(i)),a(i[p])||h(i,p,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},aeb0:function(e,t,n){var i=n("9bf2").f;e.exports=function(e,t,n){n in e||i(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},aebc:function(e,t,n){"use strict";e.exports=r;var i=n("7b6a");function r(e){if(!(this instanceof r))return new r(e);i.call(this,e)}n("3fb5")(r,i),r.prototype._transform=function(e,t,n){n(null,e)}},aed9:function(e,t,n){var i=n("83ab"),r=n("d039");e.exports=i&&r((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},aee8:function(e,t,n){"use strict";n.r(t),n.d(t,"ModesHoverController",(function(){return He}));var i=n("dff7"),r=n("fe45"),o=n("a666"),s=n("b2cc"),a=n("6a89"),l=n("c101"),c=n("5818"),u=n("11f7"),h=n("7061"),d=n("b57f"),f=n("b707"),p=n("5fe7"),g=n("fdcc");class m{constructor(e,t,n,i,r){this._computer=e,this._state=0,this._hoverTime=r,this._firstWaitScheduler=new p["e"](()=>this._triggerAsyncComputation(),0),this._secondWaitScheduler=new p["e"](()=>this._triggerSyncComputation(),0),this._loadingMessageScheduler=new p["e"](()=>this._showLoadingMessage(),0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=t,this._errorCallback=n,this._progressCallback=i}setHoverTime(e){this._hoverTime=e}_firstWaitTime(){return this._hoverTime/2}_secondWaitTime(){return this._hoverTime/2}_loadingMessageTime(){return 3*this._hoverTime}_triggerAsyncComputation(){this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(p["h"])(e=>this._computer.computeAsync(e)),this._asyncComputationPromise.then(e=>{this._asyncComputationPromiseDone=!0,this._withAsyncResult(e)},e=>this._onError(e))):this._asyncComputationPromiseDone=!0}_triggerSyncComputation(){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()))}_showLoadingMessage(){3===this._state&&this._onProgress(this._computer.getResultWithLoadingMessage())}_withAsyncResult(e){e&&this._computer.onResult(e,!1),3===this._state&&(this._state=0,this._onComplete(this._computer.getResult()))}_onComplete(e){this._completeCallback(e)}_onError(e){this._errorCallback?this._errorCallback(e):Object(g["e"])(e)}_onProgress(e){this._progressCallback(e)}start(e){if(0===e)0===this._state&&(this._state=1,this._firstWaitScheduler.schedule(this._firstWaitTime()),this._loadingMessageScheduler.schedule(this._loadingMessageTime()));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){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}}var v=n("e8e3"),b=n("1b7d"),y=(n("bc02"),n("1898"));const _=u["a"];class w extends o["a"]{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this._scrollbar=this._register(new y["a"](this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this._scrollbar.getDomNode())}onContentsChanged(){this._scrollbar.scanDomNode()}}class C extends o["a"]{constructor(e,t,n){super(),this.actionContainer=u["q"](e,_("div.action-container")),this.action=u["q"](this.actionContainer,_("a.action")),this.action.setAttribute("href","#"),this.action.setAttribute("role","button"),t.iconClass&&u["q"](this.action,_("span.icon."+t.iconClass));const i=u["q"](this.action,_("span"));i.textContent=n?`${t.label} (${n})`:t.label,this._register(u["i"](this.actionContainer,u["d"].CLICK,e=>{e.stopPropagation(),e.preventDefault(),t.run(this.actionContainer)})),this.setEnabled(!0)}static render(e,t,n){return new C(e,t,n)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}var S=n("b400"),x=n("82c9"),O=n("efdb"),k=n("5bd7"),L=n("958f"),E=n("8495"),D=n("0b54"),I=n("9e56"),M=n("b539"),T=n("b7d0"),A=n("303e"),N=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},P=function(e,t){return function(n,i){t(n,i,e)}};const j=u["a"];class R{constructor(e,t,n){this.owner=e,this.range=t,this.marker=n}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}const F={type:1,filter:{include:I["b"].QuickFix}};let B=class{constructor(e,t,n,i){this._editor=e,this._hover=t,this._markerDecorationsService=n,this._openerService=i,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const n=this._editor.getModel(),i=e.range.startLineNumber,r=n.getLineMaxColumn(i),o=[];for(const s of t){const t=s.range.startLineNumber===i?s.range.startColumn:1,l=s.range.endLineNumber===i?s.range.endColumn:r,c=this._markerDecorationsService.getMarker(n.uri,s);if(!c)continue;const u=new a["a"](e.range.startLineNumber,t,e.range.startLineNumber,l);o.push(new R(this,u,c))}return o}renderHoverParts(e,t,n){if(!e.length)return o["a"].None;const i=new o["b"];e.forEach(e=>t.appendChild(this.renderMarkerHover(e,i)));const r=1===e.length?e[0]:e.sort((e,t)=>S["c"].compare(e.marker.severity,t.marker.severity))[0];return this.renderMarkerStatusbar(r,n,i),i}renderMarkerHover(e,t){const n=j("div.hover-row"),i=u["q"](n,j("div.marker.hover-contents")),{source:r,message:o,code:s,relatedInformation:a}=e.marker;this._editor.applyFontInfo(i);const l=u["q"](i,j("span"));if(l.style.whiteSpace="pre-wrap",l.innerText=o,r||s)if(s&&"string"!==typeof s){const e=j("span");if(r){const t=u["q"](e,j("span"));t.innerText=r}const n=u["q"](e,j("a.code-link"));n.setAttribute("href",s.target.toString()),t.add(u["i"](n,"click",e=>{this._openerService.open(s.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()}));const o=u["q"](n,j("span"));o.innerText=s.value;const a=u["q"](i,e);a.style.opacity="0.6",a.style.paddingLeft="6px"}else{const e=u["q"](i,j("span"));e.style.opacity="0.6",e.style.paddingLeft="6px",e.innerText=r&&s?`${r}(${s})`:r||`(${s})`}if(Object(v["n"])(a))for(const{message:c,resource:h,startLineNumber:d,startColumn:f}of a){const e=u["q"](i,j("div"));e.style.marginTop="8px";const n=u["q"](e,j("a"));n.innerText=`${Object(x["b"])(h)}(${d}, ${f}): `,n.style.cursor="pointer",t.add(u["i"](n,"click",e=>{e.stopPropagation(),e.preventDefault(),this._openerService&&this._openerService.open(h,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:d,startColumn:f}}}).catch(g["e"])}));const r=u["q"](e,j("span"));r.innerText=c,this._editor.applyFontInfo(r)}return n}renderMarkerStatusbar(e,t,n){if(e.marker.severity!==S["c"].Error&&e.marker.severity!==S["c"].Warning&&e.marker.severity!==S["c"].Info||t.addAction({label:i["a"]("view problem","View Problem"),commandId:L["NextMarkerAction"].ID,run:()=>{this._hover.hide(),L["MarkerController"].get(this._editor).showAtMarker(e.marker),this._editor.focus()}}),!this._editor.getOption(79)){const r=t.append(j("div"));this.recentMarkerCodeActionsInfo&&(S["a"].makeKey(this.recentMarkerCodeActionsInfo.marker)===S["a"].makeKey(e.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(r.textContent=i["a"]("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const s=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?o["a"].None:n.add(Object(p["i"])(()=>r.textContent=i["a"]("checkingForQuickFixes","Checking for quick fixes..."),200));r.textContent||(r.textContent=String.fromCharCode(160));const a=this.getCodeActions(e.marker);n.add(Object(o["i"])(()=>a.cancel())),a.then(a=>{if(s.dispose(),this.recentMarkerCodeActionsInfo={marker:e.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions)return a.dispose(),void(r.textContent=i["a"]("noQuickFixes","No quick fixes available"));r.style.display="none";let l=!1;n.add(Object(o["i"])(()=>{l||a.dispose()})),t.addAction({label:i["a"]("quick fixes","Quick Fix..."),commandId:D["e"].Id,run:e=>{l=!0;const t=D["f"].get(this._editor),n=u["D"](e);this._hover.hide(),t.showCodeActions(F,a,{x:n.left+6,y:n.top+n.height+6})}})})}}getCodeActions(e){return Object(p["h"])(t=>Object(E["d"])(this._editor.getModel(),new a["a"](e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),F,M["b"].None,t))}};B=N([P(2,O["a"]),P(3,k["a"])],B),Object(T["f"])((e,t)=>{const n=e.getColor(A["Jc"]);n&&t.addRule(`.monaco-hover .hover-contents a.code-link span { color: ${n}; }`);const i=e.getColor(A["Ic"]);i&&t.addRule(`.monaco-hover .hover-contents a.code-link span:hover { color: ${i}; }`)});var W=n("0a0f"),V=n("78bc"),z=n("bfa1"),H=n("2504");function U(e,t,n){const i=f["p"].ordered(e),r=i.map(i=>Promise.resolve(i.provideHover(e,t,n)).then(e=>e&&q(e)?e:void 0,e=>{Object(g["f"])(e)}));return Promise.all(r).then(v["e"])}function q(e){const t="undefined"!==typeof e.range,n="undefined"!==typeof e.contents&&e.contents&&e.contents.length>0;return t&&n}Object(s["n"])("_executeHoverProvider",(e,t)=>U(e,t,H["a"].None));var $=n("fbba"),K=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},G=function(e,t){return function(n,i){t(n,i,e)}},Y=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const Z=u["a"];class X{constructor(e,t,n){this.owner=e,this.range=t,this.contents=n}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let Q=class{constructor(e,t,n,i,r){this._editor=e,this._hover=t,this._modeService=n,this._openerService=i,this._configurationService=r}createLoadingMessage(e){return new X(this,e.range,[(new V["a"]).appendText(i["a"]("modesContentHover.loading","Loading..."))])}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];const n=this._editor.getModel(),r=e.range.startLineNumber,o=n.getLineMaxColumn(r),s=[];for(const i of t){const t=i.range.startLineNumber===r?i.range.startColumn:1,n=i.range.endLineNumber===r?i.range.endColumn:o,l=i.options.hoverMessage;if(!l||Object(V["b"])(l))continue;const c=new a["a"](e.range.startLineNumber,t,e.range.startLineNumber,n);s.push(new X(this,c,Object(v["c"])(l)))}const l=this._editor.getModel().getLineLength(r),c=this._configurationService.getValue("editor.maxTokenizationLineLength");return"number"===typeof c&&l>=c&&s.push(new X(this,new a["a"](r,1,r,l+1),[{value:i["a"]("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}])),s}computeAsync(e,t,n){return Y(this,void 0,void 0,(function*(){if(!this._editor.hasModel()||1!==e.type)return Promise.resolve([]);const t=this._editor.getModel();if(!f["p"].has(t))return Promise.resolve([]);const i=yield U(t,new h["a"](e.range.startLineNumber,e.range.startColumn),n),r=[];for(const n of i){if(Object(V["b"])(n.contents))continue;const t=n.range?a["a"].lift(n.range):e.range;r.push(new X(this,t,n.contents))}return r}))}renderHoverParts(e,t,n){const i=new o["b"];for(const r of e)for(const e of r.contents){if(Object(V["b"])(e))continue;const n=Z("div.hover-row.markdown-hover"),r=u["q"](n,Z("div.hover-contents")),o=i.add(new z["a"]({editor:this._editor},this._modeService,this._openerService));i.add(o.onDidRenderAsync(()=>{r.className="hover-contents code-hover-contents",this._hover.onContentsChanged()}));const s=i.add(o.render(e));r.appendChild(s.element),t.appendChild(n)}return i}};Q=K([G(2,c["a"]),G(3,k["a"]),G(4,$["a"])],Q);class J{constructor(e,t){this.priority=e,this.range=t,this.type=1}equals(e){return 1===e.type&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return 1===e.type&&t.lineNumber===this.range.startLineNumber}}class ee{constructor(e,t,n){this.priority=e,this.owner=t,this.range=n,this.type=2}equals(e){return 2===e.type&&this.owner===e.owner}canAdoptVisibleHover(e,t){return 2===e.type&&this.owner===e.owner}}var te=n("2e66"),ne=n("9e74"),ie=n("7e32"),re=n("4fc3"),oe=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},se=function(e,t){return function(n,i){t(n,i,e)}};class ae{constructor(e,t,n){this.owner=e,this.range=t,this.controller=n}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}hasMultipleSuggestions(){return this.controller.hasMultipleInlineCompletions()}}let le=class{constructor(e,t,n,i,r){this._editor=e,this._commandService=n,this._menuService=i,this._contextKeyService=r}suggestHoverAnchor(e){const t=te["GhostTextController"].get(this._editor);if(!t)return null;if(8===e.target.type){const n=e.target.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId))return new ee(1e3,this,a["a"].fromPositions(n.positionBefore||n.position,n.positionBefore||n.position))}if(7===e.target.type&&e.target.range&&t.shouldShowHoverAt(e.target.range))return new ee(1e3,this,e.target.range);if(6===e.target.type&&e.target.range&&e.target.detail){const n=e.target.detail.mightBeForeignElement;if(n&&t.shouldShowHoverAt(e.target.range))return new ee(1e3,this,e.target.range)}return null}computeSync(e,t){const n=te["GhostTextController"].get(this._editor);return n&&n.shouldShowHoverAt(e.range)?[new ae(this,e.range,n)]:[]}renderHoverParts(e,t,n){const r=new o["b"],s=r.add(this._menuService.createMenu(ie["b"].InlineCompletionsActions,this._contextKeyService)),a=n.addAction({label:i["a"]("showNextInlineSuggestion","Next"),commandId:te["ShowNextInlineSuggestionAction"].ID,run:()=>this._commandService.executeCommand(te["ShowNextInlineSuggestionAction"].ID)}),l=n.addAction({label:i["a"]("showPreviousInlineSuggestion","Previous"),commandId:te["ShowPreviousInlineSuggestionAction"].ID,run:()=>this._commandService.executeCommand(te["ShowPreviousInlineSuggestionAction"].ID)});n.addAction({label:i["a"]("acceptInlineSuggestion","Accept"),commandId:te["commitInlineSuggestionAction"].id,run:()=>this._commandService.executeCommand(te["commitInlineSuggestionAction"].id)});const c=[a,l];for(const i of c)i.setEnabled(!1);e[0].hasMultipleSuggestions().then(e=>{for(const t of c)t.setEnabled(e)});for(const[i,o]of s.getActions())for(const e of o)e instanceof ie["c"]&&n.addAction({label:e.label,commandId:e.item.id,run:()=>this._commandService.executeCommand(e.item.id)});return r}};le=oe([se(2,ne["b"]),se(3,ie["a"]),se(4,re["b"])],le);var ce=n("6483"),ue=n("92a6"),he=n("ceb8"),de=n("308f");class fe{constructor(e,t,n){this.presentationIndex=n,this._onColorFlushed=new de["b"],this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new de["b"],this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new de["b"],this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){for(let n=0;n<this.colorPresentations.length;n++)if(t.toLowerCase()===this.colorPresentations[n].label){this.presentationIndex=n,this._onDidChangePresentation.fire(this.presentation);break}}flushColor(){this._onColorFlushed.fire(this._color)}}n("10f4");var pe=n("0f70"),ge=n("00a3");const me=u["a"];class ve extends o["a"]{constructor(e,t,n){super(),this.model=t,this.domNode=me(".colorpicker-header"),u["q"](e,this.domNode),this.pickedColorNode=u["q"](this.domNode,me(".picked-color"));const i=u["q"](this.domNode,me(".original-color"));i.style.backgroundColor=he["a"].Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=n.getColorTheme().getColor(A["E"])||he["a"].white,this._register(Object(T["f"])((e,t)=>{this.backgroundColor=e.getColor(A["E"])||he["a"].white})),this._register(u["i"](this.pickedColorNode,u["d"].CLICK,()=>this.model.selectNextColorPresentation())),this._register(u["i"](i,u["d"].CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this.pickedColorNode.style.backgroundColor=he["a"].Format.CSS.format(t.color)||"",this.pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter())}onDidChangeColor(e){this.pickedColorNode.style.backgroundColor=he["a"].Format.CSS.format(e)||"",this.pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this.pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:""}}class be extends o["a"]{constructor(e,t,n){super(),this.model=t,this.pixelRatio=n,this.domNode=me(".colorpicker-body"),u["q"](e,this.domNode),this.saturationBox=new ye(this.domNode,this.model,this.pixelRatio),this._register(this.saturationBox),this._register(this.saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this.saturationBox.onColorFlushed(this.flushColor,this)),this.opacityStrip=new we(this.domNode,this.model),this._register(this.opacityStrip),this._register(this.opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this.opacityStrip.onColorFlushed(this.flushColor,this)),this.hueStrip=new Ce(this.domNode,this.model),this._register(this.hueStrip),this._register(this.hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this.hueStrip.onColorFlushed(this.flushColor,this))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){const n=this.model.color.hsva;this.model.color=new he["a"](new he["b"](n.h,e,t,n.a))}onDidOpacityChange(e){const t=this.model.color.hsva;this.model.color=new he["a"](new he["b"](t.h,t.s,t.v,e))}onDidHueChange(e){const t=this.model.color.hsva,n=360*(1-e);this.model.color=new he["a"](new he["b"](360===n?0:n,t.s,t.v,t.a))}layout(){this.saturationBox.layout(),this.opacityStrip.layout(),this.hueStrip.layout()}}class ye extends o["a"]{constructor(e,t,n){super(),this.model=t,this.pixelRatio=n,this._onDidChange=new de["b"],this.onDidChange=this._onDidChange.event,this._onColorFlushed=new de["b"],this.onColorFlushed=this._onColorFlushed.event,this.domNode=me(".saturation-wrap"),u["q"](e,this.domNode),this.canvas=document.createElement("canvas"),this.canvas.className="saturation-box",u["q"](this.domNode,this.canvas),this.selection=me(".saturation-selection"),u["q"](this.domNode,this.selection),this.layout(),this._register(u["g"](this.domNode,e=>this.onMouseDown(e))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}onMouseDown(e){this.monitor=this._register(new ge["a"]);const t=u["D"](this.domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.buttons,ge["b"],e=>this.onDidChangePosition(e.posx-t.left,e.posy-t.top),()=>null);const n=u["h"](document,()=>{this._onColorFlushed.fire(),n.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){const n=Math.max(0,Math.min(1,e/this.width)),i=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(n,i),this._onDidChange.fire({s:n,v:i})}layout(){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();const e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){const e=this.model.color.hsva,t=new he["a"](new he["b"](e.h,1,1,1)),n=this.canvas.getContext("2d"),i=n.createLinearGradient(0,0,this.canvas.width,0);i.addColorStop(0,"rgba(255, 255, 255, 1)"),i.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),i.addColorStop(1,"rgba(255, 255, 255, 0)");const r=n.createLinearGradient(0,0,0,this.canvas.height);r.addColorStop(0,"rgba(0, 0, 0, 0)"),r.addColorStop(1,"rgba(0, 0, 0, 1)"),n.rect(0,0,this.canvas.width,this.canvas.height),n.fillStyle=he["a"].Format.CSS.format(t),n.fill(),n.fillStyle=i,n.fill(),n.fillStyle=r,n.fill()}paintSelection(e,t){this.selection.style.left=e*this.width+"px",this.selection.style.top=this.height-t*this.height+"px"}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}}class _e extends o["a"]{constructor(e,t){super(),this.model=t,this._onDidChange=new de["b"],this.onDidChange=this._onDidChange.event,this._onColorFlushed=new de["b"],this.onColorFlushed=this._onColorFlushed.event,this.domNode=u["q"](e,me(".strip")),this.overlay=u["q"](this.domNode,me(".overlay")),this.slider=u["q"](this.domNode,me(".slider")),this.slider.style.top="0px",this._register(u["g"](this.domNode,e=>this.onMouseDown(e))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const e=this.getValue(this.model.color);this.updateSliderPosition(e)}onMouseDown(e){const t=this._register(new ge["a"]),n=u["D"](this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.buttons,ge["b"],e=>this.onDidChangeTop(e.posy-n.top),()=>null);const i=u["h"](document,()=>{this._onColorFlushed.fire(),i.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){const t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=(1-e)*this.height+"px"}}class we extends _e{constructor(e,t){super(e,t),this.domNode.classList.add("opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){const{r:t,g:n,b:i}=e.rgba,r=new he["a"](new he["c"](t,n,i,1)),o=new he["a"](new he["c"](t,n,i,0));this.overlay.style.background=`linear-gradient(to bottom, ${r} 0%, ${o} 100%)`}getValue(e){return e.hsva.a}}class Ce extends _e{constructor(e,t){super(e,t),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}}class Se extends b["a"]{constructor(e,t,n,i){super(),this.model=t,this.pixelRatio=n,this._register(Object(pe["l"])(()=>this.layout()));const r=me(".colorpicker-widget");e.appendChild(r);const o=new ve(r,this.model,i);this.body=new be(r,this.model,this.pixelRatio),this._register(o),this._register(this.body)}layout(){this.body.layout()}}var xe=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Oe=function(e,t){return function(n,i){t(n,i,e)}},ke=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class Le{constructor(e,t,n,i){this.owner=e,this.range=t,this.model=n,this.provider=i,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return 1===e.type&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}}let Ee=class{constructor(e,t,n){this._editor=e,this._hover=t,this._themeService=n}computeSync(e,t){return[]}computeAsync(e,t,n){return ke(this,void 0,void 0,(function*(){if(!this._editor.hasModel())return[];const e=ue["a"].get(this._editor);for(const n of t){const t=e.getColorData(n.range.getStartPosition());if(t){const e=yield this._createColorHover(this._editor.getModel(),t.colorInfo,t.provider);return[e]}}return[]}))}_createColorHover(e,t,n){return ke(this,void 0,void 0,(function*(){const i=e.getValueInRange(t.range),{red:r,green:o,blue:s,alpha:l}=t.color,c=new he["c"](Math.round(255*r),Math.round(255*o),Math.round(255*s),l),u=new he["a"](c),h=yield Object(ce["a"])(e,t,n,H["a"].None),d=new fe(u,[],0);return d.colorPresentations=h||[],d.guessColorPresentation(u,i),new Le(this,a["a"].lift(t.range),d,n)}))}renderHoverParts(e,t,n){if(0===e.length||!this._editor.hasModel())return o["a"].None;const i=new o["b"],r=e[0],s=this._editor.getModel(),l=r.model,c=i.add(new Se(t,l,this._editor.getOption(127),this._themeService));let u=new a["a"](r.range.startLineNumber,r.range.startColumn,r.range.endLineNumber,r.range.endColumn);const h=()=>{let e,t;if(l.presentation.textEdit){e=[l.presentation.textEdit],t=new a["a"](l.presentation.textEdit.range.startLineNumber,l.presentation.textEdit.range.startColumn,l.presentation.textEdit.range.endLineNumber,l.presentation.textEdit.range.endColumn);const n=this._editor.getModel()._setTrackedRange(null,t,3);this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",e),t=this._editor.getModel()._getTrackedRange(n)||t}else e=[{identifier:null,range:u,text:l.presentation.label,forceMoveMarkers:!1}],t=u.setEndPosition(u.endLineNumber,u.startColumn+l.presentation.label.length),this._editor.pushUndoStop(),this._editor.executeEdits("colorpicker",e);l.presentation.additionalTextEdits&&(e=[...l.presentation.additionalTextEdits],this._editor.executeEdits("colorpicker",e),this._hover.hide()),this._editor.pushUndoStop(),u=t},d=e=>Object(ce["a"])(s,{range:u,color:{red:e.rgba.r/255,green:e.rgba.g/255,blue:e.rgba.b/255,alpha:e.rgba.a}},r.provider,H["a"].None).then(e=>{l.colorPresentations=e||[]});return i.add(l.onColorFlushed(e=>{d(e).then(h)})),i.add(l.onDidChangeColor(d)),this._hover.setColorPicker(c),i}};Ee=xe([Oe(2,T["b"])],Ee);var De=n("6dec"),Ie=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Me=function(e,t){return function(n,i){t(n,i,e)}},Te=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const Ae=u["a"];let Ne=class extends o["a"]{constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=Ae("div.hover-row.status-bar"),this.actionsElement=u["q"](this.hoverElement,Ae("div.actions"))}get hasContent(){return this._hasContent}addAction(e){const t=this._keybindingService.lookupKeybinding(e.commandId),n=t?t.getLabel():null;return this._hasContent=!0,this._register(C.render(this.actionsElement,e,n))}append(e){const t=u["q"](this.actionsElement,e);return this._hasContent=!0,t}};Ne=Ie([Me(0,De["a"])],Ne);class Pe{constructor(e,t){this._participants=t,this._editor=e,this._result=[],this._anchor=null}setAnchor(e){this._anchor=e,this._result=[]}clearResult(){this._result=[]}static _getLineDecorations(e,t){if(1!==t.type)return[];const n=e.getModel(),i=t.range.startLineNumber,r=n.getLineMaxColumn(i);return e.getLineDecorations(i).filter(e=>{if(e.options.isWholeLine)return!0;const n=e.range.startLineNumber===i?e.range.startColumn:1,o=e.range.endLineNumber===i?e.range.endColumn:r;return!(n>t.range.startColumn||t.range.endColumn>o)})}computeAsync(e){return Te(this,void 0,void 0,(function*(){const t=this._anchor;if(!this._editor.hasModel()||!t)return Promise.resolve([]);const n=Pe._getLineDecorations(this._editor,t),i=yield Promise.all(this._participants.map(i=>this._computeAsync(i,n,t,e)));return Object(v["k"])(i)}))}_computeAsync(e,t,n,i){return Te(this,void 0,void 0,(function*(){return e.computeAsync?e.computeAsync(n,t,i):[]}))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const e=Pe._getLineDecorations(this._editor,this._anchor);let t=[];for(const n of this._participants)t=t.concat(n.computeSync(this._anchor,e));return Object(v["e"])(t)}onResult(e,t){this._result=t?e.concat(this._result):this._result.concat(e)}getResult(){return this._result.slice(0)}getResultWithLoadingMessage(){if(this._anchor)for(const e of this._participants)if(e.createLoadingMessage){const t=e.createLoadingMessage(this._anchor);if(t)return this._result.slice(0).concat([t])}return this._result.slice(0)}}let je=class e extends b["a"]{constructor(t,n,i,r){super(),this._hoverVisibleKey=n,this._keybindingService=r,this.allowEditorOverflow=!0,this._participants=[i.createInstance(Ee,t,this),i.createInstance(Q,t,this),i.createInstance(le,t,this),i.createInstance(B,t,this)],this._hover=this._register(new w),this._id=e.ID,this._editor=t,this._isVisible=!1,this._stoleFocus=!1,this._renderDisposable=null,this.onkeydown(this._hover.containerDomNode,e=>{e.equals(9)&&this.hide()}),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(41)&&this._updateFont()})),this._editor.onDidLayoutChange(()=>this.layout()),this.layout(),this._editor.addContentWidget(this),this._showAtPosition=null,this._showAtRange=null,this._stoleFocus=!1,this._messages=[],this._lastAnchor=null,this._computer=new Pe(this._editor,this._participants),this._highlightDecorations=[],this._isChangingDecorations=!1,this._shouldFocus=!1,this._colorPicker=null,this._hoverOperation=new m(this._computer,e=>this._withResult(e,!0),null,e=>this._withResult(e,!1),this._editor.getOption(51).delay),this._register(u["o"](this.getDomNode(),u["d"].FOCUS,()=>{this._colorPicker&&this.getDomNode().classList.add("colorpicker-hover")})),this._register(u["o"](this.getDomNode(),u["d"].BLUR,()=>{this.getDomNode().classList.remove("colorpicker-hover")})),this._register(t.onDidChangeConfiguration(()=>{this._hoverOperation.setHoverTime(this._editor.getOption(51).delay)})),this._register(f["F"].onDidChange(()=>{this._isVisible&&this._lastAnchor&&this._messages.length>0&&(this._hover.contentsDomNode.textContent="",this._renderMessages(this._lastAnchor,this._messages))}))}dispose(){this._hoverOperation.cancel(),this._editor.removeContentWidget(this),super.dispose()}getId(){return this._id}getDomNode(){return this._hover.containerDomNode}_shouldShowAt(e){const t=e.target.type;if(6===t)return!0;if(7===t){const t=this._editor.getOption(41).typicalHalfwidthCharacterWidth/2,n=e.target.detail;if(n&&!n.isAfterLines&&"number"===typeof n.horizontalDistanceToText&&n.horizontalDistanceToText<t)return!0}return!1}maybeShowAt(e){var t;const n=[];for(const i of this._participants)if("function"===typeof i.suggestHoverAnchor){const t=i.suggestHoverAnchor(e);t&&n.push(t)}if(this._shouldShowAt(e)&&e.target.range){const i=[...(null===(t=e.target.element)||void 0===t?void 0:t.classList.values())||[]].find(e=>e.startsWith("ced-colorBox"))&&e.target.range.endColumn-e.target.range.startColumn===1,r=i?new a["a"](e.target.range.startLineNumber,e.target.range.startColumn+1,e.target.range.endLineNumber,e.target.range.endColumn+1):e.target.range;n.push(new J(0,r))}return 0!==n.length&&(n.sort((e,t)=>t.priority-e.priority),this._startShowingAt(n[0],0,!1),!0)}_showAt(e,t,n){this._showAtPosition=e,this._showAtRange=t,this._hoverVisibleKey.set(!0),this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._editor.layoutContentWidget(this),this._editor.render(),this._stoleFocus=n,n&&this._hover.containerDomNode.focus()}getPosition(){return this._isVisible?{position:this._showAtPosition,range:this._showAtRange,preference:[1,2]}:null}_updateFont(){const e=Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code"));e.forEach(e=>this._editor.applyFontInfo(e))}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont(),this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}layout(){const e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:n}=this._editor.getOption(41);this._hover.contentsDomNode.style.fontSize=t+"px",this._hover.contentsDomNode.style.lineHeight=n+"px",this._hover.contentsDomNode.style.maxHeight=e+"px",this._hover.contentsDomNode.style.maxWidth=Math.max(.66*this._editor.getLayoutInfo().width,500)+"px"}onModelDecorationsChanged(){this._isChangingDecorations||this._isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))}startShowingAtRange(e,t,n){this._startShowingAt(new J(0,e),t,n)}_startShowingAt(e,t,n){if(!this._lastAnchor||!this._lastAnchor.equals(e)){if(this._hoverOperation.cancel(),this._isVisible)if(this._showAtPosition&&this._lastAnchor&&e.canAdoptVisibleHover(this._lastAnchor,this._showAtPosition)){const t=this._messages.filter(t=>t.isValidForHoverAnchor(e));if(0===t.length)this.hide();else{if(t.length===this._messages.length)return;this._renderMessages(e,t)}}else this.hide();this._lastAnchor=e,this._computer.setAnchor(e),this._shouldFocus=n,this._hoverOperation.start(t)}}hide(){this._lastAnchor=null,this._hoverOperation.cancel(),this._isVisible&&(setTimeout(()=>{this._isVisible||this._hoverVisibleKey.set(!1)},0),this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._editor.layoutContentWidget(this),this._stoleFocus&&this._editor.focus()),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this._renderDisposable&&(this._renderDisposable.dispose(),this._renderDisposable=null),this._colorPicker=null}isColorPickerVisible(){return!!this._colorPicker}setColorPicker(e){this._colorPicker=e}onContentsChanged(){this._hover.onContentsChanged()}_withResult(e,t){this._messages=e,this._lastAnchor&&this._messages.length>0?this._renderMessages(this._lastAnchor,this._messages):t&&this.hide()}_renderMessages(t,n){this._renderDisposable&&(this._renderDisposable.dispose(),this._renderDisposable=null),this._colorPicker=null;let i=1073741824,r=n[0].range,s=null,l=document.createDocumentFragment();const c=new o["b"],u=new Map;for(const e of n){i=Math.min(i,e.range.startColumn),r=a["a"].plusRange(r,e.range),e.forceShowAtRange&&(s=e.range),u.has(e.owner)||u.set(e.owner,[]);const t=u.get(e.owner);t.push(e)}const d=c.add(new Ne(this._keybindingService));for(const[e,o]of u)c.add(e.renderHoverParts(o,l,d));d.hasContent&&l.appendChild(d.hoverElement),this._renderDisposable=c,l.hasChildNodes()&&(s?this._showAt(s.getStartPosition(),s,this._shouldFocus):this._showAt(new h["a"](t.range.startLineNumber,i),r,this._shouldFocus),this._updateContents(l)),this._colorPicker&&this._colorPicker.layout(),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,r?[{range:r,options:e._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1}};je.ID="editor.contrib.modesContentHoverWidget",je._DECORATION_OPTIONS=d["a"].register({description:"content-hover-highlight",className:"hoverHighlight"}),je=Ie([Me(2,W["a"]),Me(3,De["a"])],je);class Re extends b["a"]{constructor(e,t){super(),this._id=e,this._editor=t,this._isVisible=!1,this._domNode=document.createElement("div"),this._domNode.className="monaco-hover hidden",this._domNode.setAttribute("aria-hidden","true"),this._domNode.setAttribute("role","tooltip"),this._showAtLineNumber=-1,this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(41)&&this.updateFont()})),this._editor.addOverlayWidget(this)}get isVisible(){return this._isVisible}set isVisible(e){this._isVisible=e,this._domNode.classList.toggle("hidden",!this._isVisible)}getId(){return this._id}getDomNode(){return this._domNode}showAt(e){this._showAtLineNumber=e,this.isVisible||(this.isVisible=!0);const t=this._editor.getLayoutInfo(),n=this._editor.getTopForLineNumber(this._showAtLineNumber),i=this._editor.getScrollTop(),r=this._editor.getOption(57),o=this._domNode.clientHeight,s=n-i-(o-r)/2;this._domNode.style.left=t.glyphMarginLeft+t.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(s),0)+"px"}hide(){this.isVisible&&(this.isVisible=!1)}getPosition(){return null}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}updateFont(){const e=Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),t=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));[...e,...t].forEach(e=>this._editor.applyFontInfo(e))}updateContents(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont()}}class Fe{constructor(e){this._editor=e,this._lineNumber=-1,this._result=[]}setLineNumber(e){this._lineNumber=e,this._result=[]}clearResult(){this._result=[]}computeSync(){const e=e=>({value:e}),t=this._editor.getLineDecorations(this._lineNumber),n=[];if(!t)return n;for(const i of t){if(!i.options.glyphMarginClassName)continue;const t=i.options.glyphMarginHoverMessage;t&&!Object(V["b"])(t)&&n.push(...Object(v["c"])(t).map(e))}return n}onResult(e,t){this._result=this._result.concat(e)}getResult(){return this._result}getResultWithLoadingMessage(){return this.getResult()}}class Be extends Re{constructor(e,t,n=k["b"]){super(Be.ID,e),this._renderDisposeables=this._register(new o["b"]),this._messages=[],this._lastLineNumber=-1,this._markdownRenderer=this._register(new z["a"]({editor:this._editor},t,n)),this._computer=new Fe(this._editor),this._hoverOperation=new m(this._computer,e=>this._withResult(e),void 0,e=>this._withResult(e),300)}dispose(){this._hoverOperation.cancel(),super.dispose()}onModelDecorationsChanged(){this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start(0))}startShowingAt(e){this._lastLineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._lastLineNumber=e,this._computer.setLineNumber(e),this._hoverOperation.start(0))}hide(){this._lastLineNumber=-1,this._hoverOperation.cancel(),super.hide()}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();const n=document.createDocumentFragment();for(const i of t){const e=this._markdownRenderer.render(i.value);this._renderDisposeables.add(e),n.appendChild(Object(u["a"])("div.hover-row",void 0,e.element))}this.updateContents(n),this.showAt(e)}}Be.ID="editor.contrib.modesGlyphHoverWidget";var We=n("1f84"),Ve=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ze=function(e,t){return function(n,i){t(n,i,e)}};let He=class e{constructor(e,t,n,i,r){this._editor=e,this._instantiationService=t,this._openerService=n,this._modeService=i,this._toUnhook=new o["b"],this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(e=>{e.hasChanged(51)&&(this._unhookEvents(),this._hookEvents())}),this._hoverVisibleKey=l["a"].hoverVisible.bindTo(r)}static get(t){return t.getContribution(e.ID)}_hookEvents(){const e=()=>this._hideWidgets(),t=this._editor.getOption(51);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(e=>this._onEditorMouseDown(e))),this._toUnhook.add(this._editor.onMouseUp(e=>this._onEditorMouseUp(e))),this._toUnhook.add(this._editor.onMouseMove(e=>this._onEditorMouseMove(e))),this._toUnhook.add(this._editor.onKeyDown(e=>this._onKeyDown(e))),this._toUnhook.add(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged()))):(this._toUnhook.add(this._editor.onMouseMove(e=>this._onEditorMouseMove(e))),this._toUnhook.add(this._editor.onKeyDown(e=>this._onKeyDown(e)))),this._toUnhook.add(this._editor.onMouseLeave(e)),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(e=>this._onEditorScrollChanged(e)))}_unhookEvents(){this._toUnhook.clear()}_onModelDecorationsChanged(){var e,t;null===(e=this._contentWidget)||void 0===e||e.onModelDecorationsChanged(),null===(t=this._glyphWidget)||void 0===t||t.onModelDecorationsChanged()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;const t=e.target.type;9!==t||e.target.detail!==je.ID?12===t&&e.target.detail===Be.ID||(12!==t&&e.target.detail!==Be.ID&&(this._hoverClicked=!1),this._hideWidgets()):this._hoverClicked=!0}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseMove(e){var t,n,i,r,o;let s=e.target.type;if(this._isMouseDown&&this._hoverClicked)return;if(this._isHoverSticky&&9===s&&e.target.detail===je.ID)return;if(this._isHoverSticky&&!(null===(n=null===(t=e.event.browserEvent.view)||void 0===t?void 0:t.getSelection())||void 0===n?void 0:n.isCollapsed))return;if(!this._isHoverSticky&&9===s&&e.target.detail===je.ID&&(null===(i=this._contentWidget)||void 0===i?void 0:i.isColorPickerVisible()))return;if(this._isHoverSticky&&12===s&&e.target.detail===Be.ID)return;if(!this._isHoverEnabled)return void this._hideWidgets();const a=this._getOrCreateContentWidget();if(!a.maybeShowAt(e))return 2===s&&e.target.position?(null===(o=this._contentWidget)||void 0===o||o.hide(),this._glyphWidget||(this._glyphWidget=new Be(this._editor,this._modeService,this._openerService)),void this._glyphWidget.startShowingAt(e.target.position.lineNumber)):void this._hideWidgets();null===(r=this._glyphWidget)||void 0===r||r.hide()}_onKeyDown(e){5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&4!==e.keyCode&&this._hideWidgets()}_hideWidgets(){var e,t,n;this._isMouseDown&&this._hoverClicked&&(null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible())||(this._hoverClicked=!1,null===(t=this._glyphWidget)||void 0===t||t.hide(),null===(n=this._contentWidget)||void 0===n||n.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(je,this._editor,this._hoverVisibleKey)),this._contentWidget}isColorPickerVisible(){var e;return(null===(e=this._contentWidget)||void 0===e?void 0:e.isColorPickerVisible())||!1}showContentHover(e,t,n){this._getOrCreateContentWidget().startShowingAtRange(e,t,n)}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),null===(e=this._glyphWidget)||void 0===e||e.dispose(),null===(t=this._contentWidget)||void 0===t||t.dispose()}};He.ID="editor.contrib.hover",He=Ve([ze(1,W["a"]),ze(2,k["a"]),ze(3,c["a"]),ze(4,re["b"])],He);class Ue extends s["b"]{constructor(){super({id:"editor.action.showHover",label:i["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(r["a"])(2089,2087),weight:100}})}run(e,t){if(!t.hasModel())return;let n=He.get(t);if(!n)return;const i=t.getPosition(),r=new a["a"](i.lineNumber,i.column,i.lineNumber,i.column),o=2===t.getOption(2);n.showContentHover(r,1,o)}}class qe extends s["b"]{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:i["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})}run(e,t){let n=He.get(t);if(!n)return;const i=t.getPosition();if(!i)return;const r=new a["a"](i.lineNumber,i.column,i.lineNumber,i.column),o=We["GotoDefinitionAtPositionEditorContribution"].get(t),s=o.startFindDefinitionFromCursor(i);s.then(()=>{n.showContentHover(r,1,!0)})}}Object(s["l"])(He.ID,He),Object(s["j"])(Ue),Object(s["j"])(qe),Object(T["f"])((e,t)=>{const n=e.getColor(A["H"]);n&&t.addRule(`.monaco-editor .hoverHighlight { background-color: ${n}; }`);const i=e.getColor(A["E"]);i&&t.addRule(`.monaco-editor .monaco-hover { background-color: ${i}; }`);const r=e.getColor(A["F"]);r&&(t.addRule(`.monaco-editor .monaco-hover { border: 1px solid ${r}; }`),t.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${r.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${r.transparent(.5)}; }`),t.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${r.transparent(.5)}; }`));const o=e.getColor(A["Jc"]);o&&t.addRule(`.monaco-editor .monaco-hover a { color: ${o}; }`);const s=e.getColor(A["Ic"]);s&&t.addRule(`.monaco-editor .monaco-hover a:hover { color: ${s}; }`);const a=e.getColor(A["G"]);a&&t.addRule(`.monaco-editor .monaco-hover { color: ${a}; }`);const l=e.getColor(A["I"]);l&&t.addRule(`.monaco-editor .monaco-hover .hover-row .actions { background-color: ${l}; }`);const c=e.getColor(A["Hc"]);c&&t.addRule(`.monaco-editor .monaco-hover code { background-color: ${c}; }`)})},af03:function(e,t,n){var i=n("d039");e.exports=function(e){return i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},af40:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{constructor(e,t=[],n=!1){this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n}}},afa2:function(e,t,n){},aff5:function(e,t,n){var i=n("23e7");i({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},aff9:function(e,t,n){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},b03c:function(e,t){var n="auto",i={"":!0,lr:!0,rl:!0},r={start:!0,middle:!0,end:!0,left:!0,right:!0};function o(e){if("string"!==typeof e)return!1;var t=i[e.toLowerCase()];return!!t&&e.toLowerCase()}function s(e){if("string"!==typeof e)return!1;var t=r[e.toLowerCase()];return!!t&&e.toLowerCase()}function a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}function l(e,t,i){var r=this,l=/MSIE\s8\.0/.test(navigator.userAgent),c={};l?r=document.createElement("custom"):c.enumerable=!0,r.hasBeenReset=!1;var u="",h=!1,d=e,f=t,p=i,g=null,m="",v=!0,b="auto",y="start",_=50,w="middle",C=50,S="middle";if(Object.defineProperty(r,"id",a({},c,{get:function(){return u},set:function(e){u=""+e}})),Object.defineProperty(r,"pauseOnExit",a({},c,{get:function(){return h},set:function(e){h=!!e}})),Object.defineProperty(r,"startTime",a({},c,{get:function(){return d},set:function(e){if("number"!==typeof e)throw new TypeError("Start time must be set to a number.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"endTime",a({},c,{get:function(){return f},set:function(e){if("number"!==typeof e)throw new TypeError("End time must be set to a number.");f=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"text",a({},c,{get:function(){return p},set:function(e){p=""+e,this.hasBeenReset=!0}})),Object.defineProperty(r,"region",a({},c,{get:function(){return g},set:function(e){g=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"vertical",a({},c,{get:function(){return m},set:function(e){var t=o(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");m=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"snapToLines",a({},c,{get:function(){return v},set:function(e){v=!!e,this.hasBeenReset=!0}})),Object.defineProperty(r,"line",a({},c,{get:function(){return b},set:function(e){if("number"!==typeof e&&e!==n)throw new SyntaxError("An invalid number or illegal string was specified.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"lineAlign",a({},c,{get:function(){return y},set:function(e){var t=s(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"position",a({},c,{get:function(){return _},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"positionAlign",a({},c,{get:function(){return w},set:function(e){var t=s(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");w=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"size",a({},c,{get:function(){return C},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");C=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"align",a({},c,{get:function(){return S},set:function(e){var t=s(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");S=t,this.hasBeenReset=!0}})),r.displayState=void 0,l)return r}l.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=l},b041:function(e,t,n){"use strict";var i=n("00ee"),r=n("f5df");e.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},b055:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return s}));var i=n("8ae8");function r(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===i["a"].ICodeEditor}function o(e){return!(!e||"function"!==typeof e.getEditorType)&&e.getEditorType()===i["a"].IDiffEditor}function s(e){return r(e)?e:o(e)?e.getModifiedEditor():null}},b06d:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.extendNewGraph=x,t["default"]=t.text=t.bezierCurve=t.smoothline=t.polyline=t.regPolygon=t.sector=t.arc=t.ring=t.rect=t.ellipse=t.circle=void 0;var r=i(n("448a")),o=i(n("278c")),s=i(n("050c")),a=n("5557"),l=n("e169"),c=s["default"].polylineToBezierCurve,u=s["default"].bezierCurveToPolyline,h={shape:{rx:0,ry:0,r:0},validator:function(e){var t=e.shape,n=t.rx,i=t.ry,r=t.r;return"number"===typeof n&&"number"===typeof i&&"number"===typeof r||(console.error("Circle shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape;n.beginPath();var r=i.rx,o=i.ry,s=i.r;n.arc(r,o,s>0?s:.01,0,2*Math.PI),n.fill(),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,i=n.rx,r=n.ry,o=n.r;return(0,a.checkPointIsInCircle)(e,i,r,o)},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.rx,o=n.ry;i.graphCenter=[r,o]},move:function(e,t){var n=e.movementX,i=e.movementY,r=t.shape;this.attr("shape",{rx:r.rx+n,ry:r.ry+i})}};t.circle=h;var d={shape:{rx:0,ry:0,hr:0,vr:0},validator:function(e){var t=e.shape,n=t.rx,i=t.ry,r=t.hr,o=t.vr;return"number"===typeof n&&"number"===typeof i&&"number"===typeof r&&"number"===typeof o||(console.error("Ellipse shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape;n.beginPath();var r=i.rx,o=i.ry,s=i.hr,a=i.vr;n.ellipse(r,o,s>0?s:.01,a>0?a:.01,0,0,2*Math.PI),n.fill(),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,i=n.rx,r=n.ry,o=n.hr,s=n.vr,l=Math.max(o,s),c=Math.min(o,s),u=Math.sqrt(l*l-c*c),h=[i-u,r],d=[i+u,r],f=(0,a.getTwoPointDistance)(e,h)+(0,a.getTwoPointDistance)(e,d);return f<=2*l},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.rx,o=n.ry;i.graphCenter=[r,o]},move:function(e,t){var n=e.movementX,i=e.movementY,r=t.shape;this.attr("shape",{rx:r.rx+n,ry:r.ry+i})}};t.ellipse=d;var f={shape:{x:0,y:0,w:0,h:0},validator:function(e){var t=e.shape,n=t.x,i=t.y,r=t.w,o=t.h;return"number"===typeof n&&"number"===typeof i&&"number"===typeof r&&"number"===typeof o||(console.error("Rect shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape;n.beginPath();var r=i.x,o=i.y,s=i.w,a=i.h;n.rect(r,o,s,a),n.fill(),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,i=n.x,r=n.y,o=n.w,s=n.h;return(0,a.checkPointIsInRect)(e,i,r,o,s)},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.x,o=n.y,s=n.w,a=n.h;i.graphCenter=[r+s/2,o+a/2]},move:function(e,t){var n=e.movementX,i=e.movementY,r=t.shape;this.attr("shape",{x:r.x+n,y:r.y+i})}};t.rect=f;var p={shape:{rx:0,ry:0,r:0},validator:function(e){var t=e.shape,n=t.rx,i=t.ry,r=t.r;return"number"===typeof n&&"number"===typeof i&&"number"===typeof r||(console.error("Ring shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape;n.beginPath();var r=i.rx,o=i.ry,s=i.r;n.arc(r,o,s>0?s:.01,0,2*Math.PI),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,i=t.style,r=n.rx,o=n.ry,s=n.r,l=i.lineWidth,c=l/2,u=s-c,h=s+c,d=(0,a.getTwoPointDistance)(e,[r,o]);return d>=u&&d<=h},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.rx,o=n.ry;i.graphCenter=[r,o]},move:function(e,t){var n=e.movementX,i=e.movementY,r=t.shape;this.attr("shape",{rx:r.rx+n,ry:r.ry+i})}};t.ring=p;var g={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(e){var t=e.shape,n=["rx","ry","r","startAngle","endAngle"];return!n.find((function(e){return"number"!==typeof t[e]}))||(console.error("Arc shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape;n.beginPath();var r=i.rx,o=i.ry,s=i.r,a=i.startAngle,l=i.endAngle,c=i.clockWise;n.arc(r,o,s>0?s:.001,a,l,!c),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,i=t.style,r=n.rx,o=n.ry,s=n.r,l=n.startAngle,c=n.endAngle,u=n.clockWise,h=i.lineWidth,d=h/2,f=s-d,p=s+d;return!(0,a.checkPointIsInSector)(e,r,o,f,l,c,u)&&(0,a.checkPointIsInSector)(e,r,o,p,l,c,u)},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.rx,o=n.ry;i.graphCenter=[r,o]},move:function(e,t){var n=e.movementX,i=e.movementY,r=t.shape;this.attr("shape",{rx:r.rx+n,ry:r.ry+i})}};t.arc=g;var m={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(e){var t=e.shape,n=["rx","ry","r","startAngle","endAngle"];return!n.find((function(e){return"number"!==typeof t[e]}))||(console.error("Sector shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape;n.beginPath();var r=i.rx,o=i.ry,s=i.r,a=i.startAngle,l=i.endAngle,c=i.clockWise;n.arc(r,o,s>0?s:.01,a,l,!c),n.lineTo(r,o),n.closePath(),n.stroke(),n.fill()},hoverCheck:function(e,t){var n=t.shape,i=n.rx,r=n.ry,o=n.r,s=n.startAngle,l=n.endAngle,c=n.clockWise;return(0,a.checkPointIsInSector)(e,i,r,o,s,l,c)},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.rx,o=n.ry;i.graphCenter=[r,o]},move:function(e,t){var n=e.movementX,i=e.movementY,r=t.shape,o=r.rx,s=r.ry;this.attr("shape",{rx:o+n,ry:s+i})}};t.sector=m;var v={shape:{rx:0,ry:0,r:0,side:0},validator:function(e){var t=e.shape,n=t.side,i=["rx","ry","r","side"];return i.find((function(e){return"number"!==typeof t[e]}))?(console.error("RegPolygon shape configuration is abnormal!"),!1):!(n<3)||(console.error("RegPolygon at least trigon!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape,r=t.cache;n.beginPath();var o=i.rx,s=i.ry,c=i.r,u=i.side;if(!r.points||r.rx!==o||r.ry!==s||r.r!==c||r.side!==u){var h=(0,a.getRegularPolygonPoints)(o,s,c,u);Object.assign(r,{points:h,rx:o,ry:s,r:c,side:u})}var d=r.points;(0,l.drawPolylinePath)(n,d),n.closePath(),n.stroke(),n.fill()},hoverCheck:function(e,t){var n=t.cache,i=n.points;return(0,a.checkPointIsInPolygon)(e,i)},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.rx,o=n.ry;i.graphCenter=[r,o]},move:function(e,t){var n=e.movementX,i=e.movementY,r=t.shape,s=t.cache,a=r.rx,l=r.ry;s.rx+=n,s.ry+=i,this.attr("shape",{rx:a+n,ry:l+i}),s.points=s.points.map((function(e){var t=(0,o["default"])(e,2),r=t[0],s=t[1];return[r+n,s+i]}))}};t.regPolygon=v;var b={shape:{points:[],close:!1},validator:function(e){var t=e.shape,n=t.points;return n instanceof Array||(console.error("Polyline points should be an array!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape,r=t.style.lineWidth;n.beginPath();var o=i.points,s=i.close;1===r&&(o=(0,a.eliminateBlur)(o)),(0,l.drawPolylinePath)(n,o),s?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(e,t){var n=t.shape,i=t.style,r=n.points,o=n.close,s=i.lineWidth;return o?(0,a.checkPointIsInPolygon)(e,r):(0,a.checkPointIsNearPolyline)(e,r,s)},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.points;i.graphCenter=r[0]},move:function(e,t){var n=e.movementX,i=e.movementY,r=t.shape,s=r.points,a=s.map((function(e){var t=(0,o["default"])(e,2),r=t[0],s=t[1];return[r+n,s+i]}));this.attr("shape",{points:a})}};t.polyline=b;var y={shape:{points:[],close:!1},validator:function(e){var t=e.shape,n=t.points;return n instanceof Array||(console.error("Smoothline points should be an array!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape,r=t.cache,o=i.points,s=i.close;if(!r.points||r.points.toString()!==o.toString()){var h=c(o,s),d=u(h);Object.assign(r,{points:(0,a.deepClone)(o,!0),bezierCurve:h,hoverPoints:d})}var f=r.bezierCurve;n.beginPath(),(0,l.drawBezierCurvePath)(n,f.slice(1),f[0]),s?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(e,t){var n=t.cache,i=t.shape,r=t.style,o=n.hoverPoints,s=i.close,l=r.lineWidth;return s?(0,a.checkPointIsInPolygon)(e,o):(0,a.checkPointIsNearPolyline)(e,o,l)},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.points;i.graphCenter=r[0]},move:function(e,t){var n=e.movementX,i=e.movementY,s=t.shape,a=t.cache,l=s.points,c=l.map((function(e){var t=(0,o["default"])(e,2),r=t[0],s=t[1];return[r+n,s+i]}));a.points=c;var u=(0,o["default"])(a.bezierCurve[0],2),h=u[0],d=u[1],f=a.bezierCurve.slice(1);a.bezierCurve=[[h+n,d+i]].concat((0,r["default"])(f.map((function(e){return e.map((function(e){var t=(0,o["default"])(e,2),r=t[0],s=t[1];return[r+n,s+i]}))})))),a.hoverPoints=a.hoverPoints.map((function(e){var t=(0,o["default"])(e,2),r=t[0],s=t[1];return[r+n,s+i]})),this.attr("shape",{points:c})}};t.smoothline=y;var _={shape:{points:[],close:!1},validator:function(e){var t=e.shape,n=t.points;return n instanceof Array||(console.error("BezierCurve points should be an array!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape,r=t.cache,o=i.points,s=i.close;if(!r.points||r.points.toString()!==o.toString()){var c=u(o,20);Object.assign(r,{points:(0,a.deepClone)(o,!0),hoverPoints:c})}n.beginPath(),(0,l.drawBezierCurvePath)(n,o.slice(1),o[0]),s?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(e,t){var n=t.cache,i=t.shape,r=t.style,o=n.hoverPoints,s=i.close,l=r.lineWidth;return s?(0,a.checkPointIsInPolygon)(e,o):(0,a.checkPointIsNearPolyline)(e,o,l)},setGraphCenter:function(e,t){var n=t.shape,i=t.style,r=n.points;i.graphCenter=r[0]},move:function(e,t){var n=e.movementX,i=e.movementY,s=t.shape,a=t.cache,l=s.points,c=(0,o["default"])(l[0],2),u=c[0],h=c[1],d=l.slice(1),f=[[u+n,h+i]].concat((0,r["default"])(d.map((function(e){return e.map((function(e){var t=(0,o["default"])(e,2),r=t[0],s=t[1];return[r+n,s+i]}))}))));a.points=f,a.hoverPoints=a.hoverPoints.map((function(e){var t=(0,o["default"])(e,2),r=t[0],s=t[1];return[r+n,s+i]})),this.attr("shape",{points:f})}};t.bezierCurve=_;var w={shape:{content:"",position:[],maxWidth:void 0,rowGap:0},validator:function(e){var t=e.shape,n=t.content,i=t.position,r=t.rowGap;return"string"!==typeof n?(console.error("Text content should be a string!"),!1):i instanceof Array?"number"===typeof r||(console.error("Text rowGap should be a number!"),!1):(console.error("Text position should be an array!"),!1)},draw:function(e,t){var n=e.ctx,i=t.shape,s=i.content,a=i.position,l=i.maxWidth,c=i.rowGap,u=n.textBaseline,h=n.font,d=parseInt(h.replace(/\D/g,"")),f=a,p=(0,o["default"])(f,2),g=p[0],m=p[1];s=s.split("\n");var v=s.length,b=d+c,y=v*b-c,_=0;"middle"===u&&(_=y/2,m+=d/2),"bottom"===u&&(_=y,m+=d),a=new Array(v).fill(0).map((function(e,t){return[g,m+t*b-_]})),n.beginPath(),s.forEach((function(e,t){n.fillText.apply(n,[e].concat((0,r["default"])(a[t]),[l])),n.strokeText.apply(n,[e].concat((0,r["default"])(a[t]),[l]))})),n.closePath()},hoverCheck:function(e,t){t.shape,t.style;return!1},setGraphCenter:function(e,t){var n=t.shape,i=t.style,o=n.position;i.graphCenter=(0,r["default"])(o)},move:function(e,t){var n=e.movementX,i=e.movementY,r=t.shape,s=(0,o["default"])(r.position,2),a=s[0],l=s[1];this.attr("shape",{position:[a+n,l+i]})}};t.text=w;var C=new Map([["circle",h],["ellipse",d],["rect",f],["ring",p],["arc",g],["sector",m],["regPolygon",v],["polyline",b],["smoothline",y],["bezierCurve",_],["text",w]]),S=C;function x(e,t){e&&t?t.shape?t.validator?t.draw?C.set(e,t):console.error("Required function of draw to extendNewGraph!"):console.error("Required function of validator to extendNewGraph!"):console.error("Required attribute of shape to extendNewGraph!"):console.error("ExtendNewGraph Missing Parameters!")}t["default"]=S},b0c0:function(e,t,n){var i=n("83ab"),r=n("5e77").EXISTS,o=n("e330"),s=n("9bf2").f,a=Function.prototype,l=o(a.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=o(c.exec),h="name";i&&!r&&s(a,h,{configurable:!0,get:function(){try{return u(c,l(this))[1]}catch(e){return""}}})},b0cd:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var i=n("4b76"),r=n("0a0f");i["a"];const o=Object(r["c"])("notificationService");class s{}},b12b:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return n.e("chunk-2d0c0494").then(n.bind(null,"40ac"))}})},b12f:function(e,t,n){"use strict";var i=n("2dc5"),r=n("8918"),o=n("625e"),s=function(){function e(){this.group=new i["a"],this.uid=r["c"]("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){},e.prototype.updateLayout=function(e,t,n,i){},e.prototype.updateVisual=function(e,t,n,i){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();o["b"](s),o["c"](s),t["a"]=s},b1ca:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("0a0f");const r=Object(i["c"])("themeService")},b1d4:function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return d}));var i=n("07fd"),r=n("cd70"),o=n("6d8b"),s=n("ec6f"),a=n("d0ce"),l=n("e0d3"),c=n("0f99"),u=n("80b9");function h(e,t){return d(e,t).dimensions}function d(e,t){Object(s["e"])(e)||(e=Object(s["c"])(e)),t=t||{};var n=t.coordDimensions||[],h=t.dimensionsDefine||e.dimensionsDefine||[],d=Object(o["createHashMap"])(),m=[],v=p(e,n,h,t.dimensionsCount),b=t.canOmitUnusedDimensions&&Object(u["e"])(v),y=h===e.dimensionsDefine,_=y?Object(u["c"])(e):Object(u["b"])(h),w=t.encodeDefine;!w&&t.encodeDefaulter&&(w=t.encodeDefaulter(e,v));for(var C=Object(o["createHashMap"])(w),S=new a["a"](v),x=0;x<S.length;x++)S[x]=-1;function O(e){var t=S[e];if(t<0){var n=h[e],i=Object(o["isObject"])(n)?n:{name:n},s=new r["a"],a=i.name;null!=a&&null!=_.get(a)&&(s.name=s.displayName=a),null!=i.type&&(s.type=i.type),null!=i.displayName&&(s.displayName=i.displayName);var l=m.length;return S[e]=l,s.storeDimIndex=e,m.push(s),s}return m[t]}if(!b)for(x=0;x<v;x++)O(x);C.each((function(e,t){var n=Object(l["r"])(e).slice();if(1===n.length&&!Object(o["isString"])(n[0])&&n[0]<0)C.set(t,!1);else{var i=C.set(t,[]);Object(o["each"])(n,(function(e,n){var r=Object(o["isString"])(e)?_.get(e):e;null!=r&&r<v&&(i[n]=r,L(O(r),t,n))}))}}));var k=0;function L(e,t,n){null!=i["i"].get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,d.set(t,!0))}Object(o["each"])(n,(function(e){var t,n,i,r;if(Object(o["isString"])(e))t=e,r={};else{r=e,t=r.name;var s=r.ordinalMeta;r.ordinalMeta=null,r=Object(o["extend"])({},r),r.ordinalMeta=s,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var a=C.get(t);if(!1!==a){if(a=Object(l["r"])(a),!a.length)for(var c=0;c<(n&&n.length||1);c++){while(k<v&&null!=O(k).coordDim)k++;k<v&&a.push(k++)}Object(o["each"])(a,(function(e,s){var a=O(e);if(y&&null!=r.type&&(a.type=r.type),L(Object(o["defaults"])(a,r),t,s),null==a.name&&n){var l=n[s];!Object(o["isObject"])(l)&&(l={name:l}),a.name=a.displayName=l.name,a.defaultTooltip=l.defaultTooltip}i&&Object(o["defaults"])(a.otherDims,i)}))}}));var E=t.generateCoord,D=t.generateCoordCount,I=null!=D;D=E?D||1:0;var M=E||"value";function T(e){null==e.name&&(e.name=e.coordDim)}if(b)Object(o["each"])(m,(function(e){T(e)})),m.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var A=0;A<v;A++){var N=O(A),P=N.coordDim;null==P&&(N.coordDim=g(M,d,I),N.coordDimIndex=0,(!E||D<=0)&&(N.isExtraCoord=!0),D--),T(N),null!=N.type||Object(c["b"])(e,A)!==c["a"].Must&&(!N.isExtraCoord||null==N.otherDims.itemName&&null==N.otherDims.seriesName)||(N.type="ordinal")}return f(m),new u["a"]({source:e,dimensions:m,fullDimensionCount:v,dimensionOmitted:b})}function f(e){for(var t=Object(o["createHashMap"])(),n=0;n<e.length;n++){var i=e[n],r=i.name,s=t.get(r)||0;s>0&&(i.name=r+(s-1)),s++,t.set(r,s)}}function p(e,t,n,i){var r=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,i||0);return Object(o["each"])(t,(function(e){var t;Object(o["isObject"])(e)&&(t=e.dimsDef)&&(r=Math.max(r,t.length))})),r}function g(e,t,n){if(n||t.hasKey(e)){var i=0;while(t.hasKey(e+i))i++;e+=i}return t.set(e,!0),e}},b223:function(e,t,n){},b272:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("3742"),r=n("2c29"),o=n("2e5d"),s=n("f85a"),a=n("6a89"),l=n("7061");class c{static deleteRight(e,t,n,i){let o=[],l=3!==e;for(let c=0,u=i.length;c<u;c++){const e=i[c];let u=e;if(u.isEmpty()){let i=e.getPosition(),r=s["a"].right(t,n,i);u=new a["a"](r.lineNumber,r.column,i.lineNumber,i.column)}u.isEmpty()?o[c]=null:(u.startLineNumber!==u.endLineNumber&&(l=!0),o[c]=new r["a"](u,""))}return[l,o]}static isAutoClosingPairDelete(e,t,n,i,r,s,a){if("never"===t&&"never"===n)return!1;if("never"===e)return!1;for(let l=0,c=s.length;l<c;l++){const c=s[l],u=c.getPosition();if(!c.isEmpty())return!1;const h=r.getLineContent(u.lineNumber);if(u.column<2||u.column>=h.length+1)return!1;const d=h.charAt(u.column-2),f=i.get(d);if(!f)return!1;if(Object(o["g"])(d)){if("never"===n)return!1}else if("never"===t)return!1;const p=h.charAt(u.column-1);let g=!1;for(const e of f)e.open===d&&e.close===p&&(g=!0);if(!g)return!1;if("auto"===e){let e=!1;for(let t=0,n=a.length;t<n;t++){const n=a[t];if(u.lineNumber===n.startLineNumber&&u.column===n.startColumn){e=!0;break}}if(!e)return!1}}return!0}static _runAutoClosingPairDelete(e,t,n){let i=[];for(let o=0,s=n.length;o<s;o++){const e=n[o].getPosition(),t=new a["a"](e.lineNumber,e.column-1,e.lineNumber,e.column+1);i[o]=new r["a"](t,"")}return[!0,i]}static deleteLeft(e,t,n,i,o){if(this.isAutoClosingPairDelete(t.autoClosingDelete,t.autoClosingBrackets,t.autoClosingQuotes,t.autoClosingPairs.autoClosingPairsOpenByEnd,n,i,o))return this._runAutoClosingPairDelete(t,n,i);const s=[];let a=2!==e;for(let l=0,u=i.length;l<u;l++){let e=c.getDeleteRange(i[l],n,t);e.isEmpty()?s[l]=null:(e.startLineNumber!==e.endLineNumber&&(a=!0),s[l]=new r["a"](e,""))}return[a,s]}static getDeleteRange(e,t,n){if(!e.isEmpty())return e;const r=e.getPosition();if(n.useTabStops&&r.column>1){const e=t.getLineContent(r.lineNumber),s=i["v"](e),l=-1===s?e.length+1:s+1;if(r.column<=l){const e=o["a"].visibleColumnFromColumn2(n,t,r),i=o["a"].prevIndentTabStop(e,n.indentSize),s=o["a"].columnFromVisibleColumn2(n,t,r.lineNumber,i);return new a["a"](r.lineNumber,s,r.lineNumber,r.column)}}return a["a"].fromPositions(c.getPositionAfterDeleteLeft(r,t),r)}static getPositionAfterDeleteLeft(e,t){if(e.column>1){const n=i["z"](e.column-1,t.getLineContent(e.lineNumber));return e.with(void 0,n+1)}if(e.lineNumber>1){const n=e.lineNumber-1;return new l["a"](n,t.getLineMaxColumn(n))}return e}static cut(e,t,n){let i=[];for(let o=0,s=n.length;o<s;o++){const s=n[o];if(s.isEmpty())if(e.emptySelectionClipboard){let e,n,l,c,u=s.getPosition();u.lineNumber<t.getLineCount()?(e=u.lineNumber,n=1,l=u.lineNumber+1,c=1):u.lineNumber>1?(e=u.lineNumber-1,n=t.getLineMaxColumn(u.lineNumber-1),l=u.lineNumber,c=t.getLineMaxColumn(u.lineNumber)):(e=u.lineNumber,n=1,l=u.lineNumber,c=t.getLineMaxColumn(u.lineNumber));let h=new a["a"](e,n,l,c);h.isEmpty()?i[o]=null:i[o]=new r["a"](h,"")}else i[o]=null;else i[o]=new r["a"](s,"")}return new o["e"](0,i,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}},b289:function(e,t,n){(function(t){const n=e.exports;n.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},n.codes={};for(const e in n.types){const t=n.types[e];n.codes[t]=e}n.CMD_SHIFT=4,n.CMD_MASK=240,n.DUP_MASK=8,n.QOS_MASK=3,n.QOS_SHIFT=1,n.RETAIN_MASK=1,n.VARBYTEINT_MASK=127,n.VARBYTEINT_FIN_MASK=128,n.VARBYTEINT_MAX=268435455,n.SESSIONPRESENT_MASK=1,n.SESSIONPRESENT_HEADER=t.from([n.SESSIONPRESENT_MASK]),n.CONNACK_HEADER=t.from([n.codes.connack<<n.CMD_SHIFT]),n.USERNAME_MASK=128,n.PASSWORD_MASK=64,n.WILL_RETAIN_MASK=32,n.WILL_QOS_MASK=24,n.WILL_QOS_SHIFT=3,n.WILL_FLAG_MASK=4,n.CLEAN_SESSION_MASK=2,n.CONNECT_HEADER=t.from([n.codes.connect<<n.CMD_SHIFT]),n.properties={sessionExpiryInterval:17,willDelayInterval:24,receiveMaximum:33,maximumPacketSize:39,topicAliasMaximum:34,requestResponseInformation:25,requestProblemInformation:23,userProperties:38,authenticationMethod:21,authenticationData:22,payloadFormatIndicator:1,messageExpiryInterval:2,contentType:3,responseTopic:8,correlationData:9,maximumQoS:36,retainAvailable:37,assignedClientIdentifier:18,reasonString:31,wildcardSubscriptionAvailable:40,subscriptionIdentifiersAvailable:41,sharedSubscriptionAvailable:42,serverKeepAlive:19,responseInformation:26,serverReference:28,topicAlias:35,subscriptionIdentifier:11},n.propertiesCodes={};for(const e in n.properties){const t=n.properties[e];n.propertiesCodes[t]=e}function i(e){return[0,1,2].map(i=>[0,1].map(r=>[0,1].map(o=>{const s=t.alloc(1);return s.writeUInt8(n.codes[e]<<n.CMD_SHIFT|(r?n.DUP_MASK:0)|i<<n.QOS_SHIFT|o,0,!0),s})))}n.propertiesTypes={sessionExpiryInterval:"int32",willDelayInterval:"int32",receiveMaximum:"int16",maximumPacketSize:"int32",topicAliasMaximum:"int16",requestResponseInformation:"byte",requestProblemInformation:"byte",userProperties:"pair",authenticationMethod:"string",authenticationData:"binary",payloadFormatIndicator:"byte",messageExpiryInterval:"int32",contentType:"string",responseTopic:"string",correlationData:"binary",maximumQoS:"int8",retainAvailable:"byte",assignedClientIdentifier:"string",reasonString:"string",wildcardSubscriptionAvailable:"byte",subscriptionIdentifiersAvailable:"byte",sharedSubscriptionAvailable:"byte",serverKeepAlive:"int16",responseInformation:"string",serverReference:"string",topicAlias:"int16",subscriptionIdentifier:"var"},n.PUBLISH_HEADER=i("publish"),n.SUBSCRIBE_HEADER=i("subscribe"),n.SUBSCRIBE_OPTIONS_QOS_MASK=3,n.SUBSCRIBE_OPTIONS_NL_MASK=1,n.SUBSCRIBE_OPTIONS_NL_SHIFT=2,n.SUBSCRIBE_OPTIONS_RAP_MASK=1,n.SUBSCRIBE_OPTIONS_RAP_SHIFT=3,n.SUBSCRIBE_OPTIONS_RH_MASK=3,n.SUBSCRIBE_OPTIONS_RH_SHIFT=4,n.SUBSCRIBE_OPTIONS_RH=[0,16,32],n.SUBSCRIBE_OPTIONS_NL=4,n.SUBSCRIBE_OPTIONS_RAP=8,n.SUBSCRIBE_OPTIONS_QOS=[0,1,2],n.UNSUBSCRIBE_HEADER=i("unsubscribe"),n.ACKS={unsuback:i("unsuback"),puback:i("puback"),pubcomp:i("pubcomp"),pubrel:i("pubrel"),pubrec:i("pubrec")},n.SUBACK_HEADER=t.from([n.codes.suback<<n.CMD_SHIFT]),n.VERSION3=t.from([3]),n.VERSION4=t.from([4]),n.VERSION5=t.from([5]),n.VERSION131=t.from([131]),n.VERSION132=t.from([132]),n.QOS=[0,1,2].map(e=>t.from([e])),n.EMPTY={pingreq:t.from([n.codes.pingreq<<4,0]),pingresp:t.from([n.codes.pingresp<<4,0]),disconnect:t.from([n.codes.disconnect<<4,0])}}).call(this,n("1c35").Buffer)},b2cc:function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"e",(function(){return y})),n.d(t,"c",(function(){return w})),n.d(t,"b",(function(){return C})),n.d(t,"f",(function(){return S})),n.d(t,"n",(function(){return x})),n.d(t,"o",(function(){return O})),n.d(t,"k",(function(){return k})),n.d(t,"j",(function(){return L})),n.d(t,"p",(function(){return E})),n.d(t,"m",(function(){return D})),n.d(t,"l",(function(){return I})),n.d(t,"d",(function(){return i})),n.d(t,"i",(function(){return N})),n.d(t,"g",(function(){return P})),n.d(t,"h",(function(){return j}));var i,r=n("dff7"),o=n("6d8e"),s=n("5717"),a=n("7061"),l=n("1b69"),c=n("b78f"),u=n("7e32"),h=n("9e74"),d=n("4fc3"),f=n("9eb8"),p=n("89cd"),g=n("5d75"),m=n("ef8e"),v=n("d3d7");class b{constructor(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menuOpts=e.menuOpts,this._description=e.description}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const e=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const t of e){let e=t.kbExpr;this.precondition&&(e=e?d["a"].and(e,this.precondition):this.precondition);const n={id:this.id,weight:t.weight,args:t.args,when:e,primary:t.primary,secondary:t.secondary,win:t.win,linux:t.linux,mac:t.mac};f["a"].registerKeybindingRule(n)}}h["a"].registerCommand({id:this.id,handler:(e,t)=>this.runCommand(e,t),description:this._description})}_registerMenuItem(e){u["d"].appendMenuItem(e.menuId,{group:e.group,command:{id:this.id,title:e.title,icon:e.icon,precondition:this.precondition},when:e.when,order:e.order})}}class y extends b{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t,n){return this._implementations.push({priority:e,name:t,implementation:n}),this._implementations.sort((e,t)=>t.priority-e.priority),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e].implementation===n)return void this._implementations.splice(e,1)}}}runCommand(e,t){const n=e.get(v["b"]);for(const i of this._implementations){const r=i.implementation(e,t);if(r){if(n.trace(`Command '${this.id}' was handled by '${i.name}'.`),"boolean"===typeof r)return;return r}}}}class _ extends b{constructor(e,t){super(t),this.command=e}runCommand(e,t){return this.command.runCommand(e,t)}}class w extends b{static bindToContribution(e){return class extends w{constructor(e){super(e),this._callback=e.handler}runEditorCommand(t,n,i){const r=e(n);r&&this._callback(e(n),i)}}}runCommand(e,t){const n=e.get(s["a"]),i=n.getFocusedCodeEditor()||n.getActiveCodeEditor();if(i)return i.invokeWithinContext(e=>{const n=e.get(d["b"]);if(n.contextMatchesRules(Object(m["o"])(this.precondition)))return this.runEditorCommand(e,i,t)})}}class C extends w{constructor(e){super(C.convertOptions(e)),this.label=e.label,this.alias=e.alias}static convertOptions(e){let t;function n(t){return t.menuId||(t.menuId=u["b"].EditorContext),t.title||(t.title=e.label),t.when=d["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(...e.contextMenuOpts.map(n)):e.contextMenuOpts&&t.push(n(e.contextMenuOpts)),e.menuOpts=t,e}runEditorCommand(e,t,n){return this.reportTelemetry(e,t),this.run(e,t,n||{})}reportTelemetry(e,t){e.get(g["a"]).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class S extends C{constructor(){super(...arguments),this._implementations=[]}addImplementation(e,t){return this._implementations.push([e,t]),this._implementations.sort((e,t)=>t[0]-e[0]),{dispose:()=>{for(let e=0;e<this._implementations.length;e++)if(this._implementations[e][1]===t)return void this._implementations.splice(e,1)}}}run(e,t,n){for(const i of this._implementations){const r=i[1](e,t,n);if(r){if("boolean"===typeof r)return;return r}}}}function x(e,t){h["a"].registerCommand(e,(function(e,...n){const[i,r]=n;Object(m["c"])(o["a"].isUri(i)),Object(m["c"])(a["a"].isIPosition(r));const s=e.get(l["a"]).getModel(i);if(s){const e=a["a"].lift(r);return t(s,e,...n.slice(2))}return e.get(c["a"]).createModelReference(i).then(e=>new Promise((i,o)=>{try{const o=t(e.object.textEditorModel,a["a"].lift(r),n.slice(2));i(o)}catch(s){o(s)}}).finally(()=>{e.dispose()}))}))}function O(e,t){h["a"].registerCommand(e,(function(e,...n){const[i]=n;Object(m["c"])(o["a"].isUri(i));const r=e.get(l["a"]).getModel(i);return r?t(r,...n.slice(1)):e.get(c["a"]).createModelReference(i).then(e=>new Promise((i,r)=>{try{const r=t(e.object.textEditorModel,n.slice(1));i(r)}catch(o){r(o)}}).finally(()=>{e.dispose()}))}))}function k(e){return T.INSTANCE.registerEditorCommand(e),e}function L(e){const t=new e;return T.INSTANCE.registerEditorAction(t),t}function E(e){return T.INSTANCE.registerEditorAction(e),e}function D(e){T.INSTANCE.registerEditorAction(e)}function I(e,t){T.INSTANCE.registerEditorContribution(e,t)}(function(e){function t(e){return T.INSTANCE.getEditorCommand(e)}function n(){return T.INSTANCE.getEditorActions()}function i(){return T.INSTANCE.getEditorContributions()}function r(e){return T.INSTANCE.getEditorContributions().filter(t=>e.indexOf(t.id)>=0)}function o(){return T.INSTANCE.getDiffEditorContributions()}e.getEditorCommand=t,e.getEditorActions=n,e.getEditorContributions=i,e.getSomeEditorContributions=r,e.getDiffEditorContributions=o})(i||(i={}));const M={EditorCommonContributions:"editor.contributions"};class T{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(e,t){this.editorContributions.push({id:e,ctor:t})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(e){e.register(),this.editorActions.push(e)}getEditorActions(){return this.editorActions.slice(0)}registerEditorCommand(e){e.register(),this.editorCommands[e.id]=e}getEditorCommand(e){return this.editorCommands[e]||null}}function A(e){return e.register(),e}T.INSTANCE=new T,p["a"].add(M.EditorCommonContributions,T.INSTANCE);const N=A(new y({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:u["b"].MenubarEditMenu,group:"1_do",title:r["a"]({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:u["b"].CommandPalette,group:"",title:r["a"]("undo","Undo"),order:1}]}));A(new _(N,{id:"default:undo",precondition:void 0}));const P=A(new y({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:u["b"].MenubarEditMenu,group:"1_do",title:r["a"]({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:u["b"].CommandPalette,group:"",title:r["a"]("redo","Redo"),order:1}]}));A(new _(P,{id:"default:redo",precondition:void 0}));const j=A(new y({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:u["b"].MenubarSelectionMenu,group:"1_basic",title:r["a"]({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:u["b"].CommandPalette,group:"",title:r["a"]("selectAll","Select All"),order:1}]}))},b311:function(e,t,n){
|
||
/*!
|
||
* clipboard.js v2.0.8
|
||
* https://clipboardjs.com/
|
||
*
|
||
* Licensed MIT © Zeno Rocha
|
||
*/
|
||
(function(t,n){e.exports=n()})(0,(function(){return function(){var e={134:function(e,t,n){"use strict";n.d(t,{default:function(){return E}});var i=n(279),r=n.n(i),o=n(370),s=n.n(o),a=n(817),l=n.n(a);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},c(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}var f=function(){function e(t){u(this,e),this.resolveOptions(t),this.initSelection()}return d(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var e="rtl"===document.documentElement.getAttribute("dir");this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var t=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(t,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var e=this,t=this.createFakeElement();this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(t),this.selectedText=l()(t),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=l()(this.target),this.copyText()}},{key:"copyText",value:function(){var e;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==c(e)||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}(),p=f;function g(e){return g="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},g(e)}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 i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function b(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function y(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,t)}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){var t=x();return function(){var n,i=O(e);if(t){var r=O(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==g(t)&&"function"!==typeof t?S(e):t}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function k(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var L=function(e){y(n,e);var t=w(n);function n(e,i){var r;return m(this,n),r=t.call(this),r.resolveOptions(i),r.listenClick(e),r}return b(n,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof e.action?e.action:this.defaultAction,this.target="function"===typeof e.target?e.target:this.defaultTarget,this.text="function"===typeof e.text?e.text:this.defaultText,this.container="object"===g(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=s()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new p({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return k("action",e)}},{key:"defaultTarget",value:function(e){var t=k("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return k("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"===typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),n}(r()),E=L},828:function(e){var t=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function i(e,n){while(e&&e.nodeType!==t){if("function"===typeof e.matches&&e.matches(n))return e;e=e.parentNode}}e.exports=i},438:function(e,t,n){var i=n(828);function r(e,t,n,i,r){var o=s.apply(this,arguments);return e.addEventListener(n,o,r),{destroy:function(){e.removeEventListener(n,o,r)}}}function o(e,t,n,i,o){return"function"===typeof e.addEventListener?r.apply(null,arguments):"function"===typeof n?r.bind(null,document).apply(null,arguments):("string"===typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return r(e,t,n,i,o)})))}function s(e,t,n,r){return function(n){n.delegateTarget=i(n.target,t),n.delegateTarget&&r.call(e,n)}}e.exports=o},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"===typeof e||e instanceof String},t.fn=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},370:function(e,t,n){var i=n(879),r=n(438);function o(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!i.string(t))throw new TypeError("Second argument must be a String");if(!i.fn(n))throw new TypeError("Third argument must be a Function");if(i.node(e))return s(e,t,n);if(i.nodeList(e))return a(e,t,n);if(i.string(e))return l(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function s(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function a(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}function l(e,t,n){return r(document.body,e,t,n)}e.exports=o},817:function(e){function t(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var i=window.getSelection(),r=document.createRange();r.selectNodeContents(e),i.removeAllRanges(),i.addRange(r),t=i.toString()}return t}e.exports=t},279:function(e){function t(){}t.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var i=this;function r(){i.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,r=n.length;for(i;i<r;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],r=[];if(i&&t)for(var o=0,s=i.length;o<s;o++)i[o].fn!==t&&i[o].fn._!==t&&r.push(i[o]);return r.length?n[e]=r:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}return function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),n(134)}().default}))},b329:function(e,t,n){},b362:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("4a3f"),r=n("6d8b"),o=/cubic-bezier\(([0-9,\.e ]+)\)/;function s(e){var t=e&&o.exec(e);if(t){var n=t[1].split(","),s=+Object(r["trim"])(n[0]),a=+Object(r["trim"])(n[1]),l=+Object(r["trim"])(n[2]),c=+Object(r["trim"])(n[3]);if(isNaN(s+a+l+c))return;var u=[];return function(e){return e<=0?0:e>=1?1:Object(i["f"])(0,s,l,1,e,u)&&Object(i["a"])(0,a,c,1,u[0])}}}},b367:function(e,t,n){var i=n("5524"),r=n("ef08"),o="__core-js_shared__",s=r[o]||(r[o]={});(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("e444")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},b3b2:function(e,t,n){"use strict";n.r(t),n.d(t,"MoveWordCommand",(function(){return b})),n.d(t,"WordLeftCommand",(function(){return y})),n.d(t,"WordRightCommand",(function(){return _})),n.d(t,"CursorWordStartLeft",(function(){return w})),n.d(t,"CursorWordEndLeft",(function(){return C})),n.d(t,"CursorWordLeft",(function(){return S})),n.d(t,"CursorWordStartLeftSelect",(function(){return x})),n.d(t,"CursorWordEndLeftSelect",(function(){return O})),n.d(t,"CursorWordLeftSelect",(function(){return k})),n.d(t,"CursorWordAccessibilityLeft",(function(){return L})),n.d(t,"CursorWordAccessibilityLeftSelect",(function(){return E})),n.d(t,"CursorWordStartRight",(function(){return D})),n.d(t,"CursorWordEndRight",(function(){return I})),n.d(t,"CursorWordRight",(function(){return M})),n.d(t,"CursorWordStartRightSelect",(function(){return T})),n.d(t,"CursorWordEndRightSelect",(function(){return A})),n.d(t,"CursorWordRightSelect",(function(){return N})),n.d(t,"CursorWordAccessibilityRight",(function(){return P})),n.d(t,"CursorWordAccessibilityRightSelect",(function(){return j})),n.d(t,"DeleteWordCommand",(function(){return R})),n.d(t,"DeleteWordLeftCommand",(function(){return F})),n.d(t,"DeleteWordRightCommand",(function(){return B})),n.d(t,"DeleteWordStartLeft",(function(){return W})),n.d(t,"DeleteWordEndLeft",(function(){return V})),n.d(t,"DeleteWordLeft",(function(){return z})),n.d(t,"DeleteWordStartRight",(function(){return H})),n.d(t,"DeleteWordEndRight",(function(){return U})),n.d(t,"DeleteWordRight",(function(){return q})),n.d(t,"DeleteInsideWord",(function(){return $}));var i=n("dff7"),r=n("b2cc"),o=n("2c29"),s=n("2e5d"),a=n("d48d"),l=n("e6ff"),c=n("7061"),u=n("6a89"),h=n("8025"),d=n("c101"),f=n("4779"),p=n("4fc3"),g=n("fd49"),m=n("70cb"),v=n("1665");class b extends r["c"]{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){if(!t.hasModel())return;const i=Object(l["a"])(t.getOption(115)),r=t.getModel(),o=t.getSelections(),a=o.map(e=>{const t=new c["a"](e.positionLineNumber,e.positionColumn),n=this._move(i,r,t,this._wordNavigationType);return this._moveTo(e,n,this._inSelectionMode)});if(r.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,a.map(e=>s["d"].fromModelSelection(e))),1===a.length){const e=new c["a"](a[0].positionLineNumber,a[0].positionColumn);t.revealPosition(e,0)}}_moveTo(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)}}class y extends b{_move(e,t,n,i){return a["a"].moveWordLeft(e,t,n,i)}}class _ extends b{_move(e,t,n,i){return a["a"].moveWordRight(e,t,n,i)}}class w extends y{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}class C extends y{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}class S extends y{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:p["a"].and(d["a"].textInputFocus,null===(e=p["a"].and(f["a"],v["b"]))||void 0===e?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}}class x extends y{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}class O extends y{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}class k extends y{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:p["a"].and(d["a"].textInputFocus,null===(e=p["a"].and(f["a"],v["b"]))||void 0===e?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}}class L extends y{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,n,i){return super._move(Object(l["a"])(g["g"].wordSeparators.defaultValue),t,n,i)}}class E extends y{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,n,i){return super._move(Object(l["a"])(g["g"].wordSeparators.defaultValue),t,n,i)}}class D extends _{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}class I extends _{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:p["a"].and(d["a"].textInputFocus,null===(e=p["a"].and(f["a"],v["b"]))||void 0===e?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}}class M extends _{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}class T extends _{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}class A extends _{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:p["a"].and(d["a"].textInputFocus,null===(e=p["a"].and(f["a"],v["b"]))||void 0===e?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}}class N extends _{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}class P extends _{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,n,i){return super._move(Object(l["a"])(g["g"].wordSeparators.defaultValue),t,n,i)}}class j extends _{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,n,i){return super._move(Object(l["a"])(g["g"].wordSeparators.defaultValue),t,n,i)}}class R extends r["c"]{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){if(!t.hasModel())return;const i=Object(l["a"])(t.getOption(115)),r=t.getModel(),s=t.getSelections(),a=t.getOption(5),c=t.getOption(8),u=m["a"].getAutoClosingPairs(r.getLanguageIdentifier().id),h=t._getViewModel(),d=s.map(e=>{const n=this._delete({wordSeparators:i,model:r,selection:e,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(6),autoClosingBrackets:a,autoClosingQuotes:c,autoClosingPairs:u,autoClosedCharacters:h.getCursorAutoClosedCharacters()},this._wordNavigationType);return new o["a"](n,"")});t.pushUndoStop(),t.executeCommands(this.id,d),t.pushUndoStop()}}class F extends R{_delete(e,t){let n=a["a"].deleteWordLeft(e,t);return n||new u["a"](1,1,1,1)}}class B extends R{_delete(e,t){let n=a["a"].deleteWordRight(e,t);if(n)return n;const i=e.model.getLineCount(),r=e.model.getLineMaxColumn(i);return new u["a"](i,r,i,r)}}class W extends F{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:d["a"].writable})}}class V extends F{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:d["a"].writable})}}class z extends F{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:d["a"].writable,kbOpts:{kbExpr:d["a"].textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}class H extends B{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:d["a"].writable})}}class U extends B{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:d["a"].writable})}}class q extends B{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:d["a"].writable,kbOpts:{kbExpr:d["a"].textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}class $ extends r["b"]{constructor(){super({id:"deleteInsideWord",precondition:d["a"].writable,label:i["a"]("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,n){if(!t.hasModel())return;const i=Object(l["a"])(t.getOption(115)),r=t.getModel(),s=t.getSelections(),c=s.map(e=>{const t=a["a"].deleteInsideWord(i,r,e);return new o["a"](t,"")});t.pushUndoStop(),t.executeCommands(this.id,c),t.pushUndoStop()}}Object(r["k"])(new w),Object(r["k"])(new C),Object(r["k"])(new S),Object(r["k"])(new x),Object(r["k"])(new O),Object(r["k"])(new k),Object(r["k"])(new D),Object(r["k"])(new I),Object(r["k"])(new M),Object(r["k"])(new T),Object(r["k"])(new A),Object(r["k"])(new N),Object(r["k"])(new L),Object(r["k"])(new E),Object(r["k"])(new P),Object(r["k"])(new j),Object(r["k"])(new W),Object(r["k"])(new V),Object(r["k"])(new z),Object(r["k"])(new H),Object(r["k"])(new U),Object(r["k"])(new q),Object(r["j"])($)},b3c1:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var i=Math.round(9*Math.random()),r="function"===typeof Object.defineProperty,o=function(){function e(){this._id="__ec_inner_"+i++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return r?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype["delete"]=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}(),s=o,a=n("d51b"),l=n("6d8b"),c=n("3842"),u=n("a15a"),h=n("5210"),d=n("726e"),f=new s,p=new a["a"](100),g=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function m(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),i=t.getZr(),r="svg"===i.painter.type;e.dirty&&f["delete"](e);var o=f.get(e);if(o)return o;var s=Object(l["defaults"])(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===s.backgroundColor&&(s.backgroundColor=null);var a={repeat:"repeat"};return m(a),a.rotation=s.rotation,a.scaleX=a.scaleY=r?1:1/n,f.set(e,a),e.dirty=!1,a;function m(e){for(var t,o=[n],a=!0,f=0;f<g.length;++f){var m=s[g[f]];if(null!=m&&!Object(l["isArray"])(m)&&!Object(l["isString"])(m)&&!Object(l["isNumber"])(m)&&"boolean"!==typeof m){a=!1;break}o.push(m)}if(a){t=o.join(",")+(r?"-svg":"");var C=p.get(t);C&&(r?e.svgElement=C:e.image=C)}var S,x=b(s.dashArrayX),O=y(s.dashArrayY),k=v(s.symbol),L=_(x),E=w(O),D=!r&&d["d"].createCanvas(),I=r&&{tag:"g",attrs:{},key:"dcl",children:[]},M=T();function T(){for(var e=1,t=0,n=L.length;t<n;++t)e=Object(c["d"])(e,L[t]);var i=1;for(t=0,n=k.length;t<n;++t)i=Object(c["d"])(i,k[t].length);e*=i;var r=E*L.length*k.length;return{width:Math.max(1,Math.min(e,s.maxTileWidth)),height:Math.max(1,Math.min(r,s.maxTileHeight))}}function A(){S&&(S.clearRect(0,0,D.width,D.height),s.backgroundColor&&(S.fillStyle=s.backgroundColor,S.fillRect(0,0,D.width,D.height)));for(var e=0,t=0;t<O.length;++t)e+=O[t];if(!(e<=0)){var o=-E,a=0,l=0,c=0;while(o<M.height){if(a%2===0){var d=l/2%k.length,f=0,p=0,g=0;while(f<2*M.width){var m=0;for(t=0;t<x[c].length;++t)m+=x[c][t];if(m<=0)break;if(p%2===0){var v=.5*(1-s.symbolSize),b=f+x[c][p]*v,y=o+O[a]*v,_=x[c][p]*s.symbolSize,w=O[a]*s.symbolSize,C=g/2%k[d].length;L(b,y,_,w,k[d][C])}f+=x[c][p],++g,++p,p===x[c].length&&(p=0)}++c,c===x.length&&(c=0)}o+=O[a],++l,++a,a===O.length&&(a=0)}}function L(e,t,o,a,l){var c=r?1:n,d=Object(u["a"])(l,e*c,t*c,o*c,a*c,s.color,s.symbolKeepAspect);if(r){var f=i.painter.renderOneToVNode(d);f&&I.children.push(f)}else Object(h["b"])(S,d)}}D&&(D.width=M.width*n,D.height=M.height*n,S=D.getContext("2d")),A(),a&&p.put(t,D||I),e.image=D,e.svgElement=I,e.svgWidth=M.width,e.svgHeight=M.height}}function v(e){if(!e||0===e.length)return[["rect"]];if(Object(l["isString"])(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!Object(l["isString"])(e[n])){t=!1;break}if(t)return v([e]);var i=[];for(n=0;n<e.length;++n)Object(l["isString"])(e[n])?i.push([e[n]]):i.push(e[n]);return i}function b(e){if(!e||0===e.length)return[[0,0]];if(Object(l["isNumber"])(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,i=0;i<e.length;++i)if(!Object(l["isNumber"])(e[i])){n=!1;break}if(n)return b([e]);var r=[];for(i=0;i<e.length;++i)if(Object(l["isNumber"])(e[i])){t=Math.ceil(e[i]);r.push([t,t])}else{t=Object(l["map"])(e[i],(function(e){return Math.ceil(e)}));t.length%2===1?r.push(t.concat(t)):r.push(t)}return r}function y(e){if(!e||"object"===typeof e&&0===e.length)return[0,0];if(Object(l["isNumber"])(e)){var t=Math.ceil(e);return[t,t]}var n=Object(l["map"])(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}function _(e){return Object(l["map"])(e,(function(e){return w(e)}))}function w(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?2*t:t}},b400:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return l}));var i,r,o=n("0a0f"),s=n("dff7"),a=n("4b76");(function(e){e[e["Hint"]=1]="Hint",e[e["Info"]=2]="Info",e[e["Warning"]=4]="Warning",e[e["Error"]=8]="Error"})(i||(i={})),function(e){function t(e,t){return t-e}e.compare=t;const n=Object.create(null);function i(e){return n[e]||""}function r(t){switch(t){case a["a"].Error:return e.Error;case a["a"].Warning:return e.Warning;case a["a"].Info:return e.Info;case a["a"].Ignore:return e.Hint}}function o(t){switch(t){case e.Error:return a["a"].Error;case e.Warning:return a["a"].Warning;case e.Info:return a["a"].Info;case e.Hint:return a["a"].Ignore}}n[e.Error]=Object(s["a"])("sev.error","Error"),n[e.Warning]=Object(s["a"])("sev.warning","Warning"),n[e.Info]=Object(s["a"])("sev.info","Info"),e.toString=i,e.fromSeverity=r,e.toSeverity=o}(i||(i={})),function(e){const t="";function n(e){return r(e,!0)}function r(e,n){let r=[t];return e.source?r.push(e.source.replace("¦","\\¦")):r.push(t),e.code?"string"===typeof e.code?r.push(e.code.replace("¦","\\¦")):r.push(e.code.value.replace("¦","\\¦")):r.push(t),void 0!==e.severity&&null!==e.severity?r.push(i.toString(e.severity)):r.push(t),e.message&&n?r.push(e.message.replace("¦","\\¦")):r.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?r.push(e.startLineNumber.toString()):r.push(t),void 0!==e.startColumn&&null!==e.startColumn?r.push(e.startColumn.toString()):r.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?r.push(e.endLineNumber.toString()):r.push(t),void 0!==e.endColumn&&null!==e.endColumn?r.push(e.endColumn.toString()):r.push(t),r.push(t),r.join("¦")}e.makeKey=n,e.makeKeyOptionalMessage=r}(r||(r={}));const l=Object(o["c"])("markerService")},b42e:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?i:n)(t)}},b4de:function(e,t,n){t=e.exports=n("3bd2"),t.Stream=t,t.Readable=t,t.Writable=n("1beb"),t.Duplex=n("030c"),t.Transform=n("7b6a"),t.PassThrough=n("aebc"),t.finished=n("ddda"),t.pipeline=n("32c3")},b4f8:function(e,t,n){var i=n("23e7"),r=n("d066"),o=n("1a2d"),s=n("577e"),a=n("5692"),l=n("0b43"),c=a("string-to-symbol-registry"),u=a("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=s(e);if(o(c,t))return c[t];var n=r("Symbol")(t);return c[t]=n,u[n]=t,n}})},b50d:function(e,t,n){"use strict";var i=n("c532"),r=n("467f"),o=n("7aac"),s=n("30b5"),a=n("83b9"),l=n("c345"),c=n("3934"),u=n("2d83"),h=n("2444"),d=n("7a77");e.exports=function(e){return new Promise((function(t,n){var f,p=e.data,g=e.headers,m=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}i.isFormData(p)&&delete g["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(y+":"+_)}var w=a(e.baseURL,e.url);function C(){if(b){var i="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null,o=m&&"text"!==m&&"json"!==m?b.response:b.responseText,s={data:o,status:b.status,statusText:b.statusText,headers:i,config:e,request:b};r((function(e){t(e),v()}),(function(e){n(e),v()}),s),b=null}}if(b.open(e.method.toUpperCase(),s(w,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=C:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(C)},b.onabort=function(){b&&(n(u("Request aborted",e,"ECONNABORTED",b)),b=null)},b.onerror=function(){n(u("Network Error",e,null,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||h.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,i.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},i.isStandardBrowserEnv()){var S=(e.withCredentials||c(w))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;S&&(g[e.xsrfHeaderName]=S)}"setRequestHeader"in b&&i.forEach(g,(function(e,t){"undefined"===typeof p&&"content-type"===t.toLowerCase()?delete g[t]:b.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),m&&"json"!==m&&(b.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){b&&(n(!e||e&&e.type?new d("canceled"):e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),p||(p=null),b.send(p)}))}},b539:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var i=n("0a0f");class r{constructor(e){this.callback=e}report(e){this._value=e,this.callback(this._value)}}r.None=Object.freeze({report(){}});const o=Object(i["c"])("editorProgressService")},b574:function(e,t,n){"use strict";n.r(t),n.d(t,"SnippetController2",(function(){return m}));var i=n("a666"),r=n("b2cc"),o=n("6a89"),s=n("8025"),a=n("c101"),l=n("4153"),c=n("4fc3"),u=n("d3d7"),h=n("59a4"),d=n("dff7"),f=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},p=function(e,t){return function(n,i){t(n,i,e)}};const g={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let m=class e{constructor(t,n,r){this._editor=t,this._logService=n,this._snippetListener=new i["b"],this._modelVersionId=-1,this._inSnippet=e.InSnippetMode.bindTo(r),this._hasNextTabstop=e.HasNextTabstop.bindTo(r),this._hasPrevTabstop=e.HasPrevTabstop.bindTo(r)}static get(t){return t.getContribution(e.ID)}dispose(){var e;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),null===(e=this._session)||void 0===e||e.dispose(),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,"undefined"===typeof t?g:Object.assign(Object.assign({},g),t))}catch(n){this.cancel(),this._logService.error(n),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"<no_session>")}}_doInsert(e,t){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 h["a"](this._editor,e,t),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(e=>e.isFlush&&this.cancel())),this._snippetListener.add(this._editor.onDidChangeModel(()=>this.cancel())),this._snippetListener.add(this._editor.onDidChangeCursorSelection(()=>this._updateState())))}_updateState(){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()}}_handleChoice(){if(!this._session||!this._editor.hasModel())return void(this._currentChoice=void 0);const{choice:e}=this._session;if(e){if(this._currentChoice!==e){this._currentChoice=e,this._editor.setSelections(this._editor.getSelections().map(e=>s["a"].fromPositions(e.getStartPosition())));const[t]=e.options;Object(l["f"])(this._editor,e.options.map((e,n)=>({kind:13,label:e.value,insertText:e.value,sortText:"a".repeat(n+1),range:o["a"].fromPositions(this._editor.getPosition(),this._editor.getPosition().delta(0,t.value.length))})))}}else this._currentChoice=void 0}finish(){while(this._inSnippet.get())this.next()}cancel(e=!1){var t;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),null===(t=this._session)||void 0===t||t.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){this._session&&this._session.prev(),this._updateState()}next(){this._session&&this._session.next(),this._updateState()}isInSnippet(){return Boolean(this._inSnippet.get())}};m.ID="snippetController2",m.InSnippetMode=new c["c"]("inSnippetMode",!1,Object(d["a"])("inSnippetMode","Whether the editor in current in snippet mode")),m.HasNextTabstop=new c["c"]("hasNextTabstop",!1,Object(d["a"])("hasNextTabstop","Whether there is a next tab stop when in snippet mode")),m.HasPrevTabstop=new c["c"]("hasPrevTabstop",!1,Object(d["a"])("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode")),m=f([p(1,u["b"]),p(2,c["b"])],m),Object(r["l"])(m.ID,m);const v=r["c"].bindToContribution(m.get);Object(r["k"])(new v({id:"jumpToNextSnippetPlaceholder",precondition:c["a"].and(m.InSnippetMode,m.HasNextTabstop),handler:e=>e.next(),kbOpts:{weight:130,kbExpr:a["a"].editorTextFocus,primary:2}})),Object(r["k"])(new v({id:"jumpToPrevSnippetPlaceholder",precondition:c["a"].and(m.InSnippetMode,m.HasPrevTabstop),handler:e=>e.prev(),kbOpts:{weight:130,kbExpr:a["a"].editorTextFocus,primary:1026}})),Object(r["k"])(new v({id:"leaveSnippet",precondition:m.InSnippetMode,handler:e=>e.cancel(!0),kbOpts:{weight:130,kbExpr:a["a"].editorTextFocus,primary:9,secondary:[1033]}})),Object(r["k"])(new v({id:"acceptSnippet",precondition:m.InSnippetMode,handler:e=>e.finish()}))},b575:function(e,t,n){var i,r,o,s,a,l,c,u,h=n("da84"),d=n("0366"),f=n("06cf").f,p=n("2cf49").set,g=n("1cdc"),m=n("d4c3"),v=n("a4b4"),b=n("605d"),y=h.MutationObserver||h.WebKitMutationObserver,_=h.document,w=h.process,C=h.Promise,S=f(h,"queueMicrotask"),x=S&&S.value;x||(i=function(){var e,t;b&&(e=w.domain)&&e.exit();while(r){t=r.fn,r=r.next;try{t()}catch(n){throw r?s():o=void 0,n}}o=void 0,e&&e.enter()},g||b||v||!y||!_?!m&&C&&C.resolve?(c=C.resolve(void 0),c.constructor=C,u=d(c.then,c),s=function(){u(i)}):b?s=function(){w.nextTick(i)}:(p=d(p,h),s=function(){p(i)}):(a=!0,l=_.createTextNode(""),new y(i).observe(l,{characterData:!0}),s=function(){l.data=a=!a})),e.exports=x||function(e){var t={fn:e,next:void 0};o&&(o.next=t),r||(r=t,s()),o=t}},b57f:function(e,t,n){"use strict";n.d(t,"b",(function(){return Xe})),n.d(t,"a",(function(){return at}));var i=n("fdcc"),r=n("308f"),o=n("a666"),s=n("3742"),a=n("6d8e"),l=n("fd49"),c=n("7061"),u=n("6a89"),h=n("8025"),d=n("3352"),f=n("a054");class p{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function g(e,t,n,i,r){let o;for(r.spacesDiff=0,r.looksLikeAlignment=!1,o=0;o<t&&o<i;o++){let t=e.charCodeAt(o),i=n.charCodeAt(o);if(t!==i)break}let s=0,a=0;for(let d=o;d<t;d++){let t=e.charCodeAt(d);32===t?s++:a++}let l=0,c=0;for(let d=o;d<i;d++){let e=n.charCodeAt(d);32===e?l++:c++}if(s>0&&a>0)return;if(l>0&&c>0)return;let u=Math.abs(a-c),h=Math.abs(s-l);if(0===u)return r.spacesDiff=h,void(h>0&&0<=l-1&&l-1<e.length&&l<n.length&&32!==n.charCodeAt(l)&&32===e.charCodeAt(l-1)&&44===e.charCodeAt(e.length-1)&&(r.looksLikeAlignment=!0));h%u!==0||(r.spacesDiff=h/u)}function m(e,t,n){const i=Math.min(e.getLineCount(),1e4);let r=0,o=0,s="",a=0;const l=[2,4,6,8,3,5,7],c=8;let u=[0,0,0,0,0,0,0,0,0],h=new p;for(let p=1;p<=i;p++){let i=e.getLineLength(p),l=e.getLineContent(p);const d=i<=65536;let f=!1,m=0,v=0,b=0;for(let t=0,n=i;t<n;t++){let n=d?l.charCodeAt(t):e.getLineCharCode(p,t);if(9===n)b++;else{if(32!==n){f=!0,m=t;break}v++}}if(!f)continue;if(b>0?r++:v>1&&o++,g(s,a,l,m,h),h.looksLikeAlignment&&(!n||t!==h.spacesDiff))continue;let y=h.spacesDiff;y<=c&&u[y]++,s=l,a=m}let d=n;r!==o&&(d=r<o);let f=t;if(d){let e=d?0:.1*i;l.forEach(t=>{let n=u[t];n>e&&(e=n,f=t)}),4===f&&u[4]>0&&u[2]>0&&u[2]>=u[4]/2&&(f=2)}return{insertSpaces:d,tabSize:f}}function v(e){return(1&e.metadata)>>>0}function b(e,t){e.metadata=254&e.metadata|t<<0}function y(e){return(2&e.metadata)>>>1===1}function _(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function w(e){return(4&e.metadata)>>>2===1}function C(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function S(e){return(24&e.metadata)>>>3}function x(e,t){e.metadata=231&e.metadata|t<<3}function O(e){return(32&e.metadata)>>>5===1}function k(e,t){e.metadata=223&e.metadata|(t?1:0)<<5}class L{constructor(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,b(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,C(this,!1),x(this,1),k(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,_(this,!1)}reset(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i}setOptions(e){this.options=e;let t=this.options.className;C(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),x(this,this.options.stickiness),k(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t}detach(){this.parent=null,this.left=null,this.right=null}}const E=new L(null,0,0);E.parent=E,E.left=E,E.right=E,b(E,0);class D{constructor(){this.root=E,this.requestNormalizeDelta=!1}intervalSearch(e,t,n,i,r){return this.root===E?[]:F(this,e,t,n,i,r)}search(e,t,n){return this.root===E?[]:R(this,e,t,n)}collectNodesFromOwner(e){return P(this,e)}collectNodesPostOrder(){return j(this)}insert(e){B(this,e),this._normalizeDeltaIfNecessary()}delete(e){V(this,e),this._normalizeDeltaIfNecessary()}resolveNode(e,t){const n=e;let i=0;while(e!==this.root)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;const r=n.start+i,o=n.end+i;n.setCachedOffsets(r,o,t)}acceptReplace(e,t,n,i){const r=A(this,e,e+t);for(let o=0,s=r.length;o<s;o++){const e=r[o];V(this,e)}this._normalizeDeltaIfNecessary(),N(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(let o=0,s=r.length;o<s;o++){const s=r[o];s.start=s.cachedAbsoluteStart,s.end=s.cachedAbsoluteEnd,T(s,e,e+t,n,i),s.maxEnd=s.end,B(this,s)}this._normalizeDeltaIfNecessary()}_normalizeDeltaIfNecessary(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,I(this))}}function I(e){let t=e.root,n=0;while(t!==E)t.left===E||y(t.left)?t.right===E||y(t.right)?(t.start=n+t.start,t.end=n+t.end,t.delta=0,K(t),_(t,!0),_(t.left,!1),_(t.right,!1),t===t.parent.right&&(n-=t.parent.delta),t=t.parent):(n+=t.delta,t=t.right):t=t.left;_(e.root,!1)}function M(e,t,n,i){return e<n||!(e>n)&&(1!==i&&(2===i||t))}function T(e,t,n,i,r){const o=S(e),s=0===o||2===o,a=1===o||2===o,l=n-t,c=i,u=Math.min(l,c),h=e.start;let d=!1;const f=e.end;let p=!1;t<=h&&f<=n&&O(e)&&(e.start=t,d=!0,e.end=t,p=!0);{const e=r?1:l>0?2:0;!d&&M(h,s,t,e)&&(d=!0),!p&&M(f,a,t,e)&&(p=!0)}if(u>0&&!r){const e=l>c?2:0;!d&&M(h,s,t+u,e)&&(d=!0),!p&&M(f,a,t+u,e)&&(p=!0)}{const i=r?1:0;!d&&M(h,s,n,i)&&(e.start=t+c,d=!0),!p&&M(f,a,n,i)&&(e.end=t+c,p=!0)}const g=c-l;d||(e.start=Math.max(0,h+g)),p||(e.end=Math.max(0,f+g)),e.start>e.end&&(e.end=e.start)}function A(e,t,n){let i=e.root,r=0,o=0,s=0,a=0,l=[],c=0;while(i!==E)if(y(i))_(i.left,!1),_(i.right,!1),i===i.parent.right&&(r-=i.parent.delta),i=i.parent;else{if(!y(i.left)){if(o=r+i.maxEnd,o<t){_(i,!0);continue}if(i.left!==E){i=i.left;continue}}s=r+i.start,s>n?_(i,!0):(a=r+i.end,a>=t&&(i.setCachedOffsets(s,a,0),l[c++]=i),_(i,!0),i.right===E||y(i.right)||(r+=i.delta,i=i.right))}return _(e.root,!1),l}function N(e,t,n,i){let r=e.root,o=0,s=0,a=0;const l=i-(n-t);while(r!==E)if(y(r))_(r.left,!1),_(r.right,!1),r===r.parent.right&&(o-=r.parent.delta),K(r),r=r.parent;else{if(!y(r.left)){if(s=o+r.maxEnd,s<t){_(r,!0);continue}if(r.left!==E){r=r.left;continue}}a=o+r.start,a>n?(r.start+=l,r.end+=l,r.delta+=l,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),_(r,!0)):(_(r,!0),r.right===E||y(r.right)||(o+=r.delta,r=r.right))}_(e.root,!1)}function P(e,t){let n=e.root,i=[],r=0;while(n!==E)y(n)?(_(n.left,!1),_(n.right,!1),n=n.parent):n.left===E||y(n.left)?(n.ownerId===t&&(i[r++]=n),_(n,!0),n.right===E||y(n.right)||(n=n.right)):n=n.left;return _(e.root,!1),i}function j(e){let t=e.root,n=[],i=0;while(t!==E)y(t)?(_(t.left,!1),_(t.right,!1),t=t.parent):t.left===E||y(t.left)?t.right===E||y(t.right)?(n[i++]=t,_(t,!0)):t=t.right:t=t.left;return _(e.root,!1),n}function R(e,t,n,i){let r=e.root,o=0,s=0,a=0,l=[],c=0;while(r!==E){if(y(r)){_(r.left,!1),_(r.right,!1),r===r.parent.right&&(o-=r.parent.delta),r=r.parent;continue}if(r.left!==E&&!y(r.left)){r=r.left;continue}s=o+r.start,a=o+r.end,r.setCachedOffsets(s,a,i);let e=!0;t&&r.ownerId&&r.ownerId!==t&&(e=!1),n&&w(r)&&(e=!1),e&&(l[c++]=r),_(r,!0),r.right===E||y(r.right)||(o+=r.delta,r=r.right)}return _(e.root,!1),l}function F(e,t,n,i,r,o){let s=e.root,a=0,l=0,c=0,u=0,h=[],d=0;while(s!==E)if(y(s))_(s.left,!1),_(s.right,!1),s===s.parent.right&&(a-=s.parent.delta),s=s.parent;else{if(!y(s.left)){if(l=a+s.maxEnd,l<t){_(s,!0);continue}if(s.left!==E){s=s.left;continue}}if(c=a+s.start,c>n)_(s,!0);else{if(u=a+s.end,u>=t){s.setCachedOffsets(c,u,o);let e=!0;i&&s.ownerId&&s.ownerId!==i&&(e=!1),r&&w(s)&&(e=!1),e&&(h[d++]=s)}_(s,!0),s.right===E||y(s.right)||(a+=s.delta,s=s.right)}}return _(e.root,!1),h}function B(e,t){if(e.root===E)return t.parent=E,t.left=E,t.right=E,b(t,0),e.root=t,e.root;W(e,t),G(t.parent);let n=t;while(n!==e.root&&1===v(n.parent))if(n.parent===n.parent.parent.left){const t=n.parent.parent.right;1===v(t)?(b(n.parent,0),b(t,0),b(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&(n=n.parent,U(e,n)),b(n.parent,0),b(n.parent.parent,1),q(e,n.parent.parent))}else{const t=n.parent.parent.left;1===v(t)?(b(n.parent,0),b(t,0),b(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&(n=n.parent,q(e,n)),b(n.parent,0),b(n.parent.parent,1),U(e,n.parent.parent))}return b(e.root,0),t}function W(e,t){let n=0,i=e.root;const r=t.start,o=t.end;while(1){const e=Y(r,o,i.start+n,i.end+n);if(e<0){if(i.left===E){t.start-=n,t.end-=n,t.maxEnd-=n,i.left=t;break}i=i.left}else{if(i.right===E){t.start-=n+i.delta,t.end-=n+i.delta,t.maxEnd-=n+i.delta,i.right=t;break}n+=i.delta,i=i.right}}t.parent=i,t.left=E,t.right=E,b(t,1)}function V(e,t){let n,i;if(t.left===E?(n=t.right,i=t,n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===E?(n=t.left,i=t):(i=z(t.right),n=i.right,n.start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,b(n,0),t.detach(),H(),K(n),void(e.root.parent=E);let r,o=1===v(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(i.parent===t?n.parent=i:n.parent=i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,b(i,v(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==E&&(i.left.parent=i),i.right!==E&&(i.right.parent=i)),t.detach(),o)return G(n.parent),i!==t&&(G(i),G(i.parent)),void H();G(n),G(n.parent),i!==t&&(G(i),G(i.parent));while(n!==e.root&&0===v(n))n===n.parent.left?(r=n.parent.right,1===v(r)&&(b(r,0),b(n.parent,1),U(e,n.parent),r=n.parent.right),0===v(r.left)&&0===v(r.right)?(b(r,1),n=n.parent):(0===v(r.right)&&(b(r.left,0),b(r,1),q(e,r),r=n.parent.right),b(r,v(n.parent)),b(n.parent,0),b(r.right,0),U(e,n.parent),n=e.root)):(r=n.parent.left,1===v(r)&&(b(r,0),b(n.parent,1),q(e,n.parent),r=n.parent.left),0===v(r.left)&&0===v(r.right)?(b(r,1),n=n.parent):(0===v(r.left)&&(b(r.right,0),b(r,1),U(e,r),r=n.parent.left),b(r,v(n.parent)),b(n.parent,0),b(r.left,0),q(e,n.parent),n=e.root));b(n,0),H()}function z(e){while(e.left!==E)e=e.left;return e}function H(){E.parent=E,E.delta=0,E.start=0,E.end=0}function U(e,t){const n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==E&&(n.left.parent=t),n.parent=t.parent,t.parent===E?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,K(t),K(n)}function q(e,t){const n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==E&&(n.right.parent=t),n.parent=t.parent,t.parent===E?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,K(t),K(n)}function $(e){let t=e.end;if(e.left!==E){const n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==E){const n=e.right.maxEnd+e.delta;n>t&&(t=n)}return t}function K(e){e.maxEnd=$(e)}function G(e){while(e!==E){const t=$(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function Y(e,t,n,i){return e===n?t-i:e-n}class Z{constructor(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==X)return Q(this.right);let e=this;while(e.parent!==X){if(e.parent.left===e)break;e=e.parent}return e.parent===X?X:e.parent}prev(){if(this.left!==X)return J(this.left);let e=this;while(e.parent!==X){if(e.parent.right===e)break;e=e.parent}return e.parent===X?X:e.parent}detach(){this.parent=null,this.left=null,this.right=null}}const X=new Z(null,0);function Q(e){while(e.left!==X)e=e.left;return e}function J(e){while(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 ie(e,t){let 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,t.parent=n}function re(e,t){let 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,t.parent=n}function oe(e,t){let n,i;if(t.left===X?(i=t,n=i.right):t.right===X?(i=t,n=i.left):(i=Q(t.right),n=i.right),i===e.root)return e.root=n,n.color=0,t.detach(),ne(),void(e.root.parent=X);let r,o=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,le(e,n)):(i.parent===t?n.parent=i:n.parent=i.parent,le(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==X&&(i.left.parent=i),i.right!==X&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,le(e,i)),t.detach(),n.parent.left===n){let t=ee(n),i=te(n);if(t!==n.parent.size_left||i!==n.parent.lf_left){let r=t-n.parent.size_left,o=i-n.parent.lf_left;n.parent.size_left=t,n.parent.lf_left=i,ae(e,n.parent,r,o)}}if(le(e,n.parent),o)ne();else{while(n!==e.root&&0===n.color)n===n.parent.left?(r=n.parent.right,1===r.color&&(r.color=0,n.parent.color=1,ie(e,n.parent),r=n.parent.right),0===r.left.color&&0===r.right.color?(r.color=1,n=n.parent):(0===r.right.color&&(r.left.color=0,r.color=1,re(e,r),r=n.parent.right),r.color=n.parent.color,n.parent.color=0,r.right.color=0,ie(e,n.parent),n=e.root)):(r=n.parent.left,1===r.color&&(r.color=0,n.parent.color=1,re(e,n.parent),r=n.parent.left),0===r.left.color&&0===r.right.color?(r.color=1,n=n.parent):(0===r.left.color&&(r.right.color=0,r.color=1,ie(e,r),r=n.parent.left),r.color=n.parent.color,n.parent.color=0,r.left.color=0,re(e,n.parent),n=e.root));n.color=0,ne()}}function se(e,t){le(e,t);while(t!==e.root&&1===t.parent.color)if(t.parent===t.parent.parent.left){const n=t.parent.parent.right;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&(t=t.parent,ie(e,t)),t.parent.color=0,t.parent.parent.color=1,re(e,t.parent.parent))}else{const n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&(t=t.parent,re(e,t)),t.parent.color=0,t.parent.parent.color=1,ie(e,t.parent.parent))}e.root.color=0}function ae(e,t,n,i){while(t!==e.root&&t!==X)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function le(e,t){let n=0,i=0;if(t!==e.root){if(0===n){while(t!==e.root&&t===t.parent.right)t=t.parent;if(t===e.root)return;t=t.parent,n=ee(t.left)-t.size_left,i=te(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i}while(t!==e.root&&(0!==n||0!==i))t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}X.parent=X,X.left=X,X.right=X,X.color=0;var ce=n("8c02");const ue=65535;function he(e){let t;return t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length),t.set(e,0),t}class de{constructor(e,t,n,i,r){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=r}}function fe(e,t=!0){let n=[0],i=1;for(let r=0,o=e.length;r<o;r++){const t=e.charCodeAt(r);13===t?r+1<o&&10===e.charCodeAt(r+1)?(n[i++]=r+2,r++):n[i++]=r+1:10===t&&(n[i++]=r+1)}return t?he(n):n}function pe(e,t){e.length=0,e[0]=0;let n=1,i=0,r=0,o=0,s=!0;for(let l=0,c=t.length;l<c;l++){const a=t.charCodeAt(l);13===a?l+1<c&&10===t.charCodeAt(l+1)?(o++,e[n++]=l+2,l++):(i++,e[n++]=l+1):10===a?(r++,e[n++]=l+1):s&&9!==a&&(a<32||a>126)&&(s=!1)}const a=new de(he(e),i,r,o,s);return e.length=0,a}class ge{constructor(e,t,n,i,r){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=i,this.length=r}}class me{constructor(e,t){this.buffer=e,this.lineStarts=t}}class ve{constructor(e,t){this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==X&&e.iterate(e.root,e=>(e!==X&&this._pieces.push(e.piece),!0))}read(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class be{constructor(e){this._limit=e,this._cache=[]}get(e){for(let t=this._cache.length-1;t>=0;t--){let n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null}get2(e){for(let t=this._cache.length-1;t>=0;t--){let n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}return null}set(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)}validate(e){let t=!1,n=this._cache;for(let i=0;i<n.length;i++){let r=n[i];(null===r.node.parent||r.nodeStartOffset>=e)&&(n[i]=null,t=!0)}if(t){let e=[];for(const t of n)null!==t&&e.push(t);this._cache=e}}}class ye{constructor(e,t,n){this.create(e,t,n)}create(e,t,n){this._buffers=[new me("",[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;let i=null;for(let r=0,o=e.length;r<o;r++)if(e[r].buffer.length>0){e[r].lineStarts||(e[r].lineStarts=fe(e[r].buffer));let t=new ge(r+1,{line:0,column:0},{line:e[r].lineStarts.length-1,column:e[r].buffer.length-e[r].lineStarts[e[r].lineStarts.length-1]},e[r].lineStarts.length-1,e[r].buffer.length);this._buffers.push(e[r]),i=this.rbInsertRight(i,t)}this._searchCache=new be(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(e){let t=ue,n=t-Math.floor(t/3),i=2*n,r="",o=0,s=[];if(this.iterate(this.root,t=>{let a=this.getNodeContent(t),l=a.length;if(o<=n||o+l<i)return r+=a,o+=l,!0;let c=r.replace(/\r\n|\r|\n/g,e);return s.push(new me(c,fe(c))),r=a,o=l,!0}),o>0){let t=r.replace(/\r\n|\r|\n/g,e);s.push(new me(t,fe(t)))}this.create(s,e,!0)}getEOL(){return this._EOL}setEOL(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)}createSnapshot(e){return new ve(this,e)}getOffsetAt(e,t){let n=0,i=this.root;while(i!==X)if(i.left!==X&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e){n+=i.size_left;let r=this.getAccumulatedValue(i,e-i.lf_left-2);return n+(r+t-1)}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n}getPositionAt(e){e=Math.floor(e),e=Math.max(0,e);let t=this.root,n=0,i=e;while(t!==X)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){let r=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+r.index,0===r.index){let e=this.getOffsetAt(n+1,1),t=i-e;return new c["a"](n+1,t+1)}return new c["a"](n+1,r.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===X){let t=this.getOffsetAt(n+1,1),r=i-e-t;return new c["a"](n+1,r+1)}t=t.right}return new c["a"](1,1)}getValueInRange(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";let n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),r=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?r:r.replace(/\r\n|\r|\n/g,t):r}getValueInRange2(e,t){if(e.node===t.node){let n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(r+e.remainder,r+t.remainder)}let n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,r=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),o=i.substring(r+e.remainder,r+n.piece.length);n=n.next();while(n!==X){let e=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(n===t.node){o+=e.substring(i,i+t.remainder);break}o+=e.substr(i,n.piece.length),n=n.next()}return o}getLinesContent(){let e=[],t=0,n="",i=!1;return this.iterate(this.root,r=>{if(r===X)return!0;const o=r.piece;let s=o.length;if(0===s)return!0;const a=this._buffers[o.bufferIndex].buffer,l=this._buffers[o.bufferIndex].lineStarts,c=o.start.line,u=o.end.line;let h=l[c]+o.start.column;if(i&&(10===a.charCodeAt(h)&&(h++,s--),e[t++]=n,n="",i=!1,0===s))return!0;if(c===u)return this._EOLNormalized||13!==a.charCodeAt(h+s-1)?n+=a.substr(h,s):(i=!0,n+=a.substr(h,s-1)),!0;n+=this._EOLNormalized?a.substring(h,Math.max(h,l[c+1]-this._EOLLength)):a.substring(h,l[c+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;for(let i=c+1;i<u;i++)n=this._EOLNormalized?a.substring(l[i],l[i+1]-this._EOLLength):a.substring(l[i],l[i+1]).replace(/(\r\n|\r|\n)$/,""),e[t++]=n;return this._EOLNormalized||13!==a.charCodeAt(l[u]+o.end.column-1)?n=a.substr(l[u],o.end.column):(i=!0,0===o.end.column?t--:n=a.substr(l[u],o.end.column-1)),!0}),i&&(e[t++]=n,n=""),e[t++]=n,e}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(e){return this._lastVisitedLine.lineNumber===e||(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"")),this._lastVisitedLine.value}_getCharCode(e){if(e.remainder===e.node.piece.length){let t=e.node.next();if(!t)return 0;let n=this._buffers[t.piece.bufferIndex],i=this.offsetInBuffer(t.piece.bufferIndex,t.piece.start);return n.buffer.charCodeAt(i)}{let t=this._buffers[e.node.piece.bufferIndex],n=this.offsetInBuffer(e.node.piece.bufferIndex,e.node.piece.start),i=n+e.remainder;return t.buffer.charCodeAt(i)}}getLineCharCode(e,t){let n=this.nodeAt2(e,t+1);return this._getCharCode(n)}getLineLength(e){if(e===this.getLineCount()){let t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength}findMatchesInNode(e,t,n,i,r,o,s,a,l,c,h){let d,f,p,g=this._buffers[e.piece.bufferIndex],m=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),v=this.offsetInBuffer(e.piece.bufferIndex,r),b=this.offsetInBuffer(e.piece.bufferIndex,o),y={line:0,column:0};t._wordSeparators?(f=g.buffer.substring(v,b),p=e=>e+v,t.reset(0)):(f=g.buffer,p=e=>e,t.reset(v));do{if(d=t.next(f),d){if(p(d.index)>=b)return c;this.positionInBuffer(e,p(d.index)-m,y);let t=this.getLineFeedCnt(e.piece.bufferIndex,r,y),o=y.line===r.line?y.column-r.column+i:y.column+1,s=o+d[0].length;if(h[c++]=Object(ce["d"])(new u["a"](n+t,o,n+t,s),d,a),p(d.index)+d[0].length>=b)return c;if(c>=l)return c}}while(d);return c}findMatchesLineByLine(e,t,n,i){const r=[];let o=0;const s=new ce["b"](t.wordSeparators,t.regex);let a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];let l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];let c=this.positionInBuffer(a.node,a.remainder),u=this.positionInBuffer(l.node,l.remainder);if(a.node===l.node)return this.findMatchesInNode(a.node,s,e.startLineNumber,e.startColumn,c,u,t,n,i,o,r),r;let h=e.startLineNumber,d=a.node;while(d!==l.node){let l=this.getLineFeedCnt(d.piece.bufferIndex,c,d.piece.end);if(l>=1){let a=this._buffers[d.piece.bufferIndex].lineStarts,u=this.offsetInBuffer(d.piece.bufferIndex,d.piece.start),f=a[c.line+l],p=h===e.startLineNumber?e.startColumn:1;if(o=this.findMatchesInNode(d,s,h,p,c,this.positionInBuffer(d,f-u),t,n,i,o,r),o>=i)return r;h+=l}let u=h===e.startLineNumber?e.startColumn-1:0;if(h===e.endLineNumber){const a=this.getLineContent(h).substring(u,e.endColumn-1);return o=this._findMatchesInLine(t,s,a,e.endLineNumber,u,o,r,n,i),r}if(o=this._findMatchesInLine(t,s,this.getLineContent(h).substr(u),h,u,o,r,n,i),o>=i)return r;h++,a=this.nodeAt2(h,1),d=a.node,c=this.positionInBuffer(a.node,a.remainder)}if(h===e.endLineNumber){let a=h===e.startLineNumber?e.startColumn-1:0;const l=this.getLineContent(h).substring(a,e.endColumn-1);return o=this._findMatchesInLine(t,s,l,e.endLineNumber,a,o,r,n,i),r}let f=h===e.startLineNumber?e.startColumn:1;return o=this.findMatchesInNode(l.node,s,h,f,c,u,t,n,i,o,r),r}_findMatchesInLine(e,t,n,i,r,o,s,a,l){const c=e.wordSeparators;if(!a&&e.simpleSearch){const t=e.simpleSearch,a=t.length,h=n.length;let f=-a;while(-1!==(f=n.indexOf(t,f+a)))if((!c||Object(ce["e"])(c,n,h,f,a))&&(s[o++]=new d["b"](new u["a"](i,f+1+r,i,f+1+a+r),null),o>=l))return o;return o}let h;t.reset(0);do{if(h=t.next(n),h&&(s[o++]=Object(ce["d"])(new u["a"](i,h.index+1+r,i,h.index+1+h[0].length+r),h,a),o>=l))return o}while(h);return o}insert(e,t,n=!1){if(this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==X){let{node:n,remainder:i,nodeStartOffset:r}=this.nodeAt(e),o=n.piece,s=o.bufferIndex,a=this.positionInBuffer(n,i);if(0===n.piece.bufferIndex&&o.end.line===this._lastChangeBufferPos.line&&o.end.column===this._lastChangeBufferPos.column&&r+o.length===e&&t.length<ue)return this.appendToNode(n,t),void this.computeBufferMetadata();if(r===e)this.insertContentToNodeLeft(t,n),this._searchCache.validate(e);else if(r+n.piece.length>e){let e=[],r=new ge(o.bufferIndex,a,o.end,this.getLineFeedCnt(o.bufferIndex,a,o.end),this.offsetInBuffer(s,o.end)-this.offsetInBuffer(s,a));if(this.shouldCheckCRLF()&&this.endWithCR(t)){let e=this.nodeCharCodeAt(n,i);if(10===e){let e={line:r.start.line+1,column:0};r=new ge(r.bufferIndex,e,r.end,this.getLineFeedCnt(r.bufferIndex,e,r.end),r.length-1),t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){let r=this.nodeCharCodeAt(n,i-1);if(13===r){let r=this.positionInBuffer(n,i-1);this.deleteNodeTail(n,r),t="\r"+t,0===n.piece.length&&e.push(n)}else this.deleteNodeTail(n,a)}else this.deleteNodeTail(n,a);let l=this.createNewPieces(t);r.length>0&&this.rbInsertRight(n,r);let c=n;for(let t=0;t<l.length;t++)c=this.rbInsertRight(c,l[t]);this.deleteNodes(e)}else this.insertContentToNodeRight(t,n)}else{let e=this.createNewPieces(t),n=this.rbInsertLeft(null,e[0]);for(let t=1;t<e.length;t++)n=this.rbInsertRight(n,e[t])}this.computeBufferMetadata()}delete(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",t<=0||this.root===X)return;let n=this.nodeAt(e),i=this.nodeAt(e+t),r=n.node,o=i.node;if(r===o){let o=this.positionInBuffer(r,n.remainder),s=this.positionInBuffer(r,i.remainder);if(n.nodeStartOffset===e){if(t===r.piece.length){let e=r.next();return oe(this,r),this.validateCRLFWithPrevNode(e),void this.computeBufferMetadata()}return this.deleteNodeHead(r,s),this._searchCache.validate(e),this.validateCRLFWithPrevNode(r),void this.computeBufferMetadata()}return n.nodeStartOffset+r.piece.length===e+t?(this.deleteNodeTail(r,o),this.validateCRLFWithNextNode(r),void this.computeBufferMetadata()):(this.shrinkNode(r,o,s),void this.computeBufferMetadata())}let s=[],a=this.positionInBuffer(r,n.remainder);this.deleteNodeTail(r,a),this._searchCache.validate(e),0===r.piece.length&&s.push(r);let l=this.positionInBuffer(o,i.remainder);this.deleteNodeHead(o,l),0===o.piece.length&&s.push(o);let c=r.next();for(let h=c;h!==X&&h!==o;h=h.next())s.push(h);let u=0===r.piece.length?r.prev():r;this.deleteNodes(s),this.validateCRLFWithNextNode(u),this.computeBufferMetadata()}insertContentToNodeLeft(e,t){let n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){let i=t.piece,r={line:i.start.line+1,column:0},o=new ge(i.bufferIndex,r,i.end,this.getLineFeedCnt(i.bufferIndex,r,i.end),i.length-1);t.piece=o,e+="\n",ae(this,t,-1,-1),0===t.piece.length&&n.push(t)}let i=this.createNewPieces(e),r=this.rbInsertLeft(t,i[i.length-1]);for(let o=i.length-2;o>=0;o--)r=this.rbInsertLeft(r,i[o]);this.validateCRLFWithPrevNode(r),this.deleteNodes(n)}insertContentToNodeRight(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");let n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]),r=i;for(let o=1;o<n.length;o++)r=this.rbInsertRight(r,n[o]);this.validateCRLFWithPrevNode(i)}positionInBuffer(e,t,n){let i=e.piece,r=e.piece.bufferIndex,o=this._buffers[r].lineStarts,s=o[i.start.line]+i.start.column,a=s+t,l=i.start.line,c=i.end.line,u=0,h=0,d=0;while(l<=c){if(u=l+(c-l)/2|0,d=o[u],u===c)break;if(h=o[u+1],a<d)c=u-1;else{if(!(a>=h))break;l=u+1}}return n?(n.line=u,n.column=a-d,null):{line:u,column:a-d}}getLineFeedCnt(e,t,n){if(0===n.column)return n.line-t.line;let i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;let r=i[n.line+1],o=i[n.line]+n.column;if(r>o+1)return n.line-t.line;let s=o-1,a=this._buffers[e].buffer;return 13===a.charCodeAt(s)?n.line-t.line+1:n.line-t.line}offsetInBuffer(e,t){let n=this._buffers[e].lineStarts;return n[t.line]+t.column}deleteNodes(e){for(let t=0;t<e.length;t++)oe(this,e[t])}createNewPieces(e){if(e.length>ue){let t=[];while(e.length>ue){const n=e.charCodeAt(ue-1);let i;13===n||n>=55296&&n<=56319?(i=e.substring(0,ue-1),e=e.substring(ue-1)):(i=e.substring(0,ue),e=e.substring(ue));let r=fe(i);t.push(new ge(this._buffers.length,{line:0,column:0},{line:r.length-1,column:i.length-r[r.length-1]},r.length-1,i.length)),this._buffers.push(new me(i,r))}let n=fe(e);return t.push(new ge(this._buffers.length,{line:0,column:0},{line:n.length-1,column:e.length-n[n.length-1]},n.length-1,e.length)),this._buffers.push(new me(e,n)),t}let t=this._buffers[0].buffer.length;const n=fe(e,!1);let i=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===t&&0!==t&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},i=this._lastChangeBufferPos;for(let e=0;e<n.length;e++)n[e]+=t+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+="_"+e,t+=1}else{if(0!==t)for(let e=0;e<n.length;e++)n[e]+=t;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(n.slice(1)),this._buffers[0].buffer+=e}const r=this._buffers[0].buffer.length;let o=this._buffers[0].lineStarts.length-1,s=r-this._buffers[0].lineStarts[o],a={line:o,column:s},l=new ge(0,i,a,this.getLineFeedCnt(0,i,a),r-t);return this._lastChangeBufferPos=a,[l]}getLineRawContent(e,t=0){let n=this.root,i="",r=this._searchCache.get2(e);if(r){n=r.node;let o=this.getAccumulatedValue(n,e-r.nodeStartLineNumber-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(r.nodeStartLineNumber+n.piece.lineFeedCnt!==e){let i=this.getAccumulatedValue(n,e-r.nodeStartLineNumber);return s.substring(a+o,a+i-t)}i=s.substring(a+o,a+n.piece.length)}else{let r=0;const o=e;while(n!==X)if(n.left!==X&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){let i=this.getAccumulatedValue(n,e-n.lf_left-2),s=this.getAccumulatedValue(n,e-n.lf_left-1),a=this._buffers[n.piece.bufferIndex].buffer,l=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:r,nodeStartLineNumber:o-(e-1-n.lf_left)}),a.substring(l+i,l+s-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){let t=this.getAccumulatedValue(n,e-n.lf_left-2),r=this._buffers[n.piece.bufferIndex].buffer,o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i=r.substring(o+t,o+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}}n=n.next();while(n!==X){let e=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){let r=this.getAccumulatedValue(n,0),o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i+=e.substring(o,o+r-t),i}{let t=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);i+=e.substr(t,n.piece.length)}n=n.next()}return i}computeBufferMetadata(){let e=this.root,t=1,n=0;while(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.validate(this._length)}getIndexOf(e,t){let n=e.piece,i=this.positionInBuffer(e,t),r=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){let t=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(t!==r)return{index:t,remainder:0}}return{index:r,remainder:i.column}}getAccumulatedValue(e,t){if(t<0)return 0;let n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,r=n.start.line+t+1;return r>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[r]-i[n.start.line]-n.start.column}deleteNodeTail(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.end),o=t,s=this.offsetInBuffer(n.bufferIndex,o),a=this.getLineFeedCnt(n.bufferIndex,n.start,o),l=a-i,c=s-r,u=n.length+c;e.piece=new ge(n.bufferIndex,n.start,o,a,u),ae(this,e,c,l)}deleteNodeHead(e,t){const n=e.piece,i=n.lineFeedCnt,r=this.offsetInBuffer(n.bufferIndex,n.start),o=t,s=this.getLineFeedCnt(n.bufferIndex,o,n.end),a=this.offsetInBuffer(n.bufferIndex,o),l=s-i,c=r-a,u=n.length+c;e.piece=new ge(n.bufferIndex,o,n.end,s,u),ae(this,e,c,l)}shrinkNode(e,t,n){const i=e.piece,r=i.start,o=i.end,s=i.length,a=i.lineFeedCnt,l=t,c=this.getLineFeedCnt(i.bufferIndex,i.start,l),u=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,r);e.piece=new ge(i.bufferIndex,i.start,l,c,u),ae(this,e,u-s,c-a);let h=new ge(i.bufferIndex,n,o,this.getLineFeedCnt(i.bufferIndex,n,o),this.offsetInBuffer(i.bufferIndex,o)-this.offsetInBuffer(i.bufferIndex,n)),d=this.rbInsertRight(e,h);this.validateCRLFWithPrevNode(d)}appendToNode(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");const n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;const r=fe(t,!1);for(let d=0;d<r.length;d++)r[d]+=i;if(n){let e=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:i-e}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(r.slice(1));const o=this._buffers[0].lineStarts.length-1,s=this._buffers[0].buffer.length-this._buffers[0].lineStarts[o],a={line:o,column:s},l=e.piece.length+t.length,c=e.piece.lineFeedCnt,u=this.getLineFeedCnt(0,e.piece.start,a),h=u-c;e.piece=new ge(e.piece.bufferIndex,e.piece.start,a,u,l),this._lastChangeBufferPos=a,ae(this,e,t.length,h)}nodeAt(e){let t=this.root,n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};let i=0;while(t!==X)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){i+=t.size_left;let n={node:t,remainder:e-t.size_left,nodeStartOffset:i};return this._searchCache.set(n),n}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null}nodeAt2(e,t){let n=this.root,i=0;while(n!==X)if(n.left!==X&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){let r=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(r+t-1,o),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){let r=this.getAccumulatedValue(n,e-n.lf_left-2);if(r+t-1<=n.piece.length)return{node:n,remainder:r+t-1,nodeStartOffset:i};t-=n.piece.length-r;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}n=n.next();while(n!==X){if(n.piece.lineFeedCnt>0){let e=this.getAccumulatedValue(n,0),i=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,e),nodeStartOffset:i}}if(n.piece.length>=t-1){let e=this.offsetOfNode(n);return{node:n,remainder:t-1,nodeStartOffset:e}}t-=n.piece.length,n=n.next()}return null}nodeCharCodeAt(e,t){if(e.piece.lineFeedCnt<1)return-1;let n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)}offsetOfNode(e){if(!e)return 0;let t=e.size_left;while(e!==this.root)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t}shouldCheckCRLF(){return!(this._EOLNormalized&&"\n"===this._EOL)}startWithLF(e){if("string"===typeof e)return 10===e.charCodeAt(0);if(e===X||0===e.piece.lineFeedCnt)return!1;let t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,r=n[i]+t.start.column;if(i===n.length-1)return!1;let o=n[i+1];return!(o>r+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(r)}endWithCR(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)}validateCRLFWithPrevNode(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){let t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}}validateCRLFWithNextNode(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){let t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}}fixCRLF(e,t){let n,i=[],r=this._buffers[e.piece.bufferIndex].lineStarts;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:r[e.piece.end.line]-r[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};const o=e.piece.length-1,s=e.piece.lineFeedCnt-1;e.piece=new ge(e.piece.bufferIndex,e.piece.start,n,s,o),ae(this,e,-1,-1),0===e.piece.length&&i.push(e);let a={line:t.piece.start.line+1,column:0};const l=t.piece.length-1,c=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new ge(t.piece.bufferIndex,a,t.piece.end,c,l),ae(this,t,-1,-1),0===t.piece.length&&i.push(t);let u=this.createNewPieces("\r\n");this.rbInsertRight(e,u[0]);for(let h=0;h<i.length;h++)oe(this,i[h])}adjustCarriageReturnFromNext(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){let n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)oe(this,n);else{const e=n.piece,t={line:e.start.line+1,column:0},i=e.length-1,r=this.getLineFeedCnt(e.bufferIndex,t,e.end);n.piece=new ge(e.bufferIndex,t,e.end,r,i),ae(this,n,-1,-1)}return!0}}return!1}iterate(e,t){if(e===X)return t(X);let n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n}getNodeContent(e){if(e===X)return"";let t,n=this._buffers[e.piece.bufferIndex],i=e.piece,r=this.offsetInBuffer(i.bufferIndex,i.start),o=this.offsetInBuffer(i.bufferIndex,i.end);return t=n.buffer.substring(r,o),t}getPieceContent(e){let t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),i=this.offsetInBuffer(e.bufferIndex,e.end),r=t.buffer.substring(n,i);return r}rbInsertRight(e,t){let n=new Z(t,1);n.left=X,n.right=X,n.parent=X,n.size_left=0,n.lf_left=0;let i=this.root;if(i===X)this.root=n,n.color=0;else if(e.right===X)e.right=n,n.parent=e;else{let t=Q(e.right);t.left=n,n.parent=t}return se(this,n),n}rbInsertLeft(e,t){let 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,n.color=0;else if(e.left===X)e.left=n,n.parent=e;else{let t=J(e.left);t.right=n,n.parent=t}return se(this,n),n}}var _e=n("4111"),we=n("e679");class Ce extends o["a"]{constructor(e,t,n,i,o,s,a){super(),this._onDidChangeContent=this._register(new r["b"]),this._BOM=t,this._mightContainNonBasicASCII=!s,this._mightContainRTL=i,this._mightContainUnusualLineTerminators=o,this._pieceTree=new ye(e,n,a)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(e){return this._pieceTree.createSnapshot(e?this._BOM:"")}getOffsetAt(e,t){return this._pieceTree.getOffsetAt(e,t)}getPositionAt(e){return this._pieceTree.getPositionAt(e)}getRangeAt(e,t){let n=e+t;const i=this.getPositionAt(e),r=this.getPositionAt(n);return new u["a"](i.lineNumber,i.column,r.lineNumber,r.column)}getValueInRange(e,t=0){if(e.isEmpty())return"";const n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)}getValueLengthInRange(e,t=0){if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;let n=this.getOffsetAt(e.startLineNumber,e.startColumn),i=this.getOffsetAt(e.endLineNumber,e.endColumn);return i-n}getCharacterCountInRange(e,t=0){if(this._mightContainNonBasicASCII){let n=0;const i=e.startLineNumber,r=e.endLineNumber;for(let t=i;t<=r;t++){const o=this.getLineContent(t),a=t===i?e.startColumn-1:0,l=t===r?e.endColumn-1:o.length;for(let e=a;e<l;e++)s["F"](o.charCodeAt(e))?(n+=1,e+=1):n+=1}return n+=this._getEndOfLine(t).length*(r-i),n}return this.getValueLengthInRange(e,t)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(e){return this._pieceTree.getLineContent(e)}getLineCharCode(e,t){return this._pieceTree.getLineCharCode(e,t)}getLineLength(e){return this._pieceTree.getLineLength(e)}getLineFirstNonWhitespaceColumn(e){const t=s["v"](this.getLineContent(e));return-1===t?0:t+1}getLineLastNonWhitespaceColumn(e){const t=s["J"](this.getLineContent(e));return-1===t?0:t+2}_getEndOfLine(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(e){this._pieceTree.setEOL(e)}applyEdits(e,t,n){let i=this._mightContainRTL,r=this._mightContainUnusualLineTerminators,o=this._mightContainNonBasicASCII,a=!0,l=[];for(let d=0;d<e.length;d++){let t=e[d];a&&t._isTracked&&(a=!1);let n=t.range;if(t.text){let e=!0;o||(e=!s["B"](t.text),o=e),!i&&e&&(i=s["m"](t.text)),!r&&e&&(r=s["n"](t.text))}let c="",u=0,h=0,f=0;if(t.text){let e;[u,h,f,e]=Object(_e["f"])(t.text);const n=this.getEOL(),i="\r\n"===n?2:1;c=0===e||e===i?t.text:t.text.replace(/\r\n|\r|\n/g,n)}l[d]={sortIndex:d,identifier:t.identifier||null,range:n,rangeOffset:this.getOffsetAt(n.startLineNumber,n.startColumn),rangeLength:this.getValueLengthInRange(n),text:c,eolCount:u,firstLineLength:h,lastLineLength:f,forceMoveMarkers:Boolean(t.forceMoveMarkers),isAutoWhitespaceEdit:t.isAutoWhitespaceEdit||!1}}l.sort(Ce._sortOpsAscending);let c=!1;for(let s=0,d=l.length-1;s<d;s++){let e=l[s].range.getEndPosition(),t=l[s+1].range.getStartPosition();if(t.isBeforeOrEqual(e)){if(t.isBefore(e))throw new Error("Overlapping ranges are not allowed!");c=!0}}a&&(l=this._reduceOperations(l));let u=n||t?Ce._getInverseEditRanges(l):[],h=[];if(t)for(let d=0;d<l.length;d++){let e=l[d],t=u[d];if(e.isAutoWhitespaceEdit&&e.range.isEmpty())for(let n=t.startLineNumber;n<=t.endLineNumber;n++){let i="";n===t.startLineNumber&&(i=this.getLineContent(e.range.startLineNumber),-1!==s["v"](i))||h.push({lineNumber:n,oldContent:i})}}let f=null;if(n){let e=0;f=[];for(let t=0;t<l.length;t++){const n=l[t],i=u[t],r=this.getValueInRange(n.range),o=n.rangeOffset+e;e+=n.text.length-r.length,f[t]={sortIndex:n.sortIndex,identifier:n.identifier,range:i,text:r,textChange:new we["a"](n.rangeOffset,r,o,n.text)}}c||f.sort((e,t)=>e.sortIndex-t.sortIndex)}this._mightContainRTL=i,this._mightContainUnusualLineTerminators=r,this._mightContainNonBasicASCII=o;const p=this._doApplyEdits(l);let g=null;if(t&&h.length>0){h.sort((e,t)=>t.lineNumber-e.lineNumber),g=[];for(let e=0,t=h.length;e<t;e++){let t=h[e].lineNumber;if(e>0&&h[e-1].lineNumber===t)continue;let n=h[e].oldContent,i=this.getLineContent(t);0!==i.length&&i!==n&&-1===s["v"](i)&&g.push(t)}}return this._onDidChangeContent.fire(),new d["a"](f,p,g)}_reduceOperations(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]}_toSingleEditOperation(e){let t=!1;const n=e[0].range,i=e[e.length-1].range,r=new u["a"](n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn);let o=n.startLineNumber,s=n.startColumn;const a=[];for(let f=0,p=e.length;f<p;f++){const n=e[f],i=n.range;t=t||n.forceMoveMarkers,a.push(this.getValueInRange(new u["a"](o,s,i.startLineNumber,i.startColumn))),n.text.length>0&&a.push(n.text),o=i.endLineNumber,s=i.endColumn}const l=a.join(""),[c,h,d]=Object(_e["f"])(l);return{sortIndex:0,identifier:e[0].identifier,range:r,rangeOffset:this.getOffsetAt(r.startLineNumber,r.startColumn),rangeLength:this.getValueLengthInRange(r,0),text:l,eolCount:c,firstLineLength:h,lastLineLength:d,forceMoveMarkers:t,isAutoWhitespaceEdit:!1}}_doApplyEdits(e){e.sort(Ce._sortOpsDescending);let t=[];for(let n=0;n<e.length;n++){let i=e[n];const r=i.range.startLineNumber,o=i.range.startColumn,s=i.range.endLineNumber,a=i.range.endColumn;if(r===s&&o===a&&0===i.text.length)continue;i.text?(this._pieceTree.delete(i.rangeOffset,i.rangeLength),this._pieceTree.insert(i.rangeOffset,i.text,!0)):this._pieceTree.delete(i.rangeOffset,i.rangeLength);const l=new u["a"](r,o,s,a);t.push({range:l,rangeLength:i.rangeLength,text:i.text,rangeOffset:i.rangeOffset,forceMoveMarkers:i.forceMoveMarkers})}return t}findMatchesLineByLine(e,t,n,i){return this._pieceTree.findMatchesLineByLine(e,t,n,i)}static _getInverseEditRanges(e){let t=[],n=0,i=0,r=null;for(let o=0,s=e.length;o<s;o++){let s,a,l,c=e[o];if(r?r.range.endLineNumber===c.range.startLineNumber?(s=n,a=i+(c.range.startColumn-r.range.endColumn)):(s=n+(c.range.startLineNumber-r.range.endLineNumber),a=c.range.startColumn):(s=c.range.startLineNumber,a=c.range.startColumn),c.text.length>0){const e=c.eolCount+1;l=1===e?new u["a"](s,a,s,a+c.firstLineLength):new u["a"](s,a,s+e-1,c.lastLineLength+1)}else l=new u["a"](s,a,s,a);n=l.endLineNumber,i=l.endColumn,t.push(l),r=c}return t}static _sortOpsAscending(e,t){let n=u["a"].compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n}static _sortOpsDescending(e,t){let n=u["a"].compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n}}class Se{constructor(e,t,n,i,r,o,s,a,l){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=r,this._containsRTL=o,this._containsUnusualLineTerminators=s,this._isBasicASCII=a,this._normalizeEOL=l}_getEOL(e){const t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"}create(e){const t=this._getEOL(e);let n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(let r=0,o=n.length;r<o;r++){let e=n[r].buffer.replace(/\r\n|\r|\n/g,t),i=fe(e);n[r]=new me(e,i)}const i=new Ce(n,this._bom,t,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:i,disposable:i}}}class xe{constructor(){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.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(e){if(0===e.length)return;0===this.chunks.length&&s["T"](e)&&(this.BOM=s["b"],e=e.substr(1));const t=e.charCodeAt(e.length-1);13===t||t>=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}_acceptChunk1(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))}_acceptChunk2(e){const t=pe(this._tmpLineStarts,e);this.chunks.push(new me(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=s["m"](e)),this.isBasicASCII||this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=s["n"](e))}finish(e=!0){return this._finish(),new Se(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,e)}_finish(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;let e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);let t=fe(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}}}var Oe=n("338e"),ke=n("e8e3"),Le=n("e1b5"),Ee=n("b707"),De=n("8bf1"),Ie=n("e58e"),Me=n("30db");class Te{constructor(){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0}_reset(e){this._beginState=[],this._valid=[],this._len=0,this._invalidLineStartIndex=0,e&&this._setBeginState(0,e)}flush(e){this._reset(e)}get invalidLineStartIndex(){return this._invalidLineStartIndex}_invalidateLine(e){e<this._len&&(this._valid[e]=!1),e<this._invalidLineStartIndex&&(this._invalidLineStartIndex=e)}_isValid(e){return e<this._len&&this._valid[e]}getBeginState(e){return e<this._len?this._beginState[e]:null}_ensureLine(e){while(e>=this._len)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++}_deleteLines(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)}_insertLines(e,t){if(0===t)return;let n=[],i=[];for(let r=0;r<t;r++)n[r]=null,i[r]=!1;this._beginState=ke["b"](this._beginState,e,n),this._valid=ke["b"](this._valid,e,i),this._len+=t}_setValid(e,t){this._ensureLine(e),this._valid[e]=t}_setBeginState(e,t){this._ensureLine(e),this._beginState[e]=t}setEndState(e,t,n){if(this._setValid(t,!0),this._invalidLineStartIndex=t+1,t===e-1)return;const i=this.getBeginState(t+1);if(null===i||!n.equals(i))return this._setBeginState(t+1,n),void this._invalidateLine(t+1);let r=t+1;while(r<e){if(!this._isValid(r))break;r++}this._invalidLineStartIndex=r}setFakeTokens(e){this._setValid(e,!1)}applyEdits(e,t){const n=e.endLineNumber-e.startLineNumber,i=t,r=Math.min(n,i);for(let o=r;o>=0;o--)this._invalidateLine(e.startLineNumber+o-1);this._acceptDeleteRange(e),this._acceptInsertText(new c["a"](e.startLineNumber,e.startColumn),t)}_acceptDeleteRange(e){const t=e.startLineNumber-1;t>=this._len||this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)}_acceptInsertText(e,t){const n=e.lineNumber-1;n>=this._len||this._insertLines(e.lineNumber,t)}}class Ae extends o["a"]{constructor(e){super(),this._isDisposed=!1,this._textModel=e,this._tokenizationStateStore=new Te,this._tokenizationSupport=null,this._register(Ee["F"].onDidChange(e=>{const t=this._textModel.getLanguageIdentifier();-1!==e.changedLanguages.indexOf(t.language)&&(this._resetTokenizationState(),this._textModel.clearTokens())})),this._register(this._textModel.onDidChangeContentFast(e=>{if(e.isFlush)this._resetTokenizationState();else{for(let t=0,n=e.changes.length;t<n;t++){const n=e.changes[t],[i]=Object(_e["f"])(n.text);this._tokenizationStateStore.applyEdits(n.range,i)}this._beginBackgroundTokenization()}})),this._register(this._textModel.onDidChangeAttached(()=>{this._beginBackgroundTokenization()})),this._register(this._textModel.onDidChangeLanguage(()=>{this._resetTokenizationState(),this._textModel.clearTokens()})),this._resetTokenizationState()}dispose(){this._isDisposed=!0,super.dispose()}_resetTokenizationState(){const[e,t]=Ne(this._textModel);this._tokenizationSupport=e,this._tokenizationStateStore.flush(t),this._beginBackgroundTokenization()}_beginBackgroundTokenization(){this._textModel.isAttachedToEditor()&&this._hasLinesToTokenize()&&Me["k"](()=>{this._isDisposed||this._revalidateTokensNow()})}_revalidateTokensNow(e=this._textModel.getLineCount()){const t=1,n=new _e["b"],i=Ie["a"].create(!1);while(this._hasLinesToTokenize()){if(i.elapsed()>t)break;const r=this._tokenizeOneInvalidLine(n);if(r>=e)break}this._beginBackgroundTokenization(),this._textModel.setTokens(n.tokens)}tokenizeViewport(e,t){const n=new _e["b"];this._tokenizeViewport(n,e,t),this._textModel.setTokens(n.tokens)}reset(){this._resetTokenizationState(),this._textModel.clearTokens()}forceTokenization(e){const t=new _e["b"];this._updateTokensUntilLine(t,e),this._textModel.setTokens(t.tokens)}isCheapToTokenize(e){if(!this._tokenizationSupport)return!0;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return!(e>t)&&(e<t||this._textModel.getLineLength(e)<2048)}_hasLinesToTokenize(){return!!this._tokenizationSupport&&this._tokenizationStateStore.invalidLineStartIndex<this._textModel.getLineCount()}_tokenizeOneInvalidLine(e){if(!this._hasLinesToTokenize())return this._textModel.getLineCount()+1;const t=this._tokenizationStateStore.invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t),t}_updateTokensUntilLine(e,t){if(!this._tokenizationSupport)return;const n=this._textModel.getLanguageIdentifier(),i=this._textModel.getLineCount(),r=t-1;for(let o=this._tokenizationStateStore.invalidLineStartIndex;o<=r;o++){const t=this._textModel.getLineContent(o+1),r=this._tokenizationStateStore.getBeginState(o),s=Pe(n,this._tokenizationSupport,t,!0,r);e.add(o+1,s.tokens),this._tokenizationStateStore.setEndState(i,o,s.endState),o=this._tokenizationStateStore.invalidLineStartIndex-1}}_tokenizeViewport(e,t,n){if(!this._tokenizationSupport)return;if(n<=this._tokenizationStateStore.invalidLineStartIndex)return;if(t<=this._tokenizationStateStore.invalidLineStartIndex)return void this._updateTokensUntilLine(e,n);let i=this._textModel.getLineFirstNonWhitespaceColumn(t),r=[],o=null;for(let l=t-1;i>0&&l>=1;l--){let e=this._textModel.getLineFirstNonWhitespaceColumn(l);if(0!==e&&e<i){if(o=this._tokenizationStateStore.getBeginState(l-1),o)break;r.push(this._textModel.getLineContent(l)),i=e}}o||(o=this._tokenizationSupport.getInitialState());const s=this._textModel.getLanguageIdentifier();let a=o;for(let l=r.length-1;l>=0;l--){let e=Pe(s,this._tokenizationSupport,r[l],!1,a);a=e.endState}for(let l=t;l<=n;l++){let t=this._textModel.getLineContent(l),n=Pe(s,this._tokenizationSupport,t,!0,a);e.add(l,n.tokens),this._tokenizationStateStore.setFakeTokens(l-1),a=n.endState}}}function Ne(e){const t=e.getLanguageIdentifier();let n=e.isTooLargeForTokenization()?null:Ee["F"].get(t.language),r=null;if(n)try{r=n.getInitialState()}catch(o){Object(i["e"])(o),n=null}return[n,r]}function Pe(e,t,n,r,o){let s=null;if(t)try{s=t.tokenize2(n,r,o.clone(),0)}catch(a){Object(i["e"])(a)}return s||(s=Object(De["e"])(e.id,n,o,0)),Le["a"].convertToEndOffset(s.tokens,n.length),s}var je=n("d093"),Re=n("70cb"),Fe=n("045b"),Be=n("1080"),We=n("ceb8");function Ve(){return new xe}function ze(e){const t=Ve();return t.acceptChunk(e),t.finish()}function He(e,t){const n="string"===typeof e?ze(e):e;return n.create(t)}let Ue=0;const qe=999,$e=1e4;class Ke{constructor(e){this._source=e,this._eos=!1}read(){if(this._eos)return null;let e=[],t=0,n=0;do{let i=this._source.read();if(null===i)return this._eos=!0,0===t?null:e.join("");if(i.length>0&&(e[t++]=i,n+=i.length),n>=65536)return e.join("")}while(1)}}const Ge=()=>{throw new Error("Invalid change accessor")};class Ye{constructor(){this._searchCanceledBrand=void 0}}function Ze(e){return e instanceof Ye?null:e}Ye.INSTANCE=new Ye;class Xe extends o["a"]{constructor(e,t,n,i=null,o){super(),this._onWillDispose=this._register(new r["b"]),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new ut(e=>this.handleBeforeFireDecorationsChangedEvent(e))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeLanguage=this._register(new r["b"]),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new r["b"]),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new r["b"]),this.onDidChangeTokens=this._onDidChangeTokens.event,this._onDidChangeOptions=this._register(new r["b"]),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new r["b"]),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeContentOrInjectedText=this._register(new r["b"]),this.onDidChangeContentOrInjectedText=this._onDidChangeContentOrInjectedText.event,this._eventEmitter=this._register(new ht),this._register(this._eventEmitter.fastEvent(e=>{this._onDidChangeContentOrInjectedText.fire(e.rawContentChangedEvent)})),Ue++,this.id="$model"+Ue,this.isForSimpleWidget=t.isForSimpleWidget,this._associatedResource="undefined"===typeof i||null===i?a["a"].parse("inmemory://model/"+Ue):i,this._undoRedoService=o,this._attachedEditorCount=0;const{textBuffer:l,disposable:c}=He(e,t.defaultEOL);this._buffer=l,this._bufferDisposable=c,this._options=Xe.resolveOptions(this._buffer,t);const h=this._buffer.getLineCount(),d=this._buffer.getValueLengthInRange(new u["a"](1,1,h,this._buffer.getLineLength(h)+1),0);t.largeFileOptimizations?this._isTooLargeForTokenization=d>Xe.LARGE_FILE_SIZE_THRESHOLD||h>Xe.LARGE_FILE_LINE_COUNT_THRESHOLD:this._isTooLargeForTokenization=!1,this._isTooLargeForSyncing=d>Xe.MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this._isDisposing=!1,this._languageIdentifier=n||De["a"],this._languageRegistryListener=Re["a"].onDidChange(e=>{e.languageIdentifier.id===this._languageIdentifier.id&&this._onDidChangeLanguageConfiguration.fire({})}),this._instanceId=s["Q"](Ue),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new tt,this._commandManager=new f["a"](this,o),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._tokens=new _e["d"],this._tokens2=new _e["e"],this._tokenization=new Ae(this)}static resolveOptions(e,t){if(t.detectIndentation){const n=m(e,t.tabSize,t.insertSpaces);return new d["e"]({tabSize:n.tabSize,indentSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}return new d["e"]({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}onDidChangeContentFast(e){return this._eventEmitter.fastEvent(t=>e(t.contentChangedEvent))}onDidChangeContent(e){return this._eventEmitter.slowEvent(t=>e(t.contentChangedEvent))}dispose(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this._isDisposing=!1;const e=new Ce([],"","\n",!1,!1,!0,!0);e.dispose(),this._buffer=e}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(e,t){this._isDisposing||this._eventEmitter.fire(new Oe["a"](e,t))}setValue(e){if(this._assertNotDisposed(),null===e)return;const{textBuffer:t,disposable:n}=He(e,this._options.defaultEOL);this._setValueFromTextBuffer(t,n)}_createContentChanged2(e,t,n,i,r,o,s){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:i}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:r,isRedoing:o,isFlush:s}}_setValueFromTextBuffer(e,t){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),o=this.getLineMaxColumn(r);this._buffer=e,this._bufferDisposable.dispose(),this._bufferDisposable=t,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new tt,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Oe["d"]([new Oe["f"]],this._versionId,!1,!1),this._createContentChanged2(new u["a"](1,1,r,o),0,i,this.getValue(),!1,!1,!0))}setEOL(e){this._assertNotDisposed();const t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;const n=this.getFullModelRange(),i=this.getValueLengthInRange(n),r=this.getLineCount(),o=this.getLineMaxColumn(r);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Oe["d"]([new Oe["e"]],this._versionId,!1,!1),this._createContentChanged2(new u["a"](1,1,r,o),0,i,this.getValue(),!1,!1,!1))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder();for(let n=0,i=t.length;n<i;n++){const i=t[n],r=i.range,o=i.cachedAbsoluteStart-i.start,s=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),a=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);i.cachedAbsoluteStart=s,i.cachedAbsoluteEnd=a,i.cachedVersionId=e,i.start=s-o,i.end=a-o,K(i)}}onBeforeAttached(){this._attachedEditorCount++,1===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)}onBeforeDetached(){this._attachedEditorCount--,0===this._attachedEditorCount&&this._onDidChangeAttached.fire(void 0)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let e=0,t=0;const n=this._buffer.getLineCount();for(let i=1;i<=n;i++){const n=this._buffer.getLineLength(i);n>=$e?t+=n:e+=n}return t>e}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(e){this._assertNotDisposed();let t="undefined"!==typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!==typeof e.indentSize?e.indentSize:this._options.indentSize,i="undefined"!==typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,r="undefined"!==typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,o=new d["e"]({tabSize:t,indentSize:n,insertSpaces:i,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:r});if(this._options.equals(o))return;let s=this._options.createChangeEvent(o);this._options=o,this._onDidChangeOptions.fire(s)}detectIndentation(e,t){this._assertNotDisposed();let n=m(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})}static _normalizeIndentationFromWhitespace(e,t,n){let i=0;for(let o=0;o<e.length;o++)"\t"===e.charAt(o)?i+=t:i++;let r="";if(!n){let e=Math.floor(i/t);i%=t;for(let t=0;t<e;t++)r+="\t"}for(let o=0;o<i;o++)r+=" ";return r}static normalizeIndentation(e,t,n){let i=s["v"](e);return-1===i&&(i=e.length),Xe._normalizeIndentationFromWhitespace(e.substring(0,i),t,n)+e.substring(i)}normalizeIndentation(e){return this._assertNotDisposed(),Xe.normalizeIndentation(e,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(e=null){const t=this.findMatches(s["a"].source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(e,t.map(e=>({range:e.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(e){this._assertNotDisposed();let t=this._validatePosition(e.lineNumber,e.column,0);return this._buffer.getOffsetAt(t.lineNumber,t.column)}getPositionAt(e){this._assertNotDisposed();let t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(e){this._versionId=e}_overwriteAlternativeVersionId(e){this._alternativeVersionId=e}_overwriteInitialUndoRedoSnapshot(e){this._initialUndoRedoSnapshot=e}getValue(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueInRange(n,e);return t?this._buffer.getBOM()+i:i}createSnapshot(e=!1){return new Ke(this._buffer.createSnapshot(e))}getValueLength(e,t=!1){this._assertNotDisposed();const n=this.getFullModelRange(),i=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+i:i}getValueInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)}getValueLengthInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)}getCharacterCountInRange(e,t=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(e),t)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)}getLineLength(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)}getLinesContent(){return this._assertNotDisposed(),this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),"\n"===this._buffer.getEOL()?0:1}getLineMinColumn(e){return this._assertNotDisposed(),1}getLineMaxColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1}getLineFirstNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)}getLineLastNonWhitespaceColumn(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)}_validateRangeRelaxedNoAllocations(e){const t=this._buffer.getLineCount(),n=e.startLineNumber,i=e.startColumn;let r=Math.floor("number"!==typeof n||isNaN(n)?1:n),o=Math.floor("number"!==typeof i||isNaN(i)?1:i);if(r<1)r=1,o=1;else if(r>t)r=t,o=this.getLineMaxColumn(r);else if(o<=1)o=1;else{const e=this.getLineMaxColumn(r);o>=e&&(o=e)}const s=e.endLineNumber,a=e.endColumn;let l=Math.floor("number"!==typeof s||isNaN(s)?1:s),c=Math.floor("number"!==typeof a||isNaN(a)?1:a);if(l<1)l=1,c=1;else if(l>t)l=t,c=this.getLineMaxColumn(l);else if(c<=1)c=1;else{const e=this.getLineMaxColumn(l);c>=e&&(c=e)}return n===r&&i===o&&s===l&&a===c&&e instanceof u["a"]&&!(e instanceof h["a"])?e:new u["a"](r,o,l,c)}_isValidPosition(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;const i=this._buffer.getLineCount();if(e>i)return!1;if(1===t)return!0;const r=this.getLineMaxColumn(e);if(t>r)return!1;if(1===n){const n=this._buffer.getLineCharCode(e,t-2);if(s["F"](n))return!1}return!0}_validatePosition(e,t,n){const i=Math.floor("number"!==typeof e||isNaN(e)?1:e),r=Math.floor("number"!==typeof t||isNaN(t)?1:t),o=this._buffer.getLineCount();if(i<1)return new c["a"](1,1);if(i>o)return new c["a"](o,this.getLineMaxColumn(o));if(r<=1)return new c["a"](i,1);const a=this.getLineMaxColumn(i);if(r>=a)return new c["a"](i,a);if(1===n){const e=this._buffer.getLineCharCode(i,r-2);if(s["F"](e))return new c["a"](i,r-1)}return new c["a"](i,r)}validatePosition(e){const t=1;return this._assertNotDisposed(),e instanceof c["a"]&&this._isValidPosition(e.lineNumber,e.column,t)?e:this._validatePosition(e.lineNumber,e.column,t)}_isValidRange(e,t){const n=e.startLineNumber,i=e.startColumn,r=e.endLineNumber,o=e.endColumn;if(!this._isValidPosition(n,i,0))return!1;if(!this._isValidPosition(r,o,0))return!1;if(1===t){const e=i>1?this._buffer.getLineCharCode(n,i-2):0,t=o>1&&o<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,o-2):0,a=s["F"](e),l=s["F"](t);return!a&&!l}return!0}validateRange(e){const t=1;if(this._assertNotDisposed(),e instanceof u["a"]&&!(e instanceof h["a"])&&this._isValidRange(e,t))return e;const n=this._validatePosition(e.startLineNumber,e.startColumn,0),i=this._validatePosition(e.endLineNumber,e.endColumn,0),r=n.lineNumber,o=n.column,a=i.lineNumber,l=i.column;if(1===t){const e=o>1?this._buffer.getLineCharCode(r,o-2):0,t=l>1&&l<=this._buffer.getLineLength(a)?this._buffer.getLineCharCode(a,l-2):0,n=s["F"](e),i=s["F"](t);return n||i?r===a&&o===l?new u["a"](r,o-1,a,l-1):n&&i?new u["a"](r,o-1,a,l+1):n?new u["a"](r,o-1,a,l):new u["a"](r,o,a,l+1):new u["a"](r,o,a,l)}return new u["a"](r,o,a,l)}modifyPosition(e,t){this._assertNotDisposed();let n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))}getFullModelRange(){this._assertNotDisposed();const e=this.getLineCount();return new u["a"](1,1,e,this.getLineMaxColumn(e))}findMatchesLineByLine(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)}findMatches(e,t,n,i,r,o,s=qe){this._assertNotDisposed();let a=null;null!==t&&(Array.isArray(t)||(t=[t]),t.every(e=>u["a"].isIRange(e))&&(a=t.map(e=>this.validateRange(e)))),null===a&&(a=[this.getFullModelRange()]),a=a.sort((e,t)=>e.startLineNumber-t.startLineNumber||e.startColumn-t.startColumn);const l=[];let c;if(l.push(a.reduce((e,t)=>u["a"].areIntersecting(e,t)?e.plusRange(t):(l.push(e),t))),!n&&e.indexOf("\n")<0){const t=new ce["a"](e,n,i,r),a=t.parseSearchRequest();if(!a)return[];c=e=>this.findMatchesLineByLine(e,a,o,s)}else c=t=>ce["c"].findMatches(this,new ce["a"](e,n,i,r),t,o,s);return l.map(c).reduce((e,t)=>e.concat(t),[])}findNextMatch(e,t,n,i,r,o){this._assertNotDisposed();const s=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){const t=new ce["a"](e,n,i,r),a=t.parseSearchRequest();if(!a)return null;const l=this.getLineCount();let c=new u["a"](s.lineNumber,s.column,l,this.getLineMaxColumn(l)),h=this.findMatchesLineByLine(c,a,o,1);return ce["c"].findNextMatch(this,new ce["a"](e,n,i,r),s,o),h.length>0?h[0]:(c=new u["a"](1,1,s.lineNumber,this.getLineMaxColumn(s.lineNumber)),h=this.findMatchesLineByLine(c,a,o,1),h.length>0?h[0]:null)}return ce["c"].findNextMatch(this,new ce["a"](e,n,i,r),s,o)}findPreviousMatch(e,t,n,i,r,o){this._assertNotDisposed();const s=this.validatePosition(t);return ce["c"].findPreviousMatch(this,new ce["a"](e,n,i,r),s,o)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(e){const t="\n"===this.getEOL()?0:1;if(t!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(e){return e instanceof d["f"]?e:new d["f"](e.identifier||null,this.validateRange(e.range),e.text,e.forceMoveMarkers||!1,e.isAutoWhitespaceEdit||!1,e._isTracked||!1)}_validateEditOperations(e){const t=[];for(let n=0,i=e.length;n<i;n++)t[n]=this._validateEditOperation(e[n]);return t}pushEditOperations(e,t,n){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,this._validateEditOperations(t),n)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(e,t,n){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){let n=t.map(e=>({range:this.validateRange(e.range),text:e.text})),i=!0;if(e)for(let t=0,r=e.length;t<r;t++){let r=e[t],o=!1;for(let e=0,t=n.length;e<t;e++){let t=n[e].range,i=t.startLineNumber>r.endLineNumber,s=r.startLineNumber>t.endLineNumber;if(!i&&!s){o=!0;break}}if(!o){i=!1;break}}if(i)for(let e=0,r=this._trimAutoWhitespaceLines.length;e<r;e++){let i=this._trimAutoWhitespaceLines[e],r=this.getLineMaxColumn(i),o=!0;for(let e=0,t=n.length;e<t;e++){let t=n[e].range,s=n[e].text;if(!(i<t.startLineNumber||i>t.endLineNumber)&&(!(i===t.startLineNumber&&t.startColumn===r&&t.isEmpty()&&s&&s.length>0&&"\n"===s.charAt(0))&&!(i===t.startLineNumber&&1===t.startColumn&&t.isEmpty()&&s&&s.length>0&&"\n"===s.charAt(s.length-1)))){o=!1;break}}if(o){const e=new u["a"](i,1,i,r);t.push(new d["f"](null,e,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return null===this._initialUndoRedoSnapshot&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(e,t,n)}_applyUndo(e,t,n,i){const r=e.map(e=>{const t=this.getPositionAt(e.newPosition),n=this.getPositionAt(e.newEnd);return{range:new u["a"](t.lineNumber,t.column,n.lineNumber,n.column),text:e.oldText}});this._applyUndoRedoEdits(r,t,!0,!1,n,i)}_applyRedo(e,t,n,i){const r=e.map(e=>{const t=this.getPositionAt(e.oldPosition),n=this.getPositionAt(e.oldEnd);return{range:new u["a"](t.lineNumber,t.column,n.lineNumber,n.column),text:e.newText}});this._applyUndoRedoEdits(r,t,!1,!0,n,i)}_applyUndoRedoEdits(e,t,n,i,r,o){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=n,this._isRedoing=i,this.applyEdits(e,!1),this.setEOL(t),this._overwriteAlternativeVersionId(r)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(o),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(e,t=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const n=this._validateEditOperations(e);return this._doApplyEdits(n,t)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(e,t){const n=this._buffer.getLineCount(),i=this._buffer.applyEdits(e,this._options.trimAutoWhitespace,t),r=this._buffer.getLineCount(),o=i.changes;if(this._trimAutoWhitespaceLines=i.trimAutoWhitespaceLineNumbers,0!==o.length){for(let n=0,i=o.length;n<i;n++){const e=o[n],[t,i,r]=Object(_e["f"])(e.text);this._tokens.acceptEdit(e.range,t,i),this._tokens2.acceptEdit(e.range,t,i,r,e.text.length>0?e.text.charCodeAt(0):0),this._decorationsTree.acceptReplace(e.rangeOffset,e.rangeLength,e.text.length,e.forceMoveMarkers)}let e=[];this._increaseVersionId();let t=n;for(let n=0,i=o.length;n<i;n++){const i=o[n],[s]=Object(_e["f"])(i.text);this._onDidChangeDecorations.fire();const a=i.range.startLineNumber,l=i.range.endLineNumber,u=l-a,h=s,d=Math.min(u,h),f=h-u,p=r-t-f+a,g=p,m=p+h,v=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new c["a"](g,1)),this.getOffsetAt(new c["a"](m,this.getLineMaxColumn(m))),0),b=Oe["b"].fromDecorations(v),y=new ke["a"](b);for(let t=d;t>=0;t--){const n=a+t,i=p+t;y.takeFromEndWhile(e=>e.lineNumber>i);const r=y.takeFromEndWhile(e=>e.lineNumber===i);e.push(new Oe["g"](n,this.getLineContent(i),r))}if(d<u){const t=a+d;e.push(new Oe["h"](t+1,l))}if(d<h){const n=new ke["a"](b),i=a+d,o=h-d,s=r-t-o+i+1;let l=[],c=[];for(let e=0;e<o;e++){let t=s+e;c[e]=this.getLineContent(t),n.takeWhile(e=>e.lineNumber<t),l[e]=n.takeWhile(e=>e.lineNumber===t)}e.push(new Oe["i"](i+1,a+h,c,l))}t+=f}this._emitContentChangedEvent(new Oe["d"](e,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:o,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return null===i.reverseEdits?void 0:i.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(e){if(null===e||0===e.size)return;const t=[...e],n=t.map(e=>new Oe["g"](e,this.getLineContent(e),this._getInjectedTextInLine(e)));this._onDidChangeContentOrInjectedText.fire(new Oe["c"](n))}changeDecorations(e,t=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(e,t){let n={addDecoration:(t,n)=>this._deltaDecorationsImpl(e,[],[{range:t,options:n}])[0],changeDecoration:(e,t)=>{this._changeDecorationImpl(e,t)},changeDecorationOptions:(e,t)=>{this._changeDecorationOptionsImpl(e,ct(t))},removeDecoration:t=>{this._deltaDecorationsImpl(e,[t],[])},deltaDecorations:(t,n)=>0===t.length&&0===n.length?[]:this._deltaDecorationsImpl(e,t,n)},r=null;try{r=t(n)}catch(o){Object(i["e"])(o)}return n.addDecoration=Ge,n.changeDecoration=Ge,n.changeDecorationOptions=Ge,n.removeDecoration=Ge,n.deltaDecorations=Ge,r}deltaDecorations(e,t,n=0){if(this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_getTrackedRange(e){return this.getDecorationRange(e)}_setTrackedRange(e,t,n){const i=e?this._decorations[e]:null;if(!i)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:lt[n]}])[0]:null;if(!t)return this._decorationsTree.delete(i),delete this._decorations[i.id],null;const r=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),s=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);return this._decorationsTree.delete(i),i.reset(this.getVersionId(),o,s,r),i.setOptions(lt[n]),this._decorationsTree.insert(i),i.id}removeAllDecorationsWithOwnerId(e){if(this._isDisposed)return;const t=this._decorationsTree.collectNodesFromOwner(e);for(let n=0,i=t.length;n<i;n++){const e=t[n];this._decorationsTree.delete(e),delete this._decorations[e.id]}}getDecorationOptions(e){const t=this._decorations[e];return t?t.options:null}getDecorationRange(e){const t=this._decorations[e];return t?this._decorationsTree.getNodeRange(this,t):null}getLineDecorations(e,t=0,n=!1){return e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)}getLinesDecorations(e,t,n=0,i=!1){let r=this.getLineCount(),o=Math.min(r,Math.max(1,e)),s=Math.min(r,Math.max(1,t)),a=this.getLineMaxColumn(s);return this._getDecorationsInRange(new u["a"](o,1,s,a),n,i)}getDecorationsInRange(e,t=0,n=!1){let i=this.validateRange(e);return this._getDecorationsInRange(i,t,n)}getOverviewRulerDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!0)}getInjectedTextDecorations(e=0){return this._decorationsTree.getAllInjectedText(this,e)}_getInjectedTextInLine(e){const t=this._buffer.getOffsetAt(e,1),n=t+this._buffer.getLineLength(e),i=this._decorationsTree.getInjectedTextInInterval(this,t,n,0);return Oe["b"].fromDecorations(i).filter(t=>t.lineNumber===e)}getAllDecorations(e=0,t=!1){return this._decorationsTree.getAll(this,e,t,!1)}_getDecorationsInRange(e,t,n){const i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),r=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);return this._decorationsTree.getAllInInterval(this,i,r,t,n)}getRangeAt(e,t){return this._buffer.getRangeAt(e,t-e)}_changeDecorationImpl(e,t){const n=this._decorations[e];if(!n)return;if(n.options.after){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.endLineNumber)}if(n.options.before){const t=this.getDecorationRange(e);this._onDidChangeDecorations.recordLineAffectedByInjectedText(t.startLineNumber)}const i=this._validateRangeRelaxedNoAllocations(t),r=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),o=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),r,o,i),this._decorationsTree.insert(n),this._onDidChangeDecorations.checkAffectedAndFire(n.options),n.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.endLineNumber),n.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(i.startLineNumber)}_changeDecorationOptionsImpl(e,t){const n=this._decorations[e];if(!n)return;const i=!(!n.options.overviewRuler||!n.options.overviewRuler.color),r=!(!t.overviewRuler||!t.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(n.options),this._onDidChangeDecorations.checkAffectedAndFire(t),n.options.after||t.after){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(n.options.before||t.before){const e=this._decorationsTree.getNodeRange(this,n);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}i!==r?(this._decorationsTree.delete(n),n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}_deltaDecorationsImpl(e,t,n){const i=this.getVersionId(),r=t.length;let o=0;const s=n.length;let a=0,l=new Array(s);while(o<r||a<s){let c=null;if(o<r){do{c=this._decorations[t[o++]]}while(!c&&o<r);if(c){if(c.options.after){const e=this._decorationsTree.getNodeRange(this,c);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.endLineNumber)}if(c.options.before){const e=this._decorationsTree.getNodeRange(this,c);this._onDidChangeDecorations.recordLineAffectedByInjectedText(e.startLineNumber)}this._decorationsTree.delete(c),this._onDidChangeDecorations.checkAffectedAndFire(c.options)}}if(a<s){if(!c){const e=++this._lastDecorationId,t=`${this._instanceId};${e}`;c=new L(t,0,0),this._decorations[t]=c}const t=n[a],r=this._validateRangeRelaxedNoAllocations(t.range),o=ct(t.options),s=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),u=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);c.ownerId=e,c.reset(i,s,u,r),c.setOptions(o),c.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.endLineNumber),c.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(r.startLineNumber),this._onDidChangeDecorations.checkAffectedAndFire(o),this._decorationsTree.insert(c),l[a]=c.id,a++}else c&&delete this._decorations[c.id]}return l}setTokens(e){if(0===e.length)return;let t=[];for(let n=0,i=e.length;n<i;n++){const i=e[n];let r=0,o=0,s=!1;for(let e=0,t=i.tokens.length;e<t;e++){const t=i.startLineNumber+e;if(s)this._tokens.setTokens(this._languageIdentifier.id,t-1,this._buffer.getLineLength(t),i.tokens[e],!1),o=t;else{const n=this._tokens.setTokens(this._languageIdentifier.id,t-1,this._buffer.getLineLength(t),i.tokens[e],!0);n&&(s=!0,r=t,o=t)}}s&&t.push({fromLineNumber:r,toLineNumber:o})}t.length>0&&this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!1,ranges:t})}setSemanticTokens(e,t){this._tokens2.set(e,t),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:null!==e,ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]})}hasCompleteSemanticTokens(){return this._tokens2.isComplete()}hasSomeSemanticTokens(){return!this._tokens2.isEmpty()}setPartialSemanticTokens(e,t){if(this.hasCompleteSemanticTokens())return;const n=this._tokens2.setPartial(e,t);this._emitModelTokensChangedEvent({tokenizationSupportChanged:!1,semanticTokensApplied:!0,ranges:[{fromLineNumber:n.startLineNumber,toLineNumber:n.endLineNumber}]})}tokenizeViewport(e,t){e=Math.max(1,e),t=Math.min(this._buffer.getLineCount(),t),this._tokenization.tokenizeViewport(e,t)}clearTokens(){this._tokens.flush(),this._emitModelTokensChangedEvent({tokenizationSupportChanged:!0,semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._buffer.getLineCount()}]})}_emitModelTokensChangedEvent(e){this._isDisposing||this._onDidChangeTokens.fire(e)}resetTokenization(){this._tokenization.reset()}forceTokenization(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)}isCheapToTokenize(e){return this._tokenization.isCheapToTokenize(e)}tokenizeIfCheap(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)}getLineTokens(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)}_getLineTokens(e){const t=this.getLineContent(e),n=this._tokens.getTokens(this._languageIdentifier.id,e-1,t);return this._tokens2.addSemanticTokens(e,n)}getLanguageIdentifier(){return this._languageIdentifier}getModeId(){return this._languageIdentifier.language}setMode(e){if(this._languageIdentifier.id===e.id)return;let t={oldLanguage:this._languageIdentifier.language,newLanguage:e.language};this._languageIdentifier=e,this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}getLanguageIdAtPosition(e,t){const n=this.validatePosition(new c["a"](e,t)),i=this.getLineTokens(n.lineNumber);return i.getLanguageId(i.findTokenIndexAtOffset(n.column-1))}getWordAtPosition(e){this._assertNotDisposed();const t=this.validatePosition(e),n=this.getLineContent(t.lineNumber),i=this._getLineTokens(t.lineNumber),r=i.findTokenIndexAtOffset(t.column-1),[o,s]=Xe._findLanguageBoundaries(i,r),a=Object(je["d"])(t.column,Re["a"].getWordDefinition(i.getLanguageId(r)),n.substring(o,s),o);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a;if(r>0&&o===t.column-1){const[o,s]=Xe._findLanguageBoundaries(i,r-1),a=Object(je["d"])(t.column,Re["a"].getWordDefinition(i.getLanguageId(r-1)),n.substring(o,s),o);if(a&&a.startColumn<=e.column&&e.column<=a.endColumn)return a}return null}static _findLanguageBoundaries(e,t){const n=e.getLanguageId(t);let i=0;for(let o=t;o>=0&&e.getLanguageId(o)===n;o--)i=e.getStartOffset(o);let r=e.getLineContent().length;for(let o=t,s=e.getCount();o<s&&e.getLanguageId(o)===n;o++)r=e.getEndOffset(o);return[i,r]}getWordUntilPosition(e){const 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}}findMatchingBracketUp(e,t){let n=e.toLowerCase(),i=this.validatePosition(t),r=this._getLineTokens(i.lineNumber),o=r.getLanguageId(r.findTokenIndexAtOffset(i.column-1)),s=Re["a"].getBracketsSupport(o);if(!s)return null;let a=s.textIsBracket[n];return a?Ze(this._findMatchingBracketUp(a,i,null)):null}matchBracket(e){return this._matchBracket(this.validatePosition(e))}_establishBracketSearchOffsets(e,t,n,i){const r=t.getCount(),o=t.getLanguageId(i);let s=Math.max(0,e.column-1-n.maxBracketLength);for(let l=i-1;l>=0;l--){const e=t.getEndOffset(l);if(e<=s)break;if(Object(Fe["b"])(t.getStandardTokenType(l))||t.getLanguageId(l)!==o){s=e;break}}let a=Math.min(t.getLineContent().length,e.column-1+n.maxBracketLength);for(let l=i+1;l<r;l++){const e=t.getStartOffset(l);if(e>=a)break;if(Object(Fe["b"])(t.getStandardTokenType(l))||t.getLanguageId(l)!==o){a=e;break}}return{searchStartOffset:s,searchEndOffset:a}}_matchBracket(e){const t=e.lineNumber,n=this._getLineTokens(t),i=this._buffer.getLineContent(t),r=n.findTokenIndexAtOffset(e.column-1);if(r<0)return null;const o=Re["a"].getBracketsSupport(n.getLanguageId(r));if(o&&!Object(Fe["b"])(n.getStandardTokenType(r))){let{searchStartOffset:s,searchEndOffset:a}=this._establishBracketSearchOffsets(e,n,o,r),l=null;while(1){const n=Be["a"].findNextBracketInRange(o.forwardRegex,t,i,s,a);if(!n)break;if(n.startColumn<=e.column&&e.column<=n.endColumn){const e=i.substring(n.startColumn-1,n.endColumn-1).toLowerCase(),t=this._matchFoundBracket(n,o.textIsBracket[e],o.textIsOpenBracket[e],null);if(t){if(t instanceof Ye)return null;l=t}}s=n.endColumn-1}if(l)return l}if(r>0&&n.getStartOffset(r)===e.column-1){const o=r-1,s=Re["a"].getBracketsSupport(n.getLanguageId(o));if(s&&!Object(Fe["b"])(n.getStandardTokenType(o))){let{searchStartOffset:r,searchEndOffset:a}=this._establishBracketSearchOffsets(e,n,s,o);const l=Be["a"].findPrevBracketInRange(s.reversedRegex,t,i,r,a);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn){const e=i.substring(l.startColumn-1,l.endColumn-1).toLowerCase(),t=this._matchFoundBracket(l,s.textIsBracket[e],s.textIsOpenBracket[e],null);if(t)return t instanceof Ye?null:t}}}return null}_matchFoundBracket(e,t,n,i){if(!t)return null;const r=n?this._findMatchingBracketDown(t,e.getEndPosition(),i):this._findMatchingBracketUp(t,e.getStartPosition(),i);return r?r instanceof Ye?r:[e,r]:null}_findMatchingBracketUp(e,t,n){const i=e.languageIdentifier.id,r=e.reversedRegex;let o=-1,s=0;const a=(t,i,a,l)=>{while(1){if(n&&++s%100===0&&!n())return Ye.INSTANCE;const c=Be["a"].findPrevBracketInRange(r,t,i,a,l);if(!c)break;const u=i.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(u)?o++:e.isClose(u)&&o--,0===o)return c;l=c.startColumn-1}return null};for(let l=t.lineNumber;l>=1;l--){const e=this._getLineTokens(l),n=e.getCount(),r=this._buffer.getLineContent(l);let o=n-1,s=r.length,c=r.length;l===t.lineNumber&&(o=e.findTokenIndexAtOffset(t.column-1),s=t.column-1,c=t.column-1);let u=!0;for(;o>=0;o--){const t=e.getLanguageId(o)===i&&!Object(Fe["b"])(e.getStandardTokenType(o));if(t)u?s=e.getStartOffset(o):(s=e.getStartOffset(o),c=e.getEndOffset(o));else if(u&&s!==c){const e=a(l,r,s,c);if(e)return e}u=t}if(u&&s!==c){const e=a(l,r,s,c);if(e)return e}}return null}_findMatchingBracketDown(e,t,n){const i=e.languageIdentifier.id,r=e.forwardRegex;let o=1,s=0;const a=(t,i,a,l)=>{while(1){if(n&&++s%100===0&&!n())return Ye.INSTANCE;const c=Be["a"].findNextBracketInRange(r,t,i,a,l);if(!c)break;const u=i.substring(c.startColumn-1,c.endColumn-1).toLowerCase();if(e.isOpen(u)?o++:e.isClose(u)&&o--,0===o)return c;a=c.endColumn-1}return null},l=this.getLineCount();for(let c=t.lineNumber;c<=l;c++){const e=this._getLineTokens(c),n=e.getCount(),r=this._buffer.getLineContent(c);let o=0,s=0,l=0;c===t.lineNumber&&(o=e.findTokenIndexAtOffset(t.column-1),s=t.column-1,l=t.column-1);let u=!0;for(;o<n;o++){const t=e.getLanguageId(o)===i&&!Object(Fe["b"])(e.getStandardTokenType(o));if(t)u||(s=e.getStartOffset(o)),l=e.getEndOffset(o);else if(u&&s!==l){const e=a(c,r,s,l);if(e)return e}u=t}if(u&&s!==l){const e=a(c,r,s,l);if(e)return e}}return null}findPrevBracket(e){const t=this.validatePosition(e);let n=-1,i=null;for(let r=t.lineNumber;r>=1;r--){const e=this._getLineTokens(r),o=e.getCount(),s=this._buffer.getLineContent(r);let a=o-1,l=s.length,c=s.length;if(r===t.lineNumber){a=e.findTokenIndexAtOffset(t.column-1),l=t.column-1,c=t.column-1;const r=e.getLanguageId(a);n!==r&&(n=r,i=Re["a"].getBracketsSupport(n))}let u=!0;for(;a>=0;a--){const t=e.getLanguageId(a);if(n!==t){if(i&&u&&l!==c){const e=Be["a"].findPrevBracketInRange(i.reversedRegex,r,s,l,c);if(e)return this._toFoundBracket(i,e);u=!1}n=t,i=Re["a"].getBracketsSupport(n)}const o=!!i&&!Object(Fe["b"])(e.getStandardTokenType(a));if(o)u?l=e.getStartOffset(a):(l=e.getStartOffset(a),c=e.getEndOffset(a));else if(i&&u&&l!==c){const e=Be["a"].findPrevBracketInRange(i.reversedRegex,r,s,l,c);if(e)return this._toFoundBracket(i,e)}u=o}if(i&&u&&l!==c){const e=Be["a"].findPrevBracketInRange(i.reversedRegex,r,s,l,c);if(e)return this._toFoundBracket(i,e)}}return null}findNextBracket(e){const t=this.validatePosition(e),n=this.getLineCount();let i=-1,r=null;for(let o=t.lineNumber;o<=n;o++){const e=this._getLineTokens(o),n=e.getCount(),s=this._buffer.getLineContent(o);let a=0,l=0,c=0;if(o===t.lineNumber){a=e.findTokenIndexAtOffset(t.column-1),l=t.column-1,c=t.column-1;const n=e.getLanguageId(a);i!==n&&(i=n,r=Re["a"].getBracketsSupport(i))}let u=!0;for(;a<n;a++){const t=e.getLanguageId(a);if(i!==t){if(r&&u&&l!==c){const e=Be["a"].findNextBracketInRange(r.forwardRegex,o,s,l,c);if(e)return this._toFoundBracket(r,e);u=!1}i=t,r=Re["a"].getBracketsSupport(i)}const n=!!r&&!Object(Fe["b"])(e.getStandardTokenType(a));if(n)u||(l=e.getStartOffset(a)),c=e.getEndOffset(a);else if(r&&u&&l!==c){const e=Be["a"].findNextBracketInRange(r.forwardRegex,o,s,l,c);if(e)return this._toFoundBracket(r,e)}u=n}if(r&&u&&l!==c){const e=Be["a"].findNextBracketInRange(r.forwardRegex,o,s,l,c);if(e)return this._toFoundBracket(r,e)}}return null}findEnclosingBrackets(e,t){let n;if("undefined"===typeof t)n=null;else{const e=Date.now();n=()=>Date.now()-e<=t}const i=this.validatePosition(e),r=this.getLineCount(),o=new Map;let s=[];const a=(e,t)=>{if(!o.has(e)){let n=[];for(let e=0,i=t?t.brackets.length:0;e<i;e++)n[e]=0;o.set(e,n)}s=o.get(e)};let l=0;const c=(e,t,i,r,o)=>{while(1){if(n&&++l%100===0&&!n())return Ye.INSTANCE;const a=Be["a"].findNextBracketInRange(e.forwardRegex,t,i,r,o);if(!a)break;const c=i.substring(a.startColumn-1,a.endColumn-1).toLowerCase(),u=e.textIsBracket[c];if(u&&(u.isOpen(c)?s[u.index]++:u.isClose(c)&&s[u.index]--,-1===s[u.index]))return this._matchFoundBracket(a,u,!1,n);r=a.endColumn-1}return null};let u=-1,h=null;for(let d=i.lineNumber;d<=r;d++){const e=this._getLineTokens(d),t=e.getCount(),n=this._buffer.getLineContent(d);let r=0,o=0,s=0;if(d===i.lineNumber){r=e.findTokenIndexAtOffset(i.column-1),o=i.column-1,s=i.column-1;const t=e.getLanguageId(r);u!==t&&(u=t,h=Re["a"].getBracketsSupport(u),a(u,h))}let l=!0;for(;r<t;r++){const t=e.getLanguageId(r);if(u!==t){if(h&&l&&o!==s){const e=c(h,d,n,o,s);if(e)return Ze(e);l=!1}u=t,h=Re["a"].getBracketsSupport(u),a(u,h)}const i=!!h&&!Object(Fe["b"])(e.getStandardTokenType(r));if(i)l||(o=e.getStartOffset(r)),s=e.getEndOffset(r);else if(h&&l&&o!==s){const e=c(h,d,n,o,s);if(e)return Ze(e)}l=i}if(h&&l&&o!==s){const e=c(h,d,n,o,s);if(e)return Ze(e)}}return null}_toFoundBracket(e,t){if(!t)return null;let n=this.getValueInRange(t);n=n.toLowerCase();let i=e.textIsBracket[n];return i?{range:t,open:i.open,close:i.close,isOpen:e.textIsOpenBracket[n]}:null}static computeIndentLevel(e,t){let n=0,i=0,r=e.length;while(i<r){let r=e.charCodeAt(i);if(32===r)n++;else{if(9!==r)break;n=n-n%t+t}i++}return i===r?-1:n}_computeIndentLevel(e){return Xe.computeIndentLevel(this._buffer.getLineContent(e+1),this._options.tabSize)}getActiveIndentGuide(e,t,n){this._assertNotDisposed();const i=this.getLineCount();if(e<1||e>i)throw new Error("Illegal value for lineNumber");const r=Re["a"].getFoldingRules(this._languageIdentifier.id),o=Boolean(r&&r.offSide);let s=-2,a=-1,l=-2,c=-1;const u=e=>{if(-1!==s&&(-2===s||s>e-1)){s=-1,a=-1;for(let t=e-2;t>=0;t--){let e=this._computeIndentLevel(t);if(e>=0){s=t,a=e;break}}}if(-2===l){l=-1,c=-1;for(let t=e;t<i;t++){let e=this._computeIndentLevel(t);if(e>=0){l=t,c=e;break}}}};let h=-2,d=-1,f=-2,p=-1;const g=e=>{if(-2===h){h=-1,d=-1;for(let t=e-2;t>=0;t--){let e=this._computeIndentLevel(t);if(e>=0){h=t,d=e;break}}}if(-1!==f&&(-2===f||f<e-1)){f=-1,p=-1;for(let t=e;t<i;t++){let e=this._computeIndentLevel(t);if(e>=0){f=t,p=e;break}}}};let m=0,v=!0,b=0,y=!0,_=0,w=0;for(let C=0;v||y;C++){const r=e-C,s=e+C;C>1&&(r<1||r<t)&&(v=!1),C>1&&(s>i||s>n)&&(y=!1),C>5e4&&(v=!1,y=!1);let f=-1;if(v){const e=this._computeIndentLevel(r-1);e>=0?(l=r-1,c=e,f=Math.ceil(e/this._options.indentSize)):(u(r),f=this._getIndentLevelForWhitespaceLine(o,a,c))}let S=-1;if(y){const e=this._computeIndentLevel(s-1);e>=0?(h=s-1,d=e,S=Math.ceil(e/this._options.indentSize)):(g(s),S=this._getIndentLevelForWhitespaceLine(o,d,p))}if(0!==C){if(1===C){if(s<=i&&S>=0&&w+1===S){v=!1,m=s,b=s,_=S;continue}if(r>=1&&f>=0&&f-1===w){y=!1,m=r,b=r,_=f;continue}if(m=e,b=e,_=w,0===_)return{startLineNumber:m,endLineNumber:b,indent:_}}v&&(f>=_?m=r:v=!1),y&&(S>=_?b=s:y=!1)}else w=f}return{startLineNumber:m,endLineNumber:b,indent:_}}getLinesIndentGuides(e,t){this._assertNotDisposed();const n=this.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");const i=Re["a"].getFoldingRules(this._languageIdentifier.id),r=Boolean(i&&i.offSide);let o=new Array(t-e+1),s=-2,a=-1,l=-2,c=-1;for(let u=e;u<=t;u++){let t=u-e;const i=this._computeIndentLevel(u-1);if(i>=0)s=u-1,a=i,o[t]=Math.ceil(i/this._options.indentSize);else{if(-2===s){s=-1,a=-1;for(let e=u-2;e>=0;e--){let t=this._computeIndentLevel(e);if(t>=0){s=e,a=t;break}}}if(-1!==l&&(-2===l||l<u-1)){l=-1,c=-1;for(let e=u;e<n;e++){let t=this._computeIndentLevel(e);if(t>=0){l=e,c=t;break}}}o[t]=this._getIndentLevelForWhitespaceLine(r,a,c)}}return o}_getIndentLevelForWhitespaceLine(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)}normalizePosition(e,t){return e}getLineIndentColumn(e){return Qe(this.getLineContent(e))+1}}function Qe(e){let t=0;for(const n of e){if(" "!==n&&"\t"!==n)break;t++}return t}function Je(e){return!(!e.options.overviewRuler||!e.options.overviewRuler.color)}function et(e){return!!e.options.after||!!e.options.before}Xe.MODEL_SYNC_LIMIT=52428800,Xe.LARGE_FILE_SIZE_THRESHOLD=20971520,Xe.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,Xe.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:l["d"].tabSize,indentSize:l["d"].indentSize,insertSpaces:l["d"].insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:l["d"].trimAutoWhitespace,largeFileOptimizations:l["d"].largeFileOptimizations};class tt{constructor(){this._decorationsTree0=new D,this._decorationsTree1=new D,this._injectedTextDecorationsTree=new D}ensureAllNodesHaveRanges(e){this.getAll(e,0,!1,!1)}_ensureNodesHaveRanges(e,t){for(const n of t)null===n.range&&(n.range=e.getRangeAt(n.cachedAbsoluteStart,n.cachedAbsoluteEnd));return t}getAllInInterval(e,t,n,i,r){const o=e.getVersionId(),s=this._intervalSearch(t,n,i,r,o);return this._ensureNodesHaveRanges(e,s)}_intervalSearch(e,t,n,i,r){const o=this._decorationsTree0.intervalSearch(e,t,n,i,r),s=this._decorationsTree1.intervalSearch(e,t,n,i,r),a=this._injectedTextDecorationsTree.intervalSearch(e,t,n,i,r);return o.concat(s).concat(a)}getInjectedTextInInterval(e,t,n,i){const r=e.getVersionId(),o=this._injectedTextDecorationsTree.intervalSearch(t,n,i,!1,r);return this._ensureNodesHaveRanges(e,o)}getAllInjectedText(e,t){const n=e.getVersionId(),i=this._injectedTextDecorationsTree.search(t,!1,n);return this._ensureNodesHaveRanges(e,i)}getAll(e,t,n,i){const r=e.getVersionId(),o=this._search(t,n,i,r);return this._ensureNodesHaveRanges(e,o)}_search(e,t,n,i){if(n)return this._decorationsTree1.search(e,t,i);{const n=this._decorationsTree0.search(e,t,i),r=this._decorationsTree1.search(e,t,i),o=this._injectedTextDecorationsTree.search(e,t,i);return n.concat(r).concat(o)}}collectNodesFromOwner(e){const t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e),i=this._injectedTextDecorationsTree.collectNodesFromOwner(e);return t.concat(n).concat(i)}collectNodesPostOrder(){const e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder(),n=this._injectedTextDecorationsTree.collectNodesPostOrder();return e.concat(t).concat(n)}insert(e){et(e)?this._injectedTextDecorationsTree.insert(e):Je(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)}delete(e){et(e)?this._injectedTextDecorationsTree.delete(e):Je(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)}getNodeRange(e,t){const n=e.getVersionId();return t.cachedVersionId!==n&&this._resolveNode(t,n),null===t.range&&(t.range=e.getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range}_resolveNode(e,t){et(e)?this._injectedTextDecorationsTree.resolveNode(e,t):Je(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)}acceptReplace(e,t,n,i){this._decorationsTree0.acceptReplace(e,t,n,i),this._decorationsTree1.acceptReplace(e,t,n,i),this._injectedTextDecorationsTree.acceptReplace(e,t,n,i)}}function nt(e){return e.replace(/[^a-z0-9\-_]/gi," ")}class it{constructor(e){this.color=e.color||"",this.darkColor=e.darkColor||""}}class rt extends it{constructor(e){super(e),this._resolvedColor=null,this.position="number"===typeof e.position?e.position:d["d"].Center}getColor(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}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(e,t){if("string"===typeof e)return e;let n=e?t.getColor(e.id):null;return n?n.toString():""}}class ot extends it{constructor(e){super(e),this.position=e.position}getColor(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}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(e,t){return"string"===typeof e?We["a"].fromHex(e):t.getColor(e.id)}}class st{constructor(e){this.content=e.content||"",this.inlineClassName=e.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1}static from(e){return e instanceof st?e:new st(e)}}class at{constructor(e){this.description=e.description,this.stickiness=e.stickiness||0,this.zIndex=e.zIndex||0,this.className=e.className?nt(e.className):null,this.hoverMessage=e.hoverMessage||null,this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null,this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1,this.overviewRuler=e.overviewRuler?new rt(e.overviewRuler):null,this.minimap=e.minimap?new ot(e.minimap):null,this.glyphMarginClassName=e.glyphMarginClassName?nt(e.glyphMarginClassName):null,this.linesDecorationsClassName=e.linesDecorationsClassName?nt(e.linesDecorationsClassName):null,this.firstLineDecorationClassName=e.firstLineDecorationClassName?nt(e.firstLineDecorationClassName):null,this.marginClassName=e.marginClassName?nt(e.marginClassName):null,this.inlineClassName=e.inlineClassName?nt(e.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?nt(e.beforeContentClassName):null,this.afterContentClassName=e.afterContentClassName?nt(e.afterContentClassName):null,this.after=e.after?st.from(e.after):null,this.before=e.before?st.from(e.before):null}static register(e){return new at(e)}static createDynamic(e){return new at(e)}}at.EMPTY=at.register({description:"empty"});const lt=[at.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),at.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),at.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),at.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function ct(e){return e instanceof at?e:at.createDynamic(e)}class ut extends o["a"]{constructor(e){super(),this.handleBeforeFire=e,this._actual=this._register(new r["b"]),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var e;if(this._deferredCnt--,0===this._deferredCnt){if(this._shouldFire){this.handleBeforeFire(this._affectedInjectedTextLines);const e={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler};this._shouldFire=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._actual.fire(e)}null===(e=this._affectedInjectedTextLines)||void 0===e||e.clear(),this._affectedInjectedTextLines=null}}recordLineAffectedByInjectedText(e){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(e)}checkAffectedAndFire(e){this._affectsMinimap||(this._affectsMinimap=!(!e.minimap||!e.minimap.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!(!e.overviewRuler||!e.overviewRuler.color)),this._shouldFire=!0}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._shouldFire=!0}}class ht extends o["a"]{constructor(){super(),this._fastEmitter=this._register(new r["b"]),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new r["b"]),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(e=null){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){this._deferredEvent.rawContentChangedEvent.resultingSelection=e;const t=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(t),this._slowEmitter.fire(t)}}fire(e){this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))}}},b589:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c}));var i,r=n("6d8e"),o=n("30db");(function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.userData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebook="vscode-notebook",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeInteractive="vscode-interactive",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp"})(i||(i={}));class s{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}setPreferredWebSchema(e){this._preferredWebSchema=e}rewrite(e){if(this._delegate)return this._delegate(e);const t=e.authority;let n=this._hosts[t];n&&-1!==n.indexOf(":")&&(n=`[${n}]`);const s=this._ports[t],a=this._connectionTokens[t];let l="path="+encodeURIComponent(e.path);return"string"===typeof a&&(l+="&tkn="+encodeURIComponent(a)),r["a"].from({scheme:o["i"]?this._preferredWebSchema:i.vscodeRemoteResource,authority:`${n}:${s}`,path:"/vscode-remote-resource",query:l})}}const a=new s;class l{constructor(){this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(e,t,n){const r=this.toUri(e,t);if(r.scheme===i.vscodeRemote)return a.rewrite(r);let s=!1;return o["g"]&&(n||o["h"])&&r.scheme===i.file&&(s=!0),r.scheme===i.file&&"function"===typeof o["b"].importScripts&&"vscode-file://vscode-app"===o["b"].origin&&(s=!0),s?r.with({scheme:i.vscodeFileResource,authority:r.authority||this.FALLBACK_AUTHORITY,query:null,fragment:null}):r}toUri(e,t){return r["a"].isUri(e)?e:r["a"].parse(t.toUrl(e))}}const c=new l},b622:function(e,t,n){var i=n("da84"),r=n("5692"),o=n("1a2d"),s=n("90e3"),a=n("04f8"),l=n("fdbf"),c=r("wks"),u=i.Symbol,h=u&&u["for"],d=l?u:u&&u.withoutSetter||s;e.exports=function(e){if(!o(c,e)||!a&&"string"!=typeof c[e]){var t="Symbol."+e;a&&o(u,e)?c[e]=u[e]:c[e]=l&&h?h(t):d(t)}return c[e]}},b636:function(e,t,n){var i=n("e065");i("asyncIterator")},b64b:function(e,t,n){var i=n("23e7"),r=n("7b0b"),o=n("df75"),s=n("d039"),a=s((function(){o(1)}));i({target:"Object",stat:!0,forced:a},{keys:function(e){return o(r(e))}})},b680:function(e,t,n){"use strict";var i=n("23e7"),r=n("e330"),o=n("5926"),s=n("408a"),a=n("1148"),l=n("d039"),c=RangeError,u=String,h=Math.floor,d=r(a),f=r("".slice),p=r(1..toFixed),g=function(e,t,n){return 0===t?n:t%2===1?g(e,t-1,n*e):g(e*e,t/2,n)},m=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},v=function(e,t,n){var i=-1,r=n;while(++i<6)r+=t*e[i],e[i]=r%1e7,r=h(r/1e7)},b=function(e,t){var n=6,i=0;while(--n>=0)i+=e[n],e[n]=h(i/t),i=i%t*1e7},y=function(e){var t=6,n="";while(--t>=0)if(""!==n||0===t||0!==e[t]){var i=u(e[t]);n=""===n?i:n+d("0",7-i.length)+i}return n},_=l((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!l((function(){p({})}));i({target:"Number",proto:!0,forced:_},{toFixed:function(e){var t,n,i,r,a=s(this),l=o(e),h=[0,0,0,0,0,0],p="",_="0";if(l<0||l>20)throw c("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return u(a);if(a<0&&(p="-",a=-a),a>1e-21)if(t=m(a*g(2,69,1))-69,n=t<0?a*g(2,-t,1):a/g(2,t,1),n*=4503599627370496,t=52-t,t>0){v(h,0,n),i=l;while(i>=7)v(h,1e7,0),i-=7;v(h,g(10,i,1),0),i=t-1;while(i>=23)b(h,1<<23),i-=23;b(h,1<<i),v(h,1,1),b(h,2),_=y(h)}else v(h,0,n),v(h,1<<-t,0),_=y(h)+d("0",l);return l>0?(r=_.length,_=p+(r<=l?"0."+d("0",l-r)+_:f(_,0,r-l)+"."+f(_,r-l))):_=p+_,_}})},b682:function(e,t,n){"use strict";var i,r,o,s,a,l,c,u=n("6d8b"),h=n("4319"),d=n("80f0"),f=n("2b17"),p=n("2f45"),g=n("cd70"),m=n("07fd"),v=n("e0d3"),b=n("861c"),y=n("ec6f"),_=n("d0ce"),w=n("80b9"),C=u["isObject"],S=u["map"],x="undefined"===typeof Int32Array?Array:Int32Array,O="e\0\0",k=-1,L=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],E=["_approximateExtent"],D=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;Object(w["d"])(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var r={},o=[],s={},a=!1,l={},c=0;c<n.length;c++){var h=n[c],d=u["isString"](h)?new g["a"]({name:h}):h instanceof g["a"]?h:new g["a"](h),f=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};o.push(f),r[f]=d,null!=l[f]&&(a=!0),d.createInvertedIndices&&(s[f]=[]),0===p.itemName&&(this._nameDimIdx=c),0===p.itemId&&(this._idDimIdx=c),i&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(a),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=u["createHashMap"]();u["each"](o,(function(e){m.set(r[e].storeDimIndex,e)}))}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var i=this._schema.getSourceDimension(t);return i?i.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(u["isNumber"](e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[t]:null},e.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var i,r=this;if(e instanceof _["b"]&&(i=e),!i){var o=this.dimensions,s=Object(y["e"])(e)||u["isArrayLike"](e)?new f["a"](e,o.length):e;i=new _["b"];var a=S(o,(function(e){return{type:r._dimInfos[e].type,property:e}}));i.initData(s,a,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Object(p["b"])(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=i;s<r;s++){var a=s-i;this._nameList[s]=t[a],o&&c(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var i=this._dimInfos[t[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==m["g"]&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var o=this._nameList,s=this._idList,a=r.getSource().sourceFormat,l=a===m["f"];if(l&&!r.pure)for(var u=[],h=e;h<t;h++){var d=r.getItem(h,u);if(!this.hasItemOption&&Object(v["m"])(d)&&(this.hasItemOption=!0),d){var f=d.name;null==o[h]&&null!=f&&(o[h]=Object(v["e"])(f,null));var p=d.id;null==s[h]&&null!=p&&(s[h]=Object(v["e"])(p,null))}}if(this._shouldMakeIdFromName())for(h=e;h<t;h++)c(this,h);i(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){C(e)?u["extend"](this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=o(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},e.prototype.getId=function(e){return r(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,i=this._store;return u["isArray"](e)?i.getValues(S(e,(function(e){return n._getStoreDimIndex(e)})),t):i.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];var i=n[t];return null==i||isNaN(i)?k:i},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){u["isFunction"](e)&&(n=t,t=e,e=[]);var i=n||this,r=S(s(e),this._getStoreDimIndex,this);this._store.each(r,i?u["bind"](t,i):t)},e.prototype.filterSelf=function(e,t,n){u["isFunction"](e)&&(n=t,t=e,e=[]);var i=n||this,r=S(s(e),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?u["bind"](t,i):t),this},e.prototype.selectRange=function(e){var t=this,n={},i=u["keys"](e),r=[];return u["each"](i,(function(i){var o=t._getStoreDimIndex(i);n[o]=e[i],r.push(o)})),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){u["isFunction"](e)&&(n=t,t=e,e=[]),n=n||this;var i=[];return this.each(e,(function(){i.push(t&&t.apply(this,arguments))}),n),i},e.prototype.map=function(e,t,n,i){var r=n||i||this,o=S(s(e),this._getStoreDimIndex,this),a=l(this);return a._store=this._store.map(o,r?u["bind"](t,r):t),a},e.prototype.modify=function(e,t,n,i){var r=n||i||this;var o=S(s(e),this._getStoreDimIndex,this);this._store.modify(o,r?u["bind"](t,r):t)},e.prototype.downSample=function(e,t,n,i){var r=l(this);return r._store=this._store.downSample(this._getStoreDimIndex(e),t,n,i),r},e.prototype.lttbDownSample=function(e,t){var n=l(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new h["a"](n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new d["a"](e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return r(e,t)}),(function(e){return r(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},C(e)?u["extend"](this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],i=n&&n[t];return null==i?this.getVisual(t):i},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var r=i[t];return null==r&&(r=this.getVisual(t),u["isArray"](r)?r=r.slice():C(r)&&(r=u["extend"]({},r)),i[t]=r),r},e.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,C(t)?u["extend"](i,t):i[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){C(e)?u["extend"](this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?u["extend"](this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Object(b["b"])(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){u["each"](this._graphicEls,(function(n,i){n&&e&&e.call(t,n,i)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:S(this.dimensions,this._getDimInfo,this),this.hostModel)),a(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];u["isFunction"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(u["slice"](arguments)))})},e.internalField=function(){i=function(e){var t=e._invertedIndicesMap;u["each"](t,(function(n,i){var r=e._dimInfos[i],o=r.ordinalMeta,s=e._store;if(o){n=t[i]=new x(o.categories.length);for(var a=0;a<n.length;a++)n[a]=k;for(a=0;a<s.count();a++)n[s.get(r.storeDimIndex,a)]=a}}))},o=function(e,t,n){return Object(v["e"])(e._getCategory(t,n),null)},r=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=o(e,e._idDimIdx,t)),null==n&&(n=O+t),n},s=function(e){return u["isArray"](e)||(e=null!=e?[e]:[]),e},l=function(t){var n=new e(t._schema?t._schema:S(t.dimensions,t._getDimInfo,t),t.hostModel);return a(n,t),n},a=function(e,t){u["each"](L.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,u["each"](E,(function(n){e[n]=u["clone"](t[n])})),e._calculationInfo=u["extend"]({},t._calculationInfo)},c=function(e,t){var n=e._nameList,i=e._idList,r=e._nameDimIdx,s=e._idDimIdx,a=n[t],l=i[t];if(null==a&&null!=r&&(n[t]=a=o(e,r,t)),null==l&&null!=s&&(i[t]=l=o(e,s,t)),null==l&&null!=a){var c=e._nameRepeatCount,u=c[a]=(c[a]||0)+1;l=a,u>1&&(l+="__ec__"+u),i[t]=l}}}(),e}();t["a"]=D},b707:function(e,t,n){"use strict";n.d(t,"u",(function(){return u})),n.d(t,"E",(function(){return h})),n.d(t,"I",(function(){return d})),n.d(t,"H",(function(){return f})),n.d(t,"s",(function(){return p})),n.d(t,"C",(function(){return g})),n.d(t,"h",(function(){return m})),n.d(t,"J",(function(){return y})),n.d(t,"D",(function(){return v})),n.d(t,"n",(function(){return _})),n.d(t,"y",(function(){return w})),n.d(t,"z",(function(){return C})),n.d(t,"d",(function(){return S})),n.d(t,"t",(function(){return x})),n.d(t,"B",(function(){return O})),n.d(t,"p",(function(){return k})),n.d(t,"m",(function(){return L})),n.d(t,"i",(function(){return E})),n.d(t,"w",(function(){return D})),n.d(t,"f",(function(){return I})),n.d(t,"e",(function(){return M})),n.d(t,"q",(function(){return T})),n.d(t,"G",(function(){return A})),n.d(t,"b",(function(){return N})),n.d(t,"r",(function(){return P})),n.d(t,"a",(function(){return j})),n.d(t,"g",(function(){return R})),n.d(t,"j",(function(){return F})),n.d(t,"x",(function(){return B})),n.d(t,"v",(function(){return W})),n.d(t,"c",(function(){return V})),n.d(t,"A",(function(){return z})),n.d(t,"o",(function(){return H})),n.d(t,"l",(function(){return U})),n.d(t,"k",(function(){return q})),n.d(t,"F",(function(){return $}));var i=n("6d8e"),r=n("6a89"),o=n("6a5d"),s=n("308f"),a=n("a666");class l{constructor(){this._map=new Map,this._promises=new Map,this._onDidChange=new s["b"],this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})}register(e,t){return this._map.set(e,t),this.fire([e]),Object(a["i"])(()=>{this._map.get(e)===t&&(this._map.delete(e),this.fire([e]))})}registerPromise(e,t){let n=null,i=!1;return this._promises.set(e,t.then(t=>{this._promises.delete(e),!i&&t&&(n=this.register(e,t))})),Object(a["i"])(()=>{i=!0,n&&n.dispose()})}getPromise(e){const t=this.get(e);if(t)return Promise.resolve(t);const n=this._promises.get(e);return n?n.then(t=>this.get(e)):null}get(e){return this._map.get(e)||null}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}var c=n("561a");class u{constructor(e,t){this.language=e,this.id=t}}class h{static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(1792&e)>>>8}static getFontStyle(e){return(14336&e)>>>11}static getForeground(e){return(8372224&e)>>>14}static getBackground(e){return(4286578688&e)>>>23}static getClassNameFromMetadata(e){let t=this.getForeground(e),n="mtk"+t,i=this.getFontStyle(e);return 1&i&&(n+=" mtki"),2&i&&(n+=" mtkb"),4&i&&(n+=" mtku"),n}static getInlineStyleFromMetadata(e,t){const n=this.getForeground(e),i=this.getFontStyle(e);let r=`color: ${t[n]};`;return 1&i&&(r+="font-style: italic;"),2&i&&(r+="font-weight: bold;"),4&i&&(r+="text-decoration: underline;"),r}}const d=function(){let e=Object.create(null);return e[0]="symbol-method",e[1]="symbol-function",e[2]="symbol-constructor",e[3]="symbol-field",e[4]="symbol-variable",e[5]="symbol-class",e[6]="symbol-struct",e[7]="symbol-interface",e[8]="symbol-module",e[9]="symbol-property",e[10]="symbol-event",e[11]="symbol-operator",e[12]="symbol-unit",e[13]="symbol-value",e[14]="symbol-constant",e[15]="symbol-enum",e[16]="symbol-enum-member",e[17]="symbol-keyword",e[27]="symbol-snippet",e[18]="symbol-text",e[19]="symbol-color",e[20]="symbol-file",e[21]="symbol-reference",e[22]="symbol-customcolor",e[23]="symbol-folder",e[24]="symbol-type-parameter",e[25]="account",e[26]="issues",function(t){const n=e[t];let i=n&&c["d"].get(n);return i||(console.info("No codicon found for CompletionItemKind "+t),i=c["b"].symbolProperty),i.classNames}}();let f=function(){let e=Object.create(null);return e["method"]=0,e["function"]=1,e["constructor"]=2,e["field"]=3,e["variable"]=4,e["class"]=5,e["struct"]=6,e["interface"]=7,e["module"]=8,e["property"]=9,e["event"]=10,e["operator"]=11,e["unit"]=12,e["value"]=13,e["constant"]=14,e["enum"]=15,e["enum-member"]=16,e["enumMember"]=16,e["keyword"]=17,e["snippet"]=27,e["text"]=18,e["color"]=19,e["file"]=20,e["reference"]=21,e["customcolor"]=22,e["folder"]=23,e["type-parameter"]=24,e["typeParameter"]=24,e["account"]=25,e["issue"]=26,function(t,n){let i=e[t];return"undefined"!==typeof i||n||(i=9),i}}();var p,g,m,v,b;function y(e){return e&&i["a"].isUri(e.uri)&&r["a"].isIRange(e.range)&&(r["a"].isIRange(e.originSelectionRange)||r["a"].isIRange(e.targetSelectionRange))}(function(e){e[e["Automatic"]=0]="Automatic",e[e["Explicit"]=1]="Explicit"})(p||(p={})),function(e){e[e["Invoke"]=1]="Invoke",e[e["TriggerCharacter"]=2]="TriggerCharacter",e[e["ContentChange"]=3]="ContentChange"}(g||(g={})),function(e){e[e["Text"]=0]="Text",e[e["Read"]=1]="Read",e[e["Write"]=2]="Write"}(m||(m={})),function(e){const 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);const n=new Map;function i(e){return t.get(e)}function r(e){return n.get(e)}function o(e,t){const i=n.get(e);let r=i&&c["d"].get("symbol-"+i);return r||(console.info("No codicon found for SymbolKind "+e),r=c["b"].symbolProperty),`${t?"inline":"block"} ${r.classNames}`}n.set(0,"file"),n.set(1,"module"),n.set(2,"namespace"),n.set(3,"package"),n.set(4,"class"),n.set(5,"method"),n.set(6,"property"),n.set(7,"field"),n.set(8,"constructor"),n.set(9,"enum"),n.set(10,"interface"),n.set(11,"function"),n.set(12,"variable"),n.set(13,"constant"),n.set(14,"string"),n.set(15,"number"),n.set(16,"boolean"),n.set(17,"array"),n.set(18,"object"),n.set(19,"key"),n.set(20,"null"),n.set(21,"enum-member"),n.set(22,"struct"),n.set(23,"event"),n.set(24,"operator"),n.set(25,"type-parameter"),e.fromString=i,e.toString=r,e.toCssClassName=o}(v||(v={}));class _{constructor(e){this.value=e}}_.Comment=new _("comment"),_.Imports=new _("imports"),_.Region=new _("region"),function(e){e[e["Other"]=0]="Other",e[e["Type"]=1]="Type",e[e["Parameter"]=2]="Parameter"}(b||(b={}));const w=new o["a"],C=new o["a"],S=new o["a"],x=new o["a"],O=new o["a"],k=new o["a"],L=new o["a"],E=new o["a"],D=new o["a"],I=new o["a"],M=new o["a"],T=new o["a"],A=new o["a"],N=new o["a"],P=new o["a"],j=new o["a"],R=new o["a"],F=new o["a"],B=new o["a"],W=new o["a"],V=new o["a"],z=new o["a"],H=new o["a"],U=new o["a"],q=new o["a"],$=new l},b727:function(e,t,n){var i=n("0366"),r=n("e330"),o=n("44ad"),s=n("7b0b"),a=n("07fa"),l=n("65f0"),c=r([].push),u=function(e){var t=1==e,n=2==e,r=3==e,u=4==e,h=6==e,d=7==e,f=5==e||h;return function(p,g,m,v){for(var b,y,_=s(p),w=o(_),C=i(g,m),S=a(w),x=0,O=v||l,k=t?O(p,S):n||d?O(p,0):void 0;S>x;x++)if((f||x in w)&&(b=w[x],y=C(b,x,_),e))if(t)k[x]=y;else if(y)switch(e){case 3:return!0;case 5:return b;case 6:return x;case 2:c(k,b)}else switch(e){case 4:return!1;case 7:c(k,b)}return h?-1:r||u?u:k}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},b72d:function(e,t,n){},b78f:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("0a0f");const r=Object(i["c"])("textModelService")},b7d0:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"g",(function(){return d})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"a",(function(){return p})),n.d(t,"f",(function(){return v})),n.d(t,"c",(function(){return b}));var i=n("0a0f"),r=n("a666"),o=n("89cd"),s=n("308f"),a=n("9c41"),l=n("561a");const c=Object(i["c"])("themeService");var u,h;function d(e){return{id:e}}function f(e){switch(e){case a["a"].DARK:return"vs-dark";case a["a"].HIGH_CONTRAST:return"hc-black";default:return"vs"}}(function(e){function t(e){return e&&"object"===typeof e&&"string"===typeof e.id}e.isThemeColor=t})(u||(u={})),function(e){function t(e){return e&&"object"===typeof e&&"string"===typeof e.id&&("undefined"===typeof e.color||u.isThemeColor(e.color))}e.isThemeIcon=t;const n=new RegExp(`^\\$\\((${l["a"].iconNameExpression}(?:${l["a"].iconModifierExpression})?)\\)$`);function i(e){const t=n.exec(e);if(!t)return;let[,i]=t;return{id:i}}function r(e,t){let n=e.id;const i=n.lastIndexOf("~");return-1!==i&&(n=n.substring(0,i)),t&&(n=`${n}~${t}`),{id:n}}function o(e,t){var n,i;return e.id===t.id&&(null===(n=e.color)||void 0===n?void 0:n.id)===(null===(i=t.color)||void 0===i?void 0:i.id)}function s(e,t){return{id:e.id,color:t?d(t):void 0}}e.fromString=i,e.modify=r,e.isEqual=o,e.asThemeIcon=s,e.asClassNameArray=l["a"].asClassNameArray,e.asClassName=l["a"].asClassName,e.asCSSSelector=l["a"].asCSSSelector}(h||(h={}));const p={ThemingContribution:"base.contributions.theming"};class g{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new s["b"]}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),Object(r["i"])(()=>{const t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)})}getThemingParticipants(){return this.themingParticipants}}let m=new g;function v(e){return m.onColorThemeChange(e)}o["a"].add(p.ThemingContribution,m);class b extends r["a"]{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(e=>this.onThemeChange(e)))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},b7d1:function(e,t,n){(function(t){function n(e,t){if(i("noDeprecation"))return e;var n=!1;function r(){if(!n){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return r}function i(e){try{if(!t.localStorage)return!1}catch(i){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=n}).call(this,n("c8ba"))},b7d9:function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return f}));var i=n("3842"),r=n("6d8b"),o=n("edae");function s(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||Object(r["isNumber"])(e)||null==e||"-"===e||(e=+Object(i["p"])(e)),null==e||""===e?NaN:Number(e))}var a=Object(r["createHashMap"])({number:function(e){return parseFloat(e)},time:function(e){return+Object(i["p"])(e)},trim:function(e){return Object(r["isString"])(e)?Object(r["trim"])(e):e}});function l(e){return a.get(e)}var c={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},u=function(){function e(e,t){if(!Object(r["isNumber"])(t)){var n="";0,Object(o["c"])(n)}this._opFn=c[e],this._rvalFloat=Object(i["o"])(t)}return e.prototype.evaluate=function(e){return Object(r["isNumber"])(e)?this._opFn(e,this._rvalFloat):this._opFn(Object(i["o"])(e),this._rvalFloat)},e}(),h=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=Object(r["isNumber"])(e)?e:Object(i["o"])(e),o=Object(r["isNumber"])(t)?t:Object(i["o"])(t),s=isNaN(n),a=isNaN(o);if(s&&(n=this._incomparable),a&&(o=this._incomparable),s&&a){var l=Object(r["isString"])(e),c=Object(r["isString"])(t);l&&(n=c?e:0),c&&(o=l?t:0)}return n<o?this._resultLT:n>o?-this._resultLT:0},e}(),d=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Object(i["o"])(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=Object(i["o"])(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function f(e,t){return"eq"===e||"ne"===e?new d("eq"===e,t):Object(r["hasOwn"])(c,e)?new u(e,t):null}},b800:function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return p}));class i{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};let e,t=this.pos,n=0,r=this.value.charCodeAt(t);if(e=i._table[r],"number"===typeof e)return this.pos+=1,{type:e,pos:t,len:1};if(i.isDigitCharacter(r)){e=8;do{n+=1,r=this.value.charCodeAt(t+n)}while(i.isDigitCharacter(r));return this.pos+=n,{type:e,pos:t,len:n}}if(i.isVariableCharacter(r)){e=9;do{r=this.value.charCodeAt(t+ ++n)}while(i.isVariableCharacter(r)||i.isDigitCharacter(r));return this.pos+=n,{type:e,pos:t,len:n}}e=10;do{n+=1,r=this.value.charCodeAt(t+n)}while(!isNaN(r)&&"undefined"===typeof i._table[r]&&!i.isDigitCharacter(r)&&!i.isVariableCharacter(r));return this.pos+=n,{type:e,pos:t,len:n}}}i._table={[36]:0,[58]:1,[44]:2,[123]:3,[125]:4,[92]:5,[47]:6,[124]:7,[43]:11,[45]:12,[63]:13};class r{constructor(){this._children=[]}appendChild(e){return e instanceof o&&this._children[this._children.length-1]instanceof o?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:n}=e,i=n.children.indexOf(e),r=n.children.slice(0);r.splice(i,1,...t),n._children=r,function e(t,n){for(const i of t)i.parent=n,e(i.children,i)}(t,n)}get children(){return this._children}get snippet(){let e=this;while(1){if(!e)return;if(e instanceof f)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class o extends r{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new o(this.value)}}class s extends r{}class a extends s{constructor(e){super(),this.index=e}static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.index<t.index?-1:e.index>t.index?1:0}get isFinalTabstop(){return 0===this.index}get choice(){return 1===this._children.length&&this._children[0]instanceof l?this._children[0]:void 0}clone(){let e=new a(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(e=>e.clone()),e}}class l extends r{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof o&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){let e=new l;return this.options.forEach(e.appendChild,e),e}}class c extends r{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let n=!1,i=e.replace(this.regexp,(function(){return n=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))}));return!n&&this._children.some(e=>e instanceof u&&Boolean(e.elseValue))&&(i=this._replace([])),i}_replace(e){let t="";for(const n of this._children)if(n instanceof u){let i=e[n.index]||"";i=n.resolve(i),t+=i}else t+=n.toString();return t}toString(){return""}clone(){let e=new c;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(e=>e.clone()),e}}class u extends r{constructor(e,t,n,i){super(),this.index=e,this.shorthandName=t,this.ifValue=n,this.elseValue=i}resolve(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):"":"camelcase"===this.shorthandName?e?this._toCamelCase(e):"":Boolean(e)&&"string"===typeof this.ifValue?this.ifValue:Boolean(e)||"string"!==typeof this.elseValue?e||"":this.elseValue}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((e,t)=>0===t?e.toLowerCase():e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()).join(""):e}clone(){let e=new u(this.index,this.shorthandName,this.ifValue,this.elseValue);return e}}class h extends s{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),void 0!==t&&(this._children=[new o(t)],!0)}clone(){const e=new h(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(e=>e.clone()),e}}function d(e,t){const n=[...e];while(n.length>0){const e=n.shift(),i=t(e);if(!i)break;n.unshift(...e.children)}}class f extends r{get placeholderInfo(){if(!this._placeholders){let e,t=[];this.walk((function(n){return n instanceof a&&(t.push(n),e=!e||e.index<n.index?n:e),!0})),this._placeholders={all:t,last:e}}return this._placeholders}get placeholders(){const{all:e}=this.placeholderInfo;return e}offset(e){let t=0,n=!1;return this.walk(i=>i===e?(n=!0,!1):(t+=i.len(),!0)),n?t:-1}fullLen(e){let t=0;return d([e],e=>(t+=e.len(),!0)),t}enclosingPlaceholders(e){let t=[],{parent:n}=e;while(n)n instanceof a&&t.push(n),n=n.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof h&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){let e=new f;return this._children=this.children.map(e=>e.clone()),e}walk(e){d(this.children,e)}}class p{constructor(){this._scanner=new i,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,n){this._scanner.text(e),this._token=this._scanner.next();const i=new f;while(this._parse(i));const r=new Map,o=[];let s=0;i.walk(e=>(e instanceof a&&(s+=1,e.isFinalTabstop?r.set(0,void 0):!r.has(e.index)&&e.children.length>0?r.set(e.index,e.children):o.push(e)),!0));for(const l of o){const e=r.get(l.index);if(e){const t=new a(l.index);t.transform=l.transform;for(const n of e)t.appendChild(n.clone());i.replace(l,[t])}}return n||(n=s>0&&t),!r.has(0)&&n&&i.appendChild(new a(0)),i}_accept(e,t){if(void 0===e||this._token.type===e){let e=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),e}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;while(this._token.type!==e){if(14===this._token.type)return!1;if(5===this._token.type){const e=this._scanner.next();if(0!==e.type&&4!==e.type&&5!==e.type)return!1}this._token=this._scanner.next()}const n=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),n}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new o(t)),!0)}_parseTabstopOrVariableName(e){let t;const n=this._token,i=this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0));return i?(e.appendChild(/^\d+$/.test(t)?new a(Number(t)):new h(t)),!0):this._backTo(n)}_parseComplexPlaceholder(e){let t;const n=this._token,i=this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0));if(!i)return this._backTo(n);const r=new a(Number(t));if(this._accept(1))while(1){if(this._accept(4))return e.appendChild(r),!0;if(!this._parse(r))return e.appendChild(new o("${"+t+":")),r.children.forEach(e.appendChild,e),!0}else{if(!(r.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(r)?(e.appendChild(r),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(r),!0):this._backTo(n);{const t=new l;while(1){if(this._parseChoiceElement(t)){if(this._accept(2))continue;if(this._accept(7)&&(r.appendChild(t),this._accept(4)))return e.appendChild(r),!0}return this._backTo(n),!1}}}}_parseChoiceElement(e){const t=this._token,n=[];while(1){if(2===this._token.type||7===this._token.type)break;let e;if(e=(e=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||e:this._accept(void 0,!0),!e)return this._backTo(t),!1;n.push(e)}return 0===n.length?(this._backTo(t),!1):(e.appendChild(new o(n.join(""))),!0)}_parseComplexVariable(e){let t;const n=this._token,i=this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0));if(!i)return this._backTo(n);const r=new h(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(r)?(e.appendChild(r),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(r),!0):this._backTo(n);while(1){if(this._accept(4))return e.appendChild(r),!0;if(!this._parse(r))return e.appendChild(new o("${"+t+":")),r.children.forEach(e.appendChild,e),!0}}_parseTransform(e){let t=new c,n="",i="";while(1){if(this._accept(6))break;let e;if(e=this._accept(5,!0))e=this._accept(6,!0)||e,n+=e;else{if(14===this._token.type)return!1;n+=this._accept(void 0,!0)}}while(1){if(this._accept(6))break;let e;if(e=this._accept(5,!0))e=this._accept(5,!0)||this._accept(6,!0)||e,t.appendChild(new o(e));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}while(1){if(this._accept(4))break;if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}try{t.regexp=new RegExp(n,i)}catch(r){return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let n=!1;this._accept(3)&&(n=!0);let i=this._accept(8,!0);if(!i)return this._backTo(t),!1;if(!n)return e.appendChild(new u(Number(i))),!0;if(this._accept(4))return e.appendChild(new u(Number(i))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){let n=this._accept(9,!0);return n&&this._accept(4)?(e.appendChild(new u(Number(i),n)),!0):(this._backTo(t),!1)}if(this._accept(11)){let t=this._until(4);if(t)return e.appendChild(new u(Number(i),void 0,t,void 0)),!0}else if(this._accept(12)){let t=this._until(4);if(t)return e.appendChild(new u(Number(i),void 0,void 0,t)),!0}else if(this._accept(13)){let t=this._until(1);if(t){let n=this._until(4);if(n)return e.appendChild(new u(Number(i),void 0,t,n)),!0}}else{let t=this._until(4);if(t)return e.appendChild(new u(Number(i),void 0,void 0,t)),!0}return this._backTo(t),!1}_parseAnything(e){return 14!==this._token.type&&(e.appendChild(new o(this._scanner.tokenText(this._token))),this._accept(void 0),!0)}}},b835:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var i=n("0f70"),r=n("fe45"),o=n("30db");let s=new Array(230),a=new Array(112);function l(e){if(e.charCode){let t=String.fromCharCode(e.charCode).toUpperCase();return r["b"].fromString(t)}return s[e.keyCode]||0}(function(){for(let t=0;t<a.length;t++)a[t]=-1;function e(e,t){s[e]=t,a[t]=e}e(3,7),e(8,1),e(9,2),e(13,3),e(16,4),e(17,5),e(18,6),e(19,7),e(20,8),e(27,9),e(32,10),e(33,11),e(34,12),e(35,13),e(36,14),e(37,15),e(38,16),e(39,17),e(40,18),e(45,19),e(46,20),e(48,21),e(49,22),e(50,23),e(51,24),e(52,25),e(53,26),e(54,27),e(55,28),e(56,29),e(57,30),e(65,31),e(66,32),e(67,33),e(68,34),e(69,35),e(70,36),e(71,37),e(72,38),e(73,39),e(74,40),e(75,41),e(76,42),e(77,43),e(78,44),e(79,45),e(80,46),e(81,47),e(82,48),e(83,49),e(84,50),e(85,51),e(86,52),e(87,53),e(88,54),e(89,55),e(90,56),e(93,58),e(96,93),e(97,94),e(98,95),e(99,96),e(100,97),e(101,98),e(102,99),e(103,100),e(104,101),e(105,102),e(106,103),e(107,104),e(108,105),e(109,106),e(110,107),e(111,108),e(112,59),e(113,60),e(114,61),e(115,62),e(116,63),e(117,64),e(118,65),e(119,66),e(120,67),e(121,68),e(122,69),e(123,70),e(124,71),e(125,72),e(126,73),e(127,74),e(128,75),e(129,76),e(130,77),e(144,78),e(145,79),e(186,80),e(187,81),e(188,82),e(189,83),e(190,84),e(191,85),e(192,86),e(193,110),e(194,111),e(219,87),e(220,88),e(221,89),e(222,90),e(223,91),e(226,92),e(229,109),i["g"]?(e(59,80),e(107,81),e(109,83),o["f"]&&e(224,57)):i["j"]&&(e(91,57),o["f"]?e(93,57):e(92,57))})();const c=o["f"]?256:2048,u=512,h=1024,d=o["f"]?2048:256;class f{constructor(e){this._standardKeyboardEventBrand=!0;let 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=l(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()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeybinding(){return this._asRuntimeKeybinding}equals(e){return this._asKeybinding===e}_computeKeybinding(){let e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);let t=0;return this.ctrlKey&&(t|=c),this.altKey&&(t|=u),this.shiftKey&&(t|=h),this.metaKey&&(t|=d),t|=e,t}_computeRuntimeKeybinding(){let e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new r["e"](this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)}}},b85c:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d28b"),n("d9e2"),n("d3b7"),n("3ca3"),n("ddb0");var i=n("06c5");function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Object(i["a"])(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,s=e},f:function(){try{a||null==n["return"]||n["return"]()}finally{if(l)throw s}}}}},b968:function(e,t,n){},b980:function(e,t,n){var i=n("d039"),r=n("5c6c");e.exports=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},b98b:function(e,t,n){e.exports=n("faa1").EventEmitter},b9b4:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return p}));var i,r=n("32b8"),o=n("3742"),s=n("9768"),a=n("b589"),l=n("82c9");(function(e){e.text="text/plain",e.binary="application/octet-stream",e.unknown="application/unknown",e.markdown="text/markdown"})(i||(i={}));let c=[],u=[],h=[];function d(e,t=!1){const n=f(e);c.push(n),n.userConfigured?h.push(n):u.push(n),t&&!n.userConfigured&&c.forEach(e=>{e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn(`Overwriting extension <<${n.extension}>> to now point to mime <<${n.mime}>>`),n.filename&&e.filename===n.filename&&console.warn(`Overwriting filename <<${n.filename}>> to now point to mime <<${n.mime}>>`),n.filepattern&&e.filepattern===n.filepattern&&console.warn(`Overwriting filepattern <<${n.filepattern}>> to now point to mime <<${n.mime}>>`),n.firstline&&e.firstline===n.firstline&&console.warn(`Overwriting firstline <<${n.firstline}>> to now point to mime <<${n.mime}>>`))})}function f(e){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:e.userConfigured,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?e.filepattern.toLowerCase():void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(r["e"].sep)>=0}}function p(e,t){let n;if(e)switch(e.scheme){case a["c"].file:n=e.fsPath;break;case a["c"].data:const t=l["a"].parseMetaData(e);n=t.get(l["a"].META_DATA_LABEL);break;default:n=e.path}if(!n)return[i.unknown];n=n.toLowerCase();const o=Object(r["a"])(n),s=g(n,o,h);if(s)return[s,i.text];const c=g(n,o,u);if(c)return[c,i.text];if(t){const e=m(t);if(e)return[e,i.text]}return[i.unknown]}function g(e,t,n){let i=null,r=null,o=null;for(let a=n.length-1;a>=0;a--){const l=n[a];if(t===l.filenameLowercase){i=l;break}if(l.filepattern&&(!r||l.filepattern.length>r.filepattern.length)){const n=l.filepatternOnPath?e:t;Object(s["a"])(l.filepatternLowercase,n)&&(r=l)}l.extension&&(!o||l.extension.length>o.extension.length)&&t.endsWith(l.extensionLowercase)&&(o=l)}return i?i.mime:r?r.mime:o?o.mime:null}function m(e){if(Object(o["T"])(e)&&(e=e.substr(1)),e.length>0)for(let t=c.length-1;t>=0;t--){const n=c[t];if(!n.firstline)continue;const i=e.match(n.firstline);if(i&&i.length>0)return n.mime}return null}},b9c7:function(e,t,n){n("e507"),e.exports=n("5524").Object.assign},b9db:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("1e03"),n("f2d2");var i=n("561a");function r(e){let t=e.definition;while(t instanceof i["b"])t=t.definition;return`.codicon-${e.id}:before { content: '${t.fontCharacter}'; }`}},b9f8:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:function(){return n.e("chunk-2d2138c7").then(n.bind(null,"acc2"))}})},ba01:function(e,t,n){e.exports=n("051b")},ba77:function(e,t,n){},bb2f:function(e,t,n){var i=n("d039");e.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bbc7:function(e,t,n){"use strict";var i=String.prototype.replace,r=/%20/g,o={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:o.RFC3986,formatters:{RFC1738:function(e){return i.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:o.RFC1738,RFC3986:o.RFC3986}},bc02:function(e,t,n){},bc04:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return v})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return y}));var i=n("3742"),r=n("6a89"),o=n("2504"),s=n("a666"),a=n("b2cc"),l=n("4fc3"),c=n("db88"),u=n("0a0f"),h=n("f5f3"),d=n("dff7");const f=Object(u["c"])("IEditorCancelService"),p=new l["c"]("cancellableOperation",!1,Object(d["a"])("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));Object(h["b"])(f,class{constructor(){this._tokens=new WeakMap}add(e,t){let n,i=this._tokens.get(e);return i||(i=e.invokeWithinContext(e=>{const t=p.bindTo(e.get(l["b"])),n=new c["a"];return{key:t,tokens:n}}),this._tokens.set(e,i)),i.key.set(!0),n=i.tokens.push(t),()=>{n&&(n(),i.key.set(!i.tokens.isEmpty()),n=void 0)}}cancel(e){const t=this._tokens.get(e);if(!t)return;const n=t.tokens.pop();n&&(n.cancel(),t.key.set(!t.tokens.isEmpty()))}},!0);class g extends o["b"]{constructor(e,t){super(t),this.editor=e,this._unregister=e.invokeWithinContext(t=>t.get(f).add(e,this))}dispose(){this._unregister(),super.dispose()}}Object(a["k"])(new class extends a["c"]{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:p})}runEditorCommand(e,t){e.get(f).cancel(t)}});class m{constructor(e,t){if(this.flags=t,0!==(1&this.flags)){const t=e.getModel();this.modelVersionId=t?i["w"]("{0}#{1}",t.uri.toString(),t.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)}_equals(e){if(!(e instanceof m))return!1;const 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))))}validate(e){return this._equals(new m(e,this.flags))}}class v extends g{constructor(e,t,n,i){super(e,i),this._listener=new s["b"],4&t&&this._listener.add(e.onDidChangeCursorPosition(e=>{n&&r["a"].containsPosition(n,e.position)||this.cancel()})),2&t&&this._listener.add(e.onDidChangeCursorSelection(e=>{n&&r["a"].containsRange(n,e.selection)||this.cancel()})),8&t&&this._listener.add(e.onDidScrollChange(e=>this.cancel())),1&t&&(this._listener.add(e.onDidChangeModel(e=>this.cancel())),this._listener.add(e.onDidChangeModelContent(e=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class b extends o["b"]{constructor(e,t){super(t),this._listener=e.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}class y{constructor(e,t,n){this._visiblePosition=e,this._visiblePositionScrollDelta=t,this._cursorPosition=n}static capture(e){let t=null,n=0;if(0!==e.getScrollTop()){const i=e.getVisibleRanges();if(i.length>0){t=i[0].getStartPosition();const r=e.getTopForPosition(t.lineNumber,t.column);n=e.getScrollTop()-r}}return new y(t,n,e.getPosition())}restore(e){if(this._visiblePosition){const t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(e){const t=e.getPosition();if(!this._cursorPosition||!t)return;const n=e.getTopForLineNumber(t.lineNumber)-e.getTopForLineNumber(this._cursorPosition.lineNumber);e.setScrollTop(e.getScrollTop()+n)}}},bc3a:function(e,t,n){e.exports=n("cee4")},bc61:function(e,t,n){"use strict";n.r(t),n.d(t,"getReindentEditOperations",(function(){return v})),n.d(t,"IndentationToSpacesAction",(function(){return b})),n.d(t,"IndentationToTabsAction",(function(){return y})),n.d(t,"ChangeIndentationSizeAction",(function(){return _})),n.d(t,"IndentUsingTabs",(function(){return w})),n.d(t,"IndentUsingSpaces",(function(){return C})),n.d(t,"DetectIndentation",(function(){return S})),n.d(t,"ReindentLinesAction",(function(){return x})),n.d(t,"ReindentSelectedLinesAction",(function(){return O})),n.d(t,"AutoIndentOnPasteCommand",(function(){return k})),n.d(t,"AutoIndentOnPaste",(function(){return L})),n.d(t,"IndentationToSpacesCommand",(function(){return D})),n.d(t,"IndentationToTabsCommand",(function(){return I}));var i=n("dff7"),r=n("a666"),o=n("3742"),s=n("b2cc"),a=n("ccde"),l=n("d3f4"),c=n("6a89"),u=n("8025"),h=n("c101"),d=n("b57f"),f=n("70cb"),p=n("1b69"),g=n("580d"),m=n("66bd");function v(e,t,n,i){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return[];let r=f["a"].getIndentationRules(e.getLanguageIdentifier().id);if(!r)return[];n=Math.min(n,e.getLineCount());while(t<=n){if(!r.unIndentedLinePattern)break;let n=e.getLineContent(t);if(!r.unIndentedLinePattern.test(n))break;t++}if(t>n-1)return[];const{tabSize:s,indentSize:c,insertSpaces:h}=e.getOptions(),p=(e,t)=>(t=t||1,a["a"].shiftIndent(e,e.length+t,s,c,h)),g=(e,t)=>(t=t||1,a["a"].unshiftIndent(e,e.length+t,s,c,h));let m,v=[],b=e.getLineContent(t),y=b;if(void 0!==i&&null!==i){m=i;let e=o["y"](b);y=m+b.substring(e.length),r.decreaseIndentPattern&&r.decreaseIndentPattern.test(y)&&(m=g(m),y=m+b.substring(e.length)),b!==y&&v.push(l["a"].replaceMove(new u["a"](t,1,t,e.length+1),d["b"].normalizeIndentation(m,c,h)))}else m=o["y"](b);let _=m;r.increaseIndentPattern&&r.increaseIndentPattern.test(y)?(_=p(_),m=p(m)):r.indentNextLinePattern&&r.indentNextLinePattern.test(y)&&(_=p(_)),t++;for(let a=t;a<=n;a++){let t=e.getLineContent(a),n=o["y"](t),i=_+t.substring(n.length);r.decreaseIndentPattern&&r.decreaseIndentPattern.test(i)&&(_=g(_),m=g(m)),n!==_&&v.push(l["a"].replaceMove(new u["a"](a,1,a,n.length+1),d["b"].normalizeIndentation(_,c,h))),r.unIndentedLinePattern&&r.unIndentedLinePattern.test(t)||(r.increaseIndentPattern&&r.increaseIndentPattern.test(i)?(m=p(m),_=m):_=r.indentNextLinePattern&&r.indentNextLinePattern.test(i)?p(_):m)}return v}class b extends s["b"]{constructor(){super({id:b.ID,label:i["a"]("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:h["a"].writable})}run(e,t){let n=t.getModel();if(!n)return;let i=n.getOptions(),r=t.getSelection();if(!r)return;const o=new D(r,i.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[o]),t.pushUndoStop(),n.updateOptions({insertSpaces:!0})}}b.ID="editor.action.indentationToSpaces";class y extends s["b"]{constructor(){super({id:y.ID,label:i["a"]("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:h["a"].writable})}run(e,t){let n=t.getModel();if(!n)return;let i=n.getOptions(),r=t.getSelection();if(!r)return;const o=new I(r,i.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[o]),t.pushUndoStop(),n.updateOptions({insertSpaces:!1})}}y.ID="editor.action.indentationToTabs";class _ extends s["b"]{constructor(e,t){super(t),this.insertSpaces=e}run(e,t){const n=e.get(m["a"]),r=e.get(p["a"]);let o=t.getModel();if(!o)return;let s=r.getCreationOptions(o.getLanguageIdentifier().language,o.uri,o.isForSimpleWidget);const a=[1,2,3,4,5,6,7,8].map(e=>({id:e.toString(),label:e.toString(),description:e===s.tabSize?i["a"]("configuredTabSize","Configured Tab Size"):void 0})),l=Math.min(o.getOptions().tabSize-1,7);setTimeout(()=>{n.pick(a,{placeHolder:i["a"]({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:a[l]}).then(e=>{e&&o&&!o.isDisposed()&&o.updateOptions({tabSize:parseInt(e.label,10),insertSpaces:this.insertSpaces})})},50)}}class w extends _{constructor(){super(!1,{id:w.ID,label:i["a"]("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}w.ID="editor.action.indentUsingTabs";class C extends _{constructor(){super(!0,{id:C.ID,label:i["a"]("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}C.ID="editor.action.indentUsingSpaces";class S extends s["b"]{constructor(){super({id:S.ID,label:i["a"]("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){const n=e.get(p["a"]);let i=t.getModel();if(!i)return;let r=n.getCreationOptions(i.getLanguageIdentifier().language,i.uri,i.isForSimpleWidget);i.detectIndentation(r.insertSpaces,r.tabSize)}}S.ID="editor.action.detectIndentation";class x extends s["b"]{constructor(){super({id:"editor.action.reindentlines",label:i["a"]("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:h["a"].writable})}run(e,t){let n=t.getModel();if(!n)return;let i=v(n,1,n.getLineCount());i.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,i),t.pushUndoStop())}}class O extends s["b"]{constructor(){super({id:"editor.action.reindentselectedlines",label:i["a"]("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:h["a"].writable})}run(e,t){let n=t.getModel();if(!n)return;let i=t.getSelections();if(null===i)return;let r=[];for(let o of i){let e=o.startLineNumber,t=o.endLineNumber;if(e!==t&&1===o.endColumn&&t--,1===e){if(e===t)continue}else e--;let i=v(n,e,t);r.push(...i)}r.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,r),t.pushUndoStop())}}class k{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(let n of e)n.range&&"string"===typeof n.text&&this._edits.push(n)}getEditOperations(e,t){for(let i of this._edits)t.addEditOperation(c["a"].lift(i.range),i.text);let n=!1;Array.isArray(this._edits)&&1===this._edits.length&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),n||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}}class L{constructor(e){this.callOnDispose=new r["b"],this.callOnModel=new r["b"],this.editor=e,this.callOnDispose.add(e.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(e.onDidChangeModel(()=>this.update())),this.callOnDispose.add(e.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),this.editor.getOption(9)<4||this.editor.getOption(45)||this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste(({range:e})=>{this.trigger(e)}))}trigger(e){let t=this.editor.getSelections();if(null===t||t.length>1)return;const n=this.editor.getModel();if(!n)return;if(!n.isCheapToTokenize(e.getStartPosition().lineNumber))return;const i=this.editor.getOption(9),{tabSize:r,indentSize:s,insertSpaces:l}=n.getOptions();let u=[],h={shiftIndent:e=>a["a"].shiftIndent(e,e.length+1,r,s,l),unshiftIndent:e=>a["a"].unshiftIndent(e,e.length+1,r,s,l)},d=e.startLineNumber;while(d<=e.endLineNumber){if(!this.shouldIgnoreLine(n,d))break;d++}if(d>e.endLineNumber)return;let p=n.getLineContent(d);if(!/\S/.test(p.substring(0,e.startColumn-1))){let e=f["a"].getGoodIndentForLine(i,n,n.getLanguageIdentifier().id,d,h);if(null!==e){let t=o["y"](p),i=g["b"](e,r),s=g["b"](t,r);if(i!==s){let e=g["a"](i,r,l);u.push({range:new c["a"](d,1,d,t.length+1),text:e}),p=e+p.substr(t.length)}else{let e=f["a"].getIndentMetadata(n,d);if(0===e||8===e)return}}}const m=d;while(d<e.endLineNumber){if(/\S/.test(n.getLineContent(d+1)))break;d++}if(d!==e.endLineNumber){let t={getLineTokens:e=>n.getLineTokens(e),getLanguageIdentifier:()=>n.getLanguageIdentifier(),getLanguageIdAtPosition:(e,t)=>n.getLanguageIdAtPosition(e,t),getLineContent:e=>e===m?p:n.getLineContent(e)},s=f["a"].getGoodIndentForLine(i,t,n.getLanguageIdentifier().id,d+1,h);if(null!==s){let t=g["b"](s,r),i=g["b"](o["y"](n.getLineContent(d+1)),r);if(t!==i){let s=t-i;for(let t=d+1;t<=e.endLineNumber;t++){let e=n.getLineContent(t),i=o["y"](e),a=g["b"](i,r),h=a+s,d=g["a"](h,r,l);d!==i&&u.push({range:new c["a"](t,1,t,i.length+1),text:d})}}}}if(u.length>0){this.editor.pushUndoStop();let e=new k(u,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",e),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.forceTokenization(t);let n=e.getLineFirstNonWhitespaceColumn(t);if(0===n)return!0;let i=e.getLineTokens(t);if(i.getCount()>0){let e=i.findTokenIndexAtOffset(n);if(e>=0&&1===i.getStandardTokenType(e))return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}}function E(e,t,n,i){if(1===e.getLineCount()&&1===e.getLineMaxColumn(1))return;let r="";for(let s=0;s<n;s++)r+=" ";let o=new RegExp(r,"gi");for(let s=1,a=e.getLineCount();s<=a;s++){let n=e.getLineFirstNonWhitespaceColumn(s);if(0===n&&(n=e.getLineMaxColumn(s)),1===n)continue;const a=new c["a"](s,1,s,n),l=e.getValueInRange(a),u=i?l.replace(/\t/gi,r):l.replace(o,"\t");t.addEditOperation(a,u)}}L.ID="editor.contrib.autoIndentOnPaste";class D{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),E(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}class I{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),E(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}}Object(s["l"])(L.ID,L),Object(s["j"])(b),Object(s["j"])(y),Object(s["j"])(w),Object(s["j"])(C),Object(s["j"])(S),Object(s["j"])(x),Object(s["j"])(O)},bc96:function(e,t,n){},bd0c:function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=42)}([function(e,t){e.exports=function(e,t,n,i){var r,o=e=e||{},s=typeof e.default;"object"!==s&&"function"!==s||(r=e,o=e.default);var a="function"==typeof o?o.options:o;if(t&&(a.render=t.render,a.staticRenderFns=t.staticRenderFns),n&&(a._scopeId=n),i){var l=a.computed||(a.computed={});Object.keys(i).forEach((function(e){var t=i[e];l[e]=function(){return t}}))}return{esModule:r,exports:o,options:a}}},function(e,t,n){var i,r,o;!function(n,s){r=[e,t],i=s,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(){var e=this.unload,t=this.renderByParent,n=this.$parent;t&&n.reload(),e()}Object.defineProperty(t,"__esModule",{value:!0});var r={control:{unload:"removeControl"},layer:{unload:"removeTileLayer"},overlay:{unload:"removeOverlay"},contextMenu:{unload:"removeContextMenu"}},o=function e(t){return t.abstract||t.$el===t.$children[0].$el?e(t.$parent):t},s=function e(t){n(this,e),this.methods={ready:function(){var e=o(this.$parent),t=this.BMap=e.BMap,n=this.map=e.map;this.load(),this.$emit("ready",{BMap:t,map:n})},transmitEvent:function(e){this.$emit(e.type.replace(/^on/,""),e)},reload:function(){var e=this;this&&this.BMap&&this.$nextTick((function(){e.unload(),e.$nextTick(e.load)}))},unload:function(){var e=this.map,n=this.originInstance;try{switch(t.type){case"search":return n.clearResults();case"autoComplete":case"lushu":return n.dispose();case"markerClusterer":return n.clearMarkers();default:e[r[t.type].unload](n)}}catch(e){}}},this.computed={renderByParent:function(){return this.$parent.preventChildrenRender}},this.mounted=function(){var e=o(this.$parent),t=e.map,n=this.ready;t?n():e.$on("ready",n)},this.destroyed=i,this.beforeDestroy=i};t.default=function(e){return new s({type:e})},e.exports=t.default}))},function(e,t,n){var i,r,o;!function(n,s){r=[t],i=s,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e){"use strict";function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.lng,i=t.lat;return new e.Point(n,i)}function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.x,i=t.y;return new e.Pixel(n,i)}function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.sw,r=n.ne;return new e.Bounds(t(e,i),t(e,r))}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.width,i=t.height;return new e.Size(n,i)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.url,i=t.size,o=t.opts,s=void 0===o?{}:o;return new e.Icon(n,r(e,i),{anchor:s.anchor&&r(e,s.anchor),imageSize:s.imageSize&&r(e,s.imageSize),imageOffset:s.imageOffset&&r(e,s.imageOffset),infoWindowAnchor:s.infoWindowAnchor&&r(e,s.infoWindowAnchor),printImageUrl:s.printImageUrl})}function s(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.content,o=n.opts;return new e.Label(i,{offset:o.offset&&r(e,o.offset),position:o.position&&t(e,o.position),enableMassClear:o.enableMassClear})}Object.defineProperty(e,"__esModule",{value:!0}),e.createPoint=t,e.createPixel=n,e.createBounds=i,e.createSize=r,e.createIcon=o,e.createLabel=s}))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var i,r,o;!function(s,a){r=[e,t,n(41)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=this,r=t||i.default[this.$options.name];r&&r.forEach((function(t){var i="on"===t.slice(0,2),r=i?t.slice(2):t,o=n.$listeners[r];o&&e.addEventListener(t,o.fns)}))};var i=function(e){return e&&e.__esModule?e:{default:e}}(n);e.exports=t.default}))},function(e,t,n){var i,r,o;!function(s,a){r=[t,n(2)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPosition=e.checkType=e.isPoint=void 0;var n=e.isPoint=function(e){return e.lng&&e.lat};e.checkType=function(e){return Object.prototype.toString.call(e).slice(8,-1)},e.getPosition=function(e,i){return n(i)?(0,t.createPoint)(e,i):i}}))},function(e,t,n){var i=n(0)(n(71),null,null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(43),n(89),null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(44),n(87),null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(45),null,null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(46),n(94),null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(47),null,null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(48),null,null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(49),null,null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(50),null,null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(51),null,null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(52),null,null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(53),null,null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(54),null,null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(55),null,null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(56),null,null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(57),n(90),null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(58),null,null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(59),null,null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(60),n(97),null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(61),n(82),null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(62),n(95),null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(63),n(86),null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(64),null,null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(65),null,null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(66),n(83),null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(67),null,null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(68),n(96),null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(69),n(84),null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(70),null,null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(72),null,null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(73),n(91),null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(74),n(85),null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(75),n(93),null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(76),n(92),null,null);e.exports=i.exports},function(e,t,n){var i=n(0)(n(77),n(88),null,null);e.exports=i.exports},function(e,t,n){var i,r,o;!function(n,s){r=[e,t],i=s,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"bm-map":["click","dblclick","rightclick","rightdblclick","maptypechange","mousemove","mouseover","mouseout","movestart","moving","moveend","zoomstart","zoomend","addoverlay","addcontrol","removecontrol","removeoverlay","clearoverlays","dragstart","dragging","dragend","addtilelayer","removetilelayer","load","resize","hotspotclick","hotspotover","hotspotout","tilesloaded","touchstart","touchmove","touchend","longpress"],"bm-geolocation":["locationSuccess","locationError"],"bm-overview-map":["viewchanged","viewchanging"],"bm-marker":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","infowindowclose","infowindowopen","dragstart","dragging","dragend","rightclick"],"bm-polyline":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-polygon":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-circle":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-label":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","rightclick"],"bm-info-window":["close","open","maximize","restore","clickclose"],"bm-ground":["click","dblclick"],"bm-autocomplete":["onconfirm","onhighlight"],"bm-point-collection":["click","mouseover","mouseout"]},e.exports=t.default}))},function(e,t,n){var i,r,o;!function(s,a){r=[t,n(24),n(25),n(17),n(14),n(13),n(15),n(12),n(11),n(9),n(16),n(10),n(32),n(34),n(35),n(6),n(28),n(29),n(31),n(30),n(33),n(8),n(7),n(38),n(39),n(40),n(37),n(36),n(22),n(23),n(27),n(26),n(21),n(20),n(19),n(18)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n,i,r,o,s,a,l,c,u,h,d,f,p,g,m,v,b,y,_,w,C,S,x,O,k,L,E,D,I,M,T,A,N,P){"use strict";function j(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0}),e.BmlCurveLine=e.BmlHeatmap=e.BmlLushu=e.BmlMarkerClusterer=e.BmAutoComplete=e.BmBoundary=e.BmTraffic=e.BmTile=e.BmBus=e.BmDriving=e.BmWalking=e.BmTransit=e.BmLocalSearch=e.BmContextMenuItem=e.BmContextMenu=e.BmOverlay=e.BmInfoWindow=e.BmLabel=e.BmGround=e.BmCircle=e.BmPolygon=e.BmPolyline=e.BmPointCollection=e.BmMarker=e.BmControl=e.BmPanorama=e.BmCityList=e.BmCopyright=e.BmGeolocation=e.BmOverviewMap=e.BmMapType=e.BmNavigation=e.BmScale=e.BmView=e.BaiduMap=void 0;var R=j(t),F=j(n),B=j(i),W=j(r),V=j(o),z=j(s),H=j(a),U=j(l),q=j(c),$=j(u),K=j(h),G=j(d),Y=j(f),Z=j(p),X=j(g),Q=j(m),J=j(v),ee=j(b),te=j(y),ne=j(_),ie=j(w),re=j(C),oe=j(S),se=j(x),ae=j(O),le=j(k),ce=j(L),ue=j(E),he=j(D),de=j(I),fe=j(M),pe=j(T),ge=j(A),me=j(N),ve=j(P);e.default={install:function(e,t){var n=t.ak;e.prototype._BMap=function(){return{ak:n}},e.component("baidu-map",R.default),e.component("bm-view",F.default),e.component("bm-scale",B.default),e.component("bm-navigation",W.default),e.component("bm-map-type",V.default),e.component("bm-overview-map",z.default),e.component("bm-geolocation",H.default),e.component("bm-copyright",U.default),e.component("bm-city-list",q.default),e.component("bm-panorama",$.default),e.component("bm-control",K.default),e.component("bm-marker",G.default),e.component("bm-point-collection",Y.default),e.component("bm-polyline",Z.default),e.component("bm-polygon",X.default),e.component("bm-circle",Q.default),e.component("bm-ground",J.default),e.component("bm-label",ee.default),e.component("bm-info-window",te.default),e.component("bm-overlay",ne.default),e.component("bm-context-menu",ie.default),e.component("bm-context-menu-item",re.default),e.component("bm-local-search",oe.default),e.component("bm-transit",se.default),e.component("bm-walking",ae.default),e.component("bm-driving",le.default),e.component("bm-bus",ce.default),e.component("bm-tile",ue.default),e.component("bm-traffic",he.default),e.component("bm-auto-complete",fe.default),e.component("bm-boundary",de.default)}},e.BaiduMap=R.default,e.BmView=F.default,e.BmScale=B.default,e.BmNavigation=W.default,e.BmMapType=V.default,e.BmOverviewMap=z.default,e.BmGeolocation=H.default,e.BmCopyright=U.default,e.BmCityList=q.default,e.BmPanorama=$.default,e.BmControl=K.default,e.BmMarker=G.default,e.BmPointCollection=Y.default,e.BmPolyline=Z.default,e.BmPolygon=X.default,e.BmCircle=Q.default,e.BmGround=J.default,e.BmLabel=ee.default,e.BmInfoWindow=te.default,e.BmOverlay=ne.default,e.BmContextMenu=ie.default,e.BmContextMenuItem=re.default,e.BmLocalSearch=oe.default,e.BmTransit=se.default,e.BmWalking=ae.default,e.BmDriving=le.default,e.BmBus=ce.default,e.BmTile=ue.default,e.BmTraffic=he.default,e.BmBoundary=de.default,e.BmAutoComplete=fe.default,e.BmlMarkerClusterer=pe.default,e.BmlLushu=ge.default,e.BmlHeatmap=me.default,e.BmlCurveLine=ve.default}))},function(e,t,n){var i,r,o;!function(n,s){r=[e,t],i=s,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"bm-context-menu-item",props:{callback:{type:Function,default:function(){}},text:{type:String},iconUrl:{type:String},id:{type:String},disabled:{type:Boolean},seperator:{type:Boolean}},methods:{reload:function(){this.$parent.map&&this.$parent.load()}},watch:{text:function(){this.reload()},iconUrl:function(){this.reload()},id:function(){this.reload()},disabled:function(){this.reload()},iseperator:function(){this.reload()},callback:function(){this.reload()}},destroyed:function(){this.reload()},mounted:function(){this.reload()}},e.exports=t.default}))},function(e,t,n){var i,r,o;!function(s,a){r=[e,t,n(1)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-context-menu",props:{width:{type:Number}},mixins:[(0,i.default)("contextMenu")],methods:{load:function(){var e=this.width,t=this.BMap,n=this.map,i=this.$parent,r=this.parent=i.originInstance||n;this.originInstance&&r.removeContextMenu(this.originInstance);var o=this.originInstance=new t.ContextMenu,s=!0,a=!1,l=void 0;try{for(var c,u=this.$children[Symbol.iterator]();!(s=(c=u.next()).done);s=!0)(function(){var i=c.value;if(i.seperator)return o.addSeparator(),"continue";var s=new t.MenuItem(i.text,(function(e,o){i.callback({point:e,pixel:o,BMap:t,map:n,target:r})}),{width:e,id:i.id,iconUrl:i.iconUrl});i.disabled?s.disable():s.enable(),i.originInstance=s,o.addItem(s)})()}catch(e){a=!0,l=e}finally{try{!s&&u.return&&u.return()}finally{if(a)throw l}}r.addContextMenu(o)}}},e.exports=t.default}))},function(e,t,n){(function(i){var r,o,s;!function(i,a){o=[e,t,n(1),n(2)],r=a,void 0!==(s="function"==typeof r?r.apply(t,o):r)&&(e.exports=s)}(0,(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-city-list",render:function(){},mixins:[(0,o.default)("control")],props:{anchor:{type:String},offset:{type:Object}},watch:{anchor:function(){this.reload()},offset:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.anchor,o=this.offset,s=this;this.originInstance=new e.CityListControl({anchor:i[n],offset:o&&(0,r.createSize)(e,o),onChangeBefore:function(){s.$emit("changeBefore")},onChangeAfter:function(){s.$emit("changeAfter")}}),t.addControl(this.originInstance)}}},e.exports=t.default}))}).call(t,n(3))},function(e,t,n){(function(i){var r,o,s;!function(i,a){o=[e,t,n(1),n(2)],r=a,void 0!==(s="function"==typeof r?r.apply(t,o):r)&&(e.exports=s)}(0,(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-control",mixins:[(0,o.default)("control")],props:["anchor","offset"],watch:{anchor:function(e){this.originInstance.setAnchor(e)},offset:function(e){this.originInstance.setOffset(e)}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.anchor,o=this.offset,s=this.$el,a=function(){this.defaultAnchor=i[n||"BMAP_ANCHOR_TOP_LEFT"],this.defaultOffset=(0,r.createSize)(e,o)};a.prototype=new e.Control,a.prototype.initialize=function(e){return e.getContainer().appendChild(s)},this.originInstance=new a(n,o),t.addControl(this.originInstance)}}},e.exports=t.default}))}).call(t,n(3))},function(e,t,n){(function(i){var r,o,s;!function(i,a){o=[e,t,n(1),n(2)],r=a,void 0!==(s="function"==typeof r?r.apply(t,o):r)&&(e.exports=s)}(0,(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-copyright",render:function(){},mixins:[(0,o.default)("control")],props:["anchor","offset","copyright"],watch:{anchor:function(){this.reload()},offset:function(){this.reload()},copyright:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.offset,o=this.anchor,s=this.updateCopyrightList;this.originInstance=new e.CopyrightControl({anchor:i[o],offset:n&&(0,r.createSize)(e,n)}),s(),t.addControl(this.originInstance)},updateCopyrightList:function(){var e=this,t=this.BMap,n=this.map,i=this.originInstance,r=i.removeCopyright,o=i.getCopyrightCollection,s=o();s&&s.forEach((function(e){r(e.id)})),this.copyright&&this.copyright.forEach((function(i){var r=i.bounds?new t.Bounds(new t.Point(i.bounds.sw.lng,i.bounds.sw.lat),new t.Point(i.bounds.ne.lng,i.bounds.ne.lat)):n.getBounds();e.originInstance.addCopyright({id:i.id,content:i.content,bounds:r}),e.originInstance.getCopyrightCollection()}))}}},e.exports=t.default}))}).call(t,n(3))},function(e,t,n){(function(i){var r,o,s;!function(i,a){o=[e,t,n(1),n(4),n(2)],r=a,void 0!==(s="function"==typeof r?r.apply(t,o):r)&&(e.exports=s)}(0,(function(e,t,n,r,o){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=s(n),l=s(r);t.default={name:"bm-geolocation",render:function(){},mixins:[(0,a.default)("control")],props:{anchor:{type:String},offset:{type:Object},showAddressBar:{type:Boolean},autoLocation:{type:Boolean},locationIcon:{type:Object}},watch:{anchor:function(){this.reload()},offset:function(){this.reload()},showAddressBar:function(){this.reload()},autoLocation:function(){this.reload()},locationIcon:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.anchor,r=this.showAddressBar,s=this.autoLocation,a=this.locationIcon,c=this.offset;this.originInstance=new e.GeolocationControl({anchor:i[n],showAddressBar:r,enableAutoLocation:s,offset:c&&(0,o.createSize)(e,c),locationIcon:a&&(0,o.createIcon)(e,a)}),l.default.call(this,this.originInstance),t.addControl(this.originInstance)}}},e.exports=t.default}))}).call(t,n(3))},function(e,t,n){(function(i){var r,o,s;!function(i,a){o=[e,t,n(1),n(2)],r=a,void 0!==(s="function"==typeof r?r.apply(t,o):r)&&(e.exports=s)}(0,(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-map-type",render:function(){},mixins:[(0,o.default)("control")],props:["type","mapTypes","anchor","offset"],watch:{anchor:function(){this.reload()},offset:function(){this.reload()},type:function(){this.reload()},mapTypes:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.anchor,o=this.offset,s=this.type,a=[];this.mapTypes&&this.mapTypes.forEach((function(e){return a.push(i[e])})),this.originInstance=new e.MapTypeControl({anchor:i[n],offset:o&&(0,r.createSize)(e,o),type:i[s],mapTypes:a}),t.addControl(this.originInstance)}}},e.exports=t.default}))}).call(t,n(3))},function(e,t,n){(function(i){var r,o,s;!function(i,a){o=[e,t,n(1),n(2)],r=a,void 0!==(s="function"==typeof r?r.apply(t,o):r)&&(e.exports=s)}(0,(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-navigation",render:function(){},mixins:[(0,o.default)("control")],props:{anchor:{type:String},offset:{type:Object},type:{type:String},showZoomInfo:{type:Boolean},enableGeolocation:{type:Boolean,default:!1}},watch:{anchor:function(){this.reload()},offset:function(){this.reload()},type:function(){this.reload()},showZoomInfo:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.anchor,o=this.offset,s=this.type,a=this.showZoomInfo,l=this.enableGeolocation;this.originInstance=new e.NavigationControl({anchor:i[n],offset:o&&(0,r.createSize)(e,o),type:i[s],showZoomInfo:a,enableGeolocation:l}),t.addControl(this.originInstance)}}},e.exports=t.default}))}).call(t,n(3))},function(e,t,n){(function(i){var r,o,s;!function(i,a){o=[e,t,n(2),n(1),n(4)],r=a,void 0!==(s="function"==typeof r?r.apply(t,o):r)&&(e.exports=s)}(0,(function(e,t,n,r,o){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=s(r),l=s(o);t.default={name:"bm-overview-map",mixins:[(0,a.default)("control")],render:function(){},props:{anchor:{type:String},offset:{type:Object},size:{type:Object},isOpen:{type:Boolean}},watch:{anchor:function(){this.reload()},offset:function(){this.reload()},size:function(){this.reload()},isOpen:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,r=this.isOpen,o=this.size,s=this.offset,a=this.anchor,c=[];this.mapTypes&&this.mapTypes.forEach((function(e){c.push(i[e])})),this.originInstance=new e.OverviewMapControl({anchor:i[a],offset:(0,n.createSize)(e,s),size:(0,n.createSize)(e,o),isOpen:r}),l.default.call(this,this.originInstance),t.addControl(this.originInstance)}}},e.exports=t.default}))}).call(t,n(3))},function(e,t,n){(function(i){var r,o,s;!function(i,a){o=[e,t,n(1),n(2)],r=a,void 0!==(s="function"==typeof r?r.apply(t,o):r)&&(e.exports=s)}(0,(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-panorama",mixins:[(0,o.default)("control")],render:function(){},props:["anchor","offset"],watch:{anchor:function(){this.reload()},offset:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.anchor,o=this.offset;this.originInstance=new e.PanoramaControl({anchor:i[n],offset:o&&(0,r.createSize)(e,o)}),t.addControl(this.originInstance)}}},e.exports=t.default}))}).call(t,n(3))},function(e,t,n){(function(i){var r,o,s;!function(i,a){o=[e,t,n(1),n(2)],r=a,void 0!==(s="function"==typeof r?r.apply(t,o):r)&&(e.exports=s)}(0,(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-scale",render:function(){},mixins:[(0,o.default)("control")],props:{anchor:{type:String},offset:{type:Object}},watch:{anchor:function(){this.reload()},offset:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.anchor,o=this.offset;this.originInstance=new e.ScaleControl({anchor:i[n],offset:o&&(0,r.createSize)(e,o)}),t.addControl(this.originInstance)}}},e.exports=t.default}))}).call(t,n(3))},function(e,t,n){var i,r,o;!function(s,a){r=[e,t,n(78),n(1),n(4),n(2)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n,i,r,o){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=s(n),l=s(i),c=s(r),u=["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"];t.default={name:"bml-curve-line",render:function(){},mixins:[(0,l.default)("overlay")],props:{points:{type:Array,default:Array},strokeColor:{type:String},strokeWeight:{type:Number},strokeOpacity:{type:Number},strokeStyle:{type:String},massClear:{type:Boolean,default:!0},clicking:{type:Boolean,default:!0},editing:{type:Boolean,default:!1}},watch:{points:{handler:function(e,t){this.originInstance.disableEditing(),this.reload()},deep:!0},strokeColor:function(e){this.originInstance.setStrokeColor(e)},strokeOpacity:function(e){this.originInstance.setStrokeOpacity(e)},strokeWeight:function(e){this.originInstance.setStrokeWeight(e)},strokeStyle:function(e){this.originInstance.setStrokeStyle(e)},editing:function(e){e?this.originInstance.enableEditing():this.originInstance.disableEditing()},massClear:function(e){e?this.originInstance.enableMassClear():this.originInstance.disableMassClear()},clicking:function(e){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.points,i=this.strokeColor,r=this.strokeWeight,s=this.strokeOpacity,l=this.strokeStyle,h=this.editing,d=this.massClear,f=this.clicking,p=new a.default(n.map((function(t){return(0,o.createPoint)(e,t)})),{strokeColor:i,strokeWeight:r,strokeOpacity:s,strokeStyle:l,enableMassClear:d,enableClicking:f});h?p.enableEditing():p.disableEditing(),this.originInstance=p,t.addOverlay(p),c.default.call(this,p,u)}}},e.exports=t.default}))},function(e,t,n){var i,r,o;!function(s,a){r=[e,t,n(1),n(79)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n,i){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n),s=r(i);t.default={name:"bml-heatmap",render:function(){},mixins:[(0,o.default)("overlay")],props:{data:{type:Array,default:Array},max:{type:Number},radius:{type:Number},gradient:{type:Object},opacity:{type:Number}},watch:{data:{handler:function(){this.reload()},deep:!0},max:function(){this.reload()},radius:function(e){var t=this.originInstance,n=this.opacity,i=this.gradient;t.setOptions({radius:e,opacity:n,gradient:i})},gradient:{handler:function(e){var t=this.originInstance,n=this.radius,i=this.opacity;t.setOptions({radius:n,opacity:i,gradient:e})},deep:!0},opacity:function(e){var t=this.originInstance,n=this.radius,i=this.gradient;t.setOptions({radius:n,opacity:e,gradient:i})}},methods:{load:function(){var e=this.map,t=this.data,n=this.max,i=this.radius,r=this.opacity,o=this.gradient,a=this.originInstance=new s.default({radius:i,opacity:r,gradient:o});e.addOverlay(a),a.setDataSet({data:t,max:n})}}},e.exports=t.default}))},function(e,t,n){var i,r,o;!function(s,a){r=[e,t,n(1),n(2),n(80)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n,i,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=o(n),a=o(r);t.default={name:"bm-lushu",render:function(e){},mixins:[(0,s.default)("lushu")],props:{path:{type:Array,default:[]},landmarkPois:{type:Array,default:function(){return[]}},icon:{type:Object},speed:{type:Number,default:4e3},content:{type:String,default:""},autoView:{type:Boolean,default:!1},rotation:{type:Boolean,default:!1},infoWindow:{type:Boolean,default:!0},play:{type:Boolean,default:!0}},watch:{path:{handler:function(e){this.reload()},deep:!0},landmarkPois:{handler:function(e){this.reload()},deep:!0},icon:{handler:function(e){var t=this.originInstance,n=(this.content,(0,i.createIcon)(BMap,e));t._opts.icon=n,t._marker=n},deep:!0},speed:function(e){var t=this.originInstance;this.content,t._opts.speed=e},content:function(e){var t=this.originInstance,n=this.infoWindow;e&&n?t.showInfoWindow():t.hideInfoWindow(),t._opts.defaultContent=e,t._overlay&&t._overlay.setHtml(e)},autoView:function(e){var t=this.originInstance;this.content,t._opts.autoView=e},rotation:function(e){var t=this.originInstance;this.content,t._opts.enableRotation=e},infoWindow:function(e){var t=this.originInstance,n=this.content;t&&e&&n?t.showInfoWindow():t.hideInfoWindow()},play:function(e){var t=this.originInstance;e&&t?t.start():!this._isEnd&&t.pause()}},methods:{load:function(){var e=this,t=this.BMap,n=this.map,r=this.path,o=this.landmarkPois,s=this.icon,l=this.speed,c=this.content,u=this.autoView,h=this.rotation,d=this.infoWindow,f=this.play,p=this.originInstance=new a.default(n,r,{enableRotation:h,landmarkPois:o,showInfoWindow:d,defaultContent:c,icon:s&&(0,i.createIcon)(t,s),speed:l,autoView:u,onstart:function(t){e._isEnd=!1,e.$emit("start")},onstop:function(t){e._isEnd=!0,e.$emit("stop")},onpause:function(t){return e.$emit("pause")}});f&&r.length&&p.start(this),r.length&&(c&&d?p.showInfoWindow():p.hideInfoWindow())}}},e.exports=t.default}))},function(e,t,n){var i,r,o;!function(s,a){r=[e,t,n(81),n(2),n(1)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n,i,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=o(n),a=o(r);t.default={name:"bml-marker-clusterer",mixins:[(0,a.default)("markerClusterer")],props:{gridSize:{type:Object},maxZoom:{type:Number},minClusterSize:{type:Number},styles:{type:Array,default:function(){return[]}},averageCenter:{type:Boolean,default:!1}},watch:{gridSize:{handler:function(e){var t=this.BMap;this.originInstance.setGridSize(t,e.map)},deep:!0},maxZoom:function(e){this.originInstance.setMaxZoom(e)},minClusterSize:{handler:function(e){var t=this.BMap;this.originInstance.setMinClusterSize((0,i.createSize)(t,e))},deep:!0},styles:{handler:function(e){var t=this.BMap,n=this.originInstance,r=JSON.parse(JSON.stringify(e)).map((function(e){return e.size=e.size&&(0,i.createSize)(t,e.size),e}));n.setStyles(r)},deep:!0},averageCenter:function(e){this.reload()}},methods:{load:function(){var e=this,t=this.BMap,n=this.map,r=this.gridSize,o=this.minClusterSize,a=this.maxZoom,l=this.styles,c=this.averageCenter;this.originInstance=new s.default(n,{gridSize:r&&(0,i.createSize)(t,r),maxZoom:a,minClusterSize:o&&(0,i.createSize)(t,o),styles:l.map((function(e){return e.size=(0,i.createSize)(t,e.size),e})),isAverageCenter:c}),this.$nextTick((function(){var n=e.$children.map((function(e){return e.originInstance})).filter((function(e){return e instanceof t.Marker}));e.originInstance.addMarkers(n)}))}},beforeCreate:function(){this.preventChildrenRender=!0}},e.exports=t.default}))},function(e,t,n){var i,r,o;!function(s,a){r=[e,t,n(1),n(2)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-tile",render:function(e){},mixins:[(0,r.default)("layer")],props:{transparentPng:{type:Boolean},tileUrlTemplate:{type:String},copyright:{},zIndex:{type:Number}},watch:{transparentPng:function(){this.reload()},tileUrlTemplate:function(){this.reload()},copyright:function(){this.reload()},zIndex:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.transparentPng,r=this.tileUrlTemplate,o=this.copyright,s=this.zIndex;this.originInstance=new e.TileLayer({transparentPng:n,tileUrlTemplate:r,copyright:o&&{id:o.id,content:o.content,bounds:o.bounds&&(0,i.createBounds)(o.bounds)},zIndex:s}),t.addTileLayer(this.originInstance)}}},e.exports=t.default}))},function(e,t,n){var i,r,o;!function(s,a){r=[e,t,n(1)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-triffic",render:function(e){},mixins:[(0,i.default)("layer")],props:{predictDate:{type:Object}},watch:{"pridictDate.weekday":function(){this.reload()},"pridictDate.hour":function(){this.reload()},pridictDate:function(){this.reload()}},methods:{load:function(){var e=this.pridictDate,t=this.BMap,n=this.map;this.originInstance=new t.TrafficLayer({pridictDate:e}),n.addTileLayer(this.originInstance)}}},e.exports=t.default}))},function(e,t,n){(function(i){var r,o,s;!function(i,a){o=[e,t,n(4),n(5)],r=a,void 0!==(s="function"==typeof r?r.apply(t,o):r)&&(e.exports=s)}(0,(function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default={name:"bm-map",props:{ak:{type:String},center:{type:[Object,String]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},highResolution:{type:Boolean,default:!0},mapClick:{type:Boolean,default:!0},mapType:{type:String},dragging:{type:Boolean,default:!0},scrollWheelZoom:{type:Boolean,default:!1},doubleClickZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},inertialDragging:{type:Boolean,default:!0},continuousZoom:{type:Boolean,default:!0},pinchToZoom:{type:Boolean,default:!0},autoResize:{type:Boolean,default:!0},theme:{type:Array},mapStyle:{type:Object}},watch:{center:function(e,t){var n=this.map,i=this.zoom;"String"===(0,r.checkType)(e)&&e!==t&&n.centerAndZoom(e,i)},"center.lng":function(e,t){var n=this.BMap,i=this.map,r=this.zoom,o=this.center;e!==t&&e>=-180&&e<=180&&i.centerAndZoom(new n.Point(e,o.lat),r)},"center.lat":function(e,t){var n=this.BMap,i=this.map,r=this.zoom,o=this.center;e!==t&&e>=-74&&e<=74&&i.centerAndZoom(new n.Point(o.lng,e),r)},zoom:function(e,t){var n=this.map;e!==t&&e>=3&&e<=19&&n.setZoom(e)},minZoom:function(e){this.map.setMinZoom(e)},maxZoom:function(e){this.map.setMaxZoom(e)},highResolution:function(){this.reset()},mapClick:function(){this.reset()},mapType:function(e){this.map.setMapType(i[e])},dragging:function(e){var t=this.map;e?t.enableDragging():t.disableDragging()},scrollWheelZoom:function(e){var t=this.map;e?t.enableScrollWheelZoom():t.disableScrollWheelZoom()},doubleClickZoom:function(e){var t=this.map;e?t.enableDoubleClickZoom():t.disableDoubleClickZoom()},keyboard:function(e){var t=this.map;e?t.enableKeyboard():t.disableKeyboard()},inertialDragging:function(e){var t=this.map;e?t.enableInertialDragging():t.disableInertialDragging()},continuousZoom:function(e){var t=this.map;e?t.enableContinuousZoom():t.disableContinuousZoom()},pinchToZoom:function(e){var t=this.map;e?t.enablePinchToZoom():t.disablePinchToZoom()},autoResize:function(e){var t=this.map;e?t.enableAutoResize():t.disableAutoResize()},theme:function(e){this.map.setMapStyle({styleJson:e})},"mapStyle.features":{handler:function(e,t){var n=this.map,i=this.mapStyle,r=i.style,o=i.styleJson;n.setMapStyle({styleJson:o,features:e,style:r})},deep:!0},"mapStyle.style":function(e,t){var n=this.map,i=this.mapStyle,r=i.features,o=i.styleJson;n.setMapStyle({styleJson:o,features:r,style:e})},"mapStyle.styleJson":{handler:function(e,t){var n=this.map,i=this.mapStyle,r=i.features,o=i.style;n.setMapStyle({styleJson:e,features:r,style:o})},deep:!0},mapStyle:function(e){var t=this.map;!this.theme&&t.setMapStyle(e)}},methods:{setMapOptions:function(){var e=this.map,t=this.minZoom,n=this.maxZoom,r=this.mapType,o=this.dragging,s=this.scrollWheelZoom,a=this.doubleClickZoom,l=this.keyboard,c=this.inertialDragging,u=this.continuousZoom,h=this.pinchToZoom,d=this.autoResize;t&&e.setMinZoom(t),n&&e.setMaxZoom(n),r&&e.setMapType(i[r]),o?e.enableDragging():e.disableDragging(),s?e.enableScrollWheelZoom():e.disableScrollWheelZoom(),a?e.enableDoubleClickZoom():e.disableDoubleClickZoom(),l?e.enableKeyboard():e.disableKeyboard(),c?e.enableInertialDragging():e.disableInertialDragging(),u?e.enableContinuousZoom():e.disableContinuousZoom(),h?e.enablePinchToZoom():e.disablePinchToZoom(),d?e.enableAutoResize():e.disableAutoResize()},init:function(e){if(!this.map){var t=this.$refs.view,n=!0,i=!1,r=void 0;try{for(var s,a=(this.$slots.default||[])[Symbol.iterator]();!(n=(s=a.next()).done);n=!0){var l=s.value;l.componentOptions&&"bm-view"===l.componentOptions.tag&&(this.hasBmView=!0,t=l.elm)}}catch(e){i=!0,r=e}finally{try{!n&&a.return&&a.return()}finally{if(i)throw r}}var c=new e.Map(t,{enableHighResolution:this.highResolution,enableMapClick:this.mapClick});this.map=c;var u=this.setMapOptions,h=this.zoom,d=this.getCenterPoint,f=this.theme,p=this.mapStyle;f?c.setMapStyle({styleJson:f}):c.setMapStyle(p),u(),o.default.call(this,c),c.reset(),c.centerAndZoom(d(),h),this.$emit("ready",{BMap:e,map:c})}},getCenterPoint:function(){var e=this.center,t=this.BMap;switch((0,r.checkType)(e)){case"String":return e;case"Object":return new t.Point(e.lng,e.lat);default:return new t.Point}},initMap:function(e){this.BMap=e,this.init(e)},getMapScript:function(){if(i.BMap)return i.BMap._preloader?i.BMap._preloader:Promise.resolve(i.BMap);var e=this.ak||this._BMap().ak;return i.BMap={},i.BMap._preloader=new Promise((function(t,n){i._initBaiduMap=function(){t(i.BMap),i.document.body.removeChild(r),i.BMap._preloader=null,i._initBaiduMap=null};var r=document.createElement("script");i.document.body.appendChild(r),r.src="https://api.map.baidu.com/api?v=2.0&ak="+e+"&callback=_initBaiduMap"})),i.BMap._preloader},reset:function(){var e=this.getMapScript,t=this.initMap;e().then(t)}},mounted:function(){this.reset()},data:function(){return{hasBmView:!1}}},e.exports=t.default}))}).call(t,n(3))},function(e,t,n){var i,r,o;!function(n,s){r=[e,t],i=s,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"bm-view"},e.exports=t.default}))},function(e,t,n){var i,r,o;!function(s,a){r=[e,t,n(1),n(4)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n,i){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n),s=r(i);t.default={name:"bm-autocomplete",mixins:[(0,o.default)()],props:{types:{type:String},location:{type:String},sugStyle:{type:Object,default:function(){return{}}}},watch:{types:function(){this.reload()},location:function(){this.reload()}},methods:{load:function(){var e=this,t=this.BMap,n=this.map,i=this.$el,r=this.types,o=this.location,a=this.sugStyle,l=i.querySelector("input");l&&(this.originInstance=new t.Autocomplete({input:l,types:r,location:o||n,onSearchComplete:function(t){var n=document.querySelectorAll(".tangram-suggestion-main"),i=!0,r=!1,o=void 0;try{for(var s,l=n[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var c=s.value;for(var u in a)c.style[u]=a[u].toString()}}catch(e){r=!0,o=e}finally{try{!i&&l.return&&l.return()}finally{if(r)throw o}}e.$emit("searchcomplete",t)}}),this.originInstance.addEventListener("onconfirm",(function(t){var n=t.item.value;e.$emit("input",n.province+n.city+n.district+n.street+n.business)})),s.default.call(this,this.originInstance))}}},e.exports=t.default}))},function(e,t,n){var i,r,o;!function(s,a){r=[e,t,n(6),n(1)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n,i){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n),s=r(i),a=function(){function e(e,t){var n=[],i=!0,r=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){r=!0,o=e}finally{try{!i&&a.return&&a.return()}finally{if(r)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default={mixins:[(0,s.default)("abstract")],props:["name","strokeColor","strokeWeight","strokeOpacity","strokeStyle","fillColor","fillOpacity","massClear","clicking"],data:function(){return{paths:[]}},components:{BmPolygon:o.default},watch:{name:function(){this.reload()}},methods:{load:function(){var e=this,t=this.BMap,n=this.name;(new t.Boundary).get(n,(function(t){e.paths=t.boundaries.map((function(e){return(e||[]).split(";").map((function(e){return function(e){var t=a(e,2);return{lng:t[0],lat:t[1]}}(e.split(",").map((function(e){return+e})))}))}))}))}}},e.exports=t.default}))},function(e,t,n){var i,r,o;!function(s,a){r=[e,t,n(1),n(4),n(2)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n,i,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=o(n),a=o(i);t.default={name:"bm-circle",render:function(){},mixins:[(0,s.default)("overlay")],props:{center:{},radius:{},strokeColor:{type:String},strokeWeight:{type:Number},strokeOpacity:{type:Number},strokeStyle:{type:String},fillColor:{type:String},fillOpacity:{type:Number},massClear:{type:Boolean,default:!0},clicking:{type:Boolean,default:!0},editing:{type:Boolean,default:!1}},watch:{"center.lng":function(e,t){var n=this.BMap,i=this.originInstance,o=this.isEditing,s=this.disableEditing,a=this.enableEditing,l=this.center,c=this.editing;if(!o){s();var u=e;e.toString()!==t.toString()&&u>=-180&&u<=180&&i.setCenter((0,r.createPoint)(n,{lng:u,lat:l.lat})),c&&a()}},"center.lat":function(e,t){var n=this.BMap,i=this.originInstance,o=this.isEditing,s=this.disableEditing,a=this.enableEditing,l=this.center,c=this.editing;if(!o){s();var u=e;e.toString()!==t.toString()&&u>=-74&&u<=74&&i.setCenter((0,r.createPoint)(n,{lng:l.lng,lat:u})),c&&a()}},radius:function(e,t){var n=this.originInstance,i=this.isEditing,r=this.disableEditing,o=this.enableEditing,s=this.editing;i||(r(),n.setRadius(e),s&&o())},strokeColor:function(e){this.originInstance.setStrokeColor(e)},strokeOpacity:function(e){this.originInstance.setStrokeOpacity(e)},strokeWeight:function(e){this.originInstance.setStrokeWeight(e)},strokeStyle:function(e){this.originInstance.setStrokeStyle(e)},fillColor:function(e){this.originInstance.setFillColor(e)},fillOpacity:function(e){this.originInstance.setFillOpacity(e)},editing:function(e){e?this.enableEditing():this.disableEditing()},massClear:function(e){e?this.originInstance.enableMassClear():this.originInstance.disableMassClear()},clicking:function(e){this.reload()}},methods:{dragStartHandler:function(){this.isEditing=!0},dragEndHandler:function(){this.isEditing=!1,this.bindEditingNodeEvents()},bindEditingNodeEvents:function(){var e=this.originInstance,t=this.editingKey,n=this.dragStartHandler,i=this.dragEndHandler;e[t].forEach((function(e){e.addEventListener("dragstart",n),e.addEventListener("dragend",i)}))},enableEditing:function(){var e=this.originInstance,t=this.bindEditingNodeEvents;e.enableEditing(),t()},disableEditing:function(){this.originInstance.disableEditing()},getEditingKey:function(e){var t=this,n=[];e.enableEditing(),setTimeout((function(){for(var i in e)e[i]&&2===e[i].length&&n.push(i);for(var r in e.disableEditing(),e)e[r]&&0===e[r].length&&~n.indexOf(r)&&(t.editingKey=r)}),0)},load:function(){var e=this.BMap,t=this.map,n=this.center,i=this.radius,o=this.strokeColor,s=this.strokeWeight,l=this.strokeOpacity,c=this.strokeStyle,u=this.fillColor,h=this.fillOpacity,d=this.editing,f=this.massClear,p=this.clicking,g=this.enableEditing,m=this.disableEditing,v=this.getEditingKey,b=this.editingKey,y=new e.Circle((0,r.createPoint)(e,{lng:n.lng,lat:n.lat}),i,{strokeColor:o,strokeWeight:s,strokeOpacity:l,strokeStyle:c,fillColor:u,fillOpacity:h,enableMassClear:f,enableClicking:p});this.originInstance=y,t.addOverlay(y),a.default.call(this,y),!b&&v(y),setTimeout((function(){d?g():m()}),0)}}},e.exports=t.default}))},function(e,t,n){var i,r,o;!function(s,a){r=[e,t,n(1),n(4),n(2)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n,i,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=o(n),a=o(i);t.default={name:"bm-ground",render:function(){},mixins:[(0,s.default)("overlay")],props:{bounds:{type:Object},opacity:{type:Number},imageURL:{type:String},displayOnMinLevel:{type:Number},displayOnMaxLevel:{type:Number}},watch:{bounds:{handler:function(e){var t=this.BMap;this.originInstance.setBounds((0,r.createBounds)(t,e))},deep:!0},opacity:function(e){this.originInstance.setOpacity(e)},imageURL:function(e){this.originInstance.setImageURL(e)},displayOnMinLevel:function(e){this.originInstance.setDisplayOnMinLevel(e)},displayOnMaxLevel:function(e){this.originInstance.setDisplayOnMaxLevel(e)}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.bounds,i=this.opacity,o=this.imageURL,s=this.displayOnMinLevel,l=this.displayOnMaxLevel,c=new e.GroundOverlay(n&&(0,r.createBounds)(e,n),{opacity:i,imageURL:o,displayOnMaxLevel:l,displayOnMinLevel:s});c.setImageURL(o),this.originInstance=c,a.default.call(this,c),t.addOverlay(c)}}},e.exports=t.default}))},function(e,t,n){(function(i){var r,o,s;!function(i,a){o=[e,t,n(1),n(4),n(2)],r=a,void 0!==(s="function"==typeof r?r.apply(t,o):r)&&(e.exports=s)}(0,(function(e,t,n,r,o){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=s(n),l=s(r);t.default={name:"bm-info-window",mixins:[(0,a.default)("overlay")],props:{show:{type:Boolean},position:{type:Object},title:{type:String},width:{type:Number},height:{type:Number},maxWidth:{type:Number},offset:{type:Object},maximize:{type:Boolean},autoPan:{type:Boolean},closeOnClick:{type:Boolean,default:!0},message:{type:String}},watch:{show:function(e){e?this.openInfoWindow():this.closeInfoWindow()},"position.lng":function(e,t){this.reload()},"position.lat":function(e,t){this.reload()},"offset.width":function(e,t){this.reload()},"offset.height":function(e){this.reload()},maxWidth:function(){this.reload()},width:function(e){this.originInstance.setWidth(e)},height:function(e){this.originInstance.setHeight(e)},title:function(e){this.originInstance.setTitle(e)},maximize:function(e){e?this.originInstance.enableMaximize():this.originInstance.disableMaximize()},autoPan:function(e){e?this.originInstance.enableAutoPan():this.originInstance.disableAutoPan()},closeOnClick:function(e){e?this.originInstance.enableCloseOnClick():this.originInstance.disableCloseOnClick()}},methods:{redraw:function(){this.originInstance.redraw()},load:function(){var e=this.BMap,t=this.map,n=this.show,i=this.title,r=this.width,s=this.height,a=this.maxWidth,c=this.offset,u=this.autoPan,h=this.closeOnClick,d=this.message,f=this.maximize,p=this.bindObserver,g=this.$parent,m=this.$el,v=new e.InfoWindow(m,{width:r,height:s,title:i,maxWidth:a,offset:(0,o.createSize)(e,c),enableAutoPan:u,enableCloseOnClick:h,enableMessage:void 0===d,message:d});f?v.enableMaximize():v.disableMaximize(),l.default.call(this,v),this.originInstance=v,v.redraw(),[].forEach.call(m.querySelectorAll("img"),(function(e){e.onload=function(){return v.redraw()}})),p(),this.$container=g.originInstance&&g.originInstance.openInfoWindow?g.originInstance:t,n&&this.openInfoWindow()},bindObserver:function(){var e=i.MutationObserver;if(e){var t=this.$el,n=this.originInstance;this.observer=new e((function(e){return n.redraw()})),this.observer.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}},openInfoWindow:function(){var e=this.BMap,t=this.$container,n=this.position,i=this.originInstance;t.openInfoWindow(i,(0,o.createPoint)(e,n))},closeInfoWindow:function(){this.$container.closeInfoWindow(this.originInstance)}}},e.exports=t.default}))}).call(t,n(3))},function(e,t,n){var i,r,o;!function(s,a){r=[e,t,n(1),n(4),n(2)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n,i,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=o(n),a=o(i);t.default={name:"bm-label",render:function(){},mixins:[(0,s.default)("overlay")],props:{content:{type:String},title:{type:String},offset:{},position:{},labelStyle:{},zIndex:{type:Number,default:0},massClear:{type:Boolean,default:!0}},watch:{content:function(e){this.originInstance.setContent(e)},title:function(e){this.originInstance.setTitle(e)},"offset.width":function(e,t){var n=this.BMap;e.toString()!==t.toString()&&this.originInstance.setOffset((0,r.createSize)(n,{width:e,height:this.offset.height}))},"offset.height":function(e,t){var n=this.BMap;e.toString()!==t.toString()&&this.originInstance.setOffset((0,r.createSize)(n,{width:this.offset.width,height:e}))},"position.lng":function(e,t){var n=this.BMap,i=e;e.toString()!==t.toString()&&i>=-180&&i<=180&&this.originInstance.setCenter((0,r.createPoint)(n,{lng:i,lat:this.center.lat}))},"position.lat":function(e,t){var n=this.BMap,i=e;e.toString()!==t.toString()&&i>=-74&&i<=74&&this.originInstance.setCenter((0,r.createPoint)(n,{lng:this.center.lng,lat:i}))},labelStyle:{handler:function(e){this.originInstance.setStyle(e)},deep:!0},zIndex:function(e){this.originInstance.setZIndex(e)},massClear:function(e){e?this.originInstance.enableMassClear():this.originInstance.disableMassClear()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.content,i=this.title,o=this.offset,s=this.position,l=this.labelStyle,c=this.zIndex,u=this.massClear,h=this.$parent,d=new e.Label(n,{offset:(0,r.createSize)(e,o),position:(0,r.createPoint)(e,s),enableMassClear:u});this.originInstance=d;try{h.originInstance.setLabel(d)}catch(e){t.addOverlay(d)}i&&d.setTitle(i),l&&d.setStyle(l),c&&d.setZIndex(c),a.default.call(this,d)}}},e.exports=t.default}))},function(e,t,n){(function(i){var r,o,s;!function(i,a){o=[e,t,n(1),n(4),n(2)],r=a,void 0!==(s="function"==typeof r?r.apply(t,o):r)&&(e.exports=s)}(0,(function(e,t,n,r,o){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=s(n),l=s(r);t.default={name:"bm-marker",mixins:[(0,a.default)("overlay")],props:{position:{},offset:{},icon:{},massClear:{type:Boolean,default:!0},dragging:{type:Boolean,default:!1},clicking:{type:Boolean,default:!0},raiseOnDrag:{type:Boolean,default:!1},draggingCursor:{type:String},rotation:{type:Number},shadow:{type:Object},title:{type:String},label:{type:Object},animation:{type:String},top:{type:Boolean,default:!1},zIndex:{type:Number,default:0}},watch:{"position.lng":function(e,t){var n=this.BMap,i=this.originInstance,r=this.position,s=this.renderByParent,a=this.$parent;e!==t&&e>=-180&&e<=180&&i.setPosition((0,o.createPoint)(n,{lng:e,lat:r.lat})),s&&a.reload()},"position.lat":function(e,t){var n=this.BMap,i=this.originInstance,r=this.position,s=this.renderByParent,a=this.$parent;e!==t&&e>=-74&&e<=74&&i.setPosition((0,o.createPoint)(n,{lng:r.lng,lat:e})),s&&a.reload()},"offset.width":function(e,t){var n=this.BMap,i=this.originInstance;e!==t&&i.setOffset(new n.Size(e,this.offset.height))},"offset.height":function(e,t){var n=this.BMap,i=this.originInstance;e!==t&&i.setOffset(new n.Size(this.offset.width,e))},icon:{deep:!0,handler:function(e){var t=this.BMap,n=this.originInstance,i=this.rotation;n&&n.setIcon((0,o.createIcon)(t,e)),i&&n&&n.setRotation(i)}},massClear:function(e){e?this.originInstance.enableMassClear():this.originInstance.disableMassClear()},dragging:function(e){e?this.originInstance.enableDragging():this.originInstance.disableDragging()},clicking:function(){this.reload()},raiseOnDrag:function(){this.reload()},draggingCursor:function(e){this.originInstance.setDraggingCursor(e)},rotation:function(e){this.originInstance.setRotation(e)},shadow:function(e){this.originInstance.setShadow(e)},title:function(e){this.originInstance.setTitle(e)},label:function(e){this.reload()},animation:function(e){this.originInstance.setAnimation(i[e])},top:function(e){this.originInstance.setTop(e)},zIndex:function(e){this.originInstance.setZIndex(e)}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.position,r=this.offset,s=this.icon,a=this.massClear,c=this.dragging,u=this.clicking,h=this.raiseOnDrag,d=this.draggingCursor,f=this.rotation,p=this.shadow,g=this.title,m=this.label,v=this.animation,b=this.top,y=this.renderByParent,_=this.$parent,w=this.zIndex,C=new e.Marker(new e.Point(n.lng,n.lat),{offset:r,icon:s&&(0,o.createIcon)(e,s),enableMassClear:a,enableDragging:c,enableClicking:u,raiseOnDrag:h,draggingCursor:d,rotation:f,shadow:p,title:g});this.originInstance=C,m&&C&&C.setLabel((0,o.createLabel)(e,m)),C.setTop(b),C.setZIndex(w),l.default.call(this,C),y?_.reload():t.addOverlay(C),C.setAnimation(i[v])}}},e.exports=t.default}))}).call(t,n(3))},function(e,t,n){var i,r,o;!function(s,a){r=[e,t,n(1)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(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}function o(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)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){return e&&e.__esModule?e:{default:e}}(n),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();t.default={name:"bm-overlay",mixins:[(0,s.default)("overlay")],props:{pane:{type:String}},watch:{pane:function(){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.$el,s=this.pane,l=this.$emit.bind(this),c=function(c){function u(){return i(this,u),r(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return o(u,c),a(u,[{key:"initialize",value:function(){l("initialize",{BMap:e,map:t,el:n,overlay:this});try{t.getPanes()[s].appendChild(n)}catch(e){}return n}},{key:"draw",value:function(){l("draw",{BMap:e,map:t,el:n,overlay:this})}}]),u}(e.Overlay),u=new c;this.originInstance=u,t.addOverlay(u)}}},e.exports=t.default}))},function(e,t,n){(function(i){var r,o,s;!function(i,a){o=[e,t,n(1),n(4),n(2)],r=a,void 0!==(s="function"==typeof r?r.apply(t,o):r)&&(e.exports=s)}(0,(function(e,t,n,r,o){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=s(n),l=s(r);t.default={render:function(){},name:"bm-point-collection",mixins:[(0,a.default)("overlay")],props:{points:{type:Array,default:function(){return[]}},shape:{type:String,default:"BMAP_POINT_SHAPE_CIRCLE"},color:{type:String},size:{type:String,default:"BMAP_POINT_SIZE_NORMAL"}},watch:{shape:function(e){var t=this.originInstance,n=this.color,r=this.size;t.setStyles({shape:i[e],color:n,size:i[r]})},size:function(e){var t=this.originInstance,n=this.color,r=this.shape;t.setStyles({shape:i[r],color:n,size:i[e]})},color:function(e){var t=this.originInstance,n=this.shape,r=this.size;t.setStyles({shape:i[n],color:e,size:i[r]})},points:{deep:!0,handler:function(e){var t=this.originInstance;t.clear(),t.setPoints(e)}}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.points,r=this.shape,s=this.color,a=this.size,c=this.originInstance=new e.PointCollection(n.map((function(t){return(0,o.createPoint)(e,t)})),{shape:i[r],color:s,size:i[a]});l.default.call(this,c),t.addOverlay(c)}}},e.exports=t.default}))}).call(t,n(3))},function(e,t,n){var i,r,o;!function(s,a){r=[e,t,n(1),n(4),n(2)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n,i,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=o(n),a=o(i);t.default={name:"bm-polygon",render:function(){},mixins:[(0,s.default)("overlay")],props:{path:{type:Array,default:function(){return[]}},strokeColor:{type:String},strokeWeight:{type:Number},strokeOpacity:{type:Number},strokeStyle:{type:String},fillColor:{type:String},fillOpacity:{type:Number},massClear:{type:Boolean,default:!0},clicking:{type:Boolean,default:!0},editing:{type:Boolean,default:!1}},watch:{path:{handler:function(e,t){this.reload()},deep:!0},strokeColor:function(e){this.originInstance.setStrokeColor(e)},strokeOpacity:function(e){this.originInstance.setStrokeOpacity(e)},strokeWeight:function(e){this.originInstance.setStrokeWeight(e)},strokeStyle:function(e){this.originInstance.setStrokeStyle(e)},fillColor:function(e){this.originInstance.setFillColor(e)},fillOpacity:function(e){this.originInstance.setFillOpacity(e)},editing:function(e){e?this.originInstance.enableEditing():this.originInstance.disableEditing()},massClear:function(e){e?this.originInstance.enableMassClear():this.originInstance.disableMassClear()},clicking:function(e){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.path,i=this.strokeColor,o=this.strokeWeight,s=this.strokeOpacity,l=this.strokeStyle,c=this.fillColor,u=this.fillOpacity,h=this.editing,d=this.massClear,f=this.clicking,p=new e.Polygon(n.map((function(t){return(0,r.createPoint)(e,{lng:t.lng,lat:t.lat})})),{strokeColor:i,strokeWeight:o,strokeOpacity:s,strokeStyle:l,fillColor:c,fillOpacity:u,enableMassClear:d,enableClicking:f});this.originInstance=p,t.addOverlay(p),a.default.call(this,p),h?p.enableEditing():p.disableEditing()}}},e.exports=t.default}))},function(e,t,n){var i,r,o;!function(s,a){r=[e,t,n(1),n(4),n(2)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n,i,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=o(n),a=o(i);t.default={name:"bm-polyline",render:function(){},mixins:[(0,s.default)("overlay")],props:{path:{type:Array},strokeColor:{type:String},strokeWeight:{type:Number},strokeOpacity:{type:Number},strokeStyle:{type:String},massClear:{type:Boolean,default:!0},clicking:{type:Boolean,default:!0},editing:{type:Boolean,default:!1}},watch:{path:{handler:function(e,t){this.reload()},deep:!0},strokeColor:function(e){this.originInstance.setStrokeColor(e)},strokeOpacity:function(e){this.originInstance.setStrokeOpacity(e)},strokeWeight:function(e){this.originInstance.setStrokeWeight(e)},strokeStyle:function(e){this.originInstance.setStrokeStyle(e)},editing:function(e){e?this.originInstance.enableEditing():this.originInstance.disableEditing()},massClear:function(e){e?this.originInstance.enableMassClear():this.originInstance.disableMassClear()},clicking:function(e){this.reload()}},methods:{load:function(){var e=this.BMap,t=this.map,n=this.path,i=this.strokeColor,o=this.strokeWeight,s=this.strokeOpacity,l=this.strokeStyle,c=this.editing,u=this.massClear,h=this.clicking,d=new e.Polyline(n.map((function(t){return(0,r.createPoint)(e,{lng:t.lng,lat:t.lat})})),{strokeColor:i,strokeWeight:o,strokeOpacity:s,strokeStyle:l,enableEditing:c,enableMassClear:u,enableClicking:h});this.originInstance=d,t.addOverlay(d),a.default.call(this,d)}}},e.exports=t.default}))},function(e,t,n){var i,r,o;!function(s,a){r=[e,t,n(2),n(5),n(1)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n,i,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default={name:"bm-bus",mixins:[(0,o.default)("search")],props:{location:{type:[Object,String]},keyword:{type:String},panel:{type:Boolean,default:!0},pageCapacity:{type:Number},autoViewport:{type:Boolean},selectFirstResult:{type:Boolean}},watch:{location:{handler:function(e){var t=this.originInstance,n=this.map;t.setLocation(e||n)},deep:!0},keyword:function(e){this.search(e)},panel:function(){this.reload()},autoViewport:function(e){this.reload()},selectFirstResult:function(e){this.reload()}},methods:{search:function(e){this.originInstance.getBusList(e)},load:function(){var e=this,t=this.location,r=this.selectFirstResult,o=this.autoViewport,s=this.highlightMode,a=this.keyword,l=this.search,c=this.BMap,u=this.map,h=this.originInstance,d=t?(0,i.isPoint)(t)?(0,n.createPoint)(c,t):t:u,f=this.originInstance=new c.BusLineSearch(d,{renderOptions:{map:u,panel:this.$el,selectFirstResult:r,autoViewport:o,highlightMode:s},onGetBusListComplete:function(t){h&&h!==f&&h.clearResults(),e.$emit("getbuslistcomplete",t)},onGetBusLineComplete:function(t){h&&h!==f&&h.clearResults(),e.$emit("getbuslinecomplete",t)},onBusListHtmlSet:function(t){e.$emit("buslisthtmlset",t)},onBusLineHtmlSet:function(t){e.$emit("buslinehtmlset",t)},onMarkersSet:function(t){e.$emit("markersset",t)},onPolylinesSet:function(t){e.$emit("polylinesset",t)}});l(a)}}},e.exports=t.default}))},function(e,t,n){(function(i){var r,o,s;!function(i,a){o=[e,t,n(2),n(5),n(1)],r=a,void 0!==(s="function"==typeof r?r.apply(t,o):r)&&(e.exports=s)}(0,(function(e,t,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default={name:"bm-driving",mixins:[(0,s.default)("search")],props:{location:{type:[Object,String]},start:{type:[Object,String]},end:{type:[Object,String]},startCity:{type:[String,Number]},endCity:{type:[String,Number]},waypoints:{type:Array},policy:{type:String},panel:{type:Boolean,default:!0},autoViewport:{type:Boolean},selectFirstResult:{type:Boolean}},watch:{location:{handler:function(e){var t=this.originInstance,n=this.map;t.setLocation(e||n)},deep:!0},start:{handler:function(e){var t=this.originInstance,n=this.end,i=this.startCity,o=this.endCity,s=this.waypoints,a=this.BMap,l=this.getWaypoints;t.search((0,r.getPosition)(a,e),(0,r.getPosition)(a,n),{startCity:i,endCity:o,waypoints:l(s)})},deep:!0},end:{handler:function(e){var t=this.originInstance,n=this.start,i=this.startCity,o=this.endCity,s=this.waypoints,a=this.BMap,l=this.getWaypoints;t.search((0,r.getPosition)(a,n),(0,r.getPosition)(a,e),{startCity:i,endCity:o,waypoints:l(s)})},deep:!0},startCity:function(e){var t=this.originInstance,n=this.start,i=this.end,r=this.endCity,o=this.waypoints,s=this.getWaypoints;t.search(n,i,{val:e,endCity:r,waypoints:s(o)})},endCity:function(e){var t=this.originInstance,n=this.start,i=this.end,r=this.startCity,o=this.waypoints,s=this.getWaypoints;t.search(n,i,{startCity:r,val:e,waypoints:s(o)})},waypoints:{handler:function(e){var t=this.originInstance,n=this.start,i=this.end,r=this.startCity,o=this.endCity,s=this.getWaypoints;t.search(n,i,{startCity:r,endCity:o,waypoints:s(e)})},deep:!0},panel:function(){this.reload()},policy:function(e){this.reload()},autoViewport:function(){this.reload()},selectFirstResult:function(){this.reload()},highlightMode:function(){this.reload()}},methods:{search:function(e,t,n){var i=n.startCity,r=n.endCity,o=n.waypoints,s=this.originInstance,a=this.getWaypoints;s.search(e,t,{startCity:i,endCity:r,waypoints:a(o)})},getWaypoints:function(e){var t=this.BMap;if(e)return e.map((function(e){return(0,r.getPosition)(t,e)}))},load:function(){var e=this,t=this.map,o=this.BMap,s=this.location,a=this.policy,l=this.selectFirstResult,c=this.autoViewport,u=this.highlightMode,h=this.search,d=this.start,f=this.end,p=this.startCity,g=this.endCity,m=this.waypoints,v=this.originInstance,b=this.getWaypoints,y=s?(0,r.isPoint)(s)?(0,n.createPoint)(o,s):s:t,_=this.originInstance=new o.DrivingRoute(y,{renderOptions:{map:t,panel:this.$el,selectFirstResult:l,autoViewport:c,highlightMode:u},policy:i[a],onSearchComplete:function(t){v&&v!==_&&v.clearResults(),e.$emit("searchcomplete",t)},onMarkersSet:function(t){e.$emit("markersset",t)},onInfoHtmlSet:function(t){e.$emit("infohtmlset",t)},onPolylinesSet:function(t){e.$emit("polylinesset",t)},onResultsHtmlSet:function(t){e.$emit("resultshtmlset",t)}});h((0,r.getPosition)(o,d),(0,r.getPosition)(o,f),{startCity:p,endCity:g,waypoints:b(m)})}}},e.exports=t.default}))}).call(t,n(3))},function(e,t,n){var i,r,o;!function(s,a){r=[e,t,n(2),n(5),n(1)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n,i,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default={name:"bm-local-search",mixins:[(0,o.default)("search")],props:{location:{type:[Object,String]},keyword:{type:[Array,String]},panel:{type:Boolean,default:!0},forceLocal:{type:Boolean},customData:{type:Object},bounds:{type:Object},nearby:{type:Object},pageCapacity:{type:Number},autoViewport:{type:Boolean},selectFirstResult:{type:Boolean}},watch:{location:{handler:function(e){var t=this.originInstance,n=this.search;t.setLocation(e||this.map),n()},deep:!0},keyword:function(){this.search()},bounds:{handler:function(e){(0,this.searchInBounds)(e)},deep:!0},nearby:{handler:function(e){(0,this.searchNearby)(e)},deep:!0},forceLocal:function(){this.reload()},customData:{deep:!0,handler:function(){this.reload()}},pageCapacity:function(e){this.originInstance&&this.originInstance.setPageCapacity(e)},autoViewport:function(e){this.originInstance&&(e?this.originInstance.enableAutoViewport():this.originInstance.disableAutoViewport())},selectFirstResult:function(e){this.originInstance&&(e?this.originInstance.enableFirstResultSelection():this.originInstance.disableFirstResultSelection())},highlightMode:function(){this.reload()}},methods:{searchNearby:function(e){var t=this.originInstance,i=this.keyword,r=this.customData,o=this.BMap;t.searchNearby(i,(0,n.createPoint)(o,e.center),e.radius,r)},searchInBounds:function(e){var t=this.originInstance,i=this.keyword,r=this.customData,o=this.BMap;t.searchInBounds(i,(0,n.createBounds)(o,e),r)},search:function(){var e=this.originInstance,t=this.keyword,n=this.forceLocal,i=this.customData,r=this.nearby,o=this.bounds,s=this.searchNearby,a=this.searchInBounds;r?s(r):o?a(o):e.search(t,{forceLocal:n,customData:i})},load:function(){var e=this,t=this.map,r=this.BMap,o=this.search,s=this.pageCapacity,a=this.autoViewport,l=this.selectFirstResult,c=this.highlightMode,u=this.location,h=this.originInstance,d=u?(0,i.isPoint)(u)?(0,n.createPoint)(r,u):u:t,f=this.originInstance=new r.LocalSearch(d,{onMarkersSet:function(t){e.$emit("markersset",t)},onInfoHtmlSet:function(t){e.$emit("infohtmlset",t)},onResultsHtmlSet:function(t){e.$emit("resultshtmlset",t)},onSearchComplete:function(t){h&&h!==f&&h.clearResults(),e.$emit("searchcomplete",t)},pageCapacity:s,renderOptions:{map:t,panel:this.$el,selectFirstResult:l,autoViewport:a,highlightMode:c}});o()}}},e.exports=t.default}))},function(e,t,n){(function(i){var r,o,s;!function(i,a){o=[e,t,n(2),n(5),n(1)],r=a,void 0!==(s="function"==typeof r?r.apply(t,o):r)&&(e.exports=s)}(0,(function(e,t,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default={name:"bm-transit",mixins:[(0,s.default)("search")],props:{location:{type:[Object,String]},start:{type:[Object,String]},end:{type:[Object,String]},panel:{type:Boolean,default:!0},policy:{type:String},pageCapacity:{type:Number},autoViewport:{type:Boolean},selectFirstResult:{type:Boolean}},watch:{location:{handler:function(e){var t=this.originInstance,n=this.map;t.setLocation(e||n)},deep:!0},start:{handler:function(e){var t=this.originInstance,n=this.end,i=this.BMap;t.search((0,r.getPosition)(i,e),(0,r.getPosition)(i,n))},deep:!0},end:{handler:function(e){var t=this.originInstance,n=this.start,i=this.BMap;t.search((0,r.getPosition)(i,n),(0,r.getPosition)(i,e))},deep:!0},panel:function(){this.reload()},policy:function(e){this.originInstance.setPolicy(i[e])},pageCapacity:function(e){this.originInstance&&this.originInstance.setPageCapacity(e)},autoViewport:function(e){this.originInstance&&(e?this.originInstance.enableAutoViewport():this.originInstance.disableAutoViewport())},selectFirstResult:function(){this.reload()},highlightMode:function(){this.reload()}},methods:{search:function(e,t){this.originInstance.search(e,t)},load:function(){var e=this,t=this.map,o=this.BMap,s=this.location,a=this.policy,l=this.pageCapacity,c=this.selectFirstResult,u=this.autoViewport,h=this.highlightMode,d=this.search,f=this.start,p=this.end,g=this.originInstance,m=s?(0,r.isPoint)(s)?(0,n.createPoint)(o,s):s:t,v=this.originInstance=new o.TransitRoute(m,{renderOptions:{map:t,panel:this.$el,selectFirstResult:c,autoViewport:u,highlightMode:h},policy:i[a],pageCapacity:l,onSearchComplete:function(t){g&&g!==v&&g.clearResults(),e.$emit("searchcomplete",t)},onMarkersSet:function(t){e.$emit("markersset",t)},onInfoHtmlSet:function(t){e.$emit("infohtmlset",t)},onPolylinesSet:function(t){e.$emit("polylinesset",t)},onResultsHtmlSet:function(t){e.$emit("resultshtmlset",t)}});d((0,r.isPoint)(f)?(0,n.createPoint)(o,f):f,(0,r.isPoint)(p)?(0,n.createPoint)(o,p):p)}}},e.exports=t.default}))}).call(t,n(3))},function(e,t,n){var i,r,o;!function(s,a){r=[e,t,n(2),n(5),n(1)],i=a,void 0!==(o="function"==typeof i?i.apply(t,r):i)&&(e.exports=o)}(0,(function(e,t,n,i,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default={name:"bm-walking",mixins:[(0,o.default)("search")],props:{location:{type:[Object,String]},start:{type:[Object,String]},end:{type:[Object,String]},panel:{type:Boolean,default:!0},pageCapacity:{type:Number},autoViewport:{type:Boolean},selectFirstResult:{type:Boolean}},watch:{location:{handler:function(e){var t=this.originInstance,n=this.map;t.setLocation(e||n)},deep:!0},start:{handler:function(e){var t=this.originInstance,n=this.end,r=this.BMap;t.search((0,i.getPosition)(r,e),(0,i.getPosition)(r,n))},deep:!0},end:{handler:function(e){var t=this.originInstance,n=this.start,r=this.BMap;t.search((0,i.getPosition)(r,n),(0,i.getPosition)(r,e))},deep:!0},panel:function(){this.reload()},autoViewport:function(e){this.reload()},selectFirstResult:function(e){this.reload()},highlightMode:function(){this.reload()}},methods:{search:function(e,t){this.originInstance.search(e,t)},load:function(){var e=this,t=this.map,r=this.BMap,o=this.location,s=this.selectFirstResult,a=this.autoViewport,l=this.highlightMode,c=this.search,u=this.start,h=this.end,d=this.originInstance,f=o?(0,i.isPoint)(o)?(0,n.createPoint)(r,o):o:t,p=this.originInstance=new r.WalkingRoute(f,{renderOptions:{map:t,panel:this.$el,selectFirstResult:s,autoViewport:a,highlightMode:l},onSearchComplete:function(t){d&&d!==p&&d.clearResults(),e.$emit("searchcomplete",t)},onMarkersSet:function(t){e.$emit("markersset",t)},onInfoHtmlSet:function(t){e.$emit("infohtmlset",t)},onPolylinesSet:function(t){e.$emit("polylinesset",t)},onResultsHtmlSet:function(t){e.$emit("resultshtmlset",t)}});c((0,i.isPoint)(u)?(0,n.createPoint)(r,u):u,(0,i.isPoint)(h)?(0,n.createPoint)(r,h):h)}}},e.exports=t.default}))},function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){function e(e,n){try{BMap}catch(e){throw Error("Baidu Map JS API is not ready yet!")}var i=t(e),r=new BMap.Polyline(i,n);return r.addEventListener("lineupdate",(function(){this.isEditing&&this.enableEditing()})),r.cornerPoints=e,r.editMarkers=[],r.enableEditing=function(){var e=this;if(e.map){e.disableEditing();for(var n=0;n<e.cornerPoints.length;n++){var i=new BMap.Marker(e.cornerPoints[n],{icon:new BMap.Icon("http://api.map.baidu.com/library/CurveLine/1.5/src/circle.png",new BMap.Size(16,16)),enableDragging:!0,raiseOnDrag:!0});i.addEventListener("dragend",(function(){e.cornerPoints.length=0;for(var n=0;n<e.editMarkers.length;n++)e.cornerPoints.push(e.editMarkers[n].getPosition());var i=t(e.cornerPoints);e.setPath(i)})),i.index=n,e.editMarkers.push(i),e.map.addOverlay(i)}}e.isEditing=!0},r.disableEditing=function(){this.isEditing=!1;for(var e=0;e<this.editMarkers.length;e++)this.map.removeOverlay(this.editMarkers[e]),this.editMarkers[e]=null;this.editMarkers.length=0},r.getPath=function(){return i},r}function t(e){for(var t=[],i=0;i<e.length-1;i++){var r=n(e[i],e[i+1]);r&&r.length>0&&(t=t.concat(r))}return t}function n(e,t){var n=[];if(!(e&&t&&e instanceof BMap.Point&&t instanceof BMap.Point))return null;var i,r,o,s,a,l,c=function(e){return 1-2*e+e*e},u=function(e){return 2*e-2*e*e},h=function(e){return e*e},d=0,f=0;if(void 0!==t){var p=parseFloat(e.lat),g=parseFloat(t.lat),m=parseFloat(e.lng),v=parseFloat(t.lng);for(v>m&&parseFloat(v-m)>180&&m<0&&(m=parseFloat(360+m)),m>v&&parseFloat(m-v)>180&&v<0&&(v=parseFloat(360+v)),l=0,g==p?(i=0,r=m-v):v==m?(i=Math.PI/2,r=p-g):(i=Math.atan((g-p)/(v-m)),r=(g-p)/Math.sin(i)),0==l&&(l=i+Math.PI/5),o=r/2,a=o*Math.cos(l)+m,s=o*Math.sin(l)+p,d=0;d<31;d++)n.push(new BMap.Point(m*c(f)+a*u(f)+v*h(f),p*c(f)+s*u(f)+g*h(f))),f+=1/30;return n}void 0!==n&&(n=[])}return e}))},function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){function e(e,t,n){var i,r,o=e.prototype,s=new Function;for(i in s.prototype=t.prototype,r=e.prototype=new s,o)r[i]=o[i];e.prototype.constructor=e,e.superClass=t.prototype,"string"==typeof n&&(r._className=n)}var t=function(){var e=function(e){var t={data:[],heatmap:e};this.max=1,this.get=function(e){return t[e]},this.set=function(e,n){t[e]=n}};e.prototype={addDataPoint:function(e,t){if(!(e<0||t<0)){var n=this,i=n.get("heatmap"),r=n.get("data");if(r[e]||(r[e]=[]),r[e][t]||(r[e][t]=0),r[e][t]+=arguments.length<3?1:arguments[2],n.set("data",r),n.max<r[e][t])return i.get("actx").clearRect(0,0,i.get("width"),i.get("height")),void n.setDataSet({max:r[e][t],data:r},!0);i.drawAlpha(e,t,r[e][t],!0)}},setDataSet:function(e,t){var n=this,i=n.get("heatmap"),r=[],o=e.data,s=o.length;if(i.clear(),this.max=e.max,i.get("legend")&&i.get("legend").update(e.max),null!=t&&t){for(var a in o)if(void 0!==a)for(var l in o[a])void 0!==l&&i.drawAlpha(a,l,o[a][l],!1)}else for(;s--;){var c=o[s];i.drawAlpha(c.x,c.y,c.count,!1),r[c.x]||(r[c.x]=[]),r[c.x][c.y]||(r[c.x][c.y]=0),r[c.x][c.y]=c.count}i.colorize(),this.set("data",o)},exportDataSet:function(){var e=this,t=e.get("data"),n=[];for(var i in t)if(void 0!==i)for(var r in t[i])void 0!==r&&n.push({x:parseInt(i,10),y:parseInt(r,10),count:t[i][r]});return{max:e.max,data:n}},generateRandomDataSet:function(e){var t=this.get("heatmap"),n=t.get("width"),i=t.get("height"),r={},o=Math.floor(1e3*Math.random()+1);r.max=o;for(var s=[];e--;)s.push({x:Math.floor(Math.random()*n+1),y:Math.floor(Math.random()*i+1),count:Math.floor(Math.random()*o+1)});r.data=s,this.setDataSet(r)}};var t=function(e){this.config=e;var t={element:null,labelsEl:null,gradientCfg:null,ctx:null};this.get=function(e){return t[e]},this.set=function(e,n){t[e]=n},this.init()};t.prototype={init:function(){var e,t,n=this,i=n.config,r=i.title||"Legend",o=i.position,s=i.offset||10,a=(i.gradient,document.createElement("ul")),l="";n.processGradientObject(),o.indexOf("t")>-1?l+="top:"+s+"px;":l+="bottom:"+s+"px;",o.indexOf("l")>-1?l+="left:"+s+"px;":l+="right:"+s+"px;",e=document.createElement("div"),e.style.cssText="border-radius:5px;position:absolute;"+l+"font-family:Helvetica; width:256px;z-index:10000000000; background:rgba(255,255,255,1);padding:10px;border:1px solid black;margin:0;",e.innerHTML="<h3 style='padding:0;margin:0;text-align:center;font-size:16px;'>"+r+"</h3>",a.style.cssText="position:relative;font-size:12px;display:block;list-style:none;list-style-type:none;margin:0;height:15px;",t=document.createElement("div"),t.style.cssText=["position:relative;display:block;width:256px;height:15px;border-bottom:1px solid black; background-image:url(",n.createGradientImage(),");"].join(""),e.appendChild(a),e.appendChild(t),n.set("element",e),n.set("labelsEl",a),n.update(1)},processGradientObject:function(){var e=this,t=this.config.gradient,n=[];for(var i in t)t.hasOwnProperty(i)&&n.push({stop:i,value:t[i]});n.sort((function(e,t){return e.stop-t.stop})),n.unshift({stop:0,value:"rgba(0,0,0,0)"}),e.set("gradientArr",n)},createGradientImage:function(){var e,t=this,n=t.get("gradientArr"),i=n.length,r=document.createElement("canvas"),o=r.getContext("2d");r.width="256",r.height="15",e=o.createLinearGradient(0,5,256,10);for(var s=0;s<i;s++)e.addColorStop(1/(i-1)*s,n[s].value);o.fillStyle=e,o.fillRect(0,5,256,10),o.strokeStyle="black",o.beginPath();for(s=0;s<i;s++)o.moveTo(.5+(1/(i-1)*s*256>>0),0),o.lineTo(.5+(1/(i-1)*s*256>>0),0==s?15:5);return o.moveTo(255.5,0),o.lineTo(255.5,15),o.moveTo(255.5,4.5),o.lineTo(0,4.5),o.stroke(),t.set("ctx",o),r.toDataURL()},getElement:function(){return this.get("element")},update:function(e){for(var t,n,i=this,r=i.get("gradientArr"),o=i.get("ctx"),s=i.get("labelsEl"),a="",l=0;l<r.length;l++)t=e*r[l].stop>>0,n=o.measureText(t).width/2>>0,0==l&&(n=0),l==r.length-1&&(n*=2),a+='<li style="position:absolute;left:'+(((1/(r.length-1)*l*256||0)>>0)-n+.5)+'px">'+t+"</li>";s.innerHTML=a}};var n=function(t){var n={radius:40,element:{},canvas:{},acanvas:{},ctx:{},actx:{},legend:null,visible:!0,width:0,height:0,max:!1,gradient:!1,opacity:180,premultiplyAlpha:!1,bounds:{l:1e3,r:0,t:1e3,b:0},debug:!1};this.store=new e(this),this.get=function(e){return n[e]},this.set=function(e,t){n[e]=t},this.configure(t),this.init()};return n.prototype={configure:function(e){var n=this;if(n.set("radius",e.radius||40),n.set("element",e.element instanceof Object?e.element:document.getElementById(e.element)),n.set("visible",null==e.visible||e.visible),n.set("max",e.max||!1),n.set("gradient",e.gradient||{.45:"rgb(0,0,255)",.55:"rgb(0,255,255)",.65:"rgb(0,255,0)",.95:"yellow",1:"rgb(255,0,0)"}),n.set("opacity",parseInt(255/(100/e.opacity),10)||180),n.set("width",e.width||0),n.set("height",e.height||0),n.set("debug",e.debug),e.legend){var i=e.legend;i.gradient=n.get("gradient"),n.set("legend",new t(i))}},resize:function(){var e=this,t=e.get("element"),n=e.get("canvas"),i=e.get("acanvas");n.width=i.width=e.get("width")||t.style.width.replace(/px/,"")||e.getWidth(t),this.set("width",n.width),n.height=i.height=e.get("height")||t.style.height.replace(/px/,"")||e.getHeight(t),this.set("height",n.height)},init:function(){var e=this,t=document.createElement("canvas"),n=document.createElement("canvas"),i=t.getContext("2d"),r=n.getContext("2d"),o=e.get("element");e.initColorPalette(),e.set("canvas",t),e.set("ctx",i),e.set("acanvas",n),e.set("actx",r),e.resize(),t.style.cssText=n.style.cssText="position:absolute;top:0;left:0;z-index:10000000;",e.get("visible")||(t.style.display="none"),o.appendChild(t),e.get("legend")&&o.appendChild(e.get("legend").getElement()),e.get("debug")&&document.body.appendChild(n),r.shadowOffsetX=15e3,r.shadowOffsetY=15e3,r.shadowBlur=15},initColorPalette:function(){var e,t,n,i=this,r=document.createElement("canvas"),o=i.get("gradient");for(var s in r.width="1",r.height="256",e=r.getContext("2d"),t=e.createLinearGradient(0,0,1,256),n=e.getImageData(0,0,1,1),n.data[0]=n.data[3]=64,n.data[1]=n.data[2]=0,e.putImageData(n,0,0),n=e.getImageData(0,0,1,1),i.set("premultiplyAlpha",n.data[0]<60||n.data[0]>70),o)t.addColorStop(s,o[s]);e.fillStyle=t,e.fillRect(0,0,1,256),i.set("gradient",e.getImageData(0,0,1,256).data)},getWidth:function(e){var t=e.offsetWidth;return e.style.paddingLeft&&(t+=e.style.paddingLeft),e.style.paddingRight&&(t+=e.style.paddingRight),t},getHeight:function(e){var t=e.offsetHeight;return e.style.paddingTop&&(t+=e.style.paddingTop),e.style.paddingBottom&&(t+=e.style.paddingBottom),t},colorize:function(e,t){var n,i,r,o,s,a,l,c,u,h=this,d=h.get("width"),f=h.get("radius"),p=h.get("height"),g=h.get("actx"),m=h.get("ctx"),v=3*f,b=h.get("premultiplyAlpha"),y=h.get("gradient"),_=h.get("opacity"),w=h.get("bounds");null!=e&&null!=t?(e+v>d&&(e=d-v),e<0&&(e=0),t<0&&(t=0),t+v>p&&(t=p-v),n=e,i=t,o=e+v,r=t+v):(n=w.l<0?0:w.l,o=w.r>d?d:w.r,i=w.t<0?0:w.t,r=w.b>p?p:w.b),s=g.getImageData(n,i,o-n,r-i),a=s.data.length;for(var C=3;C<a;C+=4)l=s.data[C],c=4*l,c&&(u=l<_?l:_,s.data[C-3]=y[c],s.data[C-2]=y[c+1],s.data[C-1]=y[c+2],b&&(s.data[C-3]/=255/u,s.data[C-2]/=255/u,s.data[C-1]/=255/u),s.data[C]=u);m.putImageData(s,n,i)},drawAlpha:function(e,t,n,i){var r=this,o=r.get("radius"),s=r.get("actx"),a=(r.get("max"),r.get("bounds")),l=e-1.5*o>>0,c=t-1.5*o>>0,u=e+1.5*o>>0,h=t+1.5*o>>0;s.shadowColor="rgba(0,0,0,"+(n?n/r.store.max:"0.1")+")",s.shadowOffsetX=15e3,s.shadowOffsetY=15e3,s.shadowBlur=15,s.beginPath(),s.arc(e-15e3,t-15e3,o,0,2*Math.PI,!0),s.closePath(),s.fill(),i?r.colorize(l,c):(l<a.l&&(a.l=l),c<a.t&&(a.t=c),u>a.r&&(a.r=u),h>a.b&&(a.b=h))},toggleDisplay:function(){var e=this,t=e.get("visible"),n=e.get("canvas");n.style.display=t?"none":"block",e.set("visible",!t)},getImageData:function(){return this.get("canvas").toDataURL()},clear:function(){var e=this,t=e.get("width"),n=e.get("height");e.store.set("data",[]),e.get("ctx").clearRect(0,0,t,n),e.get("actx").clearRect(0,0,t,n)},cleanup:function(){var e=this;e.get("element").removeChild(e.get("canvas"))}},{create:function(e){return new n(e)},util:{mousePosition:function(e){var t,n;if(e.layerX?(t=e.layerX,n=e.layerY):e.offsetX&&(t=e.offsetX,n=e.offsetY),void 0!==t)return[t,n]}}}}(),n=function(t){try{BMap}catch(e){throw Error("Baidu Map JS API is not ready yet!")}if(!n._isExtended){n._isExtended=!0,e(n,BMap.Overlay,"HeatmapOverlay");var i=new n(t);this.__proto__=i.__proto__}this.conf=t,this.heatmap=null,this.latlngs=[],this.bounds=null,this._moveendHandler=this._moveendHandler.bind(this)};return n.prototype.initialize=function(e){this._map=e;var n=document.createElement("div");return n.style.position="absolute",n.style.top=0,n.style.left=0,n.style.border=0,n.style.width=this._map.getSize().width+"px",n.style.height=this._map.getSize().height+"px",this.conf.element=n,e.getPanes().mapPane.appendChild(n),this.heatmap=t.create(this.conf),this._div=n,n},n.prototype.draw=function(){var e=this._map.getBounds();if(!e.equals(this.bounds)){this.bounds=e;var t=this._map.pointToOverlayPixel(e.getNorthEast()),n=this._map.pointToOverlayPixel(e.getSouthWest());if(t&&n){var i=t.y,r=n.x,o=n.y-t.y,s=t.x-n.x;if(this.conf.element.style.left=r+"px",this.conf.element.style.top=i+"px",this.conf.element.style.width=s+"px",this.conf.element.style.height=o+"px",this.heatmap.store.get("heatmap").resize(),this.latlngs.length>0){this.heatmap.clear();for(var a=this.latlngs.length,l={max:this.heatmap.store.max,data:[]};a--;){var c=this.latlngs[a].latlng;if(e.containsPoint(c)){var u=this._map.pointToOverlayPixel(c),h=new BMap.Pixel(u.x-r,u.y-i),d=this.pixelTransform(h);l.data.push({x:d.x,y:d.y,count:this.latlngs[a].c})}}this.heatmap.store.setDataSet(l)}}}},n.prototype.pixelTransform=function(e){for(var t=this.heatmap.get("width"),n=this.heatmap.get("height");e.x<0;)e.x+=t;for(;e.x>t;)e.x-=t;for(;e.y<0;)e.y+=n;for(;e.y>n;)e.y-=n;return e.x=e.x>>0,e.y=e.y>>0,e},n.prototype._moveendHandler=function(e){this.setDataSet(this._data),delete this._data,this._map.removeEventListener("moveend",this._moveendHandler)},n.prototype.setDataSet=function(e){if(this._map){var t=this._map.getBounds(),n=this._map.pointToOverlayPixel(t.getNorthEast()),i=this._map.pointToOverlayPixel(t.getSouthWest());n&&i||(this._data=e,this._map.addEventListener("moveend",this._moveendHandler));var r={max:e.max,data:[]},o=e.data,s=o.length;for(this.latlngs=[];s--;){var a=new BMap.Point(o[s].lng,o[s].lat);if(this.latlngs.push({latlng:a,c:o[s].count}),t.containsPoint(a)){var l=this._map.pointToOverlayPixel(a),c=this._map.pointToOverlayPixel(t.getSouthWest()).x,u=this._map.pointToOverlayPixel(t.getNorthEast()).y,h=new BMap.Pixel(l.x-c,l.y-u),d=this.pixelTransform(h);r.data.push({x:d.x,y:d.y,count:o[s].count})}}this.heatmap.clear(),this.heatmap.store.setDataSet(r)}},n.prototype.addDataPoint=function(e,t,n){var i=new BMap.Point(e,t),r=this.pixelTransform(this._map.pointToOverlayPixel(i));this.heatmap.store.addDataPoint(r.x,r.y,n),this.latlngs.push({latlng:i,c:n})},n.prototype.toggle=function(){this.heatmap.toggleDisplay()},n}))},function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){function e(e,t){this._point=e,this._html=t}function t(){e.prototype=new BMap.Overlay,e.prototype.initialize=function(e){var t=this._div=n.dom.create("div",{style:"border:solid 1px #ccc;width:auto;min-width:50px;text-align:center;position:absolute;background:#fff;color:#000;font-size:12px;border-radius: 10px;padding:5px;white-space: nowrap;"});return t.innerHTML=this._html,e.getPanes().floatPane.appendChild(t),this._map=e,t},e.prototype.draw=function(){this.setPosition(this.lushuMain._marker.getPosition(),this.lushuMain._marker.getIcon().size)},n.object.extend(e.prototype,{setPosition:function(e,t){var i=this._map.pointToOverlayPixel(e),r=n.dom.getStyle(this._div,"width"),o=n.dom.getStyle(this._div,"height"),s=parseInt(this._div.clientWidth||r,10);parseInt(this._div.clientHeight||o,10),this._div.style.left=i.x-s/2+"px",this._div.style.bottom=-(i.y-t.height)+"px"},setHtml:function(e){this._div.innerHTML=e},setRelatedClass:function(e){this.lushuMain=e}})}var n={dom:{}};n.dom.g=function(e){return"string"==typeof e||e instanceof String?document.getElementById(e):e&&e.nodeName&&(1==e.nodeType||9==e.nodeType)?e:null},n.g=n.G=n.dom.g,n.lang=n.lang||{},n.lang.isString=function(e){return"[object String]"==Object.prototype.toString.call(e)},n.isString=n.lang.isString,n.dom._g=function(e){return n.lang.isString(e)?document.getElementById(e):e},n._g=n.dom._g,n.dom.getDocument=function(e){return e=n.dom.g(e),9==e.nodeType?e:e.ownerDocument||e.document},n.browser=n.browser||{},n.browser.ie=n.ie=/msie (\d+\.\d+)/i.test(navigator.userAgent)?document.documentMode||+RegExp.$1:void 0,n.dom.getComputedStyle=function(e,t){e=n.dom._g(e);var i,r=n.dom.getDocument(e);return r.defaultView&&r.defaultView.getComputedStyle&&(i=r.defaultView.getComputedStyle(e,null))?i[t]||i.getPropertyValue(t):""},n.dom._styleFixer=n.dom._styleFixer||{},n.dom._styleFilter=n.dom._styleFilter||[],n.dom._styleFilter.filter=function(e,t,i){for(var r,o=0,s=n.dom._styleFilter;r=s[o];o++)(r=r[i])&&(t=r(e,t));return t},n.string=n.string||{},n.string.toCamelCase=function(e){return e.indexOf("-")<0&&e.indexOf("_")<0?e:e.replace(/[-_][^-_]/g,(function(e){return e.charAt(1).toUpperCase()}))},n.dom.getStyle=function(e,t){var i=n.dom;e=i.g(e),t=n.string.toCamelCase(t);var r=e.style[t]||(e.currentStyle?e.currentStyle[t]:"")||i.getComputedStyle(e,t);if(!r){var o=i._styleFixer[t];o&&(r=o.get?o.get(e):n.dom.getStyle(e,o))}return(o=i._styleFilter)&&(r=o.filter(t,r,"get")),r},n.getStyle=n.dom.getStyle,n.dom._NAME_ATTRS=function(){var e={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder"};return n.browser.ie<8?(e.for="htmlFor",e.class="className"):(e.htmlFor="for",e.className="class"),e}(),n.dom.setAttr=function(e,t,i){return e=n.dom.g(e),"style"==t?e.style.cssText=i:(t=n.dom._NAME_ATTRS[t]||t,e.setAttribute(t,i)),e},n.setAttr=n.dom.setAttr,n.dom.setAttrs=function(e,t){for(var i in e=n.dom.g(e),t)n.dom.setAttr(e,i,t[i]);return e},n.setAttrs=n.dom.setAttrs,n.dom.create=function(e,t){var i=document.createElement(e),r=t||{};return n.dom.setAttrs(i,r)},n.object=n.object||{},n.extend=n.object.extend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e};var i=function(e,t,n){try{BMap}catch(e){throw Error("Baidu Map JS API is not ready yet!")}!t||t.length<1||(this._map=e,this._path=t,this.i=0,this._setTimeoutQuene=[],this._projection=this._map.getMapType().getProjection(),this._opts={icon:null,speed:4e3,defaultContent:"",showInfoWindow:!1},this._setOptions(n),this._rotation=0,!this._opts.icon instanceof BMap.Icon&&(this._opts.icon=defaultIcon))};return i.prototype._setOptions=function(e){if(e)for(var t in e)e.hasOwnProperty(t)&&(this._opts[t]=e[t])},i.prototype.start=function(){var e=this,t=e._path.length;if(this._opts.onstart&&this._opts.onstart(e),e.i&&e.i<t-1){if(!e._fromPause)return;e._fromStop||e._moveNext(++e.i)}else!e._marker&&e._addMarker(),e._timeoutFlag=setTimeout((function(){!e._overlay&&e._addInfoWin(),e._moveNext(e.i)}),400);this._fromPause=!1,this._fromStop=!1},i.prototype.stop=function(){this.i=0,this._fromStop=!0,clearInterval(this._intervalFlag),this._clearTimeout();for(var e=0,t=this._opts.landmarkPois,n=t.length;e<n;e++)t[e].bShow=!1;this._opts.onstop&&this._opts.onstop(this)},i.prototype.pause=function(){clearInterval(this._intervalFlag),this._fromPause=!0,this._clearTimeout(),this._opts.onpause&&this._opts.onpause(this)},i.prototype.hideInfoWindow=function(){this._opts.showInfoWindow=!1,this._overlay&&(this._overlay._div.style.visibility="hidden")},i.prototype.showInfoWindow=function(){this._opts.showInfoWindow=!0,this._overlay&&(this._overlay._div.style.visibility="visible")},i.prototype.dispose=function(){clearInterval(this._intervalFlag),this._setTimeoutQuene&&this._clearTimeout(),this._map&&(this._map.removeOverlay(this._overlay),this._map.removeOverlay(this._marker))},n.object.extend(i.prototype,{_addMarker:function(e){this._marker&&(this.stop(),this._map.removeOverlay(this._marker),clearTimeout(this._timeoutFlag)),this._overlay&&this._map.removeOverlay(this._overlay);var t=new BMap.Marker(this._path[0]);this._opts.icon&&t.setIcon(this._opts.icon),this._map.addOverlay(t),t.setAnimation(BMAP_ANIMATION_DROP),this._marker=t},_addInfoWin:function(){var n=this;!e.prototype.initialize&&t();var i=new e(n._marker.getPosition(),n._opts.defaultContent);i.setRelatedClass(this),this._overlay=i,this._map.addOverlay(i),this._opts.showInfoWindow?this.showInfoWindow():this.hideInfoWindow()},_getMercator:function(e){return this._map.getMapType().getProjection().lngLatToPoint(e)},_getDistance:function(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},_move:function(e,t,n){var i=this,r=0,o=this._opts.speed/100,s=this._projection.lngLatToPoint(e),a=this._projection.lngLatToPoint(t),l=Math.round(i._getDistance(s,a)/o);l<1?i._moveNext(++i.i):i._intervalFlag=setInterval((function(){if(r>=l){if(clearInterval(i._intervalFlag),i.i>i._path.length)return;i._moveNext(++i.i)}else{r++;var o=n(s.x,a.x,r,l),c=n(s.y,a.y,r,l),u=i._projection.pointToLngLat(new BMap.Pixel(o,c));if(1==r){var h=null;i.i-1>=0&&(h=i._path[i.i-1]),1==i._opts.enableRotation&&i.setRotation(h,e,t),i._opts.autoView&&(i._map.getBounds().containsPoint(u)||i._map.setCenter(u))}i._marker.setPosition(u),i._setInfoWin(u)}}),10)},setRotation:function(e,t,n){var i=this,r=0;if(t=i._map.pointToPixel(t),n=i._map.pointToPixel(n),n.x!=t.x){var o=(n.y-t.y)/(n.x-t.x);r=360*Math.atan(o)/(2*Math.PI),r=n.x<t.x?90-r+90:-r,i._marker.setRotation(-r)}else{var s=n.y-t.y,a=0;a=s>0?-1:1,i._marker.setRotation(90*-a)}},linePixellength:function(e,t){return Math.sqrt(Math.abs(e.x-t.x)*Math.abs(e.x-t.x)+Math.abs(e.y-t.y)*Math.abs(e.y-t.y))},pointToPoint:function(e,t){return Math.abs(e.x-t.x)*Math.abs(e.x-t.x)+Math.abs(e.y-t.y)*Math.abs(e.y-t.y)},_moveNext:function(e){var t=this;e<this._path.length-1?t._move(t._path[e],t._path[e+1],t._tween.linear):t.stop()},_setInfoWin:function(e){var t=this;t._overlay.setPosition(e,t._marker.getIcon().size);var n=t._troughPointIndex(e);-1!=n?(clearInterval(t._intervalFlag),t._overlay.setHtml(t._opts.landmarkPois[n].html),t._overlay.setPosition(e,t._marker.getIcon().size),t._pauseForView(n)):t._overlay.setHtml(t._opts.defaultContent)},_pauseForView:function(e){var t=this,n=setTimeout((function(){t._moveNext(++t.i)}),1e3*t._opts.landmarkPois[e].pauseTime);t._setTimeoutQuene.push(n)},_clearTimeout:function(){for(var e in this._setTimeoutQuene)clearTimeout(this._setTimeoutQuene[e]);this._setTimeoutQuene.length=0},_tween:{linear:function(e,t,n,i){return(t-e)*n/i+e}},_troughPointIndex:function(e){for(var t=this._opts.landmarkPois,n=0,i=t.length;n<i;n++)if(!t[n].bShow&&this._map.getDistance(new BMap.Point(t[n].lng,t[n].lat),e)<10)return t[n].bShow=!0,n;return-1}}),i}))},function(e,t,n){(function(t){var i,r;!function(t,n){e.exports=n()}(0,(function(){"use strict";function e(e){this._markerClusterer=e,this._map=e.getMap(),this._minClusterSize=e.getMinClusterSize(),this._isAverageCenter=e.isAverageCenter(),this._center=null,this._markers=[],this._gridBounds=null,this._isReal=!1,this._clusterMarker=new a(this._center,this._markers.length,{styles:this._markerClusterer.getStyles()})}var o="undefined"!=typeof window?window:void 0!==t?t:this,s=function(e,t){return t={exports:{}},e(t,t.exports,o),t.exports}((function(e,t,o){!function(o,s){"object"==typeof t?e.exports=s():(i=s,void 0!==(r="function"==typeof i?i.call(t,n,t,e):i)&&(e.exports=r))}(0,(function(){var e,t=e=t||{version:"1.3.8"},n={};t.guid="$BAIDU$",n[t.guid]=n[t.guid]||{},t.dom=t.dom||{},t.dom.g=function(e){return"string"==typeof e||e instanceof String?document.getElementById(e):e&&e.nodeName&&(1==e.nodeType||9==e.nodeType)?e:null},t.g=t.G=t.dom.g,t.dom.getDocument=function(e){return e=t.dom.g(e),9==e.nodeType?e:e.ownerDocument||e.document},t.lang=t.lang||{},t.lang.isString=function(e){return"[object String]"==Object.prototype.toString.call(e)},t.isString=t.lang.isString,t.dom._g=function(e){return t.lang.isString(e)?document.getElementById(e):e},t._g=t.dom._g,t.browser=t.browser||{},/msie (\d+\.\d)/i.test(navigator.userAgent)&&(t.browser.ie=t.ie=document.documentMode||+RegExp.$1),t.dom.getComputedStyle=function(e,n){e=t.dom._g(e);var i,r=t.dom.getDocument(e);return r.defaultView&&r.defaultView.getComputedStyle&&(i=r.defaultView.getComputedStyle(e,null))?i[n]||i.getPropertyValue(n):""},t.dom._styleFixer=t.dom._styleFixer||{},t.dom._styleFilter=t.dom._styleFilter||[],t.dom._styleFilter.filter=function(e,n,i){for(var r,o=0,s=t.dom._styleFilter;r=s[o];o++)(r=r[i])&&(n=r(e,n));return n},t.string=t.string||{},t.string.toCamelCase=function(e){return e.indexOf("-")<0&&e.indexOf("_")<0?e:e.replace(/[-_][^-_]/g,(function(e){return e.charAt(1).toUpperCase()}))},t.dom.getStyle=function(e,n){var i=t.dom;e=i.g(e),n=t.string.toCamelCase(n);var r=e.style[n]||(e.currentStyle?e.currentStyle[n]:"")||i.getComputedStyle(e,n);if(!r){var o=i._styleFixer[n];o&&(r=o.get?o.get(e):t.dom.getStyle(e,o))}return(o=i._styleFilter)&&(r=o.filter(n,r,"get")),r},t.getStyle=t.dom.getStyle,/opera\/(\d+\.\d)/i.test(navigator.userAgent)&&(t.browser.opera=+RegExp.$1),t.browser.isWebkit=/webkit/i.test(navigator.userAgent),t.browser.isGecko=/gecko/i.test(navigator.userAgent)&&!/like gecko/i.test(navigator.userAgent),t.browser.isStrict="CSS1Compat"==document.compatMode,t.dom.getPosition=function(e){e=t.dom.g(e);var n,i,r=t.dom.getDocument(e),o=t.browser,s=t.dom.getStyle,a=(o.isGecko>0&&r.getBoxObjectFor&&"absolute"==s(e,"position")&&(""===e.style.top||e.style.left),{left:0,top:0}),l=o.ie&&!o.isStrict?r.body:r.documentElement;if(e==l)return a;if(e.getBoundingClientRect){i=e.getBoundingClientRect(),a.left=Math.floor(i.left)+Math.max(r.documentElement.scrollLeft,r.body.scrollLeft),a.top=Math.floor(i.top)+Math.max(r.documentElement.scrollTop,r.body.scrollTop),a.left-=r.documentElement.clientLeft,a.top-=r.documentElement.clientTop;var c=r.body,u=parseInt(s(c,"borderLeftWidth")),h=parseInt(s(c,"borderTopWidth"));o.ie&&!o.isStrict&&(a.left-=isNaN(u)?2:u,a.top-=isNaN(h)?2:h)}else{n=e;do{if(a.left+=n.offsetLeft,a.top+=n.offsetTop,o.isWebkit>0&&"fixed"==s(n,"position")){a.left+=r.body.scrollLeft,a.top+=r.body.scrollTop;break}n=n.offsetParent}while(n&&n!=e);for((o.opera>0||o.isWebkit>0&&"absolute"==s(e,"position"))&&(a.top-=r.body.offsetTop),n=e.offsetParent;n&&n!=r.body;)a.left-=n.scrollLeft,o.opera&&"TR"==n.tagName||(a.top-=n.scrollTop),n=n.offsetParent}return a},t.event=t.event||{},t.event._listeners=t.event._listeners||[],t.event.on=function(e,n,i){n=n.replace(/^on/i,""),e=t.dom._g(e);var r,o=function(t){i.call(e,t)},s=t.event._listeners,a=t.event._eventFilter,l=n;return n=n.toLowerCase(),a&&a[n]&&(r=a[n](e,n,o),l=r.type,o=r.listener),e.addEventListener?e.addEventListener(l,o,!1):e.attachEvent&&e.attachEvent("on"+l,o),s[s.length]=[e,n,i,o,l],e},t.on=t.event.on,function(){var e=n[t.guid];t.lang.guid=function(){return"TANGRAM__"+(e._counter++).toString(36)},e._counter=e._counter||1}(),n[t.guid]._instances=n[t.guid]._instances||{},t.lang.isFunction=function(e){return"[object Function]"==Object.prototype.toString.call(e)},t.lang.Class=function(e){this.guid=e||t.lang.guid(),n[t.guid]._instances[this.guid]=this},n[t.guid]._instances=n[t.guid]._instances||{},t.lang.Class.prototype.dispose=function(){for(var e in delete n[t.guid]._instances[this.guid],this)t.lang.isFunction(this[e])||delete this[e];this.disposed=!0},t.lang.Class.prototype.toString=function(){return"[object "+(this._className||"Object")+"]"},t.lang.Event=function(e,t){this.type=e,this.returnValue=!0,this.target=t||null,this.currentTarget=null},t.lang.Class.prototype.addEventListener=function(e,n,i){if(t.lang.isFunction(n)){!this.__listeners&&(this.__listeners={});var r,o=this.__listeners;if("string"==typeof i&&i){if(/[^\w\-]/.test(i))throw"nonstandard key:"+i;n.hashCode=i,r=i}0!=e.indexOf("on")&&(e="on"+e),"object"!=typeof o[e]&&(o[e]={}),r=r||t.lang.guid(),n.hashCode=r,o[e][r]=n}},t.lang.Class.prototype.removeEventListener=function(e,n){if(void 0===n||(!t.lang.isFunction(n)||(n=n.hashCode))&&t.lang.isString(n)){!this.__listeners&&(this.__listeners={}),0!=e.indexOf("on")&&(e="on"+e);var i=this.__listeners;if(i[e])if(void 0!==n)i[e][n]&&delete i[e][n];else for(var r in i[e])delete i[e][r]}},t.lang.Class.prototype.dispatchEvent=function(e,n){for(var i in t.lang.isString(e)&&(e=new t.lang.Event(e)),!this.__listeners&&(this.__listeners={}),n=n||{},n)e[i]=n[i];var r=this.__listeners,o=e.type;if(e.target=e.target||this,e.currentTarget=this,0!=o.indexOf("on")&&(o="on"+o),t.lang.isFunction(this[o])&&this[o].apply(this,arguments),"object"==typeof r[o])for(i in r[o])r[o][i].apply(this,arguments);return e.returnValue},t.lang.inherits=function(e,t,n){var i,r,o=e.prototype,s=new Function;for(i in s.prototype=t.prototype,r=e.prototype=new s,o)r[i]=o[i];e.prototype.constructor=e,e.superClass=t.prototype,"string"==typeof n&&(r._className=n)},t.inherits=t.lang.inherits;var i=function(t,n,r){try{BMap}catch(e){throw Error("Baidu Map JS API is not ready yet!")}e.lang.inherits(i,BMap.Overlay,"TextIconOverlay"),this._position=t,this._text=n,this._options=r||{},this._styles=this._options.styles||[],!this._styles.length&&this._setupDefaultStyles()};return i.prototype._setupDefaultStyles=function(){for(var e,t=[53,56,66,78,90],n=0;e=t[n];n++)this._styles.push({url:"http://api.map.baidu.com/library/TextIconOverlay/1.2/src/images/m"+n+".png",size:new BMap.Size(e,e)})},i.prototype.initialize=function(e){return this._map=e,this._domElement=document.createElement("div"),this._updateCss(),this._updateText(),this._updatePosition(),this._bind(),this._map.getPanes().markerMouseTarget.appendChild(this._domElement),this._domElement},i.prototype.draw=function(){this._map&&this._updatePosition()},i.prototype.getText=function(){return this._text},i.prototype.setText=function(e){!e||this._text&&this._text.toString()==e.toString()||(this._text=e,this._updateText(),this._updateCss(),this._updatePosition())},i.prototype.getPosition=function(){return this._position},i.prototype.setPosition=function(e){!e||this._position&&this._position.equals(e)||(this._position=e,this._updatePosition())},i.prototype.getStyleByText=function(e,t){var n=parseInt(e),i=parseInt(n/10);return i=Math.max(0,i),i=Math.min(i,t.length-1),t[i]},i.prototype._updateCss=function(){if(this._domElement){var e=this.getStyleByText(this._text,this._styles);this._domElement.style.cssText=this._buildCssText(e)}},i.prototype._updateText=function(){this._domElement&&(this._domElement.innerHTML=this._text)},i.prototype._updatePosition=function(){if(this._domElement&&this._position){var e=this._domElement.style,t=this._map.pointToOverlayPixel(this._position);t.x-=Math.ceil(parseInt(e.width)/2),t.y-=Math.ceil(parseInt(e.height)/2),e.left=t.x+"px",e.top=t.y+"px"}},i.prototype._buildCssText=function(t){var n=t.url,i=t.size,r=t.anchor,o=t.offset,s=t.textColor||"black",a=t.textSize||10,l=[];if(e.browser.ie<7)l.push('filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="'+n+'");');else{l.push("background-image:url("+n+");");var c="0 0";o instanceof BMap.Size&&(c=o.width+"px "+o.height+"px"),l.push("background-position:"+c+";")}return i instanceof BMap.Size&&(r instanceof BMap.Size?(r.height>0&&r.height<i.height&&l.push("height:"+(i.height-r.height)+"px; padding-top:"+r.height+"px;"),r.width>0&&r.width<i.width&&l.push("width:"+(i.width-r.width)+"px; padding-left:"+r.width+"px;")):(l.push("height:"+i.height+"px; line-height:"+i.height+"px;"),l.push("width:"+i.width+"px; text-align:center;"))),l.push("cursor:pointer; color:"+s+"; position:absolute; font-size:"+a+"px; font-family:Arial,sans-serif; font-weight:bold"),l.join("")},i.prototype._bind=function(){function t(t,n){var r=t.srcElement||t.target,o=t.clientX||t.pageX,s=t.clientY||t.pageY;if(t&&n&&o&&s&&r){var a=e.dom.getPosition(i.getContainer());n.pixel=new BMap.Pixel(o-a.left,s-a.top),n.point=i.pixelToPoint(n.pixel)}return n}if(this._domElement){var n=this,i=this._map,r=e.lang.Event;e.event.on(this._domElement,"mouseover",(function(e){n.dispatchEvent(t(e,new r("onmouseover")))})),e.event.on(this._domElement,"mouseout",(function(e){n.dispatchEvent(t(e,new r("onmouseout")))})),e.event.on(this._domElement,"click",(function(e){n.dispatchEvent(t(e,new r("onclick")))}))}},i}))})),a=s&&"object"==typeof s&&"default"in s?s.default:s,l=function(e,t,n){t=c(t);var i=e.pointToPixel(t.getNorthEast()),r=e.pointToPixel(t.getSouthWest());i.x+=n,i.y-=n,r.x-=n,r.y+=n;var o=e.pixelToPoint(i),s=e.pixelToPoint(r);return new BMap.Bounds(s,o)},c=function(e){var t=u(e.getNorthEast().lng,-180,180),n=u(e.getSouthWest().lng,-180,180),i=u(e.getNorthEast().lat,-74,74),r=u(e.getSouthWest().lat,-74,74);return new BMap.Bounds(new BMap.Point(n,r),new BMap.Point(t,i))},u=function(e,t,n){return t&&(e=Math.max(e,t)),n&&(e=Math.min(e,n)),e},h=function(e){return"[object Array]"===Object.prototype.toString.call(e)},d=function(e,t){var n=-1;if(h(t))if(t.indexOf)n=t.indexOf(e);else for(var i,r=0;i=t[r];r++)if(i===e){n=r;break}return n},f=function(e,t){try{BMap}catch(e){throw Error("Baidu Map JS API is not ready yet!")}if(e){this._map=e,this._markers=[],this._clusters=[];var n=t||{};this._gridSize=n.gridSize||60,this._maxZoom=n.maxZoom||18,this._minClusterSize=n.minClusterSize||2,this._isAverageCenter=!1,void 0!=n.isAverageCenter&&(this._isAverageCenter=n.isAverageCenter),this._styles=n.styles||[];var i=this;this._map.addEventListener("zoomend",(function(){i._redraw()})),this._map.addEventListener("moveend",(function(){i._redraw()}));var r=n.markers;h(r)&&this.addMarkers(r)}};return f.prototype.addMarkers=function(e){if(e.length){for(var t=0,n=e.length;t<n;t++)this._pushMarkerTo(e[t]);this._createClusters()}},f.prototype._pushMarkerTo=function(e){-1===d(e,this._markers)&&(e.isInCluster=!1,this._markers.push(e))},f.prototype.addMarker=function(e){this._pushMarkerTo(e),this._createClusters()},f.prototype._createClusters=function(){var e=this._map.getBounds();if(e.getCenter())for(var t,n=l(this._map,e,this._gridSize),i=0;t=this._markers[i];i++)!t.isInCluster&&n.containsPoint(t.getPosition())&&this._addToClosestCluster(t)},f.prototype._addToClosestCluster=function(t){for(var n=4e6,i=null,r=(t.getPosition(),0);a=this._clusters[r];r++){var o=a.getCenter();if(o){var s=this._map.getDistance(o,t.getPosition());s<n&&(n=s,i=a)}}if(i&&i.isMarkerInClusterBounds(t))i.addMarker(t);else{var a=new e(this);a.addMarker(t),this._clusters.push(a)}},f.prototype._clearLastClusters=function(){for(var e,t=0;e=this._clusters[t];t++)e.remove();this._clusters=[],this._removeMarkersFromCluster()},f.prototype._removeMarkersFromCluster=function(){for(var e,t=0;e=this._markers[t];t++)e.isInCluster=!1},f.prototype._removeMarkersFromMap=function(){for(var e,t=0;e=this._markers[t];t++){e.isInCluster=!1;var n=e.getLabel();this._map.removeOverlay(e),e.setLabel(n)}},f.prototype._removeMarker=function(e){var t=d(e,this._markers);return-1!==t&&(this._map.removeOverlay(e),this._markers.splice(t,1),!0)},f.prototype.removeMarker=function(e){var t=this._removeMarker(e);return t&&(this._clearLastClusters(),this._createClusters()),t},f.prototype.removeMarkers=function(e){for(var t=!1,n=0;n<e.length;n++){var i=this._removeMarker(e[n]);t=t||i}return t&&(this._clearLastClusters(),this._createClusters()),t},f.prototype.clearMarkers=function(){this._clearLastClusters(),this._removeMarkersFromMap(),this._markers=[]},f.prototype._redraw=function(){this._clearLastClusters(),this._createClusters()},f.prototype.getGridSize=function(){return this._gridSize},f.prototype.setGridSize=function(e){this._gridSize=e,this._redraw()},f.prototype.getMaxZoom=function(){return this._maxZoom},f.prototype.setMaxZoom=function(e){this._maxZoom=e,this._redraw()},f.prototype.getStyles=function(){return this._styles},f.prototype.setStyles=function(e){this._styles=e,this._redraw()},f.prototype.getMinClusterSize=function(){return this._minClusterSize},f.prototype.setMinClusterSize=function(e){this._minClusterSize=e,this._redraw()},f.prototype.isAverageCenter=function(){return this._isAverageCenter},f.prototype.getMap=function(){return this._map},f.prototype.getMarkers=function(){return this._markers},f.prototype.getClustersCount=function(){for(var e,t=0,n=0;e=this._clusters[n];n++)e.isReal()&&t++;return t},e.prototype.addMarker=function(e){if(this.isMarkerInCluster(e))return!1;if(this._center){if(this._isAverageCenter){var t=this._markers.length+1,n=(this._center.lat*(t-1)+e.getPosition().lat)/t,i=(this._center.lng*(t-1)+e.getPosition().lng)/t;this._center=new BMap.Point(i,n),this.updateGridBounds()}}else this._center=e.getPosition(),this.updateGridBounds();e.isInCluster=!0,this._markers.push(e);var r=this._markers.length;if(r<this._minClusterSize)return this._map.addOverlay(e),!0;if(r===this._minClusterSize)for(var o=0;o<r;o++){var s=this._markers[o].getLabel();this._markers[o].getMap()&&this._map.removeOverlay(this._markers[o]),this._markers[o].setLabel(s)}return this._map.addOverlay(this._clusterMarker),this._isReal=!0,this.updateClusterMarker(),!0},e.prototype.isMarkerInCluster=function(e){if(this._markers.indexOf)return-1!=this._markers.indexOf(e);for(var t,n=0;t=this._markers[n];n++)if(t===e)return!0;return!1},e.prototype.isMarkerInClusterBounds=function(e){return this._gridBounds.containsPoint(e.getPosition())},e.prototype.isReal=function(e){return this._isReal},e.prototype.updateGridBounds=function(){var e=new BMap.Bounds(this._center,this._center);this._gridBounds=l(this._map,e,this._markerClusterer.getGridSize())},e.prototype.updateClusterMarker=function(){if(this._map.getZoom()>this._markerClusterer.getMaxZoom()){this._clusterMarker&&this._map.removeOverlay(this._clusterMarker);for(var e,t=0;e=this._markers[t];t++)this._map.addOverlay(e)}else{if(this._markers.length<this._minClusterSize)return void this._clusterMarker.hide();this._clusterMarker.setPosition(this._center),this._clusterMarker.setText(this._markers.length),this._clusterMarker.addEventListener&&!this._clusterMarker._hasClickEvent&&this._clusterMarker.addEventListener("click",function(e){this._clusterMarker._hasClickEvent=!0,this._markers&&this._map.setViewport(this.getBounds())}.bind(this))}},e.prototype.remove=function(){for(var e=0;this._markers[e];e++){var t=this._markers[e].getLabel();this._markers[e].getMap()&&this._map.removeOverlay(this._markers[e]),this._markers[e].setLabel(t)}this._map.removeOverlay(this._clusterMarker),this._markers.length=0,delete this._markers},e.prototype.getBounds=function(){for(var e,t=new BMap.Bounds(this._center,this._center),n=0;e=this._markers[n];n++)t.extend(e.getPosition());return t},e.prototype.getCenter=function(){return this._center},f}))}).call(t,n(3))},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div")},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}]},[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:e.panel,expression:"panel"}]},[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.paths.length?n("div",e._l(e.paths,(function(t,i){return n("bm-polygon",{key:i,attrs:{path:t,"stroke-color":e.strokeColor,"stroke-weight":e.strokeWeight,"stroke-opacity":e.strokeOpacity,"stroke-style":e.strokeStyle,"fill-opacity":e.fillOpacity,"fill-color":e.fillColor,"mass-clear":e.massClear,clicking:e.clicking},on:{click:function(t){e.$emit("click",t)},dblclick:function(t){e.$emit("dblclick",t)},mousedown:function(t){e.$emit("mousedown",t)},mouseup:function(t){e.$emit("mouseup",t)},mouseout:function(t){e.$emit("mouseout",t)},mouseover:function(t){e.$emit("mouseover",t)},remove:function(t){e.$emit("remove",t)}}})}))):e._e()},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:e.panel,expression:"panel"}]},[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:e.panel,expression:"panel"}]})},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:e.panel,expression:"panel"}]},[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:e.panel,expression:"panel"}]},[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",[e._t("default",[n("input")])],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",[e._t("default")],2)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.hasBmView?e._e():n("div",{ref:"view",staticStyle:{width:"100%",height:"100%"}}),e._v(" "),e._t("default")],2)},staticRenderFns:[]}}])}))},bd13:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return f})),n.d(t,"d",(function(){return p}));var i=n("2504"),r=n("fdcc"),o=n("b2cc"),s=n("b707"),a=n("f68e"),l=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function c(e,t,n,i){const o=n.ordered(e),s=o.map(n=>Promise.resolve(i(n,e,t)).then(void 0,e=>{Object(r["f"])(e)}));return Promise.all(s).then(e=>{const t=[];for(let n of e)Array.isArray(n)?t.push(...n):n&&t.push(n);return t})}function u(e,t,n){return c(e,t,s["f"],(e,t,i)=>e.provideDefinition(t,i,n))}function h(e,t,n){return c(e,t,s["e"],(e,t,i)=>e.provideDeclaration(t,i,n))}function d(e,t,n){return c(e,t,s["q"],(e,t,i)=>e.provideImplementation(t,i,n))}function f(e,t,n){return c(e,t,s["G"],(e,t,i)=>e.provideTypeDefinition(t,i,n))}function p(e,t,n,i){return c(e,t,s["y"],(e,t,r)=>l(this,void 0,void 0,(function*(){const o=yield e.provideReferences(t,r,{includeDeclaration:!0},i);if(!n||!o||2!==o.length)return o;const s=yield e.provideReferences(t,r,{includeDeclaration:!1},i);return s&&1===s.length?s:o})))}function g(e){return l(this,void 0,void 0,(function*(){const t=yield e(),n=new a["c"](t,""),i=n.references.map(e=>e.link);return n.dispose(),i}))}Object(o["n"])("_executeDefinitionProvider",(e,t)=>g(()=>u(e,t,i["a"].None))),Object(o["n"])("_executeDeclarationProvider",(e,t)=>g(()=>h(e,t,i["a"].None))),Object(o["n"])("_executeImplementationProvider",(e,t)=>g(()=>d(e,t,i["a"].None))),Object(o["n"])("_executeTypeDefinitionProvider",(e,t)=>g(()=>f(e,t,i["a"].None))),Object(o["n"])("_executeReferenceProvider",(e,t)=>g(()=>p(e,t,!1,i["a"].None)))},bd50:function(e,t,n){"use strict";n.r(t);var i=n("b2cc"),r=n("b1ca"),o=n("03d9");class s extends i["b"]{constructor(){super({id:"editor.action.toggleHighContrast",label:o["i"].toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){const n=e.get(r["a"]);this._originalThemeName?(n.setTheme(this._originalThemeName),this._originalThemeName=null):(this._originalThemeName=n.getColorTheme().themeName,n.setTheme("hc-black"))}}Object(i["j"])(s)},bda7:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n("6d8b"),r=n("f279");function o(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;null==n&&(n=1024);var r=t.features;return i["each"](r,(function(e){var t=e.geometry,r=t.encodeOffsets,o=t.coordinates;if(r)switch(t.type){case"LineString":t.coordinates=a(o,r,n);break;case"Polygon":s(o,r,n);break;case"MultiLineString":s(o,r,n);break;case"MultiPolygon":i["each"](o,(function(e,t){return s(e,r[t],n)}))}})),t.UTF8Encoding=!1,t}function s(e,t,n){for(var i=0;i<e.length;i++)e[i]=a(e[i],t[i],n)}function a(e,t,n){for(var i=[],r=t[0],o=t[1],s=0;s<e.length;s+=2){var a=e.charCodeAt(s)-64,l=e.charCodeAt(s+1)-64;a=a>>1^-(1&a),l=l>>1^-(1&l),a+=r,l+=o,r=a,o=l,i.push([a/n,l/n])}return i}function l(e,t){return e=o(e),i["map"](i["filter"](e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,o=e.geometry,s=[];switch(o.type){case"Polygon":var a=o.coordinates;s.push(new r["b"](a[0],a.slice(1)));break;case"MultiPolygon":i["each"](o.coordinates,(function(e){e[0]&&s.push(new r["b"](e[0],e.slice(1)))}));break;case"LineString":s.push(new r["a"]([o.coordinates]));break;case"MultiLineString":s.push(new r["a"](o.coordinates))}var l=new r["c"](n[t||"name"],s,n.cp);return l.properties=n,l}))}},be09:function(e,t,n){(function(t){var n;n="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},e.exports=n}).call(this,n("c8ba"))},be3f:function(e,t,n){"use strict";(function(t){var i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var r=n("85f8"),o=n("13a8");n("3fb5")(c,r);for(var s=i(o.prototype),a=0;a<s.length;a++){var l=s[a];c.prototype[l]||(c.prototype[l]=o.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);r.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||t.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,n("4362"))},be5f:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));const i=Object.prototype.hasOwnProperty;function r(e,t){for(let n in e)if(i.call(e,n)){const i=t({key:n,value:e[n]},(function(){delete e[n]}));if(!1===i)return}}class o{constructor(){this.map=new Map}add(e,t){let n=this.map.get(e);n||(n=new Set,this.map.set(e,n)),n.add(t)}delete(e,t){const n=this.map.get(e);n&&(n.delete(t),0===n.size&&this.map.delete(e))}forEach(e,t){const n=this.map.get(e);n&&n.forEach(t)}}},becb:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.filterNonNumber=a,t.deepMerge=l,t.mulAdd=c,t.mergeSameStackData=u,t.getTwoPointDistance=h,t.getLinearGradientColor=d,t.getPolylineLength=f,t.getPointToLineDistance=p,t.initNeedSeries=g,t.radianToAngle=m;var r=i(n("448a")),o=i(n("7037")),s=n("5557");function a(e){return e.filter((function(e){return"number"===typeof e}))}function l(e,t){for(var n in t)e[n]&&"object"===(0,o["default"])(e[n])?l(e[n],t[n]):"object"!==(0,o["default"])(t[n])?e[n]=t[n]:e[n]=(0,s.deepClone)(t[n],!0);return e}function c(e){return e=a(e),e.reduce((function(e,t){return e+t}),0)}function u(e,t){var n=e.stack;if(!n)return(0,r["default"])(e.data);var i=t.filter((function(e){var t=e.stack;return t===n})),o=i.findIndex((function(t){var n=t.data;return n===e.data})),s=i.splice(0,o+1).map((function(e){var t=e.data;return t})),a=s[0].length;return new Array(a).fill(0).map((function(e,t){return c(s.map((function(e){return e[t]})))}))}function h(e,t){var n=Math.abs(e[0]-t[0]),i=Math.abs(e[1]-t[1]);return Math.sqrt(n*n+i*i)}function d(e,t,n,i){if(e&&t&&n&&i.length){var o=i;"string"===typeof o&&(o=[i,i]);var s=e.createLinearGradient.apply(e,(0,r["default"])(t).concat((0,r["default"])(n))),a=1/(o.length-1);return o.forEach((function(e,t){return s.addColorStop(a*t,e)})),s}}function f(e){var t=new Array(e.length-1).fill(0).map((function(t,n){return[e[n],e[n+1]]})),n=t.map((function(e){return h.apply(void 0,(0,r["default"])(e))}));return c(n)}function p(e,t,n){var i=h(e,t),r=h(e,n),o=h(t,n);return.5*Math.sqrt((i+r+o)*(i+r-o)*(i+o-r)*(r+o-i))/o}function g(e,t,n){return e=e.filter((function(e){var t=e.type;return t===n})),e=e.map((function(e){return l((0,s.deepClone)(t,!0),e)})),e.filter((function(e){var t=e.show;return t}))}function m(e){return e/Math.PI*180}},bee2:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("a38e");function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Object(i["a"])(r.key),r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},bf09:function(e,t,n){"use strict";var i=n("9bfc").codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];e.apply(this,i)}}}function o(){}function s(e){return e.setHeader&&"function"===typeof e.abort}function a(e,t,n){if("function"===typeof t)return a(e,null,t);t||(t={}),n=r(n||o);var l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,u=function(){e.writable||d()},h=e._writableState&&e._writableState.finished,d=function(){c=!1,h=!0,l||n.call(e)},f=e._readableState&&e._readableState.endEmitted,p=function(){l=!1,f=!0,c||n.call(e)},g=function(t){n.call(e,t)},m=function(){var t;return l&&!f?(e._readableState&&e._readableState.ended||(t=new i),n.call(e,t)):c&&!h?(e._writableState&&e._writableState.ended||(t=new i),n.call(e,t)):void 0},v=function(){e.req.on("finish",d)};return s(e)?(e.on("complete",d),e.on("abort",m),e.req?v():e.on("request",v)):c&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",p),e.on("finish",d),!1!==t.error&&e.on("error",g),e.on("close",m),function(){e.removeListener("complete",d),e.removeListener("abort",m),e.removeListener("request",v),e.req&&e.req.removeListener("finish",d),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",d),e.removeListener("end",p),e.removeListener("error",g),e.removeListener("close",m)}}e.exports=a},bf44:function(e,t,n){"use strict";var i=n("33f9");n.o(i,"Emitter")&&n.d(t,"Emitter",(function(){return i["Emitter"]})),n.o(i,"MarkerSeverity")&&n.d(t,"MarkerSeverity",(function(){return i["MarkerSeverity"]})),n.o(i,"MarkerTag")&&n.d(t,"MarkerTag",(function(){return i["MarkerTag"]})),n.o(i,"Range")&&n.d(t,"Range",(function(){return i["Range"]})),n.o(i,"Uri")&&n.d(t,"Uri",(function(){return i["Uri"]})),n.o(i,"editor")&&n.d(t,"editor",(function(){return i["editor"]})),n.o(i,"languages")&&n.d(t,"languages",(function(){return i["languages"]}))},bf5b:function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return y}));var i=n("89cd"),r=n("b7d0"),o=n("308f"),s=n("dff7"),a=n("dd1b"),l=n("5fe7"),c=n("561a");const u={IconContribution:"base.contributions.icons"};class h{constructor(){this._onDidChange=new o["b"],this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:Object(s["a"])("iconDefintion.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:Object(s["a"])("iconDefintion.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${c["a"].iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(e,t,n,i){const r=this.iconsById[e];if(r){if(n&&!r.description){r.description=n,this.iconSchema.properties[e].markdownDescription=`${n} $(${e})`;const t=this.iconReferenceSchema.enum.indexOf(e);-1!==t&&(this.iconReferenceSchema.enumDescriptions[t]=n),this._onDidChange.fire()}return r}let o={id:e,description:n,defaults:t,deprecationMessage:i};this.iconsById[e]=o;let s={$ref:"#/definitions/icons"};return i&&(s.deprecationMessage=i),n&&(s.markdownDescription=`${n}: $(${e})`),this.iconSchema.properties[e]=s,this.iconReferenceSchema.enum.push(e),this.iconReferenceSchema.enumDescriptions.push(n||""),this._onDidChange.fire(),{id:e}}getIcons(){return Object.keys(this.iconsById).map(e=>this.iconsById[e])}getIcon(e){return this.iconsById[e]}getIconSchema(){return this.iconSchema}getIconFont(e){return this.iconFontsById[e]}toString(){const e=(e,t)=>e.id.localeCompare(t.id),t=e=>{while(r["d"].isThemeIcon(e.defaults))e=this.iconsById[e.defaults.id];return"codicon codicon-"+(e?e.id:"")};let n=[];n.push("| preview | identifier | default codicon ID | description"),n.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const i=Object.keys(this.iconsById).map(e=>this.iconsById[e]);for(const o of i.filter(e=>!!e.description).sort(e))n.push(`|<i class="${t(o)}"></i>|${o.id}|${r["d"].isThemeIcon(o.defaults)?o.defaults.id:o.id}|${o.description||""}|`);n.push("| preview | identifier "),n.push("| ----------- | --------------------------------- |");for(const o of i.filter(e=>!r["d"].isThemeIcon(e.defaults)).sort(e))n.push(`|<i class="${t(o)}"></i>|${o.id}|`);return n.join("\n")}}const d=new h;function f(e,t,n,i){return d.registerIcon(e,t,n,i)}function p(){return d}function g(){for(const e of c["d"].all)d.registerIcon(e.id,e.definition,e.description);c["d"].onDidRegister(e=>d.registerIcon(e.id,e.definition,e.description))}i["a"].add(u.IconContribution,d),g();const m="vscode://schemas/icons";let v=i["a"].as(a["a"].JSONContribution);v.registerSchema(m,d.getIconSchema());const b=new l["e"](()=>v.notifySchemaChanged(m),200);d.onDidChange(()=>{b.isScheduled()||b.schedule()});const y=f("widget-close",c["b"].close,Object(s["a"])("widgetClose","Icon for the close action in widgets."))},bf74:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},bfa1:function(e,t,n){"use strict";n.d(t,"a",(function(){return R}));var i,r=n("11f7"),o=n("31df"),s=n("fdcc"),a=n("78bc"),l=n("9c3e"),c=n("4acc");let u;(function(){function e(t,n,r){function o(a,l){if(!n[a]){if(!t[a]){var c="function"==typeof i&&i;if(!l&&c)return i(a,!0);if(s)return s(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var h=n[a]={exports:{}};t[a][0].call(h.exports,(function(e){var n=t[a][1][e];return o(n||e)}),h,h.exports,e,t,n,r)}return n[a].exports}for(var s="function"==typeof i&&i,a=0;a<r.length;a++)o(r[a]);return o}return e})()({1:[function(e,t,n){var i=e("./toMap"),r=["background","base","cite","href","longdesc","src","usemap"];t.exports={uris:i(r)}},{"./toMap":10}],2:[function(e,t,n){var i={allowedAttributes:{"*":["title","accesskey"],a:["href","name","target","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null};t.exports=i},{}],3:[function(e,t,n){var i=e("./toMap"),r=["area","br","col","hr","img","wbr","input","base","basefont","link","meta"];t.exports={voids:i(r)}},{"./toMap":10}],4:[function(e,t,n){e("he");var i=e("assignment"),r=e("./parser"),o=e("./sanitizer"),s=e("./defaults");function a(e,t,n){var a=[],l=!0===n?t:i({},s,t),c=o(a,l);return r(e,c),a.join("")}a.defaults=s,t.exports=a,u=a},{"./defaults":2,"./parser":7,"./sanitizer":8,assignment:6,he:9}],5:[function(e,t,n){t.exports=function(e){return"string"===typeof e?e.toLowerCase():e}},{}],6:[function(e,t,n){function i(e){var t,n,r=Array.prototype.slice.call(arguments,1);while(r.length)for(n in t=r.shift(),t)t.hasOwnProperty(n)&&("[object Object]"===Object.prototype.toString.call(e[n])?e[n]=i(e[n],t[n]):e[n]=t[n]);return e}t.exports=i},{}],7:[function(e,t,n){var i=e("he"),r=e("./lowercase"),o=(e("./attributes"),e("./elements")),s=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,a=/^<\s*\/\s*([\w:-]+)[^>]*>/,l=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,c=/^</,u=/^<\s*\//;function h(){var e=[];return e.lastItem=function(){return e[e.length-1]},e}function d(e,t){var n,d=h(),f=e;while(e)p();function p(){n=!0,g();var t=e===f;f=e,t&&(e="")}function g(){"\x3c!--"===e.substr(0,4)?v():u.test(e)?m(a,_):c.test(e)&&m(s,y),b()}function m(t,i){var r=e.match(t);r&&(e=e.substring(r[0].length),r[0].replace(t,i),n=!1)}function v(){var i=e.indexOf("--\x3e");i>=0&&(t.comment&&t.comment(e.substring(4,i)),e=e.substring(i+3),n=!1)}function b(){if(n){var i,r=e.indexOf("<");r>=0?(i=e.substring(0,r),e=e.substring(r)):(i=e,e=""),t.chars&&t.chars(i)}}function y(e,n,s,a){var c={},u=r(n),h=o.voids[u]||!!a;function f(e,t,n,r,o){c[t]=void 0===n&&void 0===r&&void 0===o?void 0:i.decode(n||r||o||"")}s.replace(l,f),h||d.push(u),t.start&&t.start(u,c,h)}function _(e,n){var i,o=0,s=r(n);if(s)for(o=d.length-1;o>=0;o--)if(d[o]===s)break;if(o>=0){for(i=d.length-1;i>=o;i--)t.end&&t.end(d[i]);d.length=o}}_()}t.exports=d},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(e,t,n){var i=e("he"),r=e("./lowercase"),o=e("./attributes"),s=e("./elements");function a(e,t){var n,a=t||{};return g(),{start:c,end:u,chars:d};function l(t){e.push(t)}function c(e,t,s){var c=r(e);function u(e){var n,s=t[e],u=(a.allowedClasses||{})[c]||[],d=(a.allowedAttributes||{})[c]||[];d=d.concat((a.allowedAttributes||{})["*"]||[]);var f=r(e);function p(e){return u&&-1!==u.indexOf(e)}"class"===f&&-1===d.indexOf(f)?(s=s.split(" ").filter(p).join(" ").trim(),n=s.length):n=-1!==d.indexOf(f)&&(!0!==o.uris[f]||h(s)),n&&(l(" "),l(e),"string"===typeof s&&(l('="'),l(i.encode(s)),l('"')))}n.ignoring?f(c):-1!==(a.allowedTags||[]).indexOf(c)&&(!a.filter||a.filter({tag:c,attrs:t}))?(l("<"),l(c),Object.keys(t).forEach(u),l(s?"/>":">")):f(c)}function u(e){var t=r(e),i=-1!==(a.allowedTags||[]).indexOf(t);i&&!1===n.ignoring?(l("</"),l(t),l(">")):p(t)}function h(e){var t=e[0];if("#"===t||"/"===t)return!0;var n=e.indexOf(":");if(-1===n)return!0;var i=e.indexOf("?");if(-1!==i&&n>i)return!0;var r=e.indexOf("#");return-1!==r&&n>r||a.allowedSchemes.some(o);function o(t){return 0===e.indexOf(t+":")}}function d(e){!1===n.ignoring&&l(a.transformText?a.transformText(e):e)}function f(e){s.voids[e]||(!1===n.ignoring?n={ignoring:e,depth:1}:n.ignoring===e&&n.depth++)}function p(e){n.ignoring===e&&--n.depth<=0&&g()}function g(){n={ignoring:!1,depth:0}}}t.exports=a},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(e,t,n){var i={"&":"&","<":"<",">":">",'"':""","'":"'"},r={"&":"&","<":"<",">":">",""":'"',"'":"'"},o=/(&|<|>|"|')/g,s=/[&<>"']/g;function a(e){return i[e]}function l(e){return r[e]}function c(e){return null==e?"":String(e).replace(s,a)}function u(e){return null==e?"":String(e).replace(o,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 i(e){return e.reduce(r,{})}function r(e,t){return e[t]=!0,e}t.exports=i},{}]},{},[4]);var h,d=u,f=n("438a"),p=n("aa3d"),g=n("3742"),m=n("6d8e"),v=n("b589"),b=n("1097"),y=n("82c9"),_=n("5d28"),w=n("7ddc"),C=n("308f"),S=n("e32d");const x=null===(h=window.trustedTypes)||void 0===h?void 0:h.createPolicy("insane",{createHTML(e,t){return d(e,t)}});function O(e,t={},n={}){var i;const u=Object(o["a"])(t),h=function(t){let n;try{n=Object(f["a"])(decodeURIComponent(t))}catch(i){}return n?(n=Object(p["a"])(n,t=>e.uris&&e.uris[t]?m["a"].revive(e.uris[t]):void 0),encodeURIComponent(JSON.stringify(n))):t},d=function(t,n){const i=e.uris&&e.uris[t];if(!i)return t;let r=m["a"].revive(i);return m["a"].parse(t).toString()===r.toString()?t:n?v["a"].asBrowserUri(r).toString(!0):(r.query&&(r=r.with({query:h(r.query)})),r.toString())};let x;const O=new Promise(e=>x=e),L=new c["Renderer"];if(L.image=(e,n,i)=>{let r=[],o=[];if(e){({href:e,dimensions:r}=Object(a["c"])(e)),e=d(e,!0);try{const n=m["a"].parse(e);t.baseUrl&&n.scheme===v["c"].file&&(e=Object(y["j"])(t.baseUrl,e).toString())}catch(s){}o.push(`src="${e}"`)}return i&&o.push(`alt="${i}"`),n&&o.push(`title="${n}"`),r.length&&(o=o.concat(r)),"<img "+o.join(" ")+">"},L.link=(n,i,r)=>{if(n===r&&(r=Object(a["d"])(r)),n=d(n,!1),t.baseUrl){const e=/^\w[\w\d+.-]*:/.test(n);e||(n=Object(y["j"])(t.baseUrl,n).toString())}return i=Object(a["d"])(i),n=Object(a["d"])(n),!n||n.match(/^data:|javascript:/i)||n.match(/^command:/i)&&!e.isTrusted||n.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?r:(n=n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),`<a href="#" data-href="${n}" title="${i||n}">${r}</a>`)},L.paragraph=t=>{if(e.supportThemeIcons){const e=Object(w["a"])(t);t=e.map(e=>"string"===typeof e?e:e.outerHTML).join("")}return`<p>${t}</p>`},t.codeBlockRenderer&&(L.code=(e,n)=>{const i=t.codeBlockRenderer(n,e),o=l["b"].nextId(),s=Promise.all([i,O]).then(e=>{const t=u.querySelector(`div[data-code="${o}"]`);t&&r["R"](t,e[0])}).catch(e=>{});return t.asyncRenderCallback&&s.then(t.asyncRenderCallback),`<div class="code" data-code="${o}">${Object(g["t"])(e)}</div>`}),t.actionHandler){const e=t.actionHandler.disposeables.add(new S["a"](u,"click")),n=t.actionHandler.disposeables.add(new S["a"](u,"auxclick"));t.actionHandler.disposeables.add(C["c"].any(e.event,n.event)(e=>{const n=new _["a"](e);if(!n.leftButton&&!n.middleButton)return;let i=n.target;if("A"===i.tagName||(i=i.parentElement,i&&"A"===i.tagName))try{const e=i.dataset["href"];e&&t.actionHandler.callback(e,n)}catch(r){Object(s["e"])(r)}finally{n.preventDefault()}}))}n.sanitizer=t=>{const n=e.isTrusted?t.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0;return n?t:""},n.sanitize=!0,n.silent=!0,n.renderer=L;let E=null!==(i=e.value)&&void 0!==i?i:"";E.length>1e5&&(E=E.substr(0,1e5)+"…"),e.supportThemeIcons&&(E=Object(b["b"])(E));const D=c["parse"](E,n);if(u.innerHTML=k(e,D),x(),t.asyncRenderCallback)for(const o of u.getElementsByTagName("img")){const e=r["i"](o,"load",()=>{e.dispose(),t.asyncRenderCallback()})}return u}function k(e,t){var n;const i=L(e);return null!==(n=null===x||void 0===x?void 0:x.createHTML(t,i))&&void 0!==n?n:d(t,i)}function L(e){const t=[v["c"].http,v["c"].https,v["c"].mailto,v["c"].data,v["c"].file,v["c"].vscodeRemote,v["c"].vscodeRemoteResource];return e.isTrusted&&t.push(v["c"].command),{allowedSchemes:t,allowedTags:["ul","li","p","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"],allowedAttributes:{a:["href","name","target","data-href"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class","style"],th:["align"],td:["align"]},filter(t){return"span"!==t.tag||!e.isTrusted||(t.attrs["style"]&&1===Object.keys(t.attrs).length?!!t.attrs["style"].match(/^(color\:#[0-9a-fA-F]+;)?(background-color\:#[0-9a-fA-F]+;)?$/):!!t.attrs["class"]&&!!t.attrs["class"].match(/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/))}}}var E,D=n("5bd7"),I=n("5818"),M=n("4d05"),T=n("a666"),A=n("b707"),N=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},P=function(e,t){return function(n,i){t(n,i,e)}},j=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let R=class e{constructor(e,t,n){this._options=e,this._modeService=t,this._openerService=n,this._onDidRenderAsync=new C["b"],this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,n){const i=new T["b"];let r;return r=e?O(e,Object.assign(Object.assign({},this._getRenderOptions(e,i)),t),n):document.createElement("span"),{element:r,dispose:()=>i.dispose()}}_getRenderOptions(t,n){return{baseUrl:this._options.baseUrl,codeBlockRenderer:(t,n)=>j(this,void 0,void 0,(function*(){var i,r,o,s;let a;t?a=this._modeService.getModeIdForLanguageName(t):this._options.editor&&(a=null===(i=this._options.editor.getModel())||void 0===i?void 0:i.getLanguageIdentifier().language),a||(a="plaintext"),this._modeService.triggerMode(a);const l=null!==(r=yield A["F"].getPromise(a))&&void 0!==r?r:void 0,c=document.createElement("span");c.innerHTML=null!==(s=null===(o=e._ttpTokenizer)||void 0===o?void 0:o.createHTML(n,l))&&void 0!==s?s:Object(M["b"])(n,l);let u=this._options.codeBlockFontFamily;return this._options.editor&&(u=this._options.editor.getOption(41).fontFamily),u&&(c.style.fontFamily=u),c})),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:e=>this._openerService.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:t.isTrusted}).catch(s["e"]),disposeables:n}}}};R._ttpTokenizer=null===(E=window.trustedTypes)||void 0===E?void 0:E.createPolicy("tokenizeToString",{createHTML(e,t){return Object(M["b"])(e,t)}}),R=N([P(1,I["a"]),P(2,D["a"])],R)},c04e:function(e,t,n){var i=n("c65b"),r=n("861d"),o=n("d9b5"),s=n("dc4a"),a=n("485a"),l=n("b622"),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!r(e)||o(e))return e;var n,l=s(e,u);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!r(n)||o(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},c098:function(e,t,n){e.exports=n("d4af")},c101:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i,r=n("dff7"),o=n("4fc3");(function(e){e.editorSimpleInput=new o["c"]("editorSimpleInput",!1,!0),e.editorTextFocus=new o["c"]("editorTextFocus",!1,r["a"]("editorTextFocus","Whether the editor text has focus (cursor is blinking)")),e.focus=new o["c"]("editorFocus",!1,r["a"]("editorFocus","Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),e.textInputFocus=new o["c"]("textInputFocus",!1,r["a"]("textInputFocus","Whether an editor or a rich text input has focus (cursor is blinking)")),e.readOnly=new o["c"]("editorReadonly",!1,r["a"]("editorReadonly","Whether the editor is read only")),e.inDiffEditor=new o["c"]("inDiffEditor",!1,r["a"]("inDiffEditor","Whether the context is a diff editor")),e.columnSelection=new o["c"]("editorColumnSelection",!1,r["a"]("editorColumnSelection","Whether `editor.columnSelection` is enabled")),e.writable=e.readOnly.toNegated(),e.hasNonEmptySelection=new o["c"]("editorHasSelection",!1,r["a"]("editorHasSelection","Whether the editor has text selected")),e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated(),e.hasMultipleSelections=new o["c"]("editorHasMultipleSelections",!1,r["a"]("editorHasMultipleSelections","Whether the editor has multiple selections")),e.hasSingleSelection=e.hasMultipleSelections.toNegated(),e.tabMovesFocus=new o["c"]("editorTabMovesFocus",!1,r["a"]("editorTabMovesFocus","Whether `Tab` will move focus out of the editor")),e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated(),e.isInWalkThroughSnippet=new o["c"]("isInEmbeddedEditor",!1,!0),e.canUndo=new o["c"]("canUndo",!1,!0),e.canRedo=new o["c"]("canRedo",!1,!0),e.hoverVisible=new o["c"]("editorHoverVisible",!1,r["a"]("editorHoverVisible","Whether the editor hover is visible")),e.inCompositeEditor=new o["c"]("inCompositeEditor",void 0,r["a"]("inCompositeEditor","Whether the editor is part of a larger editor (e.g. notebooks)")),e.notInCompositeEditor=e.inCompositeEditor.toNegated(),e.languageId=new o["c"]("editorLangId","",r["a"]("editorLangId","The language identifier of the editor")),e.hasCompletionItemProvider=new o["c"]("editorHasCompletionItemProvider",!1,r["a"]("editorHasCompletionItemProvider","Whether the editor has a completion item provider")),e.hasCodeActionsProvider=new o["c"]("editorHasCodeActionsProvider",!1,r["a"]("editorHasCodeActionsProvider","Whether the editor has a code actions provider")),e.hasCodeLensProvider=new o["c"]("editorHasCodeLensProvider",!1,r["a"]("editorHasCodeLensProvider","Whether the editor has a code lens provider")),e.hasDefinitionProvider=new o["c"]("editorHasDefinitionProvider",!1,r["a"]("editorHasDefinitionProvider","Whether the editor has a definition provider")),e.hasDeclarationProvider=new o["c"]("editorHasDeclarationProvider",!1,r["a"]("editorHasDeclarationProvider","Whether the editor has a declaration provider")),e.hasImplementationProvider=new o["c"]("editorHasImplementationProvider",!1,r["a"]("editorHasImplementationProvider","Whether the editor has an implementation provider")),e.hasTypeDefinitionProvider=new o["c"]("editorHasTypeDefinitionProvider",!1,r["a"]("editorHasTypeDefinitionProvider","Whether the editor has a type definition provider")),e.hasHoverProvider=new o["c"]("editorHasHoverProvider",!1,r["a"]("editorHasHoverProvider","Whether the editor has a hover provider")),e.hasDocumentHighlightProvider=new o["c"]("editorHasDocumentHighlightProvider",!1,r["a"]("editorHasDocumentHighlightProvider","Whether the editor has a document highlight provider")),e.hasDocumentSymbolProvider=new o["c"]("editorHasDocumentSymbolProvider",!1,r["a"]("editorHasDocumentSymbolProvider","Whether the editor has a document symbol provider")),e.hasReferenceProvider=new o["c"]("editorHasReferenceProvider",!1,r["a"]("editorHasReferenceProvider","Whether the editor has a reference provider")),e.hasRenameProvider=new o["c"]("editorHasRenameProvider",!1,r["a"]("editorHasRenameProvider","Whether the editor has a rename provider")),e.hasSignatureHelpProvider=new o["c"]("editorHasSignatureHelpProvider",!1,r["a"]("editorHasSignatureHelpProvider","Whether the editor has a signature help provider")),e.hasInlayHintsProvider=new o["c"]("editorHasInlayHintsProvider",!1,r["a"]("editorHasInlayHintsProvider","Whether the editor has an inline hints provider")),e.hasDocumentFormattingProvider=new o["c"]("editorHasDocumentFormattingProvider",!1,r["a"]("editorHasDocumentFormattingProvider","Whether the editor has a document formatting provider")),e.hasDocumentSelectionFormattingProvider=new o["c"]("editorHasDocumentSelectionFormattingProvider",!1,r["a"]("editorHasDocumentSelectionFormattingProvider","Whether the editor has a document selection formatting provider")),e.hasMultipleDocumentFormattingProvider=new o["c"]("editorHasMultipleDocumentFormattingProvider",!1,r["a"]("editorHasMultipleDocumentFormattingProvider","Whether the editor has multiple document formatting providers")),e.hasMultipleDocumentSelectionFormattingProvider=new o["c"]("editorHasMultipleDocumentSelectionFormattingProvider",!1,r["a"]("editorHasMultipleDocumentSelectionFormattingProvider","Whether the editor has multiple document selection formatting providers"))})(i||(i={}))},c135:function(e,t){function n(e){if(Array.isArray(e))return e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},c240:function(e,t,n){function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n("d9e2"),e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},c280:function(e,t,n){},c286:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return n.e("chunk-2d0b2762").then(n.bind(null,"23e0"))}})},c2c6:function(e,t,n){self["MonacoEnvironment"]=function(e){function t(e){return e.replace(/\/$/,"")}return{globalAPI:!1,getWorkerUrl:function(i,r){var o=n.p,s=(o?t(o)+"/":"")+e[r];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(s)){var a=String(window.location),l=a.substr(0,a.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(s.substring(0,l.length)!==l){/^(\/\/)/.test(s)&&(s=window.location.protocol+s);var c="/*"+r+'*/importScripts("'+s+'");',u=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(u)}}return s}}}({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"}),n("4816"),n("3765"),n("6e4e"),n("2935"),n("c36f"),n("0b11"),n("77a4"),n("db2d"),n("9f4d"),n("7c3e"),n("d585"),n("e516"),n("fd11"),n("891c"),n("a106"),n("7605"),n("6df4"),n("7082"),n("958f"),n("3323"),n("f187"),n("1f84"),n("aee8"),n("a222"),n("1af3"),n("bc61"),n("6e62"),n("2e66"),n("8090"),n("747f"),n("7eb7"),n("d844"),n("f17c"),n("5b02"),n("2e4b"),n("6c8c"),n("8452"),n("e2c2"),n("43ad"),n("d741"),n("b574"),n("7a9e"),n("bd50"),n("93ba"),n("6daf"),n("87a3"),n("23ec"),n("5ed2"),n("b3b2"),n("2d47"),e.exports=n("8ea9"),n("09d1"),n("db7a"),n("38e9"),n("962f"),n("d1c2"),n("91d3"),n("0292"),n("8eb6"),n("82a1"),n("a771"),n("13e8"),n("f41d"),n("f570"),n("f5ba"),n("4af6"),n("a8f5"),n("9d48"),n("23f2"),n("2dec"),n("d282"),n("f9ad"),n("77db"),n("8457"),n("7367"),n("cd01"),n("93b9"),n("7257"),n("a79b"),n("daaa"),n("0ef9"),n("16f5"),n("38f6"),n("1aa7"),n("66f1"),n("2e5e"),n("4058"),n("6640"),n("fdc0"),n("c583"),n("8d5c"),n("ea53"),n("abca"),n("b12b"),n("a0a2"),n("1fa1"),n("cb70"),n("2652"),n("8f6a"),n("c286"),n("88b6"),n("4da7"),n("32cc"),n("6a38"),n("4220"),n("a48d"),n("c8aa"),n("8a3f"),n("5d08"),n("19bd"),n("1bd1"),n("c663"),n("73d3"),n("333a"),n("199a"),n("d65c"),n("e8cb"),n("c3d4"),n("b9f8"),n("2d19"),n("d2ce"),n("0542"),n("9f5f"),n("10eb"),n("cf78"),n("9eb0"),n("0447"),n("1389")},c2ca:function(e,t,n){},c317:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a}));var i=n("30db");let r;if("undefined"!==typeof i["b"].vscode&&"undefined"!==typeof i["b"].vscode.process){const e=i["b"].vscode.process;r={get platform(){return e.platform},get env(){return e.env},cwd(){return e.cwd()},nextTick(e){return Object(i["k"])(e)}}}else r="undefined"!==typeof e?{get platform(){return e.platform},get env(){return Object({NODE_ENV:"production",VUE_APP_BAI_DU_AK:"nAtaBg9FYzav6c8P9rF9qzsWZfT8O0PD",VUE_APP_BASE_API:"/prod-api",VUE_APP_MQTT_SERVER_URL:"",VUE_APP_TITLE:"FastBee物联网系统",VUE_APP_XIN_ZHI_KEY:"SBh45_yy21FU5ErV_",BASE_URL:"/"})},cwd(){return Object({NODE_ENV:"production",VUE_APP_BAI_DU_AK:"nAtaBg9FYzav6c8P9rF9qzsWZfT8O0PD",VUE_APP_BASE_API:"/prod-api",VUE_APP_MQTT_SERVER_URL:"",VUE_APP_TITLE:"FastBee物联网系统",VUE_APP_XIN_ZHI_KEY:"SBh45_yy21FU5ErV_",BASE_URL:"/"})["VSCODE_CWD"]||e.cwd()},nextTick(t){return e.nextTick(t)}}:{get platform(){return i["j"]?"win32":i["f"]?"darwin":"linux"},nextTick(e){return Object(i["k"])(e)},get env(){return{}},cwd(){return"/"}};const o=r.cwd,s=r.env,a=r.platform}).call(this,n("4362"))},c345:function(e,t,n){"use strict";var i=n("c532"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,s={};return e?(i.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=i.trim(e.substr(0,o)).toLowerCase(),n=i.trim(e.substr(o+1)),t){if(s[t]&&r.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},c36f:function(e,t,n){"use strict";n.r(t),n.d(t,"CutAction",(function(){return b})),n.d(t,"CopyAction",(function(){return y})),n.d(t,"PasteAction",(function(){return _}));var i=n("dff7"),r=n("0f70"),o=n("30db"),s=n("e53c"),a=n("b2cc"),l=n("5717"),c=n("c101"),u=n("7e32"),h=n("f577"),d=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const f="9_cutcopypaste",p=o["g"]||document.queryCommandSupported("cut"),g=o["g"]||document.queryCommandSupported("copy"),m="undefined"!==typeof navigator.clipboard&&!r["g"]||document.queryCommandSupported("paste");function v(e){return e.register(),e}const b=p?v(new a["e"]({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:o["g"]?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:u["b"].MenubarEditMenu,group:"2_ccp",title:i["a"]({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:u["b"].EditorContext,group:f,title:i["a"]("actions.clipboard.cutLabel","Cut"),when:c["a"].writable,order:1},{menuId:u["b"].CommandPalette,group:"",title:i["a"]("actions.clipboard.cutLabel","Cut"),order:1},{menuId:u["b"].SimpleEditorContext,group:f,title:i["a"]("actions.clipboard.cutLabel","Cut"),when:c["a"].writable,order:1}]})):void 0,y=g?v(new a["e"]({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:o["g"]?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:u["b"].MenubarEditMenu,group:"2_ccp",title:i["a"]({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:u["b"].EditorContext,group:f,title:i["a"]("actions.clipboard.copyLabel","Copy"),order:2},{menuId:u["b"].CommandPalette,group:"",title:i["a"]("actions.clipboard.copyLabel","Copy"),order:1},{menuId:u["b"].SimpleEditorContext,group:f,title:i["a"]("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;u["d"].appendMenuItem(u["b"].MenubarEditMenu,{submenu:u["b"].MenubarCopy,title:{value:i["a"]("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3}),u["d"].appendMenuItem(u["b"].EditorContext,{submenu:u["b"].EditorContextCopy,title:{value:i["a"]("copy as","Copy As"),original:"Copy As"},group:f,order:3});const _=m?v(new a["e"]({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:o["g"]?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:u["b"].MenubarEditMenu,group:"2_ccp",title:i["a"]({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:u["b"].EditorContext,group:f,title:i["a"]("actions.clipboard.pasteLabel","Paste"),when:c["a"].writable,order:4},{menuId:u["b"].CommandPalette,group:"",title:i["a"]("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:u["b"].SimpleEditorContext,group:f,title:i["a"]("actions.clipboard.pasteLabel","Paste"),when:c["a"].writable,order:4}]})):void 0;class w extends a["b"]{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:i["a"]("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:c["a"].textInputFocus,primary:0,weight:100}})}run(e,t){if(!t.hasModel())return;const n=t.getOption(30);!n&&t.getSelection().isEmpty()||(s["a"].forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),s["a"].forceCopyWithSyntaxHighlighting=!1)}}function C(e,t){e&&(e.addImplementation(1e4,"code-editor",(e,n)=>{const i=e.get(l["a"]).getFocusedCodeEditor();if(i&&i.hasTextFocus()){const e=i.getOption(30),n=i.getSelection();return n&&n.isEmpty()&&!e||document.execCommand(t),!0}return!1}),e.addImplementation(0,"generic-dom",(e,n)=>(document.execCommand(t),!0)))}C(b,"cut"),C(y,"copy"),_&&(_.addImplementation(1e4,"code-editor",(e,t)=>{const n=e.get(l["a"]),i=e.get(h["a"]),r=n.getFocusedCodeEditor();if(r&&r.hasTextFocus()){const e=document.execCommand("paste");return!(!e&&o["i"])||((()=>{d(void 0,void 0,void 0,(function*(){const e=yield i.readText();if(""!==e){const t=s["b"].INSTANCE.get(e);let n=!1,i=null,o=null;t&&(n=r.getOption(30)&&!!t.isFromEmptySelection,i="undefined"!==typeof t.multicursorText?t.multicursorText:null,o=t.mode),r.trigger("keyboard","paste",{text:e,pasteOnNewLine:n,multicursorText:i,mode:o})}}))})(),!0)}return!1}),_.addImplementation(0,"generic-dom",(e,t)=>(document.execCommand("paste"),!0))),g&&Object(a["j"])(w)},c3d4:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return n.e("chunk-2d0ae937").then(n.bind(null,"0b3b"))}})},c401:function(e,t,n){"use strict";var i=n("c532"),r=n("2444");e.exports=function(e,t,n){var o=this||r;return i.forEach(n,(function(n){e=n.call(o,e,t)})),e}},c423:function(e,t,n){},c430:function(e,t){e.exports=!1},c4c7:function(e,t,n){"use strict";const{Buffer:i}=n("1c35"),r=n("035d").Transform,o=n("fb12");let s,a,l,c=!1;function u(){const e=new r;return e._write=function(e,t,n){s.sendSocketMessage({data:e.buffer,success:function(){n()},fail:function(){n(new Error)}})},e._flush=function(e){s.closeSocket({success:function(){e()}})},e}function h(e){e.hostname||(e.hostname="localhost"),e.path||(e.path="/"),e.wsOptions||(e.wsOptions={})}function d(e,t){const n="alis"===e.protocol?"wss":"ws";let i=n+"://"+e.hostname+e.path;return e.port&&80!==e.port&&443!==e.port&&(i=n+"://"+e.hostname+":"+e.port+e.path),"function"===typeof e.transformWsUrl&&(i=e.transformWsUrl(i,e,t)),i}function f(){c||(c=!0,s.onSocketOpen((function(){l.setReadable(a),l.setWritable(a),l.emit("connect")})),s.onSocketMessage((function(e){if("string"===typeof e.data){const t=i.from(e.data,"base64");a.push(t)}else{const t=new FileReader;t.addEventListener("load",(function(){let e=t.result;e=e instanceof ArrayBuffer?i.from(e):i.from(e,"utf8"),a.push(e)})),t.readAsArrayBuffer(e.data)}})),s.onSocketClose((function(){l.end(),l.destroy()})),s.onSocketError((function(e){l.destroy(e)})))}function p(e,t){if(t.hostname=t.hostname||t.host,!t.hostname)throw new Error("Could not determine host. Specify host manually.");const n="MQIsdp"===t.protocolId&&3===t.protocolVersion?"mqttv3.1":"mqtt";h(t);const i=d(t,e);return s=t.my,s.connectSocket({url:i,protocols:n}),a=u(),l=o.obj(),f(),l}e.exports=p},c4e3:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));n("2a04");var i=n("11f7"),r=n("ee56"),o=n("a666"),s=n("9ee1"),a=n("aa3d"),l=n("ef8e"),c=n("2504"),u=n("dff7"),h=n("5fe7"),d=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function f(e,t){Object(l["k"])(t)?e.title=t:(null===t||void 0===t?void 0:t.markdownNotSupportedFallback)?e.title=t.markdownNotSupportedFallback:e.removeAttribute("title")}function p(e,t,n){if(!n)return;const r=g(n);let s,a;const f=f=>{if(s)return;const p=new c["b"],g=e=>{const n=e.type===i["d"].MOUSE_DOWN;n&&(null===a||void 0===a||a.dispose(),a=void 0),(n||e.fromElement===t)&&(null===s||void 0===s||s.dispose(),s=void 0)},m=i["i"](t,i["d"].MOUSE_LEAVE,g,!0),v=i["i"](t,i["d"].MOUSE_DOWN,g,!0),b={targetElements:[t],dispose:()=>{}};let y;if(void 0===e.placement||"mouse"===e.placement){const e=e=>b.x=e.x+10;y=i["i"](t,i["d"].MOUSE_MOVE,e,!0)}const _=()=>d(this,void 0,void 0,(function*(){var t;if(s){const i={text:Object(u["a"])("iconLabel.loading","Loading..."),target:b,hoverPosition:2};null===a||void 0===a||a.dispose(),a=e.showHover(i);const o=null!==(t=yield r(p.token))&&void 0!==t?t:Object(l["k"])(n)?void 0:n.markdownNotSupportedFallback;if(null===a||void 0===a||a.dispose(),a=void 0,o&&s){const t={text:o,target:b,showPointer:"element"===e.placement,hoverPosition:2};a=e.showHover(t)}}null===y||void 0===y||y.dispose()})),w=new h["e"](_,e.delay);w.schedule(),s=Object(o["i"])(()=>{w.dispose(),null===y||void 0===y||y.dispose(),v.dispose(),m.dispose(),p.dispose(!0)})},p=i["i"](t,i["d"].MOUSE_OVER,f,!0);return Object(o["i"])(()=>{p.dispose(),null===s||void 0===s||s.dispose(),null===a||void 0===a||a.dispose()})}function g(e){if(Object(l["k"])(e))return()=>d(this,void 0,void 0,(function*(){return e}));if(Object(l["h"])(e.markdown))return e.markdown;{const t=e.markdown;return()=>d(this,void 0,void 0,(function*(){return t}))}}class m{constructor(e){this._element=e}get element(){return this._element}set textContent(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)}set className(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)}set empty(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":"")}dispose(){this.disposed=!0}}class v extends o["a"]{constructor(e,t){super(),this.customHovers=new Map,this.domNode=this._register(new m(i["q"](e,i["a"](".monaco-icon-label")))),this.labelContainer=i["q"](this.domNode.element,i["a"](".monaco-icon-label-container"));const n=i["q"](this.labelContainer,i["a"]("span.monaco-icon-name-container"));this.descriptionContainer=this._register(new m(i["q"](this.labelContainer,i["a"]("span.monaco-icon-description-container")))),(null===t||void 0===t?void 0:t.supportHighlights)||(null===t||void 0===t?void 0:t.supportIcons)?this.nameNode=new _(n,!!t.supportIcons):this.nameNode=new b(n),(null===t||void 0===t?void 0:t.supportDescriptionHighlights)?this.descriptionNodeFactory=()=>new r["a"](i["q"](this.descriptionContainer.element,i["a"]("span.label-description")),!!t.supportIcons):this.descriptionNodeFactory=()=>this._register(new m(i["q"](this.descriptionContainer.element,i["a"]("span.label-description")))),this.hoverDelegate=null===t||void 0===t?void 0:t.hoverDelegate}setLabel(e,t,n){const i=["monaco-icon-label"];n&&(n.extraClasses&&i.push(...n.extraClasses),n.italic&&i.push("italic"),n.strikethrough&&i.push("strikethrough")),this.domNode.className=i.join(" "),this.setupHover(this.labelContainer,null===n||void 0===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),this.setupHover(this.descriptionNode.element,null===n||void 0===n?void 0:n.descriptionTitle)):(this.descriptionNode.textContent=t||"",this.setupHover(this.descriptionNode.element,(null===n||void 0===n?void 0:n.descriptionTitle)||""),this.descriptionNode.empty=!t))}setupHover(e,t){const n=this.customHovers.get(e);if(n&&(n.dispose(),this.customHovers.delete(e)),t)if(this.hoverDelegate){const n=p(this.hoverDelegate,e,t);n&&this.customHovers.set(e,n)}else f(e,t);else e.removeAttribute("title")}dispose(){super.dispose();for(const e of this.customHovers.values())e.dispose();this.customHovers.clear()}}class b{constructor(e){this.container=e,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!Object(a["d"])(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=i["q"](this.container,i["a"]("a.label-name",{id:null===t||void 0===t?void 0:t.domId}))),this.singleLabel.textContent=e;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let n=0;n<e.length;n++){const r=e[n],o=(null===t||void 0===t?void 0:t.domId)&&`${null===t||void 0===t?void 0:t.domId}_${n}`;i["q"](this.container,i["a"]("a.label-name",{id:o,"data-icon-label-count":e.length,"data-icon-label-index":n,role:"treeitem"},r)),n<e.length-1&&i["q"](this.container,i["a"]("span.label-separator",void 0,(null===t||void 0===t?void 0:t.separator)||"/"))}}}}function y(e,t,n){if(!n)return;let i=0;return e.map(e=>{const r={start:i,end:i+e.length},o=n.map(e=>s["a"].intersect(r,e)).filter(e=>!s["a"].isEmpty(e)).map(({start:e,end:t})=>({start:e-i,end:t-i}));return i=r.end+t.length,o})}class _{constructor(e,t){this.container=e,this.supportIcons=t,this.label=void 0,this.singleLabel=void 0}setLabel(e,t){if(this.label!==e||!Object(a["d"])(this.options,t))if(this.label=e,this.options=t,"string"===typeof e)this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=new r["a"](i["q"](this.container,i["a"]("a.label-name",{id:null===t||void 0===t?void 0:t.domId})),this.supportIcons)),this.singleLabel.set(e,null===t||void 0===t?void 0:t.matches,void 0,null===t||void 0===t?void 0:t.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const n=(null===t||void 0===t?void 0:t.separator)||"/",o=y(e,n,null===t||void 0===t?void 0:t.matches);for(let s=0;s<e.length;s++){const a=e[s],l=o?o[s]:void 0,c=(null===t||void 0===t?void 0:t.domId)&&`${null===t||void 0===t?void 0:t.domId}_${s}`,u=i["a"]("a.label-name",{id:c,"data-icon-label-count":e.length,"data-icon-label-index":s,role:"treeitem"}),h=new r["a"](i["q"](this.container,u),this.supportIcons);h.set(a,l,void 0,null===t||void 0===t?void 0:t.labelEscapeNewLines),s<e.length-1&&i["q"](u,i["a"]("span.label-separator",void 0,n))}}}}},c513:function(e,t,n){var i=n("23e7"),r=n("1a2d"),o=n("d9b5"),s=n("0d51"),a=n("5692"),l=n("0b43"),c=a("symbol-to-string-registry");i({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!o(e))throw TypeError(s(e)+" is not a symbol");if(r(c,e))return c[e]}})},c532:function(e,t,n){"use strict";var i=n("1d2b"),r=Object.prototype.toString;function o(e){return"[object Array]"===r.call(e)}function s(e){return"undefined"===typeof e}function a(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===r.call(e)}function c(e){return"undefined"!==typeof FormData&&e instanceof FormData}function u(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function h(e){return"string"===typeof e}function d(e){return"number"===typeof e}function f(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function g(e){return"[object Date]"===r.call(e)}function m(e){return"[object File]"===r.call(e)}function v(e){return"[object Blob]"===r.call(e)}function b(e){return"[object Function]"===r.call(e)}function y(e){return f(e)&&b(e.pipe)}function _(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function w(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function C(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function S(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function x(){var e={};function t(t,n){p(e[n])&&p(t)?e[n]=x(e[n],t):p(t)?e[n]=x({},t):o(t)?e[n]=t.slice():e[n]=t}for(var n=0,i=arguments.length;n<i;n++)S(arguments[n],t);return e}function O(e,t,n){return S(t,(function(t,r){e[r]=n&&"function"===typeof t?i(t,n):t})),e}function k(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:o,isArrayBuffer:l,isBuffer:a,isFormData:c,isArrayBufferView:u,isString:h,isNumber:d,isObject:f,isPlainObject:p,isUndefined:s,isDate:g,isFile:m,isBlob:v,isFunction:b,isStream:y,isURLSearchParams:_,isStandardBrowserEnv:C,forEach:S,merge:x,extend:O,trim:w,stripBOM:k}},c583:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return n.e("chunk-2d20f745").then(n.bind(null,"b463"))}})},c607:function(e,t,n){var i=n("83ab"),r=n("fce3"),o=n("c6b6"),s=n("edd0"),a=n("69f3").get,l=RegExp.prototype,c=TypeError;i&&r&&s(l,"dotAll",{configurable:!0,get:function(){if(this!==l){if("RegExp"===o(this))return!!a(this).dotAll;throw c("Incompatible receiver, RegExp required")}}})},c65b:function(e,t,n){var i=n("40d5"),r=Function.prototype.call;e.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},c663:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:function(){return n.e("chunk-2d0e1b57").then(n.bind(null,"7c1f"))}})},c6b6:function(e,t,n){var i=n("e330"),r=i({}.toString),o=i("".slice);e.exports=function(e){return o(r(e),8,-1)}},c6cd:function(e,t,n){var i=n("da84"),r=n("6374"),o="__core-js_shared__",s=i[o]||r(o,{});e.exports=s},c6d2:function(e,t,n){"use strict";var i=n("23e7"),r=n("c65b"),o=n("c430"),s=n("5e77"),a=n("1626"),l=n("dcc3"),c=n("e163"),u=n("d2bb"),h=n("d44e"),d=n("9112"),f=n("cb2d"),p=n("b622"),g=n("3f8c"),m=n("ae93"),v=s.PROPER,b=s.CONFIGURABLE,y=m.IteratorPrototype,_=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),C="keys",S="values",x="entries",O=function(){return this};e.exports=function(e,t,n,s,p,m,k){l(n,t,s);var L,E,D,I=function(e){if(e===p&&P)return P;if(!_&&e in A)return A[e];switch(e){case C:return function(){return new n(this,e)};case S:return function(){return new n(this,e)};case x:return function(){return new n(this,e)}}return function(){return new n(this)}},M=t+" Iterator",T=!1,A=e.prototype,N=A[w]||A["@@iterator"]||p&&A[p],P=!_&&N||I(p),j="Array"==t&&A.entries||N;if(j&&(L=c(j.call(new e)),L!==Object.prototype&&L.next&&(o||c(L)===y||(u?u(L,y):a(L[w])||f(L,w,O)),h(L,M,!0,!0),o&&(g[M]=O))),v&&p==S&&N&&N.name!==S&&(!o&&b?d(A,"name",S):(T=!0,P=function(){return r(N,this)})),p)if(E={values:I(S),keys:m?P:I(C),entries:I(x)},k)for(D in E)(_||T||!(D in A))&&f(A,D,E[D]);else i({target:t,proto:!0,forced:_||T},E);return o&&!k||A[w]===P||f(A,w,P,{name:p}),g[t]=P,E}},c740:function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").findIndex,o=n("44d2"),s="findIndex",a=!0;s in[]&&Array(1)[s]((function(){a=!1})),i({target:"Array",proto:!0,forced:a},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),o(s)},c7a2:function(e,t,n){"use strict";var i=n("9ab4"),r=n("cbe5");function o(e,t){var n,i,r,o,s,a=t.x,l=t.y,c=t.width,u=t.height,h=t.r;c<0&&(a+=c,c=-c),u<0&&(l+=u,u=-u),"number"===typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>c&&(s=n+i,n*=c/s,i*=c/s),r+o>c&&(s=r+o,r*=c/s,o*=c/s),i+r>u&&(s=i+r,i*=u/s,r*=u/s),n+o>u&&(s=n+o,n*=u/s,o*=u/s),e.moveTo(a+n,l),e.lineTo(a+c-i,l),0!==i&&e.arc(a+c-i,l+i,i,-Math.PI/2,0),e.lineTo(a+c,l+u-r),0!==r&&e.arc(a+c-r,l+u-r,r,0,Math.PI/2),e.lineTo(a+o,l+u),0!==o&&e.arc(a+o,l+u-o,o,Math.PI/2,Math.PI),e.lineTo(a,l+n),0!==n&&e.arc(a+n,l+n,n,Math.PI,1.5*Math.PI)}var s=n("9cf9"),a=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),l={},c=function(e){function t(t){return e.call(this,t)||this}return Object(i["a"])(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){var n,i,r,a;if(this.subPixelOptimize){var c=Object(s["c"])(l,t,this.style);n=c.x,i=c.y,r=c.width,a=c.height,c.r=t.r,t=c}else n=t.x,i=t.y,r=t.width,a=t.height;t.r?o(e,t):e.rect(n,i,r,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(r["b"]);c.prototype.type="rect";t["a"]=c},c7c8:function(e,t,n){},c7eb:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("a4d3"),n("e01a"),n("b636"),n("d28b"),n("944a"),n("d9e2"),n("14d9"),n("fb6a"),n("b0c0"),n("0c47"),n("23dc"),n("3410"),n("1f68"),n("131a"),n("d3b7"),n("3ca3"),n("159b"),n("ddb0");var i=n("53ca");function r(){
|
||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||
r=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function h(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{h({},"")}catch(e){h=function(e,t,n){return e[t]=n}}function d(e,t,n,i){var r=t&&t.prototype instanceof y?t:y,o=Object.create(r.prototype),a=new T(i||[]);return s(o,"_invoke",{value:E(e,n,a)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var p="suspendedStart",g="suspendedYield",m="executing",v="completed",b={};function y(){}function _(){}function w(){}var C={};h(C,l,(function(){return this}));var S=Object.getPrototypeOf,x=S&&S(S(A([])));x&&x!==n&&o.call(x,l)&&(C=x);var O=w.prototype=y.prototype=Object.create(C);function k(e){["next","throw","return"].forEach((function(t){h(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(r,s,a,l){var c=f(e[r],e,s);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==Object(i["a"])(h)&&o.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(h).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,l)}))}l(c.arg)}var r;s(this,"_invoke",{value:function(e,i){function o(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(o,o):o()}})}function E(t,n,i){var r=p;return function(o,s){if(r===m)throw Error("Generator is already running");if(r===v){if("throw"===o)throw s;return{value:e,done:!0}}for(i.method=o,i.arg=s;;){var a=i.delegate;if(a){var l=D(a,i);if(l){if(l===b)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===p)throw r=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=m;var c=f(t,n,i);if("normal"===c.type){if(r=i.done?v:g,c.arg===b)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(r=v,i.method="throw",i.arg=c.arg)}}}function D(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator["return"]&&(n.method="return",n.arg=e,D(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),b;var o=f(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var s=o.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,b):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,s=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}throw new TypeError(Object(i["a"])(t)+" is not iterable")}return _.prototype=w,s(O,"constructor",{value:w,configurable:!0}),s(w,"constructor",{value:_,configurable:!0}),_.displayName=h(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,h(e,u,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},k(L.prototype),h(L.prototype,c,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var s=new L(d(e,n,i,r),o);return t.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},k(O),h(O,u,"Generator"),h(O,l,(function(){return this})),h(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=A,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(i,r){return a.type="throw",a.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var s=this.tryEntries[r],a=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var l=o.call(s,"catchLoc"),c=o.call(s,"finallyLoc");if(l&&c){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var s=r?r.completion:{};return s.type=e,s.arg=t,r?(this.method="next",this.next=r.finallyLoc,b):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;M(n)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:A(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),b}},t}},c7f5:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u}));var i=n("0a0f"),r=n("6d8e"),o=n("ef8e");const s=Object(i["c"])("IWorkspaceEditService");function a(e){return Object(o["j"])(e)&&(Boolean(e.newUri)||Boolean(e.oldUri))}function l(e){return Object(o["j"])(e)&&r["a"].isUri(e.resource)&&Object(o["j"])(e.edit)}class c{constructor(e){this.metadata=e}static convert(e){return e.edits.map(e=>{if(l(e))return new u(e.resource,e.edit,e.modelVersionId,e.metadata);if(a(e))return new h(e.oldUri,e.newUri,e.options,e.metadata);throw new Error("Unsupported edit")})}}class u extends c{constructor(e,t,n,i){super(i),this.resource=e,this.textEdit=t,this.versionId=n}}class h extends c{constructor(e,t,n,i){super(i),this.oldResource=e,this.newResource=t,this.options=n}}},c84a:function(e,t,n){},c8aa:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:function(){return n.e("chunk-2d0bdf38").then(n.bind(null,"2dd4"))}})},c8af:function(e,t,n){"use strict";var i=n("c532");e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}e.exports=n},c8d2:function(e,t,n){var i=n("5e77").PROPER,r=n("d039"),o=n("5899"),s="
";e.exports=function(e){return r((function(){return!!o[e]()||s[e]()!==s||i&&o[e].name!==e}))}},c901:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c930:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yAxisConfig=t.xAxisConfig=void 0;var i={name:"",show:!0,position:"bottom",nameGap:15,nameLocation:"end",nameTextStyle:{fill:"#333",fontSize:10},min:"20%",max:"20%",interval:null,minInterval:null,maxInterval:null,boundaryGap:null,splitNumber:5,axisLine:{show:!0,style:{stroke:"#333",lineWidth:1}},axisTick:{show:!0,style:{stroke:"#333",lineWidth:1}},axisLabel:{show:!0,formatter:null,style:{fill:"#333",fontSize:10,rotate:0}},splitLine:{show:!1,style:{stroke:"#d4d4d4",lineWidth:1}},rLevel:-20,animationCurve:"easeOutCubic",animationFrame:50};t.xAxisConfig=i;var r={name:"",show:!0,position:"left",nameGap:15,nameLocation:"end",nameTextStyle:{fill:"#333",fontSize:10},min:"20%",max:"20%",interval:null,minInterval:null,maxInterval:null,boundaryGap:null,splitNumber:5,axisLine:{show:!0,style:{stroke:"#333",lineWidth:1}},axisTick:{show:!0,style:{stroke:"#333",lineWidth:1}},axisLabel:{show:!0,formatter:null,style:{fill:"#333",fontSize:10,rotate:0}},splitLine:{show:!0,style:{stroke:"#d4d4d4",lineWidth:1}},rLevel:-20,animationCurve:"easeOutCubic",animationFrame:50};t.yAxisConfig=r},c973:function(e,t,n){function i(e,t,n,i,r,o,s){try{var a=e[o](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var s=e.apply(t,n);function a(e){i(s,r,o,a,l,"next",e)}function l(e){i(s,r,o,a,l,"throw",e)}a(void 0)}))}}n("d3b7"),e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},ca80:function(e,t,n){"use strict";var i=n("dce8"),r=[0,0],o=[0,0],s=new i["a"],a=new i["a"],l=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new i["a"];for(n=0;n<2;n++)this._axes[n]=new i["a"];e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,o=e.x,s=e.y,a=o+e.width,l=s+e.height;if(n[0].set(o,s),n[1].set(a,s),n[2].set(a,l),n[3].set(o,l),t)for(var c=0;c<4;c++)n[c].transform(t);i["a"].sub(r[0],n[1],n[0]),i["a"].sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return s.set(1/0,1/0),a.set(0,0),!this._intersectCheckOneSide(this,e,s,a,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,s,a,r,-1)&&(n=!1,r)||r||i["a"].copy(t,n?s:a),n},e.prototype._intersectCheckOneSide=function(e,t,n,s,a,l){for(var c=!0,u=0;u<2;u++){var h=this._axes[u];if(this._getProjMinMaxOnAxis(u,e._corners,r),this._getProjMinMaxOnAxis(u,t._corners,o),r[1]<o[0]||r[0]>o[1]){if(c=!1,a)return c;var d=Math.abs(o[0]-r[1]),f=Math.abs(r[0]-o[1]);Math.min(d,f)>s.len()&&(d<f?i["a"].scale(s,h,-d*l):i["a"].scale(s,h,f*l))}else if(n){d=Math.abs(o[0]-r[1]),f=Math.abs(r[0]-o[1]);Math.min(d,f)<n.len()&&(d<f?i["a"].scale(n,h,d*l):i["a"].scale(n,h,-f*l))}}return c},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var i=this._axes[e],r=this._origin,o=t[0].dot(i)+r[e],s=o,a=o,l=1;l<t.length;l++){var c=t[l].dot(i)+r[e];s=Math.min(c,s),a=Math.max(c,a)}n[0]=s,n[1]=a},e}();t["a"]=l},ca84:function(e,t,n){var i=n("e330"),r=n("1a2d"),o=n("fc6a"),s=n("4d64").indexOf,a=n("d012"),l=i([].push);e.exports=function(e,t){var n,i=o(e),c=0,u=[];for(n in i)!r(a,n)&&r(i,n)&&l(u,n);while(t.length>c)r(i,n=t[c++])&&(~s(u,n)||l(u,n));return u}},caa1:function(e,t,n){},caad:function(e,t,n){"use strict";var i=n("23e7"),r=n("4d64").includes,o=n("d039"),s=n("44d2"),a=o((function(){return!Array(1).includes()}));i({target:"Array",proto:!0,forced:a},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},cab5:function(e,t,n){},cb11:function(e,t,n){"use strict";var i=n("9ab4"),r=n("cbe5"),o=n("9cf9"),s={},a=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),l=function(e){function t(t){return e.call(this,t)||this}return Object(i["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){var n,i,r,a;if(this.subPixelOptimize){var l=Object(o["b"])(s,t,this.style);n=l.x1,i=l.y1,r=l.x2,a=l.y2}else n=t.x1,i=t.y1,r=t.x2,a=t.y2;var c=t.percent;0!==c&&(e.moveTo(n,i),c<1&&(r=n*(1-c)+r*c,a=i*(1-c)+a*c),e.lineTo(r,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(r["b"]);l.prototype.type="line",t["a"]=l},cb29:function(e,t,n){var i=n("23e7"),r=n("81d5"),o=n("44d2");i({target:"Array",proto:!0},{fill:r}),o("fill")},cb2d:function(e,t,n){var i=n("1626"),r=n("9bf2"),o=n("13d2"),s=n("6374");e.exports=function(e,t,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:t;if(i(n)&&o(n,c,a),a.global)l?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},cb70:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return n.e("chunk-2d0cf16e").then(n.bind(null,"61da"))}})},cbe5:function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var i=n("9ab4"),r=n("19eb"),o=n("20c8"),s=n("9680"),a=n("4a3f");function l(e,t,n,i,r,o,s,l,c,u,h){if(0===c)return!1;var d=c;if(h>t+d&&h>i+d&&h>o+d&&h>l+d||h<t-d&&h<i-d&&h<o-d&&h<l-d||u>e+d&&u>n+d&&u>r+d&&u>s+d||u<e-d&&u<n-d&&u<r-d&&u<s-d)return!1;var f=a["e"](e,t,n,i,r,o,s,l,u,h,null);return f<=d/2}var c=n("68ab"),u=n("857d"),h=2*Math.PI;function d(e,t,n,i,r,o,s,a,l){if(0===s)return!1;var c=s;a-=e,l-=t;var d=Math.sqrt(a*a+l*l);if(d-c>n||d+c<n)return!1;if(Math.abs(i-r)%h<1e-4)return!0;if(o){var f=i;i=Object(u["a"])(r),r=Object(u["a"])(f)}else i=Object(u["a"])(i),r=Object(u["a"])(r);i>r&&(r+=h);var p=Math.atan2(l,a);return p<0&&(p+=h),p>=i&&p<=r||p+h>=i&&p+h<=r}var f=n("8728"),p=o["a"].CMD,g=2*Math.PI,m=1e-4;function v(e,t){return Math.abs(e-t)<m}var b=[-1,-1,-1],y=[-1,-1];function _(){var e=y[0];y[0]=y[1],y[1]=e}function w(e,t,n,i,r,o,s,l,c,u){if(u>t&&u>i&&u>o&&u>l||u<t&&u<i&&u<o&&u<l)return 0;var h=a["f"](t,i,o,l,u,b);if(0===h)return 0;for(var d=0,f=-1,p=void 0,g=void 0,m=0;m<h;m++){var v=b[m],w=0===v||1===v?.5:1,C=a["a"](e,n,r,s,v);C<c||(f<0&&(f=a["c"](t,i,o,l,y),y[1]<y[0]&&f>1&&_(),p=a["a"](t,i,o,l,y[0]),f>1&&(g=a["a"](t,i,o,l,y[1]))),2===f?v<y[0]?d+=p<t?w:-w:v<y[1]?d+=g<p?w:-w:d+=l<g?w:-w:v<y[0]?d+=p<t?w:-w:d+=l<p?w:-w)}return d}function C(e,t,n,i,r,o,s,l){if(l>t&&l>i&&l>o||l<t&&l<i&&l<o)return 0;var c=a["m"](t,i,o,l,b);if(0===c)return 0;var u=a["j"](t,i,o);if(u>=0&&u<=1){for(var h=0,d=a["h"](t,i,o,u),f=0;f<c;f++){var p=0===b[f]||1===b[f]?.5:1,g=a["h"](e,n,r,b[f]);g<s||(b[f]<u?h+=d<t?p:-p:h+=o<d?p:-p)}return h}p=0===b[0]||1===b[0]?.5:1,g=a["h"](e,n,r,b[0]);return g<s?0:o<t?p:-p}function S(e,t,n,i,r,o,s,a){if(a-=t,a>n||a<-n)return 0;var l=Math.sqrt(n*n-a*a);b[0]=-l,b[1]=l;var c=Math.abs(i-r);if(c<1e-4)return 0;if(c>=g-1e-4){i=0,r=g;var u=o?1:-1;return s>=b[0]+e&&s<=b[1]+e?u:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=g,r+=g);for(var d=0,f=0;f<2;f++){var p=b[f];if(p+e>s){var m=Math.atan2(a,p);u=o?1:-1;m<0&&(m=g+m),(m>=i&&m<=r||m+g>=i&&m+g<=r)&&(m>Math.PI/2&&m<1.5*Math.PI&&(u=-u),d+=u)}}return d}function x(e,t,n,i,r){for(var o,a,u=e.data,h=e.len(),g=0,m=0,b=0,y=0,_=0,x=0;x<h;){var O=u[x++],k=1===x;switch(O===p.M&&x>1&&(n||(g+=Object(f["a"])(m,b,y,_,i,r))),k&&(m=u[x],b=u[x+1],y=m,_=b),O){case p.M:y=u[x++],_=u[x++],m=y,b=_;break;case p.L:if(n){if(s["a"](m,b,u[x],u[x+1],t,i,r))return!0}else g+=Object(f["a"])(m,b,u[x],u[x+1],i,r)||0;m=u[x++],b=u[x++];break;case p.C:if(n){if(l(m,b,u[x++],u[x++],u[x++],u[x++],u[x],u[x+1],t,i,r))return!0}else g+=w(m,b,u[x++],u[x++],u[x++],u[x++],u[x],u[x+1],i,r)||0;m=u[x++],b=u[x++];break;case p.Q:if(n){if(c["a"](m,b,u[x++],u[x++],u[x],u[x+1],t,i,r))return!0}else g+=C(m,b,u[x++],u[x++],u[x],u[x+1],i,r)||0;m=u[x++],b=u[x++];break;case p.A:var L=u[x++],E=u[x++],D=u[x++],I=u[x++],M=u[x++],T=u[x++];x+=1;var A=!!(1-u[x++]);o=Math.cos(M)*D+L,a=Math.sin(M)*I+E,k?(y=o,_=a):g+=Object(f["a"])(m,b,o,a,i,r);var N=(i-L)*I/D+L;if(n){if(d(L,E,I,M,M+T,A,t,N,r))return!0}else g+=S(L,E,I,M,M+T,A,N,r);m=Math.cos(M+T)*D+L,b=Math.sin(M+T)*I+E;break;case p.R:y=m=u[x++],_=b=u[x++];var P=u[x++],j=u[x++];if(o=y+P,a=_+j,n){if(s["a"](y,_,o,_,t,i,r)||s["a"](o,_,o,a,t,i,r)||s["a"](o,a,y,a,t,i,r)||s["a"](y,a,y,_,t,i,r))return!0}else g+=Object(f["a"])(o,_,o,a,i,r),g+=Object(f["a"])(y,a,y,_,i,r);break;case p.Z:if(n){if(s["a"](m,b,y,_,t,i,r))return!0}else g+=Object(f["a"])(m,b,y,_,i,r);m=y,b=_;break}}return n||v(b,_)||(g+=Object(f["a"])(m,b,y,_,i,r)||0),0!==g}function O(e,t,n){return x(e,0,!1,t,n)}function k(e,t,n,i){return x(e,t,!0,n,i)}var L=n("6d8b"),E=n("41ef"),D=n("2cf4"),I=n("4bc4"),M=n("8582"),T=Object(L["defaults"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},r["b"]),A={style:Object(L["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},r["a"].style)},N=M["a"].concat(["invisible","culling","z","z2","zlevel","parent"]),P=function(e){function t(t){return e.call(this,t)||this}return Object(i["a"])(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new t;r.buildPath===t.prototype.buildPath&&(r.buildPath=function(e){n.buildPath(e,n.shape)}),r.silent=!0;var o=r.style;for(var s in i)o[s]!==i[s]&&(o[s]=i[s]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var a=0;a<N.length;++a)r[N[a]]=this[N[a]];r.__dirty|=I["a"]}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=Object(L["keys"])(t);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],s=t[o];"style"===o?this.style?Object(L["extend"])(this.style,s):this.useStyle(s):"shape"===o?Object(L["extend"])(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(Object(L["isString"])(e)){var t=Object(E["lum"])(e,0);return t>.5?D["a"]:t>.2?D["c"]:D["d"]}if(e)return D["d"]}return D["a"]},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(L["isString"])(t)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=Object(E["lum"])(e,0)<D["b"];if(i===r)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=~I["b"]},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new o["a"](!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&I["b"])&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),e=r.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var s=t.strokeNoScale?this.getLineScale():1,a=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;a=Math.max(a,null==l?4:l)}s>1e-10&&(o.width+=a/s,o.height+=a/s,o.x-=a/s/2,o.y-=a/s/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),r=this.style;if(e=n[0],t=n[1],i.contain(e,t)){var o=this.path;if(this.hasStroke()){var s=r.lineWidth,a=r.strokeNoScale?this.getLineScale():1;if(a>1e-10&&(this.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),k(o,s/a,e,t)))return!0}if(this.hasFill())return O(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=I["b"],this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"===typeof e?n[e]=t:Object(L["extend"])(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&I["b"])},t.prototype.createStyle=function(e){return Object(L["createObject"])(T,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Object(L["extend"])({},this.shape))},t.prototype._applyStateObj=function(t,n,i,r,o,s){e.prototype._applyStateObj.call(this,t,n,i,r,o,s);var a,l=!(n&&r);if(n&&n.shape?o?r?a=n.shape:(a=Object(L["extend"])({},i.shape),Object(L["extend"])(a,n.shape)):(a=Object(L["extend"])({},r?this.shape:i.shape),Object(L["extend"])(a,n.shape)):l&&(a=i.shape),a)if(o){this.shape=Object(L["extend"])({},this.shape);for(var c={},u=Object(L["keys"])(a),h=0;h<u.length;h++){var d=u[h];"object"===typeof a[d]?this.shape[d]=a[d]:c[d]=a[d]}this._transitionState(t,{shape:c},s)}else this.shape=a,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,i=e.prototype._mergeStates.call(this,t),r=0;r<t.length;r++){var o=t[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return A},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var i=t.call(this,n)||this;return e.init&&e.init.call(i,n),i}return Object(i["a"])(n,t),n.prototype.getDefaultStyle=function(){return Object(L["clone"])(e.style)},n.prototype.getDefaultShape=function(){return Object(L["clone"])(e.shape)},n}(t);for(var r in e)"function"===typeof e[r]&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=I["a"]|I["c"]|I["b"]}(),t}(r["c"]);t["b"]=P},cc12:function(e,t,n){var i=n("da84"),r=n("861d"),o=i.document,s=r(o)&&r(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},cc15:function(e,t,n){var i=n("b367")("wks"),r=n("8b1a"),o=n("ef08").Symbol,s="function"==typeof o,a=e.exports=function(e){return i[e]||(i[e]=s&&o[e]||(s?o:r)("Symbol."+e))};a.store=i},cc6d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gaugeConfig=void 0;var i={show:!0,name:"",radius:"60%",center:["50%","50%"],startAngle:-Math.PI/4*5,endAngle:Math.PI/4,min:0,max:100,splitNum:5,arcLineWidth:15,data:[],dataItemStyle:{},axisTick:{show:!0,tickLength:6,style:{stroke:"#999",lineWidth:1}},axisLabel:{show:!0,data:[],formatter:null,labelGap:5,style:{}},pointer:{show:!0,valueIndex:0,style:{scale:[1,1],fill:"#fb7293"}},details:{show:!1,formatter:null,offset:[0,0],valueToFixed:0,position:"center",style:{fontSize:20,fontWeight:"bold",textAlign:"center",textBaseline:"middle"}},backgroundArc:{show:!0,style:{stroke:"#e0e0e0"}},rLevel:10,animationCurve:"easeOutCubic",animationFrame:50};t.gaugeConfig=i},cc98:function(e,t,n){"use strict";var i=n("23e7"),r=n("c430"),o=n("4738").CONSTRUCTOR,s=n("d256"),a=n("d066"),l=n("1626"),c=n("cb2d"),u=s&&s.prototype;if(i({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!r&&l(s)){var h=a("Promise").prototype["catch"];u["catch"]!==h&&c(u,"catch",h,{unsafe:!0})}},cca6:function(e,t,n){var i=n("23e7"),r=n("60da");i({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},cccd:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("e0d3");function r(){var e=Object(i["o"])();return function(t){var n=e(t),i=t.pipelineContext,r=!!n.large,o=!!n.progressiveRender,s=n.large=!(!i||!i.large),a=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===s&&o===a)&&"reset"}}},ccde:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n("3742"),r=n("2e5d"),o=n("6a89"),s=n("8025"),a=n("70cb");const l=Object.create(null);function c(e,t){if(t<=0)return"";l[e]||(l[e]=["",e]);const n=l[e];for(let i=n.length;i<=t;i++)n[i]=n[i-1]+e;return n[t]}class u{constructor(e,t){this._opts=t,this._selection=e,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}static unshiftIndent(e,t,n,i,o){const s=r["a"].visibleColumnFromColumn(e,t,n);if(o){const e=c(" ",i),t=r["a"].prevIndentTabStop(s,i),n=t/i;return c(e,n)}{const e="\t",t=r["a"].prevRenderTabStop(s,n),i=t/n;return c(e,i)}}static shiftIndent(e,t,n,i,o){const s=r["a"].visibleColumnFromColumn(e,t,n);if(o){const e=c(" ",i),t=r["a"].nextIndentTabStop(s,i),n=t/i;return c(e,n)}{const e="\t",t=r["a"].nextRenderTabStop(s,n),i=t/n;return c(e,i)}}_addEditOperation(e,t,n){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,n):e.addEditOperation(t,n)}getEditOperations(e,t){const n=this._selection.startLineNumber;let s=this._selection.endLineNumber;1===this._selection.endColumn&&n!==s&&(s-=1);const{tabSize:l,indentSize:h,insertSpaces:d}=this._opts,f=n===s;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(e.getLineContent(n))&&(this._useLastEditRangeForCursorEndPosition=!0);let c=0,p=0;for(let g=n;g<=s;g++,c=p){p=0;let s,m=e.getLineContent(g),v=i["v"](m);if((!this._opts.isUnshift||0!==m.length&&0!==v)&&(f||this._opts.isUnshift||0!==m.length)){if(-1===v&&(v=m.length),g>1){let t=r["a"].visibleColumnFromColumn(m,v+1,l);if(t%h!==0&&e.isCheapToTokenize(g-1)){let t=a["a"].getEnterAction(this._opts.autoIndent,e,new o["a"](g-1,e.getLineMaxColumn(g-1),g-1,e.getLineMaxColumn(g-1)));if(t){if(p=c,t.appendText)for(let e=0,n=t.appendText.length;e<n&&p<h;e++){if(32!==t.appendText.charCodeAt(e))break;p++}t.removeText&&(p=Math.max(0,p-t.removeText));for(let e=0;e<p;e++){if(0===v||32!==m.charCodeAt(v-1))break;v--}}}}this._opts.isUnshift&&0===v||(s=this._opts.isUnshift?u.unshiftIndent(m,v+1,l,h,d):u.shiftIndent(m,v+1,l,h,d),this._addEditOperation(t,new o["a"](g,1,g,v+1),s),g!==n||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=this._selection.startColumn<=v+1))}}}else{!this._opts.isUnshift&&this._selection.isEmpty()&&0===e.getLineLength(n)&&(this._useLastEditRangeForCursorEndPosition=!0);const r=d?c(" ",h):"\t";for(let a=n;a<=s;a++){const s=e.getLineContent(a);let l=i["v"](s);if((!this._opts.isUnshift||0!==s.length&&0!==l)&&((f||this._opts.isUnshift||0!==s.length)&&(-1===l&&(l=s.length),!this._opts.isUnshift||0!==l)))if(this._opts.isUnshift){l=Math.min(l,h);for(let e=0;e<l;e++){const t=s.charCodeAt(e);if(9===t){l=e+1;break}}this._addEditOperation(t,new o["a"](a,1,a,l+1),"")}else this._addEditOperation(t,new o["a"](a,1,a,1),r),a!==n||this._selection.isEmpty()||(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}}this._selectionId=t.trackSelection(this._selection)}computeCursorState(e,t){if(this._useLastEditRangeForCursorEndPosition){let e=t.getInverseEditOperations()[0];return new s["a"](e.range.endLineNumber,e.range.endColumn,e.range.endLineNumber,e.range.endColumn)}const n=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){let e=this._selection.startColumn,t=n.startColumn;return t<=e?n:0===n.getDirection()?new s["a"](n.startLineNumber,e,n.endLineNumber,n.endColumn):new s["a"](n.endLineNumber,n.endColumn,n.startLineNumber,e)}return n}}},cd01:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return n.e("chunk-2d0c4313").then(n.bind(null,"3a7f"))}})},cd70:function(e,t,n){"use strict";var i=n("6d8b"),r=function(){function e(e){this.otherDims={},null!=e&&i["extend"](this,e)}return e}();t["a"]=r},cdce:function(e,t,n){var i=n("da84"),r=n("1626"),o=i.WeakMap;e.exports=r(o)&&/native code/.test(String(o))},cdd6:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o}));const i={ctrlCmd:!1,alt:!1};var r,o;(function(e){e[e["Blur"]=1]="Blur",e[e["Gesture"]=2]="Gesture",e[e["Other"]=3]="Other"})(r||(r={})),function(e){e[e["NONE"]=0]="NONE",e[e["FIRST"]=1]="FIRST",e[e["SECOND"]=2]="SECOND",e[e["LAST"]=3]="LAST"}(o||(o={}))},cdf9:function(e,t,n){var i=n("825a"),r=n("861d"),o=n("f069");e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=o.f(e),s=n.resolve;return s(t),n.promise}},ce7a:function(e,t,n){var i=n("9c0e"),r=n("0983"),o=n("5a94")("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},ceb8:function(e,t,n){"use strict";function i(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return a}));class r{constructor(e,t,n,r=1){this._rgbaBrand=void 0,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=i(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class o{constructor(e,t,n,r){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.l=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=e.a,s=Math.max(t,n,i),a=Math.min(t,n,i);let l=0,c=0;const u=(a+s)/2,h=s-a;if(h>0){switch(c=Math.min(u<=.5?h/(2*u):h/(2-2*u),1),s){case t:l=(n-i)/h+(n<i?6:0);break;case n:l=(i-t)/h+2;break;case i:l=(t-n)/h+4;break}l*=60,l=Math.round(l)}return new o(l,c,u,r)}static _hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}static toRGBA(e){const t=e.h/360,{s:n,l:i,a:s}=e;let a,l,c;if(0===n)a=l=c=i;else{const e=i<.5?i*(1+n):i+n-i*n,r=2*i-e;a=o._hue2rgb(r,e,t+1/3),l=o._hue2rgb(r,e,t),c=o._hue2rgb(r,e,t-1/3)}return new r(Math.round(255*a),Math.round(255*l),Math.round(255*c),s)}}class s{constructor(e,t,n,r){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.v=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,r),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){const t=e.r/255,n=e.g/255,i=e.b/255,r=Math.max(t,n,i),o=Math.min(t,n,i),a=r-o,l=0===r?0:a/r;let c;return c=0===a?0:r===t?((n-i)/a%6+6)%6:r===n?(i-t)/a+2:(t-n)/a+4,new s(Math.round(60*c),l,r,e.a)}static toRGBA(e){const{h:t,s:n,v:i,a:o}=e,s=i*n,a=s*(1-Math.abs(t/60%2-1)),l=i-s;let[c,u,h]=[0,0,0];return t<60?(c=s,u=a):t<120?(c=a,u=s):t<180?(u=s,h=a):t<240?(u=a,h=s):t<300?(c=a,h=s):t<=360&&(c=s,h=a),c=Math.round(255*(c+l)),u=Math.round(255*(u+l)),h=Math.round(255*(h+l)),new r(c,u,h,o)}}class a{constructor(e){if(!e)throw new Error("Color needs a value");if(e instanceof r)this.rgba=e;else if(e instanceof o)this._hsla=e,this.rgba=o.toRGBA(e);else{if(!(e instanceof s))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=s.toRGBA(e)}}static fromHex(e){return a.Format.CSS.parseHex(e)||a.red}get hsla(){return this._hsla?this._hsla:o.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:s.fromRGBA(this.rgba)}equals(e){return!!e&&r.equals(this.rgba,e.rgba)&&o.equals(this.hsla,e.hsla)&&s.equals(this.hsva,e.hsva)}getRelativeLuminance(){const e=a._relativeLuminanceForComponent(this.rgba.r),t=a._relativeLuminanceForComponent(this.rgba.g),n=a._relativeLuminanceForComponent(this.rgba.b),r=.2126*e+.7152*t+.0722*n;return i(r,4)}static _relativeLuminanceForComponent(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){const e=(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3;return e>=128}isLighterThan(e){const t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t>n}isDarkerThan(e){const t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t<n}lighten(e){return new a(new o(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new a(new o(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){const{r:t,g:n,b:i,a:o}=this.rgba;return new a(new r(t,n,i,o*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new a(new r(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}toString(){return""+a.Format.CSS.format(this)}static getLighterColor(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;const i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(r-i)/r,e.lighten(n)}static getDarkerColor(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;const i=e.getRelativeLuminance(),r=t.getRelativeLuminance();return n=n*(i-r)/i,e.darken(n)}}a.white=new a(new r(255,255,255,1)),a.black=new a(new r(0,0,0,1)),a.red=new a(new r(255,0,0,1)),a.blue=new a(new r(0,0,255,1)),a.cyan=new a(new r(0,255,255,1)),a.lightgrey=new a(new r(211,211,211,1)),a.transparent=new a(new r(0,0,0,0)),function(e){let t;(function(t){let n;(function(t){function n(t){return 1===t.rgba.a?`rgb(${t.rgba.r}, ${t.rgba.g}, ${t.rgba.b})`:e.Format.CSS.formatRGBA(t)}function i(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`}function o(t){return 1===t.hsla.a?`hsl(${t.hsla.h}, ${(100*t.hsla.s).toFixed(2)}%, ${(100*t.hsla.l).toFixed(2)}%)`:e.Format.CSS.formatHSLA(t)}function s(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`}function a(e){const t=e.toString(16);return 2!==t.length?"0"+t:t}function l(e){return`#${a(e.rgba.r)}${a(e.rgba.g)}${a(e.rgba.b)}`}function c(t,n=!1){return n&&1===t.rgba.a?e.Format.CSS.formatHex(t):`#${a(t.rgba.r)}${a(t.rgba.g)}${a(t.rgba.b)}${a(Math.round(255*t.rgba.a))}`}function u(t){return t.isOpaque()?e.Format.CSS.formatHex(t):e.Format.CSS.formatRGBA(t)}function h(t){const n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){const n=16*d(t.charCodeAt(1))+d(t.charCodeAt(2)),i=16*d(t.charCodeAt(3))+d(t.charCodeAt(4)),o=16*d(t.charCodeAt(5))+d(t.charCodeAt(6));return new e(new r(n,i,o,1))}if(9===n){const n=16*d(t.charCodeAt(1))+d(t.charCodeAt(2)),i=16*d(t.charCodeAt(3))+d(t.charCodeAt(4)),o=16*d(t.charCodeAt(5))+d(t.charCodeAt(6)),s=16*d(t.charCodeAt(7))+d(t.charCodeAt(8));return new e(new r(n,i,o,s/255))}if(4===n){const n=d(t.charCodeAt(1)),i=d(t.charCodeAt(2)),o=d(t.charCodeAt(3));return new e(new r(16*n+n,16*i+i,16*o+o))}if(5===n){const n=d(t.charCodeAt(1)),i=d(t.charCodeAt(2)),o=d(t.charCodeAt(3)),s=d(t.charCodeAt(4));return new e(new r(16*n+n,16*i+i,16*o+o,(16*s+s)/255))}return null}function d(e){switch(e){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}t.formatRGB=n,t.formatRGBA=i,t.formatHSL=o,t.formatHSLA=s,t.formatHex=l,t.formatHexA=c,t.format=u,t.parseHex=h})(n=t.CSS||(t.CSS={}))})(t=e.Format||(e.Format={}))}(a||(a={}))},cee4:function(e,t,n){"use strict";var i=n("c532"),r=n("1d2b"),o=n("0a06"),s=n("4a7b"),a=n("2444");function l(e){var t=new o(e),n=r(o.prototype.request,t);return i.extend(n,o.prototype,t),i.extend(n,t),n.create=function(t){return l(s(e,t))},n}var c=l(a);c.Axios=o,c.Cancel=n("7a77"),c.CancelToken=n("8df4"),c.isCancel=n("2e67"),c.VERSION=n("5cce").version,c.all=function(e){return Promise.all(e)},c.spread=n("0df6"),c.isAxiosError=n("5f02"),e.exports=c,e.exports.default=c},cf78:function(e,t,n){"use strict";n.r(t),n.d(t,"ModuleKind",(function(){return i})),n.d(t,"JsxEmit",(function(){return r})),n.d(t,"NewLineKind",(function(){return o})),n.d(t,"ScriptTarget",(function(){return s})),n.d(t,"ModuleResolutionKind",(function(){return a})),n.d(t,"typescriptVersion",(function(){return h})),n.d(t,"typescriptDefaults",(function(){return d})),n.d(t,"javascriptDefaults",(function(){return f})),n.d(t,"getTypeScriptWorker",(function(){return p})),n.d(t,"getJavaScriptWorker",(function(){return g}));n("33f9");var i,r,o,s,a,l="4.3.2",c=n("bf44");(function(e){e[e["None"]=0]="None",e[e["CommonJS"]=1]="CommonJS",e[e["AMD"]=2]="AMD",e[e["UMD"]=3]="UMD",e[e["System"]=4]="System",e[e["ES2015"]=5]="ES2015",e[e["ESNext"]=99]="ESNext"})(i||(i={})),function(e){e[e["None"]=0]="None",e[e["Preserve"]=1]="Preserve",e[e["React"]=2]="React",e[e["ReactNative"]=3]="ReactNative",e[e["ReactJSX"]=4]="ReactJSX",e[e["ReactJSXDev"]=5]="ReactJSXDev"}(r||(r={})),function(e){e[e["CarriageReturnLineFeed"]=0]="CarriageReturnLineFeed",e[e["LineFeed"]=1]="LineFeed"}(o||(o={})),function(e){e[e["ES3"]=0]="ES3",e[e["ES5"]=1]="ES5",e[e["ES2015"]=2]="ES2015",e[e["ES2016"]=3]="ES2016",e[e["ES2017"]=4]="ES2017",e[e["ES2018"]=5]="ES2018",e[e["ES2019"]=6]="ES2019",e[e["ES2020"]=7]="ES2020",e[e["ESNext"]=99]="ESNext",e[e["JSON"]=100]="JSON",e[e["Latest"]=99]="Latest"}(s||(s={})),function(e){e[e["Classic"]=1]="Classic",e[e["NodeJs"]=2]="NodeJs"}(a||(a={}));var u=function(){function e(e,t,n){this._onDidChange=new c["Emitter"],this._onDidExtraLibsChange=new c["Emitter"],this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(t),this.setWorkerOptions(n),this._onDidExtraLibsChangeTimeout=-1}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"onDidExtraLibsChange",{get:function(){return this._onDidExtraLibsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"workerOptions",{get:function(){return this._workerOptions},enumerable:!1,configurable:!0}),e.prototype.getExtraLibs=function(){return this._extraLibs},e.prototype.addExtraLib=function(e,t){var n,i=this;if(n="undefined"===typeof t?"ts:extralib-"+Math.random().toString(36).substring(2,15):t,this._extraLibs[n]&&this._extraLibs[n].content===e)return{dispose:function(){}};var r=1;return this._removedExtraLibs[n]&&(r=this._removedExtraLibs[n]+1),this._extraLibs[n]&&(r=this._extraLibs[n].version+1),this._extraLibs[n]={content:e,version:r},this._fireOnDidExtraLibsChangeSoon(),{dispose:function(){var e=i._extraLibs[n];e&&e.version===r&&(delete i._extraLibs[n],i._removedExtraLibs[n]=r,i._fireOnDidExtraLibsChangeSoon())}}},e.prototype.setExtraLibs=function(e){for(var t in this._extraLibs)this._removedExtraLibs[t]=this._extraLibs[t].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(var n=0,i=e;n<i.length;n++){var r=i[n],o=(t=r.filePath||"ts:extralib-"+Math.random().toString(36).substring(2,15),r.content),s=1;this._removedExtraLibs[t]&&(s=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:o,version:s}}this._fireOnDidExtraLibsChangeSoon()},e.prototype._fireOnDidExtraLibsChangeSoon=function(){var e=this;-1===this._onDidExtraLibsChangeTimeout&&(this._onDidExtraLibsChangeTimeout=setTimeout((function(){e._onDidExtraLibsChangeTimeout=-1,e._onDidExtraLibsChange.fire(void 0)}),0))},e.prototype.getCompilerOptions=function(){return this._compilerOptions},e.prototype.setCompilerOptions=function(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)},e.prototype.getDiagnosticsOptions=function(){return this._diagnosticsOptions},e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)},e.prototype.setWorkerOptions=function(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)},e.prototype.setMaximumWorkerIdleTime=function(e){},e.prototype.setEagerModelSync=function(e){this._eagerModelSync=e},e.prototype.getEagerModelSync=function(){return this._eagerModelSync},e}(),h=l,d=new u({allowNonTsExtensions:!0,target:s.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{}),f=new u({allowNonTsExtensions:!0,allowJs:!0,target:s.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{}),p=function(){return m().then((function(e){return e.getTypeScriptWorker()}))},g=function(){return m().then((function(e){return e.getJavaScriptWorker()}))};function m(){return n.e("chunk-2d22502a").then(n.bind(null,"e328"))}c["languages"].typescript={ModuleKind:i,JsxEmit:r,NewLineKind:o,ScriptTarget:s,ModuleResolutionKind:a,typescriptVersion:h,typescriptDefaults:d,javascriptDefaults:f,getTypeScriptWorker:p,getJavaScriptWorker:g},c["languages"].onLanguage("typescript",(function(){return m().then((function(e){return e.setupTypeScript(d)}))})),c["languages"].onLanguage("javascript",(function(){return m().then((function(e){return e.setupJavaScript(f)}))}))},d009:function(e,t,n){"use strict";var i=n("00ce"),r=n("7992"),o=n("64b0")(),s=n("2aa9"),a=n("0d25"),l=i("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new a("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new a("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,c=!0;if("length"in e&&s){var u=s(e,"length");u&&!u.configurable&&(i=!1),u&&!u.writable&&(c=!1)}return(i||c||!n)&&(o?r(e,"length",t,!0,!0):r(e,"length",t)),e}},d012:function(e,t){e.exports={}},d02c:function(e,t){var n=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function i(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function r(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(0|n)+(0|i)/1e3}var n=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function o(){this.values=n(null)}function s(e,t,n,i){var r=i?e.split(i):[e];for(var o in r)if("string"===typeof r[o]){var s=r[o].split(n);if(2===s.length){var a=s[0],l=s[1];t(a,l)}}}function a(e,t,n){var a=e;function l(){var t=r(e);if(null===t)throw new i(i.Errors.BadTimeStamp,"Malformed timestamp: "+a);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function c(e,t){var i=new o;s(e,(function(e,t){switch(e){case"region":for(var r=n.length-1;r>=0;r--)if(n[r].id===t){i.set(e,n[r].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":var o=t.split(","),s=o[0];i.integer(e,s),i.percent(e,s)&&i.set("snapToLines",!1),i.alt(e,s,["auto"]),2===o.length&&i.alt("lineAlign",o[1],["start","middle","end"]);break;case"position":o=t.split(","),i.percent(e,o[0]),2===o.length&&i.alt("positionAlign",o[1],["start","middle","end"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start","middle","end","left","right"]);break}}),/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical",""),t.line=i.get("line","auto"),t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100),t.align=i.get("align","middle"),t.position=i.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align),t.positionAlign=i.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}function u(){e=e.replace(/^\s+/,"")}if(u(),t.startTime=l(),u(),"--\x3e"!==e.substr(0,3))throw new i(i.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+a);e=e.substr(3),u(),t.endTime=l(),u(),c(e,t)}i.prototype=n(Error.prototype),i.prototype.constructor=i,i.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var i=0;i<n.length;++i)if(t===n[i]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t),t>=0&&t<=100))&&(this.set(e,t),!0)}};var l={"&":"&","<":"<",">":">","‎":"","‏":""," ":" "},c={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},u={v:"title",lang:"lang"},h={rt:"ruby"};function d(e,t){function n(){if(!t)return null;function e(e){return t=t.substr(e.length),e}var n=t.match(/^([^<]*)(<[^>]*>?)?/);return e(n[1]?n[1]:n[2])}function i(e){return l[e]}function o(e){while(b=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/))e=e.replace(b[0],i);return e}function s(e,t){return!h[t.localName]||h[t.localName]===e.localName}function a(t,n){var i=c[t];if(!i)return null;var r=e.document.createElement(i);r.localName=i;var o=u[t];return o&&n&&(r[o]=n.trim()),r}var d,f=e.document.createElement("div"),p=f,g=[];while(null!==(d=n()))if("<"!==d[0])p.appendChild(e.document.createTextNode(o(d)));else{if("/"===d[1]){g.length&&g[g.length-1]===d.substr(2).replace(">","")&&(g.pop(),p=p.parentNode);continue}var m,v=r(d.substr(1,d.length-2));if(v){m=e.document.createProcessingInstruction("timestamp",v),p.appendChild(m);continue}var b=d.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!b)continue;if(m=a(b[1],b[3]),!m)continue;if(!s(p,m))continue;b[2]&&(m.className=b[2].substr(1).replace("."," ")),g.push(b[1]),p.appendChild(m),p=m}return f}var f=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function p(e){for(var t=0;t<f.length;t++){var n=f[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function g(e){var t,n=[],i="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function o(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var i=n.match(/^.*(\n|\r)/);return i?(e.length=0,i[0]):n}return"ruby"===t.tagName?o(e):t.childNodes?(r(e,t),o(e)):void 0}r(n,e);while(i=o(n))for(var s=0;s<i.length;s++)if(t=i.charCodeAt(s),p(t))return"rtl";return"ltr"}function m(e){if("number"===typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,i=0,r=0;r<n.length&&n[r]!==t;r++)"showing"===n[r].mode&&i++;return-1*++i}function v(){}function b(e,t,n){var i=/MSIE\s8\.0/.test(navigator.userAgent),r="rgba(255, 255, 255, 1)",o="rgba(0, 0, 0, 0.8)";i&&(r="rgb(255, 255, 255)",o="rgb(0, 0, 0)"),v.call(this),this.cue=t,this.cueDiv=d(e,t.text);var s={color:r,backgroundColor:o,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};i||(s.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",s.unicodeBidi="plaintext"),this.applyStyles(s,this.cueDiv),this.div=e.document.createElement("div"),s={textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},i||(s.direction=g(this.cueDiv),s.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(s),this.div.appendChild(this.cueDiv);var a=0;switch(t.positionAlign){case"start":a=t.position;break;case"middle":a=t.position-t.size/2;break;case"end":a=t.position-t.size;break}""===t.vertical?this.applyStyles({left:this.formatStyle(a,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(a,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function y(e){var t,n,i,r,o=/MSIE\s8\.0/.test(navigator.userAgent);if(e.div){n=e.div.offsetHeight,i=e.div.offsetWidth,r=e.div.offsetTop;var s=(s=e.div.childNodes)&&(s=s[0])&&s.getClientRects&&s.getClientRects();e=e.div.getBoundingClientRect(),t=s?Math.max(s[0]&&s[0].height||0,e.height/s.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||n,this.bottom=e.bottom||r+(e.height||n),this.width=e.width||i,this.lineHeight=void 0!==t?t:e.lineHeight,o&&!this.lineHeight&&(this.lineHeight=13)}function _(e,t,n,i){function r(e,t){for(var r,o=new y(e),s=1,a=0;a<t.length;a++){while(e.overlapsOppositeAxis(n,t[a])||e.within(n)&&e.overlapsAny(i))e.move(t[a]);if(e.within(n))return e;var l=e.intersectPercentage(n);s>l&&(r=new y(e),s=l),e=new y(o)}return r||o}var o=new y(t),s=t.cue,a=m(s),l=[];if(s.snapToLines){var c;switch(s.vertical){case"":l=["+y","-y"],c="height";break;case"rl":l=["+x","-x"],c="width";break;case"lr":l=["-x","+x"],c="width";break}var u=o.lineHeight,h=u*Math.round(a),d=n[c]+u,f=l[0];Math.abs(h)>d&&(h=h<0?-1:1,h*=Math.ceil(d/u)*u),a<0&&(h+=""===s.vertical?n.height:n.width,l=l.reverse()),o.move(f,h)}else{var p=o.lineHeight/n.height*100;switch(s.lineAlign){case"middle":a-=p/2;break;case"end":a-=p;break}switch(s.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")});break}l=["+y","-x","+x","-y"],o=new y(t)}var g=r(o,l);t.move(g.toCSSCompatValues(n))}function w(){}v.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},v.prototype.formatStyle=function(e,t){return 0===e?0:e+t},b.prototype=n(v.prototype),b.prototype.constructor=b,y.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t;break}},y.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},y.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},y.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},y.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},y.prototype.intersectPercentage=function(e){var t=Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left)),n=Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top)),i=t*n;return i/(this.height*this.width)},y.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},y.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,i=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e;var r={left:e.left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||n};return r},w.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!==typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},w.convertCueToDOMTree=function(e,t){return e&&t?d(e,t):null};var C=.05,S="sans-serif",x="1.5%";w.processCues=function(e,t,n){if(!e||!t||!n)return null;while(n.firstChild)n.removeChild(n.firstChild);var i=e.document.createElement("div");function r(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin=x,n.appendChild(i),r(t)){var o=[],s=y.getSimpleBoxPosition(i),a=Math.round(s.height*C*100)/100,l={font:a+"px "+S};(function(){for(var n,r,a=0;a<t.length;a++)r=t[a],n=new b(e,r,l),i.appendChild(n.div),_(e,n,s,o),r.displayState=n.div,o.push(y.getSimpleBoxPosition(n))})()}else for(var c=0;c<t.length;c++)i.appendChild(t[c].displayState)},w.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},w.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof i))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){var e=t.buffer,n=0;while(n<e.length&&"\r"!==e[n]&&"\n"!==e[n])++n;var i=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),i}function l(e){var n=new o;if(s(e,(function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var i=t.split(",");if(2!==i.length)break;var r=new o;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;n.set(e+"X",r.get("x")),n.set(e+"Y",r.get("y"));break;case"scroll":n.alt(e,t,["up"]);break}}),/=/,/\s/),n.has("id")){var i=new(t.vttjs.VTTRegion||t.window.VTTRegion);i.width=n.get("width",100),i.lines=n.get("lines",3),i.regionAnchorX=n.get("regionanchorX",0),i.regionAnchorY=n.get("regionanchorY",100),i.viewportAnchorX=n.get("viewportanchorX",0),i.viewportAnchorY=n.get("viewportanchorY",100),i.scroll=n.get("scroll",""),t.onregion&&t.onregion(i),t.regionList.push({id:n.get("id"),region:i})}}function c(e){var n=new o;s(e,(function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",r(t));break}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}function u(e){e.match(/X-TIMESTAMP-MAP/)?s(e,(function(e,t){switch(e){case"X-TIMESTAMP-MAP":c(t);break}}),/=/):s(e,(function(e,t){switch(e){case"Region":l(t);break}}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var h;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;h=n();var d=h.match(/^WEBVTT([ \t].*)?$/);if(!d||!d[0])throw new i(i.Errors.BadSignature);t.state="HEADER"}var f=!1;while(t.buffer){if(!/\r\n|\n/.test(t.buffer))return this;switch(f?f=!1:h=n(),t.state){case"HEADER":/:/.test(h)?u(h):h||(t.state="ID");continue;case"NOTE":h||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(h)){t.state="NOTE";break}if(!h)continue;if(t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,""),t.state="CUE",-1===h.indexOf("--\x3e")){t.cue.id=h;continue}case"CUE":try{a(h,t.cue,t.regionList)}catch(g){t.reportOrThrowError(g),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var p=-1!==h.indexOf("--\x3e");if(!h||p&&(f=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=h;continue;case"BADCUE":h||(t.state="ID");continue}}}catch(g){t.reportOrThrowError(g),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new i(i.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},e.exports=w},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var i=n("da84"),r=n("1626"),o=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(i[e]):i[e]&&i[e][t]}},d093:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l}));const i="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function r(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of i)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}const o=r();function s(e){let t=o;if(e&&e instanceof RegExp)if(e.global)t=e;else{let 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}const a={maxLen:1e3,windowSize:15,timeBudget:150};function l(e,t,n,i,r=a){if(n.length>r.maxLen){let o=e-r.maxLen/2;return o<0?o=0:i+=o,n=n.substring(o,e+r.maxLen/2),l(e,t,n,i,r)}const o=Date.now(),s=e-1-i;let u=-1,h=null;for(let a=1;;a++){if(Date.now()-o>=r.timeBudget)break;const e=s-r.windowSize*a;t.lastIndex=Math.max(0,e);const i=c(t,n,s,u);if(!i&&h)break;if(h=i,e<=0)break;u=e}if(h){let e={word:h[0],startColumn:i+1+h.index,endColumn:i+1+h.index+h[0].length};return t.lastIndex=0,e}return null}function c(e,t,n,i){let r;while(r=e.exec(t)){const t=r.index||0;if(t<=n&&e.lastIndex>=n)return r;if(i>0&&t>i)return null}return null}},d0b5:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=i(n("448a")),o=i(n("970b")),s=n("a870"),a=n("5557"),l=function e(t){(0,o["default"])(this,e),this.colorProcessor(t);var n={fill:[0,0,0,1],stroke:[0,0,0,0],opacity:1,lineCap:null,lineJoin:null,lineDash:null,lineDashOffset:null,shadowBlur:0,shadowColor:[0,0,0,0],shadowOffsetX:0,shadowOffsetY:0,lineWidth:0,graphCenter:null,scale:null,rotate:null,translate:null,hoverCursor:"pointer",fontStyle:"normal",fontVarient:"normal",fontWeight:"normal",fontSize:10,fontFamily:"Arial",textAlign:"center",textBaseline:"middle",gradientColor:null,gradientType:"linear",gradientParams:null,gradientWith:"stroke",gradientStops:"auto",colors:null};Object.assign(this,n,t)};function c(e,t){e.save();var n=t.graphCenter,i=t.rotate,o=t.scale,s=t.translate;n instanceof Array&&(e.translate.apply(e,(0,r["default"])(n)),i&&e.rotate(i*Math.PI/180),o instanceof Array&&e.scale.apply(e,(0,r["default"])(o)),s&&e.translate.apply(e,(0,r["default"])(s)),e.translate(-n[0],-n[1]))}t["default"]=l,l.prototype.colorProcessor=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?s.getColorFromRgbValue:s.getRgbaValue,i=["fill","stroke","shadowColor"],r=Object.keys(e),o=r.filter((function(e){return i.find((function(t){return t===e}))}));o.forEach((function(t){return e[t]=n(e[t])}));var a=e.gradientColor,l=e.colors;if(a&&(e.gradientColor=a.map((function(e){return n(e)}))),l){var c=Object.keys(l);c.forEach((function(e){return l[e]=n(l[e])}))}},l.prototype.initStyle=function(e){c(e,this),h(e,this),d(e,this)};var u=["lineCap","lineJoin","lineDashOffset","shadowOffsetX","shadowOffsetY","lineWidth","textAlign","textBaseline"];function h(e,t){var n=t.fill,i=t.stroke,o=t.shadowColor,a=t.opacity;u.forEach((function(n){(n||"number"===typeof n)&&(e[n]=t[n])})),n=(0,r["default"])(n),i=(0,r["default"])(i),o=(0,r["default"])(o),n[3]*=a,i[3]*=a,o[3]*=a,e.fillStyle=(0,s.getColorFromRgbValue)(n),e.strokeStyle=(0,s.getColorFromRgbValue)(i),e.shadowColor=(0,s.getColorFromRgbValue)(o);var l=t.lineDash,c=t.shadowBlur;l&&(l=l.map((function(e){return e>=0?e:0})),e.setLineDash(l)),"number"===typeof c&&(e.shadowBlur=c>0?c:.001);var h=t.fontStyle,d=t.fontVarient,f=t.fontWeight,p=t.fontSize,g=t.fontFamily;e.font=h+" "+d+" "+f+" "+p+"px "+g}function d(e,t){if(f(t)){var n=t.gradientColor,i=t.gradientParams,o=t.gradientType,a=t.gradientWith,l=t.gradientStops,c=t.opacity;n=n.map((function(e){var t=e[3]*c,n=(0,r["default"])(e);return n[3]=t,n})),n=n.map((function(e){return(0,s.getColorFromRgbValue)(e)})),"auto"===l&&(l=p(n));var u=e["create".concat(o.slice(0,1).toUpperCase()+o.slice(1),"Gradient")].apply(e,(0,r["default"])(i));l.forEach((function(e,t){return u.addColorStop(e,n[t])})),e["".concat(a,"Style")]=u}}function f(e){var t=e.gradientColor,n=e.gradientParams,i=e.gradientType,r=e.gradientWith,o=e.gradientStops;if(!t||!n)return!1;if(1===t.length)return console.warn("The gradient needs to provide at least two colors"),!1;if("linear"!==i&&"radial"!==i)return console.warn("GradientType only supports linear or radial, current value is "+i),!1;var s=n.length;return"linear"===i&&4!==s||"radial"===i&&6!==s?(console.warn("The expected length of gradientParams is "+("linear"===i?"4":"6")),!1):"fill"!==r&&"stroke"!==r?(console.warn("GradientWith only supports fill or stroke, current value is "+r),!1):"auto"===o||o instanceof Array||(console.warn("gradientStops only supports 'auto' or Number Array ([0, .5, 1]), current value is "+o),!1)}function p(e){var t=1/(e.length-1);return e.map((function(e,n){return t*n}))}l.prototype.restoreTransform=function(e){e.restore()},l.prototype.update=function(e){this.colorProcessor(e),Object.assign(this,e)},l.prototype.getStyle=function(){var e=(0,a.deepClone)(this,!0);return this.colorProcessor(e,!0),e}},d0b6:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("1569"),r=n("308f"),o=n("a666"),s=n("aa3d"),a=n("6a89");const l={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0};class c extends o["a"]{constructor(e,t={}){super(),this._onDidUpdate=this._register(new r["b"]),this._editor=e,this._options=s["f"](t,l,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=Boolean(this._options.alwaysRevealFirst),this._register(this._editor.onDidDispose(()=>this.dispose())),this._register(this._editor.onDidUpdateDiff(()=>this._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(e=>{this.ignoreSelectionChange||(this.nextIdx=-1)})),this._options.alwaysRevealFirst&&this._register(this._editor.getModifiedEditor().onDidChangeModel(e=>{this.revealFirst=!0})),this._init()}_init(){this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(e){this.ranges=[],e&&e.forEach(e=>{!this._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach(e=>{this.ranges.push({rhs:!0,range:new a["a"](e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})}):this.ranges.push({rhs:!0,range:new a["a"](e.modifiedStartLineNumber,1,e.modifiedStartLineNumber,1)})}),this.ranges.sort((e,t)=>e.range.getStartPosition().isBeforeOrEqual(t.range.getStartPosition())?-1:t.range.getStartPosition().isBeforeOrEqual(e.range.getStartPosition())?1:0),this._onDidUpdate.fire(this)}_initIdx(e){let t=!1,n=this._editor.getPosition();if(n){for(let i=0,r=this.ranges.length;i<r&&!t;i++){let r=this.ranges[i].range;n.isBeforeOrEqual(r.getStartPosition())&&(this.nextIdx=i+(e?0:-1),t=!0)}t||(this.nextIdx=e?0:this.ranges.length-1),this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)}else this.nextIdx=0}_move(e,t){if(i["a"](!this.disposed,"Illegal State - diff navigator has been disposed"),!this.canNavigate())return;-1===this.nextIdx?this._initIdx(e):e?(this.nextIdx+=1,this.nextIdx>=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));let n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{let e=n.range.getStartPosition();this._editor.setPosition(e),this._editor.revealPositionInCenter(e,t)}finally{this.ignoreSelectionChange=!1}}canNavigate(){return this.ranges&&this.ranges.length>0}next(e=0){this._move(!0,e)}previous(e=0){this._move(!1,e)}dispose(){super.dispose(),this.ranges=[],this.disposed=!0}}},d0ce:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i,r=n("6d8b"),o=n("b7d9"),s=n("ec6f"),a="undefined",l=typeof Uint32Array===a?Array:Uint32Array,c=typeof Uint16Array===a?Array:Uint16Array,u=typeof Int32Array===a?Array:Int32Array,h=typeof Float64Array===a?Array:Float64Array,d={float:h,int:u,ordinal:Array,number:Array,time:h};function f(e){return e>65535?l:c}function p(){return[1/0,-1/0]}function g(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function m(e,t,n,i,r){var o=d[n||"float"];if(r){var s=e[t],a=s&&s.length;if(a!==i){for(var l=new o(i),c=0;c<a;c++)l[c]=s[c];e[t]=l}}else e[t]=new o(i)}var v=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(r["createHashMap"])()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var o=e.getSource(),a=this.defaultDimValueGetter=i[o.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];Object(s["f"])(o);this._dimensions=Object(r["map"])(t,(function(e){return{type:e.type,property:e.property}})),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(e);if(null!=r){if(i[r].type===t)return r}else r=i.length;return i[r]={type:t},n.set(e,r),this._chunks[r]=new d[t||"float"](this._rawCount),this._rawExtent[r]=p(),r},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],i=this._dimensions[e],r=this._rawExtent,o=i.ordinalOffset||0,s=n.length;0===o&&(r[e]=p());for(var a=r[e],l=o;l<s;l++){var c=n[l]=t.parseAndCollect(n[l]);isNaN(c)||(a[0]=Math.min(c,a[0]),a[1]=Math.max(c,a[1]))}i.ordinalMeta=t,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var i=t.count();return t.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,o=r.length,s=this._rawExtent,a=this.count(),l=a+Math.max(e.length,t||0),c=0;c<o;c++){var u=r[c];m(n,c,u.type,l,!0)}for(var h=[],d=a;d<l;d++)for(var f=d-a,p=0;p<o;p++){u=r[p];var g=i.arrayRows.call(this,e[f]||h,u.property,f,p);n[p][d]=g;var v=s[p];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}return this._rawCount=this._count=l,{start:a,end:l}},e.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,o=this._chunks,s=this._dimensions,a=s.length,l=this._rawExtent,c=Object(r["map"])(s,(function(e){return e.property})),u=0;u<a;u++){var h=s[u];l[u]||(l[u]=p()),m(o,u,h.type,t,n)}if(i.fillStorage)i.fillStorage(e,t,o,l);else for(var d=[],f=e;f<t;f++){d=i.getItem(f,d);for(var g=0;g<a;g++){var v=o[g],b=this._dimValueGetter(d,c[g],f,g);v[f]=b;var y=l[g];b<y[0]&&(y[0]=b),b>y[1]&&(y[1]=b)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],i=[];if(null==t){t=e,e=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=e;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var i=0,r=this.count();i<r;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],(function(e){isNaN(e)||t.push(e)}));var n=t.sort((function(e,t){return e-t})),i=this.count();return 0===i?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;var i=0,r=this._count-1;while(i<=r){var o=(i+r)/2|0;if(t[o]<e)i=o+1;else{if(!(t[o]>e))return o;r=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks,r=i[e],o=[];if(!r)return o;null==n&&(n=1/0);for(var s=1/0,a=-1,l=0,c=0,u=this.count();c<u;c++){var h=this.getRawIndex(c),d=t-r[h],f=Math.abs(d);f<=n&&((f<s||f===s&&d>=0&&a<0)&&(s=f,a=d,l=0),d===a&&(o[l++]=c))}return o.length=l,o},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var r=0;r<i;r++)e[r]=t[r]}else e=new n(t.buffer,0,i)}else{n=f(this._rawCount);e=new n(this.count());for(r=0;r<e.length;r++)e[r]=r}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=f(n._rawCount),o=new r(i),s=[],a=e.length,l=0,c=e[0],u=n._chunks,h=0;h<i;h++){var d=void 0,p=n.getRawIndex(h);if(0===a)d=t(h);else if(1===a){var g=u[c][p];d=t(g,h)}else{for(var m=0;m<a;m++)s[m]=u[e[m]][p];s[m]=h,d=t.apply(null,s)}d&&(o[l++]=p)}return l<i&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var i=Object(r["keys"])(e),o=i.length;if(!o)return this;var s=t.count(),a=f(t._rawCount),l=new a(s),c=0,u=i[0],h=e[u][0],d=e[u][1],p=t._chunks,g=!1;if(!t._indices){var m=0;if(1===o){for(var v=p[i[0]],b=0;b<n;b++){var y=v[b];(y>=h&&y<=d||isNaN(y))&&(l[c++]=m),m++}g=!0}else if(2===o){v=p[i[0]];var _=p[i[1]],w=e[i[1]][0],C=e[i[1]][1];for(b=0;b<n;b++){y=v[b];var S=_[b];(y>=h&&y<=d||isNaN(y))&&(S>=w&&S<=C||isNaN(S))&&(l[c++]=m),m++}g=!0}}if(!g)if(1===o)for(b=0;b<s;b++){var x=t.getRawIndex(b);y=p[i[0]][x];(y>=h&&y<=d||isNaN(y))&&(l[c++]=x)}else for(b=0;b<s;b++){for(var O=!0,k=(x=t.getRawIndex(b),0);k<o;k++){var L=i[k];y=p[L][x];(y<e[L][0]||y>e[L][1])&&(O=!1)}O&&(l[c++]=t.getRawIndex(b))}return c<s&&(t._indices=l),t._count=c,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var i=e._chunks,r=[],o=t.length,s=e.count(),a=[],l=e._rawExtent,c=0;c<t.length;c++)l[t[c]]=p();for(var u=0;u<s;u++){for(var h=e.getRawIndex(u),d=0;d<o;d++)a[d]=i[t[d]][h];a[o]=u;var f=n&&n.apply(null,a);if(null!=f){"object"!==typeof f&&(r[0]=f,f=r);for(c=0;c<f.length;c++){var g=t[c],m=f[c],v=l[g],b=i[g];b&&(b[h]=m),m<v[0]&&(v[0]=m),m>v[1]&&(v[1]=m)}}}},e.prototype.lttbDownSample=function(e,t){var n,i,r,o=this.clone([e],!0),s=o._chunks,a=s[e],l=this.count(),c=0,u=Math.floor(1/t),h=this.getRawIndex(0),d=new(f(this._rawCount))(Math.min(2*(Math.ceil(l/u)+2),l));d[c++]=h;for(var p=1;p<l-1;p+=u){for(var g=Math.min(p+u,l-1),m=Math.min(p+2*u,l),v=(m+g)/2,b=0,y=g;y<m;y++){var _=this.getRawIndex(y),w=a[_];isNaN(w)||(b+=w)}b/=m-g;var C=p,S=Math.min(p+u,l),x=p-1,O=a[h];n=-1,r=C;var k=-1,L=0;for(y=C;y<S;y++){_=this.getRawIndex(y),w=a[_];isNaN(w)?(L++,k<0&&(k=_)):(i=Math.abs((x-v)*(w-O)-(x-y)*(b-O)),i>n&&(n=i,r=_))}L>0&&L<S-C&&(d[c++]=Math.min(k,r),r=Math.max(k,r)),d[c++]=r,h=r}return d[c++]=this.getRawIndex(l-1),o._count=c,o._indices=d,o.getRawIndex=this._getRawIdx,o},e.prototype.downSample=function(e,t,n,i){for(var r=this.clone([e],!0),o=r._chunks,s=[],a=Math.floor(1/t),l=o[e],c=this.count(),u=r._rawExtent[e]=p(),h=new(f(this._rawCount))(Math.ceil(c/a)),d=0,g=0;g<c;g+=a){a>c-g&&(a=c-g,s.length=a);for(var m=0;m<a;m++){var v=this.getRawIndex(g+m);s[m]=l[v]}var b=n(s),y=this.getRawIndex(Math.min(g+i(s,b)||0,c-1));l[y]=b,b<u[0]&&(u[0]=b),b>u[1]&&(u[1]=b),h[d++]=y}return r._count=d,r._indices=h,r._updateGetRawIdx(),r},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,r=0,o=this.count();r<o;r++){var s=this.getRawIndex(r);switch(n){case 0:t(r);break;case 1:t(i[e[0]][s],r);break;case 2:t(i[e[0]][s],i[e[1]][s],r);break;default:for(var a=0,l=[];a<n;a++)l[a]=i[e[a]][s];l[a]=r,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=p();if(!t)return n;var i,r=this.count(),o=!this._indices;if(o)return this._rawExtent[e].slice();if(i=this._extent[e],i)return i.slice();i=n;for(var s=i[0],a=i[1],l=0;l<r;l++){var c=this.getRawIndex(l),u=t[c];u<s&&(s=u),u>a&&(a=u)}return i=[s,a],this._extent[e]=i,i},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][t]);return n},e.prototype.clone=function(t,n){var i=new e,o=this._chunks,s=t&&Object(r["reduce"])(t,(function(e,t){return e[t]=!0,e}),{});if(s)for(var a=0;a<o.length;a++)i._chunks[a]=s[a]?g(o[a]):o[a];else i._chunks=o;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Object(r["clone"])(this._extent),e._rawExtent=Object(r["clone"])(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var i=0;i<n;i++)t[i]=this._indices[i]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,i){return Object(o["d"])(e[i],this._dimensions[i])}i={arrayRows:e,objectRows:function(e,t,n,i){return Object(o["d"])(e[t],this._dimensions[i])},keyedColumns:e,original:function(e,t,n,i){var r=e&&(null==e.value?e:e.value);return Object(o["d"])(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(e,t,n,i){return e[i]}}}(),e}();t["b"]=v},d16a:function(e,t,n){var i=n("fc5e"),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},d1a7:function(e,t,n){"use strict";n.d(t,"a",(function(){return M})),n.d(t,"b",(function(){return T})),n.d(t,"c",(function(){return A}));var i=n("308f"),r=n("a666"),o=n("30db"),s=n("fdcc"),a=n("fd49"),l=n("b57f"),c=n("b707"),u=n("32a4"),h=n("7b4a"),d=n("fbba"),f=n("5fe7"),p=n("2504"),g=n("b7d0"),m=n("d3d7"),v=n("3803"),b=n("eda7"),y=n("a054"),_=n("b589"),w=n("252f"),C=n("74ce"),S=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},x=function(e,t){return function(n,i){t(n,i,e)}};function O(e){return e.toString()}function k(e){const t=new b["a"],n=e.createSnapshot();let i;while(i=n.read())t.update(i);return t.digest()}class L{constructor(e,t,n){this._modelEventListeners=new r["b"],this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose(()=>t(e))),this._modelEventListeners.add(e.onDidChangeLanguage(t=>n(e,t)))}_disposeLanguageSelection(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null)}dispose(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()}setLanguage(e){this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange(()=>this.model.setMode(e.languageIdentifier)),this.model.setMode(e.languageIdentifier)}}const E=o["d"]||o["f"]?1:2;class D{constructor(e,t,n,i,r,o,s,a){this.uri=e,this.initialUndoRedoSnapshot=t,this.time=n,this.sharesUndoRedoStack=i,this.heapSize=r,this.sha1=o,this.versionId=s,this.alternativeVersionId=a}}function I(e){return e.scheme===_["c"].file||e.scheme===_["c"].vscodeRemote||e.scheme===_["c"].userData||"fake-fs"===e.scheme}let M=class e extends r["a"]{constructor(e,t,n,r,o){super(),this._configurationService=e,this._resourcePropertiesService=t,this._themeService=n,this._logService=r,this._undoRedoService=o,this._onModelAdded=this._register(new i["b"]),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new i["b"]),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new i["b"]),this.onModelModeChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._semanticStyling=this._register(new P(this._themeService,this._logService)),this._register(this._configurationService.onDidChangeConfiguration(()=>this._updateModelOptions())),this._updateModelOptions(),this._register(new N(this,this._themeService,this._configurationService,this._semanticStyling))}static _readModelOptions(e,t){let n=a["d"].tabSize;if(e.editor&&"undefined"!==typeof e.editor.tabSize){const t=parseInt(e.editor.tabSize,10);isNaN(t)||(n=t),n<1&&(n=1)}let i=n;if(e.editor&&"undefined"!==typeof e.editor.indentSize&&"tabSize"!==e.editor.indentSize){const t=parseInt(e.editor.indentSize,10);isNaN(t)||(i=t),i<1&&(i=1)}let r=a["d"].insertSpaces;e.editor&&"undefined"!==typeof e.editor.insertSpaces&&(r="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));let o=E;const s=e.eol;"\r\n"===s?o=2:"\n"===s&&(o=1);let l=a["d"].trimAutoWhitespace;e.editor&&"undefined"!==typeof e.editor.trimAutoWhitespace&&(l="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));let c=a["d"].detectIndentation;e.editor&&"undefined"!==typeof e.editor.detectIndentation&&(c="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));let u=a["d"].largeFileOptimizations;return e.editor&&"undefined"!==typeof e.editor.largeFileOptimizations&&(u="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations)),{isForSimpleWidget:t,tabSize:n,indentSize:i,insertSpaces:r,detectIndentation:c,defaultEOL:o,trimAutoWhitespace:l,largeFileOptimizations:u}}_getEOL(e,t){if(e)return this._resourcePropertiesService.getEOL(e,t);const n=this._configurationService.getValue("files.eol",{overrideIdentifier:t});return n&&"string"===typeof n&&"auto"!==n?n:3===o["a"]||2===o["a"]?"\n":"\r\n"}_shouldRestoreUndoStack(){const e=this._configurationService.getValue("files.restoreUndoStack");return"boolean"!==typeof e||e}getCreationOptions(t,n,i){let r=this._modelCreationOptionsByLanguageAndResource[t+n];if(!r){const o=this._configurationService.getValue("editor",{overrideIdentifier:t,resource:n}),s=this._getEOL(n,t);r=e._readModelOptions({editor:o,eol:s},i),this._modelCreationOptionsByLanguageAndResource[t+n]=r}return r}_updateModelOptions(){const t=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const n=Object.keys(this._models);for(let i=0,r=n.length;i<r;i++){const r=n[i],o=this._models[r],s=o.model.getLanguageIdentifier().language,a=o.model.uri,l=t[s+a],c=this.getCreationOptions(s,a,o.model.isForSimpleWidget);e._setModelOptionsForModel(o.model,c,l)}}static _setModelOptionsForModel(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}))}_insertDisposedModel(e){this._disposedModels.set(O(e.uri),e),this._disposedModelsHeapSize+=e.heapSize}_removeDisposedModel(e){const t=this._disposedModels.get(O(e));return t&&(this._disposedModelsHeapSize-=t.heapSize),this._disposedModels.delete(O(e)),t}_ensureDisposedModelsHeapSize(e){if(this._disposedModelsHeapSize>e){const t=[];this._disposedModels.forEach(e=>{e.sharesUndoRedoStack||t.push(e)}),t.sort((e,t)=>e.time-t.time);while(t.length>0&&this._disposedModelsHeapSize>e){const e=t.shift();this._removeDisposedModel(e.uri),null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}}}_createModelData(e,t,n,i){const r=this.getCreationOptions(t.language,n,i),o=new l["b"](e,r,t,n,this._undoRedoService);if(n&&this._disposedModels.has(O(n))){const e=this._removeDisposedModel(n),t=this._undoRedoService.getElements(n),i=k(o)===e.sha1;if(i||e.sharesUndoRedoStack){for(const e of t.past)Object(y["b"])(e)&&e.matchesResource(n)&&e.setModel(o);for(const e of t.future)Object(y["b"])(e)&&e.matchesResource(n)&&e.setModel(o);this._undoRedoService.setElementsValidFlag(n,!0,e=>Object(y["b"])(e)&&e.matchesResource(n)),i&&(o._overwriteVersionId(e.versionId),o._overwriteAlternativeVersionId(e.alternativeVersionId),o._overwriteInitialUndoRedoSnapshot(e.initialUndoRedoSnapshot))}else null!==e.initialUndoRedoSnapshot&&this._undoRedoService.restoreSnapshot(e.initialUndoRedoSnapshot)}const s=O(o.uri);if(this._models[s])throw new Error("ModelService: Cannot add model because it already exists!");const a=new L(o,e=>this._onWillDispose(e),(e,t)=>this._onDidChangeLanguage(e,t));return this._models[s]=a,a}createModel(e,t,n,i=!1){let r;return t?(r=this._createModelData(e,t.languageIdentifier,n,i),this.setMode(r.model,t)):r=this._createModelData(e,u["b"],n,i),this._onModelAdded.fire(r.model),r.model}setMode(e,t){if(!t)return;const n=this._models[O(e.uri)];n&&n.setLanguage(t)}getModels(){const e=[],t=Object.keys(this._models);for(let n=0,i=t.length;n<i;n++){const i=t[n];e.push(this._models[i].model)}return e}getModel(e){const t=O(e),n=this._models[t];return n?n.model:null}getSemanticTokensProviderStyling(e){return this._semanticStyling.get(e)}_onWillDispose(t){const n=O(t.uri),i=this._models[n],r=this._undoRedoService.getUriComparisonKey(t.uri)!==t.uri.toString();let o=!1,s=0;if(r||this._shouldRestoreUndoStack()&&I(t.uri)){const e=this._undoRedoService.getElements(t.uri);if(e.past.length>0||e.future.length>0){for(const n of e.past)Object(y["b"])(n)&&n.matchesResource(t.uri)&&(o=!0,s+=n.heapSize(t.uri),n.setModel(t.uri));for(const n of e.future)Object(y["b"])(n)&&n.matchesResource(t.uri)&&(o=!0,s+=n.heapSize(t.uri),n.setModel(t.uri))}}const a=e.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK;if(o)if(!r&&s>a){const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}else this._ensureDisposedModelsHeapSize(a-s),this._undoRedoService.setElementsValidFlag(t.uri,!1,e=>Object(y["b"])(e)&&e.matchesResource(t.uri)),this._insertDisposedModel(new D(t.uri,i.model.getInitialUndoRedoSnapshot(),Date.now(),r,s,k(t),t.getVersionId(),t.getAlternativeVersionId()));else if(!r){const e=i.model.getInitialUndoRedoSnapshot();null!==e&&this._undoRedoService.restoreSnapshot(e)}delete this._models[n],i.dispose(),delete this._modelCreationOptionsByLanguageAndResource[t.getLanguageIdentifier().language+t.uri],this._onModelRemoved.fire(t)}_onDidChangeLanguage(t,n){const i=n.oldLanguage,r=t.getLanguageIdentifier().language,o=this.getCreationOptions(i,t.uri,t.isForSimpleWidget),s=this.getCreationOptions(r,t.uri,t.isForSimpleWidget);e._setModelOptionsForModel(t,s,o),this._onModelModeChanged.fire({model:t,oldModeId:i})}};M.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20971520,M=S([x(0,d["a"]),x(1,h["b"]),x(2,g["b"]),x(3,m["b"]),x(4,v["a"])],M);const T="editor.semanticHighlighting";function A(e,t,n){var i;const r=null===(i=n.getValue(T,{overrideIdentifier:e.getLanguageIdentifier().language,resource:e.uri}))||void 0===i?void 0:i.enabled;return"boolean"===typeof r?r:t.getColorTheme().semanticHighlighting}class N extends r["a"]{constructor(e,t,n,i){super(),this._watchers=Object.create(null),this._semanticStyling=i;const r=e=>{this._watchers[e.uri.toString()]=new R(e,t,this._semanticStyling)},o=(e,t)=>{t.dispose(),delete this._watchers[e.uri.toString()]},s=()=>{for(let i of e.getModels()){const e=this._watchers[i.uri.toString()];A(i,t,n)?e||r(i):e&&o(i,e)}};this._register(e.onModelAdded(e=>{A(e,t,n)&&r(e)})),this._register(e.onModelRemoved(e=>{const t=this._watchers[e.uri.toString()];t&&o(e,t)})),this._register(n.onDidChangeConfiguration(e=>{e.affectsConfiguration(T)&&s()})),this._register(t.onDidColorThemeChange(s))}}class P extends r["a"]{constructor(e,t){super(),this._themeService=e,this._logService=t,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}get(e){return this._caches.has(e)||this._caches.set(e,new w["a"](e.getLegend(),this._themeService,this._logService)),this._caches.get(e)}}class j{constructor(e,t,n){this._provider=e,this.resultId=t,this.data=n}dispose(){this._provider.releaseDocumentSemanticTokens(this.resultId)}}class R extends r["a"]{constructor(e,t,n){super(),this._isDisposed=!1,this._model=e,this._semanticStyling=n,this._fetchDocumentSemanticTokens=this._register(new f["e"](()=>this._fetchDocumentSemanticTokensNow(),R.FETCH_DOCUMENT_SEMANTIC_TOKENS_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule()})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)}));const i=()=>{Object(r["f"])(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const t of c["l"].all(e))"function"===typeof t.onDidChange&&this._documentProvidersChangeListeners.push(t.onDidChange(()=>this._fetchDocumentSemanticTokens.schedule(0)))};i(),this._register(c["l"].onDidChange(()=>{i(),this._fetchDocumentSemanticTokens.schedule()})),this._register(t.onDidColorThemeChange(e=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule()})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;const e=new p["b"],t=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=Object(C["b"])(this._model,t,e.token);if(!n)return void(this._currentDocumentResponse&&this._model.setSemanticTokens(null,!1));const{provider:i,request:r}=n;this._currentDocumentRequestCancellationTokenSource=e;const o=[],a=this._model.onDidChangeContent(e=>{o.push(e)}),l=this._semanticStyling.get(i);r.then(e=>{this._currentDocumentRequestCancellationTokenSource=null,a.dispose(),this._setDocumentSemanticTokens(i,e||null,l,o)},e=>{const t=e&&(s["d"](e)||"string"===typeof e.message&&-1!==e.message.indexOf("busy"));t||s["e"](e),this._currentDocumentRequestCancellationTokenSource=null,a.dispose(),o.length>0&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule())})}static _copy(e,t,n,i,r){for(let o=0;o<r;o++)n[i+o]=e[t+o]}_setDocumentSemanticTokens(e,t,n,i){const r=this._currentDocumentResponse,o=()=>{i.length>0&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule()};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed)e&&t&&e.releaseDocumentSemanticTokens(t.resultId);else if(e&&n){if(!t)return this._model.setSemanticTokens(null,!0),void o();if(Object(C["d"])(t)){if(!r)return void this._model.setSemanticTokens(null,!0);if(0===t.edits.length)t={resultId:t.resultId,data:r.data};else{let e=0;for(const r of t.edits)e+=(r.data?r.data.length:0)-r.deleteCount;const n=r.data,i=new Uint32Array(n.length+e);let o=n.length,s=i.length;for(let r=t.edits.length-1;r>=0;r--){const e=t.edits[r],a=o-(e.start+e.deleteCount);a>0&&(R._copy(n,o-a,i,s-a,a),s-=a),e.data&&(R._copy(e.data,0,i,s-e.data.length,e.data.length),s-=e.data.length),o=e.start}o>0&&R._copy(n,0,i,0,o),t={resultId:t.resultId,data:i}}}if(Object(C["c"])(t)){this._currentDocumentResponse=new j(e,t.resultId,t.data);const r=Object(w["b"])(t,n,this._model.getLanguageIdentifier());if(i.length>0)for(const e of i)for(const t of r)for(const n of e.changes)t.applyEdit(n.range,n.text);this._model.setSemanticTokens(r,!0)}else this._model.setSemanticTokens(null,!0);o()}else this._model.setSemanticTokens(null,!1)}}R.FETCH_DOCUMENT_SEMANTIC_TOKENS_DELAY=300},d1c2:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:function(){return n.e("chunk-2d0a4bbf").then(n.bind(null,"0867"))}})},d1e7:function(e,t,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:i},d256:function(e,t,n){var i=n("da84");e.exports=i.Promise},d282:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:function(){return n.e("chunk-2d0aa90c").then(n.bind(null,"120e"))}})},d28b:function(e,t,n){var i=n("e065");i("iterator")},d2bb:function(e,t,n){var i=n("e330"),r=n("825a"),o=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(s){}return function(n,i){return r(n),o(i),t?e(n,i):n.__proto__=i,n}}():void 0)},d2ce:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:function(){return n.e("chunk-2d0a40c8").then(n.bind(null,"057d"))}}),Object(i["a"])({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:function(){return n.e("chunk-2d0a40c8").then(n.bind(null,"057d"))}})},d379:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var i=n("aa3d"),r=n("5717"),o=n("9c1d"),s=n("9e74"),a=n("4fc3"),l=n("0a0f"),c=n("b0cd"),u=n("b7d0"),h=n("4779"),d=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},f=function(e,t){return function(n,i){t(n,i,e)}};let p=class extends o["a"]{constructor(e,t,n,i,r,o,s,a,l,c){super(e,Object.assign(Object.assign({},n.getRawOptions()),{overflowWidgetsDomNode:n.getOverflowWidgetsDomNode()}),{},i,r,o,s,a,l,c),this._parentEditor=n,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(n.onDidChangeConfiguration(e=>this._onParentConfigurationChanged(e)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){i["f"](this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};p=d([f(3,l["a"]),f(4,r["a"]),f(5,s["b"]),f(6,a["b"]),f(7,u["b"]),f(8,c["a"]),f(9,h["b"])],p)},d3b7:function(e,t,n){var i=n("00ee"),r=n("cb2d"),o=n("b041");i||r(Object.prototype,"toString",o,{unsafe:!0})},d3d7:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return h}));var i=n("0a0f"),r=n("a666"),o=n("308f");const s=Object(i["c"])("logService");var a;(function(e){e[e["Trace"]=0]="Trace",e[e["Debug"]=1]="Debug",e[e["Info"]=2]="Info",e[e["Warning"]=3]="Warning",e[e["Error"]=4]="Error",e[e["Critical"]=5]="Critical",e[e["Off"]=6]="Off"})(a||(a={}));const l=a.Info;class c extends r["a"]{constructor(){super(...arguments),this.level=l,this._onDidChangeLogLevel=this._register(new o["b"])}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}class u extends c{constructor(e=l){super(),this.setLevel(e)}trace(e,...t){this.getLevel()<=a.Trace&&console.log("%cTRACE","color: #888",e,...t)}debug(e,...t){this.getLevel()<=a.Debug&&console.log("%cDEBUG","background: #eee; color: #888",e,...t)}info(e,...t){this.getLevel()<=a.Info&&console.log("%c INFO","color: #33f",e,...t)}error(e,...t){this.getLevel()<=a.Error&&console.log("%c ERR","color: #f33",e,...t)}dispose(){}}class h extends r["a"]{constructor(e){super(),this.logger=e,this._register(e)}getLevel(){return this.logger.getLevel()}trace(e,...t){this.logger.trace(e,...t)}debug(e,...t){this.logger.debug(e,...t)}info(e,...t){this.logger.info(e,...t)}error(e,...t){this.logger.error(e,...t)}}},d3ef:function(e,t,n){"use strict";n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return y}));n("8bf4");var i=n("dff7"),r=n("11f7"),o=n("31df"),s=n("3813"),a=n("5aa5"),l=n("308f"),c=n("1b7d"),u=n("ceb8"),h=n("aa3d");class d{constructor(e,t=0,n=e.length,i=t-1){this.items=e,this.start=t,this.end=n,this.index=i}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}next(){return this.index=Math.min(this.index+1,this.end),this.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}}class f{constructor(e=[],t=10){this._initialize(e),this._limit=t,this._onChange()}add(e){this._history.delete(e),this._history.add(e),this._onChange()}next(){return this._currentPosition()!==this._elements.length-1?this._navigator.next():null}previous(){return 0!==this._currentPosition()?this._navigator.previous():null}current(){return this._navigator.current()}first(){return this._navigator.first()}last(){return this._navigator.last()}has(e){return this._history.has(e)}_onChange(){this._reduceToLimit();const e=this._elements;this._navigator=new d(e,0,e.length,e.length)}_reduceToLimit(){const e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))}_currentPosition(){const e=this._navigator.current();return e?this._elements.indexOf(e):-1}_initialize(e){this._history=new Set;for(const t of e)this._history.add(t)}get _elements(){const e=[];return this._history.forEach(t=>e.push(t)),e}}var p=n("1898"),g=n("e32d");const m=r["a"],v={inputBackground:u["a"].fromHex("#3C3C3C"),inputForeground:u["a"].fromHex("#CCCCCC"),inputValidationInfoBorder:u["a"].fromHex("#55AAFF"),inputValidationInfoBackground:u["a"].fromHex("#063B49"),inputValidationWarningBorder:u["a"].fromHex("#B89500"),inputValidationWarningBackground:u["a"].fromHex("#352A05"),inputValidationErrorBorder:u["a"].fromHex("#BE1100"),inputValidationErrorBackground:u["a"].fromHex("#5A1D1D")};class b extends c["a"]{constructor(e,t,n){var i;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new l["b"]),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new l["b"]),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=t,this.options=n||Object.create(null),Object(h["f"])(this.options,v,!1),this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=null!==(i=this.options.tooltip)&&void 0!==i?i:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.inputBackground=this.options.inputBackground,this.inputForeground=this.options.inputForeground,this.inputBorder=this.options.inputBorder,this.inputValidationInfoBorder=this.options.inputValidationInfoBorder,this.inputValidationInfoBackground=this.options.inputValidationInfoBackground,this.inputValidationInfoForeground=this.options.inputValidationInfoForeground,this.inputValidationWarningBorder=this.options.inputValidationWarningBorder,this.inputValidationWarningBackground=this.options.inputValidationWarningBackground,this.inputValidationWarningForeground=this.options.inputValidationWarningForeground,this.inputValidationErrorBorder=this.options.inputValidationErrorBorder,this.inputValidationErrorBackground=this.options.inputValidationErrorBackground,this.inputValidationErrorForeground=this.options.inputValidationErrorForeground,this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=r["q"](e,m(".monaco-inputbox.idle"));let o=this.options.flexibleHeight?"textarea":"input",s=r["q"](this.element,m(".ibwrapper"));if(this.input=r["q"](s,m(o+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight="number"===typeof this.options.flexibleMaxHeight?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=r["q"](s,m("div.mirror")),this.mirror.innerText=" ",this.scrollableElement=new p["b"](this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),r["q"](e,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(e=>this.input.scrollTop=e.scrollTop));const t=this._register(new g["a"](document,"selectionchange")),n=l["c"].filter(t.event,()=>{const e=document.getSelection();return(null===e||void 0===e?void 0:e.anchorNode)===s});this._register(n(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this.ignoreGesture(this.input),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new a["a"](this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(e){this.placeholder=e,this.input.setAttribute("placeholder",e)}setTooltip(e){this.tooltip=e,this.input.title=e}setAriaLabel(e){this.ariaLabel=e,e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label")}getAriaLabel(){return this.ariaLabel}get inputElement(){return this.input}get value(){return this.input.value}set value(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())}get height(){return"number"===typeof this.cachedHeight?this.cachedHeight:r["H"](this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return document.activeElement===this.input}select(e=null){this.input.select(),e&&(this.input.setSelectionRange(e.start,e.end),e.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}get width(){return r["I"](this.input)}set width(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){let t=0;if(this.mirror){const e=parseFloat(this.mirror.style.paddingLeft||"")||0,n=parseFloat(this.mirror.style.paddingRight||"")||0;t=e+n}this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")}set paddingRight(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")}updateScrollDimensions(){if("number"!==typeof this.cachedContentHeight||"number"!==typeof this.cachedHeight||!this.scrollableElement)return;const e=this.cachedContentHeight,t=this.cachedHeight,n=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:n})}showMessage(e,t){this.message=e,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(e.type));const n=this.stylesForType(this.message.type);this.element.style.border=n.border?"1px solid "+n.border:"",(this.hasFocus()||t)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let e=null;return this.validation&&(e=this.validation(this.value),e?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),null===e||void 0===e?void 0:e.type}stylesForType(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}}}classForType(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let e,t,n=()=>e.style.width=r["I"](this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:t=>{if(!this.message)return null;e=r["q"](t,m(".monaco-inputbox-container")),n();const i={inline:!0,className:"monaco-inputbox-message"},s=this.message.formatContent?Object(o["b"])(this.message.content,i):Object(o["c"])(this.message.content,i);s.classList.add(this.classForType(this.message.type));const a=this.stylesForType(this.message.type);return s.style.backgroundColor=a.background?a.background.toString():"",s.style.color=a.foreground?a.foreground.toString():"",s.style.border=a.border?"1px solid "+a.border:"",r["q"](e,s),null},onHide:()=>{this.state="closed"},layout:n}),t=3===this.message.type?i["a"]("alertErrorMessage","Error: {0}",this.message.content):2===this.message.type?i["a"]("alertWarningMessage","Warning: {0}",this.message.content):i["a"]("alertInfoMessage","Info: {0}",this.message.content),s["a"](t),this.state="open"}_hideMessage(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const e=this.value,t=e.charCodeAt(e.length-1),n=10===t?" ":"",i=(e+n).replace(/\u000c/g,"");i?this.mirror.textContent=e+n:this.mirror.innerText=" ",this.layout()}style(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()}applyStyles(){const 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="inherit",this.input.style.color=t,this.element.style.borderWidth=n?"1px":"",this.element.style.borderStyle=n?"solid":"",this.element.style.borderColor=n}layout(){if(!this.mirror)return;const e=this.cachedContentHeight;this.cachedContentHeight=r["H"](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))}insertAtCursor(e){const t=this.inputElement,n=t.selectionStart,i=t.selectionEnd,r=t.value;null!==n&&null!==i&&(this.value=r.substr(0,n)+e+r.substr(i),t.setSelectionRange(n+1,n+1),this.layout())}dispose(){this._hideMessage(),this.message=null,this.actionbar&&this.actionbar.dispose(),super.dispose()}}class y extends b{constructor(e,t,n){super(e,t,n),this.history=new f(n.history,100)}addToHistory(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)}showNextValue(){this.history.has(this.value)||this.addToHistory();let e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,s["c"](this.value))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,s["c"](this.value))}getCurrentValue(){let e=this.history.current();return e||(e=this.history.last(),this.history.next()),e}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()||this.history.last()}}},d3f4:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("6a89");class r{static insert(e,t){return{range:new i["a"](e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}}static delete(e){return{range:e,text:null}}static replace(e,t){return{range:e,text:t}}static replaceMove(e,t){return{range:e,text:t,forceMoveMarkers:!0}}}},d409:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return g}));var i=n("5e76"),r=n("6d8b"),o=n("e86a"),s=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function a(e,t,n,i,r){if(!t)return"";var o=(e+"").split("\n");r=l(t,n,i,r);for(var s=0,a=o.length;s<a;s++)o[s]=c(o[s],r);return o.join("\n")}function l(e,t,n,i){i=i||{};var s=Object(r["extend"])({},i);s.font=t,n=Object(r["retrieve2"])(n,"..."),s.maxIterations=Object(r["retrieve2"])(i.maxIterations,2);var a=s.minChar=Object(r["retrieve2"])(i.minChar,0);s.cnCharWidth=Object(o["f"])("国",t);var l=s.ascCharWidth=Object(o["f"])("a",t);s.placeholder=Object(r["retrieve2"])(i.placeholder,"");for(var c=e=Math.max(0,e-1),u=0;u<a&&c>=l;u++)c-=l;var h=Object(o["f"])(n,t);return h>c&&(n="",h=0),c=e-h,s.ellipsis=n,s.ellipsisWidth=h,s.contentWidth=c,s.containerWidth=e,s}function c(e,t){var n=t.containerWidth,i=t.font,r=t.contentWidth;if(!n)return"";var s=Object(o["f"])(e,i);if(s<=n)return e;for(var a=0;;a++){if(s<=r||a>=t.maxIterations){e+=t.ellipsis;break}var l=0===a?u(e,r,t.ascCharWidth,t.cnCharWidth):s>0?Math.floor(e.length*r/s):0;e=e.substr(0,l),s=Object(o["f"])(e,i)}return""===e&&(e=t.placeholder),e}function u(e,t,n,i){for(var r=0,o=0,s=e.length;o<s&&r<t;o++){var a=e.charCodeAt(o);r+=0<=a&&a<=127?n:i}return o}function h(e,t){null!=e&&(e+="");var n,i=t.overflow,s=t.padding,a=t.font,u="truncate"===i,h=Object(o["e"])(a),d=Object(r["retrieve2"])(t.lineHeight,h),f=!!t.backgroundColor,p="truncate"===t.lineOverflow,g=t.width;n=null==g||"break"!==i&&"breakAll"!==i?e?e.split("\n"):[]:e?_(e,t.font,g,"breakAll"===i,0).lines:[];var m=n.length*d,v=Object(r["retrieve2"])(t.height,m);if(m>v&&p){var b=Math.floor(v/d);n=n.slice(0,b)}if(e&&u&&null!=g)for(var y=l(g,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),w=0;w<n.length;w++)n[w]=c(n[w],y);var C=v,S=0;for(w=0;w<n.length;w++)S=Math.max(Object(o["f"])(n[w],a),S);null==g&&(g=S);var x=S;return s&&(C+=s[0]+s[2],x+=s[1]+s[3],g+=s[1]+s[3]),f&&(x=g),{lines:n,height:v,outerWidth:x,outerHeight:C,lineHeight:d,calculatedLineHeight:h,contentWidth:S,contentHeight:m,width:g}}var d=function(){function e(){}return e}(),f=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),p=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function g(e,t){var n=new p;if(null!=e&&(e+=""),!e)return n;var l,c=t.width,u=t.height,h=t.overflow,d="break"!==h&&"breakAll"!==h||null==c?null:{width:c,accumWidth:0,breakAll:"breakAll"===h},f=s.lastIndex=0;while(null!=(l=s.exec(e))){var g=l.index;g>f&&m(n,e.substring(f,g),t,d),m(n,l[2],t,d,l[1]),f=s.lastIndex}f<e.length&&m(n,e.substring(f,e.length),t,d);var v=[],b=0,y=0,_=t.padding,w="truncate"===h,C="truncate"===t.lineOverflow;function S(e,t,n){e.width=t,e.lineHeight=n,b+=n,y=Math.max(y,t)}e:for(var x=0;x<n.lines.length;x++){for(var O=n.lines[x],k=0,L=0,E=0;E<O.tokens.length;E++){var D=O.tokens[E],I=D.styleName&&t.rich[D.styleName]||{},M=D.textPadding=I.padding,T=M?M[1]+M[3]:0,A=D.font=I.font||t.font;D.contentHeight=Object(o["e"])(A);var N=Object(r["retrieve2"])(I.height,D.contentHeight);if(D.innerHeight=N,M&&(N+=M[0]+M[2]),D.height=N,D.lineHeight=Object(r["retrieve3"])(I.lineHeight,t.lineHeight,N),D.align=I&&I.align||t.align,D.verticalAlign=I&&I.verticalAlign||"middle",C&&null!=u&&b+D.lineHeight>u){E>0?(O.tokens=O.tokens.slice(0,E),S(O,L,k),n.lines=n.lines.slice(0,x+1)):n.lines=n.lines.slice(0,x);break e}var P=I.width,j=null==P||"auto"===P;if("string"===typeof P&&"%"===P.charAt(P.length-1))D.percentWidth=P,v.push(D),D.contentWidth=Object(o["f"])(D.text,A);else{if(j){var R=I.backgroundColor,F=R&&R.image;F&&(F=i["b"](F),i["c"](F)&&(D.width=Math.max(D.width,F.width*N/F.height)))}var B=w&&null!=c?c-L:null;null!=B&&B<D.width?!j||B<T?(D.text="",D.width=D.contentWidth=0):(D.text=a(D.text,B-T,A,t.ellipsis,{minChar:t.truncateMinChar}),D.width=D.contentWidth=Object(o["f"])(D.text,A)):D.contentWidth=Object(o["f"])(D.text,A)}D.width+=T,L+=D.width,I&&(k=Math.max(k,D.lineHeight))}S(O,L,k)}n.outerWidth=n.width=Object(r["retrieve2"])(c,y),n.outerHeight=n.height=Object(r["retrieve2"])(u,b),n.contentHeight=b,n.contentWidth=y,_&&(n.outerWidth+=_[1]+_[3],n.outerHeight+=_[0]+_[2]);for(x=0;x<v.length;x++){D=v[x];var W=D.percentWidth;D.width=parseInt(W,10)/100*n.width}return n}function m(e,t,n,i,r){var s,a,l=""===t,c=r&&n.rich[r]||{},u=e.lines,h=c.font||n.font,p=!1;if(i){var g=c.padding,m=g?g[1]+g[3]:0;if(null!=c.width&&"auto"!==c.width){var v=Object(o["g"])(c.width,i.width)+m;u.length>0&&v+i.accumWidth>i.width&&(s=t.split("\n"),p=!0),i.accumWidth=v}else{var b=_(t,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=b.accumWidth+m,a=b.linesWidths,s=b.lines}}else s=t.split("\n");for(var y=0;y<s.length;y++){var w=s[y],C=new d;if(C.styleName=r,C.text=w,C.isLineHolder=!w&&!l,"number"===typeof c.width?C.width=c.width:C.width=a?a[y]:Object(o["f"])(w,h),y||p)u.push(new f([C]));else{var S=(u[u.length-1]||(u[0]=new f)).tokens,x=S.length;1===x&&S[0].isLineHolder?S[0]=C:(w||!x||l)&&S.push(C)}}}function v(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var b=Object(r["reduce"])(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function y(e){return!v(e)||!!b[e]}function _(e,t,n,i,r){for(var s=[],a=[],l="",c="",u=0,h=0,d=0;d<e.length;d++){var f=e.charAt(d);if("\n"!==f){var p=Object(o["f"])(f,t),g=!i&&!y(f);(s.length?h+p>n:r+h+p>n)?h?(l||c)&&(g?(l||(l=c,c="",u=0,h=u),s.push(l),a.push(h-u),c+=f,u+=p,l="",h=u):(c&&(l+=c,c="",u=0),s.push(l),a.push(h),l=f,h=p)):g?(s.push(c),a.push(u),c=f,u=p):(s.push(f),a.push(p)):(h+=p,g?(c+=f,u+=p):(c&&(l+=c,c="",u=0),l+=f))}else c&&(l+=c,h+=u),s.push(l),a.push(h),l="",c="",u=0,h=0}return s.length||l||(l=e,c="",u=0),c&&(l+=c),l&&(s.push(l),a.push(h)),1===s.length&&(h+=r),{accumWidth:h,lines:s,linesWidths:a}}},d44e:function(e,t,n){var i=n("9bf2").f,r=n("1a2d"),o=n("b622"),s=o("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,s)&&i(e,s,{configurable:!0,value:t})}},d48d:function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u}));var i=n("3742"),r=n("2e5d"),o=n("b272"),s=n("e6ff"),a=n("7061"),l=n("6a89");class c{static _createWord(e,t,n,i,r){return{start:i,end:r,wordType:t,nextCharClass:n}}static _findPreviousWordOnLine(e,t,n){let i=t.getLineContent(n.lineNumber);return this._doFindPreviousWordOnLine(i,e,n)}static _doFindPreviousWordOnLine(e,t,n){let i=0;for(let r=n.column-2;r>=0;r--){let n=e.charCodeAt(r),o=t.get(n);if(0===o){if(2===i)return this._createWord(e,i,o,r+1,this._findEndOfWord(e,t,i,r+1));i=1}else if(2===o){if(1===i)return this._createWord(e,i,o,r+1,this._findEndOfWord(e,t,i,r+1));i=2}else if(1===o&&0!==i)return this._createWord(e,i,o,r+1,this._findEndOfWord(e,t,i,r+1))}return 0!==i?this._createWord(e,i,1,0,this._findEndOfWord(e,t,i,0)):null}static _findEndOfWord(e,t,n,i){let r=e.length;for(let o=i;o<r;o++){let i=e.charCodeAt(o),r=t.get(i);if(1===r)return o;if(1===n&&2===r)return o;if(2===n&&0===r)return o}return r}static _findNextWordOnLine(e,t,n){let i=t.getLineContent(n.lineNumber);return this._doFindNextWordOnLine(i,e,n)}static _doFindNextWordOnLine(e,t,n){let i=0,r=e.length;for(let o=n.column-1;o<r;o++){let n=e.charCodeAt(o),r=t.get(n);if(0===r){if(2===i)return this._createWord(e,i,r,this._findStartOfWord(e,t,i,o-1),o);i=1}else if(2===r){if(1===i)return this._createWord(e,i,r,this._findStartOfWord(e,t,i,o-1),o);i=2}else if(1===r&&0!==i)return this._createWord(e,i,r,this._findStartOfWord(e,t,i,o-1),o)}return 0!==i?this._createWord(e,i,1,this._findStartOfWord(e,t,i,r-1),r):null}static _findStartOfWord(e,t,n,i){for(let r=i;r>=0;r--){let i=e.charCodeAt(r),o=t.get(i);if(1===o)return r+1;if(1===n&&2===o)return r+1;if(2===n&&0===o)return r+1}return 0}static moveWordLeft(e,t,n,i){let r=n.lineNumber,o=n.column;1===o&&r>1&&(r-=1,o=t.getLineMaxColumn(r));let s=c._findPreviousWordOnLine(e,t,new a["a"](r,o));if(0===i)return new a["a"](r,s?s.start+1:1);if(1===i)return s&&2===s.wordType&&s.end-s.start===1&&0===s.nextCharClass&&(s=c._findPreviousWordOnLine(e,t,new a["a"](r,s.start+1))),new a["a"](r,s?s.start+1:1);if(3===i){while(s&&2===s.wordType)s=c._findPreviousWordOnLine(e,t,new a["a"](r,s.start+1));return new a["a"](r,s?s.start+1:1)}return s&&o<=s.end+1&&(s=c._findPreviousWordOnLine(e,t,new a["a"](r,s.start+1))),new a["a"](r,s?s.end+1:1)}static _moveWordPartLeft(e,t){const n=t.lineNumber,r=e.getLineMaxColumn(n);if(1===t.column)return n>1?new a["a"](n-1,e.getLineMaxColumn(n-1)):t;const o=e.getLineContent(n);for(let s=t.column-1;s>1;s--){const e=o.charCodeAt(s-2),t=o.charCodeAt(s-1);if(95===e&&95!==t)return new a["a"](n,s);if(i["H"](e)&&i["I"](t))return new a["a"](n,s);if(i["I"](e)&&i["I"](t)&&s+1<r){const e=o.charCodeAt(s);if(i["H"](e))return new a["a"](n,s)}}return new a["a"](n,1)}static moveWordRight(e,t,n,i){let r=n.lineNumber,o=n.column,s=!1;o===t.getLineMaxColumn(r)&&r<t.getLineCount()&&(s=!0,r+=1,o=1);let l=c._findNextWordOnLine(e,t,new a["a"](r,o));if(2===i)l&&2===l.wordType&&l.end-l.start===1&&0===l.nextCharClass&&(l=c._findNextWordOnLine(e,t,new a["a"](r,l.end+1))),o=l?l.end+1:t.getLineMaxColumn(r);else if(3===i){s&&(o=0);while(l&&(2===l.wordType||l.start+1<=o))l=c._findNextWordOnLine(e,t,new a["a"](r,l.end+1));o=l?l.start+1:t.getLineMaxColumn(r)}else l&&!s&&o>=l.start+1&&(l=c._findNextWordOnLine(e,t,new a["a"](r,l.end+1))),o=l?l.start+1:t.getLineMaxColumn(r);return new a["a"](r,o)}static _moveWordPartRight(e,t){const n=t.lineNumber,r=e.getLineMaxColumn(n);if(t.column===r)return n<e.getLineCount()?new a["a"](n+1,1):t;const o=e.getLineContent(n);for(let s=t.column+1;s<r;s++){const e=o.charCodeAt(s-2),t=o.charCodeAt(s-1);if(95!==e&&95===t)return new a["a"](n,s);if(i["H"](e)&&i["I"](t))return new a["a"](n,s);if(i["I"](e)&&i["I"](t)&&s+1<r){const e=o.charCodeAt(s);if(i["H"](e))return new a["a"](n,s)}}return new a["a"](n,r)}static _deleteWordLeftWhitespace(e,t){const n=e.getLineContent(t.lineNumber),r=t.column-2,o=i["J"](n,r);return o+1<r?new l["a"](t.lineNumber,o+2,t.lineNumber,t.column):null}static deleteWordLeft(e,t){const n=e.wordSeparators,i=e.model,r=e.selection,s=e.whitespaceHeuristics;if(!r.isEmpty())return r;if(o["a"].isAutoClosingPairDelete(e.autoClosingDelete,e.autoClosingBrackets,e.autoClosingQuotes,e.autoClosingPairs.autoClosingPairsOpenByEnd,e.model,[e.selection],e.autoClosedCharacters)){const t=e.selection.getPosition();return new l["a"](t.lineNumber,t.column-1,t.lineNumber,t.column+1)}const u=new a["a"](r.positionLineNumber,r.positionColumn);let h=u.lineNumber,d=u.column;if(1===h&&1===d)return null;if(s){let e=this._deleteWordLeftWhitespace(i,u);if(e)return e}let f=c._findPreviousWordOnLine(n,i,u);return 0===t?f?d=f.start+1:d>1?d=1:(h--,d=i.getLineMaxColumn(h)):(f&&d<=f.end+1&&(f=c._findPreviousWordOnLine(n,i,new a["a"](h,f.start+1))),f?d=f.end+1:d>1?d=1:(h--,d=i.getLineMaxColumn(h))),new l["a"](h,d,u.lineNumber,u.column)}static deleteInsideWord(e,t,n){if(!n.isEmpty())return n;const i=new a["a"](n.positionLineNumber,n.positionColumn);let r=this._deleteInsideWordWhitespace(t,i);return r||this._deleteInsideWordDetermineDeleteRange(e,t,i)}static _charAtIsWhitespace(e,t){const n=e.charCodeAt(t);return 32===n||9===n}static _deleteInsideWordWhitespace(e,t){const n=e.getLineContent(t.lineNumber),i=n.length;if(0===i)return null;let r=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(n,r))return null;let o=Math.min(t.column-1,i-1);if(!this._charAtIsWhitespace(n,o))return null;while(r>0&&this._charAtIsWhitespace(n,r-1))r--;while(o+1<i&&this._charAtIsWhitespace(n,o+1))o++;return new l["a"](t.lineNumber,r+1,t.lineNumber,o+2)}static _deleteInsideWordDetermineDeleteRange(e,t,n){const i=t.getLineContent(n.lineNumber),r=i.length;if(0===r)return n.lineNumber>1?new l["a"](n.lineNumber-1,t.getLineMaxColumn(n.lineNumber-1),n.lineNumber,1):n.lineNumber<t.getLineCount()?new l["a"](n.lineNumber,1,n.lineNumber+1,1):new l["a"](n.lineNumber,1,n.lineNumber,1);const o=e=>e.start+1<=n.column&&n.column<=e.end+1,s=(e,t)=>(e=Math.min(e,n.column),t=Math.max(t,n.column),new l["a"](n.lineNumber,e,n.lineNumber,t)),a=e=>{let t=e.start+1,n=e.end+1,o=!1;while(n-1<r&&this._charAtIsWhitespace(i,n-1))o=!0,n++;if(!o)while(t>1&&this._charAtIsWhitespace(i,t-2))t--;return s(t,n)},u=c._findPreviousWordOnLine(e,t,n);if(u&&o(u))return a(u);const h=c._findNextWordOnLine(e,t,n);return h&&o(h)?a(h):u&&h?s(u.end+1,h.start+1):u?s(u.start+1,u.end+1):h?s(h.start+1,h.end+1):s(1,r+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;const n=t.getPosition(),i=c._moveWordPartLeft(e,n);return new l["a"](n.lineNumber,n.column,i.lineNumber,i.column)}static _findFirstNonWhitespaceChar(e,t){let n=e.length;for(let i=t;i<n;i++){let t=e.charAt(i);if(" "!==t&&"\t"!==t)return i}return n}static _deleteWordRightWhitespace(e,t){const n=e.getLineContent(t.lineNumber),i=t.column-1,r=this._findFirstNonWhitespaceChar(n,i);return i+1<r?new l["a"](t.lineNumber,t.column,t.lineNumber,r+1):null}static deleteWordRight(e,t){const n=e.wordSeparators,i=e.model,r=e.selection,o=e.whitespaceHeuristics;if(!r.isEmpty())return r;const s=new a["a"](r.positionLineNumber,r.positionColumn);let u=s.lineNumber,h=s.column;const d=i.getLineCount(),f=i.getLineMaxColumn(u);if(u===d&&h===f)return null;if(o){let e=this._deleteWordRightWhitespace(i,s);if(e)return e}let p=c._findNextWordOnLine(n,i,s);return 2===t?p?h=p.end+1:h<f||u===d?h=f:(u++,p=c._findNextWordOnLine(n,i,new a["a"](u,1)),h=p?p.start+1:i.getLineMaxColumn(u)):(p&&h>=p.start+1&&(p=c._findNextWordOnLine(n,i,new a["a"](u,p.end+1))),p?h=p.start+1:h<f||u===d?h=f:(u++,p=c._findNextWordOnLine(n,i,new a["a"](u,1)),h=p?p.start+1:i.getLineMaxColumn(u))),new l["a"](u,h,s.lineNumber,s.column)}static _deleteWordPartRight(e,t){if(!t.isEmpty())return t;const n=t.getPosition(),i=c._moveWordPartRight(e,n);return new l["a"](n.lineNumber,n.column,i.lineNumber,i.column)}static _createWordAtPosition(e,t,n){const i=new l["a"](t,n.start+1,t,n.end+1);return{word:e.getValueInRange(i),startColumn:i.startColumn,endColumn:i.endColumn}}static getWordAtPosition(e,t,n){const i=Object(s["a"])(t),r=c._findPreviousWordOnLine(i,e,n);if(r&&1===r.wordType&&r.start<=n.column-1&&n.column-1<=r.end)return c._createWordAtPosition(e,n.lineNumber,r);const o=c._findNextWordOnLine(i,e,n);return o&&1===o.wordType&&o.start<=n.column-1&&n.column-1<=o.end?c._createWordAtPosition(e,n.lineNumber,o):null}static word(e,t,n,i,o){const u=Object(s["a"])(e.wordSeparators);let h,d,f=c._findPreviousWordOnLine(u,t,o),p=c._findNextWordOnLine(u,t,o);if(!i){let e,n;return f&&1===f.wordType&&f.start<=o.column-1&&o.column-1<=f.end?(e=f.start+1,n=f.end+1):p&&1===p.wordType&&p.start<=o.column-1&&o.column-1<=p.end?(e=p.start+1,n=p.end+1):(e=f?f.end+1:1,n=p?p.start+1:t.getLineMaxColumn(o.lineNumber)),new r["f"](new l["a"](o.lineNumber,e,o.lineNumber,n),0,new a["a"](o.lineNumber,n),0)}f&&1===f.wordType&&f.start<o.column-1&&o.column-1<f.end?(h=f.start+1,d=f.end+1):p&&1===p.wordType&&p.start<o.column-1&&o.column-1<p.end?(h=p.start+1,d=p.end+1):(h=o.column,d=o.column);let g,m=o.lineNumber;if(n.selectionStart.containsPosition(o))g=n.selectionStart.endColumn;else if(o.isBeforeOrEqual(n.selectionStart.getStartPosition())){g=h;let e=new a["a"](m,g);n.selectionStart.containsPosition(e)&&(g=n.selectionStart.endColumn)}else{g=d;let e=new a["a"](m,g);n.selectionStart.containsPosition(e)&&(g=n.selectionStart.startColumn)}return n.move(!0,m,g,0)}}class u extends c{static deleteWordPartLeft(e){const t=h([c.deleteWordLeft(e,0),c.deleteWordLeft(e,2),c._deleteWordPartLeft(e.model,e.selection)]);return t.sort(l["a"].compareRangesUsingEnds),t[2]}static deleteWordPartRight(e){const t=h([c.deleteWordRight(e,0),c.deleteWordRight(e,2),c._deleteWordPartRight(e.model,e.selection)]);return t.sort(l["a"].compareRangesUsingStarts),t[0]}static moveWordPartLeft(e,t,n){const i=h([c.moveWordLeft(e,t,n,0),c.moveWordLeft(e,t,n,2),c._moveWordPartLeft(t,n)]);return i.sort(a["a"].compare),i[2]}static moveWordPartRight(e,t,n){const i=h([c.moveWordRight(e,t,n,0),c.moveWordRight(e,t,n,2),c._moveWordPartRight(t,n)]);return i.sort(a["a"].compare),i[0]}}function h(e){return e.filter(e=>Boolean(e))}},d498:function(e,t,n){"use strict";var i=n("9ab4"),r=n("cbe5"),o=n("4fac"),s=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),a=function(e){function t(t){return e.call(this,t)||this}return Object(i["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new s},t.prototype.buildPath=function(e,t){o["a"](e,t,!1)},t}(r["b"]);a.prototype.type="polyline",t["a"]=a},d4af:function(e,t,n){"use strict";var i=n("8eb7"),r=n("7b3e"),o=10,s=40,a=800;function l(e){var t=0,n=0,i=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=t*o,r=n*o,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||r)&&e.deltaMode&&(1==e.deltaMode?(i*=s,r*=s):(i*=a,r*=a)),i&&!t&&(t=i<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:r}}l.getEventType=function(){return i.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=l},d4c3:function(e,t,n){var i=n("342f"),r=n("da84");e.exports=/ipad|iphone|ipod/i.test(i)&&void 0!==r.Pebble},d4c6:function(e,t,n){"use strict";var i=n("9ab4"),r=n("cbe5"),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return Object(i["a"])(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),r["b"].prototype.getBoundingRect.call(this)},t}(r["b"]);t["a"]=o},d4ec:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("d9e2");function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},d51b:function(e,t,n){"use strict";var i=function(){function e(e){this.value=e}return e}(),r=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new i(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),o=function(){function e(e){this._list=new r,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,o=null;if(null==r[e]){var s=n.len(),a=this._lastRemovedEntry;if(s>=this._maxSize&&s>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}a?a.value=t:a=new i(t),a.key=e,n.insertEntry(a),r[e]=a}return o},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();t["a"]=o},d51d:function(e,t,n){},d585:function(e,t,n){"use strict";n.r(t),n.d(t,"CoreEditorCommand",(function(){return _})),n.d(t,"EditorScroll_",(function(){return w})),n.d(t,"RevealLine_",(function(){return C})),n.d(t,"CoreNavigationCommands",(function(){return S})),n.d(t,"CoreEditingCommands",(function(){return E}));var i=n("dff7"),r=n("0f70"),o=n("ef8e"),s=n("3813"),a=n("b2cc"),l=n("5717"),c=n("2e5d"),u=n("7061"),h=n("6a89");class d{static columnSelect(e,t,n,i,r,o){let s=Math.abs(r-n)+1,a=n>r,l=i>o,d=i<o,f=[];for(let p=0;p<s;p++){let r=n+(a?-p:p),s=c["a"].columnFromVisibleColumn2(e,t,r,i),g=c["a"].columnFromVisibleColumn2(e,t,r,o),m=c["a"].visibleColumnFromColumn2(e,t,new u["a"](r,s)),v=c["a"].visibleColumnFromColumn2(e,t,new u["a"](r,g));if(d){if(m>o)continue;if(v<i)continue}if(l){if(v>i)continue;if(m<o)continue}f.push(new c["f"](new h["a"](r,s,r,s),0,new u["a"](r,g),0))}if(0===f.length)for(let p=0;p<s;p++){const e=n+(a?-p:p),i=t.getLineMaxColumn(e);f.push(new c["f"](new h["a"](e,i,e,i),0,new u["a"](e,i),0))}return{viewStates:f,reversed:a,fromLineNumber:n,fromVisualColumn:i,toLineNumber:r,toVisualColumn:o}}static columnSelectLeft(e,t,n){let i=n.toViewVisualColumn;return i>0&&i--,d.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,n.toViewLineNumber,i)}static columnSelectRight(e,t,n){let i=0;const r=Math.min(n.fromViewLineNumber,n.toViewLineNumber),o=Math.max(n.fromViewLineNumber,n.toViewLineNumber);for(let a=r;a<=o;a++){const n=t.getLineMaxColumn(a),r=c["a"].visibleColumnFromColumn2(e,t,new u["a"](a,n));i=Math.max(i,r)}let s=n.toViewVisualColumn;return s<i&&s++,this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,n.toViewLineNumber,s)}static columnSelectUp(e,t,n,i){const r=i?e.pageSize:1,o=Math.max(1,n.toViewLineNumber-r);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,o,n.toViewVisualColumn)}static columnSelectDown(e,t,n,i){const r=i?e.pageSize:1,o=Math.min(t.getLineCount(),n.toViewLineNumber+r);return this.columnSelect(e,t,n.fromViewLineNumber,n.fromViewVisualColumn,o,n.toViewVisualColumn)}}var f=n("b272"),p=n("a007"),g=n("191f"),m=n("c101"),v=n("4fc3"),b=n("9eb8");const y=0;class _ extends a["c"]{runEditorCommand(e,t,n){const i=t._getViewModel();i&&this.runCoreEditorCommand(i,n||{})}}var w,C,S;(function(e){const t=function(e){if(!o["j"](e))return!1;const t=e;return!!o["k"](t.to)&&(!(!o["l"](t.by)&&!o["k"](t.by))&&(!(!o["l"](t.value)&&!o["i"](t.value))&&!(!o["l"](t.revealCursor)&&!o["g"](t.revealCursor))))};function n(t){let n,i;switch(t.to){case e.RawDirection.Up:n=1;break;case e.RawDirection.Down:n=2;break;default:return null}switch(t.by){case e.RawUnit.Line:i=1;break;case e.RawUnit.WrappedLine:i=2;break;case e.RawUnit.Page:i=3;break;case e.RawUnit.HalfPage:i=4;break;default:i=2}const r=Math.floor(t.value||1),o=!!t.revealCursor;return{direction:n,unit:i,value:r,revealCursor:o,select:!!t.select}}e.description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:t,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["up","down"]},by:{type:"string",enum:["line","wrappedLine","page","halfPage"]},value:{type:"number",default:1},revealCursor:{type:"boolean"}}}}]},e.RawDirection={Up:"up",Down:"down"},e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},e.parse=n})(w||(w={})),function(e){const t=function(e){if(!o["j"](e))return!1;const t=e;return!(!o["i"](t.lineNumber)&&!o["k"](t.lineNumber))&&!(!o["l"](t.at)&&!o["k"](t.at))};e.description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:t,schema:{type:"object",required:["lineNumber"],properties:{lineNumber:{type:["number","string"]},at:{type:"string",enum:["top","center","bottom"]}}}}]},e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}}(C||(C={}));class x{constructor(e){e.addImplementation(1e4,"code-editor",(e,t)=>{const n=e.get(l["a"]).getFocusedCodeEditor();return!(!n||!n.hasTextFocus())&&this._runEditorCommand(e,n,t)}),e.addImplementation(1e3,"generic-dom-input-textarea",(e,t)=>{const n=document.activeElement;return!!(n&&["input","textarea"].indexOf(n.tagName.toLowerCase())>=0)&&(this.runDOMCommand(),!0)}),e.addImplementation(0,"generic-dom",(e,t)=>{const n=e.get(l["a"]).getActiveCodeEditor();return!!n&&(n.focus(),this._runEditorCommand(e,n,t))})}_runEditorCommand(e,t,n){const i=this.runEditorCommand(e,t,n);return i||!0}}(function(e){class t extends _{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[p["b"].moveTo(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),e.revealPrimaryCursor(t.source,!0)}}e.MoveTo=Object(a["k"])(new t({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),e.MoveToSelect=Object(a["k"])(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class n extends _{runCoreEditorCommand(e,t){e.model.pushStackElement();const n=this._getColumnSelectResult(e,e.getPrimaryCursorState(),e.getCursorColumnSelectData(),t);e.setCursorStates(t.source,3,n.viewStates.map(e=>c["d"].fromViewState(e))),e.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:n.fromLineNumber,fromViewVisualColumn:n.fromVisualColumn,toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),n.reversed?e.revealTopMostCursor(t.source):e.revealBottomMostCursor(t.source)}}e.ColumnSelect=Object(a["k"])(new class extends n{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(e,t,n,i){const r=e.model.validatePosition(i.position),o=e.coordinatesConverter.validateViewPosition(new u["a"](i.viewPosition.lineNumber,i.viewPosition.column),r);let s=i.doColumnSelect?n.fromViewLineNumber:o.lineNumber,a=i.doColumnSelect?n.fromViewVisualColumn:i.mouseColumn-1;return d.columnSelect(e.cursorConfig,e,s,a,o.lineNumber,i.mouseColumn-1)}}),e.CursorColumnSelectLeft=Object(a["k"])(new class extends n{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(e,t,n,i){return d.columnSelectLeft(e.cursorConfig,e,n)}}),e.CursorColumnSelectRight=Object(a["k"])(new class extends n{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(e,t,n,i){return d.columnSelectRight(e.cursorConfig,e,n)}});class o extends n{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,n,i){return d.columnSelectUp(e.cursorConfig,e,n,this._isPaged)}}e.CursorColumnSelectUp=Object(a["k"])(new o({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=Object(a["k"])(new o({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:3595,linux:{primary:0}}}));class l extends n{constructor(e){super(e),this._isPaged=e.isPaged}_getColumnSelectResult(e,t,n,i){return d.columnSelectDown(e.cursorConfig,e,n,this._isPaged)}}e.CursorColumnSelectDown=Object(a["k"])(new l({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=Object(a["k"])(new l({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:3596,linux:{primary:0}}}));class f extends _{constructor(){super({id:"cursorMove",precondition:void 0,description:p["a"].description})}runCoreEditorCommand(e,t){const n=p["a"].parse(t);n&&this._runCursorMove(e,t.source,n)}_runCursorMove(e,t,n){e.model.pushStackElement(),e.setCursorStates(t,3,f._move(e,e.getCursorStates(),n)),e.revealPrimaryCursor(t,!0)}static _move(e,t,n){const i=n.select,r=n.value;switch(n.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return p["b"].simpleMove(e,t,n.direction,i,r,n.unit);case 11:case 13:case 12:case 14:return p["b"].viewportMove(e,t,n.direction,i,r);default:return null}}}e.CursorMoveImpl=f,e.CursorMove=Object(a["k"])(new f);class g extends _{constructor(e){super(e),this._staticArgs=e.args}runCoreEditorCommand(e,t){let n=this._staticArgs;-1===this._staticArgs.value&&(n={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:e.cursorConfig.pageSize}),e.model.pushStackElement(),e.setCursorStates(t.source,3,p["b"].simpleMove(e,e.getCursorStates(),n.direction,n.select,n.value,n.unit)),e.revealPrimaryCursor(t.source,!0)}}e.CursorLeft=Object(a["k"])(new g({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=Object(a["k"])(new g({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:1039}})),e.CursorRight=Object(a["k"])(new g({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=Object(a["k"])(new g({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:1041}})),e.CursorUp=Object(a["k"])(new g({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=Object(a["k"])(new g({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=Object(a["k"])(new g({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:11}})),e.CursorPageUpSelect=Object(a["k"])(new g({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:1035}})),e.CursorDown=Object(a["k"])(new g({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=Object(a["k"])(new g({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=Object(a["k"])(new g({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:12}})),e.CursorPageDownSelect=Object(a["k"])(new g({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:1036}})),e.CreateCursor=Object(a["k"])(new class extends _{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(e,t){let n;n=t.wholeLine?p["b"].line(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition):p["b"].moveTo(e,e.getPrimaryCursorState(),!1,t.position,t.viewPosition);const i=e.getCursorStates();if(i.length>1){const r=n.modelState?n.modelState.position:null,o=n.viewState?n.viewState.position:null;for(let n=0,s=i.length;n<s;n++){const s=i[n];if((!r||s.modelState.selection.containsPosition(r))&&(!o||s.viewState.selection.containsPosition(o)))return i.splice(n,1),e.model.pushStackElement(),void e.setCursorStates(t.source,3,i)}}i.push(n),e.model.pushStackElement(),e.setCursorStates(t.source,3,i)}}),e.LastCursorMoveToSelect=Object(a["k"])(new class extends _{constructor(){super({id:"_lastCursorMoveToSelect",precondition:void 0})}runCoreEditorCommand(e,t){const n=e.getLastAddedCursorIndex(),i=e.getCursorStates(),r=i.slice(0);r[n]=p["b"].moveTo(e,i[n],!0,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,r)}});class v extends _{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p["b"].moveToBeginningOfLine(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}e.CursorHome=Object(a["k"])(new v({inSelectionMode:!1,id:"cursorHome",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}})),e.CursorHomeSelect=Object(a["k"])(new v({inSelectionMode:!0,id:"cursorHomeSelect",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));class b extends _{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e.getCursorStates())),e.revealPrimaryCursor(t.source,!0)}_exec(e){const t=[];for(let n=0,i=e.length;n<i;n++){const i=e[n],r=i.modelState.position.lineNumber;t[n]=c["d"].fromModelState(i.modelState.move(this._inSelectionMode,r,1,0))}return t}}e.CursorLineStart=Object(a["k"])(new b({inSelectionMode:!1,id:"cursorLineStart",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:0,mac:{primary:287}}})),e.CursorLineStartSelect=Object(a["k"])(new b({inSelectionMode:!0,id:"cursorLineStartSelect",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:0,mac:{primary:1311}}}));class S extends _{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p["b"].moveToEndOfLine(e,e.getCursorStates(),this._inSelectionMode,t.sticky||!1)),e.revealPrimaryCursor(t.source,!0)}}e.CursorEnd=Object(a["k"])(new S({inSelectionMode:!1,id:"cursorEnd",precondition:void 0,kbOpts:{args:{sticky:!1},weight:y,kbExpr:m["a"].textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}},description:{description:"Go to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:i["a"]("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}})),e.CursorEndSelect=Object(a["k"])(new S({inSelectionMode:!0,id:"cursorEndSelect",precondition:void 0,kbOpts:{args:{sticky:!1},weight:y,kbExpr:m["a"].textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}},description:{description:"Select to End",args:[{name:"args",schema:{type:"object",properties:{sticky:{description:i["a"]("stickydesc","Stick to the end even when going to longer lines"),type:"boolean",default:!1}}}}]}}));class O extends _{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,this._exec(e,e.getCursorStates())),e.revealPrimaryCursor(t.source,!0)}_exec(e,t){const n=[];for(let i=0,r=t.length;i<r;i++){const r=t[i],o=r.modelState.position.lineNumber,s=e.model.getLineMaxColumn(o);n[i]=c["d"].fromModelState(r.modelState.move(this._inSelectionMode,o,s,0))}return n}}e.CursorLineEnd=Object(a["k"])(new O({inSelectionMode:!1,id:"cursorLineEnd",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:0,mac:{primary:291}}})),e.CursorLineEndSelect=Object(a["k"])(new O({inSelectionMode:!0,id:"cursorLineEndSelect",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:0,mac:{primary:1315}}}));class k extends _{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p["b"].moveToBeginningOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}e.CursorTop=Object(a["k"])(new k({inSelectionMode:!1,id:"cursorTop",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:2062,mac:{primary:2064}}})),e.CursorTopSelect=Object(a["k"])(new k({inSelectionMode:!0,id:"cursorTopSelect",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:3086,mac:{primary:3088}}}));class L extends _{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p["b"].moveToEndOfBuffer(e,e.getCursorStates(),this._inSelectionMode)),e.revealPrimaryCursor(t.source,!0)}}e.CursorBottom=Object(a["k"])(new L({inSelectionMode:!1,id:"cursorBottom",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:2061,mac:{primary:2066}}})),e.CursorBottomSelect=Object(a["k"])(new L({inSelectionMode:!0,id:"cursorBottomSelect",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:3085,mac:{primary:3090}}}));class E extends _{constructor(){super({id:"editorScroll",precondition:void 0,description:w.description})}runCoreEditorCommand(e,t){const n=w.parse(t);n&&this._runEditorScroll(e,t.source,n)}_runEditorScroll(e,t,n){const i=this._computeDesiredScrollTop(e,n);if(n.revealCursor){const r=e.getCompletelyVisibleViewRangeAtScrollTop(i);e.setCursorStates(t,3,[p["b"].findPositionInViewportIfOutside(e,e.getPrimaryCursorState(),r,n.select)])}e.setScrollTop(i,0)}_computeDesiredScrollTop(e,t){if(1===t.unit){const n=e.getCompletelyVisibleViewRange(),i=e.coordinatesConverter.convertViewRangeToModelRange(n);let r;r=1===t.direction?Math.max(1,i.startLineNumber-t.value):Math.min(e.model.getLineCount(),i.startLineNumber+t.value);const o=e.coordinatesConverter.convertModelPositionToViewPosition(new u["a"](r,1));return e.getVerticalOffsetForLineNumber(o.lineNumber)}let n;n=3===t.unit?e.cursorConfig.pageSize*t.value:4===t.unit?Math.round(e.cursorConfig.pageSize/2)*t.value:t.value;const i=(1===t.direction?-1:1)*n;return e.getScrollTop()+i*e.cursorConfig.lineHeight}}e.EditorScrollImpl=E,e.EditorScroll=Object(a["k"])(new E),e.ScrollLineUp=Object(a["k"])(new class extends _{constructor(){super({id:"scrollLineUp",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:2064,mac:{primary:267}}})}runCoreEditorCommand(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})}}),e.ScrollPageUp=Object(a["k"])(new class extends _{constructor(){super({id:"scrollPageUp",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})}runCoreEditorCommand(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})}}),e.ScrollLineDown=Object(a["k"])(new class extends _{constructor(){super({id:"scrollLineDown",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:2066,mac:{primary:268}}})}runCoreEditorCommand(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})}}),e.ScrollPageDown=Object(a["k"])(new class extends _{constructor(){super({id:"scrollPageDown",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})}runCoreEditorCommand(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})}});class D extends _{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[p["b"].word(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position)]),e.revealPrimaryCursor(t.source,!0)}}e.WordSelect=Object(a["k"])(new D({inSelectionMode:!1,id:"_wordSelect",precondition:void 0})),e.WordSelectDrag=Object(a["k"])(new D({inSelectionMode:!0,id:"_wordSelectDrag",precondition:void 0})),e.LastCursorWordSelect=Object(a["k"])(new class extends _{constructor(){super({id:"lastCursorWordSelect",precondition:void 0})}runCoreEditorCommand(e,t){const n=e.getLastAddedCursorIndex(),i=e.getCursorStates(),r=i.slice(0),o=i[n];r[n]=p["b"].word(e,o,o.modelState.hasSelection(),t.position),e.model.pushStackElement(),e.setCursorStates(t.source,3,r)}});class I extends _{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[p["b"].line(e,e.getPrimaryCursorState(),this._inSelectionMode,t.position,t.viewPosition)]),e.revealPrimaryCursor(t.source,!1)}}e.LineSelect=Object(a["k"])(new I({inSelectionMode:!1,id:"_lineSelect",precondition:void 0})),e.LineSelectDrag=Object(a["k"])(new I({inSelectionMode:!0,id:"_lineSelectDrag",precondition:void 0}));class M extends _{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode}runCoreEditorCommand(e,t){const n=e.getLastAddedCursorIndex(),i=e.getCursorStates(),r=i.slice(0);r[n]=p["b"].line(e,i[n],this._inSelectionMode,t.position,t.viewPosition),e.model.pushStackElement(),e.setCursorStates(t.source,3,r)}}e.LastCursorLineSelect=Object(a["k"])(new M({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:void 0})),e.LastCursorLineSelectDrag=Object(a["k"])(new M({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:void 0})),e.ExpandLineSelection=Object(a["k"])(new class extends _{constructor(){super({id:"expandLineSelection",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:2090}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,p["b"].expandLineSelection(e,e.getCursorStates())),e.revealPrimaryCursor(t.source,!0)}}),e.CancelSelection=Object(a["k"])(new class extends _{constructor(){super({id:"cancelSelection",precondition:m["a"].hasNonEmptySelection,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[p["b"].cancelSelection(e,e.getPrimaryCursorState())]),e.revealPrimaryCursor(t.source,!0)}}),e.RemoveSecondaryCursors=Object(a["k"])(new class extends _{constructor(){super({id:"removeSecondaryCursors",precondition:m["a"].hasMultipleSelections,kbOpts:{weight:y+1,kbExpr:m["a"].textInputFocus,primary:9,secondary:[1033]}})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[e.getPrimaryCursorState()]),e.revealPrimaryCursor(t.source,!0),Object(s["c"])(i["a"]("removedCursor","Removed secondary cursors"))}}),e.RevealLine=Object(a["k"])(new class extends _{constructor(){super({id:"revealLine",precondition:void 0,description:C.description})}runCoreEditorCommand(e,t){const n=t,i=n.lineNumber||0;let r="number"===typeof i?i+1:parseInt(i)+1;r<1&&(r=1);const o=e.model.getLineCount();r>o&&(r=o);const s=new h["a"](r,1,r,e.model.getLineMaxColumn(r));let 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;break;default:break}const l=e.coordinatesConverter.convertModelRangeToViewRange(s);e.revealRange(t.source,!1,l,a,0)}}),e.SelectAll=new class extends x{constructor(){super(a["h"])}runDOMCommand(){r["g"]&&(document.activeElement.focus(),document.activeElement.select()),document.execCommand("selectAll")}runEditorCommand(e,t,n){const i=t._getViewModel();i&&this.runCoreEditorCommand(i,n)}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates("keyboard",3,[p["b"].selectAll(e,e.getPrimaryCursorState())])}},e.SetSelection=Object(a["k"])(new class extends _{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(e,t){e.model.pushStackElement(),e.setCursorStates(t.source,3,[c["d"].fromModelSelection(t.selection)])}})})(S||(S={}));const O=v["a"].and(m["a"].textInputFocus,m["a"].columnSelection);function k(e,t){b["a"].registerKeybindingRule({id:e,primary:t,when:O,weight:y+1})}function L(e){return e.register(),e}var E;k(S.CursorColumnSelectLeft.id,1039),k(S.CursorColumnSelectRight.id,1041),k(S.CursorColumnSelectUp.id,1040),k(S.CursorColumnSelectPageUp.id,1035),k(S.CursorColumnSelectDown.id,1042),k(S.CursorColumnSelectPageDown.id,1036),function(e){class t extends a["c"]{runEditorCommand(e,t,n){const i=t._getViewModel();i&&this.runCoreEditingCommand(t,i,n||{})}}e.CoreEditingCommand=t,e.LineBreakInsert=Object(a["k"])(new class extends t{constructor(){super({id:"lineBreakInsert",precondition:m["a"].writable,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,g["a"].lineBreakInsert(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection)))}}),e.Outdent=Object(a["k"])(new class extends t{constructor(){super({id:"outdent",precondition:m["a"].writable,kbOpts:{weight:y,kbExpr:v["a"].and(m["a"].editorTextFocus,m["a"].tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,g["a"].outdent(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection))),e.pushUndoStop()}}),e.Tab=Object(a["k"])(new class extends t{constructor(){super({id:"tab",precondition:m["a"].writable,kbOpts:{weight:y,kbExpr:v["a"].and(m["a"].editorTextFocus,m["a"].tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,g["a"].tab(t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection))),e.pushUndoStop()}}),e.DeleteLeft=Object(a["k"])(new class extends t{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(e,t,n){const[i,r]=f["a"].deleteLeft(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection),t.getCursorAutoClosedCharacters());i&&e.pushUndoStop(),e.executeCommands(this.id,r),t.setPrevEditOperationType(2)}}),e.DeleteRight=Object(a["k"])(new class extends t{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:y,kbExpr:m["a"].textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(e,t,n){const[i,r]=f["a"].deleteRight(t.getPrevEditOperationType(),t.cursorConfig,t.model,t.getCursorStates().map(e=>e.modelState.selection));i&&e.pushUndoStop(),e.executeCommands(this.id,r),t.setPrevEditOperationType(3)}}),e.Undo=new class extends x{constructor(){super(a["i"])}runDOMCommand(){document.execCommand("undo")}runEditorCommand(e,t,n){if(t.hasModel()&&!0!==t.getOption(79))return t.getModel().undo()}},e.Redo=new class extends x{constructor(){super(a["g"])}runDOMCommand(){document.execCommand("redo")}runEditorCommand(e,t,n){if(t.hasModel()&&!0!==t.getOption(79))return t.getModel().redo()}}}(E||(E={}));class D extends a["a"]{constructor(e,t,n){super({id:e,precondition:void 0,description:n}),this._handlerId=t}runCommand(e,t){const n=e.get(l["a"]).getFocusedCodeEditor();n&&n.trigger("keyboard",this._handlerId,t)}}function I(e,t){L(new D("default:"+e,e)),L(new D(e,e,t))}I("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),I("replacePreviousChar"),I("compositionType"),I("compositionStart"),I("compositionEnd"),I("paste"),I("cut")},d58f:function(e,t,n){var i=n("59ed"),r=n("7b0b"),o=n("44ad"),s=n("07fa"),a=TypeError,l=function(e){return function(t,n,l,c){i(n);var u=r(t),h=o(u),d=s(u),f=e?d-1:0,p=e?-1:1;if(l<2)while(1){if(f in h){c=h[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw a("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=p)f in h&&(c=n(c,h[f],f,u));return c}};e.exports={left:l(!1),right:l(!0)}},d5b7:function(e,t,n){"use strict";var i=n("8582"),r=n("06ad"),o=n("9850"),s=n("6fd3"),a=n("e86a"),l=n("6d8b"),c=n("2cf4"),u=n("41ef"),h=n("4bc4"),d="__zr_normal__",f=i["a"].concat(["ignore"]),p=Object(l["reduce"])(i["a"],(function(e,t){return e[t]=!0,e}),{ignore:!1}),g={},m=new o["a"](0,0,0,0),v=function(){function e(e){this.id=Object(l["guid"])(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=t.innerTransformable,o=void 0,s=void 0,l=!1;r.parent=i?this:null;var c=!1;if(r.copyTransform(t),null!=n.position){var u=m;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(g,n,u):Object(a["c"])(g,n,u),r.x=g.x,r.y=g.y,o=g.align,s=g.verticalAlign;var d=n.origin;if(d&&null!=n.rotation){var f=void 0,p=void 0;"center"===d?(f=.5*u.width,p=.5*u.height):(f=Object(a["g"])(d[0],u.width),p=Object(a["g"])(d[1],u.height)),c=!0,r.originX=-r.x+f+(i?0:u.x),r.originY=-r.y+p+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var v=n.offset;v&&(r.x+=v[0],r.y+=v[1],c||(r.originX=-v[0],r.originY=-v[1]));var b=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),_=void 0,w=void 0,C=void 0;b&&this.canBeInsideText()?(_=n.insideFill,w=n.insideStroke,null!=_&&"auto"!==_||(_=this.getInsideTextFill()),null!=w&&"auto"!==w||(w=this.getInsideTextStroke(_),C=!0)):(_=n.outsideFill,w=n.outsideStroke,null!=_&&"auto"!==_||(_=this.getOutsideFill()),null!=w&&"auto"!==w||(w=this.getOutsideStroke(_),C=!0)),_=_||"#000",_===y.fill&&w===y.stroke&&C===y.autoStroke&&o===y.align&&s===y.verticalAlign||(l=!0,y.fill=_,y.stroke=w,y.autoStroke=C,y.align=o,y.verticalAlign=s,t.setDefaultTextStyle(y)),t.__dirty|=h["a"],l&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?c["d"]:c["a"]},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&Object(u["parse"])(t);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Object(u["stringify"])(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Object(l["extend"])(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(Object(l["isObject"])(e))for(var n=e,i=Object(l["keys"])(n),r=0;r<i.length;r++){var o=i[r];this.attrKV(o,e[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==d)){var o=i.targetName,s=o?t[o]:t;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,f)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null==e[r]||r in t||(t[r]=this[r])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(d,!1,e)},e.prototype.useState=function(e,t,n,i){var r=e===d,o=this.hasState();if(o||!r){var s=this.currentStates,a=this.stateTransition;if(!(Object(l["indexOf"])(s,e)>=0)||!t&&1!==s.length){var c;if(this.stateProxy&&!r&&(c=this.stateProxy(e)),c||(c=this.states&&this.states[e]),c||r){r||this.saveCurrentToNormalState(c);var u=!!(c&&c.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,c,this._normalState,t,!n&&!this.__inHover&&a&&a.duration>0,a);var f=this._textContent,p=this._textGuide;return f&&f.useState(e,t,n,u),p&&p.useState(e,t,n,u),r?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h["a"]),c}Object(l["logError"])("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var i=[],r=this.currentStates,o=e.length,s=o===r.length;if(s)for(var a=0;a<o;a++)if(e[a]!==r[a]){s=!1;break}if(s)return;for(a=0;a<o;a++){var l=e[a],c=void 0;this.stateProxy&&(c=this.stateProxy(l,e)),c||(c=this.states[l]),c&&i.push(c)}var u=i[o-1],d=!!(u&&u.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(e.join(","),f,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,t,d),m&&m.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h["a"])}else this.clearStates()},e.prototype.isSilent=function(){var e=this.silent,t=this.parent;while(!e&&t){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=Object(l["indexOf"])(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),r=Object(l["indexOf"])(i,e),o=Object(l["indexOf"])(i,t)>=0;r>=0?o?i.splice(r,1):i[r]=t:n&&!o&&i.push(t),this.useStates(i)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},i=0;i<e.length;i++){var r=e[i];Object(l["extend"])(n,r),r.textConfig&&(t=t||{},Object(l["extend"])(t,r.textConfig))}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,i,r,o){var s=!(t&&i);t&&t.textConfig?(this.textConfig=Object(l["extend"])({},i?this.textConfig:n.textConfig),Object(l["extend"])(this.textConfig,t.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var a={},c=!1,u=0;u<f.length;u++){var h=f[u],d=r&&p[h];t&&null!=t[h]?d?(c=!0,a[h]=t[h]):this[h]=t[h]:s&&null!=n[h]&&(d?(c=!0,a[h]=n[h]):this[h]=n[h])}if(!r)for(u=0;u<this.animators.length;u++){var g=this.animators[u],m=g.targetName;g.getLoop()||g.__changeFinalValue(m?(t||n)[m]:t||n)}c&&this._transitionState(e,a,o)},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new i["c"],this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Object(l["extend"])(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=h["a"];var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var i=e?this[e]:this;var o=new r["b"](i,t,n);return e&&(o.targetName=e),this.addAnimator(o,e),o},e.prototype.addAnimator=function(e,t){var n=this.__zr,i=this;e.during((function(){i.updateDuringAnimation(t)})).done((function(){var t=i.animators,n=Object(l["indexOf"])(t,e);n>=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var s=n[o];e&&e!==s.scope?r.push(s):s.stop(t)}return this.animators=r,this},e.prototype.animateTo=function(e,t,n){b(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){b(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,i){for(var r=b(this,t,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=h["a"];function n(e,n,i,r){function o(e,t){Object.defineProperty(t,0,{get:function(){return e[i]},set:function(t){e[i]=t}}),Object.defineProperty(t,1,{get:function(){return e[r]},set:function(t){e[r]=t}})}Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];o(this,e)}return this[n]},set:function(e){this[i]=e[0],this[r]=e[1],this[n]=e,o(this,e)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function b(e,t,n,i,r){n=n||{};var o=[];x(e,"",e,t,n,i,o,r);var s=o.length,a=!1,l=n.done,c=n.aborted,u=function(){a=!0,s--,s<=0&&(a?l&&l():c&&c())},h=function(){s--,s<=0&&(a?l&&l():c&&c())};s||l&&l(),o.length>0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var d=0;d<o.length;d++){var f=o[d];u&&f.done(u),h&&f.aborted(h),n.force&&f.duration(n.duration),f.start(n.easing)}return o}function y(e,t,n){for(var i=0;i<n;i++)e[i]=t[i]}function _(e){return Object(l["isArrayLike"])(e[0])}function w(e,t,n){if(Object(l["isArrayLike"])(t[n]))if(Object(l["isArrayLike"])(e[n])||(e[n]=[]),Object(l["isTypedArray"])(t[n])){var i=t[n].length;e[n].length!==i&&(e[n]=new t[n].constructor(i),y(e[n],t[n],i))}else{var r=t[n],o=e[n],s=r.length;if(_(r))for(var a=r[0].length,c=0;c<s;c++)o[c]?y(o[c],r[c],a):o[c]=Array.prototype.slice.call(r[c]);else y(o,r,s);o.length=r.length}else e[n]=t[n]}function C(e,t){return e===t||Object(l["isArrayLike"])(e)&&Object(l["isArrayLike"])(t)&&S(e,t)}function S(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function x(e,t,n,i,o,s,a,c){for(var u=Object(l["keys"])(i),h=o.duration,d=o.delay,f=o.additive,p=o.setToFinal,g=!Object(l["isObject"])(s),m=e.animators,v=[],b=0;b<u.length;b++){var y=u[b],_=i[y];if(null!=_&&null!=n[y]&&(g||s[y]))if(!Object(l["isObject"])(_)||Object(l["isArrayLike"])(_)||Object(l["isGradientObject"])(_))v.push(y);else{if(t){c||(n[y]=_,e.updateDuringAnimation(t));continue}x(e,y,n[y],_,o,s&&s[y],a,c)}else c||(n[y]=_,e.updateDuringAnimation(t),v.push(y))}var S=v.length;if(!f&&S)for(var O=0;O<m.length;O++){var k=m[O];if(k.targetName===t){var L=k.stopTracks(v);if(L){var E=Object(l["indexOf"])(m,k);m.splice(E,1)}}}if(o.force||(v=Object(l["filter"])(v,(function(e){return!C(i[e],n[e])})),S=v.length),S>0||o.force&&!a.length){var D=void 0,I=void 0,M=void 0;if(c){I={},p&&(D={});for(O=0;O<S;O++){y=v[O];I[y]=n[y],p?D[y]=i[y]:n[y]=i[y]}}else if(p){M={};for(O=0;O<S;O++){y=v[O];M[y]=Object(r["a"])(n[y]),w(n,i,y)}}k=new r["b"](n,!1,!1,f?Object(l["filter"])(m,(function(e){return e.targetName===t})):null);k.targetName=t,o.scope&&(k.scope=o.scope),p&&D&&k.whenWithKeys(0,D,v),M&&k.whenWithKeys(0,M,v),k.whenWithKeys(null==h?500:h,c?I:i,v).delay(d||0),e.addAnimator(k,t),a.push(k)}}Object(l["mixin"])(v,s["a"]),Object(l["mixin"])(v,i["c"]),t["a"]=v},d633:function(e,t){function n(e,t){if(e&&t)return n(e)(t);if("function"!==typeof e)throw new TypeError("need wrapper function");return Object.keys(e).forEach((function(t){i[t]=e[t]})),i;function i(){for(var t=new Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];var i=e.apply(this,t),r=t[t.length-1];return"function"===typeof i&&i!==r&&Object.keys(r).forEach((function(e){i[e]=r[e]})),i}}e.exports=n},d65c:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:function(){return n.e("chunk-2d0d61fd").then(n.bind(null,"70e3"))}})},d6d3:function(e,t,n){!function(t,i){e.exports=i(n("3d33"))}(0,(function(e){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=3)}([function(t,n){t.exports=e},function(e,t,n){"use strict";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}Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(e){return e&&e.__esModule?e:{default:e}}(r),s=window.videojs||o.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),i=1;i<arguments.length;i++){var r=arguments[i];if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])}return n},writable:!0,configurable:!0});var a=["loadeddata","canplay","canplaythrough","play","pause","waiting","playing","ended","error"];t.default={name:"video-player",props:{start:{type:Number,default:0},crossOrigin:{type:String,default:""},playsinline:{type:Boolean,default:!1},customEventName:{type:String,default:"statechanged"},options:{type:Object,required:!0},events:{type:Array,default:function(){return[]}},globalOptions:{type:Object,default:function(){return{controls:!0,controlBar:{remainingTimeDisplay:!1,playToggle:{},progressControl:{},fullscreenToggle:{},volumeMenuButton:{inline:!1,vertical:!0}},techOrder:["html5"],plugins:{}}}},globalEvents:{type:Array,default:function(){return[]}}},data:function(){return{player:null,reseted:!0}},mounted:function(){this.player||this.initialize()},beforeDestroy:function(){this.player&&this.dispose()},methods:{initialize:function(){var e=this,t=Object.assign({},this.globalOptions,this.options);this.playsinline&&(this.$refs.video.setAttribute("playsinline",this.playsinline),this.$refs.video.setAttribute("webkit-playsinline",this.playsinline),this.$refs.video.setAttribute("x5-playsinline",this.playsinline),this.$refs.video.setAttribute("x5-video-player-type","h5"),this.$refs.video.setAttribute("x5-video-player-fullscreen",!1)),""!==this.crossOrigin&&(this.$refs.video.crossOrigin=this.crossOrigin,this.$refs.video.setAttribute("crossOrigin",this.crossOrigin));var n=function(t,n){t&&e.$emit(t,e.player),n&&e.$emit(e.customEventName,i({},t,n))};t.plugins&&delete t.plugins.__ob__;var r=this;this.player=s(this.$refs.video,t,(function(){for(var e=this,t=a.concat(r.events).concat(r.globalEvents),i={},o=0;o<t.length;o++)"string"==typeof t[o]&&void 0===i[t[o]]&&function(t){i[t]=null,e.on(t,(function(){n(t,!0)}))}(t[o]);this.on("timeupdate",(function(){n("timeupdate",this.currentTime())})),r.$emit("ready",this)}))},dispose:function(e){var t=this;this.player&&this.player.dispose&&("Flash"!==this.player.techName_&&this.player.pause&&this.player.pause(),this.player.dispose(),this.player=null,this.$nextTick((function(){t.reseted=!1,t.$nextTick((function(){t.reseted=!0,t.$nextTick((function(){e&&e()}))}))})))}},watch:{options:{deep:!0,handler:function(e,t){var n=this;this.dispose((function(){e&&e.sources&&e.sources.length&&n.initialize()}))}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),r=n.n(i);for(var o in i)["default","default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var s=n(5),a=n(4),l=a(r.a,s.a,!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.install=t.videoPlayer=t.videojs=void 0;var r=n(0),o=i(r),s=n(2),a=i(s),l=window.videojs||o.default,c=function(e,t){t&&(t.options&&(a.default.props.globalOptions.default=function(){return t.options}),t.events&&(a.default.props.globalEvents.default=function(){return t.events})),e.component(a.default.name,a.default)},u={videojs:l,videoPlayer:a.default,install:c};t.default=u,t.videojs=l,t.videoPlayer=a.default,t.install=c},function(e,t){e.exports=function(e,t,n,i,r,o){var s,a=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(s=e,a=e.default);var c,u="function"==typeof a?a.options:a;if(t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId=r),o?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=c):i&&(c=i),c){var h=u.functional,d=h?u.render:u.beforeCreate;h?(u._injectStyles=c,u.render=function(e,t){return c.call(t),d(e,t)}):u.beforeCreate=d?[].concat(d,c):[c]}return{esModule:s,exports:a,options:u}}},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.reseted?n("div",{staticClass:"video-player"},[n("video",{ref:"video",staticClass:"video-js"})]):e._e()},r=[],o={render:i,staticRenderFns:r};t.a=o}])}))},d6d6:function(e,t){var n=TypeError;e.exports=function(e,t){if(e<t)throw n("Not enough arguments");return e}},d741:function(e,t,n){"use strict";n.r(t),n.d(t,"provideSelectionRanges",(function(){return x}));var i=n("e8e3"),r=n("2504"),o=n("b2cc"),s=n("7061"),a=n("6a89"),l=n("8025"),c=n("c101"),u=n("b707"),h=n("dff7"),d=n("7e32"),f=n("3742");class p{provideSelectionRanges(e,t){const n=[];for(const i of t){const t=[];n.push(t),this._addInWordRanges(t,e,i),this._addWordRanges(t,e,i),this._addWhitespaceLine(t,e,i),t.push({range:e.getFullModelRange()})}return n}_addInWordRanges(e,t,n){const i=t.getWordAtPosition(n);if(!i)return;let{word:r,startColumn:o}=i,s=n.column-o,l=s,c=s,u=0;for(;l>=0;l--){let e=r.charCodeAt(l);if(l!==s&&(95===e||45===e))break;if(Object(f["H"])(e)&&Object(f["I"])(u))break;u=e}for(l+=1;c<r.length;c++){let e=r.charCodeAt(c);if(Object(f["I"])(e)&&Object(f["H"])(u))break;if(95===e||45===e)break;u=e}l<c&&e.push({range:new a["a"](n.lineNumber,o+l,n.lineNumber,o+c)})}_addWordRanges(e,t,n){const i=t.getWordAtPosition(n);i&&e.push({range:new a["a"](n.lineNumber,i.startColumn,n.lineNumber,i.endColumn)})}_addWhitespaceLine(e,t,n){t.getLineLength(n.lineNumber)>0&&0===t.getLineFirstNonWhitespaceColumn(n.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(n.lineNumber)&&e.push({range:new a["a"](n.lineNumber,1,n.lineNumber,t.getLineMaxColumn(n.lineNumber))})}}var g=n("67b4"),m=n("9e74"),v=n("fdcc"),b=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class y{constructor(e,t){this.index=e,this.ranges=t}mov(e){let t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;const n=new y(t,this.ranges);return n.ranges[t].equalsRange(this.ranges[this.index])?n.mov(e):n}}class _{constructor(e){this._editor=e,this._ignoreSelection=!1}static get(e){return e.getContribution(_.ID)}dispose(){var e;null===(e=this._selectionListener)||void 0===e||e.dispose()}run(e){return b(this,void 0,void 0,(function*(){if(!this._editor.hasModel())return;const t=this._editor.getSelections(),n=this._editor.getModel();if(!u["A"].has(n))return;if(this._state||(yield x(n,t.map(e=>e.getPosition()),this._editor.getOption(101),r["a"].None).then(e=>{var n;if(i["n"](e)&&e.length===t.length&&this._editor.hasModel()&&i["h"](this._editor.getSelections(),t,(e,t)=>e.equalsSelection(t))){for(let n=0;n<e.length;n++)e[n]=e[n].filter(e=>e.containsPosition(t[n].getStartPosition())&&e.containsPosition(t[n].getEndPosition())),e[n].unshift(t[n]);this._state=e.map(e=>new y(0,e)),null===(n=this._selectionListener)||void 0===n||n.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{var e;this._ignoreSelection||(null===(e=this._selectionListener)||void 0===e||e.dispose(),this._state=void 0)})}})),!this._state)return;this._state=this._state.map(t=>t.mov(e));const o=this._state.map(e=>l["a"].fromPositions(e.ranges[e.index].getStartPosition(),e.ranges[e.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(o)}finally{this._ignoreSelection=!1}}))}}_.ID="editor.contrib.smartSelectController";class w extends o["b"]{constructor(e,t){super(t),this._forward=e}run(e,t){return b(this,void 0,void 0,(function*(){let e=_.get(t);e&&(yield e.run(this._forward))}))}}class C extends w{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:h["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:d["b"].MenubarSelectionMenu,group:"1_basic",title:h["a"]({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}m["a"].registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");class S extends w{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:h["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:d["b"].MenubarSelectionMenu,group:"1_basic",title:h["a"]({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}function x(e,t,n,r){return b(this,void 0,void 0,(function*(){const o=u["A"].all(e);1===o.length&&o.unshift(new g["a"]);let l=[],c=[];for(const n of o)l.push(Promise.resolve(n.provideSelectionRanges(e,t,r)).then(e=>{if(i["n"](e)&&e.length===t.length)for(let n=0;n<t.length;n++){c[n]||(c[n]=[]);for(const i of e[n])a["a"].isIRange(i.range)&&a["a"].containsPosition(i.range,t[n])&&c[n].push(a["a"].lift(i.range))}},v["f"]));return yield Promise.all(l),c.map(t=>{if(0===t.length)return[];t.sort((e,t)=>s["a"].isBefore(e.getStartPosition(),t.getStartPosition())?1:s["a"].isBefore(t.getStartPosition(),e.getStartPosition())||s["a"].isBefore(e.getEndPosition(),t.getEndPosition())?-1:s["a"].isBefore(t.getEndPosition(),e.getEndPosition())?1:0);let i,r=[];for(const e of t)(!i||a["a"].containsRange(e,i)&&!a["a"].equalsRange(e,i))&&(r.push(e),i=e);if(!n.selectLeadingAndTrailingWhitespace)return r;let o=[r[0]];for(let n=1;n<r.length;n++){const t=r[n-1],i=r[n];if(i.startLineNumber!==t.startLineNumber||i.endLineNumber!==t.endLineNumber){const n=new a["a"](t.startLineNumber,e.getLineFirstNonWhitespaceColumn(t.startLineNumber),t.endLineNumber,e.getLineLastNonWhitespaceColumn(t.endLineNumber));n.containsRange(t)&&!n.equalsRange(t)&&i.containsRange(n)&&!i.equalsRange(n)&&o.push(n);const r=new a["a"](t.startLineNumber,1,t.endLineNumber,e.getLineMaxColumn(t.endLineNumber));r.containsRange(t)&&!r.equalsRange(n)&&i.containsRange(r)&&!i.equalsRange(r)&&o.push(r)}o.push(i)}return o})}))}Object(o["l"])(_.ID,_),Object(o["j"])(C),Object(o["j"])(S),u["A"].register("*",new p),Object(o["o"])("_executeSelectionRangeProvider",(function(e,...t){const[n]=t;return x(e,n,{selectLeadingAndTrailingWhitespace:!0},r["a"].None)}))},d784:function(e,t,n){"use strict";n("ac1f");var i=n("e330"),r=n("cb2d"),o=n("9263"),s=n("d039"),a=n("b622"),l=n("9112"),c=a("species"),u=RegExp.prototype;e.exports=function(e,t,n,h){var d=a(e),f=!s((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),p=f&&!s((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!f||!p||n){var g=i(/./[d]),m=t(d,""[e],(function(e,t,n,r,s){var a=i(e),l=t.exec;return l===o||l===u.exec?f&&!s?{done:!0,value:g(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));r(String.prototype,e,m[0]),r(u,d,m[1])}h&&l(u[d],"sham",!0)}},d81d:function(e,t,n){"use strict";var i=n("23e7"),r=n("b727").map,o=n("1dde"),s=o("map");i({target:"Array",proto:!0,forced:!s},{map:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}})},d844:function(e,t,n){"use strict";n.r(t),n.d(t,"LinkDetector",(function(){return j}));n("607c");var i=n("dff7"),r=n("5fe7"),o=n("2504"),s=n("fdcc"),a=n("78bc"),l=n("a666"),c=n("30db"),u=n("b2cc"),h=n("b57f"),d=n("b707"),f=n("6816"),p=n("6d8e"),g=n("6a89"),m=n("1b69"),v=n("9e74"),b=n("e8e3"),y=n("ef8e"),_=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class w{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}resolve(e){return _(this,void 0,void 0,(function*(){return this._link.url?this._link.url:"function"===typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then(t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing")))):Promise.reject(new Error("missing"))}))}}class C{constructor(e){this._disposables=new l["b"];let t=[];for(const[n,i]of e){const e=n.links.map(e=>new w(e,i));t=C._union(t,e),Object(l["g"])(n)&&this._disposables.add(n)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){let n,i,r,o,s=[];for(n=0,r=0,i=e.length,o=t.length;n<i&&r<o;){const i=e[n],o=t[r];if(g["a"].areIntersectingOrTouching(i.range,o.range)){n++;continue}const a=g["a"].compareRangesUsingStarts(i.range,o.range);a<0?(s.push(i),n++):(s.push(o),r++)}for(;n<i;n++)s.push(e[n]);for(;r<o;r++)s.push(t[r]);return s}}function S(e,t){const n=[],i=d["v"].ordered(e).reverse().map((i,r)=>Promise.resolve(i.provideLinks(e,t)).then(e=>{e&&(n[r]=[e,i])},s["f"]));return Promise.all(i).then(()=>{const e=new C(Object(b["e"])(n));return t.isCancellationRequested?(e.dispose(),new C([])):e})}v["a"].registerCommand("_executeLinkProvider",(e,...t)=>_(void 0,void 0,void 0,(function*(){let[n,i]=t;Object(y["c"])(n instanceof p["a"]),"number"!==typeof i&&(i=0);const r=e.get(m["a"]).getModel(n);if(!r)return[];const s=yield S(r,o["a"].None);if(!s)return[];for(let e=0;e<Math.min(i,s.links.length);e++)yield s.links[e].resolve(o["a"].None);const a=s.links.slice(0);return s.dispose(),a})));var x=n("b0cd"),O=n("5bd7"),k=n("303e"),L=n("b7d0"),E=n("b589"),D=n("82c9"),I=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},M=function(e,t){return function(n,i){t(n,i,e)}},T=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};function A(e,t){const n=e.url&&/^command:/i.test(e.url.toString()),r=e.tooltip?e.tooltip:n?i["a"]("links.navigate.executeCmd","Execute command"):i["a"]("links.navigate.follow","Follow link"),o=t?c["f"]?i["a"]("links.navigate.kb.meta.mac","cmd + click"):i["a"]("links.navigate.kb.meta","ctrl + click"):c["f"]?i["a"]("links.navigate.kb.alt.mac","option + click"):i["a"]("links.navigate.kb.alt","alt + click");if(e.url){let t="";if(/^command:/i.test(e.url.toString())){const n=e.url.toString().match(/^command:([^?#]+)/);if(n){const e=n[1],r=i["a"]("tooltip.explanation","Execute command {0}",e);t=` "${r}"`}}const n=new a["a"]("",!0).appendMarkdown(`[${r}](${e.url.toString(!0)}${t}) (${o})`);return n}return(new a["a"]).appendText(`${r} (${o})`)}const N={general:h["a"].register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:h["a"].register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})};class P{constructor(e,t){this.link=e,this.decorationId=t}static decoration(e,t){return{range:e.range,options:P._getOptions(e,t,!1)}}static _getOptions(e,t,n){const i=Object.assign({},n?N.active:N.general);return i.hoverMessage=A(e,t),i}activate(e,t){e.changeDecorationOptions(this.decorationId,P._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,P._getOptions(this.link,t,!1))}}let j=class e{constructor(e,t,n){this.listenersToRemove=new l["b"],this.editor=e,this.openerService=t,this.notificationService=n;let i=new f["a"](e);this.listenersToRemove.add(i),this.listenersToRemove.add(i.onMouseMoveOrRelevantKeyDown(([e,t])=>{this._onEditorMouseMove(e,t)})),this.listenersToRemove.add(i.onExecute(e=>{this.onEditorMouseUp(e)})),this.listenersToRemove.add(i.onCancel(e=>{this.cleanUpActiveLinkDecoration()})),this.enabled=e.getOption(61),this.listenersToRemove.add(e.onDidChangeConfiguration(t=>{const n=e.getOption(61);this.enabled!==n&&(this.enabled=n,this.updateDecorations([]),this.stop(),this.beginCompute())})),this.listenersToRemove.add(e.onDidChangeModelContent(e=>this.onChange())),this.listenersToRemove.add(e.onDidChangeModel(e=>this.onModelChanged())),this.listenersToRemove.add(e.onDidChangeModelLanguage(e=>this.onModelModeChanged())),this.listenersToRemove.add(d["v"].onDidChange(e=>this.onModelModeChanged())),this.timeout=new r["g"],this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null,this.beginCompute()}static get(t){return t.getContribution(e.ID)}onModelChanged(){this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.beginCompute()}onModelModeChanged(){this.stop(),this.beginCompute()}onChange(){this.timeout.setIfNotSet(()=>this.beginCompute(),e.RECOMPUTE_TIME)}beginCompute(){return T(this,void 0,void 0,(function*(){if(!this.editor.hasModel()||!this.enabled)return;const e=this.editor.getModel();if(d["v"].has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=r["h"](t=>S(e,t));try{this.activeLinksList=yield this.computePromise,this.updateDecorations(this.activeLinksList.links)}catch(t){Object(s["e"])(t)}finally{this.computePromise=null}}}))}updateDecorations(e){const t="altKey"===this.editor.getOption(68);let n=[],i=Object.keys(this.currentOccurrences);for(let s=0,a=i.length;s<a;s++){let e=i[s],t=this.currentOccurrences[e];n.push(t.decorationId)}let r=[];if(e)for(const s of e)r.push(P.decoration(s,t));let o=this.editor.deltaDecorations(n,r);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let s=0,a=o.length;s<a;s++){let t=new P(e[s],o[s]);this.currentOccurrences[t.decorationId]=t}}_onEditorMouseMove(e,t){const n="altKey"===this.editor.getOption(68);if(this.isEnabled(e,t)){this.cleanUpActiveLinkDecoration();const t=this.getLinkOccurrence(e.target.position);t&&this.editor.changeDecorations(e=>{t.activate(e,n),this.activeLinkDecorationId=t.decorationId})}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const e="altKey"===this.editor.getOption(68);if(this.activeLinkDecorationId){const t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations(n=>{t.deactivate(n,e)}),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;const t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,n=!1){if(!this.openerService)return;const{link:r}=e;r.resolve(o["a"].None).then(e=>{if("string"===typeof e&&this.editor.hasModel()){const t=this.editor.getModel().uri;if(t.scheme===E["c"].file&&e.startsWith(E["c"].file+":")){const n=p["a"].parse(e);if(n.scheme===E["c"].file){const i=D["i"](n);let r=null;i.startsWith("/./")?r="."+i.substr(1):i.startsWith("//./")&&(r="."+i.substr(2)),r&&(e=D["g"](t,r))}}}return this.openerService.open(e,{openToSide:t,fromUserGesture:n,allowContributedOpeners:!0,allowCommands:!0})},e=>{const t=e instanceof Error?e.message:e;"invalid"===t?this.notificationService.warn(i["a"]("invalid.url","Failed to open this link because it is not well-formed: {0}",r.url.toString())):"missing"===t?this.notificationService.warn(i["a"]("missing.url","Failed to open this link because its target is missing.")):Object(s["e"])(e)})}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;const t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(const n of t){const e=this.currentOccurrences[n.id];if(e)return e}return null}isEnabled(e,t){return Boolean(6===e.target.type&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){var e;this.timeout.cancel(),this.activeLinksList&&(null===(e=this.activeLinksList)||void 0===e||e.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){this.listenersToRemove.dispose(),this.stop(),this.timeout.dispose()}};j.ID="editor.linkDetector",j.RECOMPUTE_TIME=1e3,j=I([M(1,O["a"]),M(2,x["a"])],j);class R extends u["b"]{constructor(){super({id:"editor.action.openLink",label:i["a"]("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){let n=j.get(t);if(!n)return;if(!t.hasModel())return;let i=t.getSelections();for(let r of i){let e=n.getLinkOccurrence(r.getEndPosition());e&&n.openLinkOccurrence(e,!1)}}}Object(u["l"])(j.ID,j),Object(u["j"])(R),Object(L["f"])((e,t)=>{const n=e.getColor(k["q"]);n&&t.addRule(`.monaco-editor .detected-link-active { color: ${n} !important; }`)})},d86b:function(e,t,n){var i=n("d039");e.exports=i((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},d8c3:function(e,t,n){},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d93b:function(e,t,n){},d95f:function(e,t,n){},d998:function(e,t,n){var i=n("342f");e.exports=/MSIE|Trident/.test(i)},d9b5:function(e,t,n){var i=n("d066"),r=n("1626"),o=n("3a9b"),s=n("fdbf"),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return r(t)&&o(t.prototype,a(e))}},d9e1:function(e,t,n){"use strict";var i=n("fbd7").codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];e.apply(this,i)}}}function o(){}function s(e){return e.setHeader&&"function"===typeof e.abort}function a(e,t,n){if("function"===typeof t)return a(e,null,t);t||(t={}),n=r(n||o);var l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,u=function(){e.writable||d()},h=e._writableState&&e._writableState.finished,d=function(){c=!1,h=!0,l||n.call(e)},f=e._readableState&&e._readableState.endEmitted,p=function(){l=!1,f=!0,c||n.call(e)},g=function(t){n.call(e,t)},m=function(){var t;return l&&!f?(e._readableState&&e._readableState.ended||(t=new i),n.call(e,t)):c&&!h?(e._writableState&&e._writableState.ended||(t=new i),n.call(e,t)):void 0},v=function(){e.req.on("finish",d)};return s(e)?(e.on("complete",d),e.on("abort",m),e.req?v():e.on("request",v)):c&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",p),e.on("finish",d),!1!==t.error&&e.on("error",g),e.on("close",m),function(){e.removeListener("complete",d),e.removeListener("abort",m),e.removeListener("request",v),e.req&&e.req.removeListener("finish",d),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",d),e.removeListener("end",p),e.removeListener("error",g),e.removeListener("close",m)}}e.exports=a},d9e2:function(e,t,n){var i=n("23e7"),r=n("da84"),o=n("2ba4"),s=n("e5cb"),a="WebAssembly",l=r[a],c=7!==Error("e",{cause:7}).cause,u=function(e,t){var n={};n[e]=s(e,t,c),i({global:!0,constructor:!0,arity:1,forced:c},n)},h=function(e,t){if(l&&l[e]){var n={};n[e]=s(a+"."+e,t,c),i({target:a,stat:!0,constructor:!0,arity:1,forced:c},n)}};u("Error",(function(e){return function(t){return o(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),u("URIError",(function(e){return function(t){return o(e,this,arguments)}})),h("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),h("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),h("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},d9f5:function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),o=n("c65b"),s=n("e330"),a=n("c430"),l=n("83ab"),c=n("04f8"),u=n("d039"),h=n("1a2d"),d=n("3a9b"),f=n("825a"),p=n("fc6a"),g=n("a04b"),m=n("577e"),v=n("5c6c"),b=n("7c73"),y=n("df75"),_=n("241c"),w=n("057f"),C=n("7418"),S=n("06cf"),x=n("9bf2"),O=n("37e8"),k=n("d1e7"),L=n("cb2d"),E=n("5692"),D=n("f772"),I=n("d012"),M=n("90e3"),T=n("b622"),A=n("e538"),N=n("e065"),P=n("57b9"),j=n("d44e"),R=n("69f3"),F=n("b727").forEach,B=D("hidden"),W="Symbol",V="prototype",z=R.set,H=R.getterFor(W),U=Object[V],q=r.Symbol,$=q&&q[V],K=r.TypeError,G=r.QObject,Y=S.f,Z=x.f,X=w.f,Q=k.f,J=s([].push),ee=E("symbols"),te=E("op-symbols"),ne=E("wks"),ie=!G||!G[V]||!G[V].findChild,re=l&&u((function(){return 7!=b(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=Y(U,t);i&&delete U[t],Z(e,t,n),i&&e!==U&&Z(U,t,i)}:Z,oe=function(e,t){var n=ee[e]=b($);return z(n,{type:W,tag:e,description:t}),l||(n.description=t),n},se=function(e,t,n){e===U&&se(te,t,n),f(e);var i=g(t);return f(n),h(ee,i)?(n.enumerable?(h(e,B)&&e[B][i]&&(e[B][i]=!1),n=b(n,{enumerable:v(0,!1)})):(h(e,B)||Z(e,B,v(1,{})),e[B][i]=!0),re(e,i,n)):Z(e,i,n)},ae=function(e,t){f(e);var n=p(t),i=y(n).concat(de(n));return F(i,(function(t){l&&!o(ce,n,t)||se(e,t,n[t])})),e},le=function(e,t){return void 0===t?b(e):ae(b(e),t)},ce=function(e){var t=g(e),n=o(Q,this,t);return!(this===U&&h(ee,t)&&!h(te,t))&&(!(n||!h(this,t)||!h(ee,t)||h(this,B)&&this[B][t])||n)},ue=function(e,t){var n=p(e),i=g(t);if(n!==U||!h(ee,i)||h(te,i)){var r=Y(n,i);return!r||!h(ee,i)||h(n,B)&&n[B][i]||(r.enumerable=!0),r}},he=function(e){var t=X(p(e)),n=[];return F(t,(function(e){h(ee,e)||h(I,e)||J(n,e)})),n},de=function(e){var t=e===U,n=X(t?te:p(e)),i=[];return F(n,(function(e){!h(ee,e)||t&&!h(U,e)||J(i,ee[e])})),i};c||(q=function(){if(d($,this))throw K("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,t=M(e),n=function(e){this===U&&o(n,te,e),h(this,B)&&h(this[B],t)&&(this[B][t]=!1),re(this,t,v(1,e))};return l&&ie&&re(U,t,{configurable:!0,set:n}),oe(t,e)},$=q[V],L($,"toString",(function(){return H(this).tag})),L(q,"withoutSetter",(function(e){return oe(M(e),e)})),k.f=ce,x.f=se,O.f=ae,S.f=ue,_.f=w.f=he,C.f=de,A.f=function(e){return oe(T(e),e)},l&&(Z($,"description",{configurable:!0,get:function(){return H(this).description}}),a||L(U,"propertyIsEnumerable",ce,{unsafe:!0}))),i({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:q}),F(y(ne),(function(e){N(e)})),i({target:W,stat:!0,forced:!c},{useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),i({target:"Object",stat:!0,forced:!c,sham:!l},{create:le,defineProperty:se,defineProperties:ae,getOwnPropertyDescriptor:ue}),i({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:he}),P(),j(q,W),I[B]=!0},d9fc:function(e,t,n){"use strict";var i=n("9ab4"),r=n("cbe5"),o=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),s=function(e){function t(t){return e.call(this,t)||this}return Object(i["a"])(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(r["b"]);s.prototype.type="circle",t["a"]=s},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},daaa:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:function(){return n.e("chunk-2d0e4fe5").then(n.bind(null,"931f"))}})},db2d:function(e,t,n){"use strict";n.r(t),n.d(t,"ColorContribution",(function(){return a}));n("92a6");var i=n("a666"),r=n("b2cc"),o=n("aee8"),s=n("6a89");class a extends i["a"]{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(e=>this.onMouseDown(e)))}dispose(){super.dispose()}onMouseDown(e){var t;const n=e.target.type;if(6!==n)return;const i=[...(null===(t=e.target.element)||void 0===t?void 0:t.classList.values())||[]].find(e=>e.startsWith("ced-colorBox"));if(!i)return;if(!e.target.range)return;const r=this._editor.getContribution(o["ModesHoverController"].ID);if(!r.isColorPickerVisible()){const t=new s["a"](e.target.range.startLineNumber,e.target.range.startColumn+1,e.target.range.endLineNumber,e.target.range.endColumn+1);r.showContentHover(t,0,!1)}}}a.ID="editor.contrib.colorContribution",Object(r["l"])(a.ID,a)},db7a:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:function(){return n.e("chunk-2d0d056d").then(n.bind(null,"680e"))}})},db88:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class i{constructor(e){this.element=e,this.next=i.Undefined,this.prev=i.Undefined}}i.Undefined=new i(void 0);class r{constructor(){this._first=i.Undefined,this._last=i.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===i.Undefined}clear(){let e=this._first;while(e!==i.Undefined){const t=e.next;e.prev=i.Undefined,e.next=i.Undefined,e=t}this._first=i.Undefined,this._last=i.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new i(e);if(this._first===i.Undefined)this._first=n,this._last=n;else if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(n))}}shift(){if(this._first!==i.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==i.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==i.Undefined&&e.next!==i.Undefined){const 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-=1}*[Symbol.iterator](){let e=this._first;while(e!==i.Undefined)yield e.element,e=e.next}}},dbb4:function(e,t,n){var i=n("23e7"),r=n("83ab"),o=n("56ef"),s=n("fc6a"),a=n("06cf"),l=n("8418");i({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(e){var t,n,i=s(e),r=a.f,c=o(i),u={},h=0;while(c.length>h)n=r(i,t=c[h++]),void 0!==n&&l(u,t,n);return u}})},dbbf:function(e,t,n){},dbc9:function(e,t,n){"use strict";var i=n("dff7"),r=n("b7d0"),o=n("303e"),s=n("561a");const a=Object(o["wc"])("symbolIcon.arrayForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),l=Object(o["wc"])("symbolIcon.booleanForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),c=Object(o["wc"])("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(i["a"])("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),u=Object(o["wc"])("symbolIcon.colorForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),h=Object(o["wc"])("symbolIcon.constantForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),d=Object(o["wc"])("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(i["a"])("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),f=Object(o["wc"])("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(i["a"])("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),p=Object(o["wc"])("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(i["a"])("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),g=Object(o["wc"])("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(i["a"])("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),m=Object(o["wc"])("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(i["a"])("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),v=Object(o["wc"])("symbolIcon.fileForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),b=Object(o["wc"])("symbolIcon.folderForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),y=Object(o["wc"])("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(i["a"])("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_=Object(o["wc"])("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(i["a"])("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),w=Object(o["wc"])("symbolIcon.keyForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),C=Object(o["wc"])("symbolIcon.keywordForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),S=Object(o["wc"])("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(i["a"])("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),x=Object(o["wc"])("symbolIcon.moduleForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),O=Object(o["wc"])("symbolIcon.namespaceForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),k=Object(o["wc"])("symbolIcon.nullForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),L=Object(o["wc"])("symbolIcon.numberForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),E=Object(o["wc"])("symbolIcon.objectForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),D=Object(o["wc"])("symbolIcon.operatorForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),I=Object(o["wc"])("symbolIcon.packageForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),M=Object(o["wc"])("symbolIcon.propertyForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),T=Object(o["wc"])("symbolIcon.referenceForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),A=Object(o["wc"])("symbolIcon.snippetForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),N=Object(o["wc"])("symbolIcon.stringForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),P=Object(o["wc"])("symbolIcon.structForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),j=Object(o["wc"])("symbolIcon.textForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),R=Object(o["wc"])("symbolIcon.typeParameterForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),F=Object(o["wc"])("symbolIcon.unitForeground",{dark:o["eb"],light:o["eb"],hc:o["eb"]},Object(i["a"])("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),B=Object(o["wc"])("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(i["a"])("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(r["f"])((e,t)=>{const n=e.getColor(a);n&&t.addRule(`${s["b"].symbolArray.cssSelector} { color: ${n}; }`);const i=e.getColor(l);i&&t.addRule(`${s["b"].symbolBoolean.cssSelector} { color: ${i}; }`);const r=e.getColor(c);r&&t.addRule(`${s["b"].symbolClass.cssSelector} { color: ${r}; }`);const o=e.getColor(S);o&&t.addRule(`${s["b"].symbolMethod.cssSelector} { color: ${o}; }`);const W=e.getColor(u);W&&t.addRule(`${s["b"].symbolColor.cssSelector} { color: ${W}; }`);const V=e.getColor(h);V&&t.addRule(`${s["b"].symbolConstant.cssSelector} { color: ${V}; }`);const z=e.getColor(d);z&&t.addRule(`${s["b"].symbolConstructor.cssSelector} { color: ${z}; }`);const H=e.getColor(f);H&&t.addRule(`\n\t\t\t${s["b"].symbolValue.cssSelector},${s["b"].symbolEnum.cssSelector} { color: ${H}; }`);const U=e.getColor(p);U&&t.addRule(`${s["b"].symbolEnumMember.cssSelector} { color: ${U}; }`);const q=e.getColor(g);q&&t.addRule(`${s["b"].symbolEvent.cssSelector} { color: ${q}; }`);const $=e.getColor(m);$&&t.addRule(`${s["b"].symbolField.cssSelector} { color: ${$}; }`);const K=e.getColor(v);K&&t.addRule(`${s["b"].symbolFile.cssSelector} { color: ${K}; }`);const G=e.getColor(b);G&&t.addRule(`${s["b"].symbolFolder.cssSelector} { color: ${G}; }`);const Y=e.getColor(y);Y&&t.addRule(`${s["b"].symbolFunction.cssSelector} { color: ${Y}; }`);const Z=e.getColor(_);Z&&t.addRule(`${s["b"].symbolInterface.cssSelector} { color: ${Z}; }`);const X=e.getColor(w);X&&t.addRule(`${s["b"].symbolKey.cssSelector} { color: ${X}; }`);const Q=e.getColor(C);Q&&t.addRule(`${s["b"].symbolKeyword.cssSelector} { color: ${Q}; }`);const J=e.getColor(x);J&&t.addRule(`${s["b"].symbolModule.cssSelector} { color: ${J}; }`);const ee=e.getColor(O);ee&&t.addRule(`${s["b"].symbolNamespace.cssSelector} { color: ${ee}; }`);const te=e.getColor(k);te&&t.addRule(`${s["b"].symbolNull.cssSelector} { color: ${te}; }`);const ne=e.getColor(L);ne&&t.addRule(`${s["b"].symbolNumber.cssSelector} { color: ${ne}; }`);const ie=e.getColor(E);ie&&t.addRule(`${s["b"].symbolObject.cssSelector} { color: ${ie}; }`);const re=e.getColor(D);re&&t.addRule(`${s["b"].symbolOperator.cssSelector} { color: ${re}; }`);const oe=e.getColor(I);oe&&t.addRule(`${s["b"].symbolPackage.cssSelector} { color: ${oe}; }`);const se=e.getColor(M);se&&t.addRule(`${s["b"].symbolProperty.cssSelector} { color: ${se}; }`);const ae=e.getColor(T);ae&&t.addRule(`${s["b"].symbolReference.cssSelector} { color: ${ae}; }`);const le=e.getColor(A);le&&t.addRule(`${s["b"].symbolSnippet.cssSelector} { color: ${le}; }`);const ce=e.getColor(N);ce&&t.addRule(`${s["b"].symbolString.cssSelector} { color: ${ce}; }`);const ue=e.getColor(P);ue&&t.addRule(`${s["b"].symbolStruct.cssSelector} { color: ${ue}; }`);const he=e.getColor(j);he&&t.addRule(`${s["b"].symbolText.cssSelector} { color: ${he}; }`);const de=e.getColor(R);de&&t.addRule(`${s["b"].symbolTypeParameter.cssSelector} { color: ${de}; }`);const fe=e.getColor(F);fe&&t.addRule(`${s["b"].symbolUnit.cssSelector} { color: ${fe}; }`);const pe=e.getColor(B);pe&&t.addRule(`${s["b"].symbolVariable.cssSelector} { color: ${pe}; }`)})},dc4a:function(e,t,n){var i=n("59ed"),r=n("7234");e.exports=function(e,t){var n=e[t];return r(n)?void 0:i(n)}},dc90:function(e,t,n){function i(e){function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return i.colors[Math.abs(t)%i.colors.length]}function i(e){let t,n,o,s=null;function a(...e){if(!a.enabled)return;const n=a,r=Number(new Date),o=r-(t||r);n.diff=o,n.prev=t,n.curr=r,t=r,e[0]=i.coerce(e[0]),"string"!==typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,r)=>{if("%%"===t)return"%";s++;const o=i.formatters[r];if("function"===typeof o){const i=e[s];t=o.call(n,i),e.splice(s,1),s--}return t}),i.formatArgs.call(n,e);const l=n.log||i.log;l.apply(n,e)}return a.namespace=e,a.useColors=i.useColors(),a.color=i.selectColor(e),a.extend=r,a.destroy=i.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(n!==i.namespaces&&(n=i.namespaces,o=i.enabled(e)),o),set:e=>{s=e}}),"function"===typeof i.init&&i.init(a),a}function r(e,t){const n=i(this.namespace+("undefined"===typeof t?":":t)+e);return n.log=this.log,n}function o(e){let t;i.save(e),i.namespaces=e,i.names=[],i.skips=[];const n=("string"===typeof e?e:"").split(/[\s,]+/),r=n.length;for(t=0;t<r;t++)n[t]&&(e=n[t].replace(/\*/g,".*?"),"-"===e[0]?i.skips.push(new RegExp("^"+e.slice(1)+"$")):i.names.push(new RegExp("^"+e+"$")))}function s(){const e=[...i.names.map(l),...i.skips.map(l).map(e=>"-"+e)].join(",");return i.enable(""),e}function a(e){if("*"===e[e.length-1])return!0;let t,n;for(t=0,n=i.skips.length;t<n;t++)if(i.skips[t].test(e))return!1;for(t=0,n=i.names.length;t<n;t++)if(i.names[t].test(e))return!0;return!1}function l(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function c(e){return e instanceof Error?e.stack||e.message:e}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return i.debug=i,i.default=i,i.coerce=c,i.disable=s,i.enable=o,i.enabled=a,i.humanize=n("1468"),i.destroy=u,Object.keys(e).forEach(t=>{i[t]=e[t]}),i.names=[],i.skips=[],i.formatters={},i.selectColor=t,i.enable(i.load()),i}e.exports=i},dc99:function(e,t,n){"use strict";e.exports=RangeError},dcc3:function(e,t,n){"use strict";var i=n("ae93").IteratorPrototype,r=n("7c73"),o=n("5c6c"),s=n("d44e"),a=n("3f8c"),l=function(){return this};e.exports=function(e,t,n,c){var u=t+" Iterator";return e.prototype=r(i,{next:o(+!c,n)}),s(e,u,!1,!0),a[u]=l,e}},dce8:function(e,t,n){"use strict";var i=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},e.lerp=function(e,t,n,i){var r=1-i;e.x=r*t.x+i*n.x,e.y=r*t.y+i*n.y},e}();t["a"]=i},dd1b:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("89cd"),r=n("308f");const o={JSONContribution:"base.contributions.json"};function s(e){return e.length>0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e}class a{constructor(){this._onDidChangeSchema=new r["b"],this.schemasById={}}registerSchema(e,t){this.schemasById[s(e)]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}}const l=new a;i["a"].add(o.JSONContribution,l)},dd4f:function(e,t,n){"use strict";var i=n("9ab4"),r=n("19eb"),o=n("e86a"),s=n("cbe5"),a=n("6d8b"),l=n("726e"),c=Object(a["defaults"])({strokeFirst:!0,font:l["a"],x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},s["a"]),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i["a"])(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.createStyle=function(e){return Object(a["createObject"])(c,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=Object(o["d"])(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(r["c"]);u.prototype.type="tspan",t["a"]=u},ddb0:function(e,t,n){var i=n("da84"),r=n("fdbc"),o=n("785a"),s=n("e260"),a=n("9112"),l=n("b622"),c=l("iterator"),u=l("toStringTag"),h=s.values,d=function(e,t){if(e){if(e[c]!==h)try{a(e,c,h)}catch(i){e[c]=h}if(e[u]||a(e,u,t),r[t])for(var n in s)if(e[n]!==s[n])try{a(e,n,s[n])}catch(i){e[n]=s[n]}}};for(var f in r)d(i[f]&&i[f].prototype,f);d(o,"DOMTokenList")},ddda:function(e,t,n){"use strict";var i=n("e142").codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];e.apply(this,i)}}}function o(){}function s(e){return e.setHeader&&"function"===typeof e.abort}function a(e,t,n){if("function"===typeof t)return a(e,null,t);t||(t={}),n=r(n||o);var l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,u=function(){e.writable||d()},h=e._writableState&&e._writableState.finished,d=function(){c=!1,h=!0,l||n.call(e)},f=e._readableState&&e._readableState.endEmitted,p=function(){l=!1,f=!0,c||n.call(e)},g=function(t){n.call(e,t)},m=function(){var t;return l&&!f?(e._readableState&&e._readableState.ended||(t=new i),n.call(e,t)):c&&!h?(e._writableState&&e._writableState.ended||(t=new i),n.call(e,t)):void 0},v=function(){e.req.on("finish",d)};return s(e)?(e.on("complete",d),e.on("abort",m),e.req?v():e.on("request",v)):c&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",p),e.on("finish",d),!1!==t.error&&e.on("error",g),e.on("close",m),function(){e.removeListener("complete",d),e.removeListener("abort",m),e.removeListener("request",v),e.req&&e.req.removeListener("finish",d),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",d),e.removeListener("end",p),e.removeListener("error",g),e.removeListener("close",m)}}e.exports=a},dded:function(e,t,n){"use strict";var i=n("9ab4"),r=n("42e5"),o=function(e){function t(t,n,i,r,o){var s=e.call(this,r)||this;return s.x=null==t?.5:t,s.y=null==n?.5:n,s.r=null==i?.5:i,s.type="radial",s.global=o||!1,s}return Object(i["a"])(t,e),t}(r["a"]);t["a"]=o},debc:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c}));var i=n("6d8e"),r=n("b589"),o=n("30db"),s=n("82c9"),a=n("3d37");function l(e){if(!e)return;"string"===typeof e&&(e=i["a"].file(e));const t=Object(s["b"])(e)||(e.scheme===r["c"].file?e.fsPath:e.path);return o["j"]&&Object(a["c"])(t)?c(t):t}function c(e){return Object(a["a"])(e)?e.charAt(0).toUpperCase()+e.slice(1):e}},deca:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return p})),n.d(t,"b",(function(){return g}));var i=n("6d8b"),r=n("e0d3"),o=Object(r["o"])();function s(e,t,n,r,o){var s;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();s=a&&a.animation}var l=t&&t.isAnimationEnabled(),c="update"===e;if(l){var u=void 0,h=void 0,d=void 0;r?(u=Object(i["retrieve2"])(r.duration,200),h=Object(i["retrieve2"])(r.easing,"cubicOut"),d=0):(u=t.getShallow(c?"animationDurationUpdate":"animationDuration"),h=t.getShallow(c?"animationEasingUpdate":"animationEasing"),d=t.getShallow(c?"animationDelayUpdate":"animationDelay")),s&&(null!=s.duration&&(u=s.duration),null!=s.easing&&(h=s.easing),null!=s.delay&&(d=s.delay)),Object(i["isFunction"])(d)&&(d=d(n,o)),Object(i["isFunction"])(u)&&(u=u(n));var f={duration:u||0,delay:d,easing:h};return f}return null}function a(e,t,n,r,o,a,l){var c,u=!1;Object(i["isFunction"])(o)?(l=a,a=o,o=null):Object(i["isObject"])(o)&&(a=o.cb,l=o.during,u=o.isFrom,c=o.removeOpt,o=o.dataIndex);var h="leave"===e;h||t.stopAnimation("leave");var d=s(e,r,o,h?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,o):null);if(d&&d.duration>0){var f=d.duration,p=d.delay,g=d.easing,m={duration:f,delay:p||0,easing:g,done:a,force:!!a||!!l,setToFinal:!h,scope:e,during:l};u?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!u&&t.attr(n),l&&l(1),a&&a()}function l(e,t,n,i,r,o){a("update",e,t,n,i,r,o)}function c(e,t,n,i,r,o){a("enter",e,t,n,i,r,o)}function u(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if("leave"===n.scope)return!0}return!1}function h(e,t,n,i,r,o){u(e)||a("leave",e,t,n,i,r,o)}function d(e,t,n,i){e.removeTextContent(),e.removeTextGuideLine(),h(e,{style:{opacity:0}},t,n,i)}function f(e,t,n){function i(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||d(e,t,n,i)})):d(e,t,n,i)}function p(e){o(e).oldStyle=e.style}function g(e){return o(e).oldStyle}},df75:function(e,t,n){var i=n("ca84"),r=n("7839");e.exports=Object.keys||function(e){return i(e,r)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,i=e.length-1;i>=0;i--){var r=e[i];"."===r?e.splice(i,1):".."===r?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function i(e){"string"!==typeof e&&(e+="");var t,n=0,i=-1,r=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!r){n=t+1;break}}else-1===i&&(r=!1,i=t+1);return-1===i?"":e.slice(n,i)}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],i=0;i<e.length;i++)t(e[i],i,e)&&n.push(e[i]);return n}t.resolve=function(){for(var t="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,i="/"===s.charAt(0))}return t=n(r(t.split("/"),(function(e){return!!e})),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var i=t.isAbsolute(e),s="/"===o(e,-1);return e=n(r(e.split("/"),(function(e){return!!e})),!i).join("/"),e||i||(e="."),e&&s&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function i(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var r=i(e.split("/")),o=i(n.split("/")),s=Math.min(r.length,o.length),a=s,l=0;l<s;l++)if(r[l]!==o[l]){a=l;break}var c=[];for(l=a;l<r.length;l++)c.push("..");return c=c.concat(o.slice(a)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,r=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":e.slice(0,i)},t.basename=function(e,t){var n=i(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,i=-1,r=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===i&&(r=!1,i=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=s+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},df83:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.easeInOutBounce=t.easeOutBounce=t.easeInBounce=t.easeInOutElastic=t.easeOutElastic=t.easeInElastic=t.easeInOutBack=t.easeOutBack=t.easeInBack=t.easeInOutQuint=t.easeOutQuint=t.easeInQuint=t.easeInOutQuart=t.easeOutQuart=t.easeInQuart=t.easeInOutCubic=t.easeOutCubic=t.easeInCubic=t.easeInOutQuad=t.easeOutQuad=t.easeInQuad=t.easeInOutSine=t.easeOutSine=t.easeInSine=t.linear=void 0;var i=[[[0,1],"",[.33,.67]],[[1,0],[.67,.33]]];t.linear=i;var r=[[[0,1]],[[.538,.564],[.169,.912],[.88,.196]],[[1,0]]];t.easeInSine=r;var o=[[[0,1]],[[.444,.448],[.169,.736],[.718,.16]],[[1,0]]];t.easeOutSine=o;var s=[[[0,1]],[[.5,.5],[.2,1],[.8,0]],[[1,0]]];t.easeInOutSine=s;var a=[[[0,1]],[[.55,.584],[.231,.904],[.868,.264]],[[1,0]]];t.easeInQuad=a;var l=[[[0,1]],[[.413,.428],[.065,.816],[.76,.04]],[[1,0]]];t.easeOutQuad=l;var c=[[[0,1]],[[.5,.5],[.3,.9],[.7,.1]],[[1,0]]];t.easeInOutQuad=c;var u=[[[0,1]],[[.679,.688],[.366,.992],[.992,.384]],[[1,0]]];t.easeInCubic=u;var h=[[[0,1]],[[.321,.312],[.008,.616],[.634,.008]],[[1,0]]];t.easeOutCubic=h;var d=[[[0,1]],[[.5,.5],[.3,1],[.7,0]],[[1,0]]];t.easeInOutCubic=d;var f=[[[0,1]],[[.812,.74],[.611,.988],[1.013,.492]],[[1,0]]];t.easeInQuart=f;var p=[[[0,1]],[[.152,.244],[.001,.448],[.285,-.02]],[[1,0]]];t.easeOutQuart=p;var g=[[[0,1]],[[.5,.5],[.4,1],[.6,0]],[[1,0]]];t.easeInOutQuart=g;var m=[[[0,1]],[[.857,.856],[.714,1],[1,.712]],[[1,0]]];t.easeInQuint=m;var v=[[[0,1]],[[.108,.2],[.001,.4],[.214,-.012]],[[1,0]]];t.easeOutQuint=v;var b=[[[0,1]],[[.5,.5],[.5,1],[.5,0]],[[1,0]]];t.easeInOutQuint=b;var y=[[[0,1]],[[.667,.896],[.38,1.184],[.955,.616]],[[1,0]]];t.easeInBack=y;var _=[[[0,1]],[[.335,.028],[.061,.22],[.631,-.18]],[[1,0]]];t.easeOutBack=_;var w=[[[0,1]],[[.5,.5],[.4,1.4],[.6,-.4]],[[1,0]]];t.easeInOutBack=w;var C=[[[0,1]],[[.474,.964],[.382,.988],[.557,.952]],[[.619,1.076],[.565,1.088],[.669,1.08]],[[.77,.916],[.712,.924],[.847,.904]],[[.911,1.304],[.872,1.316],[.961,1.34]],[[1,0]]];t.easeInElastic=C;var S=[[[0,1]],[[.073,-.32],[.034,-.328],[.104,-.344]],[[.191,.092],[.11,.06],[.256,.08]],[[.31,-.076],[.26,-.068],[.357,-.076]],[[.432,.032],[.362,.028],[.683,-.004]],[[1,0]]];t.easeOutElastic=S;var x=[[[0,1]],[[.21,.94],[.167,.884],[.252,.98]],[[.299,1.104],[.256,1.092],[.347,1.108]],[[.5,.496],[.451,.672],[.548,.324]],[[.696,-.108],[.652,-.112],[.741,-.124]],[[.805,.064],[.756,.012],[.866,.096]],[[1,0]]];t.easeInOutElastic=x;var O=[[[0,1]],[[.148,1],[.075,.868],[.193,.848]],[[.326,1],[.276,.836],[.405,.712]],[[.6,1],[.511,.708],[.671,.348]],[[1,0]]];t.easeInBounce=O;var k=[[[0,1]],[[.357,.004],[.27,.592],[.376,.252]],[[.604,-.004],[.548,.312],[.669,.184]],[[.82,0],[.749,.184],[.905,.132]],[[1,0]]];t.easeOutBounce=k;var L=[[[0,1]],[[.102,1],[.05,.864],[.117,.86]],[[.216,.996],[.208,.844],[.227,.808]],[[.347,.996],[.343,.8],[.48,.292]],[[.635,.004],[.511,.676],[.656,.208]],[[.787,0],[.76,.2],[.795,.144]],[[.905,-.004],[.899,.164],[.944,.144]],[[1,0]]];t.easeInOutBounce=L;var E=new Map([["linear",i],["easeInSine",r],["easeOutSine",o],["easeInOutSine",s],["easeInQuad",a],["easeOutQuad",l],["easeInOutQuad",c],["easeInCubic",u],["easeOutCubic",h],["easeInOutCubic",d],["easeInQuart",f],["easeOutQuart",p],["easeInOutQuart",g],["easeInQuint",m],["easeOutQuint",v],["easeInOutQuint",b],["easeInBack",y],["easeOutBack",_],["easeInOutBack",w],["easeInElastic",C],["easeOutElastic",S],["easeInOutElastic",x],["easeInBounce",O],["easeOutBounce",k],["easeInOutBounce",L]]);t["default"]=E},df86:function(e,t,n){"use strict";(function(t,i){const r=n("faa1").EventEmitter,o=n("ea08"),s=n("e7d0"),a=n("a43f"),l=n("3409"),c=n("1e4d"),u=n("035d").Writable,h=n("3fb5"),d=n("29a2"),f=n("2a28"),p=n("ae84"),g=n("53a8"),m=n("34eb")("mqttjs:client"),v=t?t.nextTick:function(e){setTimeout(e,0)},b=i.setImmediate||function(e){v(e)},y={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:3e4,clean:!0,resubscribe:!0},_={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};function w(){return"mqttjs_"+Math.random().toString(16).substr(2,8)}function C(e,t){if(5===e.options.protocolVersion&&"publish"===t.cmd){let n;t.properties&&(n=t.properties.topicAlias);const i=t.topic.toString();if(e.topicAliasSend)if(n){if(0!==i.length&&(m("applyTopicAlias :: register topic: %s - alias: %d",i,n),!e.topicAliasSend.put(i,n)))return m("applyTopicAlias :: error out of range. topic: %s - alias: %d",i,n),new Error("Sending Topic Alias out of range")}else 0!==i.length&&(e.options.autoAssignTopicAlias?(n=e.topicAliasSend.getAliasByTopic(i),n?(t.topic="",t.properties={...t.properties,topicAlias:n},m("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",i,n)):(n=e.topicAliasSend.getLruAlias(),e.topicAliasSend.put(i,n),t.properties={...t.properties,topicAlias:n},m("applyTopicAlias :: auto assign topic: %s - alias: %d",i,n))):e.options.autoUseTopicAlias&&(n=e.topicAliasSend.getAliasByTopic(i),n&&(t.topic="",t.properties={...t.properties,topicAlias:n},m("applyTopicAlias :: auto use topic: %s - alias: %d",i,n))));else if(n)return m("applyTopicAlias :: error out of range. topic: %s - alias: %d",i,n),new Error("Sending Topic Alias out of range")}}function S(e,t){let n;t.properties&&(n=t.properties.topicAlias);let i=t.topic.toString();if(0===i.length){if("undefined"===typeof n)return new Error("Unregistered Topic Alias");if(i=e.topicAliasSend.getTopicByAlias(n),"undefined"===typeof i)return new Error("Unregistered Topic Alias");t.topic=i}n&&delete t.properties.topicAlias}function x(e,t,n){m("sendPacket :: packet: %O",t),m("sendPacket :: emitting `packetsend`"),e.emit("packetsend",t),m("sendPacket :: writing to stream");const i=l.writeToStream(t,e.stream,e.options);m("sendPacket :: writeToStream result %s",i),!i&&n&&n!==E?(m("sendPacket :: handle events on `drain` once through callback."),e.stream.once("drain",n)):n&&(m("sendPacket :: invoking cb"),n())}function O(e){e&&(m("flush: queue exists? %b",!!e),Object.keys(e).forEach((function(t){"function"===typeof e[t].cb&&(e[t].cb(new Error("Connection closed")),delete e[t])})))}function k(e){e&&(m("flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(e).forEach((function(t){e[t].volatile&&"function"===typeof e[t].cb&&(e[t].cb(new Error("Connection closed")),delete e[t])})))}function L(e,t,n,i){m("storeAndSend :: store packet with cmd %s to outgoingStore",t.cmd);let r,o=t;if("publish"===o.cmd&&(o=f(t),r=S(e,o),r))return n&&n(r);e.outgoingStore.put(o,(function(r){if(r)return n&&n(r);i(),x(e,t,n)}))}function E(e){m("nop ::",e)}function D(e,t){let n;const i=this;if(!(this instanceof D))return new D(e,t);for(n in this.options=t||{},y)"undefined"===typeof this.options[n]?this.options[n]=y[n]:this.options[n]=t[n];m("MqttClient :: options.protocol",t.protocol),m("MqttClient :: options.protocolVersion",t.protocolVersion),m("MqttClient :: options.username",t.username),m("MqttClient :: options.keepalive",t.keepalive),m("MqttClient :: options.reconnectPeriod",t.reconnectPeriod),m("MqttClient :: options.rejectUnauthorized",t.rejectUnauthorized),m("MqttClient :: options.topicAliasMaximum",t.topicAliasMaximum),this.options.clientId="string"===typeof t.clientId?t.clientId:w(),m("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=5===t.protocolVersion&&t.customHandleAcks?t.customHandleAcks:function(){arguments[3](0)},this.streamBuilder=e,this.messageIdProvider="undefined"===typeof this.options.messageIdProvider?new c:this.options.messageIdProvider,this.outgoingStore=t.outgoingStore||new o,this.incomingStore=t.incomingStore||new o,this.queueQoSZero=void 0===t.queueQoSZero||t.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=null,this.connected=!1,this.disconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,t.topicAliasMaximum>0&&(t.topicAliasMaximum>65535?m("MqttClient :: options.topicAliasMaximum is out of range"):this.topicAliasRecv=new s(t.topicAliasMaximum)),this.on("connect",(function(){const e=this.queue;function t(){const n=e.shift();m("deliver :: entry %o",n);let r=null;if(!n)return void i._resubscribe();r=n.packet,m("deliver :: call _sendPacket for %o",r);let o=!0;r.messageId&&0!==r.messageId&&(i.messageIdProvider.register(r.messageId)||(o=!1)),o?i._sendPacket(r,(function(e){n.cb&&n.cb(e),t()})):(m("messageId: %d has already used. The message is skipped and removed.",r.messageId),t())}m("connect :: sending queued packets"),t()})),this.on("close",(function(){m("close :: connected set to `false`"),this.connected=!1,m("close :: clearing connackTimer"),clearTimeout(this.connackTimer),m("close :: clearing ping timer"),null!==i.pingTimer&&(i.pingTimer.clear(),i.pingTimer=null),this.topicAliasRecv&&this.topicAliasRecv.clear(),m("close :: calling _setupReconnect"),this._setupReconnect()})),r.call(this),m("MqttClient :: setting up stream"),this._setupStream()}h(D,r),D.prototype._setupStream=function(){const e=this,t=new u,n=l.parser(this.options);let i=null;const r=[];function o(){if(r.length)v(s);else{const e=i;i=null,e()}}function s(){m("work :: getting next packet in queue");const t=r.shift();if(t)m("work :: packet pulled from queue"),e._handlePacket(t,o);else{m("work :: no packets in queue");const e=i;i=null,m("work :: done flag is %s",!!e),e&&e()}}function a(t){m("streamErrorHandler :: error",t.message),t.code?(m("streamErrorHandler :: emitting error"),e.emit("error",t)):E(t)}m("_setupStream :: calling method to clear reconnect"),this._clearReconnect(),m("_setupStream :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),n.on("packet",(function(e){m("parser :: on packet push to packets array."),r.push(e)})),t._write=function(e,t,r){i=r,m("writable stream :: parsing buffer"),n.parse(e),s()},m("_setupStream :: pipe stream to writable stream"),this.stream.pipe(t),this.stream.on("error",a),this.stream.on("close",(function(){m("(%s)stream :: on close",e.options.clientId),k(e.outgoing),m("stream: emit close to MqttClient"),e.emit("close")})),m("_setupStream: sending packet `connect`");const c=Object.create(this.options);if(c.cmd="connect",this.topicAliasRecv&&(c.properties||(c.properties={}),this.topicAliasRecv&&(c.properties.topicAliasMaximum=this.topicAliasRecv.max)),x(this,c),n.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return e.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&"object"===typeof this.options.authPacket){const e=g({cmd:"auth",reasonCode:0},this.options.authPacket);x(this,e)}}this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout((function(){m("!!connectTimeout hit!! Calling _cleanUp with force `true`"),e._cleanUp(!0)}),this.options.connectTimeout)},D.prototype._handlePacket=function(e,t){const n=this.options;if(5===n.protocolVersion&&n.properties&&n.properties.maximumPacketSize&&n.properties.maximumPacketSize<e.length)return this.emit("error",new Error("exceeding packets size "+e.cmd)),this.end({reasonCode:149,properties:{reasonString:"Maximum packet size was exceeded"}}),this;switch(m("_handlePacket :: emitting packetreceive"),this.emit("packetreceive",e),e.cmd){case"publish":this._handlePublish(e,t);break;case"puback":case"pubrec":case"pubcomp":case"suback":case"unsuback":this._handleAck(e),t();break;case"pubrel":this._handlePubrel(e,t);break;case"connack":this._handleConnack(e),t();break;case"auth":this._handleAuth(e),t();break;case"pingresp":this._handlePingresp(e),t();break;case"disconnect":this._handleDisconnect(e),t();break;default:break}},D.prototype._checkDisconnecting=function(e){return this.disconnecting&&(e&&e!==E?e(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting},D.prototype.publish=function(e,t,n,i){m("publish :: message `%s` to topic `%s`",t,e);const r=this.options;"function"===typeof n&&(i=n,n=null);const o={qos:0,retain:!1,dup:!1};if(n=g(o,n),this._checkDisconnecting(i))return this;const s=this,a=function(){let o=0;if((1===n.qos||2===n.qos)&&(o=s._nextId(),null===o))return m("No messageId left"),!1;const a={cmd:"publish",topic:e,payload:t,qos:n.qos,retain:n.retain,messageId:o,dup:n.dup};switch(5===r.protocolVersion&&(a.properties=n.properties),m("publish :: qos",n.qos),n.qos){case 1:case 2:s.outgoing[a.messageId]={volatile:!1,cb:i||E},m("MqttClient:publish: packet cmd: %s",a.cmd),s._sendPacket(a,void 0,n.cbStorePut);break;default:m("MqttClient:publish: packet cmd: %s",a.cmd),s._sendPacket(a,i,n.cbStorePut);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!a())&&this._storeProcessingQueue.push({invoke:a,cbStorePut:n.cbStorePut,callback:i}),this},D.prototype.subscribe=function(){const e=this,t=new Array(arguments.length);for(let h=0;h<arguments.length;h++)t[h]=arguments[h];const n=[];let i=t.shift();const r=i.resubscribe;let o=t.pop()||E,s=t.pop();const a=this.options.protocolVersion;delete i.resubscribe,"string"===typeof i&&(i=[i]),"function"!==typeof o&&(s=o,o=E);const l=p.validateTopics(i);if(null!==l)return b(o,new Error("Invalid topic "+l)),this;if(this._checkDisconnecting(o))return m("subscribe: discconecting true"),this;const c={qos:0};if(5===a&&(c.nl=!1,c.rap=!1,c.rh=0),s=g(c,s),Array.isArray(i)?i.forEach((function(t){if(m("subscribe: array topic %s",t),!Object.prototype.hasOwnProperty.call(e._resubscribeTopics,t)||e._resubscribeTopics[t].qos<s.qos||r){const e={topic:t,qos:s.qos};5===a&&(e.nl=s.nl,e.rap=s.rap,e.rh=s.rh,e.properties=s.properties),m("subscribe: pushing topic `%s` and qos `%s` to subs list",e.topic,e.qos),n.push(e)}})):Object.keys(i).forEach((function(t){if(m("subscribe: object topic %s",t),!Object.prototype.hasOwnProperty.call(e._resubscribeTopics,t)||e._resubscribeTopics[t].qos<i[t].qos||r){const e={topic:t,qos:i[t].qos};5===a&&(e.nl=i[t].nl,e.rap=i[t].rap,e.rh=i[t].rh,e.properties=s.properties),m("subscribe: pushing `%s` to subs list",e),n.push(e)}})),!n.length)return o(null,[]),this;const u=function(){const t=e._nextId();if(null===t)return m("No messageId left"),!1;const i={cmd:"subscribe",subscriptions:n,qos:1,retain:!1,dup:!1,messageId:t};if(s.properties&&(i.properties=s.properties),e.options.resubscribe){m("subscribe :: resubscribe true");const t=[];n.forEach((function(n){if(e.options.reconnectPeriod>0){const i={qos:n.qos};5===a&&(i.nl=n.nl||!1,i.rap=n.rap||!1,i.rh=n.rh||0,i.properties=n.properties),e._resubscribeTopics[n.topic]=i,t.push(n.topic)}})),e.messageIdToTopic[i.messageId]=t}return e.outgoing[i.messageId]={volatile:!0,cb:function(e,t){if(!e){const e=t.granted;for(let t=0;t<e.length;t+=1)n[t].qos=e[t]}o(e,n)}},m("subscribe :: call _sendPacket"),e._sendPacket(i),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!u())&&this._storeProcessingQueue.push({invoke:u,callback:o}),this},D.prototype.unsubscribe=function(){const e=this,t=new Array(arguments.length);for(let a=0;a<arguments.length;a++)t[a]=arguments[a];let n=t.shift(),i=t.pop()||E,r=t.pop();"string"===typeof n&&(n=[n]),"function"!==typeof i&&(r=i,i=E);const o=p.validateTopics(n);if(null!==o)return b(i,new Error("Invalid topic "+o)),this;if(e._checkDisconnecting(i))return this;const s=function(){const t=e._nextId();if(null===t)return m("No messageId left"),!1;const o={cmd:"unsubscribe",qos:1,messageId:t};return"string"===typeof n?o.unsubscriptions=[n]:Array.isArray(n)&&(o.unsubscriptions=n),e.options.resubscribe&&o.unsubscriptions.forEach((function(t){delete e._resubscribeTopics[t]})),"object"===typeof r&&r.properties&&(o.properties=r.properties),e.outgoing[o.messageId]={volatile:!0,cb:i},m("unsubscribe: call _sendPacket"),e._sendPacket(o),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!s())&&this._storeProcessingQueue.push({invoke:s,callback:i}),this},D.prototype.end=function(e,t,n){const i=this;function r(){m("end :: closeStores: closing incoming and outgoing stores"),i.disconnected=!0,i.incomingStore.close((function(e){i.outgoingStore.close((function(t){if(m("end :: closeStores: emitting end"),i.emit("end"),n){const i=e||t;m("end :: closeStores: invoking callback with args"),n(i)}}))})),i._deferredReconnect&&i._deferredReconnect()}function o(){m("end :: (%s) :: finish :: calling _cleanUp with force %s",i.options.clientId,e),i._cleanUp(e,()=>{m("end :: finish :: calling process.nextTick on closeStores"),v(r.bind(i))},t)}return m("end :: (%s)",this.options.clientId),null!=e&&"boolean"===typeof e||(n=t||E,t=e,e=!1,"object"!==typeof t&&(n=t,t=null,"function"!==typeof n&&(n=E))),"object"!==typeof t&&(n=t,t=null),m("end :: cb? %s",!!n),n=n||E,this.disconnecting?(n(),this):(this._clearReconnect(),this.disconnecting=!0,!e&&Object.keys(this.outgoing).length>0?(m("end :: (%s) :: calling finish in 10ms once outgoing is empty",i.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,o,10))):(m("end :: (%s) :: immediately calling finish",i.options.clientId),o()),this)},D.prototype.removeOutgoingMessage=function(e){const t=this.outgoing[e]?this.outgoing[e].cb:null;return delete this.outgoing[e],this.outgoingStore.del({messageId:e},(function(){t(new Error("Message removed"))})),this},D.prototype.reconnect=function(e){m("client reconnect");const t=this,n=function(){e?(t.options.incomingStore=e.incomingStore,t.options.outgoingStore=e.outgoingStore):(t.options.incomingStore=null,t.options.outgoingStore=null),t.incomingStore=t.options.incomingStore||new o,t.outgoingStore=t.options.outgoingStore||new o,t.disconnecting=!1,t.disconnected=!1,t._deferredReconnect=null,t._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=n:n(),this},D.prototype._reconnect=function(){m("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this._setupStream()}),m("client already connected. disconnecting first.")):(m("_reconnect: calling _setupStream"),this._setupStream())},D.prototype._setupReconnect=function(){const e=this;!e.disconnecting&&!e.reconnectTimer&&e.options.reconnectPeriod>0?(this.reconnecting||(m("_setupReconnect :: emit `offline` state"),this.emit("offline"),m("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),m("_setupReconnect :: setting reconnectTimer for %d ms",e.options.reconnectPeriod),e.reconnectTimer=setInterval((function(){m("reconnectTimer :: reconnect triggered!"),e._reconnect()}),e.options.reconnectPeriod)):m("_setupReconnect :: doing nothing...")},D.prototype._clearReconnect=function(){m("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)},D.prototype._cleanUp=function(e,t){const n=arguments[2];if(t&&(m("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",t)),m("_cleanUp :: forced? %s",e),e)0===this.options.reconnectPeriod&&this.options.clean&&O(this.outgoing),m("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{const e=g({cmd:"disconnect"},n);m("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(e,b.bind(null,this.stream.end.bind(this.stream)))}this.disconnecting||(m("_cleanUp :: client not disconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),null!==this.pingTimer&&(m("_cleanUp :: clearing pingTimer"),this.pingTimer.clear(),this.pingTimer=null),t&&!this.connected&&(m("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",t),t())},D.prototype._sendPacket=function(e,t,n){m("_sendPacket :: (%s) :: start",this.options.clientId),n=n||E,t=t||E;const i=C(this,e);if(i)t(i);else{if(!this.connected)return"auth"===e.cmd?(this._shiftPingInterval(),void x(this,e,t)):(m("_sendPacket :: client not connected. Storing packet offline."),void this._storePacket(e,t,n));switch(this._shiftPingInterval(),e.cmd){case"publish":break;case"pubrel":return void L(this,e,t,n);default:return void x(this,e,t)}switch(e.qos){case 2:case 1:L(this,e,t,n);break;case 0:default:x(this,e,t);break}m("_sendPacket :: (%s) :: end",this.options.clientId)}},D.prototype._storePacket=function(e,t,n){m("_storePacket :: packet: %o",e),m("_storePacket :: cb? %s",!!t),n=n||E;let i=e;if("publish"===i.cmd){i=f(e);const n=S(this,i);if(n)return t&&t(n)}0===(i.qos||0)&&this.queueQoSZero||"publish"!==i.cmd?this.queue.push({packet:i,cb:t}):i.qos>0?(t=this.outgoing[i.messageId]?this.outgoing[i.messageId].cb:null,this.outgoingStore.put(i,(function(e){if(e)return t&&t(e);n()}))):t&&t(new Error("No connection to broker"))},D.prototype._setupPingTimer=function(){m("_setupPingTimer :: keepalive %d (seconds)",this.options.keepalive);const e=this;!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=d((function(){e._checkPing()}),1e3*this.options.keepalive))},D.prototype._shiftPingInterval=function(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(1e3*this.options.keepalive)},D.prototype._checkPing=function(){m("_checkPing :: checking ping..."),this.pingResp?(m("_checkPing :: ping response received. Clearing flag and sending `pingreq`"),this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):(m("_checkPing :: calling _cleanUp with force true"),this._cleanUp(!0))},D.prototype._handlePingresp=function(){this.pingResp=!0},D.prototype._handleConnack=function(e){m("_handleConnack");const t=this.options,n=t.protocolVersion,i=5===n?e.reasonCode:e.returnCode;if(clearTimeout(this.connackTimer),delete this.topicAliasSend,e.properties){if(e.properties.topicAliasMaximum){if(e.properties.topicAliasMaximum>65535)return void this.emit("error",new Error("topicAliasMaximum from broker is out of range"));e.properties.topicAliasMaximum>0&&(this.topicAliasSend=new a(e.properties.topicAliasMaximum))}e.properties.serverKeepAlive&&t.keepalive&&(t.keepalive=e.properties.serverKeepAlive,this._shiftPingInterval()),e.properties.maximumPacketSize&&(t.properties||(t.properties={}),t.properties.maximumPacketSize=e.properties.maximumPacketSize)}if(0===i)this.reconnecting=!1,this._onConnect(e);else if(i>0){const e=new Error("Connection refused: "+_[i]);e.code=i,this.emit("error",e)}},D.prototype._handleAuth=function(e){const t=this.options,n=t.protocolVersion,i=5===n?e.reasonCode:e.returnCode;if(5!==n){const e=new Error("Protocol error: Auth packets are only supported in MQTT 5. Your version:"+n);return e.code=i,void this.emit("error",e)}const r=this;this.handleAuth(e,(function(e,t){if(e)r.emit("error",e);else if(24===i)r.reconnecting=!1,r._sendPacket(t);else{const t=new Error("Connection refused: "+_[i]);e.code=i,r.emit("error",t)}}))},D.prototype.handleAuth=function(e,t){t()},D.prototype._handlePublish=function(e,t){m("_handlePublish: packet %o",e),t="undefined"!==typeof t?t:E;let n=e.topic.toString();const i=e.payload,r=e.qos,o=e.messageId,s=this,a=this.options,l=[0,16,128,131,135,144,145,151,153];if(5===this.options.protocolVersion){let t;if(e.properties&&(t=e.properties.topicAlias),"undefined"!==typeof t)if(0===n.length){if(!(t>0&&t<=65535))return m("_handlePublish :: topic alias out of range. alias: %d",t),void this.emit("error",new Error("Received Topic Alias is out of range"));{const e=this.topicAliasRecv.getTopicByAlias(t);if(!e)return m("_handlePublish :: unregistered topic alias. alias: %d",t),void this.emit("error",new Error("Received unregistered Topic Alias"));n=e,m("_handlePublish :: topic complemented by alias. topic: %s - alias: %d",n,t)}}else{if(!this.topicAliasRecv.put(n,t))return m("_handlePublish :: topic alias out of range. alias: %d",t),void this.emit("error",new Error("Received Topic Alias is out of range"));m("_handlePublish :: registered topic: %s - alias: %d",n,t)}}switch(m("_handlePublish: qos %d",r),r){case 2:a.customHandleAcks(n,i,e,(function(n,i){return n instanceof Error||(i=n,n=null),n?s.emit("error",n):-1===l.indexOf(i)?s.emit("error",new Error("Wrong reason code for pubrec")):void(i?s._sendPacket({cmd:"pubrec",messageId:o,reasonCode:i},t):s.incomingStore.put(e,(function(){s._sendPacket({cmd:"pubrec",messageId:o},t)})))}));break;case 1:a.customHandleAcks(n,i,e,(function(r,a){return r instanceof Error||(a=r,r=null),r?s.emit("error",r):-1===l.indexOf(a)?s.emit("error",new Error("Wrong reason code for puback")):(a||s.emit("message",n,i,e),void s.handleMessage(e,(function(e){if(e)return t&&t(e);s._sendPacket({cmd:"puback",messageId:o,reasonCode:a},t)})))}));break;case 0:this.emit("message",n,i,e),this.handleMessage(e,t);break;default:m("_handlePublish: unknown QoS. Doing nothing.");break}},D.prototype.handleMessage=function(e,t){t()},D.prototype._handleAck=function(e){const t=e.messageId,n=e.cmd;let i=null;const r=this.outgoing[t]?this.outgoing[t].cb:null,o=this;let s;if(r){switch(m("_handleAck :: packet type",n),n){case"pubcomp":case"puback":{const n=e.reasonCode;n&&n>0&&16!==n&&(s=new Error("Publish error: "+_[n]),s.code=n,r(s,e)),delete this.outgoing[t],this.outgoingStore.del(e,r),this.messageIdProvider.deallocate(t),this._invokeStoreProcessingQueue();break}case"pubrec":{i={cmd:"pubrel",qos:2,messageId:t};const n=e.reasonCode;n&&n>0&&16!==n?(s=new Error("Publish error: "+_[n]),s.code=n,r(s,e)):this._sendPacket(i);break}case"suback":delete this.outgoing[t],this.messageIdProvider.deallocate(t);for(let n=0;n<e.granted.length;n++)if(0!==(128&e.granted[n])){const e=this.messageIdToTopic[t];e&&e.forEach((function(e){delete o._resubscribeTopics[e]}))}this._invokeStoreProcessingQueue(),r(null,e);break;case"unsuback":delete this.outgoing[t],this.messageIdProvider.deallocate(t),this._invokeStoreProcessingQueue(),r(null);break;default:o.emit("error",new Error("unrecognized packet type"))}this.disconnecting&&0===Object.keys(this.outgoing).length&&this.emit("outgoingEmpty")}else m("_handleAck :: Server sent an ack in error. Ignoring.")},D.prototype._handlePubrel=function(e,t){m("handling pubrel packet"),t="undefined"!==typeof t?t:E;const n=e.messageId,i=this,r={cmd:"pubcomp",messageId:n};i.incomingStore.get(e,(function(e,n){e?i._sendPacket(r,t):(i.emit("message",n.topic,n.payload,n),i.handleMessage(n,(function(e){if(e)return t(e);i.incomingStore.del(n,E),i._sendPacket(r,t)})))}))},D.prototype._handleDisconnect=function(e){this.emit("disconnect",e)},D.prototype._nextId=function(){return this.messageIdProvider.allocate()},D.prototype.getLastMessageId=function(){return this.messageIdProvider.getLastAllocated()},D.prototype._resubscribe=function(){m("_resubscribe");const e=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||5===this.options.protocolVersion&&!this.connackPacket.sessionPresent)&&e.length>0)if(this.options.resubscribe)if(5===this.options.protocolVersion){m("_resubscribe: protocolVersion 5");for(let t=0;t<e.length;t++){const n={};n[e[t]]=this._resubscribeTopics[e[t]],n.resubscribe=!0,this.subscribe(n,{properties:n[e[t]].properties})}}else this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics);else this._resubscribeTopics={};this._firstConnection=!1},D.prototype._onConnect=function(e){if(this.disconnected)return void this.emit("connect",e);const t=this;function n(){let i=t.outgoingStore.createStream();function r(){t._storeProcessing=!1,t._packetIdsDuringStoreProcessing={}}function o(){i.destroy(),i=null,t._flushStoreProcessingQueue(),r()}function s(){if(!i)return;t._storeProcessing=!0;const e=i.read(1);let n;e?t._packetIdsDuringStoreProcessing[e.messageId]?s():t.disconnecting||t.reconnectTimer?i.destroy&&i.destroy():(n=t.outgoing[e.messageId]?t.outgoing[e.messageId].cb:null,t.outgoing[e.messageId]={volatile:!1,cb:function(e,t){n&&n(e,t),s()}},t._packetIdsDuringStoreProcessing[e.messageId]=!0,t.messageIdProvider.register(e.messageId)?t._sendPacket(e):m("messageId: %d has already used.",e.messageId)):i.once("readable",s)}t.once("close",o),i.on("error",(function(e){r(),t._flushStoreProcessingQueue(),t.removeListener("close",o),t.emit("error",e)})),i.on("end",(function(){let i=!0;for(const e in t._packetIdsDuringStoreProcessing)if(!t._packetIdsDuringStoreProcessing[e]){i=!1;break}i?(r(),t.removeListener("close",o),t._invokeAllStoreProcessingQueue(),t.emit("connect",e)):n()})),s()}this.connackPacket=e,this.messageIdProvider.clear(),this._setupPingTimer(),this.connected=!0,n()},D.prototype._invokeStoreProcessingQueue=function(){if(this._storeProcessingQueue.length>0){const e=this._storeProcessingQueue[0];if(e&&e.invoke())return this._storeProcessingQueue.shift(),!0}return!1},D.prototype._invokeAllStoreProcessingQueue=function(){while(this._invokeStoreProcessingQueue());},D.prototype._flushStoreProcessingQueue=function(){for(const e of this._storeProcessingQueue)e.cbStorePut&&e.cbStorePut(new Error("Connection closed")),e.callback&&e.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)},e.exports=D}).call(this,n("4362"),n("c8ba"))},dfe5:function(e,t){},dff7:function(e,t,n){"use strict";function i(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,n){const i=n[0];return"undefined"!==typeof t[i]?t[i]:e})),n}function r(e,t,...n){return i(t,n)}n.d(t,"a",(function(){return r}))},e017:function(e,t,n){(function(t){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=function(e){var t=e.id,n=e.viewBox,i=e.content;this.id=t,this.viewBox=n,this.content=i};e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var n=function(e){var t=!!document.importNode,n=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(n,!0):n};"undefined"!==typeof window?window:"undefined"!==typeof t||"undefined"!==typeof self&&self;function i(e,t){return t={exports:{}},e(t,t.exports),t.exports}var r=i((function(e,t){(function(t,n){e.exports=n()})(0,(function(){function e(e){var t=e&&"object"===typeof e;return t&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(e){return Array.isArray(e)?[]:{}}function n(n,i){var r=i&&!0===i.clone;return r&&e(n)?o(t(n),n,i):n}function i(t,i,r){var s=t.slice();return i.forEach((function(i,a){"undefined"===typeof s[a]?s[a]=n(i,r):e(i)?s[a]=o(t[a],i,r):-1===t.indexOf(i)&&s.push(n(i,r))})),s}function r(t,i,r){var s={};return e(t)&&Object.keys(t).forEach((function(e){s[e]=n(t[e],r)})),Object.keys(i).forEach((function(a){e(i[a])&&t[a]?s[a]=o(t[a],i[a],r):s[a]=n(i[a],r)})),s}function o(e,t,o){var s=Array.isArray(t),a=o||{arrayMerge:i},l=a.arrayMerge||i;return s?Array.isArray(e)?l(e,t,o):n(t,o):r(e,t,o)}return o.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return o(e,n,t)}))},o}))})),o=i((function(e,t){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};t.default=n,e.exports=t.default})),s=function(e){return Object.keys(e).map((function(t){var n=e[t].toString().replace(/"/g,""");return t+'="'+n+'"'})).join(" ")},a=o.svg,l=o.xlink,c={};c[a.name]=a.uri,c[l.name]=l.uri;var u=function(e,t){void 0===e&&(e="");var n=r(c,t||{}),i=s(n);return"<svg "+i+">"+e+"</svg>"},h=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"===typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t.appendChild(n),n},t.prototype.render=function(){var e=this.stringify();return n(u(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,i),t}(e);return h}))}).call(this,n("c8ba"))},e01a:function(e,t,n){"use strict";var i=n("23e7"),r=n("83ab"),o=n("da84"),s=n("e330"),a=n("1a2d"),l=n("1626"),c=n("3a9b"),u=n("577e"),h=n("9bf2").f,d=n("e893"),f=o.Symbol,p=f&&f.prototype;if(r&&l(f)&&(!("description"in p)||void 0!==f().description)){var g={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=c(p,this)?new f(e):void 0===e?f():f(e);return""===e&&(g[t]=!0),t};d(m,f),m.prototype=p,p.constructor=m;var v="Symbol(test)"==String(f("test")),b=s(p.valueOf),y=s(p.toString),_=/^Symbol\((.*)\)[^)]+$/,w=s("".replace),C=s("".slice);h(p,"description",{configurable:!0,get:function(){var e=b(this);if(a(g,e))return"";var t=y(e),n=v?C(t,7,-1):w(t,_,"$1");return""===n?void 0:n}}),i({global:!0,constructor:!0,forced:!0},{Symbol:m})}},e065:function(e,t,n){var i=n("428f"),r=n("1a2d"),o=n("e538"),s=n("9bf2").f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});r(t,e)||s(t,e,{value:o.f(e)})}},e0d3:function(e,t,n){"use strict";n.d(t,"r",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return h})),n.d(t,"h",(function(){return d})),n.d(t,"m",(function(){return f})),n.d(t,"q",(function(){return p})),n.d(t,"e",(function(){return S})),n.d(t,"n",(function(){return x})),n.d(t,"l",(function(){return O})),n.d(t,"p",(function(){return k})),n.d(t,"x",(function(){return L})),n.d(t,"d",(function(){return D})),n.d(t,"u",(function(){return I})),n.d(t,"o",(function(){return M})),n.d(t,"s",(function(){return A})),n.d(t,"t",(function(){return N})),n.d(t,"b",(function(){return P})),n.d(t,"a",(function(){return j})),n.d(t,"v",(function(){return R})),n.d(t,"w",(function(){return F})),n.d(t,"g",(function(){return B})),n.d(t,"i",(function(){return W})),n.d(t,"j",(function(){return V})),n.d(t,"k",(function(){return z}));var i=n("6d8b"),r=n("22d1"),o=n("3842");function s(e,t,n){return(t-e)*n+e}var a="series\0",l="\0_ec_\0";function c(e){return e instanceof Array?e:null==e?[]:[e]}function u(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var h=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function d(e){return!Object(i["isObject"])(e)||Object(i["isArray"])(e)||e instanceof Date?e:e.value}function f(e){return Object(i["isObject"])(e)&&!(e instanceof Array)}function p(e,t,n){var r="normalMerge"===n,o="replaceMerge"===n,s="replaceAll"===n;e=e||[],t=(t||[]).slice();var a=Object(i["createHashMap"])();Object(i["each"])(t,(function(e,n){Object(i["isObject"])(e)||(t[n]=null)}));var l=g(e,a,n);return(r||o)&&m(l,e,a,t),r&&v(l,t),r||o?b(l,t,o):s&&y(l,t),_(l),l}function g(e,t,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<e.length;r++){var o=e[r];o&&null!=o.id&&t.set(o.id,r),i.push({existing:"replaceMerge"===n||O(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function m(e,t,n,r){Object(i["each"])(r,(function(o,s){if(o&&null!=o.id){var a=C(o.id),l=n.get(a);if(null!=l){var c=e[l];Object(i["assert"])(!c.newOption,'Duplicated option on id "'+a+'".'),c.newOption=o,c.existing=t[l],r[s]=null}}}))}function v(e,t){Object(i["each"])(t,(function(n,i){if(n&&null!=n.name)for(var r=0;r<e.length;r++){var o=e[r].existing;if(!e[r].newOption&&o&&(null==o.id||null==n.id)&&!O(n)&&!O(o)&&w("name",o,n))return e[r].newOption=n,void(t[i]=null)}}))}function b(e,t,n){Object(i["each"])(t,(function(t){if(t){var i,r=0;while((i=e[r])&&(i.newOption||O(i.existing)||i.existing&&null!=t.id&&!w("id",t,i.existing)))r++;i?(i.newOption=t,i.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),r++}}))}function y(e,t){Object(i["each"])(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}function _(e){var t=Object(i["createHashMap"])();Object(i["each"])(e,(function(e){var n=e.existing;n&&t.set(n.id,e)})),Object(i["each"])(e,(function(e){var n=e.newOption;Object(i["assert"])(!n||null==n.id||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})})),Object(i["each"])(e,(function(e,n){var r=e.existing,o=e.newOption,s=e.keyInfo;if(Object(i["isObject"])(o)){if(s.name=null!=o.name?C(o.name):r?r.name:a+n,r)s.id=C(r.id);else if(null!=o.id)s.id=C(o.id);else{var l=0;do{s.id="\0"+s.name+"\0"+l++}while(t.get(s.id))}t.set(s.id,e)}}))}function w(e,t,n){var i=S(t[e],null),r=S(n[e],null);return null!=i&&null!=r&&i===r}function C(e){return S(e,"")}function S(e,t){return null==e?t:Object(i["isString"])(e)?e:Object(i["isNumber"])(e)||Object(i["isStringSafe"])(e)?e+"":t}function x(e){var t=e.name;return!(!t||!t.indexOf(a))}function O(e){return e&&null!=e.id&&0===C(e.id).indexOf(l)}function k(e){return l+e}function L(e,t,n){Object(i["each"])(e,(function(e){var r=e.newOption;Object(i["isObject"])(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=E(t,r,e.existing,n))}))}function E(e,t,n,i){var r=t.type?t.type:n?n.subType:i.determineSubType(e,t);return r}function D(e,t){var n={},i={};return r(e||[],n),r(t||[],i,n),[o(n),o(i)];function r(e,t,n){for(var i=0,r=e.length;i<r;i++){var o=S(e[i].seriesId,null);if(null==o)return;for(var s=c(e[i].dataIndex),a=n&&n[o],l=0,u=s.length;l<u;l++){var h=s[l];a&&a[h]?a[h]=null:(t[o]||(t[o]={}))[h]=1}}}function o(e,t){var n=[];for(var i in e)if(e.hasOwnProperty(i)&&null!=e[i])if(t)n.push(+i);else{var r=o(e[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}function I(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?Object(i["isArray"])(t.dataIndex)?Object(i["map"])(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?Object(i["isArray"])(t.name)?Object(i["map"])(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function M(){var e="__ec_inner_"+T++;return function(t){return t[e]||(t[e]={})}}var T=Object(o["j"])();function A(e,t,n){var i=N(t,n),r=i.mainTypeSpecified,o=i.queryOptionMap,s=i.others,a=s,l=n?n.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each((function(t,i){var r=R(e,i,t,{useDefault:l===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]})),a}function N(e,t){var n;if(Object(i["isString"])(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var o=Object(i["createHashMap"])(),s={},a=!1;return Object(i["each"])(n,(function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],l=r[1],c=(r[2]||"").toLowerCase();if(l&&c&&!(t&&t.includeMainTypes&&Object(i["indexOf"])(t.includeMainTypes,l)<0)){a=a||!!l;var u=o.get(l)||o.set(l,{});u[c]=e}}else s[n]=e})),{mainTypeSpecified:a,queryOptionMap:o,others:s}}var P={useDefault:!0,enableAll:!1,enableNone:!1},j={useDefault:!1,enableAll:!0,enableNone:!0};function R(e,t,n,r){r=r||P;var o=n.index,s=n.id,a=n.name,l={models:null,specified:null!=o||null!=s||null!=a};if(!l.specified){var c=void 0;return l.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],l}return"none"===o||!1===o?(Object(i["assert"])(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):("all"===o&&(Object(i["assert"])(r.enableAll,'`"all"` is not a valid value on index option.'),o=s=a=null),l.models=e.queryComponents({mainType:t,index:o,id:s,name:a}),l)}function F(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function B(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function W(e){return"auto"===e?r["a"].domSupported?"html":"richText":e||"html"}function V(e,t){var n=Object(i["createHashMap"])(),r=[];return Object(i["each"])(e,(function(e){var i=t(e);(n.get(i)||(r.push(i),n.set(i,[]))).push(e)})),{keys:r,buckets:n}}function z(e,t,n,r,a){var l=null==t||"auto"===t;if(null==r)return r;if(Object(i["isNumber"])(r)){var c=s(n||0,r,a);return Object(o["w"])(c,l?Math.max(Object(o["h"])(n||0),Object(o["h"])(r)):t)}if(Object(i["isString"])(r))return a<1?n:r;for(var u=[],h=n,d=r,f=Math.max(h?h.length:0,d.length),p=0;p<f;++p){var g=e.getDimensionInfo(p);if(g&&"ordinal"===g.type)u[p]=(a<1&&h?h:d)[p];else{var m=h&&h[p]?h[p]:0,v=d[p];c=s(m,v,a);u[p]=Object(o["w"])(c,l?Math.max(Object(o["h"])(m),Object(o["h"])(v)):t)}}return u}},e0d8:function(e,t,n){"use strict";var i=n("625e"),r=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();i["c"](r),t["a"]=r},e11f:function(e,t,n){},e142:function(e,t,n){"use strict";function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function o(e,t,n){function o(e,n,i){return"string"===typeof t?t:t(e,n,i)}n||(n=Error);var s=function(e){function t(t,n,i){return e.call(this,o(t,n,i))||this}return i(t,e),t}(n);s.prototype.name=n.name,s.prototype.code=e,r[e]=s}function s(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}function a(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function l(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function c(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,n){var i,r;if("string"===typeof t&&a(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be",l(e," argument"))r="The ".concat(e," ").concat(i," ").concat(s(t,"type"));else{var o=c(e,".")?"property":"argument";r='The "'.concat(e,'" ').concat(o," ").concat(i," ").concat(s(t,"type"))}return r+=". Received type ".concat(typeof n),r}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},e163:function(e,t,n){var i=n("1a2d"),r=n("1626"),o=n("7b0b"),s=n("f772"),a=n("e177"),l=s("IE_PROTO"),c=Object,u=c.prototype;e.exports=a?c.getPrototypeOf:function(e){var t=o(e);if(i(t,l))return t[l];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},e169:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.drawPolylinePath=o,t.drawBezierCurvePath=s,t["default"]=void 0;var r=i(n("448a"));function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||t.length<2)return!1;n&&e.beginPath(),t.forEach((function(t,n){return t&&(0===n?e.moveTo.apply(e,(0,r["default"])(t)):e.lineTo.apply(e,(0,r["default"])(t)))})),i&&e.closePath()}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!e||!t)return!1;i&&e.beginPath(),n&&e.moveTo.apply(e,(0,r["default"])(n)),t.forEach((function(t){return t&&e.bezierCurveTo.apply(e,(0,r["default"])(t[0]).concat((0,r["default"])(t[1]),(0,r["default"])(t[2])))})),o&&e.closePath()}var a={drawPolylinePath:o,drawBezierCurvePath:s};t["default"]=a},e177:function(e,t,n){var i=n("d039");e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e198:function(e,t,n){var i=n("ef08"),r=n("5524"),o=n("e444"),s=n("fcd4"),a=n("1a14").f;e.exports=function(e){var t=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},e1b5:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("b707");class r{constructor(e,t){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t}static createEmpty(e){const t=r.defaultTokenMetadata,n=new Uint32Array(2);return n[0]=e.length,n[1]=t,new r(n,e)}equals(e){return e instanceof r&&this.slicedEquals(e,0,this._tokensCount)}slicedEquals(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;const i=t<<1,r=i+(n<<1);for(let o=i;o<r;o++)if(this._tokens[o]!==e._tokens[o])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(e){return e>0?this._tokens[e-1<<1]:0}getMetadata(e){const t=this._tokens[1+(e<<1)];return t}getLanguageId(e){const t=this._tokens[1+(e<<1)];return i["E"].getLanguageId(t)}getStandardTokenType(e){const t=this._tokens[1+(e<<1)];return i["E"].getTokenType(t)}getForeground(e){const t=this._tokens[1+(e<<1)];return i["E"].getForeground(t)}getClassName(e){const t=this._tokens[1+(e<<1)];return i["E"].getClassNameFromMetadata(t)}getInlineStyle(e,t){const n=this._tokens[1+(e<<1)];return i["E"].getInlineStyleFromMetadata(n,t)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return r.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,t,n){return new o(this,e,t,n)}static convertToEndOffset(e,t){const n=e.length>>>1,i=n-1;for(let r=0;r<i;r++)e[r<<1]=e[r+1<<1];e[i<<1]=t}static findIndexInTokensArray(e,t){if(e.length<=2)return 0;let n=0,i=(e.length>>>1)-1;while(n<i){const r=n+Math.floor((i-n)/2),o=e[r<<1];if(o===t)return r+1;o<t?n=r+1:o>t&&(i=r)}return n}withInserted(e){if(0===e.length)return this;let t=0,n=0,i="";const o=new Array;let s=0;while(1){let r=t<this._tokensCount?this._tokens[t<<1]:-1,a=n<e.length?e[n]:null;if(-1!==r&&(null===a||r<=a.offset)){i+=this._text.substring(s,r);const e=this._tokens[1+(t<<1)];o.push(i.length,e),t++,s=r}else{if(!a)break;if(a.offset>s){i+=this._text.substring(s,a.offset);const e=this._tokens[1+(t<<1)];o.push(i.length,e),s=a.offset}i+=a.text,o.push(i.length,a.tokenMetadata),n++}}return new r(new Uint32Array(o),i)}}r.defaultTokenMetadata=16793600;class o{constructor(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(let r=this._firstTokenIndex,o=e.getCount();r<o;r++){const t=e.getStartOffset(r);if(t>=n)break;this._tokensCount++}}equals(e){return e instanceof o&&(this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount))}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}},e260:function(e,t,n){"use strict";var i=n("fc6a"),r=n("44d2"),o=n("3f8c"),s=n("69f3"),a=n("9bf2").f,l=n("c6d2"),c=n("4754"),u=n("c430"),h=n("83ab"),d="Array Iterator",f=s.set,p=s.getterFor(d);e.exports=l(Array,"Array",(function(e,t){f(this,{type:d,target:i(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,c(void 0,!0)):c("keys"==n?i:"values"==n?t[i]:[i,t[i]],!1)}),"values");var g=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!u&&h&&"values"!==g.name)try{a(g,"name",{value:"values"})}catch(m){}},e263:function(e,t,n){"use strict";n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return v})),n.d(t,"e",(function(){return b})),n.d(t,"a",(function(){return y}));var i=n("401b"),r=n("4a3f"),o=Math.min,s=Math.max,a=Math.sin,l=Math.cos,c=2*Math.PI,u=i["create"](),h=i["create"](),d=i["create"]();function f(e,t,n){if(0!==e.length){for(var i=e[0],r=i[0],a=i[0],l=i[1],c=i[1],u=1;u<e.length;u++)i=e[u],r=o(r,i[0]),a=s(a,i[0]),l=o(l,i[1]),c=s(c,i[1]);t[0]=r,t[1]=l,n[0]=a,n[1]=c}}function p(e,t,n,i,r,a){r[0]=o(e,n),r[1]=o(t,i),a[0]=s(e,n),a[1]=s(t,i)}var g=[],m=[];function v(e,t,n,i,a,l,c,u,h,d){var f=r["c"],p=r["a"],v=f(e,n,a,c,g);h[0]=1/0,h[1]=1/0,d[0]=-1/0,d[1]=-1/0;for(var b=0;b<v;b++){var y=p(e,n,a,c,g[b]);h[0]=o(y,h[0]),d[0]=s(y,d[0])}v=f(t,i,l,u,m);for(b=0;b<v;b++){var _=p(t,i,l,u,m[b]);h[1]=o(_,h[1]),d[1]=s(_,d[1])}h[0]=o(e,h[0]),d[0]=s(e,d[0]),h[0]=o(c,h[0]),d[0]=s(c,d[0]),h[1]=o(t,h[1]),d[1]=s(t,d[1]),h[1]=o(u,h[1]),d[1]=s(u,d[1])}function b(e,t,n,i,a,l,c,u){var h=r["j"],d=r["h"],f=s(o(h(e,n,a),1),0),p=s(o(h(t,i,l),1),0),g=d(e,n,a,f),m=d(t,i,l,p);c[0]=o(e,a,g),c[1]=o(t,l,m),u[0]=s(e,a,g),u[1]=s(t,l,m)}function y(e,t,n,r,o,s,f,p,g){var m=i["min"],v=i["max"],b=Math.abs(o-s);if(b%c<1e-4&&b>1e-4)return p[0]=e-n,p[1]=t-r,g[0]=e+n,void(g[1]=t+r);if(u[0]=l(o)*n+e,u[1]=a(o)*r+t,h[0]=l(s)*n+e,h[1]=a(s)*r+t,m(p,u,h),v(g,u,h),o%=c,o<0&&(o+=c),s%=c,s<0&&(s+=c),o>s&&!f?s+=c:o<s&&f&&(o+=c),f){var y=s;s=o,o=y}for(var _=0;_<s;_+=Math.PI/2)_>o&&(d[0]=l(_)*n+e,d[1]=a(_)*r+t,m(p,d,p),v(g,d,g))}},e2b8:function(e,t,n){},e2c2:function(e,t,n){"use strict";n.r(t),n.d(t,"StandaloneReferencesController",(function(){return f}));var i=n("b2cc"),r=n("5717"),o=n("418f"),s=n("fbba"),a=n("4fc3"),l=n("0a0f"),c=n("b0cd"),u=n("03e8"),h=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},d=function(e,t){return function(n,i){t(n,i,e)}};let f=class extends o["a"]{constructor(e,t,n,i,r,o,s){super(!0,e,t,n,i,r,o,s)}};f=h([d(1,a["b"]),d(2,r["a"]),d(3,c["a"]),d(4,l["a"]),d(5,u["a"]),d(6,s["a"])],f),Object(i["l"])(o["a"].ID,f)},e32d:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var i=n("308f");class r{constructor(e,t,n){const r=e=>this.emitter.fire(e);this.emitter=new i["b"]({onFirstListenerAdd:()=>e.addEventListener(t,r,n),onLastListenerRemove:()=>e.removeEventListener(t,r,n)})}get event(){return this.emitter.event}dispose(){this.emitter.dispose()}}function o(e){return e.preventDefault(),e.stopPropagation(),e}},e330:function(e,t,n){var i=n("40d5"),r=Function.prototype,o=r.bind,s=r.call,a=i&&o.bind(s,s);e.exports=i?function(e){return e&&a(e)}:function(e){return e&&function(){return s.apply(e,arguments)}}},e34a:function(e,t,n){var i=n("8b1a")("meta"),r=n("7a41"),o=n("9c0e"),s=n("1a14").f,a=0,l=Object.isExtensible||function(){return!0},c=!n("4b8b")((function(){return l(Object.preventExtensions({}))})),u=function(e){s(e,i,{value:{i:"O"+ ++a,w:{}}})},h=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,i)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[i].i},d=function(e,t){if(!o(e,i)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[i].w},f=function(e){return c&&p.NEED&&l(e)&&!o(e,i)&&u(e),e},p=e.exports={KEY:i,NEED:!1,fastKey:h,getWeak:d,onFreeze:f}},e385:function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return y}));n("e750");var i=n("a666"),r=n("308f"),o=n("ef8e"),s=n("49d9"),a=n("e8e3"),l=n("70c3"),c=n("ceb8"),u=n("11f7"),h=n("1898"),d=n("42e3");const f={separatorBorder:c["a"].transparent};class p{constructor(e,t,n,i){this.container=e,this.view=t,this.disposable=i,this._cachedVisibleSize=void 0,"number"===typeof n?(this._size=n,this._cachedVisibleSize=void 0,e.classList.add("visible")):(this._size=0,this._cachedVisibleSize=n.cachedVisibleSize)}set size(e){this._size=e}get size(){return this._size}get visible(){return"undefined"===typeof this._cachedVisibleSize}setVisible(e,t){e!==this.visible&&(e?(this.size=Object(s["b"])(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize="number"===typeof t?t:this.size,this.size=0),this.container.classList.toggle("visible",e),this.view.setVisible&&this.view.setVisible(e))}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get snap(){return!!this.view.snap}set enabled(e){this.container.style.pointerEvents=e?"":"none"}layout(e,t){this.layoutContainer(e),this.view.layout(this.size,e,t)}dispose(){return this.disposable.dispose(),this.view}}class g extends p{layoutContainer(e){this.container.style.top=e+"px",this.container.style.height=this.size+"px"}}class m extends p{layoutContainer(e){this.container.style.left=e+"px",this.container.style.width=this.size+"px"}}var v,b;(function(e){e[e["Idle"]=0]="Idle",e[e["Busy"]=1]="Busy"})(v||(v={})),function(e){function t(e){return{type:"split",index:e}}function n(e){return{type:"invisible",cachedVisibleSize:e}}e.Distribute={type:"distribute"},e.Split=t,e.Invisible=n}(b||(b={}));class y extends i["a"]{constructor(e,t={}){var n,i;super(),this.size=0,this.contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=v.Idle,this._onDidSashChange=this._register(new r["b"]),this.onDidSashChange=this._onDidSashChange.event,this._onDidSashReset=this._register(new r["b"]),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.orientation=o["l"](t.orientation)?0:t.orientation,this.inverseAltBehavior=!!t.inverseAltBehavior,this.proportionalLayout=!!o["l"](t.proportionalLayout)||!!t.proportionalLayout,this.getSashOrthogonalSize=t.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(0===this.orientation?"vertical":"horizontal"),e.appendChild(this.el),this.sashContainer=Object(u["q"])(this.el,Object(u["a"])(".sash-container")),this.viewContainer=Object(u["a"])(".split-view-container"),this.scrollable=new d["a"](125,u["V"]),this.scrollableElement=this._register(new h["c"](this.viewContainer,{vertical:0===this.orientation?null!==(n=t.scrollbarVisibility)&&void 0!==n?n:1:2,horizontal:1===this.orientation?null!==(i=t.scrollbarVisibility)&&void 0!==i?i:1:2},this.scrollable)),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(e=>{this.viewContainer.scrollTop=e.scrollTop,this.viewContainer.scrollLeft=e.scrollLeft})),Object(u["q"])(this.el,this.scrollableElement.getDomNode()),this.style(t.styles||f),t.descriptor&&(this.size=t.descriptor.size,t.descriptor.views.forEach((e,t)=>{const n=o["l"](e.visible)||e.visible?e.size:{type:"invisible",cachedVisibleSize:e.size},i=e.view;this.doAddView(i,n,t,!0)}),this.contentSize=this.viewItems.reduce((e,t)=>e+t.size,0),this.saveProportions())}get orthogonalStartSash(){return this._orthogonalStartSash}set orthogonalStartSash(e){for(const t of this.sashItems)t.sash.orthogonalStartSash=e;this._orthogonalStartSash=e}get orthogonalEndSash(){return this._orthogonalEndSash}set orthogonalEndSash(e){for(const t of this.sashItems)t.sash.orthogonalEndSash=e;this._orthogonalEndSash=e}get startSnappingEnabled(){return this._startSnappingEnabled}set startSnappingEnabled(e){this._startSnappingEnabled!==e&&(this._startSnappingEnabled=e,this.updateSashEnablement())}get endSnappingEnabled(){return this._endSnappingEnabled}set endSnappingEnabled(e){this._endSnappingEnabled!==e&&(this._endSnappingEnabled=e,this.updateSashEnablement())}style(e){e.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",e.separatorBorder.toString()))}addView(e,t,n=this.viewItems.length,i){this.doAddView(e,t,n,i)}layout(e,t){const n=Math.max(this.size,this.contentSize);if(this.size=e,this.layoutContext=t,this.proportions)for(let i=0;i<this.viewItems.length;i++){const t=this.viewItems[i];t.size=Object(s["b"])(Math.round(this.proportions[i]*e),t.minimumSize,t.maximumSize)}else{const t=Object(a["r"])(this.viewItems.length),i=t.filter(e=>1===this.viewItems[e].priority),r=t.filter(e=>2===this.viewItems[e].priority);this.resize(this.viewItems.length-1,e-n,void 0,i,r)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this.contentSize>0&&(this.proportions=this.viewItems.map(e=>e.size/this.contentSize))}onSashStart({sash:e,start:t,alt:n}){for(const i of this.viewItems)i.enabled=!1;const r=this.sashItems.findIndex(t=>t.sash===e),o=Object(i["e"])(Object(u["i"])(document.body,"keydown",e=>s(this.sashDragState.current,e.altKey)),Object(u["i"])(document.body,"keyup",()=>s(this.sashDragState.current,!1))),s=(e,t)=>{const n=this.viewItems.map(e=>e.size);let i,s,l=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(t=!t),t){const e=r===this.sashItems.length-1;if(e){const e=this.viewItems[r];l=(e.minimumSize-e.size)/2,c=(e.maximumSize-e.size)/2}else{const e=this.viewItems[r+1];l=(e.size-e.maximumSize)/2,c=(e.size-e.minimumSize)/2}}if(!t){const e=Object(a["r"])(r,-1),t=Object(a["r"])(r+1,this.viewItems.length),o=e.reduce((e,t)=>e+(this.viewItems[t].minimumSize-n[t]),0),l=e.reduce((e,t)=>e+(this.viewItems[t].viewMaximumSize-n[t]),0),c=0===t.length?Number.POSITIVE_INFINITY:t.reduce((e,t)=>e+(n[t]-this.viewItems[t].minimumSize),0),u=0===t.length?Number.NEGATIVE_INFINITY:t.reduce((e,t)=>e+(n[t]-this.viewItems[t].viewMaximumSize),0),h=Math.max(o,u),d=Math.min(c,l),f=this.findFirstSnapIndex(e),p=this.findFirstSnapIndex(t);if("number"===typeof f){const e=this.viewItems[f],t=Math.floor(e.viewMinimumSize/2);i={index:f,limitDelta:e.visible?h-t:h+t,size:e.size}}if("number"===typeof p){const e=this.viewItems[p],t=Math.floor(e.viewMinimumSize/2);s={index:p,limitDelta:e.visible?d+t:d-t,size:e.size}}}this.sashDragState={start:e,current:e,index:r,sizes:n,minDelta:l,maxDelta:c,alt:t,snapBefore:i,snapAfter:s,disposable:o}};s(t,n)}onSashChange({current:e}){const{index:t,start:n,sizes:i,alt:r,minDelta:o,maxDelta:s,snapBefore:a,snapAfter:l}=this.sashDragState;this.sashDragState.current=e;const c=e-n,u=this.resize(t,c,i,void 0,void 0,o,s,a,l);if(r){const e=t===this.sashItems.length-1,n=this.viewItems.map(e=>e.size),i=e?t:t+1,r=this.viewItems[i],o=r.size-r.maximumSize,s=r.size-r.minimumSize,a=e?t-1:t+1;this.resize(a,-u,n,void 0,void 0,o,s)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions();for(const t of this.viewItems)t.enabled=!0}onViewChange(e,t){const n=this.viewItems.indexOf(e);n<0||n>=this.viewItems.length||(t="number"===typeof t?t:e.size,t=Object(s["b"])(t,e.minimumSize,e.maximumSize),this.inverseAltBehavior&&n>0?(this.resize(n-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout([n],void 0)))}resizeView(e,t){if(this.state!==v.Idle)throw new Error("Cant modify splitview");if(this.state=v.Busy,e<0||e>=this.viewItems.length)return;const n=Object(a["r"])(this.viewItems.length).filter(t=>t!==e),i=[...n.filter(e=>1===this.viewItems[e].priority),e],r=n.filter(e=>2===this.viewItems[e].priority),o=this.viewItems[e];t=Math.round(t),t=Object(s["b"])(t,o.minimumSize,Math.min(o.maximumSize,this.size)),o.size=t,this.relayout(i,r),this.state=v.Idle}distributeViewSizes(){const e=[];let t=0;for(const s of this.viewItems)s.maximumSize-s.minimumSize>0&&(e.push(s),t+=s.size);const n=Math.floor(t/e.length);for(const a of e)a.size=Object(s["b"])(n,a.minimumSize,a.maximumSize);const i=Object(a["r"])(this.viewItems.length),r=i.filter(e=>1===this.viewItems[e].priority),o=i.filter(e=>2===this.viewItems[e].priority);this.relayout(r,o)}getViewSize(e){return e<0||e>=this.viewItems.length?-1:this.viewItems[e].size}doAddView(e,t,n=this.viewItems.length,o){if(this.state!==v.Idle)throw new Error("Cant modify splitview");this.state=v.Busy;const s=Object(u["a"])(".split-view-view");n===this.viewItems.length?this.viewContainer.appendChild(s):this.viewContainer.insertBefore(s,this.viewContainer.children.item(n));const c=e.onDidChange(e=>this.onViewChange(p,e)),h=Object(i["i"])(()=>this.viewContainer.removeChild(s)),d=Object(i["e"])(c,h);let f;f="number"===typeof t?t:"split"===t.type?this.getViewSize(t.index)/2:"invisible"===t.type?{cachedVisibleSize:t.cachedVisibleSize}:e.minimumSize;const p=0===this.orientation?new g(s,e,f,d):new m(s,e,f,d);if(this.viewItems.splice(n,0,p),this.viewItems.length>1){let e={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash};const t=0===this.orientation?new l["b"](this.sashContainer,{getHorizontalSashTop:e=>this.getSashPosition(e),getHorizontalSashWidth:this.getSashOrthogonalSize},Object.assign(Object.assign({},e),{orientation:1})):new l["b"](this.sashContainer,{getVerticalSashLeft:e=>this.getSashPosition(e),getVerticalSashHeight:this.getSashOrthogonalSize},Object.assign(Object.assign({},e),{orientation:0})),o=0===this.orientation?e=>({sash:t,start:e.startY,current:e.currentY,alt:e.altKey}):e=>({sash:t,start:e.startX,current:e.currentX,alt:e.altKey}),s=r["c"].map(t.onDidStart,o),c=s(this.onSashStart,this),u=r["c"].map(t.onDidChange,o),h=u(this.onSashChange,this),d=r["c"].map(t.onDidEnd,()=>this.sashItems.findIndex(e=>e.sash===t)),f=d(this.onSashEnd,this),p=t.onDidReset(()=>{const e=this.sashItems.findIndex(e=>e.sash===t),n=Object(a["r"])(e,-1),i=Object(a["r"])(e+1,this.viewItems.length),r=this.findFirstSnapIndex(n),o=this.findFirstSnapIndex(i);("number"!==typeof r||this.viewItems[r].visible)&&("number"!==typeof o||this.viewItems[o].visible)&&this._onDidSashReset.fire(e)}),g=Object(i["e"])(c,h,f,p,t),m={sash:t,disposable:g};this.sashItems.splice(n-1,0,m)}let b;s.appendChild(e.element),"number"!==typeof t&&"split"===t.type&&(b=[t.index]),o||this.relayout([n],b),this.state=v.Idle,o||"number"===typeof t||"distribute"!==t.type||this.distributeViewSizes()}relayout(e,t){const n=this.viewItems.reduce((e,t)=>e+t.size,0);this.resize(this.viewItems.length-1,this.size-n,void 0,e,t),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(e,t,n=this.viewItems.map(e=>e.size),i,r,o=Number.NEGATIVE_INFINITY,l=Number.POSITIVE_INFINITY,c,u){if(e<0||e>=this.viewItems.length)return 0;const h=Object(a["r"])(e,-1),d=Object(a["r"])(e+1,this.viewItems.length);if(r)for(const s of r)Object(a["p"])(h,s),Object(a["p"])(d,s);if(i)for(const s of i)Object(a["o"])(h,s),Object(a["o"])(d,s);const f=h.map(e=>this.viewItems[e]),p=h.map(e=>n[e]),g=d.map(e=>this.viewItems[e]),m=d.map(e=>n[e]),v=h.reduce((e,t)=>e+(this.viewItems[t].minimumSize-n[t]),0),b=h.reduce((e,t)=>e+(this.viewItems[t].maximumSize-n[t]),0),y=0===d.length?Number.POSITIVE_INFINITY:d.reduce((e,t)=>e+(n[t]-this.viewItems[t].minimumSize),0),_=0===d.length?Number.NEGATIVE_INFINITY:d.reduce((e,t)=>e+(n[t]-this.viewItems[t].maximumSize),0),w=Math.max(v,_,o),C=Math.min(y,b,l);let S=!1;if(c){const e=this.viewItems[c.index],n=t>=c.limitDelta;S=n!==e.visible,e.setVisible(n,c.size)}if(!S&&u){const e=this.viewItems[u.index],n=t<u.limitDelta;S=n!==e.visible,e.setVisible(n,u.size)}if(S)return this.resize(e,t,n,i,r,o,l);t=Object(s["b"])(t,w,C);for(let a=0,x=t;a<f.length;a++){const e=f[a],t=Object(s["b"])(p[a]+x,e.minimumSize,e.maximumSize),n=t-p[a];x-=n,e.size=t}for(let a=0,x=t;a<g.length;a++){const e=g[a],t=Object(s["b"])(m[a]-x,e.minimumSize,e.maximumSize),n=t-m[a];x+=n,e.size=t}return t}distributeEmptySpace(e){const t=this.viewItems.reduce((e,t)=>e+t.size,0);let n=this.size-t;const i=Object(a["r"])(this.viewItems.length-1,-1),r=i.filter(e=>1===this.viewItems[e].priority),o=i.filter(e=>2===this.viewItems[e].priority);for(const s of o)Object(a["p"])(i,s);for(const s of r)Object(a["o"])(i,s);"number"===typeof e&&Object(a["o"])(i,e);for(let a=0;0!==n&&a<i.length;a++){const e=this.viewItems[i[a]],t=Object(s["b"])(e.size+n,e.minimumSize,e.maximumSize),r=t-e.size;n-=r,e.size=t}}layoutViews(){this.contentSize=this.viewItems.reduce((e,t)=>e+t.size,0);let e=0;for(const t of this.viewItems)t.layout(e,this.layoutContext),e+=t.size;this.sashItems.forEach(e=>e.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){0===this.orientation?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this.contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this.contentSize})}updateSashEnablement(){let e=!1;const t=this.viewItems.map(t=>e=t.size-t.minimumSize>0||e);e=!1;const n=this.viewItems.map(t=>e=t.maximumSize-t.size>0||e),i=[...this.viewItems].reverse();e=!1;const r=i.map(t=>e=t.size-t.minimumSize>0||e).reverse();e=!1;const o=i.map(t=>e=t.maximumSize-t.size>0||e).reverse();let s=0;for(let l=0;l<this.sashItems.length;l++){const{sash:e}=this.sashItems[l],i=this.viewItems[l];s+=i.size;const c=!(t[l]&&o[l+1]),u=!(n[l]&&r[l+1]);if(c&&u){const n=Object(a["r"])(l,-1),i=Object(a["r"])(l+1,this.viewItems.length),o=this.findFirstSnapIndex(n),c=this.findFirstSnapIndex(i),u="number"===typeof o&&!this.viewItems[o].visible,h="number"===typeof c&&!this.viewItems[c].visible;u&&r[l]&&(s>0||this.startSnappingEnabled)?e.state=1:h&&t[l]&&(s<this.contentSize||this.endSnappingEnabled)?e.state=2:e.state=0}else e.state=c&&!u?1:!c&&u?2:3}}getSashPosition(e){let t=0;for(let n=0;n<this.sashItems.length;n++)if(t+=this.viewItems[n].size,this.sashItems[n].sash===e)return t;return 0}findFirstSnapIndex(e){for(const t of e){const e=this.viewItems[t];if(e.visible&&e.snap)return t}for(const t of e){const e=this.viewItems[t];if(e.visible&&e.maximumSize-e.minimumSize>0)return;if(!e.visible&&e.snap)return t}}dispose(){super.dispose(),this.viewItems.forEach(e=>e.dispose()),this.viewItems=[],this.sashItems.forEach(e=>e.disposable.dispose()),this.sashItems=[]}}},e391:function(e,t,n){var i=n("577e");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},e439:function(e,t,n){var i=n("23e7"),r=n("d039"),o=n("fc6a"),s=n("06cf").f,a=n("83ab"),l=r((function(){s(1)})),c=!a||l;i({target:"Object",stat:!0,forced:c,sham:!a},{getOwnPropertyDescriptor:function(e,t){return s(o(e),t)}})},e444:function(e,t){e.exports=!0},e507:function(e,t,n){var i=n("512c");i(i.S+i.F,"Object",{assign:n("072d")})},e50d:function(e,t,n){n("8172"),n("d9e2"),n("efec"),n("a9e3");var i=n("7037")["default"];function r(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},e516:function(e,t,n){"use strict";n.r(t),n.d(t,"CursorUndoRedoController",(function(){return c})),n.d(t,"CursorUndo",(function(){return u})),n.d(t,"CursorRedo",(function(){return h}));var i=n("dff7"),r=n("a666"),o=n("b2cc"),s=n("c101");class a{constructor(e){this.selections=e}equals(e){const t=this.selections.length,n=e.selections.length;if(t!==n)return!1;for(let i=0;i<t;i++)if(!this.selections[i].equalsSelection(e.selections[i]))return!1;return!0}}class l{constructor(e,t,n){this.cursorState=e,this.scrollTop=t,this.scrollLeft=n}}class c extends r["a"]{constructor(e){super(),this._editor=e,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(e.onDidChangeModel(e=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(e=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo)return;if(!t.oldSelections)return;if(t.oldModelVersionId!==t.modelVersionId)return;const n=new a(t.oldSelections),i=this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(n);i||(this._undoStack.push(new l(n,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}static get(e){return e.getContribution(c.ID)}cursorUndo(){this._editor.hasModel()&&0!==this._undoStack.length&&(this._redoStack.push(new l(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){this._editor.hasModel()&&0!==this._redoStack.length&&(this._undoStack.push(new l(new a(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}}c.ID="editor.contrib.cursorUndoRedoController";class u extends o["b"]{constructor(){super({id:"cursorUndo",label:i["a"]("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:s["a"].textInputFocus,primary:2099,weight:100}})}run(e,t,n){c.get(t).cursorUndo()}}class h extends o["b"]{constructor(){super({id:"cursorRedo",label:i["a"]("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,n){c.get(t).cursorRedo()}}Object(o["l"])(c.ID,c),Object(o["j"])(u),Object(o["j"])(h)},e538:function(e,t,n){var i=n("b622");t.f=i},e53c:function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return v}));var i,r=n("0f70"),o=n("11f7"),s=n("5fe7"),a=n("308f"),l=n("a666"),c=n("b9b4"),u=n("30db"),h=n("3742"),d=n("0a89"),f=n("7061"),p=n("8025");(function(e){e.Tap="-monaco-textarea-synthetic-tap"})(i||(i={}));const g={forceCopyWithSyntaxHighlighting:!1};class m{constructor(){this._lastState=null}set(e,t){this._lastState={lastCopiedValue:e,data:t}}get(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState.data:(this._lastState=null,null)}}m.INSTANCE=new m;class v extends l["a"]{constructor(e,t){super(),this.textArea=t,this._onFocus=this._register(new a["b"]),this.onFocus=this._onFocus.event,this._onBlur=this._register(new a["b"]),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new a["b"]),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new a["b"]),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new a["b"]),this.onCut=this._onCut.event,this._onPaste=this._register(new a["b"]),this.onPaste=this._onPaste.event,this._onType=this._register(new a["b"]),this.onType=this._onType.event,this._onCompositionStart=this._register(new a["b"]),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new a["b"]),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new a["b"]),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new a["b"]),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._host=e,this._textArea=this._register(new y(t)),this._asyncTriggerCut=this._register(new s["e"](()=>this._onCut.fire(),0)),this._asyncFocusGainWriteScreenReaderContent=this._register(new s["e"](()=>this.writeScreenReaderContent("asyncFocusGain"),0)),this._textAreaState=d["b"].EMPTY,this._selectionChangeListener=null,this.writeScreenReaderContent("ctor"),this._hasFocus=!1,this._isDoingComposition=!1,this._nextCommand=0;let n=null;this._register(o["o"](t.domNode,"keydown",e=>{(109===e.keyCode||this._isDoingComposition&&1===e.keyCode)&&e.stopPropagation(),e.equals(9)&&e.preventDefault(),n=e,this._onKeyDown.fire(e)})),this._register(o["o"](t.domNode,"keyup",e=>{this._onKeyUp.fire(e)})),this._register(o["i"](t.domNode,"compositionstart",e=>{if(d["c"]&&console.log("[compositionstart]",e),!this._isDoingComposition){if(this._isDoingComposition=!0,u["f"]&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===e.data){const t=n&&n.equals(109)&&("ArrowRight"===n.code||"ArrowLeft"===n.code);if(t||r["g"])return d["c"]&&console.log("[compositionstart] Handling long press case on macOS + arrow key or Firefox",e),this._textAreaState=new d["b"](this._textAreaState.value,this._textAreaState.selectionStart-1,this._textAreaState.selectionEnd,this._textAreaState.selectionStartPosition?new f["a"](this._textAreaState.selectionStartPosition.lineNumber,this._textAreaState.selectionStartPosition.column-1):null,this._textAreaState.selectionEndPosition),void this._onCompositionStart.fire({revealDeltaColumns:-1})}r["e"]?this._onCompositionStart.fire({revealDeltaColumns:-this._textAreaState.selectionStart}):(this._setAndWriteTextAreaState("compositionstart",d["b"].EMPTY),this._onCompositionStart.fire({revealDeltaColumns:0}))}}));const l=e=>{const t=this._textAreaState,n=d["b"].readFromTextArea(this._textArea);return[n,d["b"].deduceInput(t,n,e)]},c=()=>{const e=this._textAreaState,t=d["b"].readFromTextArea(this._textArea);return[t,d["b"].deduceAndroidCompositionInput(e,t)]},p=e=>{const t=this._textAreaState,n=d["b"].selectedText(e),i={text:n.value,replacePrevCharCnt:t.selectionEnd-t.selectionStart,replaceNextCharCnt:0,positionDelta:0};return[n,i]};this._register(o["i"](t.domNode,"compositionupdate",e=>{if(d["c"]&&console.log("[compositionupdate]",e),r["e"]){const[t,n]=c();return this._textAreaState=t,this._onType.fire(n),void this._onCompositionUpdate.fire(e)}const[t,n]=p(e.data||"");this._textAreaState=t,this._onType.fire(n),this._onCompositionUpdate.fire(e)})),this._register(o["i"](t.domNode,"compositionend",e=>{if(d["c"]&&console.log("[compositionend]",e),!this._isDoingComposition)return;if(this._isDoingComposition=!1,r["e"]){const[e,t]=c();return this._textAreaState=e,this._onType.fire(t),void this._onCompositionEnd.fire()}const[t,n]=p(e.data||"");this._textAreaState=t,this._onType.fire(n),(r["f"]||r["g"])&&(this._textAreaState=d["b"].readFromTextArea(this._textArea)),this._onCompositionEnd.fire()})),this._register(o["i"](t.domNode,"input",()=>{if(this._textArea.setIgnoreSelectionChangeTime("received input event"),this._isDoingComposition)return;const[e,t]=l(u["f"]);0===t.replacePrevCharCnt&&1===t.text.length&&h["F"](t.text.charCodeAt(0))||(this._textAreaState=e,0===this._nextCommand?""===t.text&&0===t.replacePrevCharCnt||this._onType.fire(t):(""===t.text&&0===t.replacePrevCharCnt||this._firePaste(t.text,null),this._nextCommand=0))})),this._register(o["i"](t.domNode,"cut",e=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(e),this._asyncTriggerCut.schedule()})),this._register(o["i"](t.domNode,"copy",e=>{this._ensureClipboardGetsEditorSelection(e)})),this._register(o["i"](t.domNode,"paste",e=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),b.canUseTextData(e)){const[t,n]=b.getTextData(e);""!==t&&this._firePaste(t,n)}else this._textArea.getSelectionStart()!==this._textArea.getSelectionEnd()&&this._setAndWriteTextAreaState("paste",d["b"].EMPTY),this._nextCommand=1})),this._register(o["i"](t.domNode,"focus",()=>{const e=this._hasFocus;this._setHasFocus(!0),r["h"]&&!e&&this._hasFocus&&this._asyncFocusGainWriteScreenReaderContent.schedule()})),this._register(o["i"](t.domNode,"blur",()=>{this._isDoingComposition&&(this._isDoingComposition=!1,this.writeScreenReaderContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(o["i"](t.domNode,i.Tap,()=>{r["e"]&&this._isDoingComposition&&(this._isDoingComposition=!1,this.writeScreenReaderContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let e=0;return o["i"](document,"selectionchange",t=>{if(!this._hasFocus)return;if(this._isDoingComposition)return;if(!r["f"])return;const n=Date.now(),i=n-e;if(e=n,i<5)return;const o=n-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),o<100)return;if(!this._textAreaState.selectionStartPosition||!this._textAreaState.selectionEndPosition)return;const s=this._textArea.getValue();if(this._textAreaState.value!==s)return;const a=this._textArea.getSelectionStart(),l=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===a&&this._textAreaState.selectionEnd===l)return;const c=this._textAreaState.deduceEditorPosition(a),u=this._host.deduceModelPosition(c[0],c[1],c[2]),h=this._textAreaState.deduceEditorPosition(l),d=this._host.deduceModelPosition(h[0],h[1],h[2]),f=new p["a"](u.lineNumber,u.column,d.lineNumber,d.column);this._onSelectionChangeRequest.fire(f)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){const e=o["F"](this.textArea.domNode);e?this._setHasFocus(e.activeElement===this.textArea.domNode):o["N"](this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)}_setHasFocus(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeScreenReaderContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t}writeScreenReaderContent(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))}_ensureClipboardGetsEditorSelection(e){const t=this._host.getDataToCopy(b.canUseTextData(e)),n={version:1,isFromEmptySelection:t.isFromEmptySelection,multicursorText:t.multicursorText,mode:t.mode};m.INSTANCE.set(r["g"]?t.text.replace(/\r\n/g,"\n"):t.text,n),b.canUseTextData(e)?b.setTextData(e,t.text,t.html,n):this._setAndWriteTextAreaState("copy or cut",d["b"].selectedText(t.text))}_firePaste(e,t){t||(t=m.INSTANCE.get(e)),this._onPaste.fire({text:e,metadata:t})}}class b{static canUseTextData(e){return!!e.clipboardData||!!window.clipboardData}static getTextData(e){if(e.clipboardData){e.preventDefault();const n=e.clipboardData.getData(c["a"].text);let i=null;const r=e.clipboardData.getData("vscode-editor-data");if("string"===typeof r)try{i=JSON.parse(r),1!==i.version&&(i=null)}catch(t){}return[n,i]}if(window.clipboardData){e.preventDefault();const t=window.clipboardData.getData("Text");return[t,null]}throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")}static setTextData(e,t,n,i){if(e.clipboardData)return e.clipboardData.setData(c["a"].text,t),"string"===typeof n&&e.clipboardData.setData("text/html",n),e.clipboardData.setData("vscode-editor-data",JSON.stringify(i)),void e.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",t),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")}}class y extends l["a"]{constructor(e){super(),this._actual=e,this._ignoreSelectionChangeTime=0}setIgnoreSelectionChangeTime(e){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.domNode.value}setValue(e,t){const n=this._actual.domNode;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t)}getSelectionStart(){return"backward"===this._actual.domNode.selectionDirection?this._actual.domNode.selectionEnd:this._actual.domNode.selectionStart}getSelectionEnd(){return"backward"===this._actual.domNode.selectionDirection?this._actual.domNode.selectionStart:this._actual.domNode.selectionEnd}setSelectionRange(e,t,n){const i=this._actual.domNode;let s=null;const a=o["F"](i);s=a?a.activeElement:document.activeElement;const l=s===i,c=i.selectionStart,u=i.selectionEnd;if(l&&c===t&&u===n)r["g"]&&window.parent!==window&&i.focus();else{if(l)return this.setIgnoreSelectionChangeTime("setSelectionRange"),i.setSelectionRange(t,n),void(r["g"]&&window.parent!==window&&i.focus());try{const e=o["U"](i);this.setIgnoreSelectionChangeTime("setSelectionRange"),i.focus(),i.setSelectionRange(t,n),o["S"](i,e)}catch(h){}}}}},e58e:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n("30db");const r=i["b"].performance&&"function"===typeof i["b"].performance.now;class o{constructor(e){this._highResolution=r&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new o(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?i["b"].performance.now():Date.now()}}},e5cb:function(e,t,n){"use strict";var i=n("d066"),r=n("1a2d"),o=n("9112"),s=n("3a9b"),a=n("d2bb"),l=n("e893"),c=n("aeb0"),u=n("7156"),h=n("e391"),d=n("ab36"),f=n("0d26"),p=n("b980"),g=n("83ab"),m=n("c430");e.exports=function(e,t,n,v){var b="stackTraceLimit",y=v?2:1,_=e.split("."),w=_[_.length-1],C=i.apply(null,_);if(C){var S=C.prototype;if(!m&&r(S,"cause")&&delete S.cause,!n)return C;var x=i("Error"),O=t((function(e,t){var n=h(v?t:e,void 0),i=v?new C(e):new C;return void 0!==n&&o(i,"message",n),p&&o(i,"stack",f(i.stack,2)),this&&s(S,this)&&u(i,this,O),arguments.length>y&&d(i,arguments[y]),i}));if(O.prototype=S,"Error"!==w?a?a(O,x):l(O,x,{name:!0}):g&&b in C&&(c(O,C,b),c(O,C,"prepareStackTrace")),l(O,C),!m)try{S.name!==w&&o(S,"name",w),S.constructor=O}catch(k){}return O}}},e5d9:function(e,t,n){"use strict";var i=n("a026"),r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"contextmenu-submenu-fade"}},[e.visible?n("div",{ref:"menu",class:[e.CLASS_MENU,"menu",e.customClass],style:{left:e.style.left+"px",top:e.style.top+"px",minWidth:e.style.minWidth+"px",zIndex:e.style.zIndex},on:{contextmenu:function(e){return e.preventDefault()}}},[n("div",{staticClass:"menu_body"},[e._l(e.items,(function(t,i){return[t.hidden?e._e():[t.disabled?n("div",{key:i+"_disabled",class:[e.CLASS_MENU_ITEM,e.CLASS_MENU_ITEM_UNCLICKABLE,"menu_item","menu_item__disabled",t.divided?"menu_item__divided":null]},[e.hasIcon?n("div",{staticClass:"menu_item_icon"},[t.icon?n("i",{class:t.icon}):e._e()]):e._e(),n("span",{staticClass:"menu_item_label"},[e._v(e._s(t.label))]),n("div",{staticClass:"menu_item_expand_icon"})]):t.children?n("div",{key:i+"_children",class:[e.CLASS_MENU_ITEM,e.CLASS_MENU_ITEM_UNCLICKABLE,"menu_item","menu_item__available",e.activeSubmenu.index===i?"menu_item_expand":null,t.divided?"menu_item__divided":null],on:{mouseenter:function(n){return e.enterItem(n,t,i)}}},[e.hasIcon?n("div",{staticClass:"menu_item_icon"},[t.icon?n("i",{class:t.icon}):e._e()]):e._e(),n("span",{staticClass:"menu_item_label"},[e._v(e._s(t.label))]),n("div",{staticClass:"menu_item_expand_icon"},[e._v("▶")])]):n("div",{key:i,class:[e.CLASS_MENU_ITEM,e.CLASS_MENU_ITEM_CLICKABLE,"menu_item","menu_item__available",t.divided?"menu_item__divided":null],on:{mouseenter:function(n){return e.enterItem(n,t,i)},click:function(n){return e.itemClick(t)}}},[e.hasIcon?n("div",{staticClass:"menu_item_icon"},[t.icon?n("i",{class:t.icon}):e._e()]):e._e(),n("span",{staticClass:"menu_item_label"},[e._v(e._s(t.label))]),n("div",{staticClass:"menu_item_expand_icon"})])]]}))],2)]):e._e()])},o=[],s=n("b85c");const a=3,l=-8,c="left",u="right",h="contextmenu-submenu",d="contextmenu_menu",f="contextmenu_menu_item",p="contextmenu_menu_item_clickable",g="contextmenu_menu_item_unclickable";var m={name:h,data:function(){return{CLASS_MENU:d,CLASS_MENU_ITEM:f,CLASS_MENU_ITEM_CLICKABLE:p,CLASS_MENU_ITEM_UNCLICKABLE:g,activeSubmenu:{index:null,instance:null},items:[],position:{x:0,y:0,width:0,height:0},style:{left:0,top:0,zIndex:2,minWidth:150},customClass:null,visible:!1,hasIcon:!1,openTrend:u}},mounted:function(){var e=this;this.visible=!0;var t,n=Object(s["a"])(this.items);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.icon){this.hasIcon=!0;break}}}catch(r){n.e(r)}finally{n.f()}this.$nextTick((function(){var t=document.documentElement.clientWidth,n=document.documentElement.clientHeight,i=e.$refs.menu,r=i.offsetWidth,o=i.offsetHeight;(e.openTrend===c?e.leftOpen:e.rightOpen)(t,n,r),e.style.top=e.position.y,e.position.y+o>n&&(0===e.position.height?e.style.top=e.position.y/n>.5?e.position.y-o:e.position.y:e.style.top=n-o)}))},methods:{leftOpen:function(e,t,n){this.style.left=this.position.x-n,this.openTrend=c,this.style.left<0&&(this.openTrend=u,0===this.position.width?this.style.left=0:this.style.left=this.position.x+this.position.width)},rightOpen:function(e,t,n){this.style.left=this.position.x+this.position.width,this.openTrend=u,this.style.left+n>e&&(this.openTrend=c,0===this.position.width?this.style.left=e-n:this.style.left=this.position.x-n)},enterItem:function(e,t,n){if(this.visible){if(this.activeSubmenu.instance){if(this.activeSubmenu.index===n)return;this.activeSubmenu.instance.close(),this.activeSubmenu.instance=null,this.activeSubmenu.index=null}if(t.children){var r=e.target.getBoundingClientRect(),o=i["default"].component(h);this.activeSubmenu.index=n,this.activeSubmenu.instance=new o,this.activeSubmenu.instance.items=t.children,this.activeSubmenu.instance.openTrend=this.openTrend,this.activeSubmenu.instance.position={x:r.x+a,y:r.y+l,width:r.width-2*a,height:r.height-2*l},this.activeSubmenu.instance.style.minWidth="number"===typeof t.minWidth?t.minWidth:this.style.minWidth,this.activeSubmenu.instance.style.zIndex=this.style.zIndex,this.activeSubmenu.instance.customClass="string"===typeof t.customClass?t.customClass:this.customClass,this.activeSubmenu.instance.$mount(),document.body.appendChild(this.activeSubmenu.instance.$el)}}},itemClick:function(e){if(this.visible)return!e||e.disabled||e.hidden||"function"!==typeof e.onClick?void 0:e.onClick()},close:function(){var e=this;this.visible=!1,this.activeSubmenu.instance&&this.activeSubmenu.instance.close(),this.$nextTick((function(){e.$destroy()}))}}},v=m,b=(n("fdb6"),n("767a"),n("2877")),y=Object(b["a"])(v,r,o,!1,null,"ba60adee",null),_=y.exports;function w(e){let t=[];for(let n of document.getElementsByClassName(e)||[])t.push(n);return t}i["default"].component(h,_);class C{constructor(e){const t=i["default"].component(h);this.instance=new t,this.instance.items=e.items,this.instance.position={x:e.event&&e.event.clientX||e.x||0,y:e.event&&e.event.clientY||e.y||0,width:0,height:0},e.minWidth&&(this.instance.style.minWidth=e.minWidth),e.zIndex&&(this.instance.style.zIndex=e.zIndex),this.instance.customClass=e.customClass,this.instance.$mount(),document.body.appendChild(this.instance.$el),this.addListener()}mousewheelListener(e){this.close()}mouseDownListener(e){let t=e.target;const n=w(d);while(!n.find(e=>e===t)&&t.parentElement)t=t.parentElement;n.find(e=>e===t)||this.close()}mouseClickListener(e){let t=e.target;const n=w(d),i=w(f),r=w(g);while(!n.find(e=>e===t)&&!i.find(e=>e===t)&&t.parentElement)t=t.parentElement;if(i.find(e=>e===t)){if(0!==e.button||r.find(e=>e===t))return;this.close()}else n.find(e=>e===t)||this.close()}addListener(){this.mouseClickListenerProxy=e=>this.mouseClickListener(e),this.mouseDownListenerProxy=e=>this.mouseDownListener(e),this.mousewheelListenerProxy=e=>this.mousewheelListener(e),document.addEventListener("click",this.mouseClickListenerProxy),document.addEventListener("mousedown",this.mouseDownListenerProxy),document.addEventListener("mousewheel",this.mousewheelListenerProxy)}removeListener(){document.removeEventListener("click",this.mouseClickListenerProxy),document.removeEventListener("mousedown",this.mouseDownListenerProxy),document.removeEventListener("mousewheel",this.mousewheelListenerProxy)}close(){this.removeListener(),this.instance.close()}}function S(e){let t=null;const n=function(e){n.destroy(),t=new C(e)};n.destroy=function(){t&&(t.close(),t=null)},e.prototype.$contextmenu=n}window&&window.Vue&&S(window.Vue);var x={install:S};t["a"]=x},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e679:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a}));var i=n("1e93"),r=n("7ab3");function o(e){return e.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class s{constructor(e,t,n,i){this.oldPosition=e,this.oldText=t,this.newPosition=n,this.newText=i}get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}toString(){return 0===this.oldText.length?`(insert@${this.oldPosition} "${o(this.newText)}")`:0===this.newText.length?`(delete@${this.oldPosition} "${o(this.oldText)}")`:`(replace@${this.oldPosition} "${o(this.oldText)}" with "${o(this.newText)}")`}static _writeStringSize(e){return 4+2*e.length}static _writeString(e,t,n){const r=t.length;i["f"](e,r,n),n+=4;for(let o=0;o<r;o++)i["e"](e,t.charCodeAt(o),n),n+=2;return n}static _readString(e,t){const n=i["c"](e,t);return t+=4,Object(r["b"])(e,t,n)}writeSize(){return 8+s._writeStringSize(this.oldText)+s._writeStringSize(this.newText)}write(e,t){return i["f"](e,this.oldPosition,t),t+=4,i["f"](e,this.newPosition,t),t+=4,t=s._writeString(e,this.oldText,t),t=s._writeString(e,this.newText,t),t}static read(e,t,n){const r=i["c"](e,t);t+=4;const o=i["c"](e,t);t+=4;const a=s._readString(e,t);t+=s._writeStringSize(a);const l=s._readString(e,t);return t+=s._writeStringSize(l),n.push(new s(r,a,o,l)),t}}function a(e,t){if(null===e||0===e.length)return t;const n=new l(e,t);return n.compress()}class l{constructor(e,t){this._prevEdits=e,this._currEdits=t,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let e=0,t=0,n=this._getPrev(e),i=this._getCurr(t);while(e<this._prevLen||t<this._currLen){if(null===n){this._acceptCurr(i),i=this._getCurr(++t);continue}if(null===i){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldEnd<=n.newPosition){this._acceptCurr(i),i=this._getCurr(++t);continue}if(n.newEnd<=i.oldPosition){this._acceptPrev(n),n=this._getPrev(++e);continue}if(i.oldPosition<n.newPosition){const[e,t]=l._splitCurr(i,n.newPosition-i.oldPosition);this._acceptCurr(e),i=t;continue}if(n.newPosition<i.oldPosition){const[e,t]=l._splitPrev(n,i.oldPosition-n.newPosition);this._acceptPrev(e),n=t;continue}let r,o;if(i.oldEnd===n.newEnd)r=n,o=i,n=this._getPrev(++e),i=this._getCurr(++t);else if(i.oldEnd<n.newEnd){const[e,s]=l._splitPrev(n,i.oldLength);r=e,o=i,n=s,i=this._getCurr(++t)}else{const[t,s]=l._splitCurr(i,n.newLength);r=n,o=t,n=this._getPrev(++e),i=s}this._result[this._resultLen++]=new s(r.oldPosition,r.oldText,o.newPosition,o.newText),this._prevDeltaOffset+=r.newLength-r.oldLength,this._currDeltaOffset+=o.newLength-o.oldLength}const r=l._merge(this._result),o=l._removeNoOps(r);return o}_acceptCurr(e){this._result[this._resultLen++]=l._rebaseCurr(this._prevDeltaOffset,e),this._currDeltaOffset+=e.newLength-e.oldLength}_getCurr(e){return e<this._currLen?this._currEdits[e]:null}_acceptPrev(e){this._result[this._resultLen++]=l._rebasePrev(this._currDeltaOffset,e),this._prevDeltaOffset+=e.newLength-e.oldLength}_getPrev(e){return e<this._prevLen?this._prevEdits[e]:null}static _rebaseCurr(e,t){return new s(t.oldPosition-e,t.oldText,t.newPosition,t.newText)}static _rebasePrev(e,t){return new s(t.oldPosition,t.oldText,t.newPosition+e,t.newText)}static _splitPrev(e,t){const n=e.newText.substr(0,t),i=e.newText.substr(t);return[new s(e.oldPosition,e.oldText,e.newPosition,n),new s(e.oldEnd,"",e.newPosition+t,i)]}static _splitCurr(e,t){const n=e.oldText.substr(0,t),i=e.oldText.substr(t);return[new s(e.oldPosition,n,e.newPosition,e.newText),new s(e.oldPosition+t,i,e.newEnd,"")]}static _merge(e){if(0===e.length)return e;let t=[],n=0,i=e[0];for(let r=1;r<e.length;r++){const o=e[r];i.oldEnd===o.oldPosition?i=new s(i.oldPosition,i.oldText+o.oldText,i.newPosition,i.newText+o.newText):(t[n++]=i,i=o)}return t[n++]=i,t}static _removeNoOps(e){if(0===e.length)return e;let t=[],n=0;for(let i=0;i<e.length;i++){const r=e[i];r.oldText!==r.newText&&(t[n++]=r)}return t}}},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6cf:function(e,t,n){n("5e7e"),n("14e5"),n("cc98"),n("3529"),n("f22b"),n("7149")},e6ff:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("3170");class r extends i["a"]{constructor(e){super(0);for(let t=0,n=e.length;t<n;t++)this.set(e.charCodeAt(t),2);this.set(32,1),this.set(9,1)}}function o(e){let t={};return n=>(t.hasOwnProperty(n)||(t[n]=e(n)),t[n])}const s=o(e=>new r(e))},e750:function(e,t,n){},e757:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));let i=!1,r=null;function o(e){if(!e.parent||e.parent===e)return null;try{let t=e.location,n=e.parent.location;if("null"!==t.origin&&"null"!==n.origin&&(t.protocol!==n.protocol||t.hostname!==n.hostname||t.port!==n.port))return i=!0,null}catch(t){return i=!0,null}return e.parent}class s{static getSameOriginWindowChain(){if(!r){r=[];let e,t=window;do{e=o(t),e?r.push({window:t,iframeElement:t.frameElement||null}):r.push({window:t,iframeElement:null}),t=e}while(t)}return r.slice(0)}static hasDifferentOriginAncestor(){return r||this.getSameOriginWindowChain(),i}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){if(!t||e===t)return{top:0,left:0};let n=0,i=0,r=this.getSameOriginWindowChain();for(const o of r){if(n+=o.window.scrollY,i+=o.window.scrollX,o.window===t)break;if(!o.iframeElement)break;let e=o.iframeElement.getBoundingClientRect();n+=e.top,i+=e.left}return{top:n,left:i}}}},e75b:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("f0b2");const i="monaco-mouse-cursor-text"},e7d0:function(e,t,n){"use strict";function i(e){if(!(this instanceof i))return new i(e);this.aliasToTopic={},this.max=e}i.prototype.put=function(e,t){return!(0===t||t>this.max)&&(this.aliasToTopic[t]=e,this.length=Object.keys(this.aliasToTopic).length,!0)},i.prototype.getTopicByAlias=function(e){return this.aliasToTopic[e]},i.prototype.clear=function(){this.aliasToTopic={}},e.exports=i},e7fc:function(e,t,n){"use strict";(function(t){const i=n("df86"),r=n("ea08"),o=n("0b16"),s=n("53a8"),a=n("34eb")("mqttjs"),l={};function c(e){let t;e.auth&&(t=e.auth.match(/^(.+):(.+)$/),t?(e.username=t[1],e.password=t[2]):e.username=e.auth)}function u(e,t){if(a("connecting to an MQTT broker..."),"object"!==typeof e||t||(t=e,e=null),t=t||{},e){const n=o.parse(e,!0);if(null!=n.port&&(n.port=Number(n.port)),t=s(n,t),null===t.protocol)throw new Error("Missing protocol");t.protocol=t.protocol.replace(/:$/,"")}if(c(t),t.query&&"string"===typeof t.query.clientId&&(t.clientId=t.query.clientId),t.cert&&t.key){if(!t.protocol)throw new Error("Missing secure protocol key");if(-1===["mqtts","wss","wxs","alis"].indexOf(t.protocol))switch(t.protocol){case"mqtt":t.protocol="mqtts";break;case"ws":t.protocol="wss";break;case"wx":t.protocol="wxs";break;case"ali":t.protocol="alis";break;default:throw new Error('Unknown protocol for secure connection: "'+t.protocol+'"!')}}if(!l[t.protocol]){const e=-1!==["mqtts","wss"].indexOf(t.protocol);t.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((function(t,n){return(!e||n%2!==0)&&"function"===typeof l[t]}))[0]}if(!1===t.clean&&!t.clientId)throw new Error("Missing clientId for unclean clients");function n(e){return t.servers&&(e._reconnectCount&&e._reconnectCount!==t.servers.length||(e._reconnectCount=0),t.host=t.servers[e._reconnectCount].host,t.port=t.servers[e._reconnectCount].port,t.protocol=t.servers[e._reconnectCount].protocol?t.servers[e._reconnectCount].protocol:t.defaultProtocol,t.hostname=t.host,e._reconnectCount++),a("calling streambuilder for",t.protocol),l[t.protocol](e,t)}t.protocol&&(t.defaultProtocol=t.protocol);const r=new i(n,t);return r.on("error",(function(){})),r}"undefined"!==typeof t&&"browser"!==t.title||"function"!==typeof n?(l.mqtt=n("05ee"),l.tcp=n("05ee"),l.ssl=n("fe3c"),l.tls=n("fe3c"),l.mqtts=n("fe3c")):(l.wx=n("8311"),l.wxs=n("8311"),l.ali=n("c4c7"),l.alis=n("c4c7")),l.ws=n("fcb9"),l.wss=n("fcb9"),e.exports=u,e.exports.connect=u,e.exports.MqttClient=i,e.exports.Store=r}).call(this,n("4362"))},e86a:function(e,t,n){"use strict";n.d(t,"f",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return d})),n.d(t,"g",(function(){return f})),n.d(t,"c",(function(){return p}));var i=n("9850"),r=n("d51b"),o=n("726e"),s={};function a(e,t){t=t||o["a"];var n=s[t];n||(n=s[t]=new r["a"](500));var i=n.get(e);return null==i&&(i=o["d"].measureText(e,t).width,n.put(e,i)),i}function l(e,t,n,r){var o=a(e,t),s=d(t),l=u(0,o,n),c=h(0,s,r),f=new i["a"](l,c,o,s);return f}function c(e,t,n,r){var o=((e||"")+"").split("\n"),s=o.length;if(1===s)return l(o[0],t,n,r);for(var a=new i["a"](0,0,0,0),c=0;c<o.length;c++){var u=l(o[c],t,n,r);0===c?a.copy(u):a.union(u)}return a}function u(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function h(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function d(e){return a("国",e)}function f(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function p(e,t,n){var i=t.position||"inside",r=null!=t.distance?t.distance:5,o=n.height,s=n.width,a=o/2,l=n.x,c=n.y,u="left",h="top";if(i instanceof Array)l+=f(i[0],n.width),c+=f(i[1],n.height),u=null,h=null;else switch(i){case"left":l-=r,c+=a,u="right",h="middle";break;case"right":l+=r+s,c+=a,h="middle";break;case"top":l+=s/2,c-=r,u="center",h="bottom";break;case"bottom":l+=s/2,c+=o+r,u="center";break;case"inside":l+=s/2,c+=a,u="center",h="middle";break;case"insideLeft":l+=r,c+=a,h="middle";break;case"insideRight":l+=s-r,c+=a,u="right",h="middle";break;case"insideTop":l+=s/2,c+=r,u="center";break;case"insideBottom":l+=s/2,c+=o-r,u="center",h="bottom";break;case"insideTopLeft":l+=r,c+=r;break;case"insideTopRight":l+=s-r,c+=r,u="right";break;case"insideBottomLeft":l+=r,c+=o-r,h="bottom";break;case"insideBottomRight":l+=s-r,c+=o-r,u="right",h="bottom";break}return e=e||{},e.x=l,e.y=c,e.align=u,e.verticalAlign=h,e}},e887:function(e,t,n){"use strict";var i=n("6d8b"),r=n("2dc5"),o=n("8918"),s=n("625e"),a=n("e0d3"),l=n("7d6c"),c=n("9fbc"),u=n("cccd"),h=n("2306"),d=a["o"](),f=Object(u["a"])(),p=function(){function e(){this.group=new r["a"],this.uid=o["c"]("viewChart"),this.renderTask=Object(c["a"])({plan:v,reset:b}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){0},e.prototype.highlight=function(e,t,n,i){var r=e.getData(i&&i.dataType);r&&m(r,i,"emphasis")},e.prototype.downplay=function(e,t,n,i){var r=e.getData(i&&i.dataType);r&&m(r,i,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateLayout=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},e.prototype.eachRendered=function(e){Object(h["traverseElements"])(this.group,e)},e.markUpdateMethod=function(e,t){d(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function g(e,t,n){e&&Object(l["y"])(e)&&("emphasis"===t?l["r"]:l["C"])(e,n)}function m(e,t,n){var r=a["u"](e,t),o=t&&null!=t.highlightKey?Object(l["v"])(t.highlightKey):null;null!=r?Object(i["each"])(a["r"](r),(function(t){g(e.getItemGraphicEl(t),n,o)})):e.eachItemGraphicEl((function(e){g(e,n,o)}))}function v(e){return f(e.model)}function b(e){var t=e.model,n=e.ecModel,i=e.api,r=e.payload,o=t.pipelineContext.progressiveRender,s=e.view,a=r&&d(r).updateMethod,l=o?"incrementalPrepareRender":a&&s[a]?a:"render";return"render"!==l&&s[l](t,n,i,r),y[l]}s["b"](p,["dispose"]),s["c"](p);var y={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};t["a"]=p},e893:function(e,t,n){var i=n("1a2d"),r=n("56ef"),o=n("06cf"),s=n("9bf2");e.exports=function(e,t,n){for(var a=r(t),l=s.f,c=o.f,u=0;u<a.length;u++){var h=a[u];i(e,h)||n&&i(n,h)||l(e,h,c(t,h))}}},e8b5:function(e,t,n){var i=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==i(e)}},e8cb:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:function(){return n.e("chunk-2d0b21d7").then(n.bind(null,"2377"))}})},e8e3:function(e,t,n){"use strict";function i(e,t=0){return e[e.length-(1+t)]}function r(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function o(e,t,n=((e,t)=>e===t)){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}function s(e,t,n){let i=0,r=e.length-1;while(i<=r){const o=(i+r)/2|0,s=n(e[o],t);if(s<0)i=o+1;else{if(!(s>0))return o;r=o-1}}return-(i+1)}function a(e,t){let n=0,i=e.length;if(0===i)return 0;while(n<i){const r=Math.floor((n+i)/2);t(e[r])?i=r:n=r+1}return n}function l(e,t,n){if(e|=0,e>=t.length)throw new TypeError("invalid index");let i=t[Math.floor(t.length*Math.random())],r=[],o=[],s=[];for(let a of t){const e=n(a,i);e<0?r.push(a):e>0?o.push(a):s.push(a)}return e<r.length?l(e,r,n):e<r.length+s.length?s[0]:l(e-(r.length+s.length),o,n)}function c(e,t){const n=[];let i=void 0;for(const r of e.slice(0).sort(t))i&&0===t(i[0],r)?i.push(r):(i=[r],n.push(i));return n}function u(e){return e.filter(e=>!!e)}function h(e){return!Array.isArray(e)||0===e.length}function d(e){return Array.isArray(e)&&e.length>0}function f(e,t){if(!t)return e.filter((t,n)=>e.indexOf(t)===n);const n=Object.create(null);return e.filter(e=>{const i=t(e);return!n[i]&&(n[i]=!0,!0)})}function p(e){const t=new Set;return e.filter(e=>!t.has(e)&&(t.add(e),!0))}function g(e,t){return e.length>0?e[0]:t}function m(e){return[].concat(...e)}function v(e,t){let n="number"===typeof t?e:0;"number"===typeof t?n=e:(n=0,t=e);const i=[];if(n<=t)for(let r=n;r<t;r++)i.push(r);else for(let r=n;r>t;r--)i.push(r);return i}function b(e,t,n){const i=e.slice(0,t),r=e.slice(t);return i.concat(n,r)}function y(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))}function _(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))}function w(e){return Array.isArray(e)?e:[e]}function C(e,t,n){const i=x(e,t),r=e.length,o=n.length;e.length=r+o;for(let s=r-1;s>=i;s--)e[s+o]=e[s];for(let s=0;s<o;s++)e[s+i]=n[s]}function S(e,t,n,i){const r=x(e,t),o=e.splice(r,n);return C(e,r,i),o}function x(e,t){return t<0?Math.max(t+e.length,0):Math.min(t,e.length)}n.d(t,"t",(function(){return i})),n.d(t,"u",(function(){return r})),n.d(t,"h",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"i",(function(){return a})),n.d(t,"q",(function(){return l})),n.d(t,"l",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"m",(function(){return h})),n.d(t,"n",(function(){return d})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return p})),n.d(t,"j",(function(){return g})),n.d(t,"k",(function(){return m})),n.d(t,"r",(function(){return v})),n.d(t,"b",(function(){return b})),n.d(t,"p",(function(){return y})),n.d(t,"o",(function(){return _})),n.d(t,"c",(function(){return w})),n.d(t,"s",(function(){return S})),n.d(t,"a",(function(){return O}));class O{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}takeWhile(e){let t=this.firstIdx;while(t<this.items.length&&e(this.items[t]))t++;const n=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,n}takeFromEndWhile(e){let t=this.lastIdx;while(t>=0&&e(this.items[t]))t--;const n=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,n}}},e937:function(e,t,n){"use strict";function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}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){o(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 o(e,t,n){return t=c(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(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 i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,c(i.key),i)}}function l(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=u(e,"string");return"symbol"===typeof t?t:String(t)}function u(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var h=n("1c35"),d=h.Buffer,f=n(5),p=f.inspect,g=p&&p.custom||"inspect";function m(e,t,n){d.prototype.copy.call(e,t,n)}e.exports=function(){function e(){s(this,e),this.head=null,this.tail=null,this.length=0}return l(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";var t=this.head,n=""+t.data;while(t=t.next)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return d.alloc(0);var t=d.allocUnsafe(e>>>0),n=this.head,i=0;while(n)m(n.data,t,i),i+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,i=t.data;e-=i.length;while(t=t.next){var r=t.data,o=e>r.length?r.length:e;if(o===r.length?i+=r:i+=r.slice(0,e),e-=o,0===e){o===r.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=r.slice(o));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(e){var t=d.allocUnsafe(e),n=this.head,i=1;n.data.copy(t),e-=n.data.length;while(n=n.next){var r=n.data,o=e>r.length?r.length:e;if(r.copy(t,t.length-e,0,o),e-=o,0===e){o===r.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=r.slice(o));break}++i}return this.length-=i,t}},{key:g,value:function(e,t){return p(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()},e95a:function(e,t,n){var i=n("b622"),r=n("3f8c"),o=i("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||s[o]===e)}},e9c4:function(e,t,n){var i=n("23e7"),r=n("d066"),o=n("2ba4"),s=n("c65b"),a=n("e330"),l=n("d039"),c=n("e8b5"),u=n("1626"),h=n("861d"),d=n("d9b5"),f=n("f36a"),p=n("04f8"),g=r("JSON","stringify"),m=a(/./.exec),v=a("".charAt),b=a("".charCodeAt),y=a("".replace),_=a(1..toString),w=/[\uD800-\uDFFF]/g,C=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,x=!p||l((function(){var e=r("Symbol")();return"[null]"!=g([e])||"{}"!=g({a:e})||"{}"!=g(Object(e))})),O=l((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),k=function(e,t){var n=f(arguments),i=t;if((h(t)||void 0!==e)&&!d(e))return c(t)||(t=function(e,t){if(u(i)&&(t=s(i,this,e,t)),!d(t))return t}),n[1]=t,o(g,null,n)},L=function(e,t,n){var i=v(n,t-1),r=v(n,t+1);return m(C,e)&&!m(S,r)||m(S,e)&&!m(C,i)?"\\u"+_(b(e,0),16):e};g&&i({target:"JSON",stat:!0,arity:3,forced:x||O},{stringify:function(e,t,n){var i=f(arguments),r=o(x?k:g,null,i);return O&&"string"==typeof r?y(r,w,L):r}})},ea08:function(e,t,n){"use strict";const i=n("53a8"),r=n("035d").Readable,o={objectMode:!0},s={clean:!0};function a(e){if(!(this instanceof a))return new a(e);this.options=e||{},this.options=i(s,e),this._inflights=new Map}a.prototype.put=function(e,t){return this._inflights.set(e.messageId,e),t&&t(),this},a.prototype.createStream=function(){const e=new r(o),t=[];let n=!1,i=0;return this._inflights.forEach((function(e,n){t.push(e)})),e._read=function(){!n&&i<t.length?this.push(t[i++]):this.push(null)},e.destroy=function(){if(n)return;const e=this;n=!0,setTimeout((function(){e.emit("close")}),0)},e},a.prototype.del=function(e,t){return e=this._inflights.get(e.messageId),e?(this._inflights.delete(e.messageId),t(null,e)):t&&t(new Error("missing packet")),this},a.prototype.get=function(e,t){return e=this._inflights.get(e.messageId),e?t(null,e):t&&t(new Error("missing packet")),this},a.prototype.close=function(e){this.options.clean&&(this._inflights=null),e&&e()},e.exports=a},ea34:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},ea53:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:function(){return n.e("chunk-2d0e6c86").then(n.bind(null,"99e5"))}})},eafb:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("0a0f");const r=Object(i["c"])("dialogService")},eb53:function(e,t,n){"use strict";var i=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=i(n("a34a")),o=i(n("c973")),s=i(n("7037")),a=i(n("448a")),l=i(n("970b")),c=i(n("d0b5")),u=i(n("8f47")),h=n("5557"),d=function e(t,n){(0,l["default"])(this,e),n=(0,h.deepClone)(n,!0);var i={visible:!0,drag:!1,hover:!1,index:1,animationDelay:0,animationFrame:30,animationCurve:"linear",animationPause:!1,hoverRect:null,mouseEnter:null,mouseOuter:null,click:null},r={status:"static",animationRoot:[],animationKeys:[],animationFrameState:[],cache:{}};n.shape||(n.shape={}),n.style||(n.style={});var o=Object.assign({},t.shape,n.shape);Object.assign(i,n,r),Object.assign(this,t,i),this.shape=o,this.style=new c["default"](n.style),this.addedProcessor()};function f(e){return new Promise((function(t){setTimeout(t,e)}))}t["default"]=d,d.prototype.addedProcessor=function(){"function"===typeof this.setGraphCenter&&this.setGraphCenter(null,this),"function"===typeof this.added&&this.added(this)},d.prototype.drawProcessor=function(e,t){var n=e.ctx;t.style.initStyle(n),"function"===typeof this.beforeDraw&&this.beforeDraw(this,e),t.draw(e,t),"function"===typeof this.drawed&&this.drawed(this,e),t.style.restoreTransform(n)},d.prototype.hoverCheckProcessor=function(e,t){var n=t.hoverRect,i=t.style,r=t.hoverCheck,o=i.graphCenter,s=i.rotate,l=i.scale,c=i.translate;return o&&(s&&(e=(0,h.getRotatePointPos)(-s,e,o)),l&&(e=(0,h.getScalePointPos)(l.map((function(e){return 1/e})),e,o)),c&&(e=(0,h.getTranslatePointPos)(c.map((function(e){return-1*e})),e))),n?h.checkPointIsInRect.apply(void 0,[e].concat((0,a["default"])(n))):r(e,this)},d.prototype.moveProcessor=function(e){this.move(e,this),"function"===typeof this.beforeMove&&this.beforeMove(e,this),"function"===typeof this.setGraphCenter&&this.setGraphCenter(e,this),"function"===typeof this.moved&&this.moved(e,this)},d.prototype.attr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!e||void 0===t)return!1;var n="object"===(0,s["default"])(this[e]);n&&(t=(0,h.deepClone)(t,!0));var i=this.render;"style"===e?this.style.update(t):n?Object.assign(this[e],t):this[e]=t,"index"===e&&i.sortGraphsByIndex(),i.drawAllGraph()},d.prototype.animation=function(){var e=(0,o["default"])(r["default"].mark((function e(t,n){var i,s,a,l,c,d,p,g,m,v=arguments;return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=v.length>2&&void 0!==v[2]&&v[2],"shape"===t||"style"===t){e.next=4;break}return console.error("Only supported shape and style animation!"),e.abrupt("return");case 4:if(n=(0,h.deepClone)(n,!0),"style"===t&&this.style.colorProcessor(n),s=this[t],a=Object.keys(n),l={},a.forEach((function(e){return l[e]=s[e]})),c=this.animationFrame,d=this.animationCurve,p=this.animationDelay,g=(0,u["default"])(d,l,n,c,!0),this.animationRoot.push(s),this.animationKeys.push(a),this.animationFrameState.push(g),!i){e.next=17;break}return e.abrupt("return");case 17:if(!(p>0)){e.next=20;break}return e.next=20,f(p);case 20:return m=this.render,e.abrupt("return",new Promise(function(){var e=(0,o["default"])(r["default"].mark((function e(t){return r["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m.launchAnimation();case 2:t();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 22:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),d.prototype.turnNextAnimationFrame=function(e){var t=this.animationDelay,n=this.animationRoot,i=this.animationKeys,r=this.animationFrameState,o=this.animationPause;o||Date.now()-e<t||(n.forEach((function(e,t){i[t].forEach((function(n){e[n]=r[t][0][n]}))})),r.forEach((function(e,t){e.shift();var r=0===e.length;r&&(n[t]=null),r&&(i[t]=null)})),this.animationFrameState=r.filter((function(e){return e.length})),this.animationRoot=n.filter((function(e){return e})),this.animationKeys=i.filter((function(e){return e})))},d.prototype.animationEnd=function(){var e=this.animationFrameState,t=this.animationKeys,n=this.animationRoot,i=this.render;return n.forEach((function(n,i){var r=t[i],o=e[i].pop();r.forEach((function(e){return n[e]=o[e]}))})),this.animationFrameState=[],this.animationKeys=[],this.animationRoot=[],i.drawAllGraph()},d.prototype.pauseAnimation=function(){this.attr("animationPause",!0)},d.prototype.playAnimation=function(){var e=this.render;return this.attr("animationPause",!1),new Promise(function(){var t=(0,o["default"])(r["default"].mark((function t(n){return r["default"].wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.launchAnimation();case 2:n();case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},d.prototype.delProcessor=function(e){var t=this,n=e.graphs,i=n.findIndex((function(e){return e===t}));-1!==i&&("function"===typeof this.beforeDelete&&this.beforeDelete(this),n.splice(i,1,null),"function"===typeof this.deleted&&this.deleted(this))}},eb68:function(e,t,n){},ec60:function(e,t,n){},ec6f:function(e,t,n){"use strict";n.d(t,"e",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return h})),n.d(t,"d",(function(){return d})),n.d(t,"f",(function(){return v}));var i=n("6d8b"),r=n("07fd"),o=n("e0d3"),s=n("0f99"),a=function(){function e(e){this.data=e.data||(e.sourceFormat===r["d"]?{}:[]),this.sourceFormat=e.sourceFormat||r["h"],this.seriesLayoutBy=e.seriesLayoutBy||r["a"],this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var i=t[n];null==i.type&&Object(s["b"])(this,n)===s["a"].Must&&(i.type="ordinal")}}return e}();function l(e){return e instanceof a}function c(e,t,n){n=n||d(e);var r=t.seriesLayoutBy,o=f(e,n,r,t.sourceHeader,t.dimensions),s=new a({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:Object(i["clone"])(t)});return s}function u(e){return new a({data:e,sourceFormat:Object(i["isTypedArray"])(e)?r["g"]:r["f"]})}function h(e){return new a({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Object(i["clone"])(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function d(e){var t=r["h"];if(Object(i["isTypedArray"])(e))t=r["g"];else if(Object(i["isArray"])(e)){0===e.length&&(t=r["c"]);for(var n=0,o=e.length;n<o;n++){var s=e[n];if(null!=s){if(Object(i["isArray"])(s)||Object(i["isTypedArray"])(s)){t=r["c"];break}if(Object(i["isObject"])(s)){t=r["e"];break}}}}else if(Object(i["isObject"])(e))for(var a in e)if(Object(i["hasOwn"])(e,a)&&Object(i["isArrayLike"])(e[a])){t=r["d"];break}return t}function f(e,t,n,s,a){var l,c;if(!e)return{dimensionsDefine:g(a),startIndex:c,dimensionsDetectedCount:l};if(t===r["c"]){var u=e;"auto"===s||null==s?m((function(e){null!=e&&"-"!==e&&(Object(i["isString"])(e)?null==c&&(c=1):c=0)}),n,u,10):c=Object(i["isNumber"])(s)?s:s?1:0,a||1!==c||(a=[],m((function(e,t){a[t]=null!=e?e+"":""}),n,u,1/0)),l=a?a.length:n===r["b"]?u.length:u[0]?u[0].length:null}else if(t===r["e"])a||(a=p(e));else if(t===r["d"])a||(a=[],Object(i["each"])(e,(function(e,t){a.push(t)})));else if(t===r["f"]){var h=Object(o["h"])(e[0]);l=Object(i["isArray"])(h)&&h.length||1}else r["g"];return{startIndex:c,dimensionsDefine:g(a),dimensionsDetectedCount:l}}function p(e){var t,n=0;while(n<e.length&&!(t=e[n++]));if(t)return Object(i["keys"])(t)}function g(e){if(e){var t=Object(i["createHashMap"])();return Object(i["map"])(e,(function(e,n){e=Object(i["isObject"])(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var o=t.get(r.name);return o?r.name+="-"+o.count++:t.set(r.name,{count:1}),r}))}}function m(e,t,n,i){if(t===r["b"])for(var o=0;o<n.length&&o<i;o++)e(n[o]?n[o][0]:null,o);else{var s=n[0]||[];for(o=0;o<s.length&&o<i;o++)e(s[o],o)}}function v(e){var t=e.sourceFormat;return t===r["e"]||t===r["d"]}},eda2:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"j",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"h",(function(){return u})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"g",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return b})),n.d(t,"k",(function(){return y}));var i=n("6d8b"),r=n("65ed"),o=n("3842"),s=n("f876");function a(e){if(!Object(o["k"])(e))return i["isString"](e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function l(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var c=i["normalizeCssArray"];function u(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function l(e){return e&&i["trim"](e)?e:"-"}function c(e){return!(null==e||isNaN(e)||!isFinite(e))}var u="time"===t,h=e instanceof Date;if(u||h){var d=u?Object(o["p"])(e):e;if(!isNaN(+d))return Object(s["h"])(d,r,n);if(h)return"-"}if("ordinal"===t)return i["isStringSafe"](e)?l(e):i["isNumber"](e)&&c(e)?e+"":"-";var f=Object(o["o"])(e);return c(f)?a(f):i["isStringSafe"](e)?l(e):"boolean"===typeof e?e+"":"-"}var h=["a","b","c","d","e","f","g"],d=function(e,t){return"{"+e+(null==t?"":t)+"}"};function f(e,t,n){i["isArray"](t)||(t=[t]);var o=t.length;if(!o)return"";for(var s=t[0].$vars||[],a=0;a<s.length;a++){var l=h[a];e=e.replace(d(l),d(l,0))}for(var c=0;c<o;c++)for(var u=0;u<s.length;u++){var f=t[c][s[u]];e=e.replace(d(h[u],c),n?Object(r["a"])(f):f)}return e}function p(e,t,n){return i["each"](t,(function(t,i){e=e.replace("{"+i+"}",n?Object(r["a"])(t):t)})),e}function g(e,t){var n=i["isString"](e)?{color:e,extraCssText:t}:e||{},o=n.color,s=n.type;t=n.extraCssText;var a=n.renderMode||"html";if(!o)return"";if("html"===a)return"subItem"===s?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Object(r["a"])(o)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Object(r["a"])(o)+";"+(t||"")+'"></span>';var l=n.markerId||"markerX";return{renderMode:a,content:"{"+l+"|} ",style:"subItem"===s?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}}function m(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var i=Object(o["p"])(t),r=n?"getUTC":"get",a=i[r+"FullYear"](),l=i[r+"Month"]()+1,c=i[r+"Date"](),u=i[r+"Hours"](),h=i[r+"Minutes"](),d=i[r+"Seconds"](),f=i[r+"Milliseconds"]();return e=e.replace("MM",Object(s["y"])(l,2)).replace("M",l).replace("yyyy",a).replace("yy",Object(s["y"])(a%100+"",2)).replace("dd",Object(s["y"])(c,2)).replace("d",c).replace("hh",Object(s["y"])(u,2)).replace("h",u).replace("mm",Object(s["y"])(h,2)).replace("m",h).replace("ss",Object(s["y"])(d,2)).replace("s",d).replace("SSS",Object(s["y"])(f,3)),e}function v(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}function b(e,t){return t=t||"transparent",i["isString"](e)?e:i["isObject"](e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function y(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}},eda7:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return g}));var i=n("3742");function r(e){return o(e,0)}function o(e,t){switch(typeof e){case"object":return null===e?s(349,t):Array.isArray(e)?c(e,t):u(e,t);case"string":return l(e,t);case"boolean":return a(e,t);case"number":return s(e,t);case"undefined":return s(937,t);default:return s(617,t)}}function s(e,t){return(t<<5)-t+e|0}function a(e,t){return s(e?433:863,t)}function l(e,t){t=s(149417,t);for(let n=0,i=e.length;n<i;n++)t=s(e.charCodeAt(n),t);return t}function c(e,t){return t=s(104579,t),e.reduce((e,t)=>o(t,e),t)}function u(e,t){return t=s(181387,t),Object.keys(e).sort().reduce((t,n)=>(t=l(n,t),o(e[n],t)),t)}function h(e,t,n=32){const i=n-t,r=~((1<<i)-1);return(e<<t|(r&e)>>>i)>>>0}function d(e,t=0,n=e.byteLength,i=0){for(let r=0;r<n;r++)e[t+r]=i}function f(e,t,n="0"){while(e.length<t)e=n+e;return e}function p(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(e=>e.toString(16).padStart(2,"0")).join(""):f((e>>>0).toString(16),t/4)}class g{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const t=e.length;if(0===t)return;const n=this._buff;let r,o,s=this._buffLen,a=this._leftoverHighSurrogate;0!==a?(r=a,o=-1,a=0):(r=e.charCodeAt(0),o=0);while(1){let l=r;if(i["F"](r)){if(!(o+1<t)){a=r;break}{const t=e.charCodeAt(o+1);i["G"](t)?(o++,l=i["j"](r,t)):l=65533}}else i["G"](r)&&(l=65533);if(s=this._push(n,s,l),o++,!(o<t))break;r=e.charCodeAt(o)}this._buffLen=s,this._leftoverHighSurrogate=a}_push(e,t,n){return n<128?e[t++]=n:n<2048?(e[t++]=192|(1984&n)>>>6,e[t++]=128|(63&n)>>>0):n<65536?(e[t++]=224|(61440&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0):(e[t++]=240|(1835008&n)>>>18,e[t++]=128|(258048&n)>>>12,e[t++]=128|(4032&n)>>>6,e[t++]=128|(63&n)>>>0),t>=64&&(this._step(),t-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),t}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),p(this._h0)+p(this._h1)+p(this._h2)+p(this._h3)+p(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,d(this._buff,this._buffLen),this._buffLen>56&&(this._step(),d(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=g._bigBlock32,t=this._buffDV;for(let u=0;u<64;u+=4)e.setUint32(u,t.getUint32(u,!1),!1);for(let u=64;u<320;u+=4)e.setUint32(u,h(e.getUint32(u-12,!1)^e.getUint32(u-32,!1)^e.getUint32(u-56,!1)^e.getUint32(u-64,!1),1),!1);let n,i,r,o=this._h0,s=this._h1,a=this._h2,l=this._h3,c=this._h4;for(let u=0;u<80;u++)u<20?(n=s&a|~s&l,i=1518500249):u<40?(n=s^a^l,i=1859775393):u<60?(n=s&a|s&l|a&l,i=2400959708):(n=s^a^l,i=3395469782),r=h(o,5)+n+c+i+e.getUint32(4*u,!1)&4294967295,c=l,l=a,a=h(s,30),s=o,o=r;this._h0=this._h0+o&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+l&4294967295,this._h4=this._h4+c&4294967295}}g._bigBlock32=new DataView(new ArrayBuffer(320))},edae:function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return u}));var i="[ECharts] ",r={},o="undefined"!==typeof console&&console.warn&&console.log;function s(e,t,n){if(o){if(n){if(r[t])return;r[t]=!0}console[e](i+t)}}function a(e,t){s("warn",e,t)}function l(e,t){s("error",e,t)}function c(e){0}function u(e){throw new Error(e)}},edb3:function(e,t,n){"use strict";(function(t){function n(e,n){var o=this,a=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return a||l?(n?n(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(s,this,e)):t.nextTick(s,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!n&&e?o._writableState?o._writableState.errorEmitted?t.nextTick(r,o):(o._writableState.errorEmitted=!0,t.nextTick(i,o,e)):t.nextTick(i,o,e):n?(t.nextTick(r,o),n(e)):t.nextTick(r,o)})),this)}function i(e,t){s(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(e,t){e.emit("error",t)}function a(e,t){var n=e._readableState,i=e._writableState;n&&n.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:n,undestroy:o,errorOrDestroy:a}}).call(this,n("4362"))},edd0:function(e,t,n){var i=n("13d2"),r=n("9bf2");e.exports=function(e,t,n){return n.get&&i(n.get,t,{getter:!0}),n.set&&i(n.set,t,{setter:!0}),r.f(e,t,n)}},ee1a:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return l}));var i=n("6d8b"),r=n("80b9");function o(e,t,n){n=n||{};var r,o,a,l=n.byIndex,c=n.stackedCoordDimension;s(t)?r=t:(o=t.schema,r=o.dimensions,a=t.store);var u,h,d,f,p=!(!e||!e.get("stack"));if(Object(i["each"])(r,(function(e,t){Object(i["isString"])(e)&&(r[t]=e={name:e}),p&&!e.isExtraCoord&&(l||u||!e.ordinalMeta||(u=e),h||"ordinal"===e.type||"time"===e.type||c&&c!==e.coordDim||(h=e))})),!h||l||u||(l=!0),h){d="__\0ecstackresult_"+e.id,f="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var g=h.coordDim,m=h.type,v=0;Object(i["each"])(r,(function(e){e.coordDim===g&&v++}));var b={name:d,coordDim:g,coordDimIndex:v,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:f,coordDim:f,coordDimIndex:v+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};o?(a&&(b.storeDimIndex=a.ensureCalculationDimension(f,m),y.storeDimIndex=a.ensureCalculationDimension(d,m)),o.appendCalculationDimension(b),o.appendCalculationDimension(y)):(r.push(b),r.push(y))}return{stackedDimension:h&&h.name,stackedByDimension:u&&u.name,isStackedByIndex:l,stackedOverDimension:f,stackResultDimension:d}}function s(e){return!Object(r["d"])(e.schema)}function a(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function l(e,t){return a(e,t)?e.getCalculationInfo("stackResultDimension"):t}},ee29:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var i=n("e0d3"),r=n("9850"),o=n("deca"),s=n("861c"),a=n("3842"),l=n("8582"),c=n("89b6"),u=n("6d8b"),h=n("2355"),d=n("7837"),f=n("857d");function p(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function g(e,t){var n=e.label,i=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:p(i&&i.shape.points)}}var m=["align","verticalAlign","width","height","fontSize"],v=new l["c"],b=Object(i["o"])(),y=Object(i["o"])();function _(e,t,n){for(var i=0;i<n.length;i++){var r=n[i];null!=t[r]&&(e[r]=t[r])}}var w=["x","y","rotation"],C=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,i,o){var s=i.style,a=i.__hostTarget,l=a.textConfig||{},c=i.getComputedTransform(),u=i.getBoundingRect().plain();r["a"].applyTransform(u,u,c),c?v.setLocalTransform(c):(v.x=v.y=v.rotation=v.originX=v.originY=0,v.scaleX=v.scaleY=1),v.rotation=Object(f["a"])(v.rotation);var h,d=i.__hostTarget;if(d){h=d.getBoundingRect().plain();var p=d.getComputedTransform();r["a"].applyTransform(h,h,p)}var g=h&&d.getTextGuideLine();this._labelList.push({label:i,labelLine:g,seriesModel:n,dataIndex:e,dataType:t,layoutOption:o,computedLayoutOption:null,rect:u,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:g&&g.ignore,x:v.x,y:v.y,scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation,style:{x:s.x,y:s.y,align:s.align,verticalAlign:s.verticalAlign,width:s.width,height:s.height,fontSize:s.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,i=n.get("labelLayout");(Object(u["isFunction"])(i)||Object(u["keys"])(i).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var r=e.getTextContent(),o=Object(s["a"])(e);r&&!r.disableLabelLayout&&t._addLabel(o.dataIndex,o.dataType,n,r,i)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function i(e,t){return function(){Object(c["e"])(e,t)}}for(var r=0;r<this._labelList.length;r++){var o=this._labelList[r],s=o.label,l=s.__hostTarget,h=o.defaultAttr,d=void 0;d=Object(u["isFunction"])(o.layoutOption)?o.layoutOption(g(o,l)):o.layoutOption,d=d||{},o.computedLayoutOption=d;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=d.x||null!=d.y?null:h.attachedPos,rotation:null!=d.rotate?d.rotate*f:h.attachedRot,offset:[d.dx||0,d.dy||0]});var p=!1;if(null!=d.x?(s.x=Object(a["q"])(d.x,t),s.setStyle("x",0),p=!0):(s.x=h.x,s.setStyle("x",h.style.x)),null!=d.y?(s.y=Object(a["q"])(d.y,n),s.setStyle("y",0),p=!0):(s.y=h.y,s.setStyle("y",h.style.y)),d.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:d.labelLinePoints}),p=!1)}var y=b(s);y.needsUpdateLabelLine=p,s.rotation=null!=d.rotate?d.rotate*f:h.rotation,s.scaleX=h.scaleX,s.scaleY=h.scaleY;for(var _=0;_<m.length;_++){var w=m[_];s.setStyle(w,null!=d[w]?d[w]:h.style[w])}if(d.draggable){if(s.draggable=!0,s.cursor="move",l){var C=o.seriesModel;if(null!=o.dataIndex){var S=o.seriesModel.getData(o.dataType);C=S.getItemModel(o.dataIndex)}s.on("drag",i(l,C.getModel("labelLine")))}}else s.off("drag"),s.cursor=h.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),i=Object(h["b"])(this._labelList),r=Object(u["filter"])(i,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),o=Object(u["filter"])(i,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));Object(h["c"])(r,0,t),Object(h["d"])(o,0,n);var s=Object(u["filter"])(i,(function(e){return e.layoutOption.hideOverlap}));Object(h["a"])(s)},e.prototype.processLabelsOverall=function(){var e=this;Object(u["each"])(this._chartViewList,(function(t){var n=t.__model,i=t.ignoreLabelLineUpdate,r=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var o=!i,s=t.getTextContent();!o&&s&&(o=b(s).needsUpdateLabelLine),o&&e._updateLabelLine(t,n),r&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),i=Object(s["a"])(e),r=i.dataIndex;if(n&&null!=r){var o=t.getData(i.dataType),a=o.getItemModel(r),l={},u=o.getItemVisual(r,"style");if(u){var h=o.getVisual("drawType");l.stroke=u[h]}var d=a.getModel("labelLine");Object(c["d"])(e,Object(c["a"])(a),l),Object(c["e"])(e,d)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),i=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Object(o["d"])(e))){var r=b(n),a=r.oldLayout,l=Object(s["a"])(e),c=l.dataIndex,h={x:n.x,y:n.y,rotation:n.rotation},f=t.getData(l.dataType);if(a){n.attr(a);var p=e.prevStates;p&&(Object(u["indexOf"])(p,"select")>=0&&n.attr(r.oldLayoutSelect),Object(u["indexOf"])(p,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),Object(o["h"])(n,h,t,c)}else if(n.attr(h),!Object(d["f"])(n).valueAnimation){var g=Object(u["retrieve2"])(n.style.opacity,1);n.style.opacity=0,Object(o["c"])(n,{style:{opacity:g}},t,c)}if(r.oldLayout=h,n.states.select){var m=r.oldLayoutSelect={};_(m,h,w),_(m,n.states.select,w)}if(n.states.emphasis){var v=r.oldLayoutEmphasis={};_(v,h,w),_(v,n.states.emphasis,w)}Object(d["a"])(n,c,f,t,t)}if(i&&!i.ignore&&!i.invisible){r=y(i),a=r.oldLayout;var C={points:i.shape.points};a?(i.attr({shape:a}),Object(o["h"])(i,{shape:C},t)):(i.setShape(C),i.style.strokePercent=0,Object(o["c"])(i,{style:{strokePercent:1}},t)),r.oldLayout=C}},e}(),S=C,x=Object(i["o"])();function O(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var i=x(t).labelManager;i||(i=x(t).labelManager=new S),i.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var i=x(t).labelManager;n.updatedSeries.forEach((function(e){i.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()}))}},ee56:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("aa3d"),r=n("11f7"),o=n("7ddc");class s{constructor(e,t){this.supportIcons=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)}get element(){return this.domNode}set(e,t=[],n="",r){e||(e=""),r&&(e=s.escapeNewLines(e,t)),this.didEverRender&&this.text===e&&this.title===n&&i["d"](this.highlights,t)||(this.text=e,this.title=n,this.highlights=t,this.render())}render(){const e=[];let t=0;for(const n of this.highlights){if(n.end===n.start)continue;if(t<n.start){const i=this.text.substring(t,n.start);e.push(r["a"]("span",void 0,...this.supportIcons?Object(o["a"])(i):[i])),t=n.end}const i=this.text.substring(n.start,n.end),s=r["a"]("span.highlight",void 0,...this.supportIcons?Object(o["a"])(i):[i]);n.extraClasses&&s.classList.add(n.extraClasses),e.push(s),t=n.end}if(t<this.text.length){const n=this.text.substring(t);e.push(r["a"]("span",void 0,...this.supportIcons?Object(o["a"])(n):[n]))}r["R"](this.domNode,...e),this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0}static escapeNewLines(e,t){let n=0,i=0;return e.replace(/\r\n|\r|\n/g,(e,r)=>{i="\r\n"===e?-1:0,r+=n;for(const n of t)n.end<=r||(n.start>=r&&(n.start+=i),n.end>=r&&(n.end+=i));return n+=i,"⏎"})}}},eec7:function(e,t,n){"use strict";var i=n("be09"),r=n("8362"),o=n("6444"),s=n("53a8");function a(e,t){for(var n=0;n<e.length;n++)t(e[n])}function l(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function c(e,t,n){var i=e;return r(t)?(n=t,"string"===typeof e&&(i={uri:e})):i=s(t,{uri:e}),i.callback=n,i}function u(e,t,n){return t=c(e,t,n),h(t)}function h(e){if("undefined"===typeof e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,i,r){t||(t=!0,e.callback(n,i,r))};function i(){4===f.readyState&&setTimeout(a,0)}function r(){var e=void 0;if(e=f.response?f.response:f.responseText||d(f),_)try{e=JSON.parse(e)}catch(t){}return e}function s(e){return clearTimeout(p),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,w)}function a(){if(!h){var t;clearTimeout(p),t=e.useXDR&&void 0===f.status?200:1223===f.status?204:f.status;var i=w,s=null;return 0!==t?(i={body:r(),statusCode:t,method:m,headers:{},url:g,rawRequest:f},f.getAllResponseHeaders&&(i.headers=o(f.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),n(s,i,i.body)}}var c,h,f=e.xhr||null;f||(f=e.cors||e.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var p,g=f.url=e.uri||e.url,m=f.method=e.method||"GET",v=e.body||e.data,b=f.headers=e.headers||{},y=!!e.sync,_=!1,w={body:void 0,headers:{},statusCode:0,method:m,url:g,rawRequest:f};if("json"in e&&!1!==e.json&&(_=!0,b["accept"]||b["Accept"]||(b["Accept"]="application/json"),"GET"!==m&&"HEAD"!==m&&(b["content-type"]||b["Content-Type"]||(b["Content-Type"]="application/json"),v=JSON.stringify(!0===e.json?v:e.json))),f.onreadystatechange=i,f.onload=a,f.onerror=s,f.onprogress=function(){},f.onabort=function(){h=!0},f.ontimeout=s,f.open(m,g,!y,e.username,e.password),y||(f.withCredentials=!!e.withCredentials),!y&&e.timeout>0&&(p=setTimeout((function(){if(!h){h=!0,f.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",s(e)}}),e.timeout)),f.setRequestHeader)for(c in b)b.hasOwnProperty(c)&&f.setRequestHeader(c,b[c]);else if(e.headers&&!l(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(f.responseType=e.responseType),"beforeSend"in e&&"function"===typeof e.beforeSend&&e.beforeSend(f),f.send(v||null),f}function d(e){if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;return""!==e.responseType||t?null:e.responseXML}function f(){}e.exports=u,u.XMLHttpRequest=i.XMLHttpRequest||f,u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:i.XDomainRequest,a(["get","put","post","patch","head","delete"],(function(e){u["delete"===e?"del":e]=function(t,n,i){return n=c(t,n,i),n.method=e.toUpperCase(),h(n)}}))},ef08:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},ef34:function(e,t,n){(function(t){var i,r="undefined"!==typeof t?t:"undefined"!==typeof window?window:{},o=n(10);"undefined"!==typeof document?i=document:(i=r["__GLOBAL_DOCUMENT_CACHE@4"],i||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=o)),e.exports=i}).call(this,n("c8ba"))},ef37:function(e,t,n){},ef59:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return v}));var i=n("4319"),r=n("22d1"),o={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},s={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},a=n("6d8b"),l="ZH",c="EN",u=c,h={},d={},f=r["a"].domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||u).toUpperCase();return e.indexOf(l)>-1?l:u}():u;function p(e,t){e=e.toUpperCase(),d[e]=new i["a"](t),h[e]=t}function g(e){if(Object(a["isString"])(e)){var t=h[e.toUpperCase()]||{};return e===l||e===c?Object(a["clone"])(t):Object(a["merge"])(Object(a["clone"])(t),Object(a["clone"])(h[u]),!1)}return Object(a["merge"])(Object(a["clone"])(e),Object(a["clone"])(h[u]),!1)}function m(e){return d[e]}function v(){return d[u]}p(c,o),p(l,s)},ef8e:function(e,t,n){"use strict";function i(e){return Array.isArray(e)}function r(e){return"string"===typeof e}function o(e){return"object"===typeof e&&null!==e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function s(e){return"number"===typeof e&&!isNaN(e)}function a(e){return!0===e||!1===e}function l(e){return"undefined"===typeof e}function c(e){return l(e)||null===e}function u(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function h(e){if(c(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function d(e){return"function"===typeof e}function f(e,t){const n=Math.min(e.length,t.length);for(let i=0;i<n;i++)p(e[i],t[i])}function p(e,t){if(r(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(d(t)){try{if(e instanceof t)return}catch(n){}if(!c(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 g(e){let t=[],n=Object.getPrototypeOf(e);while(Object.prototype!==n)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}function m(e){const t=[];for(const n of g(e))"function"===typeof e[n]&&t.push(n);return t}function v(e,t){const n=e=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)};let i={};for(const r of e)i[r]=n(r);return i}function b(e){return null===e?void 0:e}function y(e,t="Unreachable"){throw new Error(t)}n.d(t,"f",(function(){return i})),n.d(t,"k",(function(){return r})),n.d(t,"j",(function(){return o})),n.d(t,"i",(function(){return s})),n.d(t,"g",(function(){return a})),n.d(t,"l",(function(){return l})),n.d(t,"m",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return h})),n.d(t,"h",(function(){return d})),n.d(t,"n",(function(){return f})),n.d(t,"e",(function(){return m})),n.d(t,"d",(function(){return v})),n.d(t,"o",(function(){return b})),n.d(t,"b",(function(){return y}))},efdb:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("0a0f");const r=Object(i["c"])("markerDecorationsService")},efec:function(e,t,n){var i=n("1a2d"),r=n("cb2d"),o=n("51eb"),s=n("b622"),a=s("toPrimitive"),l=Date.prototype;i(l,a)||r(l,a,o)},eff2:function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return f}));n("c84a");var i=n("30db"),r=n("dff7"),o=n("a666"),s=n("f070"),a=n("ef8e"),l=n("a60f"),c=n("650e"),u=n("0f70"),h=n("11f7");class d extends o["a"]{constructor(e,t,n={}){super(),this.options=n,this._context=e||this,this._action=t,t instanceof s["a"]&&this._register(t.onDidChange(e=>{this.element&&this.handleActionChangeEvent(e)}))}handleActionChangeEvent(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()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new s["b"])),this._actionRunner}set actionRunner(e){this._actionRunner=e}getAction(){return this._action}isEnabled(){return this._action.enabled}setActionContext(e){this._context=e}render(e){const t=this.element=e;this._register(l["b"].addTarget(e));const n=this.options&&this.options.draggable;n&&(e.draggable=!0,u["g"]&&this._register(Object(h["i"])(e,h["d"].DRAG_START,e=>{var t;return null===(t=e.dataTransfer)||void 0===t?void 0:t.setData(c["a"].TEXT,this._action.label)}))),this._register(Object(h["i"])(t,l["a"].Tap,e=>this.onClick(e,!0))),this._register(Object(h["i"])(t,h["d"].MOUSE_DOWN,e=>{n||h["c"].stop(e,!0),this._action.enabled&&0===e.button&&t.classList.add("active")})),i["f"]&&this._register(Object(h["i"])(t,h["d"].CONTEXT_MENU,e=>{0===e.button&&!0===e.ctrlKey&&this.onClick(e)})),this._register(Object(h["i"])(t,h["d"].CLICK,e=>{h["c"].stop(e,!0),this.options&&this.options.isMenu||i["k"](()=>this.onClick(e))})),this._register(Object(h["i"])(t,h["d"].DBLCLICK,e=>{h["c"].stop(e,!0)})),[h["d"].MOUSE_UP,h["d"].MOUSE_OUT].forEach(e=>{this._register(Object(h["i"])(t,e,e=>{h["c"].stop(e),t.classList.remove("active")}))})}onClick(e,t=!1){var n;h["c"].stop(e,!0);const i=a["m"](this._context)?(null===(n=this.options)||void 0===n?void 0:n.useEventAsContext)?e:{preserveFocus:t}:this._context;this.actionRunner.run(this._action,i)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(e){this.element&&(this.element.tabIndex=e?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}updateTooltip(){}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),super.dispose()}}class f extends d{constructor(e,t,n={}){super(e,t,n),this.options=n,this.options.icon=void 0!==n.icon&&n.icon,this.options.label=void 0===n.label||n.label,this.cssClass=""}render(e){super.render(e),this.element&&(this.label=Object(h["q"])(this.element,Object(h["a"])("a.action-label"))),this.label&&(this._action.id===s["d"].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&&(Object(h["q"])(this.element,Object(h["a"])("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(e){this.label&&(this.label.tabIndex=e?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)}updateTooltip(){let e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=r["a"]({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.label&&(this.label.title=e)}updateClass(){this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):this.label&&this.label.classList.remove("codicon")}updateEnabled(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),this.element&&this.element.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),this.element&&this.element.classList.add("disabled"))}updateChecked(){this.label&&(this.getAction().checked?this.label.classList.add("checked"):this.label.classList.remove("checked"))}}},f004:function(e,t,n){},f069:function(e,t,n){"use strict";var i=n("59ed"),r=TypeError,o=function(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw r("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)};e.exports.f=function(e){return new o(e)}},f070:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"c",(function(){return h}));var i=n("dff7"),r=n("a666"),o=n("308f"),s=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class a extends r["a"]{constructor(e,t="",n="",i=!0,r){super(),this._onDidChange=this._register(new o["b"]),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._checked=!1,this._id=e,this._label=t,this._cssClass=n,this._enabled=i,this._actionCallback=r}get id(){return this._id}get label(){return this._label}set label(e){this._setLabel(e)}_setLabel(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))}get tooltip(){return this._tooltip||""}set tooltip(e){this._setTooltip(e)}_setTooltip(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))}get class(){return this._cssClass}set class(e){this._setClass(e)}_setClass(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))}get enabled(){return this._enabled}set enabled(e){this._setEnabled(e)}_setEnabled(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))}get checked(){return this._checked}set checked(e){this._setChecked(e)}_setChecked(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))}run(e,t){return s(this,void 0,void 0,(function*(){this._actionCallback&&(yield this._actionCallback(e))}))}}class l extends r["a"]{constructor(){super(...arguments),this._onBeforeRun=this._register(new o["b"]),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new o["b"]),this.onDidRun=this._onDidRun.event}run(e,t){return s(this,void 0,void 0,(function*(){if(!e.enabled)return;this._onBeforeRun.fire({action:e});let n=void 0;try{yield this.runAction(e,t)}catch(i){n=i}this._onDidRun.fire({action:e,error:n})}))}runAction(e,t){return s(this,void 0,void 0,(function*(){yield e.run(t)}))}}class c extends a{constructor(e){super(c.ID,e,e?"separator text":"separator"),this.checked=!1,this.enabled=!1}}c.ID="vs.actions.separator";class u{constructor(e,t,n,i){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=e,this.label=t,this.class=i,this._actions=n}get actions(){return this._actions}dispose(){}run(){return s(this,void 0,void 0,(function*(){}))}}class h extends a{constructor(){super(h.ID,i["a"]("submenu.empty","(empty)"),void 0,!1)}}h.ID="vs.actions.empty"},f07b:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{constructor(...e){this._entries=new Map;for(let[t,n]of e)this.set(t,n)}set(e,t){const n=this._entries.get(e);return this._entries.set(e,t),n}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}}},f0b2:function(e,t,n){},f0cb:function(e,t,n){(function(t){const n=65536,i={},r=t.isBuffer(t.from([1,2]).subarray(0,1));function o(e){const n=t.allocUnsafe(2);return n.writeUInt8(e>>8,0),n.writeUInt8(255&e,1),n}function s(){for(let e=0;e<n;e++)i[e]=o(e)}function a(e){const n=4;let i=0,o=0;const s=t.allocUnsafe(n);do{i=e%128|0,e=e/128|0,e>0&&(i|=128),s.writeUInt8(i,o++)}while(e>0&&o<n);return e>0&&(o=0),r?s.subarray(0,o):s.slice(0,o)}function l(e){const n=t.allocUnsafe(4);return n.writeUInt32BE(e,0),n}e.exports={cache:i,generateCache:s,generateNumber:o,genBufVariableByteInt:a,generate4ByteBuffer:l}}).call(this,n("1c35").Buffer)},f111:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.barConfig=void 0;var i={show:!0,name:"",stack:"",shapeType:"normal",echelonOffset:10,barWidth:"auto",barGap:"30%",barCategoryGap:"20%",xAxisIndex:0,yAxisIndex:0,data:[],backgroundBar:{show:!1,width:"auto",style:{fill:"rgba(200, 200, 200, .4)"}},label:{show:!1,position:"top",offset:[0,-10],formatter:null,style:{fontSize:10}},gradient:{color:[],local:!0},barStyle:{},independentColor:!1,independentColors:[],rLevel:0,animationCurve:"easeOutCubic",animationFrame:50};t.barConfig=i},f177:function(e,t,n){"use strict";var i=n("5402"),r=n("a29f"),o=n("bbc7"),s=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},h=Date.prototype.toISOString,d=o["default"],f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(e){return h.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},g={},m=function e(t,n,o,s,a,c,h,d,m,v,b,y,_,w,C,S,x,O){var k=t,L=O,E=0,D=!1;while(void 0!==(L=L.get(g))&&!D){var I=L.get(t);if(E+=1,"undefined"!==typeof I){if(I===E)throw new RangeError("Cyclic object value");D=!0}"undefined"===typeof L.get(g)&&(E=0)}if("function"===typeof v?k=v(n,k):k instanceof Date?k=_(k):"comma"===o&&l(k)&&(k=r.maybeMap(k,(function(e){return e instanceof Date?_(e):e}))),null===k){if(c)return m&&!S?m(n,f.encoder,x,"key",w):n;k=""}if(p(k)||r.isBuffer(k)){if(m){var M=S?n:m(n,f.encoder,x,"key",w);return[C(M)+"="+C(m(k,f.encoder,x,"value",w))]}return[C(n)+"="+C(String(k))]}var T,A=[];if("undefined"===typeof k)return A;if("comma"===o&&l(k))S&&m&&(k=r.maybeMap(k,m)),T=[{value:k.length>0?k.join(",")||null:void 0}];else if(l(v))T=v;else{var N=Object.keys(k);T=b?N.sort(b):N}var P=d?n.replace(/\./g,"%2E"):n,j=s&&l(k)&&1===k.length?P+"[]":P;if(a&&l(k)&&0===k.length)return j+"[]";for(var R=0;R<T.length;++R){var F=T[R],B="object"===typeof F&&"undefined"!==typeof F.value?F.value:k[F];if(!h||null!==B){var W=y&&d?F.replace(/\./g,"%2E"):F,V=l(k)?"function"===typeof o?o(j,W):j:j+(y?"."+W:"["+W+"]");O.set(t,E);var z=i();z.set(g,O),u(A,e(B,V,o,s,a,c,h,d,"comma"===o&&S&&l(k)?null:m,v,b,y,_,w,C,S,x,z))}}return A},v=function(e){if(!e)return f;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.encodeDotInKeys&&"boolean"!==typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o["default"];if("undefined"!==typeof e.format){if(!s.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i,r=o.formatters[n],c=f.filter;if(("function"===typeof e.filter||l(e.filter))&&(c=e.filter),i=e.arrayFormat in a?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":f.arrayFormat,"commaRoundTrip"in e&&"boolean"!==typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u="undefined"===typeof e.allowDots?!0===e.encodeDotInKeys||f.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:i,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:"undefined"===typeof e.delimiter?f.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:f.encode,encodeDotInKeys:"boolean"===typeof e.encodeDotInKeys?e.encodeDotInKeys:f.encodeDotInKeys,encoder:"function"===typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};e.exports=function(e,t){var n,r,o=e,s=v(t);"function"===typeof s.filter?(r=s.filter,o=r("",o)):l(s.filter)&&(r=s.filter,n=r);var c=[];if("object"!==typeof o||null===o)return"";var h=a[s.arrayFormat],d="comma"===h&&s.commaRoundTrip;n||(n=Object.keys(o)),s.sort&&n.sort(s.sort);for(var f=i(),p=0;p<n.length;++p){var g=n[p];s.skipNulls&&null===o[g]||u(c,m(o[g],g,h,d,s.allowEmptyArrays,s.strictNullHandling,s.skipNulls,s.encodeDotInKeys,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,f))}var b=c.join(s.delimiter),y=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),b.length>0?y+b:""}},f17c:function(e,t,n){"use strict";n.r(t),n.d(t,"InsertCursorAbove",(function(){return C})),n.d(t,"InsertCursorBelow",(function(){return S})),n.d(t,"MultiCursorSessionResult",(function(){return L})),n.d(t,"MultiCursorSession",(function(){return E})),n.d(t,"MultiCursorSelectionController",(function(){return D})),n.d(t,"MultiCursorSelectionControllerAction",(function(){return I})),n.d(t,"AddSelectionToNextFindMatchAction",(function(){return M})),n.d(t,"AddSelectionToPreviousFindMatchAction",(function(){return T})),n.d(t,"MoveSelectionToNextFindMatchAction",(function(){return A})),n.d(t,"MoveSelectionToPreviousFindMatchAction",(function(){return N})),n.d(t,"SelectHighlightsAction",(function(){return P})),n.d(t,"CompatChangeAll",(function(){return j})),n.d(t,"SelectionHighlighter",(function(){return F}));var i=n("dff7"),r=n("5fe7"),o=n("fe45"),s=n("a666"),a=n("3813"),l=n("b2cc"),c=n("a007"),u=n("6a89"),h=n("8025"),d=n("c101"),f=n("3352"),p=n("b57f"),g=n("b707"),m=n("a106"),v=n("7e32"),b=n("303e"),y=n("b7d0"),_=n("4fc3");function w(e,t){const n=t.filter(t=>!e.find(e=>e.equals(t)));if(n.length>=1){const e=n.map(e=>`line ${e.viewState.position.lineNumber} column ${e.viewState.position.column}`).join(", "),t=1===n.length?i["a"]("cursorAdded","Cursor added: {0}",e):i["a"]("cursorsAdded","Cursors added: {0}",e);Object(a["c"])(t)}}class C extends l["b"]{constructor(){super({id:"editor.action.insertCursorAbove",label:i["a"]("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:d["a"].editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:v["b"].MenubarSelectionMenu,group:"3_multi",title:i["a"]({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,n){if(!t.hasModel())return;const i=n&&!0===n.logicalLine,r=t._getViewModel();if(r.cursorConfig.readOnly)return;r.pushStackElement();const o=r.getCursorStates();r.setCursorStates(n.source,3,c["b"].addCursorUp(r,o,i)),r.revealTopMostCursor(n.source),w(o,r.getCursorStates())}}class S extends l["b"]{constructor(){super({id:"editor.action.insertCursorBelow",label:i["a"]("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:d["a"].editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:v["b"].MenubarSelectionMenu,group:"3_multi",title:i["a"]({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,n){if(!t.hasModel())return;const i=n&&!0===n.logicalLine,r=t._getViewModel();if(r.cursorConfig.readOnly)return;r.pushStackElement();const o=r.getCursorStates();r.setCursorStates(n.source,3,c["b"].addCursorDown(r,o,i)),r.revealBottomMostCursor(n.source),w(o,r.getCursorStates())}}class x extends l["b"]{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:i["a"]("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:d["a"].editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:v["b"].MenubarSelectionMenu,group:"3_multi",title:i["a"]({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,n){if(!e.isEmpty()){for(let i=e.startLineNumber;i<e.endLineNumber;i++){let e=t.getLineMaxColumn(i);n.push(new h["a"](i,e,i,e))}e.endColumn>1&&n.push(new h["a"](e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;const n=t.getModel(),i=t.getSelections(),r=t._getViewModel(),o=r.getCursorStates();let s=[];i.forEach(e=>this.getCursorsForSelection(e,n,s)),s.length>0&&t.setSelections(s),w(o,r.getCursorStates())}}class O extends l["b"]{constructor(){super({id:"editor.action.addCursorsToBottom",label:i["a"]("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;const n=t.getSelections(),i=t.getModel().getLineCount();let r=[];for(let a=n[0].startLineNumber;a<=i;a++)r.push(new h["a"](a,n[0].startColumn,a,n[0].endColumn));const o=t._getViewModel(),s=o.getCursorStates();r.length>0&&t.setSelections(r),w(s,o.getCursorStates())}}class k extends l["b"]{constructor(){super({id:"editor.action.addCursorsToTop",label:i["a"]("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;const n=t.getSelections();let i=[];for(let s=n[0].startLineNumber;s>=1;s--)i.push(new h["a"](s,n[0].startColumn,s,n[0].endColumn));const r=t._getViewModel(),o=r.getCursorStates();i.length>0&&t.setSelections(i),w(o,r.getCursorStates())}}class L{constructor(e,t,n){this.selections=e,this.revealRange=t,this.revealScrollType=n}}class E{constructor(e,t,n,i,r,o,s){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=n,this.searchText=i,this.wholeWord=r,this.matchCase=o,this.currentMatch=s}static create(e,t){if(!e.hasModel())return null;const n=t.getState();if(!e.hasTextFocus()&&n.isRevealed&&n.searchString.length>0)return new E(e,t,!1,n.searchString,n.wholeWord,n.matchCase,null);let i,r,o=!1;const s=e.getSelections();1===s.length&&s[0].isEmpty()?(o=!0,i=!0,r=!0):(i=n.wholeWord,r=n.matchCase);const a=e.getSelection();let l,c=null;if(a.isEmpty()){const t=e.getConfiguredWordAtPosition(a.getStartPosition());if(!t)return null;l=t.word,c=new h["a"](a.startLineNumber,t.startColumn,a.startLineNumber,t.endColumn)}else l=e.getModel().getValueInRange(a).replace(/\r\n/g,"\n");return new E(e,t,o,l,i,r,c)}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new L(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const e=this._getNextMatch();if(!e)return null;const t=this._editor.getSelections();return new L(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],n=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(115):null,!1);return n?new h["a"](n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new L(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const e=this._getPreviousMatch();if(!e)return null;const t=this._editor.getSelections();return new L(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();const e=this._editor.getSelections(),t=e[e.length-1],n=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(115):null,!1);return n?new h["a"](n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn):null}selectAll(){return this._editor.hasModel()?(this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(115):null,!1,1073741824)):[]}}class D extends s["a"]{constructor(e){super(),this._sessionDispose=this._register(new s["b"]),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}static get(e){return e.getContribution(D.ID)}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){const t=E.create(this._editor,e);if(!t)return;this._session=t;const n={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(n.wholeWordOverride=1,n.matchCaseOverride=1,n.isRegexOverride=2),e.getState().change(n,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(e=>{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(e.getState().onFindReplaceStateChange(e=>{(e.matchCase||e.wholeWord)&&this._endSession()}))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;const n=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return n?new h["a"](t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){const t=this._editor.getSelections();if(t.length>1){const n=e.getState(),i=n.matchCase,r=B(this._editor.getModel(),t,i);if(!r){const e=this._editor.getModel();let n=[];for(let i=0,r=t.length;i<r;i++)n[i]=this._expandEmptyToWord(e,t[i]);return void this._editor.setSelections(n)}}}this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(e){this._beginSessionIfNeeded(e),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(e){if(!this._editor.hasModel())return;let t=null;const n=e.getState();if(n.isRevealed&&n.searchString.length>0&&n.isRegex)t=this._editor.getModel().findMatches(n.searchString,!0,n.isRegex,n.matchCase,n.wholeWord?this._editor.getOption(115):null,!1,1073741824);else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll()}if(n.searchScope){const e=n.searchScope;let i=[];t.forEach(t=>{e.forEach(e=>{t.range.endLineNumber<=e.endLineNumber&&t.range.startLineNumber>=e.startLineNumber&&i.push(t)})}),t=i}if(t.length>0){const e=this._editor.getSelection();for(let n=0,i=t.length;n<i;n++){const i=t[n],r=i.range.intersectRanges(e);if(r){t[n]=t[0],t[0]=i;break}}this._setSelections(t.map(e=>new h["a"](e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)))}}}D.ID="editor.contrib.multiCursorController";class I extends l["b"]{run(e,t){const n=D.get(t);if(!n)return;const i=m["CommonFindController"].get(t);if(!i)return;const r=t._getViewModel();if(r){const e=r.getCursorStates();this._run(n,i),w(e,r.getCursorStates())}}}class M extends I{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:i["a"]("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:d["a"].focus,primary:2082,weight:100},menuOpts:{menuId:v["b"].MenubarSelectionMenu,group:"3_multi",title:i["a"]({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}}class T extends I{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:i["a"]("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:v["b"].MenubarSelectionMenu,group:"3_multi",title:i["a"]({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}}class A extends I{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:i["a"]("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:d["a"].focus,primary:Object(o["a"])(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}}class N extends I{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:i["a"]("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}}class P extends I{constructor(){super({id:"editor.action.selectHighlights",label:i["a"]("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:d["a"].focus,primary:3114,weight:100},menuOpts:{menuId:v["b"].MenubarSelectionMenu,group:"3_multi",title:i["a"]({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}}class j extends I{constructor(){super({id:"editor.action.changeAll",label:i["a"]("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:_["a"].and(d["a"].writable,d["a"].editorTextFocus),kbOpts:{kbExpr:d["a"].editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}}class R{constructor(e,t,n,i){this.searchText=e,this.matchCase=t,this.wordSeparators=n,this.modelVersionId=i}static softEquals(e,t){return!e&&!t||!(!e||!t)&&(e.searchText===t.searchText&&e.matchCase===t.matchCase&&e.wordSeparators===t.wordSeparators&&e.modelVersionId===t.modelVersionId)}}class F extends s["a"]{constructor(e){super(),this.editor=e,this._isEnabled=e.getOption(96),this.decorations=[],this.updateSoon=this._register(new r["e"](()=>this._update(),300)),this.state=null,this._register(e.onDidChangeConfiguration(t=>{this._isEnabled=e.getOption(96)})),this._register(e.onDidChangeCursorSelection(e=>{this._isEnabled&&(e.selection.isEmpty()?3===e.reason?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register(e.onDidChangeModel(e=>{this._setState(null)})),this._register(e.onDidChangeModelContent(e=>{this._isEnabled&&this.updateSoon.schedule()})),this._register(m["CommonFindController"].get(e).getState().onFindReplaceStateChange(e=>{this._update()}))}_update(){this._setState(F._createState(this._isEnabled,this.editor))}static _createState(e,t){if(!e)return null;if(!t.hasModel())return null;const n=t.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;const i=D.get(t);if(!i)return null;const r=m["CommonFindController"].get(t);if(!r)return null;let o=i.getSession(r);if(!o){const e=t.getSelections();if(e.length>1){const n=r.getState(),i=n.matchCase,o=B(t.getModel(),e,i);if(!o)return null}o=E.create(t,r)}if(!o)return null;if(o.currentMatch)return null;if(/^[ \t]+$/.test(o.searchText))return null;if(o.searchText.length>200)return null;const s=r.getState(),a=s.matchCase;if(s.isRevealed){let e=s.searchString;a||(e=e.toLowerCase());let t=o.searchText;if(a||(t=t.toLowerCase()),e===t&&o.matchCase===s.matchCase&&o.wholeWord===s.wholeWord&&!s.isRegex)return null}return new R(o.searchText,o.matchCase,o.wholeWord?t.getOption(115):null,t.getModel().getVersionId())}_setState(e){if(R.softEquals(this.state,e))return void(this.state=e);if(this.state=e,!this.state)return void(this.decorations=this.editor.deltaDecorations(this.decorations,[]));if(!this.editor.hasModel())return;const t=this.editor.getModel();if(t.isTooLargeForTokenization())return;const n=g["i"].has(t)&&this.editor.getOption(70);let i=t.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map(e=>e.range);i.sort(u["a"].compareRangesUsingStarts);let r=this.editor.getSelections();r.sort(u["a"].compareRangesUsingStarts);let o=[];for(let a=0,l=0,c=i.length,h=r.length;a<c;){const e=i[a];if(l>=h)o.push(e),a++;else{const t=u["a"].compareRangesUsingStarts(e,r[l]);t<0?(!r[l].isEmpty()&&u["a"].areIntersecting(e,r[l])||o.push(e),a++):(t>0||a++,l++)}}const s=o.map(e=>({range:e,options:n?F._SELECTION_HIGHLIGHT:F._SELECTION_HIGHLIGHT_OVERVIEW}));this.decorations=this.editor.deltaDecorations(this.decorations,s)}dispose(){this._setState(null),super.dispose()}}function B(e,t,n){const i=W(e,t[0],!n);for(let r=1,o=t.length;r<o;r++){const o=t[r];if(o.isEmpty())return!1;const s=W(e,o,!n);if(i!==s)return!1}return!0}function W(e,t,n){const i=e.getValueInRange(t);return n?i.toLowerCase():i}F.ID="editor.contrib.selectionHighlighter",F._SELECTION_HIGHLIGHT_OVERVIEW=p["a"].register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(y["g"])(b["jc"]),position:f["d"].Center}}),F._SELECTION_HIGHLIGHT=p["a"].register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),Object(l["l"])(D.ID,D),Object(l["l"])(F.ID,F),Object(l["j"])(C),Object(l["j"])(S),Object(l["j"])(x),Object(l["j"])(M),Object(l["j"])(T),Object(l["j"])(A),Object(l["j"])(N),Object(l["j"])(P),Object(l["j"])(j),Object(l["j"])(O),Object(l["j"])(k)},f183:function(e,t,n){var i=n("23e7"),r=n("e330"),o=n("d012"),s=n("861d"),a=n("1a2d"),l=n("9bf2").f,c=n("241c"),u=n("057f"),h=n("4fad"),d=n("90e3"),f=n("bb2f"),p=!1,g=d("meta"),m=0,v=function(e){l(e,g,{value:{objectID:"O"+m++,weakData:{}}})},b=function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,g)){if(!h(e))return"F";if(!t)return"E";v(e)}return e[g].objectID},y=function(e,t){if(!a(e,g)){if(!h(e))return!0;if(!t)return!1;v(e)}return e[g].weakData},_=function(e){return f&&p&&h(e)&&!a(e,g)&&v(e),e},w=function(){C.enable=function(){},p=!0;var e=c.f,t=r([].splice),n={};n[g]=1,e(n).length&&(c.f=function(n){for(var i=e(n),r=0,o=i.length;r<o;r++)if(i[r]===g){t(i,r,1);break}return i},i({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},C=e.exports={enable:w,fastKey:b,getWeakData:y,onFreeze:_};o[g]=!0},f187:function(e,t,n){"use strict";n.r(t),n.d(t,"DefinitionAction",(function(){return te}));var i=n("3813"),r=n("5fe7"),o=n("fe45"),s=n("30db"),a=n("b055"),l=n("b2cc"),c=n("5717"),u=n("7061"),h=n("6a89"),d=n("c101"),f=n("b707"),p=n("351f"),g=n("88d4"),m=n("418f"),v=n("f68e"),b=n("dff7"),y=n("7e32"),_=n("4fc3"),w=n("b0cd"),C=n("b539"),S=n("bd13"),x=n("9e74"),O=n("bc04"),k=n("0a0f"),L=n("f5f3"),E=n("9eb8"),D=n("a666"),I=n("308f"),M=n("6dec"),T=n("82c9"),A=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},N=function(e,t){return function(n,i){t(n,i,e)}};const P=new _["c"]("hasSymbols",!1,Object(b["a"])("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),j=Object(k["c"])("ISymbolNavigationService");let R=class{constructor(e,t,n,i){this._editorService=t,this._notificationService=n,this._keybindingService=i,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=P.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),null===(e=this._currentState)||void 0===e||e.dispose(),null===(t=this._currentMessage)||void 0===t||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){const t=e.parent.parent;if(t.references.length<=1)return void this.reset();this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();const n=new F(this._editorService),i=n.onDidChange(e=>{if(this._ignoreEditorChange)return;const n=this._editorService.getActiveCodeEditor();if(!n)return;const i=n.getModel(),r=n.getPosition();if(!i||!r)return;let o=!1,s=!1;for(const a of t.references)if(Object(T["f"])(a.uri,i.uri))o=!0,s=s||h["a"].containsPosition(a.range,r);else if(o)break;o&&s||this.reset()});this._currentState=Object(D["e"])(n,i)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:h["a"].collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;null===(e=this._currentMessage)||void 0===e||e.dispose();const t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),n=t?Object(b["a"])("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):Object(b["a"])("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(n)}};R=A([N(0,_["b"]),N(1,c["a"]),N(2,w["a"]),N(3,M["a"])],R),Object(L["b"])(j,R,!0),Object(l["k"])(new class extends l["c"]{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:P,kbOpts:{weight:100,primary:70}})}runEditorCommand(e,t){return e.get(j).revealNext(t)}}),E["a"].registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:P,primary:9,handler(e){e.get(j).reset()}});let F=class{constructor(e){this._listener=new Map,this._disposables=new D["b"],this._onDidChange=new I["b"],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)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),Object(D["f"])(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,Object(D["e"])(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;null===(t=this._listener.get(e))||void 0===t||t.dispose(),this._listener.delete(e)}};F=A([N(0,c["a"])],F);var B,W,V,z,H,U,q,$,K=n("0f70"),G=n("6d8e"),Y=n("ef8e"),Z=n("d379"),X=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};y["d"].appendMenuItem(y["b"].EditorContext,{submenu:y["b"].EditorContextPeek,title:b["a"]("peek.submenu","Peek"),group:"navigation",order:100});const Q=new Set;function J(e){const t=new e;return Object(l["m"])(t),Q.add(t.id),t}class ee extends l["b"]{constructor(e,t){super(t),this._configuration=e}run(e,t){if(!t.hasModel())return Promise.resolve(void 0);const n=e.get(w["a"]),o=e.get(c["a"]),s=e.get(C["a"]),a=e.get(j),l=t.getModel(),u=t.getPosition(),h=new O["b"](t,5),d=Object(r["l"])(this._getLocationModel(l,u,h.token),h.token).then(e=>X(this,void 0,void 0,(function*(){if(!e||h.token.isCancellationRequested)return;let n;if(Object(i["a"])(e.ariaMessage),e.referenceAt(l.uri,u)){const e=this._getAlternativeCommand(t);e!==this.id&&Q.has(e)&&(n=t.getAction(e))}const r=e.references.length;if(0===r){if(!this._configuration.muteMessage){const e=l.getWordAtPosition(u);p["a"].get(t).showMessage(this._getNoResultFoundMessage(e),u)}}else{if(1!==r||!n)return this._onResult(o,a,t,e);n.run()}})),e=>{n.error(e)}).finally(()=>{h.dispose()});return s.showWhile(d,250),d}_onResult(e,t,n,i){return X(this,void 0,void 0,(function*(){const r=this._getGoToPreference(n);if(n instanceof Z["a"]||!(this._configuration.openInPeek||"peek"===r&&i.references.length>1)){const o=i.firstReference(),s=i.references.length>1&&"gotoAndPeek"===r,a=yield this._openReference(n,e,o,this._configuration.openToSide,!s);s&&a?this._openInPeek(a,i):i.dispose(),"goto"===r&&t.put(o)}else this._openInPeek(n,i)}))}_openReference(e,t,n,i,r){return X(this,void 0,void 0,(function*(){let o=void 0;if(Object(f["J"])(n)&&(o=n.targetSelectionRange),o||(o=n.range),!o)return;const s=yield t.openCodeEditor({resource:n.uri,options:{selection:h["a"].collapseToStart(o),selectionRevealType:3}},e,i);if(s){if(r){const e=s.getModel(),t=s.deltaDecorations([],[{range:o,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{s.getModel()===e&&s.deltaDecorations(t,[])},350)}return s}}))}_openInPeek(e,t){let n=m["a"].get(e);n&&e.hasModel()?n.toggleWidget(e.getSelection(),Object(r["h"])(e=>Promise.resolve(t)),this._configuration.openInPeek):t.dispose()}}class te extends ee{_getLocationModel(e,t,n){return X(this,void 0,void 0,(function*(){return new v["c"](yield Object(S["b"])(e,t,n),b["a"]("def.title","Definitions"))}))}_getNoResultFoundMessage(e){return e&&e.word?b["a"]("noResultWord","No definition found for '{0}'",e.word):b["a"]("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(48).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(48).multipleDefinitions}}const ne=s["i"]&&!K["i"]?2118:70;J((B=class e extends te{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,label:b["a"]("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:_["a"].and(d["a"].hasDefinitionProvider,d["a"].isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:d["a"].editorTextFocus,primary:ne,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:y["b"].MenubarGoMenu,group:"4_symbol_nav",order:2,title:b["a"]({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}}),x["a"].registerCommandAlias("editor.action.goToDeclaration",e.id)}},B.id="editor.action.revealDefinition",B)),J((W=class e extends te{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:e.id,label:b["a"]("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:_["a"].and(d["a"].hasDefinitionProvider,d["a"].isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:d["a"].editorTextFocus,primary:Object(o["a"])(2089,ne),weight:100}}),x["a"].registerCommandAlias("editor.action.openDeclarationToTheSide",e.id)}},W.id="editor.action.revealDefinitionAside",W)),J((V=class e extends te{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.id,label:b["a"]("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:_["a"].and(d["a"].hasDefinitionProvider,g["b"].notInPeekEditor,d["a"].isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:d["a"].editorTextFocus,primary:582,linux:{primary:3140},weight:100},contextMenuOpts:{menuId:y["b"].EditorContextPeek,group:"peek",order:2}}),x["a"].registerCommandAlias("editor.action.previewDeclaration",e.id)}},V.id="editor.action.peekDefinition",V));class ie extends ee{_getLocationModel(e,t,n){return X(this,void 0,void 0,(function*(){return new v["c"](yield Object(S["a"])(e,t,n),b["a"]("decl.title","Declarations"))}))}_getNoResultFoundMessage(e){return e&&e.word?b["a"]("decl.noResultWord","No declaration found for '{0}'",e.word):b["a"]("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(48).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(48).multipleDeclarations}}J((z=class e extends ie{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.id,label:b["a"]("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:_["a"].and(d["a"].hasDeclarationProvider,d["a"].isInWalkThroughSnippet.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:y["b"].MenubarGoMenu,group:"4_symbol_nav",order:3,title:b["a"]({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})}_getNoResultFoundMessage(e){return e&&e.word?b["a"]("decl.noResultWord","No declaration found for '{0}'",e.word):b["a"]("decl.generic.noResults","No declaration found")}},z.id="editor.action.revealDeclaration",z)),J(class extends ie{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:b["a"]("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:_["a"].and(d["a"].hasDeclarationProvider,g["b"].notInPeekEditor,d["a"].isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:y["b"].EditorContextPeek,group:"peek",order:3}})}});class re extends ee{_getLocationModel(e,t,n){return X(this,void 0,void 0,(function*(){return new v["c"](yield Object(S["e"])(e,t,n),b["a"]("typedef.title","Type Definitions"))}))}_getNoResultFoundMessage(e){return e&&e.word?b["a"]("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):b["a"]("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(48).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(48).multipleTypeDefinitions}}J((H=class e extends re{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,label:b["a"]("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:_["a"].and(d["a"].hasTypeDefinitionProvider,d["a"].isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:d["a"].editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:y["b"].MenubarGoMenu,group:"4_symbol_nav",order:3,title:b["a"]({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})}},H.ID="editor.action.goToTypeDefinition",H)),J((U=class e extends re{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,label:b["a"]("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:_["a"].and(d["a"].hasTypeDefinitionProvider,g["b"].notInPeekEditor,d["a"].isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:y["b"].EditorContextPeek,group:"peek",order:4}})}},U.ID="editor.action.peekTypeDefinition",U));class oe extends ee{_getLocationModel(e,t,n){return X(this,void 0,void 0,(function*(){return new v["c"](yield Object(S["c"])(e,t,n),b["a"]("impl.title","Implementations"))}))}_getNoResultFoundMessage(e){return e&&e.word?b["a"]("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):b["a"]("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(48).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(48).multipleImplementations}}J((q=class e extends oe{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:e.ID,label:b["a"]("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:_["a"].and(d["a"].hasImplementationProvider,d["a"].isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:d["a"].editorTextFocus,primary:2118,weight:100},menuOpts:{menuId:y["b"].MenubarGoMenu,group:"4_symbol_nav",order:4,title:b["a"]({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})}},q.ID="editor.action.goToImplementation",q)),J(($=class e extends oe{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:e.ID,label:b["a"]("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:_["a"].and(d["a"].hasImplementationProvider,g["b"].notInPeekEditor,d["a"].isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:d["a"].editorTextFocus,primary:3142,weight:100},contextMenuOpts:{menuId:y["b"].EditorContextPeek,group:"peek",order:5}})}},$.ID="editor.action.peekImplementation",$));class se extends ee{_getNoResultFoundMessage(e){return e?b["a"]("references.no","No references found for '{0}'",e.word):b["a"]("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(48).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(48).multipleReferences}}J(class extends se{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:b["a"]("goToReferences.label","Go to References"),alias:"Go to References",precondition:_["a"].and(d["a"].hasReferenceProvider,g["b"].notInPeekEditor,d["a"].isInWalkThroughSnippet.toNegated()),kbOpts:{kbExpr:d["a"].editorTextFocus,primary:1094,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:y["b"].MenubarGoMenu,group:"4_symbol_nav",order:5,title:b["a"]({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})}_getLocationModel(e,t,n){return X(this,void 0,void 0,(function*(){return new v["c"](yield Object(S["d"])(e,t,!0,n),b["a"]("ref.title","References"))}))}}),J(class extends se{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:b["a"]("references.action.label","Peek References"),alias:"Peek References",precondition:_["a"].and(d["a"].hasReferenceProvider,g["b"].notInPeekEditor,d["a"].isInWalkThroughSnippet.toNegated()),contextMenuOpts:{menuId:y["b"].EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,n){return X(this,void 0,void 0,(function*(){return new v["c"](yield Object(S["d"])(e,t,!1,n),b["a"]("ref.title","References"))}))}});class ae extends ee{constructor(e,t,n){super(e,{id:"editor.action.goToLocation",label:b["a"]("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:_["a"].and(g["b"].notInPeekEditor,d["a"].isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=n}_getLocationModel(e,t,n){return X(this,void 0,void 0,(function*(){return new v["c"](this._references,b["a"]("generic.title","Locations"))}))}_getNoResultFoundMessage(e){return e&&b["a"]("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return null!==(t=this._gotoMultipleBehaviour)&&void 0!==t?t:e.getOption(48).multipleReferences}_getAlternativeCommand(){return""}}x["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:G["a"]},{name:"position",description:"The position at which to start",constraint:u["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"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(e,t,n,i,r,o,s)=>X(void 0,void 0,void 0,(function*(){Object(Y["c"])(G["a"].isUri(t)),Object(Y["c"])(u["a"].isIPosition(n)),Object(Y["c"])(Array.isArray(i)),Object(Y["c"])("undefined"===typeof r||"string"===typeof r),Object(Y["c"])("undefined"===typeof s||"boolean"===typeof s);const l=e.get(c["a"]),h=yield l.openCodeEditor({resource:t},l.getFocusedCodeEditor());if(Object(a["b"])(h))return h.setPosition(n),h.revealPositionInCenterIfOutsideViewport(n,0),h.invokeWithinContext(e=>{const t=new class extends ae{_getNoResultFoundMessage(e){return o||super._getNoResultFoundMessage(e)}}({muteMessage:!Boolean(o),openInPeek:Boolean(s),openToSide:!1},i,r);e.get(k["a"]).invokeFunction(t.run.bind(t),h)})}))}),x["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:G["a"]},{name:"position",description:"The position at which to start",constraint:u["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:(e,t,n,i,r)=>X(void 0,void 0,void 0,(function*(){e.get(x["b"]).executeCommand("editor.action.goToLocations",t,n,i,r,void 0,!0)}))}),x["a"].registerCommand({id:"editor.action.findReferences",handler:(e,t,n)=>{Object(Y["c"])(G["a"].isUri(t)),Object(Y["c"])(u["a"].isIPosition(n));const i=e.get(c["a"]);return i.openCodeEditor({resource:t},i.getFocusedCodeEditor()).then(e=>{if(!Object(a["b"])(e)||!e.hasModel())return;const t=m["a"].get(e);if(!t)return;const i=Object(r["h"])(t=>Object(S["d"])(e.getModel(),u["a"].lift(n),!1,t).then(e=>new v["c"](e,b["a"]("ref.title","References")))),o=new h["a"](n.lineNumber,n.column,n.lineNumber,n.column);return Promise.resolve(t.toggleWidget(o,i,!1))})}}),x["a"].registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},f20b:function(e,t,n){},f214:function(e,t,n){t=e.exports=n("0e8b"),t.Stream=t,t.Readable=t,t.Writable=n("f6ba"),t.Duplex=n("a493"),t.Transform=n("fe34"),t.PassThrough=n("9d37"),t.finished=n("bf09"),t.pipeline=n("386b")},f22b:function(e,t,n){"use strict";var i=n("23e7"),r=n("c65b"),o=n("f069"),s=n("4738").CONSTRUCTOR;i({target:"Promise",stat:!0,forced:s},{reject:function(e){var t=o.f(this);return r(t.reject,void 0,e),t.promise}})},f279:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return g})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return v}));var i=n("9ab4"),r=n("9850"),o=n("401b"),s=n("0655"),a=n("1687"),l=n("6d8b"),c=[];function u(e,t){for(var n=0;n<e.length;n++)o["applyTransform"](e[n],e[n],t)}function h(e,t,n,i){for(var r=0;r<e.length;r++){var s=e[r];i&&(s=i.project(s)),s&&isFinite(s[0])&&isFinite(s[1])&&(o["min"](t,t,s),o["max"](n,n,s))}}function d(e){for(var t=0,n=0,i=0,r=e.length,o=e[r-1][0],s=e[r-1][1],a=0;a<r;a++){var l=e[a][0],c=e[a][1],u=o*c-l*s;t+=u,n+=(o+l)*u,i+=(s+c)*u,o=l,s=c}return t?[n/t/3,i/t/3,t]:[e[0][0]||0,e[0][1]||0]}var f=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),p=function(){function e(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return e}(),g=function(){function e(e){this.type="linestring",this.points=e}return e}(),m=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return Object(i["a"])(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,i=0;i<t.length;i++){var r=t[i],o=r.exterior,s=o&&o.length;s>n&&(e=r,n=s)}if(e)return d(e.exterior);var a=this.getBoundingRect();return[a.x+a.width/2,a.y+a.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return Object(l["each"])(o,(function(t){"polygon"===t.type?h(t.exterior,n,i,e):Object(l["each"])(t.points,(function(t){h(t,n,i,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new r["a"](n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,l=o.interiors;if(s["a"](a,e[0],e[1])){for(var c=0;c<(l?l.length:0);c++)if(s["a"](l[c],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,i){var o=this.getBoundingRect(),s=o.width/o.height;n?i||(i=n/s):n=s*i;for(var a=new r["a"](e,t,n,i),c=o.calculateTransform(a),h=this.geometries,d=0;d<h.length;d++){var f=h[d];"polygon"===f.type?(u(f.exterior,c),Object(l["each"])(f.interiors,(function(e){u(e,c)}))):Object(l["each"])(f.points,(function(e){u(e,c)}))}o=this._rect,o.copy(a),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(f),v=function(e){function t(t,n){var i=e.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return Object(i["a"])(t,e),t.prototype.calcCenter=function(){var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],i=a["identity"](c),r=e;while(r&&!r.isGeoSVGGraphicRoot)a["mul"](i,r.getLocalTransform(),i),r=r.parent;return a["invert"](i,i),o["applyTransform"](n,n,i),n},t}(f)},f2d2:function(e,t,n){},f33e:function(e,t,n){"use strict";n.r(t),n.d(t,"CancellationTokenSource",(function(){return ec})),n.d(t,"Emitter",(function(){return tc})),n.d(t,"KeyCode",(function(){return nc})),n.d(t,"KeyMod",(function(){return ic})),n.d(t,"Position",(function(){return rc})),n.d(t,"Range",(function(){return oc})),n.d(t,"Selection",(function(){return sc})),n.d(t,"SelectionDirection",(function(){return ac})),n.d(t,"MarkerSeverity",(function(){return lc})),n.d(t,"MarkerTag",(function(){return cc})),n.d(t,"Uri",(function(){return uc})),n.d(t,"Token",(function(){return hc})),n.d(t,"editor",(function(){return dc})),n.d(t,"languages",(function(){return fc}));var i,r,o,s,a,l,c,u,h,d,f,p,g,m,v,b,y,_,w,C,S,x,O,k,L,E,D,I,M,T,A,N,P,j,R,F=n("fd49"),B=n("2504"),W=n("308f"),V=n("fe45"),z=n("6d8e"),H=n("7061"),U=n("6a89"),q=n("8025"),$=n("4dc7");(function(e){e[e["Unknown"]=0]="Unknown",e[e["Disabled"]=1]="Disabled",e[e["Enabled"]=2]="Enabled"})(i||(i={})),function(e){e[e["KeepWhitespace"]=1]="KeepWhitespace",e[e["InsertAsSnippet"]=4]="InsertAsSnippet"}(r||(r={})),function(e){e[e["Method"]=0]="Method",e[e["Function"]=1]="Function",e[e["Constructor"]=2]="Constructor",e[e["Field"]=3]="Field",e[e["Variable"]=4]="Variable",e[e["Class"]=5]="Class",e[e["Struct"]=6]="Struct",e[e["Interface"]=7]="Interface",e[e["Module"]=8]="Module",e[e["Property"]=9]="Property",e[e["Event"]=10]="Event",e[e["Operator"]=11]="Operator",e[e["Unit"]=12]="Unit",e[e["Value"]=13]="Value",e[e["Constant"]=14]="Constant",e[e["Enum"]=15]="Enum",e[e["EnumMember"]=16]="EnumMember",e[e["Keyword"]=17]="Keyword",e[e["Text"]=18]="Text",e[e["Color"]=19]="Color",e[e["File"]=20]="File",e[e["Reference"]=21]="Reference",e[e["Customcolor"]=22]="Customcolor",e[e["Folder"]=23]="Folder",e[e["TypeParameter"]=24]="TypeParameter",e[e["User"]=25]="User",e[e["Issue"]=26]="Issue",e[e["Snippet"]=27]="Snippet"}(o||(o={})),function(e){e[e["Deprecated"]=1]="Deprecated"}(s||(s={})),function(e){e[e["Invoke"]=0]="Invoke",e[e["TriggerCharacter"]=1]="TriggerCharacter",e[e["TriggerForIncompleteCompletions"]=2]="TriggerForIncompleteCompletions"}(a||(a={})),function(e){e[e["EXACT"]=0]="EXACT",e[e["ABOVE"]=1]="ABOVE",e[e["BELOW"]=2]="BELOW"}(l||(l={})),function(e){e[e["NotSet"]=0]="NotSet",e[e["ContentFlush"]=1]="ContentFlush",e[e["RecoverFromMarkers"]=2]="RecoverFromMarkers",e[e["Explicit"]=3]="Explicit",e[e["Paste"]=4]="Paste",e[e["Undo"]=5]="Undo",e[e["Redo"]=6]="Redo"}(c||(c={})),function(e){e[e["LF"]=1]="LF",e[e["CRLF"]=2]="CRLF"}(u||(u={})),function(e){e[e["Text"]=0]="Text",e[e["Read"]=1]="Read",e[e["Write"]=2]="Write"}(h||(h={})),function(e){e[e["None"]=0]="None",e[e["Keep"]=1]="Keep",e[e["Brackets"]=2]="Brackets",e[e["Advanced"]=3]="Advanced",e[e["Full"]=4]="Full"}(d||(d={})),function(e){e[e["acceptSuggestionOnCommitCharacter"]=0]="acceptSuggestionOnCommitCharacter",e[e["acceptSuggestionOnEnter"]=1]="acceptSuggestionOnEnter",e[e["accessibilitySupport"]=2]="accessibilitySupport",e[e["accessibilityPageSize"]=3]="accessibilityPageSize",e[e["ariaLabel"]=4]="ariaLabel",e[e["autoClosingBrackets"]=5]="autoClosingBrackets",e[e["autoClosingDelete"]=6]="autoClosingDelete",e[e["autoClosingOvertype"]=7]="autoClosingOvertype",e[e["autoClosingQuotes"]=8]="autoClosingQuotes",e[e["autoIndent"]=9]="autoIndent",e[e["automaticLayout"]=10]="automaticLayout",e[e["autoSurround"]=11]="autoSurround",e[e["codeLens"]=12]="codeLens",e[e["codeLensFontFamily"]=13]="codeLensFontFamily",e[e["codeLensFontSize"]=14]="codeLensFontSize",e[e["colorDecorators"]=15]="colorDecorators",e[e["columnSelection"]=16]="columnSelection",e[e["comments"]=17]="comments",e[e["contextmenu"]=18]="contextmenu",e[e["copyWithSyntaxHighlighting"]=19]="copyWithSyntaxHighlighting",e[e["cursorBlinking"]=20]="cursorBlinking",e[e["cursorSmoothCaretAnimation"]=21]="cursorSmoothCaretAnimation",e[e["cursorStyle"]=22]="cursorStyle",e[e["cursorSurroundingLines"]=23]="cursorSurroundingLines",e[e["cursorSurroundingLinesStyle"]=24]="cursorSurroundingLinesStyle",e[e["cursorWidth"]=25]="cursorWidth",e[e["disableLayerHinting"]=26]="disableLayerHinting",e[e["disableMonospaceOptimizations"]=27]="disableMonospaceOptimizations",e[e["domReadOnly"]=28]="domReadOnly",e[e["dragAndDrop"]=29]="dragAndDrop",e[e["emptySelectionClipboard"]=30]="emptySelectionClipboard",e[e["extraEditorClassName"]=31]="extraEditorClassName",e[e["fastScrollSensitivity"]=32]="fastScrollSensitivity",e[e["find"]=33]="find",e[e["fixedOverflowWidgets"]=34]="fixedOverflowWidgets",e[e["folding"]=35]="folding",e[e["foldingStrategy"]=36]="foldingStrategy",e[e["foldingHighlight"]=37]="foldingHighlight",e[e["foldingImportsByDefault"]=38]="foldingImportsByDefault",e[e["unfoldOnClickAfterEndOfLine"]=39]="unfoldOnClickAfterEndOfLine",e[e["fontFamily"]=40]="fontFamily",e[e["fontInfo"]=41]="fontInfo",e[e["fontLigatures"]=42]="fontLigatures",e[e["fontSize"]=43]="fontSize",e[e["fontWeight"]=44]="fontWeight",e[e["formatOnPaste"]=45]="formatOnPaste",e[e["formatOnType"]=46]="formatOnType",e[e["glyphMargin"]=47]="glyphMargin",e[e["gotoLocation"]=48]="gotoLocation",e[e["hideCursorInOverviewRuler"]=49]="hideCursorInOverviewRuler",e[e["highlightActiveIndentGuide"]=50]="highlightActiveIndentGuide",e[e["hover"]=51]="hover",e[e["inDiffEditor"]=52]="inDiffEditor",e[e["inlineSuggest"]=53]="inlineSuggest",e[e["letterSpacing"]=54]="letterSpacing",e[e["lightbulb"]=55]="lightbulb",e[e["lineDecorationsWidth"]=56]="lineDecorationsWidth",e[e["lineHeight"]=57]="lineHeight",e[e["lineNumbers"]=58]="lineNumbers",e[e["lineNumbersMinChars"]=59]="lineNumbersMinChars",e[e["linkedEditing"]=60]="linkedEditing",e[e["links"]=61]="links",e[e["matchBrackets"]=62]="matchBrackets",e[e["minimap"]=63]="minimap",e[e["mouseStyle"]=64]="mouseStyle",e[e["mouseWheelScrollSensitivity"]=65]="mouseWheelScrollSensitivity",e[e["mouseWheelZoom"]=66]="mouseWheelZoom",e[e["multiCursorMergeOverlapping"]=67]="multiCursorMergeOverlapping",e[e["multiCursorModifier"]=68]="multiCursorModifier",e[e["multiCursorPaste"]=69]="multiCursorPaste",e[e["occurrencesHighlight"]=70]="occurrencesHighlight",e[e["overviewRulerBorder"]=71]="overviewRulerBorder",e[e["overviewRulerLanes"]=72]="overviewRulerLanes",e[e["padding"]=73]="padding",e[e["parameterHints"]=74]="parameterHints",e[e["peekWidgetDefaultFocus"]=75]="peekWidgetDefaultFocus",e[e["definitionLinkOpensInPeek"]=76]="definitionLinkOpensInPeek",e[e["quickSuggestions"]=77]="quickSuggestions",e[e["quickSuggestionsDelay"]=78]="quickSuggestionsDelay",e[e["readOnly"]=79]="readOnly",e[e["renameOnType"]=80]="renameOnType",e[e["renderControlCharacters"]=81]="renderControlCharacters",e[e["renderIndentGuides"]=82]="renderIndentGuides",e[e["renderFinalNewline"]=83]="renderFinalNewline",e[e["renderLineHighlight"]=84]="renderLineHighlight",e[e["renderLineHighlightOnlyWhenFocus"]=85]="renderLineHighlightOnlyWhenFocus",e[e["renderValidationDecorations"]=86]="renderValidationDecorations",e[e["renderWhitespace"]=87]="renderWhitespace",e[e["revealHorizontalRightPadding"]=88]="revealHorizontalRightPadding",e[e["roundedSelection"]=89]="roundedSelection",e[e["rulers"]=90]="rulers",e[e["scrollbar"]=91]="scrollbar",e[e["scrollBeyondLastColumn"]=92]="scrollBeyondLastColumn",e[e["scrollBeyondLastLine"]=93]="scrollBeyondLastLine",e[e["scrollPredominantAxis"]=94]="scrollPredominantAxis",e[e["selectionClipboard"]=95]="selectionClipboard",e[e["selectionHighlight"]=96]="selectionHighlight",e[e["selectOnLineNumbers"]=97]="selectOnLineNumbers",e[e["showFoldingControls"]=98]="showFoldingControls",e[e["showUnused"]=99]="showUnused",e[e["snippetSuggestions"]=100]="snippetSuggestions",e[e["smartSelect"]=101]="smartSelect",e[e["smoothScrolling"]=102]="smoothScrolling",e[e["stickyTabStops"]=103]="stickyTabStops",e[e["stopRenderingLineAfter"]=104]="stopRenderingLineAfter",e[e["suggest"]=105]="suggest",e[e["suggestFontSize"]=106]="suggestFontSize",e[e["suggestLineHeight"]=107]="suggestLineHeight",e[e["suggestOnTriggerCharacters"]=108]="suggestOnTriggerCharacters",e[e["suggestSelection"]=109]="suggestSelection",e[e["tabCompletion"]=110]="tabCompletion",e[e["tabIndex"]=111]="tabIndex",e[e["unusualLineTerminators"]=112]="unusualLineTerminators",e[e["useShadowDOM"]=113]="useShadowDOM",e[e["useTabStops"]=114]="useTabStops",e[e["wordSeparators"]=115]="wordSeparators",e[e["wordWrap"]=116]="wordWrap",e[e["wordWrapBreakAfterCharacters"]=117]="wordWrapBreakAfterCharacters",e[e["wordWrapBreakBeforeCharacters"]=118]="wordWrapBreakBeforeCharacters",e[e["wordWrapColumn"]=119]="wordWrapColumn",e[e["wordWrapOverride1"]=120]="wordWrapOverride1",e[e["wordWrapOverride2"]=121]="wordWrapOverride2",e[e["wrappingIndent"]=122]="wrappingIndent",e[e["wrappingStrategy"]=123]="wrappingStrategy",e[e["showDeprecated"]=124]="showDeprecated",e[e["inlayHints"]=125]="inlayHints",e[e["editorClassName"]=126]="editorClassName",e[e["pixelRatio"]=127]="pixelRatio",e[e["tabFocusMode"]=128]="tabFocusMode",e[e["layoutInfo"]=129]="layoutInfo",e[e["wrappingInfo"]=130]="wrappingInfo"}(f||(f={})),function(e){e[e["TextDefined"]=0]="TextDefined",e[e["LF"]=1]="LF",e[e["CRLF"]=2]="CRLF"}(p||(p={})),function(e){e[e["LF"]=0]="LF",e[e["CRLF"]=1]="CRLF"}(g||(g={})),function(e){e[e["None"]=0]="None",e[e["Indent"]=1]="Indent",e[e["IndentOutdent"]=2]="IndentOutdent",e[e["Outdent"]=3]="Outdent"}(m||(m={})),function(e){e[e["Other"]=0]="Other",e[e["Type"]=1]="Type",e[e["Parameter"]=2]="Parameter"}(v||(v={})),function(e){e[e["Automatic"]=0]="Automatic",e[e["Explicit"]=1]="Explicit"}(b||(b={})),function(e){e[e["DependsOnKbLayout"]=-1]="DependsOnKbLayout",e[e["Unknown"]=0]="Unknown",e[e["Backspace"]=1]="Backspace",e[e["Tab"]=2]="Tab",e[e["Enter"]=3]="Enter",e[e["Shift"]=4]="Shift",e[e["Ctrl"]=5]="Ctrl",e[e["Alt"]=6]="Alt",e[e["PauseBreak"]=7]="PauseBreak",e[e["CapsLock"]=8]="CapsLock",e[e["Escape"]=9]="Escape",e[e["Space"]=10]="Space",e[e["PageUp"]=11]="PageUp",e[e["PageDown"]=12]="PageDown",e[e["End"]=13]="End",e[e["Home"]=14]="Home",e[e["LeftArrow"]=15]="LeftArrow",e[e["UpArrow"]=16]="UpArrow",e[e["RightArrow"]=17]="RightArrow",e[e["DownArrow"]=18]="DownArrow",e[e["Insert"]=19]="Insert",e[e["Delete"]=20]="Delete",e[e["KEY_0"]=21]="KEY_0",e[e["KEY_1"]=22]="KEY_1",e[e["KEY_2"]=23]="KEY_2",e[e["KEY_3"]=24]="KEY_3",e[e["KEY_4"]=25]="KEY_4",e[e["KEY_5"]=26]="KEY_5",e[e["KEY_6"]=27]="KEY_6",e[e["KEY_7"]=28]="KEY_7",e[e["KEY_8"]=29]="KEY_8",e[e["KEY_9"]=30]="KEY_9",e[e["KEY_A"]=31]="KEY_A",e[e["KEY_B"]=32]="KEY_B",e[e["KEY_C"]=33]="KEY_C",e[e["KEY_D"]=34]="KEY_D",e[e["KEY_E"]=35]="KEY_E",e[e["KEY_F"]=36]="KEY_F",e[e["KEY_G"]=37]="KEY_G",e[e["KEY_H"]=38]="KEY_H",e[e["KEY_I"]=39]="KEY_I",e[e["KEY_J"]=40]="KEY_J",e[e["KEY_K"]=41]="KEY_K",e[e["KEY_L"]=42]="KEY_L",e[e["KEY_M"]=43]="KEY_M",e[e["KEY_N"]=44]="KEY_N",e[e["KEY_O"]=45]="KEY_O",e[e["KEY_P"]=46]="KEY_P",e[e["KEY_Q"]=47]="KEY_Q",e[e["KEY_R"]=48]="KEY_R",e[e["KEY_S"]=49]="KEY_S",e[e["KEY_T"]=50]="KEY_T",e[e["KEY_U"]=51]="KEY_U",e[e["KEY_V"]=52]="KEY_V",e[e["KEY_W"]=53]="KEY_W",e[e["KEY_X"]=54]="KEY_X",e[e["KEY_Y"]=55]="KEY_Y",e[e["KEY_Z"]=56]="KEY_Z",e[e["Meta"]=57]="Meta",e[e["ContextMenu"]=58]="ContextMenu",e[e["F1"]=59]="F1",e[e["F2"]=60]="F2",e[e["F3"]=61]="F3",e[e["F4"]=62]="F4",e[e["F5"]=63]="F5",e[e["F6"]=64]="F6",e[e["F7"]=65]="F7",e[e["F8"]=66]="F8",e[e["F9"]=67]="F9",e[e["F10"]=68]="F10",e[e["F11"]=69]="F11",e[e["F12"]=70]="F12",e[e["F13"]=71]="F13",e[e["F14"]=72]="F14",e[e["F15"]=73]="F15",e[e["F16"]=74]="F16",e[e["F17"]=75]="F17",e[e["F18"]=76]="F18",e[e["F19"]=77]="F19",e[e["NumLock"]=78]="NumLock",e[e["ScrollLock"]=79]="ScrollLock",e[e["US_SEMICOLON"]=80]="US_SEMICOLON",e[e["US_EQUAL"]=81]="US_EQUAL",e[e["US_COMMA"]=82]="US_COMMA",e[e["US_MINUS"]=83]="US_MINUS",e[e["US_DOT"]=84]="US_DOT",e[e["US_SLASH"]=85]="US_SLASH",e[e["US_BACKTICK"]=86]="US_BACKTICK",e[e["US_OPEN_SQUARE_BRACKET"]=87]="US_OPEN_SQUARE_BRACKET",e[e["US_BACKSLASH"]=88]="US_BACKSLASH",e[e["US_CLOSE_SQUARE_BRACKET"]=89]="US_CLOSE_SQUARE_BRACKET",e[e["US_QUOTE"]=90]="US_QUOTE",e[e["OEM_8"]=91]="OEM_8",e[e["OEM_102"]=92]="OEM_102",e[e["NUMPAD_0"]=93]="NUMPAD_0",e[e["NUMPAD_1"]=94]="NUMPAD_1",e[e["NUMPAD_2"]=95]="NUMPAD_2",e[e["NUMPAD_3"]=96]="NUMPAD_3",e[e["NUMPAD_4"]=97]="NUMPAD_4",e[e["NUMPAD_5"]=98]="NUMPAD_5",e[e["NUMPAD_6"]=99]="NUMPAD_6",e[e["NUMPAD_7"]=100]="NUMPAD_7",e[e["NUMPAD_8"]=101]="NUMPAD_8",e[e["NUMPAD_9"]=102]="NUMPAD_9",e[e["NUMPAD_MULTIPLY"]=103]="NUMPAD_MULTIPLY",e[e["NUMPAD_ADD"]=104]="NUMPAD_ADD",e[e["NUMPAD_SEPARATOR"]=105]="NUMPAD_SEPARATOR",e[e["NUMPAD_SUBTRACT"]=106]="NUMPAD_SUBTRACT",e[e["NUMPAD_DECIMAL"]=107]="NUMPAD_DECIMAL",e[e["NUMPAD_DIVIDE"]=108]="NUMPAD_DIVIDE",e[e["KEY_IN_COMPOSITION"]=109]="KEY_IN_COMPOSITION",e[e["ABNT_C1"]=110]="ABNT_C1",e[e["ABNT_C2"]=111]="ABNT_C2",e[e["MAX_VALUE"]=112]="MAX_VALUE"}(y||(y={})),function(e){e[e["Hint"]=1]="Hint",e[e["Info"]=2]="Info",e[e["Warning"]=4]="Warning",e[e["Error"]=8]="Error"}(_||(_={})),function(e){e[e["Unnecessary"]=1]="Unnecessary",e[e["Deprecated"]=2]="Deprecated"}(w||(w={})),function(e){e[e["Inline"]=1]="Inline",e[e["Gutter"]=2]="Gutter"}(C||(C={})),function(e){e[e["UNKNOWN"]=0]="UNKNOWN",e[e["TEXTAREA"]=1]="TEXTAREA",e[e["GUTTER_GLYPH_MARGIN"]=2]="GUTTER_GLYPH_MARGIN",e[e["GUTTER_LINE_NUMBERS"]=3]="GUTTER_LINE_NUMBERS",e[e["GUTTER_LINE_DECORATIONS"]=4]="GUTTER_LINE_DECORATIONS",e[e["GUTTER_VIEW_ZONE"]=5]="GUTTER_VIEW_ZONE",e[e["CONTENT_TEXT"]=6]="CONTENT_TEXT",e[e["CONTENT_EMPTY"]=7]="CONTENT_EMPTY",e[e["CONTENT_VIEW_ZONE"]=8]="CONTENT_VIEW_ZONE",e[e["CONTENT_WIDGET"]=9]="CONTENT_WIDGET",e[e["OVERVIEW_RULER"]=10]="OVERVIEW_RULER",e[e["SCROLLBAR"]=11]="SCROLLBAR",e[e["OVERLAY_WIDGET"]=12]="OVERLAY_WIDGET",e[e["OUTSIDE_EDITOR"]=13]="OUTSIDE_EDITOR"}(S||(S={})),function(e){e[e["TOP_RIGHT_CORNER"]=0]="TOP_RIGHT_CORNER",e[e["BOTTOM_RIGHT_CORNER"]=1]="BOTTOM_RIGHT_CORNER",e[e["TOP_CENTER"]=2]="TOP_CENTER"}(x||(x={})),function(e){e[e["Left"]=1]="Left",e[e["Center"]=2]="Center",e[e["Right"]=4]="Right",e[e["Full"]=7]="Full"}(O||(O={})),function(e){e[e["Off"]=0]="Off",e[e["On"]=1]="On",e[e["Relative"]=2]="Relative",e[e["Interval"]=3]="Interval",e[e["Custom"]=4]="Custom"}(k||(k={})),function(e){e[e["None"]=0]="None",e[e["Text"]=1]="Text",e[e["Blocks"]=2]="Blocks"}(L||(L={})),function(e){e[e["Smooth"]=0]="Smooth",e[e["Immediate"]=1]="Immediate"}(E||(E={})),function(e){e[e["Auto"]=1]="Auto",e[e["Hidden"]=2]="Hidden",e[e["Visible"]=3]="Visible"}(D||(D={})),function(e){e[e["LTR"]=0]="LTR",e[e["RTL"]=1]="RTL"}(I||(I={})),function(e){e[e["Invoke"]=1]="Invoke",e[e["TriggerCharacter"]=2]="TriggerCharacter",e[e["ContentChange"]=3]="ContentChange"}(M||(M={})),function(e){e[e["File"]=0]="File",e[e["Module"]=1]="Module",e[e["Namespace"]=2]="Namespace",e[e["Package"]=3]="Package",e[e["Class"]=4]="Class",e[e["Method"]=5]="Method",e[e["Property"]=6]="Property",e[e["Field"]=7]="Field",e[e["Constructor"]=8]="Constructor",e[e["Enum"]=9]="Enum",e[e["Interface"]=10]="Interface",e[e["Function"]=11]="Function",e[e["Variable"]=12]="Variable",e[e["Constant"]=13]="Constant",e[e["String"]=14]="String",e[e["Number"]=15]="Number",e[e["Boolean"]=16]="Boolean",e[e["Array"]=17]="Array",e[e["Object"]=18]="Object",e[e["Key"]=19]="Key",e[e["Null"]=20]="Null",e[e["EnumMember"]=21]="EnumMember",e[e["Struct"]=22]="Struct",e[e["Event"]=23]="Event",e[e["Operator"]=24]="Operator",e[e["TypeParameter"]=25]="TypeParameter"}(T||(T={})),function(e){e[e["Deprecated"]=1]="Deprecated"}(A||(A={})),function(e){e[e["Hidden"]=0]="Hidden",e[e["Blink"]=1]="Blink",e[e["Smooth"]=2]="Smooth",e[e["Phase"]=3]="Phase",e[e["Expand"]=4]="Expand",e[e["Solid"]=5]="Solid"}(N||(N={})),function(e){e[e["Line"]=1]="Line",e[e["Block"]=2]="Block",e[e["Underline"]=3]="Underline",e[e["LineThin"]=4]="LineThin",e[e["BlockOutline"]=5]="BlockOutline",e[e["UnderlineThin"]=6]="UnderlineThin"}(P||(P={})),function(e){e[e["AlwaysGrowsWhenTypingAtEdges"]=0]="AlwaysGrowsWhenTypingAtEdges",e[e["NeverGrowsWhenTypingAtEdges"]=1]="NeverGrowsWhenTypingAtEdges",e[e["GrowsOnlyWhenTypingBefore"]=2]="GrowsOnlyWhenTypingBefore",e[e["GrowsOnlyWhenTypingAfter"]=3]="GrowsOnlyWhenTypingAfter"}(j||(j={})),function(e){e[e["None"]=0]="None",e[e["Same"]=1]="Same",e[e["Indent"]=2]="Indent",e[e["DeepIndent"]=3]="DeepIndent"}(R||(R={}));class K{static chord(e,t){return Object(V["a"])(e,t)}}function G(){return{editor:void 0,languages:void 0,CancellationTokenSource:B["b"],Emitter:W["b"],KeyCode:y,KeyMod:K,Position:H["a"],Range:U["a"],Selection:q["a"],SelectionDirection:I,MarkerSeverity:_,MarkerTag:w,Uri:z["a"],Token:$["a"]}}K.CtrlCmd=2048,K.Shift=1024,K.Alt=512,K.WinCtrl=256;n("b223");var Y,Z=n("5717"),X=n("11f7"),Q=n("db88"),J=n("4035"),ee=n("438a"),te=n("b589"),ne=n("82c9"),ie=n("9e74");(function(e){e[e["API"]=0]="API",e[e["USER"]=1]="USER"})(Y||(Y={}));var re=n("5bd7"),oe=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},se=function(e,t){return function(n,i){t(n,i,e)}},ae=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};let le=class{constructor(e){this._commandService=e}open(e,t){return ae(this,void 0,void 0,(function*(){if(!Object(re["c"])(e,te["c"].command))return!1;if(!(null===t||void 0===t?void 0:t.allowCommands))return!0;"string"===typeof e&&(e=z["a"].parse(e));let n=[];try{n=Object(ee["a"])(decodeURIComponent(e.query))}catch(i){try{n=Object(ee["a"])(e.query)}catch(r){}}return Array.isArray(n)||(n=[n]),yield this._commandService.executeCommand(e.path,...n),!0}))}};le=oe([se(0,ie["b"])],le);let ce=class{constructor(e){this._editorService=e}open(e,t){return ae(this,void 0,void 0,(function*(){"string"===typeof e&&(e=z["a"].parse(e));let n=void 0;const i=/^L?(\d+)(?:,(\d+))?/.exec(e.fragment);return i&&(n={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1},e=e.with({fragment:""})),e.scheme===te["c"].file&&(e=Object(ne["h"])(e)),yield this._editorService.openCodeEditor({resource:e,options:Object.assign({selection:n,context:(null===t||void 0===t?void 0:t.fromUserGesture)?Y.USER:Y.API},null===t||void 0===t?void 0:t.editorOptions)},this._editorService.getFocusedCodeEditor(),null===t||void 0===t?void 0:t.openToSide),!0}))}};ce=oe([se(0,Z["a"])],ce);let ue=class{constructor(e,t){this._openers=new Q["a"],this._validators=new Q["a"],this._resolvers=new Q["a"],this._resolvedUriTargets=new J["b"](e=>e.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new Q["a"],this._defaultExternalOpener={openExternal:e=>ae(this,void 0,void 0,(function*(){return Object(re["c"])(e,te["c"].http)||Object(re["c"])(e,te["c"].https)?X["Z"](e):window.location.href=e,!0}))},this._openers.push({open:(e,t)=>ae(this,void 0,void 0,(function*(){return!!((null===t||void 0===t?void 0:t.openExternal)||Object(re["c"])(e,te["c"].mailto)||Object(re["c"])(e,te["c"].http)||Object(re["c"])(e,te["c"].https))&&(yield this._doOpenExternal(e,t),!0)}))}),this._openers.push(new le(t)),this._openers.push(new ce(e))}registerOpener(e){const t=this._openers.unshift(e);return{dispose:t}}registerValidator(e){const t=this._validators.push(e);return{dispose:t}}registerExternalUriResolver(e){const t=this._resolvers.push(e);return{dispose:t}}setDefaultExternalOpener(e){this._defaultExternalOpener=e}registerExternalOpener(e){const t=this._externalOpeners.push(e);return{dispose:t}}open(e,t){var n;return ae(this,void 0,void 0,(function*(){const i="string"===typeof e?z["a"].parse(e):e,r=null!==(n=this._resolvedUriTargets.get(i))&&void 0!==n?n:e;for(const e of this._validators)if(!(yield e.shouldOpen(r)))return!1;for(const n of this._openers){const i=yield n.open(e,t);if(i)return!0}return!1}))}resolveExternalUri(e,t){return ae(this,void 0,void 0,(function*(){for(const i of this._resolvers)try{const n=yield i.resolveExternalUri(e,t);if(n)return this._resolvedUriTargets.has(n.resolved)||this._resolvedUriTargets.set(n.resolved,e),n}catch(n){}throw new Error("Could not resolve external URI: "+e.toString())}))}_doOpenExternal(e,t){return ae(this,void 0,void 0,(function*(){const n="string"===typeof e?z["a"].parse(e):e;let i,r;try{i=(yield this.resolveExternalUri(n,t)).resolved}catch(o){i=n}if(r="string"===typeof e&&n.toString()===i.toString()?e:encodeURI(i.toString(!0)),null===t||void 0===t?void 0:t.allowContributedOpeners){const e="string"===typeof(null===t||void 0===t?void 0:t.allowContributedOpeners)?null===t||void 0===t?void 0:t.allowContributedOpeners:void 0;for(const t of this._externalOpeners){const i=yield t.openExternal(r,{sourceUri:n,preferredOpenerId:e},B["a"].None);if(i)return!0}}return this._defaultExternalOpener.openExternal(r,{sourceUri:n},B["a"].None)}))}dispose(){this._validators.clear()}};ue=oe([se(0,Z["a"]),se(1,ie["b"])],ue);var he=n("d0b6"),de=n("fb71"),fe=n("8ae8"),pe=n("3352"),ge=n("b707"),me=n("8bf1"),ve=n("a40b"),be=n("5818"),ye=n("b78f"),_e=n("5fe7"),we=n("a666"),Ce=n("fdcc"),Se=n("30db"),xe=n("ef8e");const Oe="$initialize";let ke=!1;function Le(e){Se["i"]&&(ke||(ke=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message))}class Ee{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}setWorkerId(e){this._workerId=e}sendMessage(e,t){let n=String(++this._lastSentReq);return new Promise((i,r)=>{this._pendingReplies[n]={resolve:i,reject:r},this._send({vsWorker:this._workerId,req:n,method:e,args:t})})}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){if(e.seq){let t=e;if(!this._pendingReplies[t.seq])return void console.warn("Got reply to unknown seq");let n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let e=t.err;return t.err.$isError&&(e=new Error,e.name=t.err.name,e.message=t.err.message,e.stack=t.err.stack),void n.reject(e)}return void n.resolve(t.res)}let t=e,n=t.req,i=this._handler.handleMessage(t.method,t.args);i.then(e=>{this._send({vsWorker:this._workerId,seq:n,res:e,err:void 0})},e=>{e.detail instanceof Error&&(e.detail=Object(Ce["g"])(e.detail)),this._send({vsWorker:this._workerId,seq:n,res:void 0,err:Object(Ce["g"])(e)})})}_send(e){let t=[];if(e.req){const n=e;for(let e=0;e<n.args.length;e++)n.args[e]instanceof ArrayBuffer&&t.push(n.args[e])}else{const n=e;n.res instanceof ArrayBuffer&&t.push(n.res)}this._handler.sendMessage(e,t)}}class De extends we["a"]{constructor(e,t,n){super();let i=null;this._worker=this._register(e.create("vs/base/common/worker/simpleWorker",e=>{this._protocol.handleMessage(e)},e=>{i&&i(e)})),this._protocol=new Ee({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(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(i){return Promise.reject(i)}}}),this._protocol.setWorkerId(this._worker.getId());let r=null;"undefined"!==typeof self.require&&"function"===typeof self.require.getConfig?r=self.require.getConfig():"undefined"!==typeof self.requirejs&&(r=self.requirejs.s.contexts._.config);const o=xe["e"](n);this._onModuleLoaded=this._protocol.sendMessage(Oe,[this._worker.getId(),JSON.parse(JSON.stringify(r)),t,o]);const s=(e,t)=>this._request(e,t);this._lazyProxy=new Promise((e,n)=>{i=n,this._onModuleLoaded.then(t=>{e(xe["d"](t,s))},e=>{n(e),this._onError("Worker failed to load "+t,e)})})}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise((n,i)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,t).then(n,i)},i)})}_onError(e,t){console.error(e),console.info(t)}}var Ie;const Me=null===(Ie=window.trustedTypes)||void 0===Ie?void 0:Ie.createPolicy("defaultWorkerFactory",{createScriptURL:e=>e});function Te(e,t){if(Se["b"].MonacoEnvironment){if("function"===typeof Se["b"].MonacoEnvironment.getWorker)return Se["b"].MonacoEnvironment.getWorker(e,t);if("function"===typeof Se["b"].MonacoEnvironment.getWorkerUrl){const n=Se["b"].MonacoEnvironment.getWorkerUrl(e,t);return new Worker(Me?Me.createScriptURL(n):n,{name:t})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function Ae(e){return"function"===typeof e.then}class Ne{constructor(e,t,n,i,r){this.id=t;const o=Te("workerMain.js",n);Ae(o)?this.worker=o:this.worker=Promise.resolve(o),this.postMessage(e,[]),this.worker.then(e=>{e.onmessage=function(e){i(e.data)},e.onmessageerror=r,"function"===typeof e.addEventListener&&e.addEventListener("error",r)})}getId(){return this.id}postMessage(e,t){this.worker&&this.worker.then(n=>n.postMessage(e,t))}dispose(){this.worker&&this.worker.then(e=>e.terminate()),this.worker=null}}class Pe{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,t,n){let i=++Pe.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new Ne(e,i,this._label||"anonymous"+i,t,e=>{Le(e),this._webWorkerFailedBeforeError=e,n(e)})}}Pe.LAST_WORKER_ID=0;var je=n("70cb"),Re=n("1b0e"),Fe=n("3742");const Be=3;function We(e,t,n,i){const r=new Re["a"](e,t,n);return r.ComputeDiff(i)}class Ve{constructor(e){const t=[],n=[];for(let i=0,r=e.length;i<r;i++)t[i]=Ke(e[i],1),n[i]=Ge(e[i],1);this.lines=e,this._startColumns=t,this._endColumns=n}getElements(){const e=[];for(let 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}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,n){const i=[],r=[],o=[];let s=0;for(let a=t;a<=n;a++){const t=this.lines[a],n=e?this._startColumns[a]:1,l=e?this._endColumns[a]:t.length+1;for(let e=n;e<l;e++)i[s]=t.charCodeAt(e-1),r[s]=a+1,o[s]=e,s++}return new ze(i,r,o)}}class ze{constructor(e,t,n){this._charCodes=e,this._lineNumbers=t,this._columns=n}getElements(){return this._charCodes}getStartLineNumber(e){return this._lineNumbers[e]}getStartColumn(e){return this._columns[e]}getEndLineNumber(e){return this._lineNumbers[e]}getEndColumn(e){return this._columns[e]+1}}class He{constructor(e,t,n,i,r,o,s,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=r,this.modifiedStartColumn=o,this.modifiedEndLineNumber=s,this.modifiedEndColumn=a}static createFromDiffChange(e,t,n){let i,r,o,s,a,l,c,u;return 0===e.originalLength?(i=0,r=0,o=0,s=0):(i=t.getStartLineNumber(e.originalStart),r=t.getStartColumn(e.originalStart),o=t.getEndLineNumber(e.originalStart+e.originalLength-1),s=t.getEndColumn(e.originalStart+e.originalLength-1)),0===e.modifiedLength?(a=0,l=0,c=0,u=0):(a=n.getStartLineNumber(e.modifiedStart),l=n.getStartColumn(e.modifiedStart),c=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),u=n.getEndColumn(e.modifiedStart+e.modifiedLength-1)),new He(i,r,o,s,a,l,c,u)}}function Ue(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let i=1,r=e.length;i<r;i++){const r=e[i],o=r.originalStart-(n.originalStart+n.originalLength),s=r.modifiedStart-(n.modifiedStart+n.modifiedLength),a=Math.min(o,s);a<Be?(n.originalLength=r.originalStart+r.originalLength-n.originalStart,n.modifiedLength=r.modifiedStart+r.modifiedLength-n.modifiedStart):(t.push(r),n=r)}return t}class qe{constructor(e,t,n,i,r){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=r}static createFromDiffResult(e,t,n,i,r,o,s){let a,l,c,u,h=void 0;if(0===t.originalLength?(a=n.getStartLineNumber(t.originalStart)-1,l=0):(a=n.getStartLineNumber(t.originalStart),l=n.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(c=i.getStartLineNumber(t.modifiedStart)-1,u=0):(c=i.getStartLineNumber(t.modifiedStart),u=i.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),o&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&r()){const o=n.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),a=i.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);let l=We(o,a,r,!0).changes;s&&(l=Ue(l)),h=[];for(let e=0,t=l.length;e<t;e++)h.push(He.createFromDiffChange(l[e],o,a))}return new qe(a,l,c,u,h)}}class $e{constructor(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 Ve(e),this.modified=new Ve(t),this.continueLineDiff=Ye(n.maxComputationTime),this.continueCharDiff=Ye(0===n.maxComputationTime?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{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}]}]};const e=We(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,n=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){const e=[];for(let n=0,i=t.length;n<i;n++)e.push(qe.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[n],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:e}}const i=[];let r=0,o=0;for(let s=-1,a=t.length;s<a;s++){const e=s+1<a?t[s+1]:null,n=e?e.originalStart:this.originalLines.length,l=e?e.modifiedStart:this.modifiedLines.length;while(r<n&&o<l){const e=this.originalLines[r],t=this.modifiedLines[o];if(e!==t){{let n=Ke(e,1),s=Ke(t,1);while(n>1&&s>1){const i=e.charCodeAt(n-2),r=t.charCodeAt(s-2);if(i!==r)break;n--,s--}(n>1||s>1)&&this._pushTrimWhitespaceCharChange(i,r+1,1,n,o+1,1,s)}{let n=Ge(e,1),s=Ge(t,1);const a=e.length+1,l=t.length+1;while(n<a&&s<l){const t=e.charCodeAt(n-1),i=e.charCodeAt(s-1);if(t!==i)break;n++,s++}(n<a||s<l)&&this._pushTrimWhitespaceCharChange(i,r+1,n,a,o+1,s,l)}}r++,o++}e&&(i.push(qe.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),r+=e.originalLength,o+=e.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(e,t,n,i,r,o,s){if(this._mergeTrimWhitespaceCharChange(e,t,n,i,r,o,s))return;let a=void 0;this.shouldComputeCharChanges&&(a=[new He(t,n,t,i,r,o,r,s)]),e.push(new qe(t,t,r,r,a))}_mergeTrimWhitespaceCharChange(e,t,n,i,r,o,s){const a=e.length;if(0===a)return!1;const l=e[a-1];return 0!==l.originalEndLineNumber&&0!==l.modifiedEndLineNumber&&(l.originalEndLineNumber+1===t&&l.modifiedEndLineNumber+1===r&&(l.originalEndLineNumber=t,l.modifiedEndLineNumber=r,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new He(t,n,t,i,r,o,r,s)),!0))}}function Ke(e,t){const n=Fe["v"](e);return-1===n?t:n+1}function Ge(e,t){const n=Fe["J"](e);return-1===n?t:n+2}function Ye(e){if(0===e)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}var Ze=n("2de5");class Xe{constructor(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const t=e.changes;for(const n of t)this._acceptDeleteRange(n.range),this._acceptInsertText(new H["a"](n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,t=this._lines.length,n=new Uint32Array(t);for(let i=0;i<t;i++)n[i]=this._lines[i].length+e;this._lineStarts=new Ze["a"](n)}}_setLineText(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)}_acceptDeleteRange(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))}}_acceptInsertText(e,t){if(0===t.length)return;let n=Object(Fe["R"])(t);if(1===n.length)return void 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));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]);let i=new Uint32Array(n.length-1);for(let r=1;r<n.length;r++)this._lines.splice(e.lineNumber+r-1,0,n[r]),i[r-1]=n[r].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,i)}}var Qe=n("d093"),Je=n("3170");class et{constructor(e,t,n){const i=new Uint8Array(e*t);for(let r=0,o=e*t;r<o;r++)i[r]=n;this._data=i,this.rows=e,this.cols=t}get(e,t){return this._data[e*this.cols+t]}set(e,t,n){this._data[e*this.cols+t]=n}}class tt{constructor(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++){let[i,o,s]=e[r];o>t&&(t=o),i>n&&(n=i),s>n&&(n=s)}t++,n++;let i=new et(n,t,0);for(let r=0,o=e.length;r<o;r++){let[t,n,o]=e[r];i.set(t,n,o)}this._states=i,this._maxCharCode=t}nextState(e,t){return t<0||t>=this._maxCharCode?0:this._states.get(e,t)}}let nt=null;function it(){return null===nt&&(nt=new tt([[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]])),nt}let rt=null;function ot(){if(null===rt){rt=new Je["a"](0);const e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let n=0;n<e.length;n++)rt.set(e.charCodeAt(n),1);const t=".,;";for(let n=0;n<t.length;n++)rt.set(t.charCodeAt(n),2)}return rt}class st{static _createLink(e,t,n,i,r){let o=r-1;do{const n=t.charCodeAt(o),i=e.get(n);if(2!==i)break;o--}while(o>i);if(i>0){const e=t.charCodeAt(i-1),n=t.charCodeAt(o);(40===e&&41===n||91===e&&93===n||123===e&&125===n)&&o--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:o+2},url:t.substring(i,o+1)}}static computeLinks(e,t=it()){const n=ot();let i=[];for(let r=1,o=e.getLineCount();r<=o;r++){const o=e.getLineContent(r),s=o.length;let a=0,l=0,c=0,u=1,h=!1,d=!1,f=!1,p=!1;while(a<s){let e=!1;const s=o.charCodeAt(a);if(13===u){let t;switch(s){case 40:h=!0,t=0;break;case 41:t=h?0:1;break;case 91:f=!0,d=!0,t=0;break;case 93:f=!1,t=d?0:1;break;case 123:p=!0,t=0;break;case 125:t=p?0:1;break;case 39:t=34===c||96===c?0:1;break;case 34:t=39===c||96===c?0:1;break;case 96:t=39===c||34===c?0:1;break;case 42:t=42===c?1:0;break;case 124:t=124===c?1:0;break;case 32:t=f?0:1;break;default:t=n.get(s)}1===t&&(i.push(st._createLink(n,o,r,l,a)),e=!0)}else if(12===u){let t;91===s?(d=!0,t=0):t=n.get(s),1===t?e=!0:u=13}else u=t.nextState(u,s),0===u&&(e=!0);e&&(u=1,h=!1,d=!1,p=!1,l=a+1,c=s),a++}13===u&&i.push(st._createLink(n,o,r,l,s))}return i}}function at(e){return e&&"function"===typeof e.getLineCount&&"function"===typeof e.getLineContent?st.computeLinks(e):[]}class lt{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(e,t,n,i,r){if(e&&t){let n=this.doNavigateValueSet(t,r);if(n)return{range:e,value:n}}if(n&&i){let e=this.doNavigateValueSet(i,r);if(e)return{range:n,value:e}}return null}doNavigateValueSet(e,t){let n=this.numberReplace(e,t);return null!==n?n:this.textReplace(e,t)}numberReplace(e,t){let n=Math.pow(10,e.length-(e.lastIndexOf(".")+1)),i=Number(e),r=parseFloat(e);return isNaN(i)||isNaN(r)||i!==r?null:0!==i||t?(i=Math.floor(i*n),i+=t?n:-n,String(i/n)):null}textReplace(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)}valueSetsReplace(e,t,n){let i=null;for(let r=0,o=e.length;null===i&&r<o;r++)i=this.valueSetReplace(e[r],t,n);return i}valueSetReplace(e,t,n){let i=e.indexOf(t);return i>=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null}}lt.INSTANCE=new lt;var ct=n("e58e"),ut=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class ht extends Xe{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,t){let n=Object(Qe["d"])(e.column,Object(Qe["c"])(t),this._lines[e.lineNumber-1],0);return n?new U["a"](e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const t=this._lines,n=this._wordenize.bind(this);let i=0,r="",o=0,s=[];return{*[Symbol.iterator](){while(1)if(o<s.length){const e=r.substring(s[o].start,s[o].end);o+=1,yield e}else{if(!(i<t.length))break;r=t[i],s=n(r,e),o=0,i+=1}}}}getLineWords(e,t){let n=this._lines[e-1],i=this._wordenize(n,t),r=[];for(const o of i)r.push({word:n.substring(o.start,o.end),startColumn:o.start+1,endColumn:o.end+1});return r}_wordenize(e,t){const n=[];let i;t.lastIndex=0;while(i=t.exec(e)){if(0===i[0].length)break;n.push({start:i.index,end:i.index+i[0].length})}return n}getValueInRange(e){if(e=this._validateRange(e),e.startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);let t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,r=[];r.push(this._lines[n].substring(e.startColumn-1));for(let o=n+1;o<i;o++)r.push(this._lines[o]);return r.push(this._lines[i].substring(0,e.endColumn-1)),r.join(t)}offsetAt(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getPrefixSum(e.lineNumber-2)+(e.column-1)}positionAt(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();let t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return{lineNumber:1+t.index,column:1+Math.min(t.remainder,n)}}_validateRange(e){const 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}_validatePosition(e){if(!H["a"].isIPosition(e))throw new Error("bad position");let{lineNumber:t,column:n}=e,i=!1;if(t<1)t=1,n=1,i=!0;else if(t>this._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{let e=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>e&&(n=e,i=!0)}return i?{lineNumber:t,column:n}:e}}class dt{constructor(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach(t=>e.push(this._models[t])),e}acceptNewModel(e){this._models[e.url]=new ht(z["a"].parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,t){if(!this._models[e])return;let n=this._models[e];n.onEvents(t)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeDiff(e,t,n,i){return ut(this,void 0,void 0,(function*(){const r=this._getModel(e),o=this._getModel(t);if(!r||!o)return null;const s=r.getLinesContent(),a=o.getLinesContent(),l=new $e(s,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0,maxComputationTime:i}),c=l.computeDiff(),u=!(c.changes.length>0)&&this._modelsAreIdentical(r,o);return{quitEarly:c.quitEarly,identical:u,changes:c.changes}}))}_modelsAreIdentical(e,t){const n=e.getLineCount(),i=t.getLineCount();if(n!==i)return!1;for(let r=1;r<=n;r++){const n=e.getLineContent(r),i=t.getLineContent(r);if(n!==i)return!1}return!0}computeMoreMinimalEdits(e,t){return ut(this,void 0,void 0,(function*(){const n=this._getModel(e);if(!n)return t;const i=[];let r=void 0;t=t.slice(0).sort((e,t)=>{if(e.range&&t.range)return U["a"].compareRangesUsingStarts(e.range,t.range);let n=e.range?0:1,i=t.range?0:1;return n-i});for(let{range:e,text:o,eol:s}of t){if("number"===typeof s&&(r=s),U["a"].isEmpty(e)&&!o)continue;const t=n.getValueInRange(e);if(o=o.replace(/\r\n|\n|\r/g,n.eol),t===o)continue;if(Math.max(o.length,t.length)>dt._diffLimit){i.push({range:e,text:o});continue}const a=Object(Re["b"])(t,o,!1),l=n.offsetAt(U["a"].lift(e).getStartPosition());for(const e of a){const t=n.positionAt(l+e.originalStart),r=n.positionAt(l+e.originalStart+e.originalLength),s={text:o.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:r.lineNumber,endColumn:r.column}};n.getValueInRange(s.range)!==s.text&&i.push(s)}}return"number"===typeof r&&i.push({eol:r,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),i}))}computeLinks(e){return ut(this,void 0,void 0,(function*(){let t=this._getModel(e);return t?at(t):null}))}textualSuggest(e,t,n,i){return ut(this,void 0,void 0,(function*(){const r=new ct["a"](!0),o=new RegExp(n,i),s=new Set;e:for(let n of e){const e=this._getModel(n);if(e)for(let n of e.words(o))if(n!==t&&isNaN(Number(n))&&(s.add(n),s.size>dt._suggestionsLimit))break e}return{words:Array.from(s),duration:r.elapsed()}}))}computeWordRanges(e,t,n,i){return ut(this,void 0,void 0,(function*(){let r=this._getModel(e);if(!r)return Object.create(null);const o=new RegExp(n,i),s=Object.create(null);for(let e=t.startLineNumber;e<t.endLineNumber;e++){let t=r.getLineWords(e,o);for(const n of t){if(!isNaN(Number(n.word)))continue;let t=s[n.word];t||(t=[],s[n.word]=t),t.push({startLineNumber:e,startColumn:n.startColumn,endLineNumber:e,endColumn:n.endColumn})}}return s}))}navigateValueSet(e,t,n,i,r){return ut(this,void 0,void 0,(function*(){let o=this._getModel(e);if(!o)return null;let s=new RegExp(i,r);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});let a=o.getValueInRange(t),l=o.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},s);if(!l)return null;let c=o.getValueInRange(l),u=lt.INSTANCE.navigateValueSet(t,a,l,c,n);return u}))}loadForeignModule(e,t,n){const i=(e,t)=>this._host.fhr(e,t),r=xe["d"](n,i);let o={host:r,getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(o,t),Promise.resolve(xe["e"](this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,t){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(n){return Promise.reject(n)}}}dt._diffLimit=1e5,dt._suggestionsLimit=1e4,"function"===typeof importScripts&&(Se["b"].monaco=G());var ft=n("1b69"),pt=n("7b4a"),gt=n("e8e3"),mt=n("d3d7"),vt=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},bt=function(e,t){return function(n,i){t(n,i,e)}},yt=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const _t=6e4,wt=3e5;function Ct(e,t){let n=e.getModel(t);return!!n&&!n.isTooLargeForSyncing()}let St=class extends we["a"]{constructor(e,t,n){super(),this._modelService=e,this._workerManager=this._register(new Ot(this._modelService)),this._logService=n,this._register(ge["v"].register("*",{provideLinks:(e,t)=>Ct(this._modelService,e.uri)?this._workerManager.withWorker().then(t=>t.computeLinks(e.uri)).then(e=>e&&{links:e}):Promise.resolve({links:[]})})),this._register(ge["d"].register("*",new xt(this._workerManager,t,this._modelService)))}dispose(){super.dispose()}canComputeDiff(e,t){return Ct(this._modelService,e)&&Ct(this._modelService,t)}computeDiff(e,t,n,i){return this._workerManager.withWorker().then(r=>r.computeDiff(e,t,n,i))}computeMoreMinimalEdits(e,t){if(Object(gt["n"])(t)){if(!Ct(this._modelService,e))return Promise.resolve(t);const n=ct["a"].create(!0),i=this._workerManager.withWorker().then(n=>n.computeMoreMinimalEdits(e,t));return i.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),n.elapsed())),Promise.race([i,Object(_e["n"])(1e3).then(()=>t)])}return Promise.resolve(void 0)}canNavigateValueSet(e){return Ct(this._modelService,e)}navigateValueSet(e,t,n){return this._workerManager.withWorker().then(i=>i.navigateValueSet(e,t,n))}canComputeWordRanges(e){return Ct(this._modelService,e)}computeWordRanges(e,t){return this._workerManager.withWorker().then(n=>n.computeWordRanges(e,t))}};St=vt([bt(0,ft["a"]),bt(1,pt["a"]),bt(2,mt["b"])],St);class xt{constructor(e,t,n){this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=n}provideCompletionItems(e,t){return yt(this,void 0,void 0,(function*(){const n=this._configurationService.getValue(e.uri,t,"editor");if(!n.wordBasedSuggestions)return;const i=[];if("currentDocument"===n.wordBasedSuggestionsMode)Ct(this._modelService,e.uri)&&i.push(e.uri);else for(const t of this._modelService.getModels())Ct(this._modelService,t.uri)&&(t===e?i.unshift(t.uri):"allDocuments"!==n.wordBasedSuggestionsMode&&t.getLanguageIdentifier().id!==e.getLanguageIdentifier().id||i.push(t.uri));if(0===i.length)return;const r=je["a"].getWordDefinition(e.getLanguageIdentifier().id),o=e.getWordAtPosition(t),s=o?new U["a"](t.lineNumber,o.startColumn,t.lineNumber,o.endColumn):U["a"].fromPositions(t),a=s.setEndPosition(t.lineNumber,t.column),l=yield this._workerManager.withWorker(),c=yield l.textualSuggest(i,null===o||void 0===o?void 0:o.word,r);return c?{duration:c.duration,suggestions:c.words.map(e=>({kind:18,label:e,insertText:e,range:{insert:a,replace:s}}))}:void 0}))}}class Ot extends we["a"]{constructor(e){super(),this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=(new Date).getTime();let t=this._register(new _e["c"]);t.cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(wt/2)),this._register(this._modelService.onModelRemoved(e=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;let e=this._modelService.getModels();0===e.length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;let e=(new Date).getTime()-this._lastWorkerUsedTime;e>wt&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new Dt(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)}}class kt extends we["a"]{constructor(e,t,n){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=t,!n){let e=new _e["c"];e.cancelAndSet(()=>this._checkStopModelSync(),Math.round(_t/2)),this._register(e)}}dispose(){for(let e in this._syncedModels)Object(we["f"])(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e){for(const t of e){let e=t.toString();this._syncedModels[e]||this._beginModelSync(t),this._syncedModels[e]&&(this._syncedModelsLastUsedTime[e]=(new Date).getTime())}}_checkStopModelSync(){let e=(new Date).getTime(),t=[];for(let n in this._syncedModelsLastUsedTime){let i=e-this._syncedModelsLastUsedTime[n];i>_t&&t.push(n)}for(const n of t)this._stopModelSync(n)}_beginModelSync(e){let t=this._modelService.getModel(e);if(!t)return;if(t.isTooLargeForSyncing())return;let n=e.toString();this._proxy.acceptNewModel({url:t.uri.toString(),lines:t.getLinesContent(),EOL:t.getEOL(),versionId:t.getVersionId()});const i=new we["b"];i.add(t.onDidChangeContent(e=>{this._proxy.acceptModelChanged(n.toString(),e)})),i.add(t.onWillDispose(()=>{this._stopModelSync(n)})),i.add(Object(we["i"])(()=>{this._proxy.acceptRemovedModel(n)})),this._syncedModels[n]=i}_stopModelSync(e){let t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],Object(we["f"])(t)}}class Lt{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class Et{constructor(e){this._workerClient=e}fhr(e,t){return this._workerClient.fhr(e,t)}}class Dt extends we["a"]{constructor(e,t,n){super(),this._disposed=!1,this._modelService=e,this._keepIdleModels=t,this._workerFactory=new Pe(n),this._worker=null,this._modelManager=null}fhr(e,t){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new De(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new Et(this)))}catch(e){Le(e),this._worker=new Lt(new dt(new Et(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>(Le(e),this._worker=new Lt(new dt(new Et(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new kt(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e){return this._disposed?Promise.reject(Object(Ce["a"])()):this._getProxy().then(t=>(this._getOrCreateModelManager(t).ensureSyncedResources(e),t))}computeDiff(e,t,n,i){return this._withSyncedResources([e,t]).then(r=>r.computeDiff(e.toString(),t.toString(),n,i))}computeMoreMinimalEdits(e,t){return this._withSyncedResources([e]).then(n=>n.computeMoreMinimalEdits(e.toString(),t))}computeLinks(e){return this._withSyncedResources([e]).then(t=>t.computeLinks(e.toString()))}textualSuggest(e,t,n){return yt(this,void 0,void 0,(function*(){const i=yield this._withSyncedResources(e),r=n.source,o=Object(Fe["N"])(n);return i.textualSuggest(e.map(e=>e.toString()),t,r,o)}))}computeWordRanges(e,t){return this._withSyncedResources([e]).then(n=>{let i=this._modelService.getModel(e);if(!i)return Promise.resolve(null);let r=je["a"].getWordDefinition(i.getLanguageIdentifier().id),o=r.source,s=Object(Fe["N"])(r);return n.computeWordRanges(e.toString(),t,o,s)})}navigateValueSet(e,t,n){return this._withSyncedResources([e]).then(i=>{let r=this._modelService.getModel(e);if(!r)return null;let o=je["a"].getWordDefinition(r.getLanguageIdentifier().id),s=o.source,a=Object(Fe["N"])(o);return i.navigateValueSet(e.toString(),t,n,s,a)})}dispose(){super.dispose(),this._disposed=!0}}function It(e,t){return new Mt(e,t)}class Mt extends Dt{constructor(e,t){super(e,t.keepIdleModels||!1,t.label),this._foreignModuleId=t.moduleId,this._foreignModuleCreateData=t.createData||null,this._foreignModuleHost=t.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!==typeof this._foreignModuleHost[e])return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(n){return Promise.reject(n)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(e=>{const t=this._foreignModuleHost?xe["e"](this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then(t=>{this._foreignModuleCreateData=null;const n=(t,n)=>e.fmr(t,n),i=(e,t)=>function(){const n=Array.prototype.slice.call(arguments,0);return t(e,n)};let r={};for(const e of t)r[e]=i(e,n);return r})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(e=>this.getProxy())}}var Tt=n("e1b5"),At=n("6da2"),Nt=n("a8d0");function Pt(e){return Array.isArray(e)}function jt(e){return!Pt(e)}function Rt(e){return"string"===typeof e}function Ft(e){return!Rt(e)}function Bt(e){return!e}function Wt(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function Vt(e){return e.replace(/[&<>'"_]/g,"-")}function zt(e,t){console.log(`${e.languageId}: ${t}`)}function Ht(e,t){return new Error(`${e.languageId}: ${t}`)}function Ut(e,t,n,i,r){const o=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g;let s=null;return t.replace(o,(function(t,o,a,l,c,u,h,d,f){return Bt(a)?Bt(l)?!Bt(c)&&c<i.length?Wt(e,i[c]):!Bt(h)&&e&&"string"===typeof e[h]?e[h]:(null===s&&(s=r.split("."),s.unshift(r)),!Bt(u)&&u<s.length?Wt(e,s[u]):""):Wt(e,n):"$"}))}function qt(e,t){let n=t;while(n&&n.length>0){const t=e.tokenizer[n];if(t)return t;const i=n.lastIndexOf(".");n=i<0?null:n.substr(0,i)}return null}function $t(e,t){let n=t;while(n&&n.length>0){const t=e.stateNames[n];if(t)return!0;const i=n.lastIndexOf(".");n=i<0?null:n.substr(0,i)}return!1}const Kt=5;class Gt{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new Yt(e,t);let n=Yt.getStackElementId(e);n.length>0&&(n+="|"),n+=t;let i=this._entries[n];return i||(i=new Yt(e,t),this._entries[n]=i,i)}}Gt._INSTANCE=new Gt(Kt);class Yt{constructor(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let t="";while(null!==e)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t}static _equals(e,t){while(null!==e&&null!==t){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t}equals(e){return Yt._equals(this,e)}push(e){return Gt.create(this,e)}pop(){return this.parent}popall(){let e=this;while(e.parent)e=e.parent;return e}switchTo(e){return Gt.create(this.parent,e)}}class Zt{constructor(e,t){this.modeId=e,this.state=t}equals(e){return this.modeId===e.modeId&&this.state.equals(e.state)}clone(){let e=this.state.clone();return e===this.state?this:new Zt(this.modeId,this.state)}}class Xt{constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}static create(e,t){return this._INSTANCE.create(e,t)}create(e,t){if(null!==t)return new Qt(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new Qt(e,t);let n=Yt.getStackElementId(e),i=this._entries[n];return i||(i=new Qt(e,null),this._entries[n]=i,i)}}Xt._INSTANCE=new Xt(Kt);class Qt{constructor(e,t){this.stack=e,this.embeddedModeData=t}clone(){let e=this.embeddedModeData?this.embeddedModeData.clone():null;return e===this.embeddedModeData?this:Xt.create(this.stack,this.embeddedModeData)}equals(e){return e instanceof Qt&&(!!this.stack.equals(e.stack)&&(null===this.embeddedModeData&&null===e.embeddedModeData||null!==this.embeddedModeData&&null!==e.embeddedModeData&&this.embeddedModeData.equals(e.embeddedModeData)))}}class Jt{constructor(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterMode(e,t){this._language=t}emit(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._language||(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new $["a"](e,t,this._language)))}nestedModeTokenize(e,t,n,i){const r=n.modeId,o=n.state,s=ge["F"].get(r);if(!s)return this.enterMode(i,r),this.emit(i,""),o;let a=s.tokenize(e,t,o,i);return this._tokens=this._tokens.concat(a.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,a.endState}finalize(e){return new $["b"](this._tokens,e)}}class en{constructor(e,t){this._modeService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterMode(e,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id}emit(e,t){let n=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))}static _merge(e,t,n){let i=null!==e?e.length:0,r=t.length,o=null!==n?n.length:0;if(0===i&&0===r&&0===o)return new Uint32Array(0);if(0===i&&0===r)return n;if(0===r&&0===o)return e;let s=new Uint32Array(i+r+o);null!==e&&s.set(e);for(let a=0;a<r;a++)s[i+a]=t[a];return null!==n&&s.set(n,i+r),s}nestedModeTokenize(e,t,n,i){const r=n.modeId,o=n.state,s=ge["F"].get(r);if(!s)return this.enterMode(i,r),this.emit(i,""),o;let a=s.tokenize2(e,t,o,i);return this._prependTokens=en._merge(this._prependTokens,this._tokens,a.tokens),this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0,a.endState}finalize(e){return new $["c"](en._merge(this._prependTokens,this._tokens,null),e)}}class tn{constructor(e,t,n,i){this._modeService=e,this._standaloneThemeService=t,this._modeId=n,this._lexer=i,this._embeddedModes=Object.create(null),this.embeddedLoaded=Promise.resolve(void 0);let r=!1;this._tokenizationRegistryListener=ge["F"].onDidChange(e=>{if(r)return;let t=!1;for(let n=0,i=e.changedLanguages.length;n<i;n++){let i=e.changedLanguages[n];if(this._embeddedModes[i]){t=!0;break}}t&&(r=!0,ge["F"].fire([this._modeId]),r=!1)})}dispose(){this._tokenizationRegistryListener.dispose()}getLoadStatus(){let e=[];for(let t in this._embeddedModes){const n=ge["F"].get(t);if(n){if(n instanceof tn){const t=n.getLoadStatus();!1===t.loaded&&e.push(t.promise)}continue}const i=ge["F"].getPromise(t);i&&e.push(i)}return 0===e.length?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then(e=>{})}}getInitialState(){let e=Gt.create(null,this._lexer.start);return Xt.create(e,null)}tokenize(e,t,n,i){let r=new Jt,o=this._tokenize(e,t,n,i,r);return r.finalize(o)}tokenize2(e,t,n,i){let r=new en(this._modeService,this._standaloneThemeService.getColorTheme().tokenTheme),o=this._tokenize(e,t,n,i,r);return r.finalize(o)}_tokenize(e,t,n,i,r){return n.embeddedModeData?this._nestedTokenize(e,t,n,i,r):this._myTokenize(e,t,n,i,r)}_findLeavingNestedModeOffset(e,t){let n=this._lexer.tokenizer[t.stack.state];if(!n&&(n=qt(this._lexer,t.stack.state),!n))throw Ht(this._lexer,"tokenizer state is not defined: "+t.stack.state);let i=-1,r=!1;for(const o of n){if(!Ft(o.action)||"@pop"!==o.action.nextEmbedded)continue;r=!0;let t=o.regex,n=o.regex.source;if("^(?:"===n.substr(0,4)&&")"===n.substr(n.length-1,1)){let e=(t.ignoreCase?"i":"")+(t.unicode?"u":"");t=new RegExp(n.substr(4,n.length-5),e)}let s=e.search(t);-1===s||0!==s&&o.matchOnlyAtLineStart||(-1===i||s<i)&&(i=s)}if(!r)throw Ht(this._lexer,'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: '+t.stack.state);return i}_nestedTokenize(e,t,n,i,r){let o=this._findLeavingNestedModeOffset(e,n);if(-1===o){let o=r.nestedModeTokenize(e,t,n.embeddedModeData,i);return Xt.create(n.stack,new Zt(n.embeddedModeData.modeId,o))}let s=e.substring(0,o);s.length>0&&r.nestedModeTokenize(s,!1,n.embeddedModeData,i);let a=e.substring(o);return this._myTokenize(a,t,n,i+o,r)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,t,n,i,r){r.enterMode(i,this._modeId);const o=e.length,s=t&&this._lexer.includeLF?e+"\n":e,a=s.length;let l=n.embeddedModeData,c=n.stack,u=0,h=null,d=!0;while(d||u<a){const n=u,f=c.depth,p=h?h.groups.length:0,g=c.state;let m=null,v=null,b=null,y=null,_=null;if(h){m=h.matches;const e=h.groups.shift();v=e.matched,b=e.action,y=h.rule,0===h.groups.length&&(h=null)}else{if(!d&&u>=a)break;d=!1;let e=this._lexer.tokenizer[g];if(!e&&(e=qt(this._lexer,g),!e))throw Ht(this._lexer,"tokenizer state is not defined: "+g);let t=s.substr(u);for(const n of e)if((0===u||!n.matchOnlyAtLineStart)&&(m=t.match(n.regex),m)){v=m[0],b=n.action;break}}if(m||(m=[""],v=""),b||(u<a&&(m=[s.charAt(u)],v=m[0]),b=this._lexer.defaultToken),null===v)break;u+=v.length;while(jt(b)&&Ft(b)&&b.test)b=b.test(v,m,g,u===a);let w=null;if("string"===typeof b||Array.isArray(b))w=b;else if(b.group)w=b.group;else if(null!==b.token&&void 0!==b.token){if(w=b.tokenSubst?Ut(this._lexer,b.token,v,m,g):b.token,b.nextEmbedded)if("@pop"===b.nextEmbedded){if(!l)throw Ht(this._lexer,"cannot pop embedded mode if not inside one");l=null}else{if(l)throw Ht(this._lexer,"cannot enter embedded mode from within an embedded mode");_=Ut(this._lexer,b.nextEmbedded,v,m,g)}if(b.goBack&&(u=Math.max(0,u-b.goBack)),b.switchTo&&"string"===typeof b.switchTo){let e=Ut(this._lexer,b.switchTo,v,m,g);if("@"===e[0]&&(e=e.substr(1)),!qt(this._lexer,e))throw Ht(this._lexer,"trying to switch to a state '"+e+"' that is undefined in rule: "+this._safeRuleName(y));c=c.switchTo(e)}else{if(b.transform&&"function"===typeof b.transform)throw Ht(this._lexer,"action.transform not supported");if(b.next)if("@push"===b.next){if(c.depth>=this._lexer.maxStack)throw Ht(this._lexer,"maximum tokenizer stack size reached: ["+c.state+","+c.parent.state+",...]");c=c.push(g)}else if("@pop"===b.next){if(c.depth<=1)throw Ht(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(y));c=c.pop()}else if("@popall"===b.next)c=c.popall();else{let e=Ut(this._lexer,b.next,v,m,g);if("@"===e[0]&&(e=e.substr(1)),!qt(this._lexer,e))throw Ht(this._lexer,"trying to set a next state '"+e+"' that is undefined in rule: "+this._safeRuleName(y));c=c.push(e)}}b.log&&"string"===typeof b.log&&zt(this._lexer,this._lexer.languageId+": "+Ut(this._lexer,b.log,v,m,g))}if(null===w)throw Ht(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(y));const C=n=>{let o=this._modeService.getModeIdForLanguageName(n);o&&(n=o);const s=this._getNestedEmbeddedModeData(n);if(u<a){const n=e.substr(u);return this._nestedTokenize(n,t,Xt.create(c,s),i+u,r)}return Xt.create(c,s)};if(Array.isArray(w)){if(h&&h.groups.length>0)throw Ht(this._lexer,"groups cannot be nested: "+this._safeRuleName(y));if(m.length!==w.length+1)throw Ht(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(y));let e=0;for(let t=1;t<m.length;t++)e+=m[t].length;if(e!==v.length)throw Ht(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(y));h={rule:y,matches:m,groups:[]};for(let t=0;t<w.length;t++)h.groups[t]={action:w[t],matched:m[t+1]};u-=v.length}else{{if("@rematch"===w&&(u-=v.length,v="",m=null,w="",null!==_))return C(_);if(0===v.length){if(0===a||f!==c.depth||g!==c.state||(h?h.groups.length:0)!==p)continue;throw Ht(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(y))}let e=null;if(Rt(w)&&0===w.indexOf("@brackets")){let t=w.substr("@brackets".length),n=nn(this._lexer,v);if(!n)throw Ht(this._lexer,"@brackets token returned but no bracket defined as: "+v);e=Vt(n.token+t)}else{let t=""===w?"":w+this._lexer.tokenPostfix;e=Vt(t)}n<o&&r.emit(n+i,e)}if(null!==_)return C(_)}}return Xt.create(c,l)}_getNestedEmbeddedModeData(e){let t=this._locateMode(e);if(t){let e=ge["F"].get(t);if(e)return new Zt(t,e.getInitialState())}return new Zt(t||me["b"],me["c"])}_locateMode(e){if(!e||!this._modeService.isRegisteredMode(e))return null;if(e===this._modeId)return e;let t=this._modeService.getModeId(e);return t&&(this._modeService.triggerMode(t),this._embeddedModes[t]=!0),t}}function nn(e,t){if(!t)return null;t=Wt(e,t);let n=e.brackets;for(const i of n){if(i.open===t)return{token:i.token,bracketType:1};if(i.close===t)return{token:i.token,bracketType:-1}}return null}function rn(e,t,n,i){return new tn(e,t,n,i)}var on;const sn=null===(on=window.trustedTypes)||void 0===on?void 0:on.createPolicy("standaloneColorizer",{createHTML:e=>e});class an{static colorizeElement(e,t,n,i){i=i||{};let r=i.theme||"vs",o=i.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(!o)return console.error("Mode not detected"),Promise.resolve();e.setTheme(r);let s=n.firstChild?n.firstChild.nodeValue:"";n.className+=" "+r;let a=e=>{var t;const i=null!==(t=null===sn||void 0===sn?void 0:sn.createHTML(e))&&void 0!==t?t:e;n.innerHTML=i};return this.colorize(t,s||"",o,i).then(a,e=>console.error(e))}static colorize(e,t,n,i){let r=4;i&&"number"===typeof i.tabSize&&(r=i.tabSize),Fe["T"](t)&&(t=t.substr(1));let o=Fe["R"](t),s=e.getModeId(n);if(!s)return Promise.resolve(cn(o,r));e.triggerMode(s);const a=ge["F"].get(s);if(a)return ln(o,r,a);const l=ge["F"].getPromise(s);return new Promise(l?(e,t)=>{l.then(n=>{ln(o,r,n).then(e,t)},t)}:(e,t)=>{let n=null,i=null;const a=()=>{n&&(n.dispose(),n=null),i&&(i.dispose(),i=null);const a=ge["F"].get(s);a?ln(o,r,a).then(e,t):e(cn(o,r))};i=new _e["g"],i.cancelAndSet(a,500),n=ge["F"].onDidChange(e=>{e.changedLanguages.indexOf(s)>=0&&a()})})}static colorizeLine(e,t,n,i,r=4){const o=Nt["f"].isBasicASCII(e,t),s=Nt["f"].containsRTL(e,o,n);let a=Object(At["e"])(new At["c"](!1,!0,e,!1,o,s,0,i,[],r,0,0,0,0,-1,"none",!1,!1,null));return a.html}static colorizeModelLine(e,t,n=4){let i=e.getLineContent(t);e.forceTokenization(t);let r=e.getLineTokens(t),o=r.inflate();return this.colorizeLine(i,e.mightContainNonBasicASCII(),e.mightContainRTL(),o,n)}}function ln(e,t,n){return new Promise((i,r)=>{const o=()=>{const s=un(e,t,n);if(n instanceof tn){const e=n.getLoadStatus();if(!1===e.loaded)return void e.promise.then(o,r)}i(s)};o()})}function cn(e,t){let n=[];const i=16793600,r=new Uint32Array(2);r[0]=0,r[1]=i;for(let o=0,s=e.length;o<s;o++){let i=e[o];r[0]=i.length;const s=new Tt["a"](r,i),a=Nt["f"].isBasicASCII(i,!0),l=Nt["f"].containsRTL(i,a,!0);let c=Object(At["e"])(new At["c"](!1,!0,i,!1,a,l,0,s,[],t,0,0,0,0,-1,"none",!1,!1,null));n=n.concat(c.html),n.push("<br/>")}return n.join("")}function un(e,t,n){let i=[],r=n.getInitialState();for(let o=0,s=e.length;o<s;o++){let s=e[o],a=n.tokenize2(s,!0,r,0);Tt["a"].convertToEndOffset(a.tokens,s.length);let l=new Tt["a"](a.tokens,s);const c=Nt["f"].isBasicASCII(s,!0),u=Nt["f"].containsRTL(s,c,!0);let h=Object(At["e"])(new At["c"](!1,!0,s,!1,c,u,0,l.inflate(),[],t,0,0,0,0,-1,"none",!1,!1,null));i=i.concat(h.html),i.push("<br/>"),r=a.endState}return i.join("")}var hn=n("b835"),dn=n("4b76"),fn=n("b055"),pn=n("c7f5"),gn=n("8830"),mn=n("d3f4"),vn=n("fbba"),bn=n("aa3d"),yn=n("0910");class _n{constructor(e={},t=[],n=[]){this._contents=e,this._keys=t,this._overrides=n,this.isFrozen=!1}get contents(){return this.checkAndFreeze(this._contents)}get overrides(){return this.checkAndFreeze(this._overrides)}get keys(){return this.checkAndFreeze(this._keys)}isEmpty(){return 0===this._keys.length&&0===Object.keys(this._contents).length&&0===this._overrides.length}getValue(e){return e?Object(vn["d"])(this.contents,e):this.contents}override(e){const t=this.getContentsForOverrideIdentifer(e);if(!t||"object"!==typeof t||!Object.keys(t).length)return this;let n={};for(const i of gt["f"]([...Object.keys(this.contents),...Object.keys(t)])){let e=this.contents[i],r=t[i];r&&("object"===typeof e&&"object"===typeof r?(e=bn["b"](e),this.mergeContents(e,r)):e=r),n[i]=e}return new _n(n,this.keys,this.overrides)}merge(...e){const t=bn["b"](this.contents),n=bn["b"](this.overrides),i=[...this.keys];for(const r of e){this.mergeContents(t,r.contents);for(const e of r.overrides){const[t]=n.filter(t=>gt["h"](t.identifiers,e.identifiers));t?this.mergeContents(t.contents,e.contents):n.push(bn["b"](e))}for(const e of r.keys)-1===i.indexOf(e)&&i.push(e)}return new _n(t,i,n)}freeze(){return this.isFrozen=!0,this}mergeContents(e,t){for(const n of Object.keys(t))n in e&&xe["j"](e[n])&&xe["j"](t[n])?this.mergeContents(e[n],t[n]):e[n]=bn["b"](t[n])}checkAndFreeze(e){return this.isFrozen&&!Object.isFrozen(e)?bn["c"](e):e}getContentsForOverrideIdentifer(e){for(const t of this.overrides)if(-1!==t.identifiers.indexOf(e))return t.contents;return null}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(e,t){this.addKey(e),Object(vn["b"])(this.contents,e,t,e=>{throw new Error(e)})}removeValue(e){this.removeKey(e)&&Object(vn["f"])(this.contents,e)}addKey(e){let t=this.keys.length;for(let n=0;n<t;n++)0===e.indexOf(this.keys[n])&&(t=n);this.keys.splice(t,1,e)}removeKey(e){let t=this.keys.indexOf(e);return-1!==t&&(this.keys.splice(t,1),!0)}}class wn extends _n{constructor(){const e=Object(vn["e"])(),t=Object(vn["c"])(),n=[];for(const i of Object.keys(e))yn["b"].test(i)&&n.push({identifiers:[Object(yn["c"])(i).trim()],keys:Object.keys(e[i]),contents:Object(vn["g"])(e[i],e=>console.error("Conflict in default settings file: "+e))});super(e,t,n)}}class Cn{constructor(e,t,n=new _n,i=new _n,r=new J["b"],o=new _n,s=new J["b"],a=!0){this._defaultConfiguration=e,this._localUserConfiguration=t,this._remoteUserConfiguration=n,this._workspaceConfiguration=i,this._folderConfigurations=r,this._memoryConfiguration=o,this._memoryConfigurationByResource=s,this._freeze=a,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new J["b"],this._userConfiguration=null}getValue(e,t,n){const i=this.getConsolidateConfigurationModel(t,n);return i.getValue(e)}updateValue(e,t,n={}){let i;n.resource?(i=this._memoryConfigurationByResource.get(n.resource),i||(i=new _n,this._memoryConfigurationByResource.set(n.resource,i))):i=this._memoryConfiguration,void 0===t?i.removeValue(e):i.setValue(e,t),n.resource||(this._workspaceConsolidatedConfiguration=null)}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration}getConsolidateConfigurationModel(e,t){let n=this.getConsolidatedConfigurationModelForResource(e,t);return e.overrideIdentifier?n.override(e.overrideIdentifier):n}getConsolidatedConfigurationModelForResource({resource:e},t){let n=this.getWorkspaceConsolidatedConfiguration();if(t&&e){const i=t.getFolder(e);i&&(n=this.getFolderConsolidatedConfiguration(i.uri)||n);const r=this._memoryConfigurationByResource.get(e);r&&(n=n.merge(r))}return n}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(e){let t=this._foldersConsolidatedConfigurations.get(e);if(!t){const n=this.getWorkspaceConsolidatedConfiguration(),i=this._folderConfigurations.get(e);i?(t=n.merge(i),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=n}return t}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((e,t)=>{const{contents:n,overrides:i,keys:r}=this._folderConfigurations.get(t);return e.push([t,{contents:n,overrides:i,keys:r}]),e},[])}}static parse(e){const t=this.parseConfigurationModel(e.defaults),n=this.parseConfigurationModel(e.user),i=this.parseConfigurationModel(e.workspace),r=e.folders.reduce((e,t)=>(e.set(z["a"].revive(t[0]),this.parseConfigurationModel(t[1])),e),new J["b"]);return new Cn(t,n,new _n,i,r,new _n,new J["b"],!1)}static parseConfigurationModel(e){return new _n(e.contents,e.keys,e.overrides).freeze()}}class Sn{constructor(e,t,n,i){this.change=e,this.previous=t,this.currentConfiguraiton=n,this.currentWorkspace=i,this._previousConfiguration=void 0;const r=new Set;e.keys.forEach(e=>r.add(e)),e.overrides.forEach(([,e])=>e.forEach(e=>r.add(e))),this.affectedKeys=[...r.values()];const o=new _n;this.affectedKeys.forEach(e=>o.setValue(e,{})),this.affectedKeysTree=o.contents}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=Cn.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(e,t){var n;if(this.doesAffectedKeysTreeContains(this.affectedKeysTree,e)){if(t){const i=this.previousConfiguration?this.previousConfiguration.getValue(e,t,null===(n=this.previous)||void 0===n?void 0:n.workspace):void 0,r=this.currentConfiguraiton.getValue(e,t,this.currentWorkspace);return!bn["d"](i,r)}return!0}return!1}doesAffectedKeysTreeContains(e,t){let n,i=Object(vn["g"])({[t]:!0},()=>{});while("object"===typeof i&&(n=Object.keys(i)[0])){if(e=e[n],!e)return!1;i=i[n]}return!0}}var xn=n("dff7");class On extends we["a"]{constructor(e,t,n,i,r){super(),this._contextKeyService=e,this._commandService=t,this._telemetryService=n,this._notificationService=i,this._logService=r,this._onDidUpdateKeybindings=this._register(new W["b"]),this._currentChord=null,this._currentChordChecker=new _e["c"],this._currentChordStatusMessage=null,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new _e["g"],this._logging=!1}get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:W["c"].None}dispose(){super.dispose()}_log(e){this._logging&&this._logService.info("[KeybindingService]: "+e)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(e,t){const n=this._getResolver().lookupPrimaryKeybinding(e,t||this._contextKeyService);if(n)return n.resolvedKeybinding}dispatchEvent(e,t){return this._dispatch(e,t)}softDispatch(e,t){const n=this.resolveKeyboardEvent(e);if(n.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),null;const[i]=n.getDispatchParts();if(null===i)return null;const r=this._contextKeyService.getContext(t),o=this._currentChord?this._currentChord.keypress:null;return this._getResolver().resolve(r,o,i)}_enterChordMode(e,t){this._currentChord={keypress:e,label:t},this._currentChordStatusMessage=this._notificationService.status(xn["a"]("first.chord","({0}) was pressed. Waiting for second key of chord...",t));const n=Date.now();this._currentChordChecker.cancelAndSet(()=>{this._documentHasFocus()?Date.now()-n>5e3&&this._leaveChordMode():this._leaveChordMode()},500)}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null}_dispatch(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t,!1)}_singleModifierDispatch(e,t){const n=this.resolveKeyboardEvent(e),[i]=n.getSingleModifierDispatchParts();return null!==i&&null===this._currentSingleModifier?(this._log(`+ Storing single modifier for possible chord ${i}.`),this._currentSingleModifier=i,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300),!1):null!==i&&i===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${i} ${i}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(n,t,!0)):(this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1)}_doDispatch(e,t,n=!1){let i=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;let r=null,o=null;if(n){const[t]=e.getSingleModifierDispatchParts();r=t,o=t}else[r]=e.getDispatchParts(),o=this._currentChord?this._currentChord.keypress:null;if(null===r)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),i;const s=this._contextKeyService.getContext(t),a=e.getLabel(),l=this._getResolver().resolve(s,o,r);return this._logService.trace("KeybindingService#dispatch",a,null===l||void 0===l?void 0:l.commandId),l&&l.enterChord?(i=!0,this._enterChordMode(r,a),i):(this._currentChord&&(l&&l.commandId||(this._notificationService.status(xn["a"]("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,a),{hideAfter:1e4}),i=!0)),this._leaveChordMode(),l&&l.commandId&&(l.bubble||(i=!0),"undefined"===typeof l.commandArgs?this._commandService.executeCommand(l.commandId).then(void 0,e=>this._notificationService.warn(e)):this._commandService.executeCommand(l.commandId,l.commandArgs).then(void 0,e=>this._notificationService.warn(e)),this._telemetryService.publicLog2("workbenchActionExecuted",{id:l.commandId,from:"keybinding"})),i)}mightProducePrintableCharacter(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)}}class kn{constructor(e,t,n){this._log=n,this._defaultKeybindings=e,this._defaultBoundCommands=new Map;for(let i=0,r=e.length;i<r;i++){const t=e[i].command;t&&this._defaultBoundCommands.set(t,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=kn.combine(e,t);for(let i=0,r=this._keybindings.length;i<r;i++){let e=this._keybindings[i];0!==e.keypressParts.length&&(e.when&&0===e.when.type||this._addKeyPress(e.keypressParts[0],e))}}static _isTargetedForRemoval(e,t,n,i,r){if(e.command!==i)return!1;if(t&&e.keypressParts[0]!==t)return!1;if(n&&e.keypressParts[1]!==n)return!1;if(r){if(!e.when)return!1;if(!r.equals(e.when))return!1}return!0}static combine(e,t){e=e.slice(0);let n=[];for(const i of t){if(!i.command||0===i.command.length||"-"!==i.command.charAt(0)){n.push(i);continue}const t=i.command.substr(1),r=i.keypressParts[0],o=i.keypressParts[1],s=i.when;for(let n=e.length-1;n>=0;n--)this._isTargetedForRemoval(e[n],r,o,t,s)&&e.splice(n,1)}return e.concat(n)}_addKeyPress(e,t){const n=this._map.get(e);if("undefined"===typeof n)return this._map.set(e,[t]),void this._addToLookupMap(t);for(let i=n.length-1;i>=0;i--){let e=n[i];if(e.command===t.command)continue;const r=e.keypressParts.length>1,o=t.keypressParts.length>1;r&&o&&e.keypressParts[1]!==t.keypressParts[1]||kn.whenIsEntirelyIncluded(e.when,t.when)&&this._removeFromLookupMap(e)}n.push(t),this._addToLookupMap(t)}_addToLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);"undefined"===typeof t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}_removeFromLookupMap(e){if(!e.command)return;let t=this._lookupMap.get(e.command);if("undefined"!==typeof t)for(let n=0,i=t.length;n<i;n++)if(t[n]===e)return void t.splice(n,1)}static whenIsEntirelyIncluded(e,t){return!t||1===t.type||!(!e||1===e.type)&&this._implies(e,t)}static _implies(e,t){const n=e.negate(),i=e=>9===e.type?e.expr:[e];let r=i(n).concat(i(t));for(let o=0;o<r.length;o++){const e=r[o],t=e.negate();for(let n=o+1;n<r.length;n++){const e=r[n];if(t.equals(e))return!0}}return!1}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(e,t){const n=this._lookupMap.get(e);if("undefined"===typeof n||0===n.length)return null;if(1===n.length)return n[0];for(let i=n.length-1;i>=0;i--){const e=n[i];if(t.contextMatchesRules(e.when))return e}return n[n.length-1]}resolve(e,t,n){this._log(`| Resolving ${n}${t?" chorded from "+t:""}`);let i=null;if(null!==t){const e=this._map.get(t);if("undefined"===typeof e)return this._log("\\ No keybinding entries."),null;i=[];for(let t=0,r=e.length;t<r;t++){let r=e[t];r.keypressParts[1]===n&&i.push(r)}}else{const e=this._map.get(n);if("undefined"===typeof e)return this._log("\\ No keybinding entries."),null;i=e}let r=this._findCommand(e,i);return r?null===t&&r.keypressParts.length>1&&null!==r.keypressParts[1]?(this._log(`\\ From ${i.length} keybinding entries, matched chord, when: ${Ln(r.when)}, source: ${En(r)}.`),{enterChord:!0,leaveChord:!1,commandId:null,commandArgs:null,bubble:!1}):(this._log(`\\ From ${i.length} keybinding entries, matched ${r.command}, when: ${Ln(r.when)}, source: ${En(r)}.`),{enterChord:!1,leaveChord:r.keypressParts.length>1,commandId:r.command,commandArgs:r.commandArgs,bubble:r.bubble}):(this._log(`\\ From ${i.length} keybinding entries, no when clauses matched the context.`),null)}_findCommand(e,t){for(let n=t.length-1;n>=0;n--){let i=t[n];if(kn.contextMatchesRules(e,i.when))return i}return null}static contextMatchesRules(e,t){return!t||t.evaluate(e)}}function Ln(e){return e?""+e.serialize():"no when condition"}function En(e){return e.extensionId?e.isBuiltinExtension?"built-in extension "+e.extensionId:"user extension "+e.extensionId:e.isDefault?"built-in":"user"}var Dn=n("9eb8");class In{constructor(e,t,n,i,r,o,s){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=e,this.keypressParts=e?Mn(e.getDispatchParts()):[],e&&0===this.keypressParts.length&&(this.keypressParts=Mn(e.getSingleModifierDispatchParts())),this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=n,this.when=i,this.isDefault=r,this.extensionId=o,this.isBuiltinExtension=s}}function Mn(e){let t=[];for(let n=0,i=e.length;n<i;n++){const i=e[n];if(!i)return t;t.push(i)}return t}var Tn=n("8b4e");class An extends V["c"]{constructor(e,t){if(super(),0===t.length)throw Object(Ce["b"])("parts");this._os=e,this._parts=t}getLabel(){return Tn["b"].toLabel(this._os,this._parts,e=>this._getLabel(e))}getAriaLabel(){return Tn["a"].toLabel(this._os,this._parts,e=>this._getAriaLabel(e))}isChord(){return this._parts.length>1}getParts(){return this._parts.map(e=>this._getPart(e))}_getPart(e){return new V["d"](e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))}getDispatchParts(){return this._parts.map(e=>this._getDispatchPart(e))}getSingleModifierDispatchParts(){return this._parts.map(e=>this._getSingleModifierDispatchPart(e))}}class Nn extends An{constructor(e,t){super(t,e.parts)}_keyCodeToUILabel(e){if(2===this._os)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return V["b"].toString(e)}_getLabel(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)}_getAriaLabel(e){return e.isDuplicateModifierCase()?"":V["b"].toString(e.keyCode)}_getDispatchPart(e){return Nn.getDispatchStr(e)}static getDispatchStr(e){if(e.isModifierKey())return null;let t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=V["b"].toString(e.keyCode),t}_getSingleModifierDispatchPart(e){return 5!==e.keyCode||e.shiftKey||e.altKey||e.metaKey?4!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey?6!==e.keyCode||e.ctrlKey||e.shiftKey||e.metaKey?57!==e.keyCode||e.ctrlKey||e.shiftKey||e.altKey?null:"meta":"alt":"shift":"ctrl"}}var Pn=n("b0cd"),jn=n("1165"),Rn=n("03d9"),Fn=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Bn=function(e,t){return function(n,i){t(n,i,e)}},Wn=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class Vn{constructor(e){this.disposed=!1,this.model=e,this._onWillDispose=new W["b"]}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}function zn(e,t,n){return Object(fn["b"])(e)?t(e):n(e)}let Hn=class{constructor(e){this.modelService=e}setEditor(e){this.editor=e}createModelReference(e){let t=null;return this.editor&&(t=zn(this.editor,t=>this.findModel(t,e),t=>this.findModel(t.getOriginalEditor(),e)||this.findModel(t.getModifiedEditor(),e))),t?Promise.resolve(new we["c"](new Vn(t))):Promise.reject(new Error("Model not found"))}findModel(e,t){let n=this.modelService.getModel(t);return n&&n.uri.toString()!==t.toString()?null:n}};Hn=Fn([Bn(0,ft["a"])],Hn);class Un{show(){return Un.NULL_PROGRESS_RUNNER}showWhile(e,t){return Wn(this,void 0,void 0,(function*(){yield e}))}}Un.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class qn{confirm(e){return this.doConfirm(e).then(e=>({confirmed:e,checkboxChecked:!1}))}doConfirm(e){let t=e.message;return e.detail&&(t=t+"\n\n"+e.detail),Promise.resolve(window.confirm(t))}show(e,t,n,i){return Promise.resolve({choice:0})}}class $n{info(e){return this.notify({severity:dn["a"].Info,message:e})}warn(e){return this.notify({severity:dn["a"].Warning,message:e})}error(e){return this.notify({severity:dn["a"].Error,message:e})}notify(e){switch(e.severity){case dn["a"].Error:console.error(e.message);break;case dn["a"].Warning:console.warn(e.message);break;default:console.log(e.message);break}return $n.NO_OP}status(e,t){return we["a"].None}}$n.NO_OP=new Pn["b"];class Kn{constructor(e){this._onWillExecuteCommand=new W["b"],this._onDidExecuteCommand=new W["b"],this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=e}executeCommand(e,...t){const n=ie["a"].getCommand(e);if(!n)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});const i=this._instantiationService.invokeFunction.apply(this._instantiationService,[n.handler,...t]);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(i)}catch(i){return Promise.reject(i)}}}class Gn extends On{constructor(e,t,n,i,r,o){super(e,t,n,i,r),this._cachedResolver=null,this._dynamicKeybindings=[],this._register(X["i"](o,X["d"].KEY_DOWN,e=>{const t=new hn["a"](e),n=this._dispatch(t,t.target);n&&(t.preventDefault(),t.stopPropagation())})),this._register(X["i"](window,X["d"].KEY_UP,e=>{const t=new hn["a"](e),n=this._singleModifierDispatch(t,t.target);n&&t.preventDefault()}))}addDynamicKeybinding(e,t,n,i){const r=Object(V["f"])(t,Se["a"]),o=new we["b"];return r&&(this._dynamicKeybindings.push({keybinding:r,command:e,when:i,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}),o.add(Object(we["i"])(()=>{for(let t=0;t<this._dynamicKeybindings.length;t++){let n=this._dynamicKeybindings[t];if(n.command===e)return this._dynamicKeybindings.splice(t,1),void this.updateResolver({source:1})}}))),o.add(ie["a"].registerCommand(e,n)),this.updateResolver({source:1}),o}updateResolver(e){this._cachedResolver=null,this._onDidUpdateKeybindings.fire(e)}_getResolver(){if(!this._cachedResolver){const e=this._toNormalizedKeybindingItems(Dn["a"].getDefaultKeybindings(),!0),t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new kn(e,t,e=>this._log(e))}return this._cachedResolver}_documentHasFocus(){return document.hasFocus()}_toNormalizedKeybindingItems(e,t){let n=[],i=0;for(const r of e){const e=r.when||void 0,o=r.keybinding;if(o){const s=this.resolveKeybinding(o);for(const o of s)n[i++]=new In(o,r.command,r.commandArgs,e,t,null,!1)}else n[i++]=new In(void 0,r.command,r.commandArgs,e,t,null,!1)}return n}resolveKeybinding(e){return[new Nn(e,Se["a"])]}resolveKeyboardEvent(e){let t=new V["e"](e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode).toChord();return new Nn(t,Se["a"])}}function Yn(e){return e&&"object"===typeof e&&(!e.overrideIdentifier||"string"===typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof z["a"])}class Zn{constructor(){this._onDidChangeConfiguration=new W["b"],this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configuration=new Cn(new wn,new _n)}getValue(e,t){const n="string"===typeof e?e:void 0,i=Yn(e)?e:Yn(t)?t:{};return this._configuration.getValue(n,i,void 0)}updateValues(e){const t={data:this._configuration.toData()};let n=[];for(const i of e){const[e,t]=i;this.getValue(e)!==t&&(this._configuration.updateValue(e,t),n.push(e))}if(n.length>0){const e=new Sn({keys:n,overrides:[]},t,this._configuration);e.source=7,e.sourceConfig=null,this._onDidChangeConfiguration.fire(e)}return Promise.resolve()}}class Xn{constructor(e){this.configurationService=e,this._onDidChangeConfiguration=new W["b"],this.configurationService.onDidChangeConfiguration(e=>{this._onDidChangeConfiguration.fire({affectedKeys:e.affectedKeys,affectsConfiguration:(t,n)=>e.affectsConfiguration(n)})})}getValue(e,t,n){const i=H["a"].isIPosition(t)?t:null,r=i?"string"===typeof n?n:void 0:"string"===typeof t?t:void 0;return"undefined"===typeof r?this.configurationService.getValue():this.configurationService.getValue(r)}}let Qn=class{constructor(e){this.configurationService=e}getEOL(e,t){const n=this.configurationService.getValue("files.eol",{overrideIdentifier:t,resource:e});return n&&"string"===typeof n&&"auto"!==n?n:Se["d"]||Se["f"]?"\n":"\r\n"}};Qn=Fn([Bn(0,vn["a"])],Qn);class Jn{publicLog(e,t){return Promise.resolve(void 0)}publicLog2(e,t){return this.publicLog(e,t)}}class ei{constructor(){const e=z["a"].from({scheme:ei.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new jn["b"]({uri:e,name:"",index:0})]}}getWorkspace(){return this.workspace}}function ti(e,t,n){if(!t)return;if(!(e instanceof Zn))return;let i=[];Object.keys(t).forEach(e=>{Object(gn["d"])(e)&&i.push(["editor."+e,t[e]]),n&&Object(gn["c"])(e)&&i.push(["diffEditor."+e,t[e]])}),i.length>0&&e.updateValues(i)}ei.SCHEME="inmemory";class ni{constructor(e){this._modelService=e}hasPreviewHandler(){return!1}apply(e,t){return Wn(this,void 0,void 0,(function*(){const t=new Map;for(let r of e){if(!(r instanceof pn["c"]))throw new Error("bad edit - only text edits are supported");const e=this._modelService.getModel(r.resource);if(!e)throw new Error("bad edit - model not found");if("number"===typeof r.versionId&&e.getVersionId()!==r.versionId)throw new Error("bad state - model changed in the meantime");let n=t.get(e);n||(n=[],t.set(e,n)),n.push(mn["a"].replaceMove(U["a"].lift(r.textEdit.range),r.textEdit.text))}let n=0,i=0;for(const[e,r]of t)e.pushStackElement(),e.pushEditOperations([],r,()=>[]),e.pushStackElement(),i+=1,n+=r.length;return{ariaSummary:Fe["w"](Rn["g"].bulkEditServiceSummary,n,i)}}))}}class ii{getUriLabel(e,t){return"file"===e.scheme?e.fsPath:e.path}}class ri{constructor(e,t){this._codeEditorService=e,this._container=t,this.onDidLayout=W["c"].None}get dimension(){return this._dimension||(this._dimension=X["z"](window.document.body)),this._dimension}get container(){return this._container}focus(){var e;null===(e=this._codeEditorService.getFocusedCodeEditor())||void 0===e||e.focus()}}var oi=n("3813"),si=n("9c1d"),ai=n("4a64"),li=n("f58f"),ci=n("b1ca"),ui=n("7e32"),hi=n("4fc3"),di=n("533b"),fi=n("0a0f"),pi=n("6dec"),gi=n("b7d0"),mi=n("4779"),vi=n("f577"),bi=n("b539");class yi extends we["a"]{constructor(){super(),this._onCodeEditorAdd=this._register(new W["b"]),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new W["b"]),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onDiffEditorAdd=this._register(new W["b"]),this._onDiffEditorRemove=this._register(new W["b"]),this._onDecorationTypeRegistered=this._register(new W["b"]),this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null)}addCodeEditor(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)}removeCodeEditor(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)}listCodeEditors(){return Object.keys(this._codeEditors).map(e=>this._codeEditors[e])}addDiffEditor(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)}removeDiffEditor(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)}listDiffEditors(){return Object.keys(this._diffEditors).map(e=>this._diffEditors[e])}getFocusedCodeEditor(){let e=null;const t=this.listCodeEditors();for(const n of t){if(n.hasTextFocus())return n;n.hasWidgetFocus()&&(e=n)}return e}setModelProperty(e,t,n){const i=e.toString();let r;this._modelProperties.has(i)?r=this._modelProperties.get(i):(r=new Map,this._modelProperties.set(i,r)),r.set(t,n)}getModelProperty(e,t){const n=e.toString();if(this._modelProperties.has(n)){const e=this._modelProperties.get(n);return e.get(t)}}}var _i=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},wi=function(e,t){return function(n,i){t(n,i,e)}};class Ci{constructor(e,t,n){this._parent=e,this._editorId=t,this._styleSheet=n,this._refCount=0}ref(){this._refCount++}unref(){var e;this._refCount--,0===this._refCount&&(null===(e=this._styleSheet.parentNode)||void 0===e||e.removeChild(this._styleSheet),this._parent._removeEditorStyleSheets(this._editorId))}insertRule(e,t){const n=this._styleSheet.sheet;n.insertRule(e,t)}removeRulesContainingSelector(e){X["Q"](e,this._styleSheet)}}class Si{constructor(e){this._styleSheet=e}ref(){}unref(){}insertRule(e,t){const n=this._styleSheet.sheet;n.insertRule(e,t)}removeRulesContainingSelector(e){X["Q"](e,this._styleSheet)}}let xi=class extends yi{constructor(e,t){super(),this._decorationOptionProviders=new Map,this._editorStyleSheets=new Map,this._globalStyleSheet=e||null,this._themeService=t}_getOrCreateGlobalStyleSheet(){return this._globalStyleSheet||(this._globalStyleSheet=new Si(X["w"]())),this._globalStyleSheet}_getOrCreateStyleSheet(e){if(!e)return this._getOrCreateGlobalStyleSheet();const t=e.getContainerDomNode();if(!X["O"](t))return this._getOrCreateGlobalStyleSheet();const n=e.getId();if(!this._editorStyleSheets.has(n)){const e=new Ci(this,n,X["w"](t));this._editorStyleSheets.set(n,e)}return this._editorStyleSheets.get(n)}_removeEditorStyleSheets(e){this._editorStyleSheets.delete(e)}registerDecorationType(e,t,n,i,r){let o=this._decorationOptionProviders.get(t);if(!o){const s=this._getOrCreateStyleSheet(r),a={styleSheet:s,key:t,parentTypeKey:i,options:n||Object.create(null)};o=i?new Oi(this._themeService,s,a):new ki(e,this._themeService,s,a),this._decorationOptionProviders.set(t,o),this._onDecorationTypeRegistered.fire(t)}o.refCount++}removeDecorationType(e){const t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach(t=>t.removeDecorations(e))))}resolveDecorationOptions(e,t){const n=this._decorationOptionProviders.get(e);if(!n)throw new Error("Unknown decoration type key: "+e);return n.getOptions(this,t)}};xi=_i([wi(1,gi["b"])],xi);class Oi{constructor(e,t,n){this._styleSheet=t,this._styleSheet.ref(),this._parentTypeKey=n.parentTypeKey,this.refCount=0,this._beforeContentRules=new Ei(3,n,e),this._afterContentRules=new Ei(4,n,e)}getOptions(e,t){const n=e.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(n.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(n.afterContentClassName=this._afterContentRules.className),n}dispose(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()}}class ki{constructor(e,t,n,i){this._disposables=new we["b"],this.description=e,this._styleSheet=n,this._styleSheet.ref(),this.refCount=0;const r=e=>{const n=new Ei(e,i,t);if(this._disposables.add(n),n.hasContent)return n.className},o=e=>{const n=new Ei(e,i,t);return this._disposables.add(n),n.hasContent?{className:n.className,hasLetterSpacing:n.hasLetterSpacing}:null};this.className=r(0);const s=o(1);if(s&&(this.inlineClassName=s.className,this.inlineClassNameAffectsLetterSpacing=s.hasLetterSpacing),this.beforeContentClassName=r(3),this.afterContentClassName=r(4),i.options.beforeInjectedText&&i.options.beforeInjectedText.contentText){const e=o(5);this.beforeInjectedText={content:i.options.beforeInjectedText.contentText,inlineClassName:null===e||void 0===e?void 0:e.className,inlineClassNameAffectsLetterSpacing:(null===e||void 0===e?void 0:e.hasLetterSpacing)||i.options.beforeInjectedText.affectsLetterSpacing}}if(i.options.afterInjectedText&&i.options.afterInjectedText.contentText){const e=o(6);this.afterInjectedText={content:i.options.afterInjectedText.contentText,inlineClassName:null===e||void 0===e?void 0:e.className,inlineClassNameAffectsLetterSpacing:(null===e||void 0===e?void 0:e.hasLetterSpacing)||i.options.afterInjectedText.affectsLetterSpacing}}this.glyphMarginClassName=r(2);const a=i.options;this.isWholeLine=Boolean(a.isWholeLine),this.stickiness=a.rangeBehavior;const l=a.light&&a.light.overviewRulerColor||a.overviewRulerColor,c=a.dark&&a.dark.overviewRulerColor||a.overviewRulerColor;"undefined"===typeof l&&"undefined"===typeof c||(this.overviewRuler={color:l||c,darkColor:c||l,position:a.overviewRulerLane||pe["d"].Center})}getOptions(e,t){return t?{description:this.description,inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness,before:this.beforeInjectedText}:this}dispose(){this._disposables.dispose(),this._styleSheet.unref()}}const Li={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};",fontSize:"font-size:{0};",fontFamily:"font-family:{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};",padding:"padding:{0};",width:"width:{0};",height:"height:{0};"};class Ei{constructor(e,t,n){this._theme=n.getColorTheme(),this._ruleType=e,this._providerArgs=t,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;let i=Di.getClassName(this._providerArgs.key,e);this._providerArgs.parentTypeKey&&(i=i+" "+Di.getClassName(this._providerArgs.parentTypeKey,e)),this._className=i,this._unThemedSelector=Di.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,e),this._buildCSS(),this._usesThemeColors?this._themeListener=n.onDidColorThemeChange(e=>{this._theme=n.getColorTheme(),this._removeCSS(),this._buildCSS()}):this._themeListener=null}dispose(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)}get hasContent(){return this._hasContent}get hasLetterSpacing(){return this._hasLetterSpacing}get className(){return this._className}_buildCSS(){const e=this._providerArgs.options;let t,n,i;switch(this._ruleType){case 0:t=this.getCSSTextForModelDecorationClassName(e),n=this.getCSSTextForModelDecorationClassName(e.light),i=this.getCSSTextForModelDecorationClassName(e.dark);break;case 1:t=this.getCSSTextForModelDecorationInlineClassName(e),n=this.getCSSTextForModelDecorationInlineClassName(e.light),i=this.getCSSTextForModelDecorationInlineClassName(e.dark);break;case 2:t=this.getCSSTextForModelDecorationGlyphMarginClassName(e),n=this.getCSSTextForModelDecorationGlyphMarginClassName(e.light),i=this.getCSSTextForModelDecorationGlyphMarginClassName(e.dark);break;case 3:t=this.getCSSTextForModelDecorationContentClassName(e.before),n=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.before),i=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.before);break;case 4:t=this.getCSSTextForModelDecorationContentClassName(e.after),n=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.after),i=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.after);break;case 5:t=this.getCSSTextForModelDecorationContentClassName(e.beforeInjectedText),n=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.beforeInjectedText),i=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.beforeInjectedText);break;case 6:t=this.getCSSTextForModelDecorationContentClassName(e.afterInjectedText),n=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.afterInjectedText),i=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.afterInjectedText);break;default:throw new Error("Unknown rule type: "+this._ruleType)}const r=this._providerArgs.styleSheet;let o=!1;t.length>0&&(r.insertRule(`${this._unThemedSelector} {${t}}`,0),o=!0),n.length>0&&(r.insertRule(`.vs${this._unThemedSelector} {${n}}`,0),o=!0),i.length>0&&(r.insertRule(`.vs-dark${this._unThemedSelector}, .hc-black${this._unThemedSelector} {${i}}`,0),o=!0),this._hasContent=o}_removeCSS(){this._providerArgs.styleSheet.removeRulesContainingSelector(this._unThemedSelector)}getCSSTextForModelDecorationClassName(e){if(!e)return"";const t=[];return this.collectCSSText(e,["backgroundColor"],t),this.collectCSSText(e,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(e,t),t.join("")}getCSSTextForModelDecorationInlineClassName(e){if(!e)return"";const t=[];return this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],t),e.letterSpacing&&(this._hasLetterSpacing=!0),t.join("")}getCSSTextForModelDecorationContentClassName(e){if(!e)return"";const t=[];if("undefined"!==typeof e){if(this.collectBorderSettingsCSSText(e,t),"undefined"!==typeof e.contentIconPath&&t.push(Fe["w"](Li.contentIconPath,X["s"](z["a"].revive(e.contentIconPath)))),"string"===typeof e.contentText){const n=e.contentText.match(/^.*$/m)[0],i=n.replace(/['\\]/g,"\\$&");t.push(Fe["w"](Li.contentText,i))}this.collectCSSText(e,["fontStyle","fontWeight","fontSize","fontFamily","textDecoration","color","opacity","backgroundColor","margin","padding"],t),this.collectCSSText(e,["width","height"],t)&&t.push("display:inline-block;")}return t.join("")}getCSSTextForModelDecorationGlyphMarginClassName(e){if(!e)return"";const t=[];return"undefined"!==typeof e.gutterIconPath&&(t.push(Fe["w"](Li.gutterIconPath,X["s"](z["a"].revive(e.gutterIconPath)))),"undefined"!==typeof e.gutterIconSize&&t.push(Fe["w"](Li.gutterIconSize,e.gutterIconSize))),t.join("")}collectBorderSettingsCSSText(e,t){return!!this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)&&(t.push(Fe["w"]("box-sizing: border-box;")),!0)}collectCSSText(e,t,n){const i=n.length;for(let r of t){const t=this.resolveValue(e[r]);"string"===typeof t&&n.push(Fe["w"](Li[r],t))}return n.length!==i}resolveValue(e){if(Object(fe["b"])(e)){this._usesThemeColors=!0;const t=this._theme.getColor(e.id);return t?t.toString():"transparent"}return e}}class Di{static getClassName(e,t){return"ced-"+e+"-"+t}static getSelector(e,t,n){let i=".monaco-editor ."+this.getClassName(e,n);return t&&(i=i+"."+this.getClassName(t,n)),3===n?i+="::before":4===n&&(i+="::after"),i}}var Ii=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Mi=function(e,t){return function(n,i){t(n,i,e)}};let Ti=class extends xi{constructor(e,t,n){super(e,n),this.onCodeEditorAdd(()=>this._checkContextKey()),this.onCodeEditorRemove(()=>this._checkContextKey()),this._editorIsOpen=t.createKey("editorIsOpen",!1),this._activeCodeEditor=null}_checkContextKey(){let e=!1;for(const t of this.listCodeEditors())if(!t.isSimpleWidget){e=!0;break}this._editorIsOpen.set(e)}setActiveCodeEditor(e){this._activeCodeEditor=e}getActiveCodeEditor(){return this._activeCodeEditor}openCodeEditor(e,t,n){return t?Promise.resolve(this.doOpenEditor(t,e)):Promise.resolve(null)}doOpenEditor(e,t){const n=this.findModel(e,t.resource);if(!n){if(t.resource){const n=t.resource.scheme;if(n===te["c"].http||n===te["c"].https)return Object(X["Z"])(t.resource.toString()),e}return null}const i=t.options?t.options.selection:null;if(i)if("number"===typeof i.endLineNumber&&"number"===typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{const t={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(t),e.revealPositionInCenter(t,1)}return e}findModel(e,t){const n=e.getModel();return n&&n.uri.toString()!==t.toString()?null:n}};Ti=Ii([Mi(1,hi["b"]),Mi(2,gi["b"])],Ti);var Ai=n("b9b4"),Ni=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Pi=function(e,t){return function(n,i){t(n,i,e)}};let ji=0,Ri=!1;function Fi(){Ri||(Ri=!0,oi["b"](document.body))}let Bi=class extends si["a"]{constructor(e,t,n,i,r,o,s,a,l,c){const u=Object.assign({},t);u.ariaLabel=u.ariaLabel||Rn["h"].editorViewAccessibleLabel,u.ariaLabel=u.ariaLabel+";"+Rn["h"].accessibilityHelpMessage,super(e,u,{},n,i,r,o,a,l,c),this._standaloneKeybindingService=s instanceof Gn?s:null,Fi()}addCommand(e,t,n){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;let i="DYNAMIC_"+ ++ji,r=hi["a"].deserialize(n);return this._standaloneKeybindingService.addDynamicKeybinding(i,e,t,r),i}createContextKey(e,t){return this._contextKeyService.createKey(e,t)}addAction(e){if("string"!==typeof e.id||"string"!==typeof e.label||"function"!==typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),we["a"].None;const t=e.id,n=e.label,i=hi["a"].and(hi["a"].equals("editorId",this.getId()),hi["a"].deserialize(e.precondition)),r=e.keybindings,o=hi["a"].and(i,hi["a"].deserialize(e.keybindingContext)),s=e.contextMenuGroupId||null,a=e.contextMenuOrder||0,l=(t,...n)=>Promise.resolve(e.run(this,...n)),c=new we["b"],u=this.getId()+":"+t;if(c.add(ie["a"].registerCommand(u,l)),s){let e={command:{id:u,title:n},when:i,group:s,order:a};c.add(ui["d"].appendMenuItem(ui["b"].EditorContext,e))}if(Array.isArray(r))for(const d of r)c.add(this._standaloneKeybindingService.addDynamicKeybinding(u,d,l,o));let h=new li["a"](u,n,n,i,l,this._contextKeyService);return this._actions[t]=h,c.add(Object(we["i"])(()=>{delete this._actions[t]})),c}_triggerCommand(e,t){if(this._codeEditorService instanceof Ti)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(e,t)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(e,t)}};Bi=Ni([Pi(2,fi["a"]),Pi(3,Z["a"]),Pi(4,ie["b"]),Pi(5,hi["b"]),Pi(6,pi["a"]),Pi(7,gi["b"]),Pi(8,Pn["a"]),Pi(9,mi["b"])],Bi);let Wi=class extends Bi{constructor(e,t,n,i,r,o,s,a,l,c,u,h,d,f,p){const g=Object.assign({},t);ti(h,g,!1);const m=c.registerEditorContainer(e);"string"===typeof g.theme&&c.setTheme(g.theme),"undefined"!==typeof g.autoDetectHighContrast&&c.setAutoDetectHighContrast(Boolean(g.autoDetectHighContrast));let v,b=g.model;if(delete g.model,super(e,g,i,r,o,s,a,c,u,d),this._contextViewService=l,this._configurationService=h,this._standaloneThemeService=c,this._register(n),this._register(m),"undefined"===typeof b?(v=zi(f,p,g.value||"",g.language||Ai["a"].text,void 0),this._ownsModel=!0):(v=b,this._ownsModel=!1),this._attachModel(v),v){let e={oldModelUrl:null,newModelUrl:v.uri};this._onDidChangeModel.fire(e)}}dispose(){super.dispose()}updateOptions(e){ti(this._configurationService,e,!1),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_attachModel(e){super._attachModel(e),this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)}_postDetachModelCleanup(e){super._postDetachModelCleanup(e),e&&this._ownsModel&&(e.dispose(),this._ownsModel=!1)}};Wi=Ni([Pi(3,fi["a"]),Pi(4,Z["a"]),Pi(5,ie["b"]),Pi(6,hi["b"]),Pi(7,pi["a"]),Pi(8,di["b"]),Pi(9,ci["a"]),Pi(10,Pn["a"]),Pi(11,vn["a"]),Pi(12,mi["b"]),Pi(13,ft["a"]),Pi(14,be["a"])],Wi);let Vi=class extends ai["a"]{constructor(e,t,n,i,r,o,s,a,l,c,u,h,d,f,p){const g=Object.assign({},t);ti(h,g,!0);const m=c.registerEditorContainer(e);"string"===typeof g.theme&&c.setTheme(g.theme),"undefined"!==typeof g.autoDetectHighContrast&&c.setAutoDetectHighContrast(Boolean(g.autoDetectHighContrast)),super(e,g,{},p,a,r,i,l,c,u,d,f),this._contextViewService=s,this._configurationService=h,this._standaloneThemeService=c,this._register(n),this._register(m),this._contextViewService.setContainer(this._containerDomElement)}dispose(){super.dispose()}updateOptions(e){ti(this._configurationService,e,!0),"string"===typeof e.theme&&this._standaloneThemeService.setTheme(e.theme),"undefined"!==typeof e.autoDetectHighContrast&&this._standaloneThemeService.setAutoDetectHighContrast(Boolean(e.autoDetectHighContrast)),super.updateOptions(e)}_createInnerEditor(e,t,n){return e.createInstance(Bi,t,n)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(e,t,n){return this.getModifiedEditor().addCommand(e,t,n)}createContextKey(e,t){return this.getModifiedEditor().createContextKey(e,t)}addAction(e){return this.getModifiedEditor().addAction(e)}};function zi(e,t,n,i,r){if(n=n||"",!i){const i=n.indexOf("\n");let o=n;return-1!==i&&(o=n.substring(0,i)),Hi(e,n,t.createByFilepathOrFirstLine(r||null,o),r)}return Hi(e,n,t.create(i),r)}function Hi(e,t,n,i){return e.createModel(t,n,i)}Vi=Ni([Pi(3,fi["a"]),Pi(4,hi["b"]),Pi(5,pi["a"]),Pi(6,di["b"]),Pi(7,ve["a"]),Pi(8,Z["a"]),Pi(9,ci["a"]),Pi(10,Pn["a"]),Pi(11,vn["a"]),Pi(12,di["a"]),Pi(13,bi["a"]),Pi(14,vi["a"])],Vi);class Ui{constructor(e){this._languageIdentifier=e}getId(){return this._languageIdentifier.language}}var qi=n("32a4"),$i=n("89cd");const Ki=Object.prototype.hasOwnProperty;class Gi extends we["a"]{constructor(e=!0,t=!1){super(),this._onDidChange=this._register(new W["b"]),this.onDidChange=this._onDidChange.event,this._warnOnOverwrite=t,this._nextLanguageId2=1,this._languageIdToLanguage=[],this._languageToLanguageId=Object.create(null),this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},e&&(this._initializeFromRegistry(),this._register(qi["a"].onDidChangeLanguages(e=>this._initializeFromRegistry())))}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};const e=qi["a"].getLanguages();this._registerLanguages(e)}_registerLanguages(e){for(const t of e)this._registerLanguage(t);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(e=>{let t=this._languages[e];t.name&&(this._nameMap[t.name]=t.identifier),t.aliases.forEach(e=>{this._lowercaseNameMap[e.toLowerCase()]=t.identifier}),t.mimetypes.forEach(e=>{this._mimeTypesMap[e]=t.identifier})}),$i["a"].as(yn["a"].Configuration).registerOverrideIdentifiers(qi["a"].getLanguages().map(e=>e.id)),this._onDidChange.fire()}_getLanguageId(e){if(this._languageToLanguageId[e])return this._languageToLanguageId[e];const t=this._nextLanguageId2++;return this._languageIdToLanguage[t]=e,this._languageToLanguageId[e]=t,t}_registerLanguage(e){const t=e.id;let n;if(Ki.call(this._languages,t))n=this._languages[t];else{const e=this._getLanguageId(t);n={identifier:new ge["u"](t,e),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]},this._languages[t]=n}this._mergeLanguage(n,e)}_mergeLanguage(e,t){const n=t.id;let i=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0&&(e.mimetypes.push(...t.mimetypes),i=t.mimetypes[0]),i||(i="text/x-"+n,e.mimetypes.push(i)),Array.isArray(t.extensions)){t.configuration?e.extensions=t.extensions.concat(e.extensions):e.extensions=e.extensions.concat(t.extensions);for(let e of t.extensions)Ai["c"]({id:n,mime:i,extension:e},this._warnOnOverwrite)}if(Array.isArray(t.filenames))for(let a of t.filenames)Ai["c"]({id:n,mime:i,filename:a},this._warnOnOverwrite),e.filenames.push(a);if(Array.isArray(t.filenamePatterns))for(let a of t.filenamePatterns)Ai["c"]({id:n,mime:i,filepattern:a},this._warnOnOverwrite);if("string"===typeof t.firstLine&&t.firstLine.length>0){let e=t.firstLine;"^"!==e.charAt(0)&&(e="^"+e);try{let t=new RegExp(e);Fe["O"](t)||Ai["c"]({id:n,mime:i,firstline:t},this._warnOnOverwrite)}catch(s){Object(Ce["e"])(s)}}e.aliases.push(n);let r=null;if("undefined"!==typeof t.aliases&&Array.isArray(t.aliases)&&(r=0===t.aliases.length?[null]:t.aliases),null!==r)for(const a of r)a&&0!==a.length&&e.aliases.push(a);let o=null!==r&&r.length>0;if(o&&null===r[0]);else{let t=(o?r[0]:null)||n;!o&&e.name||(e.name=t)}t.configuration&&e.configurationFiles.push(t.configuration)}isRegisteredMode(e){return!!Ki.call(this._mimeTypesMap,e)||Ki.call(this._languages,e)}getModeIdForLanguageNameLowercase(e){return Ki.call(this._lowercaseNameMap,e)?this._lowercaseNameMap[e].language:null}extractModeIds(e){return e?e.split(",").map(e=>e.trim()).map(e=>Ki.call(this._mimeTypesMap,e)?this._mimeTypesMap[e].language:e).filter(e=>Ki.call(this._languages,e)):[]}getLanguageIdentifier(e){if(e===me["b"]||0===e)return me["a"];let t;if("string"===typeof e)t=e;else if(t=this._languageIdToLanguage[e],!t)return null;return Ki.call(this._languages,t)?this._languages[t].identifier:null}getModeIdsFromFilepathOrFirstLine(e,t){if(!e&&!t)return[];let n=Ai["b"](e,t);return this.extractModeIds(n.join(","))}}class Yi{constructor(e,t){let n;this._selector=t,this.languageIdentifier=this._selector(),this._onDidChange=new W["b"]({onFirstListenerAdd:()=>{n=e(()=>this._evaluate())},onLastListenerRemove:()=>{n.dispose()}}),this.onDidChange=this._onDidChange.event}_evaluate(){let e=this._selector();e.id!==this.languageIdentifier.id&&(this.languageIdentifier=e,this._onDidChange.fire(this.languageIdentifier))}}class Zi extends we["a"]{constructor(e=!1){super(),this._onDidCreateMode=this._register(new W["b"]),this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=this._register(new W["b"]({leakWarningThreshold:200})),this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=this._register(new Gi(!0,e)),this._register(this._registry.onDidChange(()=>this._onLanguagesMaybeChanged.fire()))}isRegisteredMode(e){return this._registry.isRegisteredMode(e)}getModeIdForLanguageName(e){return this._registry.getModeIdForLanguageNameLowercase(e)}getModeIdByFilepathOrFirstLine(e,t){const n=this._registry.getModeIdsFromFilepathOrFirstLine(e,t);return Object(gt["j"])(n,null)}getModeId(e){const t=this._registry.extractModeIds(e);return Object(gt["j"])(t,null)}getLanguageIdentifier(e){return this._registry.getLanguageIdentifier(e)}create(e){return new Yi(this.onLanguagesMaybeChanged,()=>{const t=this.getModeId(e);return this._createModeAndGetLanguageIdentifier(t)})}createByFilepathOrFirstLine(e,t){return new Yi(this.onLanguagesMaybeChanged,()=>{const n=this.getModeIdByFilepathOrFirstLine(e,t);return this._createModeAndGetLanguageIdentifier(n)})}_createModeAndGetLanguageIdentifier(e){const t=this.getLanguageIdentifier(e||"plaintext")||me["a"];return this._getOrCreateMode(t.language),t}triggerMode(e){const t=this.getModeId(e);this._getOrCreateMode(t||"plaintext")}_getOrCreateMode(e){if(!this._instantiatedModes.hasOwnProperty(e)){let t=this.getLanguageIdentifier(e)||me["a"];this._instantiatedModes[e]=new Ui(t),this._onDidCreateMode.fire(this._instantiatedModes[e])}return this._instantiatedModes[e]}}var Xi=n("d1a7"),Qi=n("ceb8");class Ji{constructor(e,t,n,i,r){this._parsedThemeRuleBrand=void 0,this.token=e,this.index=t,this.fontStyle=n,this.foreground=i,this.background=r}}function er(e){if(!e||!Array.isArray(e))return[];let t=[],n=0;for(let i=0,r=e.length;i<r;i++){let r=e[i],o=-1;if("string"===typeof r.fontStyle){o=0;let e=r.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++){let n=e[t];switch(n){case"italic":o|=1;break;case"bold":o|=2;break;case"underline":o|=4;break}}}let s=null;"string"===typeof r.foreground&&(s=r.foreground);let a=null;"string"===typeof r.background&&(a=r.background),t[n++]=new Ji(r.token||"",i,o,s,a)}return t}function tr(e,t){e.sort((e,t)=>{let n=ar(e.token,t.token);return 0!==n?n:e.index-t.index});let n=0,i="000000",r="ffffff";while(e.length>=1&&""===e[0].token){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(i=t.foreground),null!==t.background&&(r=t.background)}let o=new ir;for(let u of t)o.getId(u);let s=o.getId(i),a=o.getId(r),l=new lr(n,s,a),c=new cr(l);for(let u=0,h=e.length;u<h;u++){let t=e[u];c.insert(t.token,t.fontStyle,o.getId(t.foreground),o.getId(t.background))}return new rr(o,c)}const nr=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class ir{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(e){if(null===e)return 0;const t=e.match(nr);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();let n=this._color2id.get(e);return n||(n=++this._lastColorId,this._color2id.set(e,n),this._id2color[n]=Qi["a"].fromHex("#"+e),n)}getColorMap(){return this._id2color.slice(0)}}class rr{constructor(e,t){this._colorMap=e,this._root=t,this._cache=new Map}static createFromRawTokenTheme(e,t){return this.createFromParsedTokenTheme(er(e),t)}static createFromParsedTokenTheme(e,t){return tr(e,t)}getColorMap(){return this._colorMap.getColorMap()}_match(e){return this._root.match(e)}match(e,t){let n=this._cache.get(t);if("undefined"===typeof n){let e=this._match(t),i=sr(t);n=(e.metadata|i<<8)>>>0,this._cache.set(t,n)}return(n|e<<0)>>>0}}const or=/\b(comment|string|regex|regexp)\b/;function sr(e){let t=e.match(or);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 4;case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}function ar(e,t){return e<t?-1:e>t?1:0}class lr{constructor(e,t,n){this._themeTrieElementRuleBrand=void 0,this._fontStyle=e,this._foreground=t,this._background=n,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}clone(){return new lr(this._fontStyle,this._foreground,this._background)}acceptOverwrite(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}}class cr{constructor(e){this._themeTrieElementBrand=void 0,this._mainRule=e,this._children=new Map}match(e){if(""===e)return this._mainRule;let t,n,i=e.indexOf(".");-1===i?(t=e,n=""):(t=e.substring(0,i),n=e.substring(i+1));let r=this._children.get(t);return"undefined"!==typeof r?r.match(n):this._mainRule}insert(e,t,n,i){if(""===e)return void this._mainRule.acceptOverwrite(t,n,i);let r,o,s=e.indexOf(".");-1===s?(r=e,o=""):(r=e.substring(0,s),o=e.substring(s+1));let a=this._children.get(r);"undefined"===typeof a&&(a=new cr(this._mainRule.clone()),this._children.set(r,a)),a.insert(o,t,n,i)}}function ur(e){let t=[];for(let n=1,i=e.length;n<i;n++){let 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")}var hr=n("918c"),dr=n("303e");const fr={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:"C700C7"}],colors:{[dr["r"]]:"#FFFFFE",[dr["B"]]:"#000000",[dr["J"]]:"#E5EBF1",[hr["h"]]:"#D3D3D3",[hr["a"]]:"#939393",[dr["T"]]:"#ADD6FF4D"}},pr={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:{[dr["r"]]:"#1E1E1E",[dr["B"]]:"#D4D4D4",[dr["J"]]:"#3A3D41",[hr["h"]]:"#404040",[hr["a"]]:"#707070",[dr["T"]]:"#ADD6FF26"}},gr={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:{[dr["r"]]:"#000000",[dr["B"]]:"#FFFFFF",[hr["h"]]:"#FFFFFF",[hr["a"]]:"#FFFFFF"}};var mr=n("9c41"),vr=n("bf5b");function br(){const e=new W["b"],t=Object(vr["a"])();return t.onDidChange(()=>e.fire()),{onDidChange:e.event,getCSS(){const e={},n=n=>{let i=n.defaults;while(gi["d"].isThemeIcon(i)){const e=t.getIcon(i.id);if(!e)return;i=e.defaults}const r=i.fontId;if(r){const o=t.getIconFont(r);if(o)return e[r]=o,`.codicon-${n.id}:before { content: '${i.fontCharacter}'; font-family: ${Object(X["r"])(r)}; }`}return`.codicon-${n.id}:before { content: '${i.fontCharacter}'; }`},i=[];for(let r of t.getIcons()){const e=n(r);e&&i.push(e)}for(let t in e){const n=e[t],r=n.definition.src.map(e=>`${Object(X["s"])(e.location)} format('${e.format}')`).join(", ");i.push(`@font-face { src: ${r}; font-family: ${Object(X["r"])(t)}; }`)}return i.join("\n")}}}const yr="vs",_r="vs-dark",wr="hc-black",Cr=$i["a"].as(dr["a"].ColorContribution),Sr=$i["a"].as(gi["a"].ThemingContribution);class xr{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;let n=t.base;e.length>0?(Or(e)?this.id=e:this.id=n+" "+e,this.themeName=e):(this.id=n,this.themeName=n),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const e=new Map;for(let t in this.themeData.colors)e.set(t,Qi["a"].fromHex(this.themeData.colors[t]));if(this.themeData.inherit){let t=kr(this.themeData.base);for(let n in t.colors)e.has(n)||e.set(n,Qi["a"].fromHex(t.colors[n]))}this.colors=e}return this.colors}getColor(e,t){const n=this.getColors().get(e);return n||(!1!==t?this.getDefault(e):void 0)}getDefault(e){let t=this.defaultColors[e];return t||(t=Cr.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)}get type(){switch(this.base){case yr:return mr["a"].LIGHT;case wr:return mr["a"].HIGH_CONTRAST;default:return mr["a"].DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){let n=kr(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=rr.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,n){const i=this.tokenTheme._match([e].concat(t).join(".")),r=i.metadata,o=ge["E"].getForeground(r),s=ge["E"].getFontStyle(r);return{foreground:o,italic:Boolean(1&s),bold:Boolean(2&s),underline:Boolean(4&s)}}}function Or(e){return e===yr||e===_r||e===wr}function kr(e){switch(e){case yr:return fr;case _r:return pr;case wr:return gr}}function Lr(e){let t=kr(e);return new xr(e,t)}class Er extends we["a"]{constructor(){super(),this._onColorThemeChange=this._register(new W["b"]),this.onDidColorThemeChange=this._onColorThemeChange.event,this._environment=Object.create(null),this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(yr,Lr(yr)),this._knownThemes.set(_r,Lr(_r)),this._knownThemes.set(wr,Lr(wr));const e=br();this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(yr),e.onDidChange(()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}),X["m"]("(forced-colors: active)",()=>{this._updateActualTheme()})}registerEditorContainer(e){return X["O"](e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=X["w"](),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.textContent=this._allCSS,this._styleElements.push(this._globalStyleElement)),we["a"].None}_registerShadowDomContainer(e){const t=X["w"](e);return t.className="monaco-colors",t.textContent=this._allCSS,this._styleElements.push(t),{dispose:()=>{for(let e=0;e<this._styleElements.length;e++)if(this._styleElements[e]===t)return void this._styleElements.splice(e,1)}}}defineTheme(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!Or(t.base)&&!Or(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new xr(e,t)),Or(e)&&this._knownThemes.forEach(t=>{t.base===e&&t.notifyBaseUpdated()}),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(yr),this._desiredTheme=t,this._updateActualTheme()}_updateActualTheme(){const e=this._autoDetectHighContrast&&window.matchMedia("(forced-colors: active)").matches?this._knownThemes.get(wr):this._desiredTheme;this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._updateActualTheme()}_updateThemeOrColorMap(){let e=[],t={},n={addRule:n=>{t[n]||(e.push(n),t[n]=!0)}};Sr.getThemingParticipants().forEach(e=>e(this._theme,n,this._environment));const i=this._colorMapOverride||this._theme.tokenTheme.getColorMap();n.addRule(ur(i)),this._themeCSS=e.join("\n"),this._updateCSS(),ge["F"].setColorMap(i),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS}\n${this._themeCSS}`,this._styleElements.forEach(e=>e.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}}var Dr=n("258a"),Ir=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Mr=function(e,t){return function(n,i){t(n,i,e)}};const Tr="data-keybinding-context";class Ar{constructor(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value["_contextId"]=e}setValue(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)}removeValue(e){return e in this._value&&(delete this._value[e],!0)}getValue(e){const t=this._value[e];return"undefined"===typeof t&&this._parent?this._parent.getValue(e):t}}class Nr extends Ar{constructor(){super(-1,null)}setValue(e,t){return!1}removeValue(e){return!1}getValue(e){}}Nr.INSTANCE=new Nr;class Pr extends Ar{constructor(e,t,n){super(e,null),this._configurationService=t,this._values=J["c"].forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration(e=>{if(6===e.source){const e=Array.from(Dr["a"].map(this._values,([e])=>e));this._values.clear(),n.fire(new Fr(e))}else{const t=[];for(const n of e.affectedKeys){const e="config."+n,i=this._values.findSuperstr(e);void 0!==i&&(t.push(...Dr["a"].map(i,([e])=>e)),this._values.deleteSuperstr(e)),this._values.has(e)&&(t.push(e),this._values.delete(e))}n.fire(new Fr(t))}})}dispose(){this._listener.dispose()}getValue(e){if(0!==e.indexOf(Pr._keyPrefix))return super.getValue(e);if(this._values.has(e))return this._values.get(e);const t=e.substr(Pr._keyPrefix.length),n=this._configurationService.getValue(t);let i=void 0;switch(typeof n){case"number":case"boolean":case"string":i=n;break;default:i=Array.isArray(n)?JSON.stringify(n):n}return this._values.set(e,i),i}setValue(e,t){return super.setValue(e,t)}removeValue(e){return super.removeValue(e)}}Pr._keyPrefix="config.";class jr{constructor(e,t,n){this._service=e,this._key=t,this._defaultValue=n,this.reset()}set(e){this._service.setContext(this._key,e)}reset(){"undefined"===typeof this._defaultValue?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class Rr{constructor(e){this.key=e}affectsSome(e){return e.has(this.key)}}class Fr{constructor(e){this.keys=e}affectsSome(e){for(const t of this.keys)if(e.has(t))return!0;return!1}}class Br{constructor(e){this.events=e}affectsSome(e){for(const t of this.events)if(t.affectsSome(e))return!0;return!1}}class Wr{constructor(e){this._onDidChangeContext=new W["e"]({merge:e=>new Br(e)}),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=e}createKey(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new jr(this,e,t)}bufferChangeEvents(e){this._onDidChangeContext.pause();try{e()}finally{this._onDidChangeContext.resume()}}createScoped(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new zr(this,e)}contextMatchesRules(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const t=this.getContextValuesContainer(this._myContextId),n=kn.contextMatchesRules(t,e);return n}getContextKeyValue(e){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(e)}setContext(e,t){if(this._isDisposed)return;const n=this.getContextValuesContainer(this._myContextId);n&&n.setValue(e,t)&&this._onDidChangeContext.fire(new Rr(e))}removeContext(e){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContext.fire(new Rr(e))}getContext(e){return this._isDisposed?Nr.INSTANCE:this.getContextValuesContainer(Hr(e))}}let Vr=class extends Wr{constructor(e){super(0),this._contexts=new Map,this._toDispose=new we["b"],this._lastContextId=0;const t=new Pr(this._myContextId,e,this._onDidChangeContext);this._contexts.set(this._myContextId,t),this._toDispose.add(t)}dispose(){this._onDidChangeContext.dispose(),this._isDisposed=!0,this._toDispose.dispose()}getContextValuesContainer(e){return this._isDisposed?Nr.INSTANCE:this._contexts.get(e)||Nr.INSTANCE}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");let t=++this._lastContextId;return this._contexts.set(t,new Ar(t,this.getContextValuesContainer(e))),t}disposeContext(e){this._isDisposed||this._contexts.delete(e)}};Vr=Ir([Mr(0,vn["a"])],Vr);class zr extends Wr{constructor(e,t){if(super(e.createChildContext()),this._parentChangeListener=new we["d"],this._parent=e,this._updateParentChangeListener(),this._domNode=t,this._domNode.hasAttribute(Tr)){let e="";this._domNode.classList&&(e=Array.from(this._domNode.classList.values()).join(", ")),console.error("Element already has context attribute"+(e?": "+e:""))}this._domNode.setAttribute(Tr,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(this._onDidChangeContext.fire,this._onDidChangeContext)}dispose(){this._isDisposed||(this._onDidChangeContext.dispose(),this._parent.disposeContext(this._myContextId),this._parentChangeListener.dispose(),this._domNode.removeAttribute(Tr),this._isDisposed=!0)}getContextValuesContainer(e){return this._isDisposed?Nr.INSTANCE:this._parent.getContextValuesContainer(e)}createChildContext(e=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)}disposeContext(e){this._isDisposed||this._parent.disposeContext(e)}}function Hr(e){while(e){if(e.hasAttribute(Tr)){const t=e.getAttribute(Tr);return t?parseInt(t,10):NaN}e=e.parentElement}return 0}ie["a"].registerCommand(hi["d"],(function(e,t,n){e.get(hi["b"]).createKey(String(t),n)})),ie["a"].registerCommand({id:"getContextKeyInfo",handler(){return[...hi["c"].all()].sort((e,t)=>e.key.localeCompare(t.key))},description:{description:Object(xn["a"])("getContextKeyInfo","A command that returns information about context keys"),args:[]}}),ie["a"].registerCommand("_generateContextKeyInfo",(function(){const e=[],t=new Set;for(let n of hi["c"].all())t.has(n.key)||(t.add(n.key),e.push(n));e.sort((e,t)=>e.key.localeCompare(t.key)),console.log(JSON.stringify(e,void 0,2))}));n("7a2c");var Ur,qr=n("f070"),$r=n("5aa5"),Kr=n("1898"),Gr=(n("4d3d"),n("9ee1")),Yr=n("0a31");function Zr(e,t,n){const i=n.mode===Ur.ALIGN?n.offset:n.offset+n.size,r=n.mode===Ur.ALIGN?n.offset+n.size:n.offset;return 0===n.position?t<=e-i?i:t<=r?r-t:Math.max(e-t,0):t<=r?r-t:t<=e-i?i:0}(function(e){e[e["AVOID"]=0]="AVOID",e[e["ALIGN"]=1]="ALIGN"})(Ur||(Ur={}));class Xr extends we["a"]{constructor(e,t){super(),this.container=null,this.delegate=null,this.toDisposeOnClean=we["a"].None,this.toDisposeOnSetContainer=we["a"].None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=X["a"](".context-view"),this.useFixedPosition=!1,this.useShadowDOM=!1,X["K"](this.view),this.setContainer(e,t),this._register(Object(we["i"])(()=>this.setContainer(null,1)))}setContainer(e,t){var n;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,null===(n=this.shadowRootHostElement)||void 0===n||n.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),e){if(this.container=e,this.useFixedPosition=1!==t,this.useShadowDOM=3===t,this.useShadowDOM){this.shadowRootHostElement=X["a"](".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent=Qr,this.shadowRoot.appendChild(e),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(X["a"]("slot"))}else this.container.appendChild(this.view);const n=new we["b"];Xr.BUBBLE_UP_EVENTS.forEach(e=>{n.add(X["o"](this.container,e,e=>{this.onDOMEvent(e,!1)}))}),Xr.BUBBLE_DOWN_EVENTS.forEach(e=>{n.add(X["o"](this.container,e,e=>{this.onDOMEvent(e,!0)},!0))}),this.toDisposeOnSetContainer=n}}show(e){this.isVisible()&&this.hide(),X["t"](this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex="2500",this.view.style.position=this.useFixedPosition?"fixed":"absolute",X["W"](this.view),this.toDisposeOnClean=e.render(this.view)||we["a"].None,this.delegate=e,this.doLayout(),this.delegate.focus&&this.delegate.focus()}getViewElement(){return this.view}layout(){this.isVisible()&&(!1!==this.delegate.canRelayout||Se["c"]&&Yr["a"].pointerEvents?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide())}doLayout(){if(!this.isVisible())return;let e,t=this.delegate.getAnchor();if(X["M"](t)){let n=X["D"](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};const n=X["I"](this.view),i=X["H"](this.view),r=this.delegate.anchorPosition||0,o=this.delegate.anchorAlignment||0,s=this.delegate.anchorAxisAlignment||0;let a,l;if(0===s){const t={offset:e.top-window.pageYOffset,size:e.height,position:0===r?0:1},s={offset:e.left,size:e.width,position:0===o?0:1,mode:Ur.ALIGN};a=Zr(window.innerHeight,i,t)+window.pageYOffset,Gr["a"].intersects({start:a,end:a+i},{start:t.offset,end:t.offset+t.size})&&(s.mode=Ur.AVOID),l=Zr(window.innerWidth,n,s)}else{const t={offset:e.left,size:e.width,position:0===o?0:1},s={offset:e.top,size:e.height,position:0===r?0:1,mode:Ur.ALIGN};l=Zr(window.innerWidth,n,t),Gr["a"].intersects({start:l,end:l+n},{start:t.offset,end:t.offset+t.size})&&(s.mode=Ur.AVOID),a=Zr(window.innerHeight,i,s)+window.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(0===r?"bottom":"top"),this.view.classList.add(0===o?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const c=X["D"](this.container);this.view.style.top=a-(this.useFixedPosition?X["D"](this.view).top:c.top)+"px",this.view.style.left=l-(this.useFixedPosition?X["D"](this.view).left:c.left)+"px",this.view.style.width="initial"}hide(e){const t=this.delegate;this.delegate=null,(null===t||void 0===t?void 0:t.onHide)&&t.onHide(e),this.toDisposeOnClean.dispose(),X["K"](this.view)}isVisible(){return!!this.delegate}onDOMEvent(e,t){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):t&&!X["L"](e.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}Xr.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],Xr.BUBBLE_DOWN_EVENTS=["click"];let Qr='\n\t:host {\n\t\tall: initial; /* 1st rule so subsequent properties are reset. */\n\t}\n\n\t@font-face {\n\t\tfont-family: "codicon";\n\t\tsrc: url("./codicon.ttf?5d4d76ab2ce5108968ad644d591a16a6") format("truetype");\n\t}\n\n\t.codicon[class*=\'codicon-\'] {\n\t\tfont: normal normal normal 16px/1 codicon;\n\t\tdisplay: inline-block;\n\t\ttext-decoration: none;\n\t\ttext-rendering: auto;\n\t\ttext-align: center;\n\t\t-webkit-font-smoothing: antialiased;\n\t\t-moz-osx-font-smoothing: grayscale;\n\t\tuser-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t}\n\n\t:host {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;\n\t}\n\n\t:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }\n\t:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }\n\t:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }\n\t:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }\n\t:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }\n\n\t:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }\n\t:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }\n\t:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }\n\t:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }\n\t:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }\n\n\t:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }\n\t:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }\n';var Jr=n("561a"),eo=n("eff2"),to=n("b9db"),no=n("0f70"),io=n("5d28"),ro=n("1097");const oo=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,so=/(&)?(&)([^\s&])/g,ao=Object(Jr["e"])("menu-selection",Jr["b"].check),lo=Object(Jr["e"])("menu-submenu",Jr["b"].chevronRight);var co;(function(e){e[e["Right"]=0]="Right",e[e["Left"]=1]="Left"})(co||(co={}));class uo extends $r["a"]{constructor(e,t,n={}){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");const i=document.createElement("div");i.classList.add("monaco-menu"),i.setAttribute("role","presentation"),super(i,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,n,r),context:n.context,actionRunner:n.actionRunner,ariaLabel:n.ariaLabel,focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...Se["f"]||Se["d"]?[10]:[]],keyDown:!0}}),this.menuElement=i,this.actionsList.setAttribute("role","menu"),this.actionsList.tabIndex=0,this.menuDisposables=this._register(new we["b"]),this.initializeStyleSheet(e),Object(X["i"])(i,X["d"].KEY_DOWN,e=>{const t=new hn["a"](e);t.equals(2)&&e.preventDefault()}),n.enableMnemonics&&this.menuDisposables.add(Object(X["i"])(i,X["d"].KEY_DOWN,e=>{const t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){X["c"].stop(e,!0);const n=this.mnemonics.get(t);if(1===n.length&&(n[0]instanceof fo&&n[0].container&&this.focusItemByElement(n[0].container),n[0].onClick(e)),n.length>1){const e=n.shift();e&&e.container&&(this.focusItemByElement(e.container),n.push(e)),this.mnemonics.set(t,n)}}})),Se["d"]&&this._register(Object(X["i"])(i,X["d"].KEY_DOWN,e=>{const t=new hn["a"](e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),X["c"].stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),X["c"].stop(e,!0))})),this._register(Object(X["i"])(this.domNode,X["d"].MOUSE_OUT,e=>{let t=e.relatedTarget;Object(X["L"])(t,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())})),this._register(Object(X["i"])(this.actionsList,X["d"].MOUSE_OVER,e=>{let t=e.target;if(t&&Object(X["L"])(t,this.actionsList)&&t!==this.actionsList){while(t.parentElement!==this.actionsList&&null!==t.parentElement)t=t.parentElement;if(t.classList.contains("action-item")){const e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}));let r={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new Kr["a"](i,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const o=this.scrollableElement.getDomNode();o.style.position="",this._register(Object(X["i"])(o,X["d"].MOUSE_UP,e=>{e.preventDefault()})),i.style.maxHeight=Math.max(10,window.innerHeight-e.getBoundingClientRect().top-35)+"px",t=t.filter(e=>{var t;return!(null===(t=n.submenuIds)||void 0===t?void 0:t.has(e.id))||(console.warn("Found submenu cycle: "+e.id),!1)}),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(e=>!(e instanceof po)).forEach((e,t,n)=>{e.updatePositionInSet(t+1,n.length)})}initializeStyleSheet(e){Object(X["O"])(e)?(this.styleSheet=Object(X["w"])(e),this.styleSheet.textContent=mo):(uo.globalStyleSheet||(uo.globalStyleSheet=Object(X["w"])(),uo.globalStyleSheet.textContent=mo),this.styleSheet=uo.globalStyleSheet)}style(e){const t=this.getContainer(),n=e.foregroundColor?""+e.foregroundColor:"",i=e.backgroundColor?""+e.backgroundColor:"",r=e.borderColor?"1px solid "+e.borderColor:"",o=e.shadowColor?"0 2px 4px "+e.shadowColor:"";t.style.border=r,this.domNode.style.color=n,this.domNode.style.backgroundColor=i,t.style.boxShadow=o,this.viewItems&&this.viewItems.forEach(t=>{(t instanceof ho||t instanceof po)&&t.style(e)})}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){const t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t<this.actionsList.children.length;t++){let n=this.actionsList.children[t];if(e===n){this.focusedItem=t;break}}}updateFocus(e){super.updateFocus(e,!0),"undefined"!==typeof this.focusedItem&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})}doGetActionViewItem(e,t,n){if(e instanceof qr["d"])return new po(t.context,e,{icon:!0});if(e instanceof qr["e"]){const i=new fo(e,e.actions,n,Object.assign(Object.assign({},t),{submenuIds:new Set([...t.submenuIds||[],e.id])}));if(t.enableMnemonics){const e=i.getMnemonic();if(e&&i.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(i),this.mnemonics.set(e,t)}}return i}{const n={enableMnemonics:t.enableMnemonics,useEventAsContext:t.useEventAsContext};if(t.getKeyBinding){const i=t.getKeyBinding(e);if(i){const e=i.getLabel();e&&(n.keybinding=e)}}const i=new ho(t.context,e,n);if(t.enableMnemonics){const e=i.getMnemonic();if(e&&i.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(i),this.mnemonics.set(e,t)}}return i}}}class ho extends eo["b"]{constructor(e,t,n={}){if(n.isMenu=!0,super(t,t,n),this.options=n,this.options.icon=void 0!==n.icon&&n.icon,this.options.label=void 0===n.label||n.label,this.cssClass="",this.options.label&&n.enableMnemonics){let e=this.getAction().label;if(e){let t=oo.exec(e);t&&(this.mnemonic=(t[1]?t[1]:t[3]).toLocaleLowerCase())}}this.runOnceToEnableMouseUp=new _e["e"](()=>{this.element&&(this._register(Object(X["i"])(this.element,X["d"].MOUSE_UP,e=>{if(X["c"].stop(e,!0),no["g"]){const t=new io["a"](e);if(t.rightButton)return;this.onClick(e)}else setTimeout(()=>{this.onClick(e)},0)})),this._register(Object(X["i"])(this.element,X["d"].CONTEXT_MENU,e=>{X["c"].stop(e,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=Object(X["q"])(this.element,Object(X["a"])("a.action-menu-item")),this._action.id===qr["d"].ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)),this.check=Object(X["q"])(this.item,Object(X["a"])("span.menu-item-check"+ao.cssSelector)),this.check.setAttribute("role","none"),this.label=Object(X["q"])(this.item,Object(X["a"])("span.action-label")),this.options.label&&this.options.keybinding&&(Object(X["q"])(this.item,Object(X["a"])("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item&&this.item.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",""+e),this.item.setAttribute("aria-setsize",""+t))}updateLabel(){if(this.label&&this.options.label){Object(X["t"])(this.label);let e=Object(ro["e"])(this.getAction().label);if(e){const t=go(e);this.options.enableMnemonics||(e=t),this.label.setAttribute("aria-label",t.replace(/&&/g,"&"));const n=oo.exec(e);if(n){e=Fe["t"](e),so.lastIndex=0;let t=so.exec(e);while(t&&t[1])t=so.exec(e);const i=e=>e.replace(/&&/g,"&");t?this.label.append(Fe["K"](i(e.substr(0,t.index))," "),Object(X["a"])("u",{"aria-hidden":"true"},t[3]),Fe["P"](i(e.substr(t.index+t[0].length))," ")):this.label.innerText=i(e).trim(),this.item&&this.item.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[3]).toLocaleLowerCase())}else this.label.innerText=e.replace(/&&/g,"&").trim()}}}updateTooltip(){let 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=xn["a"]({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&this.item&&(this.item.title=e)}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.getAction().enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){this.item&&(this.getAction().checked?(this.item.classList.add("checked"),this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked","true")):(this.item.classList.remove("checked"),this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked","false")))}getMnemonic(){return this.mnemonic}applyStyle(){if(!this.menuStyle)return;const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,n=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,i=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=i)}style(e){this.menuStyle=e,this.applyStyle()}}class fo extends ho{constructor(e,t,n,i){super(e,e,i),this.submenuActions=t,this.parentData=n,this.submenuOptions=i,this.mysubmenu=null,this.submenuDisposables=this._register(new we["b"]),this.mouseOver=!1,this.expandDirection=i&&void 0!==i.expandDirection?i.expandDirection:co.Right,this.showScheduler=new _e["e"](()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new _e["e"](()=>{this.element&&!Object(X["L"])(Object(X["y"])(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=Object(X["q"])(this.item,Object(X["a"])("span.submenu-indicator"+lo.cssSelector)),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register(Object(X["i"])(this.element,X["d"].KEY_UP,e=>{let t=new hn["a"](e);(t.equals(17)||t.equals(3))&&(X["c"].stop(e,!0),this.createSubmenu(!0))})),this._register(Object(X["i"])(this.element,X["d"].KEY_DOWN,e=>{let t=new hn["a"](e);Object(X["y"])()===this.item&&(t.equals(17)||t.equals(3))&&X["c"].stop(e,!0)})),this._register(Object(X["i"])(this.element,X["d"].MOUSE_OVER,e=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register(Object(X["i"])(this.element,X["d"].MOUSE_LEAVE,e=>{this.mouseOver=!1})),this._register(Object(X["i"])(this.element,X["d"].FOCUS_OUT,e=>{this.element&&!Object(X["L"])(Object(X["y"])(),this.element)&&this.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(()=>{this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!1)})))}updateEnabled(){}onClick(e){X["c"].stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch(t){}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,n,i){const r={top:0,left:0};return r.left=Zr(e.width,t.width,{position:i===co.Right?0:1,offset:n.left,size:n.width}),r.left>=n.left&&r.left<n.left+n.width&&(n.left+10+t.width<=e.width&&(r.left=n.left+10),n.top+=10,n.height=0),r.top=Zr(e.height,t.height,{position:0,offset:n.top,size:0}),r.top+t.height===n.top&&r.top+n.height+t.height<=e.height&&(r.top+=n.height),r}createSubmenu(e=!0){if(this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=Object(X["q"])(this.element,Object(X["a"])("div.monaco-submenu")),this.submenuContainer.classList.add("menubar-menu-items-holder","context-view");const t=getComputedStyle(this.parentData.parent.domNode),n=parseFloat(t.paddingTop||"0")||0;this.submenuContainer.style.zIndex="1",this.submenuContainer.style.position="fixed",this.submenuContainer.style.top="0",this.submenuContainer.style.left="0",this.parentData.submenu=new uo(this.submenuContainer,this.submenuActions.length?this.submenuActions:[new qr["c"]],this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);const i=this.element.getBoundingClientRect(),r={top:i.top-n,left:i.left,height:i.height+2*n,width:i.width},o=this.submenuContainer.getBoundingClientRect(),{top:s,left:a}=this.calculateSubmenuMenuLayout(new X["b"](window.innerWidth,window.innerHeight),X["b"].lift(o),r,this.expandDirection);this.submenuContainer.style.left=a+"px",this.submenuContainer.style.top=s+"px",this.submenuDisposables.add(Object(X["i"])(this.submenuContainer,X["d"].KEY_UP,e=>{let t=new hn["a"](e);t.equals(15)&&(X["c"].stop(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add(Object(X["i"])(this.submenuContainer,X["d"].KEY_DOWN,e=>{let t=new hn["a"](e);t.equals(15)&&X["c"].stop(e,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(e){var t;this.item&&(null===(t=this.item)||void 0===t||t.setAttribute("aria-expanded",e))}applyStyle(){if(super.applyStyle(),!this.menuStyle)return;const e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=t?""+t:""),this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class po extends eo["a"]{style(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?""+e.separatorColor:"")}}function go(e){const t=oo,n=t.exec(e);if(!n)return e;const i=!n[1];return e.replace(t,i?"$2$3":"").trim()}let mo=`\n.monaco-menu {\n\tfont-size: 13px;\n\n}\n\n${Object(to["a"])(ao)}\n${Object(to["a"])(lo)}\n\n.monaco-menu .monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-menu .monaco-action-bar .actions-container {\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\tjustify-content: flex-end;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar.reverse .actions-container {\n\tflex-direction: row-reverse;\n}\n\n.monaco-menu .monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\ttransition: transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-menu .monaco-action-bar.animated .action-item.active {\n\ttransform: scale(1.272019649, 1.272019649); /* 1.272019649 = √φ */\n}\n\n.monaco-menu .monaco-action-bar .action-item .icon,\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: inline-block;\n}\n\n.monaco-menu .monaco-action-bar .action-item .codicon {\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar .action-label {\n\tfont-size: 11px;\n\tmargin-right: 4px;\n}\n\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label,\n.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {\n\topacity: 0.4;\n}\n\n/* Vertical actions */\n\n.monaco-menu .monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid #bbb;\n\tpadding-top: 1px;\n\tmargin-left: .8em;\n\tmargin-right: .8em;\n}\n\n.monaco-menu .secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n.monaco-menu .monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\tflex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmargin-right: 10px;\n}\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\ttransform: none;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\tflex: 1 1 auto;\n\tdisplay: flex;\n\theight: 2em;\n\talign-items: center;\n\tposition: relative;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\tflex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0 1em;\n\tbackground: none;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding,\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tdisplay: inline-block;\n\tflex: 2 1 auto;\n\tpadding: 0 1em;\n\ttext-align: right;\n\tfont-size: 12px;\n\tline-height: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {\n\tfont-size: 16px !important;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {\n\tmargin-left: auto;\n\tmargin-right: -20px;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\tbox-sizing: border-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tposition: static;\n\toverflow: visible;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {\n\tposition: absolute;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tpadding: 0.5em 0 0 0;\n\tmargin-bottom: 0.5em;\n\twidth: 100%;\n\theight: 0px !important;\n\tmargin-left: .8em !important;\n\tmargin-right: .8em !important;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tposition: absolute;\n\tvisibility: hidden;\n\twidth: 1em;\n\theight: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\n\tvisibility: visible;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\toutline: 0;\n\tborder: none;\n\tanimation: fadeIn 0.083s linear;\n\t-webkit-app-region: no-drag;\n}\n\n.context-view.monaco-menu-container :focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\n\toutline: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tborder: thin solid transparent; /* prevents jumping behaviour on hover or focus */\n}\n\n\n/* High Contrast Theming */\n:host-context(.hc-black) .context-view.monaco-menu-container {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n}\n\n/* Vertical Action Bar Styles */\n\n.monaco-menu .monaco-action-bar.vertical {\n\tpadding: .5em 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\n\theight: 1.8em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tfont-size: inherit;\n\tpadding: 0 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\n\tfont-size: inherit;\n\twidth: 2em;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tfont-size: inherit;\n\tpadding: 0.2em 0 0 0;\n\tmargin-bottom: 0.2em;\n}\n\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tmargin-left: 0;\n\tmargin-right: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\tfont-size: 60%;\n\tpadding: 0 1.8em;\n}\n\n:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {\n\theight: 100%;\n\tmask-size: 10px 10px;\n\t-webkit-mask-size: 10px 10px;\n}\n\n.monaco-menu .action-item {\n\tcursor: default;\n}\n\n/* Arrows */\n.monaco-scrollable-element > .scrollbar > .scra {\n\tcursor: pointer;\n\tfont-size: 11px !important;\n}\n\n.monaco-scrollable-element > .visible {\n\topacity: 1;\n\n\t/* Background rule added for IE9 - to allow clicks on dom node */\n\tbackground:rgba(0,0,0,0);\n\n\ttransition: opacity 100ms linear;\n}\n.monaco-scrollable-element > .invisible {\n\topacity: 0;\n\tpointer-events: none;\n}\n.monaco-scrollable-element > .invisible.fade {\n\ttransition: opacity 800ms linear;\n}\n\n/* Scrollable Content Inset Shadow */\n.monaco-scrollable-element > .shadow {\n\tposition: absolute;\n\tdisplay: none;\n}\n.monaco-scrollable-element > .shadow.top {\n\tdisplay: block;\n\ttop: 0;\n\tleft: 3px;\n\theight: 3px;\n\twidth: 100%;\n\tbox-shadow: #DDD 0 6px 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.left {\n\tdisplay: block;\n\ttop: 3px;\n\tleft: 0;\n\theight: 100%;\n\twidth: 3px;\n\tbox-shadow: #DDD 6px 0 6px -6px inset;\n}\n.monaco-scrollable-element > .shadow.top-left-corner {\n\tdisplay: block;\n\ttop: 0;\n\tleft: 0;\n\theight: 3px;\n\twidth: 3px;\n}\n.monaco-scrollable-element > .shadow.top.left {\n\tbox-shadow: #DDD 6px 6px 6px -6px inset;\n}\n\n/* ---------- Default Style ---------- */\n\n:host-context(.vs) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(100, 100, 100, .4);\n}\n:host-context(.vs-dark) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(121, 121, 121, .4);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider {\n\tbackground: rgba(111, 195, 223, .6);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider:hover {\n\tbackground: rgba(100, 100, 100, .7);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider:hover {\n\tbackground: rgba(111, 195, 223, .8);\n}\n\n.monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(0, 0, 0, .6);\n}\n:host-context(.vs-dark) .monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(191, 191, 191, .4);\n}\n:host-context(.hc-black) .monaco-scrollable-element > .scrollbar > .slider.active {\n\tbackground: rgba(111, 195, 223, 1);\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.top {\n\tbox-shadow: none;\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.left {\n\tbox-shadow: #000 6px 0 6px -6px inset;\n}\n\n:host-context(.vs-dark) .monaco-scrollable-element .shadow.top.left {\n\tbox-shadow: #000 6px 6px 6px -6px inset;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.top {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.left {\n\tbox-shadow: none;\n}\n\n:host-context(.hc-black) .monaco-scrollable-element .shadow.top.left {\n\tbox-shadow: none;\n}\n`;var vo=n("a6d7");class bo{constructor(e,t,n,i,r){this.contextViewService=e,this.telemetryService=t,this.notificationService=n,this.keybindingService=i,this.themeService=r,this.focusToReturn=null,this.block=null,this.options={blockMouse:!0}}configure(e){this.options=e}showContextMenu(e){const t=e.getActions();if(!t.length)return;let n;this.focusToReturn=document.activeElement;let i=Object(X["M"])(e.domForShadowRoot)?e.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>e.getAnchor(),canRelayout:!1,anchorAlignment:e.anchorAlignment,anchorAxisAlignment:e.anchorAxisAlignment,render:i=>{let r=e.getMenuClassName?e.getMenuClassName():"";r&&(i.className+=" "+r),this.options.blockMouse&&(this.block=i.appendChild(Object(X["a"])(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",Object(X["i"])(this.block,X["d"].MOUSE_DOWN,e=>e.stopPropagation()));const o=new we["b"],s=e.actionRunner||new qr["b"];return s.onBeforeRun(this.onActionRun,this,o),s.onDidRun(this.onDidActionRun,this,o),n=new uo(i,t,{actionViewItemProvider:e.getActionViewItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:s,getKeyBinding:e.getKeyBinding?e.getKeyBinding:e=>this.keybindingService.lookupKeybinding(e.id)}),o.add(Object(vo["c"])(n,this.themeService)),n.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,o),n.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,o),o.add(Object(X["i"])(window,X["d"].BLUR,()=>this.contextViewService.hideContextView(!0))),o.add(Object(X["i"])(window,X["d"].MOUSE_DOWN,e=>{if(e.defaultPrevented)return;let t=new io["a"](e),n=t.target;if(!t.rightButton){while(n){if(n===i)return;n=n.parentElement}this.contextViewService.hideContextView(!0)}})),Object(we["e"])(o,n)},focus:()=>{n&&n.focus(!!e.autoSelectFirstItem)},onHide:t=>{e.onHide&&e.onHide(!!t),this.block&&(this.block.remove(),this.block=null),this.focusToReturn&&this.focusToReturn.focus()}},i,!!i)}onActionRun(e){this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1),this.focusToReturn&&this.focusToReturn.focus()}onDidActionRun(e){e.error&&!Object(Ce["d"])(e.error)&&this.notificationService.error(e.error)}}var yo=n("5d75"),_o=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},wo=function(e,t){return function(n,i){t(n,i,e)}};let Co=class extends we["a"]{constructor(e,t,n,i,r){super(),this.contextMenuHandler=new bo(n,e,t,i,r)}configure(e){this.contextMenuHandler.configure(e)}showContextMenu(e){this.contextMenuHandler.showContextMenu(e),X["e"].getInstance().resetKeyStatus()}};Co=_o([wo(0,yo["a"]),wo(1,Pn["a"]),wo(2,di["b"]),wo(3,pi["a"]),wo(4,gi["b"])],Co);const So=Object(fi["c"])("layoutService");var xo=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Oo=function(e,t){return function(n,i){t(n,i,e)}};let ko=class extends we["a"]{constructor(e){super(),this.layoutService=e,this.currentViewDisposable=we["a"].None,this.container=e.container,this.contextView=this._register(new Xr(this.container,1)),this.layout(),this._register(e.onDidLayout(()=>this.layout()))}setContainer(e,t){this.contextView.setContainer(e,t||1)}showContextView(e,t,n){t?t!==this.container&&(this.container=t,this.setContainer(t,n?3:2)):this.container!==this.layoutService.container&&(this.container=this.layoutService.container,this.setContainer(this.container,1)),this.contextView.show(e);const i=Object(we["i"])(()=>{this.currentViewDisposable===i&&this.hideContextView()});return this.currentViewDisposable=i,i}getContextViewElement(){return this.contextView.getViewElement()}layout(){this.contextView.layout()}hideContextView(e){this.contextView.hide(e)}};ko=xo([Oo(0,So)],ko);var Lo=n("eafb");class Eo{constructor(e){this.incoming=new Map,this.outgoing=new Map,this.data=e}}class Do{constructor(e){this._hashFn=e,this._nodes=new Map}roots(){const e=[];for(let t of this._nodes.values())0===t.outgoing.size&&e.push(t);return e}insertEdge(e,t){const n=this.lookupOrInsertNode(e),i=this.lookupOrInsertNode(t);n.outgoing.set(this._hashFn(t),i),i.incoming.set(this._hashFn(e),n)}removeNode(e){const t=this._hashFn(e);this._nodes.delete(t);for(let n of this._nodes.values())n.outgoing.delete(t),n.incoming.delete(t)}lookupOrInsertNode(e){const t=this._hashFn(e);let n=this._nodes.get(t);return n||(n=new Eo(e),this._nodes.set(t,n)),n}isEmpty(){return 0===this._nodes.size}toString(){let e=[];for(let[t,n]of this._nodes)e.push(`${t}, (incoming)[${[...n.incoming.keys()].join(", ")}], (outgoing)[${[...n.outgoing.keys()].join(",")}]`);return e.join("\n")}findCycleSlow(){for(let[e,t]of this._nodes){const n=new Set([e]),i=this._findCycle(t,n);if(i)return i}}_findCycle(e,t){for(let[n,i]of e.outgoing){if(t.has(n))return[...t,n].join(" -> ");t.add(n);const e=this._findCycle(i,t);if(e)return e;t.delete(n)}}}var Io=n("af40"),Mo=n("f07b");const To=!1;class Ao extends Error{constructor(e){var t;super("cyclic dependency between services"),this.message=null!==(t=e.findCycleSlow())&&void 0!==t?t:"UNABLE to detect cycle, dumping graph: \n"+e.toString()}}class No{constructor(e=new Mo["a"],t=!1,n){this._activeInstantiations=new Set,this._services=e,this._strict=t,this._parent=n,this._services.set(fi["a"],this)}createChild(e){return new No(e,this._strict,this)}invokeFunction(e,...t){let n=Po.traceInvocation(e),i=!1;try{const r={get:(e,t)=>{if(i)throw Object(Ce["c"])("service accessor is only valid during the invocation of its target method");const r=this._getOrCreateServiceInstance(e,n);if(!r&&t!==fi["d"])throw new Error(`[invokeFunction] unknown service '${e}'`);return r}};return e(r,...t)}finally{i=!0,n.stop()}}createInstance(e,...t){let n,i;return e instanceof Io["a"]?(n=Po.traceCreation(e.ctor),i=this._createInstance(e.ctor,e.staticArguments.concat(t),n)):(n=Po.traceCreation(e),i=this._createInstance(e,t,n)),n.stop(),i}_createInstance(e,t=[],n){let i=fi["b"].getServiceDependencies(e).sort((e,t)=>e.index-t.index),r=[];for(const s of i){let t=this._getOrCreateServiceInstance(s.id,n);if(!t&&this._strict&&!s.optional)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${s.id}.`);r.push(t)}let o=i.length>0?i[0].index:t.length;if(t.length!==o){console.warn(`[createInstance] First service dependency of ${e.name} at position ${o+1} conflicts with ${t.length} static arguments`);let n=o-t.length;t=n>0?t.concat(new Array(n)):t.slice(0,o)}return new e(...[...t,...r])}_setServiceInstance(e,t){if(this._services.get(e)instanceof Io["a"])this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}}_getServiceInstanceOrDescriptor(e){let t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t}_getOrCreateServiceInstance(e,t){let n=this._getServiceInstanceOrDescriptor(e);return n instanceof Io["a"]?this._safeCreateAndCacheServiceInstance(e,n,t.branch(e,!0)):(t.branch(e,!1),n)}_safeCreateAndCacheServiceInstance(e,t,n){if(this._activeInstantiations.has(e))throw new Error(`illegal state - RECURSIVELY instantiating service '${e}'`);this._activeInstantiations.add(e);try{return this._createAndCacheServiceInstance(e,t,n)}finally{this._activeInstantiations.delete(e)}}_createAndCacheServiceInstance(e,t,n){const i=new Do(e=>e.id.toString());let r=0;const o=[{id:e,desc:t,_trace:n}];while(o.length){const t=o.pop();if(i.lookupOrInsertNode(t),r++>1e3)throw new Ao(i);for(let n of fi["b"].getServiceDependencies(t.desc.ctor)){let r=this._getServiceInstanceOrDescriptor(n.id);if(r||n.optional||console.warn(`[createInstance] ${e} depends on ${n.id} which is NOT registered.`),r instanceof Io["a"]){const e={id:n.id,desc:r,_trace:t._trace.branch(n.id,!0)};i.insertEdge(t,e),o.push(e)}}}while(1){const e=i.roots();if(0===e.length){if(!i.isEmpty())throw new Ao(i);break}for(const{data:t}of e){const e=this._getServiceInstanceOrDescriptor(t.id);if(e instanceof Io["a"]){const e=this._createServiceInstanceWithOwner(t.id,t.desc.ctor,t.desc.staticArguments,t.desc.supportsDelayedInstantiation,t._trace);this._setServiceInstance(t.id,e)}i.removeNode(t)}}return this._getServiceInstanceOrDescriptor(e)}_createServiceInstanceWithOwner(e,t,n=[],i,r){if(this._services.get(e)instanceof Io["a"])return this._createServiceInstance(t,n,i,r);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,n,i,r);throw new Error("illegalState - creating UNKNOWN service instance "+t.name)}_createServiceInstance(e,t=[],n,i){if(n){const n=new _e["b"](()=>this._createInstance(e,t,i));return new Proxy(Object.create(null),{get(e,t){if(t in e)return e[t];let i=n.value,r=i[t];return"function"!==typeof r||(r=r.bind(i),e[t]=r),r},set(e,t,i){return n.value[t]=i,!0}})}return this._createInstance(e,t,i)}}class Po{constructor(e,t){this.type=e,this.name=t,this._start=Date.now(),this._dep=[]}static traceInvocation(e){return To?new Po(1,e.name||e.toString().substring(0,42).replace(/\n/g,"")):Po._None}static traceCreation(e){return To?new Po(0,e.name):Po._None}branch(e,t){let n=new Po(2,e.toString());return this._dep.push([e,t,n]),n}stop(){let e=Date.now()-this._start;Po._totals+=e;let t=!1;function n(e,i){let r=[],o=new Array(e+1).join("\t");for(const[s,a,l]of i._dep)if(a&&l){t=!0,r.push(`${o}CREATES -> ${s}`);let i=n(e+1,l);i&&r.push(i)}else r.push(`${o}uses -> ${s}`);return r.join("\n")}let i=[`${0===this.type?"CREATE":"CALL"} ${this.name}`,""+n(1,this),`DONE, took ${e.toFixed(2)}ms (grand total ${Po._totals.toFixed(2)}ms)`];(e>2||t)&&console.log(i.join("\n"))}}Po._None=new class extends Po{constructor(){super(-1,null)}stop(){}branch(){return this}},Po._totals=0;var jo=n("47cb"),Ro=n("93d9"),Fo=n("b400");class Bo{constructor(){this._byResource=new J["b"],this._byOwner=new Map}set(e,t,n){let i=this._byResource.get(e);i||(i=new Map,this._byResource.set(e,i)),i.set(t,n);let r=this._byOwner.get(t);r||(r=new J["b"],this._byOwner.set(t,r)),r.set(e,n)}get(e,t){let n=this._byResource.get(e);return null===n||void 0===n?void 0:n.get(t)}delete(e,t){let n=!1,i=!1,r=this._byResource.get(e);r&&(n=r.delete(t));let o=this._byOwner.get(t);if(o&&(i=o.delete(e)),n!==i)throw new Error("illegal state");return n&&i}values(e){var t,n,i,r;return"string"===typeof e?null!==(n=null===(t=this._byOwner.get(e))||void 0===t?void 0:t.values())&&void 0!==n?n:Dr["a"].empty():z["a"].isUri(e)?null!==(r=null===(i=this._byResource.get(e))||void 0===i?void 0:i.values())&&void 0!==r?r:Dr["a"].empty():Dr["a"].map(Dr["a"].concat(...this._byOwner.values()),e=>e[1])}}class Wo{constructor(e){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new J["b"],this._service=e,this._subscription=e.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(e){for(const t of e){const e=this._data.get(t);e&&this._substract(e);const n=this._resourceStats(t);this._add(n),this._data.set(t,n)}}_resourceStats(e){const t={errors:0,warnings:0,infos:0,unknowns:0};if(e.scheme===te["c"].inMemory||e.scheme===te["c"].walkThrough||e.scheme===te["c"].walkThroughSnippet)return t;for(const{severity:n}of this._service.read({resource:e}))n===Fo["c"].Error?t.errors+=1:n===Fo["c"].Warning?t.warnings+=1:n===Fo["c"].Info?t.infos+=1:t.unknowns+=1;return t}_substract(e){this.errors-=e.errors,this.warnings-=e.warnings,this.infos-=e.infos,this.unknowns-=e.unknowns}_add(e){this.errors+=e.errors,this.warnings+=e.warnings,this.infos+=e.infos,this.unknowns+=e.unknowns}}class Vo{constructor(){this._onMarkerChanged=new W["a"]({delay:0,merge:Vo._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new Bo,this._stats=new Wo(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(e,t){for(const n of t||[])this.changeOne(e,n,[])}changeOne(e,t,n){if(Object(gt["m"])(n)){const n=this._data.delete(t,e);n&&this._onMarkerChanged.fire([t])}else{const i=[];for(const r of n){const n=Vo._toMarker(e,t,r);n&&i.push(n)}this._data.set(t,e,i),this._onMarkerChanged.fire([t])}}static _toMarker(e,t,n){let{code:i,severity:r,message:o,source:s,startLineNumber:a,startColumn:l,endLineNumber:c,endColumn:u,relatedInformation:h,tags:d}=n;if(o)return a=a>0?a:1,l=l>0?l:1,c=c>=a?c:a,u=u>0?u:l,{resource:t,owner:e,code:i,severity:r,message:o,source:s,startLineNumber:a,startColumn:l,endLineNumber:c,endColumn:u,relatedInformation:h,tags:d}}read(e=Object.create(null)){let{owner:t,resource:n,severities:i,take:r}=e;if((!r||r<0)&&(r=-1),t&&n){const e=this._data.get(n,t);if(e){const t=[];for(const n of e)if(Vo._accept(n,i)){const e=t.push(n);if(r>0&&e===r)break}return t}return[]}if(t||n){const e=this._data.values(null!==n&&void 0!==n?n:t),o=[];for(const t of e)for(const e of t)if(Vo._accept(e,i)){const t=o.push(e);if(r>0&&t===r)return o}return o}{const e=[];for(let t of this._data.values())for(let n of t)if(Vo._accept(n,i)){const t=e.push(n);if(r>0&&t===r)return e}return e}}static _accept(e,t){return void 0===t||(t&e.severity)===e.severity}static _merge(e){const t=new J["b"];for(let n of e)for(let e of n)t.set(e,!0);return Array.from(t.keys())}}var zo=n("03e8"),Ho=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Uo=function(e,t){return function(n,i){t(n,i,e)}};let qo=class{constructor(e){this._commandService=e}createMenu(e,t,n=!1){return new $o(e,n,this._commandService,t,this)}};qo=Ho([Uo(0,ie["b"])],qo);let $o=class e{constructor(e,t,n,i,r){this._id=e,this._fireEventsForSubmenuChanges=t,this._commandService=n,this._contextKeyService=i,this._menuService=r,this._disposables=new we["b"],this._menuGroups=[],this._contextKeys=new Set,this._build();const o=new _e["e"](()=>{this._build(),this._onDidChange.fire(this)},50);this._disposables.add(o),this._disposables.add(ui["d"].onDidChangeMenu(t=>{t.has(e)&&o.schedule()}));const s=this._disposables.add(new we["b"]),a=()=>{const e=new _e["e"](()=>this._onDidChange.fire(this),50);s.add(e),s.add(i.onDidChangeContext(t=>{t.affectsSome(this._contextKeys)&&e.schedule()}))};this._onDidChange=new W["b"]({onFirstListenerAdd:a,onLastListenerRemove:s.clear.bind(s)}),this.onDidChange=this._onDidChange.event}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}_build(){this._menuGroups.length=0,this._contextKeys.clear();const t=ui["d"].getMenuItems(this._id);let n;t.sort(e._compareMenuItems);for(const e of t){const t=e.group||"";n&&n[0]===t||(n=[t,[]],this._menuGroups.push(n)),n[1].push(e),this._collectContextKeys(e)}}_collectContextKeys(t){if(e._fillInKbExprKeys(t.when,this._contextKeys),Object(ui["f"])(t)){if(t.command.precondition&&e._fillInKbExprKeys(t.command.precondition,this._contextKeys),t.command.toggled){const n=t.command.toggled.condition||t.command.toggled;e._fillInKbExprKeys(n,this._contextKeys)}}else this._fireEventsForSubmenuChanges&&ui["d"].getMenuItems(t.submenu).forEach(this._collectContextKeys,this)}getActions(e){const t=[];for(let n of this._menuGroups){const[i,r]=n,o=[];for(const t of r)if(this._contextKeyService.contextMatchesRules(t.when)){const n=Object(ui["f"])(t)?new ui["c"](t.command,t.alt,e,this._contextKeyService,this._commandService):new ui["e"](t,this._menuService,this._contextKeyService,e);o.push(n)}o.length>0&&t.push([i,o])}return t}static _fillInKbExprKeys(e,t){if(e)for(let n of e.keys())t.add(n)}static _compareMenuItems(t,n){let i=t.group,r=n.group;if(i!==r){if(!i)return 1;if(!r)return-1;if("navigation"===i)return-1;if("navigation"===r)return 1;let e=i.localeCompare(r);if(0!==e)return e}let o=t.order||0,s=n.order||0;return o<s?-1:o>s?1:e._compareTitles(Object(ui["f"])(t)?t.command.title:t.title,Object(ui["f"])(n)?n.command.title:n.title)}static _compareTitles(e,t){const n="string"===typeof e?e:e.original,i="string"===typeof t?t:t.original;return n.localeCompare(i)}};$o=Ho([Uo(2,ie["b"]),Uo(3,hi["b"]),Uo(4,ui["a"])],$o);var Ko=n("efdb"),Go=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Yo=function(e,t){return function(n,i){t(n,i,e)}};class Zo extends we["a"]{constructor(e){super(),this.model=e,this._markersData=new Map,this._register(Object(we["i"])(()=>{this.model.deltaDecorations([...this._markersData.keys()],[]),this._markersData.clear()}))}update(e,t){const n=[...this._markersData.keys()];this._markersData.clear();const i=this.model.deltaDecorations(n,t);for(let r=0;r<i.length;r++)this._markersData.set(i[r],e[r]);return 0!==n.length||0!==i.length}getMarker(e){return this._markersData.get(e.id)}}let Xo=class extends we["a"]{constructor(e,t){super(),this._markerService=t,this._onDidChangeMarker=this._register(new W["b"]),this._markerDecorations=new J["b"],e.getModels().forEach(e=>this._onModelAdded(e)),this._register(e.onModelAdded(this._onModelAdded,this)),this._register(e.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach(e=>e.dispose()),this._markerDecorations.clear()}getMarker(e,t){const n=this._markerDecorations.get(e);return n&&n.getMarker(t)||null}_handleMarkerChange(e){e.forEach(e=>{const t=this._markerDecorations.get(e);t&&this._updateDecorations(t)})}_onModelAdded(e){const t=new Zo(e);this._markerDecorations.set(e.uri,t),this._updateDecorations(t)}_onModelRemoved(e){const t=this._markerDecorations.get(e.uri);t&&(t.dispose(),this._markerDecorations.delete(e.uri)),e.uri.scheme!==te["c"].inMemory&&e.uri.scheme!==te["c"].internal&&e.uri.scheme!==te["c"].vscode||this._markerService&&this._markerService.read({resource:e.uri}).map(e=>e.owner).forEach(t=>this._markerService.remove(t,[e.uri]))}_updateDecorations(e){const t=this._markerService.read({resource:e.model.uri,take:500});let n=t.map(t=>({range:this._createDecorationRange(e.model,t),options:this._createDecorationOption(t)}));e.update(t,n)&&this._onDidChangeMarker.fire(e.model)}_createDecorationRange(e,t){let n=U["a"].lift(t);if(t.severity!==Fo["c"].Hint||this._hasMarkerTag(t,1)||this._hasMarkerTag(t,2)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)),n=e.validateRange(n),n.isEmpty()){let t=e.getWordAtPosition(n.getStartPosition());if(t)n=new U["a"](n.startLineNumber,t.startColumn,n.endLineNumber,t.endColumn);else{let t=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);1===t||(n=n.endColumn>=t?new U["a"](n.startLineNumber,t-1,n.endLineNumber,t):new U["a"](n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn+1))}}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){let i=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);i<n.endColumn&&(n=new U["a"](n.startLineNumber,i,n.endLineNumber,n.endColumn),t.startColumn=i)}return n}_createDecorationOption(e){let t,n,i,r=void 0,o=void 0;switch(e.severity){case Fo["c"].Hint:t=this._hasMarkerTag(e,2)?void 0:this._hasMarkerTag(e,1)?"squiggly-unnecessary":"squiggly-hint",n=0;break;case Fo["c"].Warning:t="squiggly-warning",r=Object(gi["g"])(hr["v"]),n=20,i={color:Object(gi["g"])(dr["gc"]),position:pe["c"].Inline};break;case Fo["c"].Info:t="squiggly-info",r=Object(gi["g"])(hr["t"]),n=10;break;case Fo["c"].Error:default:t="squiggly-error",r=Object(gi["g"])(hr["s"]),n=30,i={color:Object(gi["g"])(dr["ac"]),position:pe["c"].Inline};break}return e.tags&&(-1!==e.tags.indexOf(1)&&(o="squiggly-inline-unnecessary"),-1!==e.tags.indexOf(2)&&(o="squiggly-inline-deprecated")),{description:"marker-decoration",stickiness:1,className:t,showIfCollapsed:!0,overviewRuler:{color:r,position:pe["d"].Right},minimap:i,zIndex:n,inlineClassName:o}}_hasMarkerTag(e,t){return!!e.tags&&e.tags.indexOf(t)>=0}};Xo=Go([Yo(0,ft["a"]),Yo(1,Fo["b"])],Xo);var Qo=n("f5f3"),Jo=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},es=function(e,t){return function(n,i){t(n,i,e)}};let ts=class extends we["a"]{constructor(e,t){super(),this._contextKeyService=e,this._configurationService=t,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new W["b"],this._accessibilityModeEnabledContext=mi["a"].bindTo(this._contextKeyService);const n=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(e=>{e.affectsConfiguration("editor.accessibilitySupport")&&(n(),this._onDidChangeScreenReaderOptimized.fire())})),n(),this.onDidChangeScreenReaderOptimized(()=>n())}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const e=this._configurationService.getValue("editor.accessibilitySupport");return"on"===e||"auto"===e&&2===this._accessibilitySupport}getAccessibilitySupport(){return this._accessibilitySupport}};ts=Jo([es(0,hi["b"]),es(1,vn["a"])],ts);var ns=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class is{constructor(){this.mapTextToType=new Map,this.findText=""}writeText(e,t){return ns(this,void 0,void 0,(function*(){if(t)return void this.mapTextToType.set(t,e);try{return yield navigator.clipboard.writeText(e)}catch(r){console.error(r)}const n=document.activeElement,i=document.body.appendChild(Object(X["a"])("textarea",{"aria-hidden":!0}));i.style.height="1px",i.style.width="1px",i.style.position="absolute",i.value=e,i.focus(),i.select(),document.execCommand("copy"),n instanceof HTMLElement&&n.focus(),document.body.removeChild(i)}))}readText(e){return ns(this,void 0,void 0,(function*(){if(e)return this.mapTextToType.get(e)||"";try{return yield navigator.clipboard.readText()}catch(t){return console.error(t),""}}))}readFindText(){return ns(this,void 0,void 0,(function*(){return this.findText}))}writeFindText(e){return ns(this,void 0,void 0,(function*(){this.findText=e}))}}var rs=n("3803"),os=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ss=function(e,t){return function(n,i){t(n,i,e)}},as=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const ls=!1;function cs(e){return e.scheme===te["c"].file?e.fsPath:e.path}let us=0;class hs{constructor(e,t,n,i,r,o,s){this.id=++us,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=n,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=i,this.groupOrder=r,this.sourceId=o,this.sourceOrder=s,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class ds{constructor(e,t){this.resourceLabel=e,this.reason=t}}class fs{constructor(){this.elements=new Map}createMessage(){const e=[],t=[];for(const[,i]of this.elements){const n=0===i.reason?e:t;n.push(i.resourceLabel)}let n=[];return e.length>0&&n.push(xn["a"]({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&n.push(xn["a"]({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),n.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class ps{constructor(e,t,n,i,r,o,s){this.id=++us,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=n,this.groupId=i,this.groupOrder=r,this.sourceId=o,this.sourceOrder=s,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"===typeof this.actual.split}removeResource(e,t,n){this.removedResources||(this.removedResources=new fs),this.removedResources.has(t)||this.removedResources.set(t,new ds(e,n))}setValid(e,t,n){n?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new fs),this.invalidatedResources.has(t)||this.invalidatedResources.set(t,new ds(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class gs{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(const e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(" * [UNDO] "+this._past[t]);for(let t=this._future.length-1;t>=0;t--)e.push(" * [REDO] "+this._future[t]);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(const n of this._past)t(n.actual)&&this._setElementValidFlag(n,e);for(const n of this._future)t(n.actual)&&this._setElementValidFlag(n,e)}pushElement(e){for(const t of this._future)1===t.type&&t.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){const t=[];for(let n=0,i=this._past.length;n<i;n++)t.push(this._past[n].id);for(let n=this._future.length-1;n>=0;n--)t.push(this._future[n].id);return new rs["b"](e,t)}restoreSnapshot(e){const t=e.elements.length;let n=!0,i=0,r=-1;for(let s=0,a=this._past.length;s<a;s++,i++){const o=this._past[s];n&&(i>=t||o.id!==e.elements[i])&&(n=!1,r=0),n||1!==o.type||o.removeResource(this.resourceLabel,this.strResource,0)}let o=-1;for(let s=this._future.length-1;s>=0;s--,i++){const r=this._future[s];n&&(i>=t||r.id!==e.elements[i])&&(n=!1,o=s),n||1!==r.type||r.removeResource(this.resourceLabel,this.strResource,0)}-1!==r&&(this._past=this._past.slice(0,r)),-1!==o&&(this._future=this._future.slice(o+1)),this.versionId++}getElements(){const e=[],t=[];for(const n of this._past)e.push(n.actual);for(const n of this._future)t.push(n.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let n=this._past.length-1;n>=0;n--)if(this._past[n]===e){t.has(this.strResource)?this._past[n]=t.get(this.strResource):this._past.splice(n,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let n=this._future.length-1;n>=0;n--)if(this._future[n]===e){t.has(this.strResource)?this._future[n]=t.get(this.strResource):this._future.splice(n,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class ms{constructor(e){this.editStacks=e,this._versionIds=[];for(let t=0,n=this.editStacks.length;t<n;t++)this._versionIds[t]=this.editStacks[t].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}}const vs=new gs("","");vs.locked=!0;let bs=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(const t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){console.log("------------------------------------"),console.log(`AFTER ${e}: `);let t=[];for(const n of this._editStacks)t.push(n[1].toString());console.log(t.join("\n"))}pushElement(e,t=rs["c"].None,n=rs["d"].None){if(0===e.type){const i=cs(e.resource),r=this.getUriComparisonKey(e.resource);this._pushElement(new hs(e,i,r,t.id,t.nextOrder(),n.id,n.nextOrder()))}else{const i=new Set,r=[],o=[];for(const t of e.resources){const e=cs(t),n=this.getUriComparisonKey(t);i.has(n)||(i.add(n),r.push(e),o.push(n))}1===r.length?this._pushElement(new hs(e,r[0],o[0],t.id,t.nextOrder(),n.id,n.nextOrder())):this._pushElement(new ps(e,r,o,t.id,t.nextOrder(),n.id,n.nextOrder()))}ls&&this._print("pushElement")}_pushElement(e){for(let t=0,n=e.strResources.length;t<n;t++){const n=e.resourceLabels[t],i=e.strResources[t];let r;this._editStacks.has(i)?r=this._editStacks.get(i):(r=new gs(n,i),this._editStacks.set(i,r)),r.pushElement(e)}}getLastElement(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);if(e.hasFutureElements())return null;const n=e.getClosestPastElement();return n?n.actual:null}return null}_splitPastWorkspaceElement(e,t){const n=e.actual.split(),i=new Map;for(const r of n){const e=cs(r.resource),t=this.getUriComparisonKey(r.resource),n=new hs(r,e,t,0,0,0,0);i.set(n.strResource,n)}for(const r of e.strResources){if(t&&t.has(r))continue;const n=this._editStacks.get(r);n.splitPastWorkspaceElement(e,i)}}_splitFutureWorkspaceElement(e,t){const n=e.actual.split(),i=new Map;for(const r of n){const e=cs(r.resource),t=this.getUriComparisonKey(r.resource),n=new hs(r,e,t,0,0,0,0);i.set(n.strResource,n)}for(const r of e.strResources){if(t&&t.has(r))continue;const n=this._editStacks.get(r);n.splitFutureWorkspaceElement(e,i)}}removeElements(e){const t="string"===typeof e?e:this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);e.dispose(),this._editStacks.delete(t)}ls&&this._print("removeElements")}setElementsValidFlag(e,t,n){const i=this.getUriComparisonKey(e);if(this._editStacks.has(i)){const e=this._editStacks.get(i);e.setElementsValidFlag(t,n)}ls&&this._print("setElementsValidFlag")}createSnapshot(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const n=this._editStacks.get(t);return n.createSnapshot(e)}return new rs["b"](e,[])}restoreSnapshot(e){const t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){const n=this._editStacks.get(t);n.restoreSnapshot(e),n.hasPastElements()||n.hasFutureElements()||(n.dispose(),this._editStacks.delete(t))}ls&&this._print("restoreSnapshot")}getElements(e){const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);return e.getElements()}return{past:[],future:[]}}_findClosestUndoElementWithSource(e){if(!e)return[null,null];let t=null,n=null;for(const[i,r]of this._editStacks){const o=r.getClosestPastElement();o&&(o.sourceId===e&&(!t||o.sourceOrder>t.sourceOrder)&&(t=o,n=i))}return[t,n]}canUndo(e){if(e instanceof rs["d"]){const[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);return e.hasPastElements()}return!1}_onError(e,t){Object(Ce["e"])(e);for(const n of t.strResources)this.removeElements(n);this._notificationService.error(e)}_acquireLocks(e){for(const t of e.editStacks)if(t.locked)throw new Error("Cannot acquire edit stack lock");for(const t of e.editStacks)t.locked=!0;return()=>{for(const t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,n,i,r){const o=this._acquireLocks(n);let s;try{s=t()}catch(a){return o(),i.dispose(),this._onError(a,e)}return s?s.then(()=>(o(),i.dispose(),r()),t=>(o(),i.dispose(),this._onError(t,e))):(o(),i.dispose(),r())}_invokeWorkspacePrepare(e){return as(this,void 0,void 0,(function*(){if("undefined"===typeof e.actual.prepareUndoRedo)return we["a"].None;const t=e.actual.prepareUndoRedo();return"undefined"===typeof t?we["a"].None:t}))}_invokeResourcePrepare(e,t){if(1!==e.actual.type||"undefined"===typeof e.actual.prepareUndoRedo)return t(we["a"].None);const n=e.actual.prepareUndoRedo();return n?Object(we["g"])(n)?t(n):n.then(e=>t(e)):t(we["a"].None)}_getAffectedEditStacks(e){const t=[];for(const n of e.strResources)t.push(this._editStacks.get(n)||vs);return new ms(t)}_tryToSplitAndUndo(e,t,n,i){if(t.canSplit())return this._splitPastWorkspaceElement(t,n),this._notificationService.warn(i),new ys(this._undo(e,0,!0));for(const r of t.strResources)this.removeElements(r);return this._notificationService.warn(i),new ys}_checkWorkspaceUndo(e,t,n,i){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,xn["a"]({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(i&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,xn["a"]({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const r=[];for(const s of n.editStacks)s.getClosestPastElement()!==t&&r.push(s.resourceLabel);if(r.length>0)return this._tryToSplitAndUndo(e,t,null,xn["a"]({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,r.join(", ")));const o=[];for(const s of n.editStacks)s.locked&&o.push(s.resourceLabel);return o.length>0?this._tryToSplitAndUndo(e,t,null,xn["a"]({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,o.join(", "))):n.isValid()?null:this._tryToSplitAndUndo(e,t,null,xn["a"]({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,n){const i=this._getAffectedEditStacks(t),r=this._checkWorkspaceUndo(e,t,i,!1);return r?r.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,i,n)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(const[,t]of this._editStacks){const n=t.getClosestPastElement();if(n){if(n===e){const n=t.getSecondClosestPastElement();if(n&&n.groupId===e.groupId)return!0}if(n.groupId===e.groupId)return!0}}return!1}_confirmAndExecuteWorkspaceUndo(e,t,n,i){return as(this,void 0,void 0,(function*(){if(t.canSplit()&&!this._isPartOfUndoGroup(t)){const r=yield this._dialogService.show(dn["a"].Info,xn["a"]("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),[xn["a"]({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",n.editStacks.length),xn["a"]("nok","Undo this File"),xn["a"]("cancel","Cancel")],{cancelId:2});if(2===r.choice)return;if(1===r.choice)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);const o=this._checkWorkspaceUndo(e,t,n,!1);if(o)return o.returnValue;i=!0}let r;try{r=yield this._invokeWorkspacePrepare(t)}catch(s){return this._onError(s,t)}const o=this._checkWorkspaceUndo(e,t,n,!0);if(o)return r.dispose(),o.returnValue;for(const e of n.editStacks)e.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),n,r,()=>this._continueUndoInGroup(t.groupId,i))}))}_resourceUndo(e,t,n){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,i=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new ms([e]),i,()=>this._continueUndoInGroup(t.groupId,n))));{const e=xn["a"]({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,n=null;for(const[i,r]of this._editStacks){const o=r.getClosestPastElement();o&&(o.groupId===e&&(!t||o.groupOrder>t.groupOrder)&&(t=o,n=i))}return[t,n]}_continueUndoInGroup(e,t){if(!e)return;const[,n]=this._findClosestUndoElementInGroup(e);return n?this._undo(n,0,t):void 0}undo(e){if(e instanceof rs["d"]){const[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"===typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,n){if(!this._editStacks.has(e))return;const i=this._editStacks.get(e),r=i.getClosestPastElement();if(!r)return;if(r.groupId){const[e,i]=this._findClosestUndoElementInGroup(r.groupId);if(r!==e&&i)return this._undo(i,t,n)}const o=r.sourceId!==t||r.confirmBeforeUndo;if(o&&!n)return this._confirmAndContinueUndo(e,t,r);try{return 1===r.type?this._workspaceUndo(e,r,n):this._resourceUndo(i,r,n)}finally{ls&&this._print("undo")}}_confirmAndContinueUndo(e,t,n){return as(this,void 0,void 0,(function*(){const i=yield this._dialogService.show(dn["a"].Info,xn["a"]("confirmDifferentSource","Would you like to undo '{0}'?",n.label),[xn["a"]("confirmDifferentSource.yes","Yes"),xn["a"]("cancel","Cancel")],{cancelId:1});if(1!==i.choice)return this._undo(e,t,!0)}))}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,n=null;for(const[i,r]of this._editStacks){const o=r.getClosestFutureElement();o&&(o.sourceId===e&&(!t||o.sourceOrder<t.sourceOrder)&&(t=o,n=i))}return[t,n]}canRedo(e){if(e instanceof rs["d"]){const[,t]=this._findClosestRedoElementWithSource(e.id);return!!t}const t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){const e=this._editStacks.get(t);return e.hasFutureElements()}return!1}_tryToSplitAndRedo(e,t,n,i){if(t.canSplit())return this._splitFutureWorkspaceElement(t,n),this._notificationService.warn(i),new ys(this._redo(e));for(const r of t.strResources)this.removeElements(r);return this._notificationService.warn(i),new ys}_checkWorkspaceRedo(e,t,n,i){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,xn["a"]({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(i&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,xn["a"]({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));const r=[];for(const s of n.editStacks)s.getClosestFutureElement()!==t&&r.push(s.resourceLabel);if(r.length>0)return this._tryToSplitAndRedo(e,t,null,xn["a"]({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,r.join(", ")));const o=[];for(const s of n.editStacks)s.locked&&o.push(s.resourceLabel);return o.length>0?this._tryToSplitAndRedo(e,t,null,xn["a"]({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,o.join(", "))):n.isValid()?null:this._tryToSplitAndRedo(e,t,null,xn["a"]({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){const n=this._getAffectedEditStacks(t),i=this._checkWorkspaceRedo(e,t,n,!1);return i?i.returnValue:this._executeWorkspaceRedo(e,t,n)}_executeWorkspaceRedo(e,t,n){return as(this,void 0,void 0,(function*(){let i;try{i=yield this._invokeWorkspacePrepare(t)}catch(o){return this._onError(o,t)}const r=this._checkWorkspaceRedo(e,t,n,!0);if(r)return i.dispose(),r.returnValue;for(const e of n.editStacks)e.moveForward(t);return this._safeInvokeWithLocks(t,()=>t.actual.redo(),n,i,()=>this._continueRedoInGroup(t.groupId))}))}_resourceRedo(e,t){if(t.isValid){if(!e.locked)return this._invokeResourcePrepare(t,n=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new ms([e]),n,()=>this._continueRedoInGroup(t.groupId))));{const e=xn["a"]({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e)}}else e.flushAllElements()}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,n=null;for(const[i,r]of this._editStacks){const o=r.getClosestFutureElement();o&&(o.groupId===e&&(!t||o.groupOrder<t.groupOrder)&&(t=o,n=i))}return[t,n]}_continueRedoInGroup(e){if(!e)return;const[,t]=this._findClosestRedoElementInGroup(e);return t?this._redo(t):void 0}redo(e){if(e instanceof rs["d"]){const[,t]=this._findClosestRedoElementWithSource(e.id);return t?this._redo(t):void 0}return"string"===typeof e?this._redo(e):this._redo(this.getUriComparisonKey(e))}_redo(e){if(!this._editStacks.has(e))return;const t=this._editStacks.get(e),n=t.getClosestFutureElement();if(n){if(n.groupId){const[e,t]=this._findClosestRedoElementInGroup(n.groupId);if(n!==e&&t)return this._redo(t)}try{return 1===n.type?this._workspaceRedo(e,n):this._resourceRedo(t,n)}finally{ls&&this._print("redo")}}}};bs=os([ss(0,Lo["a"]),ss(1,Pn["a"])],bs);class ys{constructor(e){this.returnValue=e}}Object(Qo["b"])(rs["a"],bs);n("675a");var _s=n("b2cc"),ws=(n("0836"),n("cdd6"));const Cs=new _e["b"](()=>{const e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}});function Ss(e,t,n=!1){const i=e||"",r=t||"",o=Cs.value.collator.compare(i,r);return Cs.value.collatorIsNumeric&&0===o&&i!==r?i<r?-1:1:o}function xs(e,t,n){const i=e.toLowerCase(),r=t.toLowerCase(),o=Os(e,t,n);if(o)return o;const s=i.endsWith(n),a=r.endsWith(n);if(s!==a)return s?-1:1;const l=Ss(i,r);return 0!==l?l:i.localeCompare(r)}function Os(e,t,n){const i=e.toLowerCase(),r=t.toLowerCase(),o=i.startsWith(n),s=r.startsWith(n);if(o!==s)return o?-1:1;if(o&&s){if(i.length<r.length)return-1;if(i.length>r.length)return 1}return 0}var ks=n("c4e3"),Ls=n("ee56"),Es=n("6424"),Ds=n("9c3e");const Is={},Ms=new Ds["a"]("quick-input-button-icon-");function Ts(e){if(!e)return;let t;const n=e.dark.toString();return Is[n]?t=Is[n]:(t=Ms.nextId(),X["v"]("."+t,"background-image: "+X["s"](e.light||e.dark)),X["v"](`.vs-dark .${t}, .hc-black .${t}`,"background-image: "+X["s"](e.dark)),Is[n]=t),t}n("abf2");const As=X["a"];class Ns{constructor(e,t,n){this.os=t,this.keyElements=new Set,this.options=n||Object.create(null),this.labelBackground=this.options.keybindingLabelBackground,this.labelForeground=this.options.keybindingLabelForeground,this.labelBorder=this.options.keybindingLabelBorder,this.labelBottomBorder=this.options.keybindingLabelBottomBorder,this.labelShadow=this.options.keybindingLabelShadow,this.domNode=X["q"](e,As(".monaco-keybinding")),this.didEverRender=!1,e.appendChild(this.domNode)}get element(){return this.domNode}set(e,t){this.didEverRender&&this.keybinding===e&&Ns.areSame(this.matches,t)||(this.keybinding=e,this.matches=t,this.render())}render(){if(this.clear(),this.keybinding){let[e,t]=this.keybinding.getParts();e&&this.renderPart(this.domNode,e,this.matches?this.matches.firstPart:null),t&&(X["q"](this.domNode,As("span.monaco-keybinding-key-chord-separator",void 0," ")),this.renderPart(this.domNode,t,this.matches?this.matches.chordPart:null)),this.domNode.title=this.keybinding.getAriaLabel()||""}else this.options&&this.options.renderUnboundKeybindings&&this.renderUnbound(this.domNode);this.applyStyles(),this.didEverRender=!0}clear(){X["t"](this.domNode),this.keyElements.clear()}renderPart(e,t,n){const i=Tn["b"].modifierLabels[this.os];t.ctrlKey&&this.renderKey(e,i.ctrlKey,Boolean(null===n||void 0===n?void 0:n.ctrlKey),i.separator),t.shiftKey&&this.renderKey(e,i.shiftKey,Boolean(null===n||void 0===n?void 0:n.shiftKey),i.separator),t.altKey&&this.renderKey(e,i.altKey,Boolean(null===n||void 0===n?void 0:n.altKey),i.separator),t.metaKey&&this.renderKey(e,i.metaKey,Boolean(null===n||void 0===n?void 0:n.metaKey),i.separator);const r=t.keyLabel;r&&this.renderKey(e,r,Boolean(null===n||void 0===n?void 0:n.keyCode),"")}renderKey(e,t,n,i){X["q"](e,this.createKeyElement(t,n?".highlight":"")),i&&X["q"](e,As("span.monaco-keybinding-key-separator",void 0,i))}renderUnbound(e){X["q"](e,this.createKeyElement(Object(xn["a"])("unbound","Unbound")))}createKeyElement(e,t=""){const n=As("span.monaco-keybinding-key"+t,void 0,e);return this.keyElements.add(n),n}style(e){this.labelBackground=e.keybindingLabelBackground,this.labelForeground=e.keybindingLabelForeground,this.labelBorder=e.keybindingLabelBorder,this.labelBottomBorder=e.keybindingLabelBottomBorder,this.labelShadow=e.keybindingLabelShadow,this.applyStyles()}applyStyles(){var e;if(this.element){for(const t of this.keyElements)this.labelBackground&&(t.style.backgroundColor=null===(e=this.labelBackground)||void 0===e?void 0:e.toString()),this.labelBorder&&(t.style.borderColor=this.labelBorder.toString()),this.labelBottomBorder&&(t.style.borderBottomColor=this.labelBottomBorder.toString()),this.labelShadow&&(t.style.boxShadow="inset 0 -1px 0 "+this.labelShadow);this.labelForeground&&(this.element.style.color=this.labelForeground.toString())}}static areSame(e,t){return e===t||!e&&!t||!!e&&!!t&&Object(bn["d"])(e.firstPart,t.firstPart)&&Object(bn["d"])(e.chordPart,t.chordPart)}}var Ps=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},js=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const Rs=X["a"];class Fs{constructor(e){this.hidden=!1,this._onChecked=new W["b"],this.onChecked=this._onChecked.event,Object.assign(this,e)}get checked(){return!!this._checked}set checked(e){e!==this._checked&&(this._checked=e,this._onChecked.fire(e))}dispose(){this._onChecked.dispose()}}class Bs{get templateId(){return Bs.ID}renderTemplate(e){const t=Object.create(null);t.toDisposeElement=[],t.toDisposeTemplate=[],t.entry=X["q"](e,Rs(".quick-input-list-entry"));const n=X["q"](t.entry,Rs("label.quick-input-list-label"));t.toDisposeTemplate.push(X["o"](n,X["d"].CLICK,e=>{t.checkbox.offsetParent||e.preventDefault()})),t.checkbox=X["q"](n,Rs("input.quick-input-list-checkbox")),t.checkbox.type="checkbox",t.toDisposeTemplate.push(X["o"](t.checkbox,X["d"].CHANGE,e=>{t.element.checked=t.checkbox.checked}));const i=X["q"](n,Rs(".quick-input-list-rows")),r=X["q"](i,Rs(".quick-input-list-row")),o=X["q"](i,Rs(".quick-input-list-row"));t.label=new ks["a"](r,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});const s=X["q"](r,Rs(".quick-input-list-entry-keybinding"));t.keybinding=new Ns(s,Se["a"]);const a=X["q"](o,Rs(".quick-input-list-label-meta"));return t.detail=new Ls["a"](a,!0),t.separator=X["q"](t.entry,Rs(".quick-input-list-separator")),t.actionBar=new $r["a"](t.entry),t.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),t.toDisposeTemplate.push(t.actionBar),t}renderElement(e,t,n){n.toDisposeElement=Object(we["f"])(n.toDisposeElement),n.element=e,n.checkbox.checked=e.checked,n.toDisposeElement.push(e.onChecked(e=>n.checkbox.checked=e));const{labelHighlights:i,descriptionHighlights:r,detailHighlights:o}=e,s=Object.create(null);s.matches=i||[],s.descriptionTitle=e.saneDescription,s.descriptionMatches=r||[],s.extraClasses=e.item.iconClasses,s.italic=e.item.italic,s.strikethrough=e.item.strikethrough,n.label.setLabel(e.saneLabel,e.saneDescription,s),n.keybinding.set(e.item.keybinding),n.detail.set(e.saneDetail,o),e.separator&&e.separator.label?(n.separator.textContent=e.separator.label,n.separator.style.display=""):n.separator.style.display="none",n.entry.classList.toggle("quick-input-list-separator-border",!!e.separator),n.actionBar.clear();const a=e.item.buttons;a&&a.length?(n.actionBar.push(a.map((t,n)=>{let i=t.iconClass||(t.iconPath?Ts(t.iconPath):void 0);t.alwaysVisible&&(i=i?i+" always-visible":"always-visible");const r=new qr["a"]("id-"+n,"",i,!0,()=>js(this,void 0,void 0,(function*(){e.fireButtonTriggered({button:t,item:e.item})})));return r.tooltip=t.tooltip||"",r}),{icon:!0,label:!1}),n.entry.classList.add("has-actions")):n.entry.classList.remove("has-actions")}disposeElement(e,t,n){n.toDisposeElement=Object(we["f"])(n.toDisposeElement)}disposeTemplate(e){e.toDisposeElement=Object(we["f"])(e.toDisposeElement),e.toDisposeTemplate=Object(we["f"])(e.toDisposeTemplate)}}Bs.ID="listelement";class Ws{getHeight(e){return e.saneDetail?44:22}getTemplateId(e){return Bs.ID}}var Vs;(function(e){e[e["First"]=1]="First",e[e["Second"]=2]="Second",e[e["Last"]=3]="Last",e[e["Next"]=4]="Next",e[e["Previous"]=5]="Previous",e[e["NextPage"]=6]="NextPage",e[e["PreviousPage"]=7]="PreviousPage"})(Vs||(Vs={}));class zs{constructor(e,t,n){this.parent=e,this.inputElements=[],this.elements=[],this.elementsToIndexes=new Map,this.matchOnDescription=!1,this.matchOnDetail=!1,this.matchOnLabel=!0,this.matchOnMeta=!0,this.sortByLabel=!0,this._onChangedAllVisibleChecked=new W["b"],this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new W["b"],this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new W["b"],this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new W["b"],this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new W["b"],this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new W["b"],this.onKeyDown=this._onKeyDown.event,this._onLeave=new W["b"],this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=t,this.container=X["q"](this.parent,Rs(".quick-input-list"));const i=new Ws,r=new Us;this.list=n.createList("QuickInput",this.container,i,[new Bs],{identityProvider:{getId:e=>e.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:r}),this.list.getHTMLElement().id=t,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(e=>{const t=new hn["a"](e);switch(t.keyCode){case 10:this.toggleCheckbox();break;case 31:(Se["f"]?e.metaKey:e.ctrlKey)&&this.list.setFocus(Object(gt["r"])(this.list.length));break;case 16:const t=this.list.getFocus();1===t.length&&0===t[0]&&this._onLeave.fire();break;case 18:const n=this.list.getFocus();1===n.length&&n[0]===this.list.length-1&&this._onLeave.fire();break}this._onKeyDown.fire(t)})),this.disposables.push(this.list.onMouseDown(e=>{2!==e.browserEvent.button&&e.browserEvent.preventDefault()})),this.disposables.push(X["i"](this.container,X["d"].CLICK,e=>{(e.x||e.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(e=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(e=>{"number"===typeof e.index&&(e.browserEvent.preventDefault(),this.list.setSelection([e.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return W["c"].map(this.list.onDidChangeFocus,e=>e.elements.map(e=>e.item))}get onDidChangeSelection(){return W["c"].map(this.list.onDidChangeSelection,e=>({items:e.elements.map(e=>e.item),event:e.browserEvent}))}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(e,t=!0){for(let n=0,i=e.length;n<i;n++){const i=e[n];if(!i.hidden){if(!i.checked)return!1;t=!0}}return t}getCheckedCount(){let e=0;const t=this.elements;for(let n=0,i=t.length;n<i;n++)t[n].checked&&e++;return e}getVisibleCount(){let e=0;const t=this.elements;for(let n=0,i=t.length;n<i;n++)t[n].hidden||e++;return e}setAllVisibleChecked(e){try{this._fireCheckedEvents=!1,this.elements.forEach(t=>{t.hidden||(t.checked=e)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(e){this.elementDisposables=Object(we["f"])(this.elementDisposables);const t=e=>this.fireButtonTriggered(e);this.inputElements=e,this.elements=e.reduce((n,i,r)=>{var o,s,a;if("separator"!==i.type){const l=r&&e[r-1],c=i.label&&i.label.replace(/\r?\n/g," "),u=i.meta&&i.meta.replace(/\r?\n/g," "),h=i.description&&i.description.replace(/\r?\n/g," "),d=i.detail&&i.detail.replace(/\r?\n/g," "),f=i.ariaLabel||[c,h,d].map(e=>Object(Jr["c"])(e)).filter(e=>!!e).join(", ");n.push(new Fs({index:r,item:i,saneLabel:c,saneMeta:u,saneAriaLabel:f,saneDescription:h,saneDetail:d,labelHighlights:null===(o=i.highlights)||void 0===o?void 0:o.label,descriptionHighlights:null===(s=i.highlights)||void 0===s?void 0:s.description,detailHighlights:null===(a=i.highlights)||void 0===a?void 0:a.detail,checked:!1,separator:l&&"separator"===l.type?l:void 0,fireButtonTriggered:t}))}return n},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(e=>e.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((e,t,n)=>(e.set(t.item,n),e),new Map),this.list.splice(0,this.list.length),this.list.splice(0,this.list.length,this.elements),this._onChangedVisibleCount.fire(this.elements.length)}getFocusedElements(){return this.list.getFocusedElements().map(e=>e.item)}setFocusedElements(e){if(this.list.setFocus(e.filter(e=>this.elementsToIndexes.has(e)).map(e=>this.elementsToIndexes.get(e))),e.length>0){const e=this.list.getFocus()[0];"number"===typeof e&&this.list.reveal(e)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(e){this.list.setSelection(e.filter(e=>this.elementsToIndexes.has(e)).map(e=>this.elementsToIndexes.get(e)))}getCheckedElements(){return this.elements.filter(e=>e.checked).map(e=>e.item)}setCheckedElements(e){try{this._fireCheckedEvents=!1;const t=new Set;for(const n of e)t.add(n);for(const e of this.elements)e.checked=t.has(e.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(e){this.list.getHTMLElement().style.pointerEvents=e?"":"none"}focus(e){if(!this.list.length)return;switch(e===Vs.Next&&this.list.getFocus()[0]===this.list.length-1&&(e=Vs.First),e===Vs.Previous&&0===this.list.getFocus()[0]&&(e=Vs.Last),e===Vs.Second&&this.list.length<2&&(e=Vs.First),e){case Vs.First:this.list.focusFirst();break;case Vs.Second:this.list.focusNth(1);break;case Vs.Last:this.list.focusLast();break;case Vs.Next:this.list.focusNext();break;case Vs.Previous:this.list.focusPrevious();break;case Vs.NextPage:this.list.focusNextPage();break;case Vs.PreviousPage:this.list.focusPreviousPage();break}const t=this.list.getFocus()[0];"number"===typeof t&&this.list.reveal(t)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(e){this.list.getHTMLElement().style.maxHeight=e?`calc(${44*Math.floor(e/44)}px)`:"",this.list.layout()}filter(e){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;if(e=e.trim(),e&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let t;this.elements.forEach(n=>{const i=this.matchOnLabel?Object(xe["o"])(Object(ro["c"])(e,Object(ro["d"])(n.saneLabel))):void 0,r=this.matchOnDescription?Object(xe["o"])(Object(ro["c"])(e,Object(ro["d"])(n.saneDescription||""))):void 0,o=this.matchOnDetail?Object(xe["o"])(Object(ro["c"])(e,Object(ro["d"])(n.saneDetail||""))):void 0,s=this.matchOnMeta?Object(xe["o"])(Object(ro["c"])(e,Object(ro["d"])(n.saneMeta||""))):void 0;if(i||r||o||s?(n.labelHighlights=i,n.descriptionHighlights=r,n.detailHighlights=o,n.hidden=!1):(n.labelHighlights=void 0,n.descriptionHighlights=void 0,n.detailHighlights=void 0,n.hidden=!n.item.alwaysShow),n.separator=void 0,!this.sortByLabel){const e=n.index&&this.inputElements[n.index-1];t=e&&"separator"===e.type?e:t,t&&!n.hidden&&(n.separator=t,t=void 0)}})}else this.elements.forEach(e=>{e.labelHighlights=void 0,e.descriptionHighlights=void 0,e.detailHighlights=void 0,e.hidden=!1;const t=e.index&&this.inputElements[e.index-1];e.separator=t&&"separator"===t.type?t:void 0});const t=this.elements.filter(e=>!e.hidden);if(this.sortByLabel&&e){const n=e.toLowerCase();t.sort((e,t)=>Hs(e,t,n))}return this.elementsToIndexes=t.reduce((e,t,n)=>(e.set(t.item,n),e),new Map),this.list.splice(0,this.list.length,t),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(t.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;const e=this.list.getFocusedElements(),t=this.allVisibleChecked(e);for(const n of e)n.checked=!t}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(e){this.container.style.display=e?"":"none"}isDisplayed(){return"none"!==this.container.style.display}dispose(){this.elementDisposables=Object(we["f"])(this.elementDisposables),this.disposables=Object(we["f"])(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(e){this._onButtonTriggered.fire(e)}style(e){this.list.style(e)}}function Hs(e,t,n){const i=e.labelHighlights||[],r=t.labelHighlights||[];return i.length&&!r.length?-1:!i.length&&r.length?1:0===i.length&&0===r.length?0:xs(e.saneLabel,t.saneLabel,n)}Ps([Es["a"]],zs.prototype,"onDidChangeFocus",null),Ps([Es["a"]],zs.prototype,"onDidChangeSelection",null);class Us{getWidgetAriaLabel(){return Object(xn["a"])("quickInput","Quick Input")}getAriaLabel(e){return e.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(){return"option"}}var qs=n("d3ef");const $s=X["a"];class Ks extends we["a"]{constructor(e){super(),this.parent=e,this.onKeyDown=e=>X["i"](this.inputBox.inputElement,X["d"].KEY_DOWN,t=>{e(new hn["a"](t))}),this.onMouseDown=e=>X["i"](this.inputBox.inputElement,X["d"].MOUSE_DOWN,t=>{e(new io["a"](t))}),this.onDidChange=e=>this.inputBox.onDidChange(e),this.container=X["q"](this.parent,$s(".quick-input-box")),this.inputBox=this._register(new qs["b"](this.container,void 0))}get value(){return this.inputBox.value}set value(e){this.inputBox.value=e}select(e=null){this.inputBox.select(e)}isSelectionAtEnd(){return this.inputBox.isSelectionAtEnd()}get placeholder(){return this.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(e){this.inputBox.setPlaceHolder(e)}get ariaLabel(){return this.inputBox.getAriaLabel()}set ariaLabel(e){this.inputBox.setAriaLabel(e)}get password(){return"password"===this.inputBox.inputElement.type}set password(e){this.inputBox.inputElement.type=e?"password":"text"}setAttribute(e,t){this.inputBox.inputElement.setAttribute(e,t)}removeAttribute(e){this.inputBox.inputElement.removeAttribute(e)}showDecoration(e){e===dn["a"].Ignore?this.inputBox.hideMessage():this.inputBox.showMessage({type:e===dn["a"].Info?1:e===dn["a"].Warning?2:3,content:""})}stylesForType(e){return this.inputBox.stylesForType(e===dn["a"].Info?1:e===dn["a"].Warning?2:3)}setFocus(){this.inputBox.focus()}layout(){this.inputBox.layout()}style(e){this.inputBox.style(e)}}var Gs=n("3bfb");n("1f26");const Ys="done",Zs="active",Xs="infinite",Qs="discrete",Js={progressBarBackground:Qi["a"].fromHex("#0E70C0")};class ea extends we["a"]{constructor(e,t){super(),this.options=t||Object.create(null),Object(bn["f"])(this.options,Js,!1),this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this._register(this.showDelayedScheduler=new _e["e"](()=>Object(X["W"])(this.element),0)),this.create(e)}create(e){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),e.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.element.appendChild(this.bit),this.applyStyles()}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(Zs,Xs,Qs),this.workedVal=0,this.totalWork=void 0}stop(){return this.doDone(!1)}doDone(e){return this.element.classList.add(Ys),this.element.classList.contains(Xs)?(this.bit.style.opacity="0",e?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",e?setTimeout(()=>this.off(),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(Qs,Ys),this.element.classList.add(Zs,Xs),this}getContainer(){return this.element}style(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()}applyStyles(){if(this.bit){const e=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=e}}}n("ffac");var ta=n("a60f"),na=n("7ddc");const ia={buttonBackground:Qi["a"].fromHex("#0E639C"),buttonHoverBackground:Qi["a"].fromHex("#006BB3"),buttonForeground:Qi["a"].white};class ra extends we["a"]{constructor(e,t){super(),this._onDidClick=this._register(new W["b"]),this.options=t||Object.create(null),Object(bn["f"])(this.options,ia,!1),this.buttonForeground=this.options.buttonForeground,this.buttonBackground=this.options.buttonBackground,this.buttonHoverBackground=this.options.buttonHoverBackground,this.buttonSecondaryForeground=this.options.buttonSecondaryForeground,this.buttonSecondaryBackground=this.options.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=this.options.buttonSecondaryHoverBackground,this.buttonBorder=this.options.buttonBorder,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),e.appendChild(this._element),this._register(ta["b"].addTarget(this._element)),[X["d"].CLICK,ta["a"].Tap].forEach(e=>{this._register(Object(X["i"])(this._element,e,e=>{this.enabled?this._onDidClick.fire(e):X["c"].stop(e)}))}),this._register(Object(X["i"])(this._element,X["d"].KEY_DOWN,e=>{const t=new hn["a"](e);let n=!1;this.enabled&&(t.equals(3)||t.equals(10))?(this._onDidClick.fire(e),n=!0):t.equals(9)&&(this._element.blur(),n=!0),n&&X["c"].stop(t,!0)})),this._register(Object(X["i"])(this._element,X["d"].MOUSE_OVER,e=>{this._element.classList.contains("disabled")||this.setHoverBackground()})),this._register(Object(X["i"])(this._element,X["d"].MOUSE_OUT,e=>{this.applyStyles()})),this.focusTracker=this._register(Object(X["Y"])(this._element)),this._register(this.focusTracker.onDidFocus(()=>this.setHoverBackground())),this._register(this.focusTracker.onDidBlur(()=>this.applyStyles())),this.applyStyles()}get onDidClick(){return this._onDidClick.event}setHoverBackground(){let e;e=this.options.secondary?this.buttonSecondaryHoverBackground?this.buttonSecondaryHoverBackground.toString():null:this.buttonHoverBackground?this.buttonHoverBackground.toString():null,e&&(this._element.style.backgroundColor=e)}style(e){this.buttonForeground=e.buttonForeground,this.buttonBackground=e.buttonBackground,this.buttonHoverBackground=e.buttonHoverBackground,this.buttonSecondaryForeground=e.buttonSecondaryForeground,this.buttonSecondaryBackground=e.buttonSecondaryBackground,this.buttonSecondaryHoverBackground=e.buttonSecondaryHoverBackground,this.buttonBorder=e.buttonBorder,this.applyStyles()}applyStyles(){if(this._element){let e,t;this.options.secondary?(t=this.buttonSecondaryForeground?this.buttonSecondaryForeground.toString():"",e=this.buttonSecondaryBackground?this.buttonSecondaryBackground.toString():""):(t=this.buttonForeground?this.buttonForeground.toString():"",e=this.buttonBackground?this.buttonBackground.toString():"");const n=this.buttonBorder?this.buttonBorder.toString():"";this._element.style.color=t,this._element.style.backgroundColor=e,this._element.style.borderWidth=n?"1px":"",this._element.style.borderStyle=n?"solid":"",this._element.style.borderColor=n}}get element(){return this._element}set label(e){this._element.classList.add("monaco-text-button"),this.options.supportIcons?Object(X["R"])(this._element,...Object(na["a"])(e)):this._element.textContent=e,"string"===typeof this.options.title?this._element.title=this.options.title:this.options.title&&(this._element.title=e)}set enabled(e){e?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}}var oa=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};const sa=X["a"],aa=Object(Jr["e"])("quick-input-back",Jr["b"].arrowLeft),la={iconClass:aa.classNames,tooltip:Object(xn["a"])("quickInput.back","Back"),handle:-1};class ca extends we["a"]{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.noValidationMessage=ca.noPromptMessage,this._severity=dn["a"].Ignore,this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new W["b"]),this.onDidHideEmitter=this._register(new W["b"]),this.onDisposeEmitter=this._register(new W["b"]),this.visibleDisposables=this._register(new we["b"]),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){const t=this._ignoreFocusOut!==e&&!Se["c"];this._ignoreFocusOut=e&&!Se["c"],t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e)})),this.ui.show(this),this.visible=!0,this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=ws["c"].Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}update(){if(!this.visible)return;const e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:e||" "===this.ui.title.innerHTML||(this.ui.title.innerText=" ;");const t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new _e["g"],this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const e=this.buttons.filter(e=>e===la);this.ui.leftActionBar.push(e.map((e,t)=>{const n=new qr["a"]("id-"+t,"",e.iconClass||Ts(e.iconPath),!0,()=>oa(this,void 0,void 0,(function*(){this.onDidTriggerButtonEmitter.fire(e)})));return n.tooltip=e.tooltip||"",n}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();const t=this.buttons.filter(e=>e!==la);this.ui.rightActionBar.push(t.map((e,t)=>{const n=new qr["a"]("id-"+t,"",e.iconClass||Ts(e.iconPath),!0,()=>oa(this,void 0,void 0,(function*(){this.onDidTriggerButtonEmitter.fire(e)})));return n.tooltip=e.tooltip||"",n}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const n=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==n&&(this._lastValidationMessage=n,X["R"](this.ui.message,...Object(na["a"])(n))),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?Object(xn["a"])("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==dn["a"].Ignore){const t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?""+t.foreground:"",this.ui.message.style.backgroundColor=t.background?""+t.background:"",this.ui.message.style.border=t.border?"1px solid "+t.border:"",this.ui.message.style.paddingBottom="4px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.paddingBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}ca.noPromptMessage=Object(xn["a"])("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class ua extends ca{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new W["b"]),this.onWillAcceptEmitter=this._register(new W["b"]),this.onDidAcceptEmitter=this._register(new W["b"]),this.onDidCustomEmitter=this._register(new W["b"]),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._sortByLabel=!0,this._autoFocusOnList=!0,this._itemActivation=this.ui.isScreenReaderOptimized()?ws["a"].NONE:ws["a"].FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new W["b"]),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new W["b"]),this.onDidTriggerItemButtonEmitter=this._register(new W["b"]),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e||"",this.update(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=e,this.update()}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?ws["b"]:this.ui.keyMods}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(Vs.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{if(e===this.value)return;this._value=e;const t=this.ui.list.filter(this.filterValue(this.ui.inputBox.value));t&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(e)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(e=>{this.autoFocusOnList||this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(e=>{switch(e.keyCode){case 18:this.ui.list.focus(Vs.Next),this.canSelectMany&&this.ui.list.domFocus(),X["c"].stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(Vs.Previous):this.ui.list.focus(Vs.Last),this.canSelectMany&&this.ui.list.domFocus(),X["c"].stop(e,!0);break;case 12:this.ui.list.focus(Vs.NextPage),this.canSelectMany&&this.ui.list.domFocus(),X["c"].stop(e,!0);break;case 11:this.ui.list.focus(Vs.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),X["c"].stop(e,!0);break;case 17:if(!this._canAcceptInBackground)return;if(!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(Vs.First),X["c"].stop(e,!0));break;case 13:!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey||(this.ui.list.focus(Vs.Last),X["c"].stop(e,!0));break}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{!this.canSelectMany&&this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(e=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&Object(gt["h"])(e,this._activeItems,(e,t)=>e===t)||(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{this.canSelectMany?e.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&Object(gt["h"])(e,this._selectedItems,(e,t)=>e===t)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(t instanceof MouseEvent&&1===t.button))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&Object(gt["h"])(e,this._selectedItems,(e,t)=>e===t)||(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e)))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.fire(e))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),t||this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return X["i"](this.ui.container,X["d"].KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;const t=new hn["a"](e),n=t.keyCode,i=this._quickNavigate.keybindings,r=i.some(e=>{const[i,r]=e.getParts();return!r&&(i.shiftKey&&4===n?!(t.ctrlKey||t.altKey||t.metaKey):!(!i.altKey||6!==n)||(!(!i.ctrlKey||5!==n)||!(!i.metaKey||57!==n)))});r&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)})}update(){if(!this.visible)return;const e=!!this._hideInput&&this._items.length>0;this.ui.container.classList.toggle("hidden-input",e&&!this.description);const t={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!e,progressBar:!e,visibleCount:!0,count:this.canSelectMany,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(t),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");const n=this.ariaLabel||this.placeholder||ua.DEFAULT_ARIA_LABEL;if(this.ui.inputBox.ariaLabel!==n&&(this.ui.inputBox.ariaLabel=n),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case ws["a"].NONE:this._itemActivation=ws["a"].FIRST;break;case ws["a"].SECOND:this.ui.list.focus(Vs.Second),this._itemActivation=ws["a"].FIRST;break;case ws["a"].LAST:this.ui.list.focus(Vs.Last),this._itemActivation=ws["a"].FIRST;break;default:this.trySelectFirst();break}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),t.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(Vs.First))}}ua.DEFAULT_ARIA_LABEL=Object(xn["a"])("quickInputBox.ariaLabel","Type to narrow down results.");class ha extends we["a"]{constructor(e){super(),this.options=e,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new W["b"]),this.onDidCustomEmitter=this._register(new W["b"]),this.onDidTriggerButtonEmitter=this._register(new W["b"]),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new W["b"]),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new W["b"]),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){const e=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};this._register(X["i"](window,X["d"].KEY_DOWN,e,!0)),this._register(X["i"](window,X["d"].KEY_UP,e,!0)),this._register(X["i"](window,X["d"].MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;const e=X["q"](this.parentElement,sa(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none";const t=X["w"](e),n=X["q"](e,sa(".quick-input-titlebar")),i=this._register(new $r["a"](n));i.domNode.classList.add("quick-input-left-action-bar");const r=X["q"](n,sa(".quick-input-title")),o=this._register(new $r["a"](n));o.domNode.classList.add("quick-input-right-action-bar");const s=X["q"](e,sa(".quick-input-description")),a=X["q"](e,sa(".quick-input-header")),l=X["q"](a,sa("input.quick-input-check-all"));l.type="checkbox",this._register(X["o"](l,X["d"].CHANGE,e=>{const t=l.checked;C.setAllVisibleChecked(t)})),this._register(X["i"](l,X["d"].CLICK,e=>{(e.x||e.y)&&d.setFocus()}));const c=X["q"](a,sa(".quick-input-description")),u=X["q"](a,sa(".quick-input-and-message")),h=X["q"](u,sa(".quick-input-filter")),d=this._register(new Ks(h));d.setAttribute("aria-describedby",this.idPrefix+"message");const f=X["q"](h,sa(".quick-input-visible-count"));f.setAttribute("aria-live","polite"),f.setAttribute("aria-atomic","true");const p=new Gs["a"](f,{countFormat:Object(xn["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")}),g=X["q"](h,sa(".quick-input-count"));g.setAttribute("aria-live","polite");const m=new Gs["a"](g,{countFormat:Object(xn["a"])({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")}),v=X["q"](a,sa(".quick-input-action")),b=new ra(v);b.label=Object(xn["a"])("ok","OK"),this._register(b.onDidClick(e=>{this.onDidAcceptEmitter.fire()}));const y=X["q"](a,sa(".quick-input-action")),_=new ra(y);_.label=Object(xn["a"])("custom","Custom"),this._register(_.onDidClick(e=>{this.onDidCustomEmitter.fire()}));const w=X["q"](u,sa(`#${this.idPrefix}message.quick-input-message`)),C=this._register(new zs(e,this.idPrefix+"list",this.options));this._register(C.onChangedAllVisibleChecked(e=>{l.checked=e})),this._register(C.onChangedVisibleCount(e=>{p.setCount(e)})),this._register(C.onChangedCheckedCount(e=>{m.setCount(e)})),this._register(C.onLeave(()=>{setTimeout(()=>{d.setFocus(),this.controller instanceof ua&&this.controller.canSelectMany&&C.clearFocus()},0)})),this._register(C.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));const S=new ea(e);S.getContainer().classList.add("quick-input-progress");const x=X["Y"](e);return this._register(x),this._register(X["i"](e,X["d"].FOCUS,e=>{this.previousFocusElement=e.relatedTarget instanceof HTMLElement?e.relatedTarget:void 0},!0)),this._register(x.onDidBlur(()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(ws["c"].Blur),this.previousFocusElement=void 0})),this._register(X["i"](e,X["d"].FOCUS,e=>{d.setFocus()})),this._register(X["i"](e,X["d"].KEY_DOWN,t=>{const n=new hn["a"](t);switch(n.keyCode){case 3:X["c"].stop(t,!0),this.onDidAcceptEmitter.fire();break;case 9:X["c"].stop(t,!0),this.hide(ws["c"].Gesture);break;case 2:if(!n.altKey&&!n.ctrlKey&&!n.metaKey){const i=[".action-label.codicon"];e.classList.contains("show-checkboxes")?i.push("input"):i.push("input[type=text]"),this.getUI().list.isDisplayed()&&i.push(".monaco-list");const r=e.querySelectorAll(i.join(", "));n.shiftKey&&n.target===r[0]?(X["c"].stop(t,!0),r[r.length-1].focus()):n.shiftKey||n.target!==r[r.length-1]||(X["c"].stop(t,!0),r[0].focus())}break}})),this.ui={container:e,styleSheet:t,leftActionBar:i,titleBar:n,title:r,description1:s,description2:c,rightActionBar:o,checkAll:l,filterContainer:h,inputBox:d,visibleCountContainer:f,visibleCount:p,countContainer:g,count:m,okContainer:v,ok:b,message:w,customButtonContainer:y,customButton:_,list:C,progressBar:S,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setComboboxAccessibility:e=>this.setComboboxAccessibility(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e)},this.updateStyles(),this.ui}pick(e,t={},n=B["a"].None){return new Promise((i,r)=>{let o=e=>{o=i,t.onKeyMods&&t.onKeyMods(s.keyMods),i(e)};if(n.isCancellationRequested)return void o(void 0);const s=this.createQuickPick();let a;const l=[s,s.onDidAccept(()=>{if(s.canSelectMany)o(s.selectedItems.slice()),s.hide();else{const e=s.activeItems[0];e&&(o(e),s.hide())}}),s.onDidChangeActive(e=>{const n=e[0];n&&t.onDidFocus&&t.onDidFocus(n)}),s.onDidChangeSelection(e=>{if(!s.canSelectMany){const t=e[0];t&&(o(t),s.hide())}}),s.onDidTriggerItemButton(e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},e),{removeItem:()=>{const t=s.items.indexOf(e.item);if(-1!==t){const e=s.items.slice(),n=e.splice(t,1),i=s.activeItems.filter(e=>e!==n[0]);s.items=e,i&&(s.activeItems=i)}}}))),s.onDidChangeValue(e=>{!a||e||1===s.activeItems.length&&s.activeItems[0]===a||(s.activeItems=[a])}),n.onCancellationRequested(()=>{s.hide()}),s.onDidHide(()=>{Object(we["f"])(l),o(void 0)})];s.title=t.title,s.canSelectMany=!!t.canPickMany,s.placeholder=t.placeHolder,s.ignoreFocusOut=!!t.ignoreFocusLost,s.matchOnDescription=!!t.matchOnDescription,s.matchOnDetail=!!t.matchOnDetail,s.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,s.autoFocusOnList=void 0===t.autoFocusOnList||t.autoFocusOnList,s.quickNavigate=t.quickNavigate,s.contextKey=t.contextKey,s.busy=!0,Promise.all([e,t.activeItem]).then(([e,t])=>{a=t,s.busy=!1,s.items=e,s.canSelectMany&&(s.selectedItems=e.filter(e=>"separator"!==e.type&&e.picked)),a&&(s.activeItems=[a])}),s.show(),Promise.resolve(e).then(void 0,e=>{r(e),s.hide()})})}createQuickPick(){const e=this.getUI();return new ua(e)}show(e){const t=this.getUI();this.onShowEmitter.fire();const n=this.controller;this.controller=e,n&&n.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(dn["a"].Ignore),t.visibleCount.setCount(0),t.count.setCount(0),X["R"](t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="";const i=this.options.backKeybindingLabel();la.tooltip=i?Object(xn["a"])("quickInput.backWithKeybinding","Back ({0})",i):Object(xn["a"])("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}setVisibilities(e){const t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=!e.description||e.inputBox||e.checkAll?"none":"",t.checkAll.style.display=e.checkAll?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList[e.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(e){if(e!==this.comboboxAccessibility){const t=this.getUI();this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(e){if(e!==this.enabled){this.enabled=e;for(const t of this.getUI().leftActionBar.viewItems)t.getAction().enabled=e;for(const t of this.getUI().rightActionBar.viewItems)t.getAction().enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t;const n=this.controller;if(n){const i=!(null===(t=this.ui)||void 0===t?void 0:t.container.contains(document.activeElement));this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",i||(this.previousFocusElement&&this.previousFocusElement.offsetParent?(this.previousFocusElement.focus(),this.previousFocusElement=void 0):this.options.returnFocus()),n.didHide(e)}}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=this.titleBarOffset+"px";const e=this.ui.container.style,t=Math.min(.62*this.dimension.width,ha.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:n,contrastBorder:i,widgetShadow:r}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e?e.toString():"",this.ui.container.style.backgroundColor=t?t.toString():"",this.ui.container.style.color=n?n.toString():"",this.ui.container.style.border=i?"1px solid "+i:"",this.ui.container.style.boxShadow=r?"0 0 8px 2px "+r:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);const o=[];this.styles.list.pickerGroupBorder&&o.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&o.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(o.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&o.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&o.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&o.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&o.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&o.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),o.push("}"));const s=o.join("\n");s!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=s)}}}ha.MAX_WIDTH=600;var da=n("66bd"),fa=n("2f1e"),pa=n("0bfb"),ga=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ma=function(e,t){return function(n,i){t(n,i,e)}};let va=class extends we["a"]{constructor(e,t){super(),this.quickInputService=e,this.instantiationService=t,this.registry=$i["a"].as(fa["b"].Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(e="",t){this.doShowOrPick(e,!1,t)}doShowOrPick(e,t,n){var i;const[r,o]=this.getOrInstantiateProvider(e),s=this.visibleQuickAccess,a=null===s||void 0===s?void 0:s.descriptor;if(s&&o&&a===o)return e===o.prefix||(null===n||void 0===n?void 0:n.preserveValue)||(s.picker.value=e),void this.adjustValueSelection(s.picker,o,n);if(o&&!(null===n||void 0===n?void 0:n.preserveValue)){let t=void 0;if(s&&a&&a!==o){const e=s.value.substr(a.prefix.length);e&&(t=`${o.prefix}${e}`)}if(!t){const e=null===r||void 0===r?void 0:r.defaultFilterValue;e===fa["a"].LAST?t=this.lastAcceptedPickerValues.get(o):"string"===typeof e&&(t=`${o.prefix}${e}`)}"string"===typeof t&&(e=t)}const l=new we["b"],c=l.add(this.quickInputService.createQuickPick());c.value=e,this.adjustValueSelection(c,o,n),c.placeholder=null===o||void 0===o?void 0:o.placeholder,c.quickNavigate=null===n||void 0===n?void 0:n.quickNavigateConfiguration,c.hideInput=!!c.quickNavigate&&!s,("number"===typeof(null===n||void 0===n?void 0:n.itemActivation)||(null===n||void 0===n?void 0:n.quickNavigateConfiguration))&&(c.itemActivation=null!==(i=null===n||void 0===n?void 0:n.itemActivation)&&void 0!==i?i:da["b"].SECOND),c.contextKey=null===o||void 0===o?void 0:o.contextKey,c.filterValue=e=>e.substring(o?o.prefix.length:0),(null===o||void 0===o?void 0:o.placeholder)&&(c.ariaLabel=null===o||void 0===o?void 0:o.placeholder);let u=void 0,h=void 0;t&&(u=new Promise(e=>h=e),l.add(Object(pa["a"])(c.onWillAccept)(e=>{e.veto(),c.hide()}))),l.add(this.registerPickerListeners(c,r,o,e));const d=l.add(new B["b"]);return r&&l.add(r.provide(c,d.token)),Object(pa["a"])(c.onDidHide)(()=>{0===c.selectedItems.length&&d.cancel(),l.dispose(),null===h||void 0===h||h(c.selectedItems)}),c.show(),t?u:void 0}adjustValueSelection(e,t,n){var i;let r;r=(null===n||void 0===n?void 0:n.preserveValue)?[e.value.length,e.value.length]:[null!==(i=null===t||void 0===t?void 0:t.prefix.length)&&void 0!==i?i:0,e.value.length],e.valueSelection=r}registerPickerListeners(e,t,n,i){const r=new we["b"],o=this.visibleQuickAccess={picker:e,descriptor:n,value:i};return r.add(Object(we["i"])(()=>{o===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),r.add(e.onDidChangeValue(e=>{const[n]=this.getOrInstantiateProvider(e);n!==t?this.show(e,{preserveValue:!0}):o.value=e})),n&&r.add(e.onDidAccept(()=>{this.lastAcceptedPickerValues.set(n,e.value)})),r}getOrInstantiateProvider(e){const t=this.registry.getQuickAccessProvider(e);if(!t)return[void 0,void 0];let n=this.mapProviderToDescriptor.get(t);return n||(n=this.instantiationService.createInstance(t.ctor),this.mapProviderToDescriptor.set(t,n)),[n,t]}};va=ga([ma(0,da["a"]),ma(1,fi["a"])],va);var ba=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ya=function(e,t){return function(n,i){t(n,i,e)}};let _a=class extends gi["c"]{constructor(e,t,n,i,r){super(n),this.instantiationService=e,this.contextKeyService=t,this.accessibilityService=i,this.layoutService=r,this.contexts=new Map}get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(va))),this._quickAccess}createController(e=this.layoutService,t){var n,i;const r={idPrefix:"quickInput_",container:e.container,ignoreFocusOut:()=>!1,isScreenReaderOptimized:()=>this.accessibilityService.isScreenReaderOptimized(),backKeybindingLabel:()=>{},setContextKey:e=>this.setContextKey(e),returnFocus:()=>e.focus(),createList:(e,t,n,i,r)=>this.instantiationService.createInstance(Ro["d"],e,t,n,i,r),styles:this.computeStyles()},o=this._register(new ha(Object.assign(Object.assign({},r),t)));return o.layout(e.dimension,null!==(i=null===(n=e.offset)||void 0===n?void 0:n.top)&&void 0!==i?i:0),this._register(e.onDidLayout(t=>{var n,i;return o.layout(t,null!==(i=null===(n=e.offset)||void 0===n?void 0:n.top)&&void 0!==i?i:0)})),this._register(o.onShow(()=>this.resetContextKeys())),this._register(o.onHide(()=>this.resetContextKeys())),o}setContextKey(e){let t;e&&(t=this.contexts.get(e),t||(t=new hi["c"](e,!1).bindTo(this.contextKeyService),this.contexts.set(e,t))),t&&t.get()||(this.resetContextKeys(),t&&t.set(!0))}resetContextKeys(){this.contexts.forEach(e=>{e.get()&&e.reset()})}pick(e,t={},n=B["a"].None){return this.controller.pick(e,t,n)}createQuickPick(){return this.controller.createQuickPick()}updateStyles(){this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:Object.assign({},Object(vo["d"])(this.theme,{quickInputBackground:dr["qc"],quickInputForeground:dr["rc"],quickInputTitleBackground:dr["vc"],contrastBorder:dr["h"],widgetShadow:dr["Mc"]})),inputBox:Object(vo["d"])(this.theme,{inputForeground:dr["lb"],inputBackground:dr["jb"],inputBorder:dr["kb"],inputValidationInfoBackground:dr["pb"],inputValidationInfoForeground:dr["rb"],inputValidationInfoBorder:dr["qb"],inputValidationWarningBackground:dr["sb"],inputValidationWarningForeground:dr["ub"],inputValidationWarningBorder:dr["tb"],inputValidationErrorBackground:dr["mb"],inputValidationErrorForeground:dr["ob"],inputValidationErrorBorder:dr["nb"]}),countBadge:Object(vo["d"])(this.theme,{badgeBackground:dr["c"],badgeForeground:dr["d"],badgeBorder:dr["h"]}),button:Object(vo["d"])(this.theme,{buttonForeground:dr["f"],buttonBackground:dr["e"],buttonHoverBackground:dr["g"],buttonBorder:dr["h"]}),progressBar:Object(vo["d"])(this.theme,{progressBarBackground:dr["pc"]}),keybindingLabel:Object(vo["d"])(this.theme,{keybindingLabelBackground:dr["vb"],keybindingLabelForeground:dr["yb"],keybindingLabelBorder:dr["wb"],keybindingLabelBottomBorder:dr["xb"],keybindingLabelShadow:dr["Mc"]}),list:Object(vo["d"])(this.theme,{listBackground:dr["qc"],listInactiveFocusForeground:dr["tc"],listInactiveSelectionIconForeground:dr["uc"],listInactiveFocusBackground:dr["sc"],listFocusOutline:dr["b"],listInactiveFocusOutline:dr["b"],pickerGroupBorder:dr["kc"],pickerGroupForeground:dr["lc"]})}}};_a=ba([ya(0,fi["a"]),ya(1,hi["b"]),ya(2,gi["b"]),ya(3,mi["b"]),ya(4,So)],_a);var wa=function(e,t,n,i){var r,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Ca=function(e,t){return function(n,i){t(n,i,e)}};let Sa=class extends _a{constructor(e,t,n,i,r,o){super(t,n,i,r,o),this.host=void 0;const s=Oa.get(e);this.host={_serviceBrand:void 0,get container(){return s.widget.getDomNode()},get dimension(){return e.getLayoutInfo()},get onDidLayout(){return e.onDidLayoutChange},focus:()=>e.focus()}}createController(){return super.createController(this.host)}};Sa=wa([Ca(1,fi["a"]),Ca(2,hi["b"]),Ca(3,gi["b"]),Ca(4,mi["b"]),Ca(5,So)],Sa);let xa=class{constructor(e,t){this.instantiationService=e,this.codeEditorService=t,this.mapEditorToService=new Map}get activeService(){const e=this.codeEditorService.getFocusedCodeEditor();if(!e)throw new Error("Quick input service needs a focused editor to work.");let t=this.mapEditorToService.get(e);if(!t){const n=t=this.instantiationService.createInstance(Sa,e);this.mapEditorToService.set(e,t),Object(pa["a"])(e.onDidDispose)(()=>{n.dispose(),this.mapEditorToService.delete(e)})}return t}get quickAccess(){return this.activeService.quickAccess}pick(e,t={},n=B["a"].None){return this.activeService.pick(e,t,n)}createQuickPick(){return this.activeService.createQuickPick()}};xa=wa([Ca(0,fi["a"]),Ca(1,Z["a"])],xa);class Oa{constructor(e){this.editor=e,this.widget=new ka(this.editor)}static get(e){return e.getContribution(Oa.ID)}dispose(){this.widget.dispose()}}Oa.ID="editor.controller.quickInput";class ka{constructor(e){this.codeEditor=e,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return ka.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}var La;ka.ID="editor.contrib.quickInputWidget",Object(_s["l"])(Oa.ID,Oa),function(e){const t=new Mo["a"];class n{constructor(e,t){this._serviceId=e,this._factory=t,this._value=null}get id(){return this._serviceId}get(e){if(!this._value){if(e&&(this._value=e[this._serviceId.toString()]),this._value||(this._value=this._factory(e)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");t.set(this._serviceId,this._value)}return this._value}}e.LazyStaticService=n;let i=[];function r(e,t){let r=new n(e,t);return i.push(r),r}function o(e){let t=new Mo["a"];for(const[i,r]of Object(Qo["a"])())t.set(i,r);for(let i in e)e.hasOwnProperty(i)&&t.set(Object(fi["c"])(i),e[i]);i.forEach(n=>t.set(n.id,n.get(e)));let n=new No(t,!0);return t.set(fi["a"],n),[t,n]}e.init=o,e.instantiationService=r(fi["a"],()=>new No(t,!0));const s=new Zn;e.configurationService=r(vn["a"],()=>s),e.resourceConfigurationService=r(pt["a"],()=>new Xn(s)),e.resourcePropertiesService=r(pt["b"],()=>new Qn(s)),e.contextService=r(jn["a"],()=>new ei),e.labelService=r(jo["a"],()=>new ii),e.telemetryService=r(yo["a"],()=>new Jn),e.dialogService=r(Lo["a"],()=>new qn),e.notificationService=r(Pn["a"],()=>new $n),e.markerService=r(Fo["b"],()=>new Vo),e.modeService=r(be["a"],e=>new Zi),e.standaloneThemeService=r(ci["a"],()=>new Er),e.logService=r(mt["b"],()=>new mt["d"](new mt["a"])),e.undoRedoService=r(rs["a"],t=>new bs(e.dialogService.get(t),e.notificationService.get(t))),e.modelService=r(ft["a"],t=>new Xi["a"](e.configurationService.get(t),e.resourcePropertiesService.get(t),e.standaloneThemeService.get(t),e.logService.get(t),e.undoRedoService.get(t))),e.markerDecorationsService=r(Ko["a"],t=>new Xo(e.modelService.get(t),e.markerService.get(t))),e.contextKeyService=r(hi["b"],t=>new Vr(e.configurationService.get(t))),e.codeEditorService=r(Z["a"],t=>new Ti(null,e.contextKeyService.get(t),e.standaloneThemeService.get(t))),e.editorProgressService=r(bi["a"],()=>new Un),e.storageService=r(zo["a"],()=>new zo["b"]),e.editorWorkerService=r(ve["a"],t=>new St(e.modelService.get(t),e.resourceConfigurationService.get(t),e.logService.get(t)))}(La||(La={}));class Ea extends we["a"]{constructor(e,t){super();const[n,i]=La.init(t);this._serviceCollection=n,this._instantiationService=i;const r=this.get(vn["a"]),o=this.get(Pn["a"]),s=this.get(yo["a"]),a=this.get(gi["b"]),l=this.get(mt["b"]),c=this.get(hi["b"]);let u=(e,n)=>{let i=null;return t&&(i=t[e.toString()]),i||(i=n()),this._serviceCollection.set(e,i),i};u(mi["b"],()=>new ts(c,r)),u(Ro["a"],()=>new Ro["b"](a));let h=u(ie["b"],()=>new Kn(this._instantiationService)),d=u(pi["a"],()=>this._register(new Gn(c,h,s,o,l,e))),f=u(So,()=>new ri(La.codeEditorService.get(Z["a"]),e));u(da["a"],()=>new xa(i,La.codeEditorService.get(Z["a"])));let p=u(di["b"],()=>this._register(new ko(f)));u(vi["a"],()=>new is),u(di["a"],()=>{const e=new Co(s,o,p,d,a);return e.configure({blockMouse:!1}),this._register(e)}),u(ui["a"],()=>new qo(h)),u(pn["a"],()=>new ni(La.modelService.get(ft["a"])))}get(e){let t=this._serviceCollection.get(e);if(!t)throw new Error("Missing service "+e);return t}set(e,t){this._serviceCollection.set(e,t)}has(e){return this._serviceCollection.has(e)}}var Da=n("1ddc");function Ia(e,t,n){let i=new Ea(e,t),r=null;i.has(ye["a"])||(r=new Hn(La.modelService.get()),i.set(ye["a"],r)),i.has(re["a"])||i.set(re["a"],new ue(i.get(Z["a"]),i.get(ie["b"])));let o=n(i);return r&&r.setEditor(o),o}function Ma(e,t,n){return Ia(e,n||{},n=>new Wi(e,t,n,n.get(fi["a"]),n.get(Z["a"]),n.get(ie["b"]),n.get(hi["b"]),n.get(pi["a"]),n.get(di["b"]),n.get(ci["a"]),n.get(Pn["a"]),n.get(vn["a"]),n.get(mi["b"]),n.get(ft["a"]),n.get(be["a"])))}function Ta(e){return La.codeEditorService.get().onCodeEditorAdd(t=>{e(t)})}function Aa(e,t,n){return Ia(e,n||{},n=>new Vi(e,t,n,n.get(fi["a"]),n.get(hi["b"]),n.get(pi["a"]),n.get(di["b"]),n.get(ve["a"]),n.get(Z["a"]),n.get(ci["a"]),n.get(Pn["a"]),n.get(vn["a"]),n.get(di["a"]),n.get(bi["a"]),n.get(vi["a"])))}function Na(e,t){return new he["a"](e,t)}function Pa(e,t,n){return zi(La.modelService.get(),La.modeService.get(),e,t,n)}function ja(e,t){La.modelService.get().setMode(e,La.modeService.get().create(t))}function Ra(e,t,n){e&&La.markerService.get().changeOne(t,e.uri,n)}function Fa(e){return La.markerService.get().read(e)}function Ba(e){return La.markerService.get().onMarkerChanged(e)}function Wa(e){return La.modelService.get().getModel(e)}function Va(){return La.modelService.get().getModels()}function za(e){return La.modelService.get().onModelAdded(e)}function Ha(e){return La.modelService.get().onModelRemoved(e)}function Ua(e){return La.modelService.get().onModelModeChanged(t=>{e({model:t.model,oldLanguage:t.oldModeId})})}function qa(e){return It(La.modelService.get(),e)}function $a(e,t){const n=La.standaloneThemeService.get();return n.registerEditorContainer(e),an.colorizeElement(n,La.modeService.get(),e,t)}function Ka(e,t,n){const i=La.standaloneThemeService.get();return i.registerEditorContainer(document.body),an.colorize(La.modeService.get(),e,t,n)}function Ga(e,t,n=4){const i=La.standaloneThemeService.get();return i.registerEditorContainer(document.body),an.colorizeModelLine(e,t,n)}function Ya(e){let t=ge["F"].get(e);return t||{getInitialState:()=>me["c"],tokenize:(t,n,i,r)=>Object(me["d"])(e,t,i,r)}}function Za(e,t){let n=La.modeService.get();n.triggerMode(t);let i=Ya(t),r=Object(Fe["R"])(e),o=[],s=i.getInitialState();for(let a=0,l=r.length;a<l;a++){let e=r[a],t=i.tokenize(e,!0,s,0);o[a]=t.tokens,s=t.endState}return o}function Xa(e,t){La.standaloneThemeService.get().defineTheme(e,t)}function Qa(e){La.standaloneThemeService.get().setTheme(e)}function Ja(){Object(Da["b"])()}function el(e,t){return ie["a"].registerCommand({id:e,handler:t})}function tl(){return{create:Ma,onDidCreateEditor:Ta,createDiffEditor:Aa,createDiffNavigator:Na,createModel:Pa,setModelLanguage:ja,setModelMarkers:Ra,getModelMarkers:Fa,onDidChangeMarkers:Ba,getModels:Va,getModel:Wa,onDidCreateModel:za,onWillDisposeModel:Ha,onDidChangeModelLanguage:Ua,createWebWorker:qa,colorizeElement:$a,colorize:Ka,colorizeModelLine:Ga,tokenize:Za,defineTheme:Xa,setTheme:Qa,remeasureFonts:Ja,registerCommand:el,AccessibilitySupport:i,ContentWidgetPositionPreference:l,CursorChangeReason:c,DefaultEndOfLine:u,EditorAutoIndentStrategy:d,EditorOption:f,EndOfLinePreference:p,EndOfLineSequence:g,MinimapPosition:C,MouseTargetType:S,OverlayWidgetPositionPreference:x,OverviewRulerLane:O,RenderLineNumbersType:k,RenderMinimap:L,ScrollbarVisibility:D,ScrollType:E,TextEditorCursorBlinkingStyle:N,TextEditorCursorStyle:P,TrackedRangeStickiness:j,WrappingIndent:R,ConfigurationChangedEvent:F["b"],BareFontInfo:de["a"],FontInfo:de["b"],TextModelResolvedOptions:pe["e"],FindMatch:pe["b"],EditorType:fe["a"],EditorOptions:F["g"]}}function nl(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(const n of t)if(!e(n))return!1;return!0}function il(e,t){return"boolean"===typeof e?e:t}function rl(e,t){return"string"===typeof e?e:t}function ol(e){const t={};for(const n of e)t[n]=!0;return t}function sl(e,t=!1){t&&(e=e.map((function(e){return e.toLowerCase()})));const n=ol(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 al(e,t){t=t.replace(/@@/g,"");let n,i=0;do{n=!1,t=t.replace(/@(\w+)/g,(function(i,r){n=!0;let o="";if("string"===typeof e[r])o=e[r];else{if(!(e[r]&&e[r]instanceof RegExp))throw void 0===e[r]?Ht(e,"language definition does not contain attribute '"+r+"', used at: "+t):Ht(e,"attribute reference '"+r+"' must be a string, used at: "+t);o=e[r].source}return Bt(o)?"":"(?:"+o+")"})),i++}while(n&&i<5);t=t.replace(/\x01/g,"@");let r=(e.ignoreCase?"i":"")+(e.unicode?"u":"");return new RegExp(t,r)}function ll(e,t,n,i){if(i<0)return e;if(i<t.length)return t[i];if(i>=100){i-=100;let e=n.split(".");if(e.unshift(n),i<e.length)return e[i]}return null}function cl(e,t,n,i){let r=-1,o=n,s=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);s&&(s[3]&&(r=parseInt(s[3]),s[2]&&(r+=100)),o=s[4]);let a,l="~",c=o;if(o&&0!==o.length?/^\w*$/.test(c)?l="==":(s=o.match(/^(@|!@|~|!~|==|!=)(.*)$/),s&&(l=s[1],c=s[2])):(l="!=",c=""),"~"!==l&&"!~"!==l||!/^(\w|\|)*$/.test(c))if("@"===l||"!@"===l){let n=e[c];if(!n)throw Ht(e,"the @ match target '"+c+"' is not defined, in rule: "+t);if(!nl((function(e){return"string"===typeof e}),n))throw Ht(e,"the @ match target '"+c+"' must be an array of strings, in rule: "+t);let i=sl(n,e.ignoreCase);a=function(e){return"@"===l?i(e):!i(e)}}else if("~"===l||"!~"===l)if(c.indexOf("$")<0){let t=al(e,"^"+c+"$");a=function(e){return"~"===l?t.test(e):!t.test(e)}}else a=function(t,n,i,r){let o=al(e,"^"+Ut(e,c,n,i,r)+"$");return o.test(t)};else if(c.indexOf("$")<0){let t=Wt(e,c);a=function(e){return"=="===l?e===t:e!==t}}else{let t=Wt(e,c);a=function(n,i,r,o,s){let a=Ut(e,t,i,r,o);return"=="===l?n===a:n!==a}}else{let t=sl(c.split("|"),e.ignoreCase);a=function(e){return"~"===l?t(e):!t(e)}}return-1===r?{name:n,value:i,test:function(e,t,n,i){return a(e,e,t,n,i)}}:{name:n,value:i,test:function(e,t,n,i){let o=ll(e,t,n,r);return a(o||"",e,t,n,i)}}}function ul(e,t,n){if(n){if("string"===typeof n)return n;if(n.token||""===n.token){if("string"!==typeof n.token)throw Ht(e,"a 'token' attribute must be of type string, in rule: "+t);{let i={token:n.token};if(n.token.indexOf("$")>=0&&(i.tokenSubst=!0),"string"===typeof n.bracket)if("@open"===n.bracket)i.bracket=1;else{if("@close"!==n.bracket)throw Ht(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);i.bracket=-1}if(n.next){if("string"!==typeof n.next)throw Ht(e,"the next state must be a string value in rule: "+t);{let r=n.next;if(!/^(@pop|@push|@popall)$/.test(r)&&("@"===r[0]&&(r=r.substr(1)),r.indexOf("$")<0&&!$t(e,Ut(e,r,"",[],""))))throw Ht(e,"the next state '"+n.next+"' is not defined in rule: "+t);i.next=r}}return"number"===typeof n.goBack&&(i.goBack=n.goBack),"string"===typeof n.switchTo&&(i.switchTo=n.switchTo),"string"===typeof n.log&&(i.log=n.log),"string"===typeof n.nextEmbedded&&(i.nextEmbedded=n.nextEmbedded,e.usesEmbedded=!0),i}}if(Array.isArray(n)){let i=[];for(let r=0,o=n.length;r<o;r++)i[r]=ul(e,t,n[r]);return{group:i}}if(n.cases){let i=[];for(let o in n.cases)if(n.cases.hasOwnProperty(o)){const r=ul(e,t,n.cases[o]);"@default"===o||"@"===o||""===o?i.push({test:void 0,value:r,name:o}):"@eos"===o?i.push({test:function(e,t,n,i){return i},value:r,name:o}):i.push(cl(e,t,o,r))}const r=e.defaultToken;return{test:function(e,t,n,o){for(const r of i){const i=!r.test||r.test(e,t,n,o);if(i)return r.value}return r}}}throw Ht(e,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+t)}return{token:""}}class hl{constructor(e){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=e}setRegex(e,t){let n;if("string"===typeof t)n=t;else{if(!(t instanceof RegExp))throw Ht(e,"rules must start with a match string or regular expression: "+this.name);n=t.source}this.matchOnlyAtLineStart=n.length>0&&"^"===n[0],this.name=this.name+": "+n,this.regex=al(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")")}setAction(e,t){this.action=ul(e,this.name,t)}}function dl(e,t){if(!t||"object"!==typeof t)throw new Error("Monarch: expecting a language definition object");let n={};n.languageId=e,n.includeLF=il(t.includeLF,!1),n.noThrow=!1,n.maxStack=100,n.start="string"===typeof t.start?t.start:null,n.ignoreCase=il(t.ignoreCase,!1),n.unicode=il(t.unicode,!1),n.tokenPostfix=rl(t.tokenPostfix,"."+n.languageId),n.defaultToken=rl(t.defaultToken,"source"),n.usesEmbedded=!1;let i=t;function r(e,o,s){for(const a of s){let s=a.include;if(s){if("string"!==typeof s)throw Ht(n,"an 'include' attribute must be a string at: "+e);if("@"===s[0]&&(s=s.substr(1)),!t.tokenizer[s])throw Ht(n,"include target '"+s+"' is not defined at: "+e);r(e+"."+s,o,t.tokenizer[s])}else{const t=new hl(e);if(Array.isArray(a)&&a.length>=1&&a.length<=3)if(t.setRegex(i,a[0]),a.length>=3)if("string"===typeof a[1])t.setAction(i,{token:a[1],next:a[2]});else{if("object"!==typeof a[1])throw Ht(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);{const e=a[1];e.next=a[2],t.setAction(i,e)}}else t.setAction(i,a[1]);else{if(!a.regex)throw Ht(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);a.name&&"string"===typeof a.name&&(t.name=a.name),a.matchOnlyAtStart&&(t.matchOnlyAtLineStart=il(a.matchOnlyAtLineStart,!1)),t.setRegex(i,a.regex),t.setAction(i,a.action)}o.push(t)}}}if(i.languageId=e,i.includeLF=n.includeLF,i.ignoreCase=n.ignoreCase,i.unicode=n.unicode,i.noThrow=n.noThrow,i.usesEmbedded=n.usesEmbedded,i.stateNames=t.tokenizer,i.defaultToken=n.defaultToken,!t.tokenizer||"object"!==typeof t.tokenizer)throw Ht(n,"a language definition must define the 'tokenizer' attribute as an object");n.tokenizer=[];for(let s in t.tokenizer)if(t.tokenizer.hasOwnProperty(s)){n.start||(n.start=s);const e=t.tokenizer[s];n.tokenizer[s]=new Array,r("tokenizer."+s,n.tokenizer[s],e)}if(n.usesEmbedded=i.usesEmbedded,t.brackets){if(!Array.isArray(t.brackets))throw Ht(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"}];let o=[];for(let s of t.brackets){let e=s;if(e&&Array.isArray(e)&&3===e.length&&(e={token:e[2],open:e[0],close:e[1]}),e.open===e.close)throw Ht(n,"open and close brackets in a 'brackets' attribute must be different: "+e.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!==typeof e.open||"string"!==typeof e.token||"string"!==typeof e.close)throw Ht(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array");o.push({token:e.token+n.tokenPostfix,open:Wt(n,e.open),close:Wt(n,e.close)})}return n.brackets=o,n.noThrow=!0,n}function fl(e){qi["a"].registerLanguage(e)}function pl(){let e=[];return e=e.concat(qi["a"].getLanguages()),e}function gl(e){let t=La.modeService.get().getLanguageIdentifier(e);return t?t.id:0}function ml(e,t){let n=La.modeService.get().onDidCreateMode(i=>{i.getId()===e&&(n.dispose(),t())});return n}function vl(e,t){let n=La.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set configuration for unknown language "+e);return je["a"].register(n,t,100)}class bl{constructor(e,t){this._languageIdentifier=e,this._actual=t}getInitialState(){return this._actual.getInitialState()}tokenize(e,t,n,i){if("function"===typeof this._actual.tokenize)return yl.adaptTokenize(this._languageIdentifier.language,this._actual,e,n,i);throw new Error("Not supported!")}tokenize2(e,t,n){let i=this._actual.tokenizeEncoded(e,n);return new $["c"](i.tokens,i.endState)}}class yl{constructor(e,t,n){this._standaloneThemeService=e,this._languageIdentifier=t,this._actual=n}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(e,t,n){let i=[],r=0;for(let o=0,s=e.length;o<s;o++){const s=e[o];let a=s.startIndex;0===o?a=0:a<r&&(a=r),i[o]=new $["a"](a+n,s.scopes,t),r=a}return i}static adaptTokenize(e,t,n,i,r){let o,s=t.tokenize(n,i),a=yl._toClassicTokens(s.tokens,e,r);return o=s.endState.equals(i)?i:s.endState,new $["b"](a,o)}tokenize(e,t,n,i){return yl.adaptTokenize(this._languageIdentifier.language,this._actual,e,n,i)}_toBinaryTokens(e,t){const n=this._languageIdentifier.id,i=this._standaloneThemeService.getColorTheme().tokenTheme;let r=[],o=0,s=0;for(let l=0,c=e.length;l<c;l++){const a=e[l],c=i.match(n,a.scopes);if(o>0&&r[o-1]===c)continue;let u=a.startIndex;0===l?u=0:u<s&&(u=s),r[o++]=u+t,r[o++]=c,s=u}let a=new Uint32Array(o);for(let l=0;l<o;l++)a[l]=r[l];return a}tokenize2(e,t,n,i){let r,o=this._actual.tokenize(e,n),s=this._toBinaryTokens(o.tokens,i);return r=o.endState.equals(n)?n:o.endState,new $["c"](s,r)}}function _l(e){return"tokenizeEncoded"in e}function wl(e){return e&&"function"===typeof e.then}function Cl(e){if(e){const t=[null];for(let n=1,i=e.length;n<i;n++)t[n]=Qi["a"].fromHex(e[n]);La.standaloneThemeService.get().setColorMapOverride(t)}else La.standaloneThemeService.get().setColorMapOverride(null)}function Sl(e,t){let n=La.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set tokens provider for unknown language "+e);const i=e=>_l(e)?new bl(n,e):new yl(La.standaloneThemeService.get(),n,e);return wl(t)?ge["F"].registerPromise(e,t.then(e=>i(e))):ge["F"].register(e,i(t))}function xl(e,t){const n=t=>rn(La.modeService.get(),La.standaloneThemeService.get(),e,dl(e,t));return wl(t)?ge["F"].registerPromise(e,t.then(e=>n(e))):ge["F"].register(e,n(t))}function Ol(e,t){return ge["y"].register(e,t)}function kl(e,t){return ge["z"].register(e,t)}function Ll(e,t){return ge["B"].register(e,t)}function El(e,t){return ge["p"].register(e,{provideHover:(e,n,i)=>{let r=e.getWordAtPosition(n);return Promise.resolve(t.provideHover(e,n,i)).then(e=>{if(e)return!e.range&&r&&(e.range=new U["a"](n.lineNumber,r.startColumn,n.lineNumber,r.endColumn)),e.range||(e.range=new U["a"](n.lineNumber,n.column,n.lineNumber,n.column)),e})}})}function Dl(e,t){return ge["m"].register(e,t)}function Il(e,t){return ge["i"].register(e,t)}function Ml(e,t){return ge["w"].register(e,t)}function Tl(e,t){return ge["f"].register(e,t)}function Al(e,t){return ge["q"].register(e,t)}function Nl(e,t){return ge["G"].register(e,t)}function Pl(e,t){return ge["b"].register(e,t)}function jl(e,t){return ge["a"].register(e,{provideCodeActions:(e,n,i,r)=>{let o=La.markerService.get().read({resource:e.uri}).filter(e=>U["a"].areIntersectingOrTouching(e,n));return t.provideCodeActions(e,n,{markers:o,only:i.only},r)}})}function Rl(e,t){return ge["g"].register(e,t)}function Fl(e,t){return ge["j"].register(e,t)}function Bl(e,t){return ge["x"].register(e,t)}function Wl(e,t){return ge["v"].register(e,t)}function Vl(e,t){return ge["d"].register(e,t)}function zl(e,t){return ge["c"].register(e,t)}function Hl(e,t){return ge["o"].register(e,t)}function Ul(e,t){return ge["e"].register(e,t)}function ql(e,t){return ge["A"].register(e,t)}function $l(e,t){return ge["l"].register(e,t)}function Kl(e,t){return ge["k"].register(e,t)}function Gl(e,t){return ge["t"].register(e,t)}function Yl(e,t){return ge["r"].register(e,t)}function Zl(){return{register:fl,getLanguages:pl,onLanguage:ml,getEncodedLanguageId:gl,setLanguageConfiguration:vl,setColorMap:Cl,setTokensProvider:Sl,setMonarchTokensProvider:xl,registerReferenceProvider:Ol,registerRenameProvider:kl,registerCompletionItemProvider:Vl,registerSignatureHelpProvider:Ll,registerHoverProvider:El,registerDocumentSymbolProvider:Dl,registerDocumentHighlightProvider:Il,registerLinkedEditingRangeProvider:Ml,registerDefinitionProvider:Tl,registerImplementationProvider:Al,registerTypeDefinitionProvider:Nl,registerCodeLensProvider:Pl,registerCodeActionProvider:jl,registerDocumentFormattingEditProvider:Rl,registerDocumentRangeFormattingEditProvider:Fl,registerOnTypeFormattingEditProvider:Bl,registerLinkProvider:Wl,registerColorProvider:zl,registerFoldingRangeProvider:Hl,registerDeclarationProvider:Ul,registerSelectionRangeProvider:ql,registerDocumentSemanticTokensProvider:$l,registerDocumentRangeSemanticTokensProvider:Kl,registerInlineCompletionsProvider:Gl,registerInlayHintsProvider:Yl,DocumentHighlightKind:h,CompletionItemKind:o,CompletionItemTag:s,CompletionItemInsertTextRule:r,SymbolKind:T,SymbolTag:A,IndentAction:m,CompletionTriggerKind:a,SignatureHelpTriggerKind:M,InlayHintKind:v,InlineCompletionTriggerKind:b,FoldingRangeKind:ge["n"]}}var Xl,Ql=n("84df");F["g"].wrappingIndent.defaultValue=0,F["g"].glyphMargin.defaultValue=!1,F["g"].autoIndent.defaultValue=3,F["g"].overviewRulerLanes.defaultValue=2,Ql["a"].setFormatterSelector((e,t,n)=>Promise.resolve(e[0]));const Jl=G();Jl.editor=tl(),Jl.languages=Zl();const ec=Jl.CancellationTokenSource,tc=Jl.Emitter,nc=Jl.KeyCode,ic=Jl.KeyMod,rc=Jl.Position,oc=Jl.Range,sc=Jl.Selection,ac=Jl.SelectionDirection,lc=Jl.MarkerSeverity,cc=Jl.MarkerTag,uc=Jl.Uri,hc=Jl.Token,dc=Jl.editor,fc=Jl.languages;((null===(Xl=Se["b"].MonacoEnvironment)||void 0===Xl?void 0:Xl.globalAPI)||"function"===typeof define&&n("3c35"))&&(self.monaco=Jl),"undefined"!==typeof self.require&&"function"===typeof self.require.config&&self.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})},f354:function(e,t,n){var i=n("d039"),r=n("b622"),o=n("c430"),s=r("iterator");e.exports=!i((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,i){t["delete"]("b"),n+=i+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},f36a:function(e,t,n){var i=n("e330");e.exports=i([].slice)},f3bb:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var i=n("6d8b"),r=n("e0d3");function o(e,t){function n(t,n){var i=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){i.push(e.seriesIndex)})),i}Object(i["each"])([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,r,o){t=Object(i["extend"])({},t),o.dispatchAction(Object(i["extend"])(t,{type:e[1],seriesIndex:n(r,t)}))}))}))}function s(e,t,n,o,s){var a=e+t;n.isSilent(a)||o.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,o=e.option.selectedMap,l=s.selected,c=0;c<l.length;c++)if(l[c].seriesIndex===t){var u=e.getData(),h=Object(r["u"])(u,s.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:Object(i["isArray"])(h)?u.getName(h[0]):u.getName(h),selected:Object(i["isString"])(o)?o:Object(i["extend"])({},o)})}}))}function a(e,t,n){e.on("selectchanged",(function(e){var i=n.getModel();e.isFromClick?(s("map","selectchanged",t,i,e),s("pie","selectchanged",t,i,e)):"select"===e.fromAction?(s("map","selected",t,i,e),s("pie","selected",t,i,e)):"unselect"===e.fromAction&&(s("map","unselected",t,i,e),s("pie","unselected",t,i,e))}))}},f3cb:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.colorConfig=void 0;var i=["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293","#e062ae","#e690d1","#e7bcf3","#9d96f5","#8378ea","#96bfff"];t.colorConfig=i},f41d:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return n.e("chunk-2d21b84a").then(n.bind(null,"bfb2"))}})},f482:function(e,t,n){"use strict";(function(t){function n(e,n){var o=this,a=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return a||l?(n?n(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(s,this,e)):t.nextTick(s,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!n&&e?o._writableState?o._writableState.errorEmitted?t.nextTick(r,o):(o._writableState.errorEmitted=!0,t.nextTick(i,o,e)):t.nextTick(i,o,e):n?(t.nextTick(r,o),n(e)):t.nextTick(r,o)})),this)}function i(e,t){s(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(e,t){e.emit("error",t)}function a(e,t){var n=e._readableState,i=e._writableState;n&&n.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:n,undestroy:o,errorOrDestroy:a}}).call(this,n("4362"))},f570:function(e,t,n){"use strict";n.r(t),n.d(t,"cssDefaults",(function(){return a})),n.d(t,"scssDefaults",(function(){return l})),n.d(t,"lessDefaults",(function(){return c}));n("33f9");var i=n("0b3c"),r=function(){function e(e,t,n){this._onDidChange=new i["Emitter"],this._languageId=e,this.setOptions(t),this.setModeConfiguration(n)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"diagnosticsOptions",{get:function(){return this.options},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!1,configurable:!0}),e.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},e.prototype.setDiagnosticsOptions=function(e){this.setOptions(e)},e.prototype.setModeConfiguration=function(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)},e}(),o={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"},data:{useDefaultDataProvider:!0}},s={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},a=new r("css",o,s),l=new r("scss",o,s),c=new r("less",o,s);function u(){return n.e("chunk-0b65ffb6").then(n.bind(null,"db4f"))}i["languages"].css={cssDefaults:a,lessDefaults:c,scssDefaults:l},i["languages"].onLanguage("less",(function(){u().then((function(e){return e.setupMode(c)}))})),i["languages"].onLanguage("scss",(function(){u().then((function(e){return e.setupMode(l)}))})),i["languages"].onLanguage("css",(function(){u().then((function(e){return e.setupMode(a)}))}))},f577:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n("0a0f");const r=Object(i["c"])("clipboardService")},f58f:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{constructor(e,t,n,i,r,o){this.id=e,this.label=t,this.alias=n,this._precondition=i,this._run=r,this._contextKeyService=o}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(){return this.isSupported()?this._run():Promise.resolve(void 0)}}},f5ba:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:function(){return n.e("chunk-2d0de971").then(n.bind(null,"85fd"))}})},f5df:function(e,t,n){var i=n("00ee"),r=n("1626"),o=n("c6b6"),s=n("b622"),a=s("toStringTag"),l=Object,c="Arguments"==o(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=i?o:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=l(e),a))?n:c?o(t):"Object"==(i=o(t))&&r(t.callee)?"Arguments":i}},f5f3:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var i=n("af40");const r=[];function o(e,t,n){t instanceof i["a"]||(t=new i["a"](t,[],n)),r.push([e,t])}function s(){return r}},f658:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n("6d8b"),r="undefined"!==typeof Float32Array,o=r?Float32Array:Array;function s(e){return Object(i["isArray"])(e)?r?new Float32Array(e):e:new o(e)}},f688:function(e,t,n){"use strict";function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}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){o(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 o(e,t,n){return t=c(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(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 i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,c(i.key),i)}}function l(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=u(e,"string");return"symbol"===typeof t?t:String(t)}function u(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var h=n("1c35"),d=h.Buffer,f=n(3),p=f.inspect,g=p&&p.custom||"inspect";function m(e,t,n){d.prototype.copy.call(e,t,n)}e.exports=function(){function e(){s(this,e),this.head=null,this.tail=null,this.length=0}return l(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";var t=this.head,n=""+t.data;while(t=t.next)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return d.alloc(0);var t=d.allocUnsafe(e>>>0),n=this.head,i=0;while(n)m(n.data,t,i),i+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,i=t.data;e-=i.length;while(t=t.next){var r=t.data,o=e>r.length?r.length:e;if(o===r.length?i+=r:i+=r.slice(0,e),e-=o,0===e){o===r.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=r.slice(o));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(e){var t=d.allocUnsafe(e),n=this.head,i=1;n.data.copy(t),e-=n.data.length;while(n=n.next){var r=n.data,o=e>r.length?r.length:e;if(r.copy(t,t.length-e,0,o),e-=o,0===e){o===r.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=r.slice(o));break}++i}return this.length-=i,t}},{key:g,value:function(e,t){return p(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()},f68e:function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return g})),n.d(t,"c",(function(){return m}));var i=n("dff7"),r=n("308f"),o=n("82c9"),s=n("a666"),a=n("3742"),l=n("9c3e"),c=n("6a89"),u=n("4035"),h=n("fdcc"),d=function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{l(i.next(e))}catch(t){o(t)}}function a(e){try{l(i["throw"](e))}catch(t){o(t)}}function l(e){e.done?n(e.value):r(e.value).then(s,a)}l((i=i.apply(e,t||[])).next())}))};class f{constructor(e,t,n,i){this.isProviderFirst=e,this.parent=t,this.link=n,this._rangeCallback=i,this.id=l["b"].nextId()}get uri(){return this.link.uri}get range(){var e,t;return null!==(t=null!==(e=this._range)&&void 0!==e?e:this.link.targetSelectionRange)&&void 0!==t?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;const t=null===(e=this.parent.getPreview(this))||void 0===e?void 0:e.preview(this.range);return t?Object(i["a"])({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"symbol in {0} on line {1} at column {2}, {3}",Object(o["b"])(this.uri),this.range.startLineNumber,this.range.startColumn,t.value):Object(i["a"])("aria.oneReference","symbol in {0} on line {1} at column {2}",Object(o["b"])(this.uri),this.range.startLineNumber,this.range.startColumn)}}class p{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){const n=this._modelReference.object.textEditorModel;if(!n)return;const{startLineNumber:i,startColumn:r,endLineNumber:o,endColumn:s}=e,a=n.getWordUntilPosition({lineNumber:i,column:r-t}),l=new c["a"](i,a.startColumn,i,r),u=new c["a"](o,s,o,1073741824),h=n.getValueInRange(l).replace(/^\s+/,""),d=n.getValueInRange(e),f=n.getValueInRange(u).replace(/\s+$/,"");return{value:h+d+f,highlight:{start:h.length,end:h.length+d.length}}}}class g{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new u["b"]}dispose(){Object(s["f"])(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){const e=this.children.length;return 1===e?Object(i["a"])("aria.fileReferences.1","1 symbol in {0}, full path {1}",Object(o["b"])(this.uri),this.uri.fsPath):Object(i["a"])("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,Object(o["b"])(this.uri),this.uri.fsPath)}resolve(e){return d(this,void 0,void 0,(function*(){if(0!==this._previews.size)return this;for(let n of this.children)if(!this._previews.has(n.uri))try{const t=yield e.createModelReference(n.uri);this._previews.set(n.uri,new p(t))}catch(t){Object(h["e"])(t)}return this}))}}class m{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new r["b"],this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;const[n]=e;let i;e.sort(m._compareReferences);for(let r of e)if(i&&o["e"].isEqual(i.uri,r.uri,!0)||(i=new g(this,r.uri),this.groups.push(i)),0===i.children.length||0!==m._compareReferences(r,i.children[i.children.length-1])){const e=new f(n===r,i,r,e=>this._onDidChangeReferenceRange.fire(e));this.references.push(e),i.children.push(e)}}dispose(){Object(s["f"])(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new m(this._links,this._title)}get title(){return this._title}get isEmpty(){return 0===this.groups.length}get ariaMessage(){return this.isEmpty?Object(i["a"])("aria.result.0","No results found"):1===this.references.length?Object(i["a"])("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):1===this.groups.length?Object(i["a"])("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):Object(i["a"])("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){let{parent:n}=e,i=n.children.indexOf(e),r=n.children.length,o=n.parent.groups.length;return 1===o||t&&i+1<r||!t&&i>0?(i=t?(i+1)%r:(i+r-1)%r,n.children[i]):(i=n.parent.groups.indexOf(n),t?(i=(i+1)%o,n.parent.groups[i].children[0]):(i=(i+o-1)%o,n.parent.groups[i].children[n.parent.groups[i].children.length-1]))}nearestReference(e,t){const n=this.references.map((n,i)=>({idx:i,prefixLen:a["d"](n.uri.toString(),e.toString()),offsetDist:100*Math.abs(n.range.startLineNumber-t.lineNumber)+Math.abs(n.range.startColumn-t.column)})).sort((e,t)=>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]}referenceAt(e,t){for(const n of this.references)if(n.uri.toString()===e.toString()&&c["a"].containsPosition(n.range,t))return n}firstReference(){for(const e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return o["e"].compare(e.uri,t.uri)||c["a"].compareRangesUsingStarts(e.range,t.range)}}},f6b4:function(e,t,n){"use strict";var i=n("c532");function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},f6ba:function(e,t,n){"use strict";(function(t,i){function r(e){var t=this;this.next=null,this.entry=null,this.finish=function(){q(t,e)}}var o;e.exports=E,E.WritableState=L;var s={deprecate:n("b7d1")},a=n("b98b"),l=n("1c35").Buffer,c=("undefined"!==typeof t?t:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function u(e){return l.from(e)}function h(e){return l.isBuffer(e)||e instanceof c}var d,f=n("f482"),p=n("86c6"),g=p.getHighWaterMark,m=n("9bfc").codes,v=m.ERR_INVALID_ARG_TYPE,b=m.ERR_METHOD_NOT_IMPLEMENTED,y=m.ERR_MULTIPLE_CALLBACK,_=m.ERR_STREAM_CANNOT_PIPE,w=m.ERR_STREAM_DESTROYED,C=m.ERR_STREAM_NULL_VALUES,S=m.ERR_STREAM_WRITE_AFTER_END,x=m.ERR_UNKNOWN_ENCODING,O=f.errorOrDestroy;function k(){}function L(e,t,i){o=o||n("a493"),e=e||{},"boolean"!==typeof i&&(i=t instanceof o),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=g(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){j(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}function E(e){o=o||n("a493");var t=this instanceof o;if(!t&&!d.call(E,this))return new E(e);this._writableState=new L(e,this,t),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),a.call(this)}function D(e,t){var n=new S;O(e,n),i.nextTick(t,n)}function I(e,t,n,r){var o;return null===n?o=new C:"string"===typeof n||t.objectMode||(o=new v("chunk",["string","Buffer"],n)),!o||(O(e,o),i.nextTick(r,o),!1)}function M(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=l.from(t,n)),t}function T(e,t,n,i,r,o){if(!n){var s=M(t,i,r);i!==s&&(n=!0,r="buffer",i=s)}var a=t.objectMode?1:i.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:r,isBuf:n,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,a,i,r,o);return l}function A(e,t,n,i,r,o,s){t.writelen=i,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new w("write")):n?e._writev(r,t.onwrite):e._write(r,o,t.onwrite),t.sync=!1}function N(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(H,e,t),e._writableState.errorEmitted=!0,O(e,r)):(o(r),e._writableState.errorEmitted=!0,O(e,r),H(e,t))}function P(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function j(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if("function"!==typeof o)throw new y;if(P(n),t)N(e,n,r,t,o);else{var s=W(n)||e.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||B(e,n),r?i.nextTick(R,e,n,s,o):R(e,n,s,o)}}function R(e,t,n,i){n||F(e,t),t.pendingcb--,i(),H(e,t)}function F(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function B(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=t.bufferedRequestCount,o=new Array(i),s=t.corkedRequestsFree;s.entry=n;var a=0,l=!0;while(n)o[a]=n,n.isBuf||(l=!1),n=n.next,a+=1;o.allBuffers=l,A(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new r(t),t.bufferedRequestCount=0}else{while(n){var c=n.chunk,u=n.encoding,h=n.callback,d=t.objectMode?1:c.length;if(A(e,t,!1,d,c,u,h),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function W(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function V(e,t){e._final((function(n){t.pendingcb--,n&&O(e,n),t.prefinished=!0,e.emit("prefinish"),H(e,t)}))}function z(e,t){t.prefinished||t.finalCalled||("function"!==typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(V,e,t)))}function H(e,t){var n=W(t);if(n&&(z(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}function U(e,t,n){t.ending=!0,H(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function q(e,t,n){var i=e.entry;e.entry=null;while(i){var r=i.callback;t.pendingcb--,r(n),i=i.next}t.corkedRequestsFree.next=e}n("3fb5")(E,a),L.prototype.getBuffer=function(){var e=this.bufferedRequest,t=[];while(e)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(L.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===E&&(e&&e._writableState instanceof L)}})):d=function(e){return e instanceof this},E.prototype.pipe=function(){O(this,new _)},E.prototype.write=function(e,t,n){var i=this._writableState,r=!1,o=!i.objectMode&&h(e);return o&&!l.isBuffer(e)&&(e=u(e)),"function"===typeof t&&(n=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),"function"!==typeof n&&(n=k),i.ending?D(this,n):(o||I(this,i,e,n))&&(i.pendingcb++,r=T(this,i,o,e,t,n)),r},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||B(this,e))},E.prototype.setDefaultEncoding=function(e){if("string"===typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,n){n(new b("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,n){var i=this._writableState;return"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||U(this,i,n),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this,n("c8ba"),n("4362"))},f6d8:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("6d8b"),r=n("217c"),o=n("2b17"),s=n("e0d3");function a(e){var t,n,a,c,u=e.series,h=e.dataIndex,d=e.multipleSeries,f=u.getData(),p=f.mapDimensionsAll("defaultedTooltip"),g=p.length,m=u.getRawValue(h),v=Object(i["isArray"])(m),b=Object(r["e"])(u,h);if(g>1||v&&!g){var y=l(m,u,h,p,b);t=y.inlineValues,n=y.inlineValueTypes,a=y.blocks,c=y.inlineValues[0]}else if(g){var _=f.getDimensionInfo(p[0]);c=t=Object(o["e"])(f,h,p[0]),n=_.type}else c=t=v?m[0]:m;var w=Object(s["n"])(u),C=w&&u.name||"",S=f.getName(h),x=d?C:S;return Object(r["c"])("section",{header:C,noHeader:d||!w,sortParam:c,blocks:[Object(r["c"])("nameValue",{markerType:"item",markerColor:b,name:x,noName:!Object(i["trim"])(x),value:t,valueType:n,dataIndex:h})].concat(a||[])})}function l(e,t,n,s,a){var l=t.getData(),c=Object(i["reduce"])(e,(function(e,t,n){var i=l.getDimensionInfo(n);return e||i&&!1!==i.tooltip&&null!=i.displayName}),!1),u=[],h=[],d=[];function f(e,t){var n=l.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(c?d.push(Object(r["c"])("nameValue",{markerType:"subItem",markerColor:a,name:n.displayName,value:e,valueType:n.type})):(u.push(e),h.push(n.type)))}return s.length?Object(i["each"])(s,(function(e){f(Object(o["e"])(l,n,e),e)})):Object(i["each"])(e,f),{inlineValues:u,inlineValueTypes:h,blocks:d}}},f72b:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return h}));var i=n("6d8b"),r=n("ec6f"),o=n("07fd"),s=n("0f99"),a=n("04f7"),l=n("d0ce"),c=n("2b17"),u=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,s=this._getUpstreamSourceManagers(),a=!!s.length;if(d(n)){var l=n,c=void 0,u=void 0,h=void 0;if(a){var f=s[0];f.prepareSource(),h=f.getSource(),c=h.data,u=h.sourceFormat,t=[f._getVersionSign()]}else c=l.get("data",!0),u=Object(i["isTypedArray"])(c)?o["g"]:o["f"],t=[];var p=this._getSourceMetaRawOption()||{},g=h&&h.metaRawOption||{},m=Object(i["retrieve2"])(p.seriesLayoutBy,g.seriesLayoutBy)||null,v=Object(i["retrieve2"])(p.sourceHeader,g.sourceHeader),b=Object(i["retrieve2"])(p.dimensions,g.dimensions),y=m!==g.seriesLayoutBy||!!v!==!!g.sourceHeader||b;e=y?[Object(r["b"])(c,{seriesLayoutBy:m,sourceHeader:v,dimensions:b},u)]:[]}else{var _=n;if(a){var w=this._applyTransform(s);e=w.sourceList,t=w.upstreamSignList}else{var C=_.get("source",!0);e=[Object(r["b"])(C,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,o=n.get("transform",!0),s=n.get("fromTransformResult",!0);if(null!=s){var l="";1!==e.length&&f(l)}var c=[],u=[];return Object(i["each"])(e,(function(e){e.prepareSource();var t=e.getSource(s||0),n="";null==s||t||f(n),c.push(t),u.push(e._getVersionSign())})),o?t=Object(a["a"])(o,c,{datasetIndex:n.componentIndex}):null!=s&&(t=[Object(r["a"])(c[0])]),{sourceList:t,upstreamSignList:u}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var i=0,r=this._storeList,o=r[i];o||(o=r[i]={});var s=o[n];if(!s){var a=this._getUpstreamSourceManagers()[0];d(this._sourceHost)&&a?s=a._innerGetDataStore(e,t,n):(s=new l["b"],s.initData(new c["a"](t,e.length),e)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(d(e)){var t=Object(s["f"])(e);return t?[t.getSourceManager()]:[]}return Object(i["map"])(Object(s["e"])(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,i=this._sourceHost;if(d(i))e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function h(e){var t=e.option.transform;t&&Object(i["setAsPrimitive"])(e.option.transform)}function d(e){return"series"===e.mainType}function f(e){throw new Error(e)}},f772:function(e,t,n){var i=n("5692"),r=n("90e3"),o=i("keys");e.exports=function(e){return o[e]||(o[e]=r(e))}},f85a:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("2e5d"),r=n("7061"),o=n("6a89"),s=n("3742"),a=n("708a");class l{constructor(e,t,n){this._cursorPositionBrand=void 0,this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=n}}class c{static leftPosition(e,t){if(t.column>e.getLineMinColumn(t.lineNumber))return t.delta(void 0,-s["M"](e.getLineContent(t.lineNumber),t.column-1));if(t.lineNumber>1){const n=t.lineNumber-1;return new r["a"](n,e.getLineMaxColumn(n))}return t}static leftPositionAtomicSoftTabs(e,t,n){if(t.column<=e.getLineIndentColumn(t.lineNumber)){const i=e.getLineMinColumn(t.lineNumber),o=e.getLineContent(t.lineNumber),s=a["a"].atomicPosition(o,t.column-1,n,0);if(-1!==s&&s+1>=i)return new r["a"](t.lineNumber,s+1)}return this.leftPosition(e,t)}static left(e,t,n){const i=e.stickyTabStops?c.leftPositionAtomicSoftTabs(t,n,e.tabSize):c.leftPosition(t,n);return new l(i.lineNumber,i.column,0)}static moveLeft(e,t,n,i,r){let o,s;if(n.hasSelection()&&!i)o=n.selection.startLineNumber,s=n.selection.startColumn;else{const i=n.position.delta(void 0,-(r-1)),a=t.normalizePosition(c.clipPositionColumn(i,t),0),l=c.left(e,t,a);o=l.lineNumber,s=l.column}return n.move(i,o,s,0)}static clipPositionColumn(e,t){return new r["a"](e.lineNumber,c.clipRange(e.column,t.getLineMinColumn(e.lineNumber),t.getLineMaxColumn(e.lineNumber)))}static clipRange(e,t,n){return e<t?t:e>n?n:e}static rightPosition(e,t,n){return n<e.getLineMaxColumn(t)?n+=s["L"](e.getLineContent(t),n-1):t<e.getLineCount()&&(t+=1,n=e.getLineMinColumn(t)),new r["a"](t,n)}static rightPositionAtomicSoftTabs(e,t,n,i,o){if(n<e.getLineIndentColumn(t)){const o=e.getLineContent(t),s=a["a"].atomicPosition(o,n-1,i,1);if(-1!==s)return new r["a"](t,s+1)}return this.rightPosition(e,t,n)}static right(e,t,n){const i=e.stickyTabStops?c.rightPositionAtomicSoftTabs(t,n.lineNumber,n.column,e.tabSize,e.indentSize):c.rightPosition(t,n.lineNumber,n.column);return new l(i.lineNumber,i.column,0)}static moveRight(e,t,n,i,r){let o,s;if(n.hasSelection()&&!i)o=n.selection.endLineNumber,s=n.selection.endColumn;else{const i=n.position.delta(void 0,r-1),a=t.normalizePosition(c.clipPositionColumn(i,t),1),l=c.right(e,t,a);o=l.lineNumber,s=l.column}return n.move(i,o,s,0)}static down(e,t,n,r,o,s,a){const c=i["a"].visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize)+o,u=t.getLineCount(),h=n===u&&r===t.getLineMaxColumn(n);return n+=s,n>u?(n=u,r=a?t.getLineMaxColumn(n):Math.min(t.getLineMaxColumn(n),r)):r=i["a"].columnFromVisibleColumn2(e,t,n,c),o=h?0:c-i["a"].visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize),new l(n,r,o)}static moveDown(e,t,n,i,r){let o,s;n.hasSelection()&&!i?(o=n.selection.endLineNumber,s=n.selection.endColumn):(o=n.position.lineNumber,s=n.position.column);let a=c.down(e,t,o,s,n.leftoverVisibleColumns,r,!0);return n.move(i,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateDown(e,t,n){let s=n.selection,a=c.down(e,t,s.selectionStartLineNumber,s.selectionStartColumn,n.selectionStartLeftoverVisibleColumns,1,!1),l=c.down(e,t,s.positionLineNumber,s.positionColumn,n.leftoverVisibleColumns,1,!1);return new i["f"](new o["a"](a.lineNumber,a.column,a.lineNumber,a.column),a.leftoverVisibleColumns,new r["a"](l.lineNumber,l.column),l.leftoverVisibleColumns)}static up(e,t,n,r,o,s,a){const c=i["a"].visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize)+o,u=1===n&&1===r;return n-=s,n<1?(n=1,r=a?t.getLineMinColumn(n):Math.min(t.getLineMaxColumn(n),r)):r=i["a"].columnFromVisibleColumn2(e,t,n,c),o=u?0:c-i["a"].visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize),new l(n,r,o)}static moveUp(e,t,n,i,r){let o,s;n.hasSelection()&&!i?(o=n.selection.startLineNumber,s=n.selection.startColumn):(o=n.position.lineNumber,s=n.position.column);let a=c.up(e,t,o,s,n.leftoverVisibleColumns,r,!0);return n.move(i,a.lineNumber,a.column,a.leftoverVisibleColumns)}static translateUp(e,t,n){let s=n.selection,a=c.up(e,t,s.selectionStartLineNumber,s.selectionStartColumn,n.selectionStartLeftoverVisibleColumns,1,!1),l=c.up(e,t,s.positionLineNumber,s.positionColumn,n.leftoverVisibleColumns,1,!1);return new i["f"](new o["a"](a.lineNumber,a.column,a.lineNumber,a.column),a.leftoverVisibleColumns,new r["a"](l.lineNumber,l.column),l.leftoverVisibleColumns)}static _isBlankLine(e,t){return 0===e.getLineFirstNonWhitespaceColumn(t)}static moveToPrevBlankLine(e,t,n,i){let r=n.position.lineNumber;while(r>1&&this._isBlankLine(t,r))r--;while(r>1&&!this._isBlankLine(t,r))r--;return n.move(i,r,t.getLineMinColumn(r),0)}static moveToNextBlankLine(e,t,n,i){const r=t.getLineCount();let o=n.position.lineNumber;while(o<r&&this._isBlankLine(t,o))o++;while(o<r&&!this._isBlankLine(t,o))o++;return n.move(i,o,t.getLineMinColumn(o),0)}static moveToBeginningOfLine(e,t,n,i){let r,o=n.position.lineNumber,s=t.getLineMinColumn(o),a=t.getLineFirstNonWhitespaceColumn(o)||s,l=n.position.column;return r=l===a?s:a,n.move(i,o,r,0)}static moveToEndOfLine(e,t,n,i,r){let o=n.position.lineNumber,s=t.getLineMaxColumn(o);return n.move(i,o,s,r?1073741824-s:0)}static moveToBeginningOfBuffer(e,t,n,i){return n.move(i,1,1,0)}static moveToEndOfBuffer(e,t,n,i){let r=t.getLineCount(),o=t.getLineMaxColumn(r);return n.move(i,r,o,0)}}},f876:function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"i",(function(){return p})),n.d(t,"B",(function(){return m})),n.d(t,"y",(function(){return v})),n.d(t,"m",(function(){return b})),n.d(t,"q",(function(){return y})),n.d(t,"l",(function(){return _})),n.d(t,"h",(function(){return w})),n.d(t,"r",(function(){return C})),n.d(t,"n",(function(){return x})),n.d(t,"j",(function(){return O})),n.d(t,"w",(function(){return k})),n.d(t,"f",(function(){return L})),n.d(t,"o",(function(){return E})),n.d(t,"u",(function(){return D})),n.d(t,"z",(function(){return I})),n.d(t,"s",(function(){return M})),n.d(t,"k",(function(){return T})),n.d(t,"x",(function(){return A})),n.d(t,"g",(function(){return N})),n.d(t,"p",(function(){return P})),n.d(t,"v",(function(){return j})),n.d(t,"A",(function(){return R})),n.d(t,"t",(function(){return F}));var i=n("6d8b"),r=n("3842"),o=n("ef59"),s=n("4319"),a=1e3,l=60*a,c=60*l,u=24*c,h=365*u,d={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},f="{yyyy}-{MM}-{dd}",p={year:"{yyyy}",month:"{yyyy}-{MM}",day:f,hour:f+" "+d.hour,minute:f+" "+d.minute,second:f+" "+d.second,millisecond:d.none},g=["year","month","day","hour","minute","second","millisecond"],m=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function v(e,t){return e+="","0000".substr(0,t-e.length)+e}function b(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function y(e){return e===b(e)}function _(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function w(e,t,n,i){var a=r["p"](e),l=a[O(n)](),c=a[k(n)]()+1,u=Math.floor((c-1)/3)+1,h=a[L(n)](),d=a["get"+(n?"UTC":"")+"Day"](),f=a[E(n)](),p=(f-1)%12+1,g=a[D(n)](),m=a[I(n)](),b=a[M(n)](),y=f>=12?"pm":"am",_=y.toUpperCase(),w=i instanceof s["a"]?i:Object(o["d"])(i||o["a"])||Object(o["c"])(),C=w.getModel("time"),S=C.get("month"),x=C.get("monthAbbr"),T=C.get("dayOfWeek"),A=C.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,y+"").replace(/{A}/g,_+"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,v(l%100+"",2)).replace(/{Q}/g,u+"").replace(/{MMMM}/g,S[c-1]).replace(/{MMM}/g,x[c-1]).replace(/{MM}/g,v(c,2)).replace(/{M}/g,c+"").replace(/{dd}/g,v(h,2)).replace(/{d}/g,h+"").replace(/{eeee}/g,T[d]).replace(/{ee}/g,A[d]).replace(/{e}/g,d+"").replace(/{HH}/g,v(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,v(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,v(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,v(m,2)).replace(/{s}/g,m+"").replace(/{SSS}/g,v(b,3)).replace(/{S}/g,b+"")}function C(e,t,n,r,o){var s=null;if(i["isString"](n))s=n;else if(i["isFunction"](n))s=n(e.value,t,{level:e.level});else{var a=i["extend"]({},d);if(e.level>0)for(var l=0;l<g.length;++l)a[g[l]]="{primary|"+a[g[l]]+"}";var c=n?!1===n.inherit?n:i["defaults"](n,a):a,u=S(e.value,o);if(c[u])s=c[u];else if(c.inherit){var h=m.indexOf(u);for(l=h-1;l>=0;--l)if(c[u]){s=c[u];break}s=s||a.none}if(i["isArray"](s)){var f=null==e.level?0:e.level>=0?e.level:s.length+e.level;f=Math.min(f,s.length-1),s=s[f]}}return w(new Date(e.value),s,o,r)}function S(e,t){var n=r["p"](e),i=n[k(t)]()+1,o=n[L(t)](),s=n[E(t)](),a=n[D(t)](),l=n[I(t)](),c=n[M(t)](),u=0===c,h=u&&0===l,d=h&&0===a,f=d&&0===s,p=f&&1===o,g=p&&1===i;return g?"year":p?"month":f?"day":d?"hour":h?"minute":u?"second":"millisecond"}function x(e,t,n){var o=i["isNumber"](e)?r["p"](e):e;switch(t=t||S(e,n),t){case"year":return o[O(n)]();case"half-year":return o[k(n)]()>=6?1:0;case"quarter":return Math.floor((o[k(n)]()+1)/4);case"month":return o[k(n)]();case"day":return o[L(n)]();case"half-day":return o[E(n)]()/24;case"hour":return o[E(n)]();case"minute":return o[D(n)]();case"second":return o[I(n)]();case"millisecond":return o[M(n)]()}}function O(e){return e?"getUTCFullYear":"getFullYear"}function k(e){return e?"getUTCMonth":"getMonth"}function L(e){return e?"getUTCDate":"getDate"}function E(e){return e?"getUTCHours":"getHours"}function D(e){return e?"getUTCMinutes":"getMinutes"}function I(e){return e?"getUTCSeconds":"getSeconds"}function M(e){return e?"getUTCMilliseconds":"getMilliseconds"}function T(e){return e?"setUTCFullYear":"setFullYear"}function A(e){return e?"setUTCMonth":"setMonth"}function N(e){return e?"setUTCDate":"setDate"}function P(e){return e?"setUTCHours":"setHours"}function j(e){return e?"setUTCMinutes":"setMinutes"}function R(e){return e?"setUTCSeconds":"setSeconds"}function F(e){return e?"setUTCMilliseconds":"setMilliseconds"}},f893:function(e,t,n){e.exports={default:n("8119"),__esModule:!0}},f8a4:function(e,t,n){"use strict";n.r(t);n("780f"),n("4816"),n("a222"),n("8090"),n("6c8c"),n("3323"),n("8452"),n("2e4b"),n("e2c2"),n("bd50");var i=n("33f9");for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r)},f934:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return d})),n.d(t,"g",(function(){return f})),n.d(t,"i",(function(){return p})),n.d(t,"j",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"h",(function(){return v})),n.d(t,"f",(function(){return b})),n.d(t,"c",(function(){return y}));var i=n("6d8b"),r=n("9850"),o=n("3842"),s=n("eda2"),a=i["each"],l=["left","right","top","bottom","width","height"],c=[["width","left","right"],["height","top","bottom"]];function u(e,t,n,i,r){var o=0,s=0;null==i&&(i=1/0),null==r&&(r=1/0);var a=0;t.eachChild((function(l,c){var u,h,d=l.getBoundingRect(),f=t.childAt(c+1),p=f&&f.getBoundingRect();if("horizontal"===e){var g=d.width+(p?-p.x+d.x:0);u=o+g,u>i||l.newline?(o=0,u=g,s+=a+n,a=d.height):a=Math.max(a,d.height)}else{var m=d.height+(p?-p.y+d.y:0);h=s+m,h>r||l.newline?(o+=a+n,s=0,h=m,a=d.width):a=Math.max(a,d.width)}l.newline||(l.x=o,l.y=s,l.markRedraw(),"horizontal"===e?o=u+n:s=h+n)}))}var h=u;i["curry"](u,"vertical"),i["curry"](u,"horizontal");function d(e,t,n){var i=t.width,r=t.height,a=Object(o["q"])(e.left,i),l=Object(o["q"])(e.top,r),c=Object(o["q"])(e.right,i),u=Object(o["q"])(e.bottom,r);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(c)||isNaN(parseFloat(e.right)))&&(c=i),(isNaN(l)||isNaN(parseFloat(e.top)))&&(l=0),(isNaN(u)||isNaN(parseFloat(e.bottom)))&&(u=r),n=s["i"](n||0),{width:Math.max(c-a-n[1]-n[3],0),height:Math.max(u-l-n[0]-n[2],0)}}function f(e,t,n){n=s["i"](n||0);var i=t.width,a=t.height,l=Object(o["q"])(e.left,i),c=Object(o["q"])(e.top,a),u=Object(o["q"])(e.right,i),h=Object(o["q"])(e.bottom,a),d=Object(o["q"])(e.width,i),f=Object(o["q"])(e.height,a),p=n[2]+n[0],g=n[1]+n[3],m=e.aspect;switch(isNaN(d)&&(d=i-u-g-l),isNaN(f)&&(f=a-h-p-c),null!=m&&(isNaN(d)&&isNaN(f)&&(m>i/a?d=.8*i:f=.8*a),isNaN(d)&&(d=m*f),isNaN(f)&&(f=d/m)),isNaN(l)&&(l=i-u-d-g),isNaN(c)&&(c=a-h-f-p),e.left||e.right){case"center":l=i/2-d/2-n[3];break;case"right":l=i-d-g;break}switch(e.top||e.bottom){case"middle":case"center":c=a/2-f/2-n[0];break;case"bottom":c=a-f-p;break}l=l||0,c=c||0,isNaN(d)&&(d=i-g-l-(u||0)),isNaN(f)&&(f=a-p-c-(h||0));var v=new r["a"](l+n[3],c+n[0],d,f);return v.margin=n,v}function p(e,t,n,o,s,a){var l,c=!s||!s.hv||s.hv[0],u=!s||!s.hv||s.hv[1],h=s&&s.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!c&&!u)return!1;if("raw"===h)l="group"===e.type?new r["a"](0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var d=e.getLocalTransform();l=l.clone(),l.applyTransform(d)}var p=f(i["defaults"]({width:l.width,height:l.height},t),n,o),g=c?p.x-l.x:0,m=u?p.y-l.y:0;return"raw"===h?(a.x=g,a.y=m):(a.x+=g,a.y+=m),a===e&&e.markRedraw(),!0}function g(e,t){return null!=e[c[t][0]]||null!=e[c[t][1]]&&null!=e[c[t][2]]}function m(e){var t=e.layoutMode||e.constructor.layoutMode;return i["isObject"](t)?t:t?{type:t}:null}function v(e,t,n){var r=n&&n.ignoreSize;!i["isArray"](r)&&(r=[r,r]);var o=l(c[0],0),s=l(c[1],1);function l(n,i){var o={},s=0,l={},c=0,d=2;if(a(n,(function(t){l[t]=e[t]})),a(n,(function(e){u(t,e)&&(o[e]=l[e]=t[e]),h(o,e)&&s++,h(l,e)&&c++})),r[i])return h(t,n[1])?l[n[2]]=null:h(t,n[2])&&(l[n[1]]=null),l;if(c!==d&&s){if(s>=d)return o;for(var f=0;f<n.length;f++){var p=n[f];if(!u(o,p)&&u(e,p)){o[p]=e[p];break}}return o}return l}function u(e,t){return e.hasOwnProperty(t)}function h(e,t){return null!=e[t]&&"auto"!==e[t]}function d(e,t,n){a(e,(function(e){t[e]=n[e]}))}d(c[0],e,o),d(c[1],e,s)}function b(e){return y({},e)}function y(e,t){return t&&e&&a(l,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}},f95e:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var i=n("2cf4"),r=n("6d8b"),o=n("9ab4"),s=n("6fd3"),a=n("3437"),l=n("5210"),c=n("9850"),u=n("4bc4"),h=n("726e");function d(e,t,n){var i=h["d"].createCanvas(),r=t.getWidth(),o=t.getHeight(),s=i.style;return s&&(s.position="absolute",s.left="0",s.top="0",s.width=r+"px",s.height=o+"px",i.setAttribute("data-zr-dom-id",e)),i.width=r*n,i.height=o*n,i}var f=function(e){function t(t,n,o){var s,a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null,o=o||i["e"],"string"===typeof t?s=d(t,n,o):r["isObject"](t)&&(s=t,t=s.id),a.id=t,a.dom=s;var l=s.style;return l&&(r["disableUserSelect"](s),s.onselectstart=function(){return!1},l.padding="0",l.margin="0",l.borderWidth="0"),a.painter=n,a.dpr=o,a}return Object(o["a"])(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=d("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],s=this.maxRepaintRectCount,a=!1,l=new c["a"](0,0,0,0);function h(e){if(e.isFinite()&&!e.isZero())if(0===o.length){var t=new c["a"](0,0,0,0);t.copy(e),o.push(t)}else{for(var n=!1,i=1/0,r=0,u=0;u<o.length;++u){var h=o[u];if(h.intersect(e)){var d=new c["a"](0,0,0,0);d.copy(h),d.union(e),o[u]=d,n=!0;break}if(a){l.copy(e),l.union(h);var f=e.width*e.height,p=h.width*h.height,g=l.width*l.height,m=g-f-p;m<i&&(i=m,r=u)}}if(a&&(o[r].union(e),n=!0),!n){t=new c["a"](0,0,0,0);t.copy(e),o.push(t)}a||(a=o.length>=s)}}for(var d=this.__startIndex;d<this.__endIndex;++d){var f=e[d];if(f){var p=f.shouldBePainted(n,i,!0,!0),g=f.__isRendered&&(f.__dirty&u["a"]||!p)?f.getPrevPaintRect():null;g&&h(g);var m=p&&(f.__dirty&u["a"]||!f.__isRendered)?f.getPaintRect():null;m&&h(m)}}for(d=this.__prevStartIndex;d<this.__prevEndIndex;++d){f=t[d],p=f&&f.shouldBePainted(n,i,!0,!0);if(f&&(!p||!f.__zr)&&f.__isRendered){g=f.getPrevPaintRect();g&&h(g)}}do{r=!1;for(d=0;d<o.length;)if(o[d].isZero())o.splice(d,1);else{for(var v=d+1;v<o.length;)o[d].intersect(o[v])?(r=!0,o[d].union(o[v]),o.splice(v,1)):v++;d++}}while(r);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=e+"px",r.height=t+"px"),i.width=e*n,i.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var i=this.dom,o=this.ctx,s=i.width,c=i.height;t=t||this.clearColor;var u=this.motionBlur&&!e,h=this.lastFrameAlpha,d=this.dpr,f=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/d,c/d));var p=this.domBack;function g(e,n,i,s){if(o.clearRect(e,n,i,s),t&&"transparent"!==t){var c=void 0;if(r["isGradientObject"](t)){var g=t.global||t.__width===i&&t.__height===s;c=g&&t.__canvasGradient||Object(a["a"])(o,t,{x:0,y:0,width:i,height:s}),t.__canvasGradient=c,t.__width=i,t.__height=s}else r["isImagePatternObject"](t)&&(t.scaleX=t.scaleX||d,t.scaleY=t.scaleY||d,c=Object(l["c"])(o,t,{dirty:function(){f.setUnpainted(),f.painter.refresh()}}));o.save(),o.fillStyle=c||t,o.fillRect(e,n,i,s),o.restore()}u&&(o.save(),o.globalAlpha=h,o.drawImage(p,e,n,i,s),o.restore())}!n||u?g(0,0,s,c):n.length&&r["each"](n,(function(e){g(e.x*d,e.y*d,e.width*d,e.height*d)}))},t}(s["a"]),p=f,g=n("98b7"),m=n("22d1"),v=1e5,b=314159,y=.01,_=.001;function w(e){return!!e&&(!!e.__builtin__||"function"===typeof e.resize&&"function"===typeof e.refresh)}function C(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var S=function(){function e(e,t,n,o){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var s=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=r["extend"]({},n||{}),this.dpr=n.devicePixelRatio||i["e"],this._singleCanvas=s,this.root=e;var l=e.style;l&&(r["disableUserSelect"](e),e.innerHTML=""),this.storage=t;var c=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(s){var h=e,d=h.width,f=h.height;null!=n.width&&(d=n.width),null!=n.height&&(f=n.height),this.dpr=n.devicePixelRatio||1,h.width=d*this.dpr,h.height=f*this.dpr,this._width=d,this._height=f;var g=new p(h,this,this.dpr);g.__builtin__=!0,g.initContext(),u[b]=g,g.zlevel=b,c.push(b),this._domRoot=e}else{this._width=Object(a["b"])(e,0,n),this._height=Object(a["b"])(e,1,n);var m=this._domRoot=C(this._width,this._height);e.appendChild(m)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],s=this._layers[o];if(!s.__builtin__&&s.refresh){var a=0===r?this._backgroundColor:null;s.refresh(a)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<t;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(v)),i||(i=n.ctx,i.save()),Object(l["a"])(i,s,r,o===t-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(v)},e.prototype.paintOne=function(e,t){Object(l["b"])(e,t)},e.prototype._paintList=function(e,t,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var r=this._doPaintList(e,t,n),o=r.finished,s=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var a=this;Object(g["a"])((function(){a._paintList(e,t,n,i)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(b).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(i){i.virtual&&e.drawImage(i.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var i=this,o=[],s=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var l=this._zlevelList[a],c=this._layers[l];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||n)&&o.push(c)}for(var u=!0,h=!1,d=function(r){var a,l=o[r],c=l.ctx,d=s&&l.createRepaintRects(e,t,f._width,f._height),p=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,m=g&&Date.now(),v=l.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,d);else if(p===l.__startIndex){var b=e[p];b.incremental&&b.notClear&&!n||l.clear(!1,v,d)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=l.__startIndex);var y=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(a=p;a<l.__endIndex;a++){var r=e[a];if(r.__inHover&&(h=!0),i._doPaintEl(r,l,s,t,n,a===l.__endIndex-1),g){var o=Date.now()-m;if(o>15)break}}n.prevElClipPaths&&c.restore()};if(d)if(0===d.length)a=l.__endIndex;else for(var _=f.dpr,w=0;w<d.length;++w){var C=d[w];c.save(),c.beginPath(),c.rect(C.x*_,C.y*_,C.width*_,C.height*_),c.clip(),y(C),c.restore()}else c.save(),y(),c.restore();l.__drawIndex=a,l.__drawIndex<l.__endIndex&&(u=!1)},f=this,p=0;p<o.length;p++)d(p);return m["a"].wxa&&r["each"](this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:u,needsRefreshHover:h}},e.prototype._doPaintEl=function(e,t,n,i,r,o){var s=t.ctx;if(n){var a=e.getPaintRect();(!i||a&&a.intersect(i))&&(Object(l["a"])(s,e,r,o),e.setPrevPaintRect(a))}else Object(l["a"])(s,e,r,o)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=b);var n=this._layers[e];return n||(n=new p("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?r["merge"](n,this._layerConfig[e],!0):this._layerConfig[e-y]&&r["merge"](n,this._layerConfig[e-y],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,s=null,a=-1;if(!n[e]&&w(t)){if(r>0&&e>i[0]){for(a=0;a<r-1;a++)if(i[a]<e&&i[a+1]>e)break;s=n[i[a]]}if(i.splice(a+1,0,e),n[e]=t,!t.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];e.call(t,this._layers[r],r)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&e.call(t,o,r)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||e.call(t,o,r)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){a&&(a.__endIndex!==e&&(a.__dirty=!0),a.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){var i=e[n];if(i.zlevel!==e[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var o,s,a=null,l=0;for(s=0;s<e.length;s++){i=e[s];var c=i.zlevel,h=void 0;o!==c&&(o=c,l=0),i.incremental?(h=this.getLayer(c+_,this._needsManuallyCompositing),h.incremental=!0,l=1):h=this.getLayer(c+(l>0?y:0),this._needsManuallyCompositing),h.__builtin__||r["logError"]("ZLevel "+c+" has been used by unkown layer "+h.id),h!==a&&(h.__used=!0,h.__startIndex!==s&&(h.__dirty=!0),h.__startIndex=s,h.incremental?h.__drawIndex=-1:h.__drawIndex=s,t(s),a=h),i.__dirty&u["a"]&&!i.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=s))}t(s),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,r["each"](this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?r["merge"](n[e],t,!0):n[e]=t;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===e||o===e+y){var s=this._layers[o];r["merge"](s,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],n.splice(r["indexOf"](n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=e&&(i.width=e),null!=t&&(i.height=t),e=Object(a["b"])(r,0,i),t=Object(a["b"])(r,1,i),n.style.display="",this._width!==e||t!==this._height){for(var o in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(b).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[b].dom;var t=new p("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=t.dom.width,r=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,i,r):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),a=0,c=s.length;a<c;a++){var u=s[a];Object(l["a"])(n,u,o,a===c-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}(),x=S;function O(e){e.registerPainter("canvas",x)}},f97d:function(e,t){var n={"":!0,up:!0};function i(e){if("string"!==typeof e)return!1;var t=n[e.toLowerCase()];return!!t&&e.toLowerCase()}function r(e){return"number"===typeof e&&e>=0&&e<=100}function o(){var e=100,t=3,n=0,o=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!==typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");o=e}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");n=e}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");a=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var t=i(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");l=t}}})}e.exports=o},f9ad:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:function(){return n.e("chunk-2d0c46d1").then(n.bind(null,"3b7c"))}})},f9c1:function(e,t){function n(e){var t=e._readableState;return t?t.objectMode||"number"===typeof e._duplexState?e.read():e.read(i(t)):null}function i(e){if(e.buffer.length){var t=e.bufferIndex||0;if(e.buffer.head)return e.buffer.head.data.length;if(e.buffer.length-t>0&&e.buffer[t])return e.buffer[t].length}return e.length}e.exports=n},fa10:function(e,t,n){},fa12:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("fac6"),r={},o={},s=function(){function e(e){var t=this;this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((function(e,n){t._lazyLoadPromiseResolve=e,t._lazyLoadPromiseReject=n}))}return e.getOrCreate=function(t){return o[t]||(o[t]=new e(t)),o[t]},e.prototype.whenLoaded=function(){return this._lazyLoadPromise},e.prototype.load=function(){var e=this;return this._loadingTriggered||(this._loadingTriggered=!0,r[this._languageId].loader().then((function(t){return e._lazyLoadPromiseResolve(t)}),(function(t){return e._lazyLoadPromiseReject(t)}))),this._lazyLoadPromise},e}();function a(e){var t=e.id;r[t]=e,i["languages"].register(e);var n=s.getOrCreate(t);i["languages"].setMonarchTokensProvider(t,n.whenLoaded().then((function(e){return e.language}))),i["languages"].onLanguage(t,(function(){n.load().then((function(e){i["languages"].setLanguageConfiguration(t,e.conf)}))}))}},faa1:function(e,t,n){"use strict";var i,r="object"===typeof Reflect?Reflect:null,o=r&&"function"===typeof r.apply?r.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function s(e){console&&console.warn&&console.warn(e)}i=r&&"function"===typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!==e};function l(){l.init.call(this)}e.exports=l,e.exports.once=_,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var c=10;function u(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function h(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function d(e,t,n,i){var r,o,a;if(u(n),o=e._events,void 0===o?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"===typeof a?a=o[t]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),r=h(e),r>0&&a.length>r&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s(l)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=f.bind(i);return r.listener=n,i.wrapFn=r,r}function g(e,t,n){var i=e._events;if(void 0===i)return[];var r=i[t];return void 0===r?[]:"function"===typeof r?n?[r.listener||r]:[r]:n?y(r):v(r,r.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function b(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function y(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function _(e,t){return new Promise((function(n,i){function r(n){e.removeListener(t,o),i(n)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",r),n([].slice.call(arguments))}C(e,t,o,{once:!0}),"error"!==t&&w(e,r,{once:!0})}))}function w(e,t,n){"function"===typeof e.on&&C(e,"error",t,n)}function C(e,t,n,i){if("function"===typeof e.on)i.once?e.once(t,n):e.on(t,n);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function r(o){i.once&&e.removeEventListener(t,r),n(o)}))}}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!==typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return h(this)},l.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,r=this._events;if(void 0!==r)i=i&&void 0===r.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=r[e];if(void 0===l)return!1;if("function"===typeof l)o(l,this,t);else{var c=l.length,u=v(l,c);for(n=0;n<c;++n)o(u[n],this,t)}return!0},l.prototype.addListener=function(e,t){return d(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return d(this,e,t,!0)},l.prototype.once=function(e,t){return u(t),this.on(e,p(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,p(this,e,t)),this},l.prototype.removeListener=function(e,t){var n,i,r,o,s;if(u(t),i=this._events,void 0===i)return this;if(n=i[e],void 0===n)return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(r=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){s=n[o].listener,r=o;break}if(r<0)return this;0===r?n.shift():b(n,r),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,s||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,n,i;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)r=o[i],"removeListener"!==r&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],"function"===typeof t)this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},l.prototype.listeners=function(e){return g(this,e,!0)},l.prototype.rawListeners=function(e){return g(this,e,!1)},l.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},l.prototype.listenerCount=m,l.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},fac6:function(e,t,n){"use strict";var i=n("33f9");n.o(i,"languages")&&n.d(t,"languages",(function(){return i["languages"]}))},fadd:function(e,t,n){"use strict";function i(e,t,n){var i;while(e){if(t(e)&&(i=e,n))break;e=e.__hostTarget||e.parent}return i}n.d(t,"a",(function(){return i}))},faf5:function(e,t,n){e.exports=!n("0bad")&&!n("4b8b")((function(){return 7!=Object.defineProperty(n("05f5")("div"),"a",{get:function(){return 7}}).a}))},fb12:function(e,t,n){(function(t,i){var r=n("b4de"),o=n("ab52"),s=n("3fb5"),a=n("f9c1"),l=t.from&&t.from!==Uint8Array.from?t.from([0]):new t([0]),c=function(e,t){e._corked?e.once("uncork",t):t()},u=function(e,t){e._autoDestroy&&e.destroy(t)},h=function(e,t){return function(n){n?u(e,"premature close"===n.message?null:n):t&&!e._ended&&e.end()}},d=function(e,t){return e?e._writableState&&e._writableState.finished?t():e._writableState?e.end(t):(e.end(),void t()):t()},f=function(){},p=function(e){return new r.Readable({objectMode:!0,highWaterMark:16}).wrap(e)},g=function(e,t,n){if(!(this instanceof g))return new g(e,t,n);r.Duplex.call(this,n),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!n||!1!==n.autoDestroy,this._forwardDestroy=!n||!1!==n.destroy,this._forwardEnd=!n||!1!==n.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};s(g,r.Duplex),g.obj=function(e,t,n){return n||(n={}),n.objectMode=!0,n.highWaterMark=16,new g(e,t,n)},g.prototype.cork=function(){1===++this._corked&&this.emit("cork")},g.prototype.uncork=function(){this._corked&&0===--this._corked&&this.emit("uncork")},g.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed)e&&e.destroy&&e.destroy();else if(null!==e&&!1!==e){var t=this,n=o(e,{writable:!0,readable:!1},h(this,this._forwardEnd)),r=function(){var e=t._ondrain;t._ondrain=null,e&&e()},s=function(){t._writable.removeListener("drain",r),n()};this._unwrite&&i.nextTick(r),this._writable=e,this._writable.on("drain",r),this._unwrite=s,this.uncork()}else this.end()},g.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed)e&&e.destroy&&e.destroy();else{if(null===e||!1===e)return this.push(null),void this.resume();var t=this,n=o(e,{writable:!1,readable:!0},h(this)),i=function(){t._forward()},r=function(){t.push(null)},s=function(){t._readable2.removeListener("readable",i),t._readable2.removeListener("end",r),n()};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:p(e),this._readable2.on("readable",i),this._readable2.on("end",r),this._unread=s,this._forward()}},g.prototype._read=function(){this._drained=!0,this._forward()},g.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){var e;this._forwarding=!0;while(this._drained&&null!==(e=a(this._readable2)))this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},g.prototype.destroy=function(e,t){if(t||(t=f),this.destroyed)return t(null);this.destroyed=!0;var n=this;i.nextTick((function(){n._destroy(e),t(null)}))},g.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},g.prototype._write=function(e,t,n){if(!this.destroyed)return this._corked?c(this,this._write.bind(this,e,t,n)):e===l?this._finish(n):this._writable?void(!1===this._writable.write(e)?this._ondrain=n:this.destroyed||n()):n()},g.prototype._finish=function(e){var t=this;this.emit("preend"),c(this,(function(){d(t._forwardEnd&&t._writable,(function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),c(t,e)}))}))},g.prototype.end=function(e,t,n){return"function"===typeof e?this.end(null,null,e):"function"===typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this._writableState.destroyed||this.write(l),r.Writable.prototype.end.call(this,n))},e.exports=g}).call(this,n("1c35").Buffer,n("4362"))},fb6a:function(e,t,n){"use strict";var i=n("23e7"),r=n("e8b5"),o=n("68ee"),s=n("861d"),a=n("23cb"),l=n("07fa"),c=n("fc6a"),u=n("8418"),h=n("b622"),d=n("1dde"),f=n("f36a"),p=d("slice"),g=h("species"),m=Array,v=Math.max;i({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,i,h,d=c(this),p=l(d),b=a(e,p),y=a(void 0===t?p:t,p);if(r(d)&&(n=d.constructor,o(n)&&(n===m||r(n.prototype))?n=void 0:s(n)&&(n=n[g],null===n&&(n=void 0)),n===m||void 0===n))return f(d,b,y);for(i=new(void 0===n?m:n)(v(y-b,0)),h=0;b<y;b++,h++)b in d&&u(i,h,d[b]);return i.length=h,i}})},fb71:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var i=n("30db"),r=n("62bd");const o=i["f"]?1.5:1.35,s=8;class a{constructor(e){this._bareFontInfoBrand=void 0,this.zoomLevel=e.zoomLevel,this.pixelRatio=e.pixelRatio,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}static createFromValidatedSettings(e,t,n,i){const r=e.get(40),o=e.get(44),s=e.get(43),l=e.get(42),c=e.get(57),u=e.get(54);return a._create(r,o,s,l,c,u,t,n,i)}static _create(e,t,n,i,l,c,u,h,d){0===l?l=o*n:l<s&&(l*=n),l=Math.round(l),l<s&&(l=s);const f=1+(d?0:.1*r["a"].getZoomLevel());return n*=f,l*=f,new a({zoomLevel:u,pixelRatio:h,fontFamily:e,fontWeight:t,fontSize:n,fontFeatureSettings:i,lineHeight:l,letterSpacing:c})}getId(){return this.zoomLevel+"-"+this.pixelRatio+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.fontFeatureSettings+"-"+this.lineHeight+"-"+this.letterSpacing}getMassagedFontFamily(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?`"${this.fontFamily}"`:this.fontFamily}}const l=1;class c extends a{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=l,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(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.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}},fbba:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return d})),n.d(t,"e",(function(){return f}));var i=n("89cd"),r=n("0a0f"),o=n("0910");const s=Object(r["c"])("configurationService");function a(e,t){const n=Object.create(null);for(let i in e)l(n,i,e[i],t);return n}function l(e,t,n,i){const r=t.split("."),o=r.pop();let s=e;for(let l=0;l<r.length;l++){let e=r[l],n=s[e];switch(typeof n){case"undefined":n=s[e]=Object.create(null);break;case"object":break;default:return void i(`Ignoring ${t} as ${r.slice(0,l+1).join(".")} is ${JSON.stringify(n)}`)}s=n}if("object"===typeof s&&null!==s)try{s[o]=n}catch(a){i(`Ignoring ${t} as ${r.join(".")} is ${JSON.stringify(s)}`)}else i(`Ignoring ${t} as ${r.join(".")} is ${JSON.stringify(s)}`)}function c(e,t){const n=t.split(".");u(e,n)}function u(e,t){const n=t.shift();if(0!==t.length){if(-1!==Object.keys(e).indexOf(n)){const i=e[n];"object"!==typeof i||Array.isArray(i)||(u(i,t),0===Object.keys(i).length&&delete e[n])}}else delete e[n]}function h(e,t,n){function i(e,t){let n=e;for(const i of t){if("object"!==typeof n||null===n)return;n=n[i]}return n}const r=t.split("."),o=i(e,r);return"undefined"===typeof o?n:o}function d(){const e=i["a"].as(o["a"].Configuration).getConfigurationProperties();return Object.keys(e)}function f(){const e=Object.create(null),t=i["a"].as(o["a"].Configuration).getConfigurationProperties();for(let n in t){let i=t[n].default;l(e,n,i,e=>console.error("Conflict in default settings: "+e))}return e}},fbd7:function(e,t,n){"use strict";function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function o(e,t,n){function o(e,n,i){return"string"===typeof t?t:t(e,n,i)}n||(n=Error);var s=function(e){function t(t,n,i){return e.call(this,o(t,n,i))||this}return i(t,e),t}(n);s.prototype.name=n.name,s.prototype.code=e,r[e]=s}function s(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}function a(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function l(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function c(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,n){var i,r;if("string"===typeof t&&a(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be",l(e," argument"))r="The ".concat(e," ").concat(i," ").concat(s(t,"type"));else{var o=c(e,".")?"property":"argument";r='The "'.concat(e,'" ').concat(o," ").concat(i," ").concat(s(t,"type"))}return r+=". Received type ".concat(typeof n),r}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},fc5e:function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},fc6a:function(e,t,n){var i=n("44ad"),r=n("1d80");e.exports=function(e){return i(r(e))}},fcb9:function(e,t,n){"use strict";(function(t){const{Buffer:i}=n("1c35"),r=n("7f73"),o=n("34eb")("mqttjs:ws"),s=n("fb12"),a=n("035d").Transform,l=["rejectUnauthorized","ca","cert","key","pfx","passphrase"],c="undefined"!==typeof t&&"browser"===t.title||"function"===typeof n;function u(e,t){let n=e.protocol+"://"+e.hostname+":"+e.port+e.path;return"function"===typeof e.transformWsUrl&&(n=e.transformWsUrl(n,e,t)),n}function h(e){const t=e;return e.hostname||(t.hostname="localhost"),e.port||("wss"===e.protocol?t.port=443:t.port=80),e.path||(t.path="/"),e.wsOptions||(t.wsOptions={}),c||"wss"!==e.protocol||l.forEach((function(n){Object.prototype.hasOwnProperty.call(e,n)&&!Object.prototype.hasOwnProperty.call(e.wsOptions,n)&&(t.wsOptions[n]=e[n])})),t}function d(e){const t=h(e);if(t.hostname||(t.hostname=t.host),!t.hostname){if("undefined"===typeof document)throw new Error("Could not determine host. Specify host manually.");const e=new URL(document.URL);t.hostname=e.hostname,t.port||(t.port=e.port)}return void 0===t.objectMode&&(t.objectMode=!(!0===t.binary||void 0===t.binary)),t}function f(e,t,n){o("createWebSocket"),o("protocol: "+n.protocolId+" "+n.protocolVersion);const i="MQIsdp"===n.protocolId&&3===n.protocolVersion?"mqttv3.1":"mqtt";o("creating new Websocket for url: "+t+" and protocol: "+i);const s=new r(t,[i],n.wsOptions);return s}function p(e,t){const n="MQIsdp"===t.protocolId&&3===t.protocolVersion?"mqttv3.1":"mqtt",i=u(t,e),r=new WebSocket(i,[n]);return r.binaryType="arraybuffer",r}function g(e,t){o("streamBuilder");const n=h(t),i=u(n,e),s=f(e,i,n),a=r.createWebSocketStream(s,n.wsOptions);return a.url=i,s.on("close",()=>{a.destroy()}),a}function m(e,t){let n;o("browserStreamBuilder");const r=d(t),l=r.browserBufferSize||524288,c=t.browserBufferTimeout||1e3,u=!t.objectMode,h=p(e,t),f=m(t,C,S);t.objectMode||(f._writev=w),f.on("close",()=>{h.close()});const g="undefined"!==typeof h.addEventListener;function m(e,t,n){const i=new a({objectModeMode:e.objectMode});return i._write=t,i._flush=n,i}function v(){n.setReadable(f),n.setWritable(f),n.emit("connect")}function b(){n.end(),n.destroy()}function y(e){n.destroy(e)}function _(e){let t=e.data;t=t instanceof ArrayBuffer?i.from(t):i.from(t,"utf8"),f.push(t)}function w(e,t){const n=new Array(e.length);for(let r=0;r<e.length;r++)"string"===typeof e[r].chunk?n[r]=i.from(e[r],"utf8"):n[r]=e[r].chunk;this._write(i.concat(n),"binary",t)}function C(e,t,n){h.bufferedAmount>l&&setTimeout(C,c,e,t,n),u&&"string"===typeof e&&(e=i.from(e,"utf8"));try{h.send(e)}catch(r){return n(r)}n()}function S(e){h.close(),e()}return h.readyState===h.OPEN?n=f:(n=n=s(void 0,void 0,t),t.objectMode||(n._writev=w),g?h.addEventListener("open",v):h.onopen=v),n.socket=h,g?(h.addEventListener("close",b),h.addEventListener("error",y),h.addEventListener("message",_)):(h.onclose=b,h.onerror=y,h.onmessage=_),n}e.exports=c?m:g}).call(this,n("4362"))},fcd4:function(e,t,n){t.f=n("cc15")},fce3:function(e,t,n){var i=n("d039"),r=n("da84"),o=r.RegExp;e.exports=i((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},fd11:function(e,t,n){"use strict";n.r(t),n.d(t,"DragAndDropController",(function(){return d}));n("3a19");var i=n("a666"),r=n("30db"),o=n("b2cc"),s=n("7061"),a=n("6a89"),l=n("8025");class c{constructor(e,t,n){this.selection=e,this.targetPosition=t,this.copy=n,this.targetSelection=null}getEditOperations(e,t){let n=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new a["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}computeCursorState(e,t){return this.targetSelection}}var u=n("b57f");function h(e){return r["f"]?e.altKey:e.ctrlKey}class d extends i["a"]{constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown(e=>this._onEditorMouseDown(e))),this._register(this._editor.onMouseUp(e=>this._onEditorMouseUp(e))),this._register(this._editor.onMouseDrag(e=>this._onEditorMouseDrag(e))),this._register(this._editor.onMouseDrop(e=>this._onEditorMouseDrop(e))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(e=>this.onEditorKeyDown(e))),this._register(this._editor.onKeyUp(e=>this.onEditorKeyUp(e))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._dndDecorationIds=[],this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){this._editor.getOption(29)&&!this._editor.getOption(16)&&(h(e)&&(this._modifierPressed=!0),this._mouseDown&&h(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){this._editor.getOption(29)&&!this._editor.getOption(16)&&(h(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===d.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){let t=e.target;if(null===this._dragSelection){const e=this._editor.getSelections()||[];let n=e.filter(e=>t.position&&e.containsPosition(t.position));if(1!==n.length)return;this._dragSelection=n[0]}h(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))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){let t=new s["a"](e.target.position.lineNumber,e.target.position.column);if(null===this._dragSelection){let n=null;if(e.event.shiftKey){let e=this._editor.getSelection();if(e){const{selectionStartLineNumber:i,selectionStartColumn:r}=e;n=[new l["a"](i,r,t.lineNumber,t.column)]}}else n=(this._editor.getSelections()||[]).map(e=>e.containsPosition(t)?new l["a"](t.lineNumber,t.column,t.lineNumber,t.column):e);this._editor.setSelections(n||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(h(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(d.ID,new c(this._dragSelection,t,h(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){let t=[{range:new a["a"](e.lineNumber,e.column,e.lineNumber,e.column),options:d._DECORATION_OPTIONS}];this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,t),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds=this._editor.deltaDecorations(this._dndDecorationIds,[])}_hitContent(e){return 6===e.type||7===e.type}_hitMargin(e){return 2===e.type||3===e.type||4===e.type}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}d.ID="editor.contrib.dragAndDrop",d.TRIGGER_KEY_VALUE=r["f"]?6:5,d._DECORATION_OPTIONS=u["a"].register({description:"dnd-target",className:"dnd-target"}),Object(o["l"])(d.ID,d)},fd49:function(e,t,n){"use strict";n.d(t,"h",(function(){return s})),n.d(t,"b",(function(){return a})),n.d(t,"j",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"k",(function(){return f})),n.d(t,"n",(function(){return b})),n.d(t,"i",(function(){return O})),n.d(t,"e",(function(){return I})),n.d(t,"f",(function(){return j})),n.d(t,"m",(function(){return K})),n.d(t,"c",(function(){return se})),n.d(t,"d",(function(){return ae})),n.d(t,"l",(function(){return le})),n.d(t,"g",(function(){return ue}));var i=n("dff7"),r=n("30db"),o=n("d093");const s=8;class a{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class l{constructor(){this._values=[]}_read(e){return this._values[e]}get(e){return this._values[e]}_write(e,t){this._values[e]=t}}class c{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class u{constructor(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}compute(e,t,n){return n}}class h{constructor(e,t=null){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0,this.deps=t}validate(e){return this.defaultValue}}class d{constructor(e,t,n,i){this.id=e,this.name=t,this.defaultValue=n,this.schema=i}validate(e){return"undefined"===typeof e?this.defaultValue:e}compute(e,t,n){return n}}function f(e,t){return"undefined"===typeof e?t:"false"!==e&&Boolean(e)}class p extends d{constructor(e,t,n,i){"undefined"!==typeof i&&(i.type="boolean",i.default=n),super(e,t,n,i)}validate(e){return f(e,this.defaultValue)}}class g extends d{constructor(e,t,n,i,r,o){"undefined"!==typeof o&&(o.type="integer",o.default=n,o.minimum=i,o.maximum=r),super(e,t,n,o),this.minimum=i,this.maximum=r}static clampedInt(e,t,n,i){if("undefined"===typeof e)return t;let r=parseInt(e,10);return isNaN(r)?t:(r=Math.max(n,r),r=Math.min(i,r),0|r)}validate(e){return g.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class m extends d{constructor(e,t,n,i,r){"undefined"!==typeof r&&(r.type="number",r.default=n),super(e,t,n,r),this.validationFn=i}static clamp(e,t,n){return e<t?t:e>n?n:e}static float(e,t){if("number"===typeof e)return e;if("undefined"===typeof e)return t;const n=parseFloat(e);return isNaN(n)?t:n}validate(e){return this.validationFn(m.float(e,this.defaultValue))}}class v extends d{static string(e,t){return"string"!==typeof e?t:e}constructor(e,t,n,i){"undefined"!==typeof i&&(i.type="string",i.default=n),super(e,t,n,i)}validate(e){return v.string(e,this.defaultValue)}}function b(e,t,n){return"string"!==typeof e||-1===n.indexOf(e)?t:e}class y extends d{constructor(e,t,n,i,r){"undefined"!==typeof r&&(r.type="string",r.enum=i,r.default=n),super(e,t,n,r),this._allowedValues=i}validate(e){return b(e,this.defaultValue,this._allowedValues)}}class _ extends u{constructor(e,t,n,i,r,o,s){"undefined"!==typeof s&&(s.type="string",s.enum=r,s.default=i),super(e,t,n,s),this._allowedValues=r,this._convert=o}validate(e){return"string"!==typeof e||-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)}}function w(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class C extends u{constructor(){super(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. Word wrapping will be disabled."),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. Setting to on will disable word wrapping.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,n){return 0===n?e.accessibilitySupport:n}}class S extends u{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(17,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:i["a"]("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:i["a"]("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertSpace:f(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:f(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function x(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var O;function k(e){switch(e){case"line":return O.Line;case"block":return O.Block;case"underline":return O.Underline;case"line-thin":return O.LineThin;case"block-outline":return O.BlockOutline;case"underline-thin":return O.UnderlineThin}}(function(e){e[e["Line"]=1]="Line",e[e["Block"]=2]="Block",e[e["Underline"]=3]="Underline",e[e["LineThin"]=4]="LineThin",e[e["BlockOutline"]=5]="BlockOutline",e[e["UnderlineThin"]=6]="UnderlineThin"})(O||(O={}));class L extends h{constructor(){super(126,[64,31])}compute(e,t,n){const i=["monaco-editor"];return t.get(31)&&i.push(t.get(31)),e.extraEditorClassName&&i.push(e.extraEditorClassName),"default"===t.get(64)?i.push("mouse-default"):"copy"===t.get(64)&&i.push("mouse-copy"),t.get(99)&&i.push("showUnused"),t.get(124)&&i.push("showDeprecated"),i.join(" ")}}class E extends p{constructor(){super(30,"emptySelectionClipboard",!0,{description:i["a"]("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,n){return n&&e.emptySelectionClipboard}}class D extends u{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(33,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:i["a"]("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[i["a"]("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),i["a"]("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),i["a"]("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],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 the condition for turning on Find in Selection automatically.")},"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["f"]},"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.")},"editor.find.loop":{type:"boolean",default:e.loop,description:i["a"]("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{cursorMoveOnType:f(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:"boolean"===typeof e.seedSearchStringFromSelection?e.seedSearchStringFromSelection?"always":"never":b(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:"boolean"===typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":b(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:f(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:f(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:f(t.loop,this.defaultValue.loop)}}}class I extends u{constructor(){super(42,"fontLigatures",I.OFF,{anyOf:[{type:"boolean",description:i["a"]("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:i["a"]("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:i["a"]("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e?I.OFF:"true"===e?I.ON:e:Boolean(e)?I.ON:I.OFF}}I.OFF='"liga" off, "calt" off',I.ON='"liga" on, "calt" on';class M extends h{constructor(){super(41)}compute(e,t,n){return e.fontInfo}}class T extends d{constructor(){super(43,"fontSize",se.fontSize,{type:"number",minimum:6,maximum:100,default:se.fontSize,description:i["a"]("fontSize","Controls the font size in pixels.")})}validate(e){let t=m.float(e,this.defaultValue);return 0===t?se.fontSize:m.clamp(t,6,100)}compute(e,t,n){return e.fontInfo.fontSize}}class A extends u{constructor(){super(44,"fontWeight",se.fontWeight,{anyOf:[{type:"number",minimum:A.MINIMUM_VALUE,maximum:A.MAXIMUM_VALUE,errorMessage:i["a"]("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:A.SUGGESTION_VALUES}],default:se.fontWeight,description:i["a"]("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return"normal"===e||"bold"===e?e:String(g.clampedInt(e,se.fontWeight,A.MINIMUM_VALUE,A.MAXIMUM_VALUE))}}A.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],A.MINIMUM_VALUE=1,A.MAXIMUM_VALUE=1e3;class N extends u{constructor(){const 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")]},n=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(48,"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":Object.assign({description:i["a"]("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({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":Object.assign({description:i["a"]("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleImplementations":Object.assign({description:i["a"]("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},t),"editor.gotoLocation.multipleReferences":Object.assign({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,enum:n,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,enum:n,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,enum:n,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,enum:n,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,enum:n,description:i["a"]("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var t,n,i,r,o;if(!e||"object"!==typeof e)return this.defaultValue;const s=e;return{multiple:b(s.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=s.multipleDefinitions)&&void 0!==t?t:b(s.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(n=s.multipleTypeDefinitions)&&void 0!==n?n:b(s.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(i=s.multipleDeclarations)&&void 0!==i?i:b(s.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(r=s.multipleImplementations)&&void 0!==r?r:b(s.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(o=s.multipleReferences)&&void 0!==o?o:b(s.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:v.string(s.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:v.string(s.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:v.string(s.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:v.string(s.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:v.string(s.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class P extends u{constructor(){const e={enabled:!0,delay:300,sticky:!0};super(51,"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.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:f(t.enabled,this.defaultValue.enabled),delay:g.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:f(t.sticky,this.defaultValue.sticky)}}}class j extends h{constructor(){super(129,[47,56,35,63,91,58,59,93,116,119,120,121,2])}compute(e,t,n){return j.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,n=e.scrollBeyondLastLine?t-1:0,i=(e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/i);return{typicalViewportLineCount:t,extraLinesBeyondLastLine:n,desiredRatio:i,minimapLineCount:r}}static _computeMinimapLayout(e,t){const n=e.outerWidth,i=e.outerHeight,r=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(r*i),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:i};const o=t.stableMinimapLayoutInput,a=o&&e.outerHeight===o.outerHeight&&e.lineHeight===o.lineHeight&&e.typicalHalfwidthCharacterWidth===o.typicalHalfwidthCharacterWidth&&e.pixelRatio===o.pixelRatio&&e.scrollBeyondLastLine===o.scrollBeyondLastLine&&e.minimap.enabled===o.minimap.enabled&&e.minimap.side===o.minimap.side&&e.minimap.size===o.minimap.size&&e.minimap.showSlider===o.minimap.showSlider&&e.minimap.renderCharacters===o.minimap.renderCharacters&&e.minimap.maxColumn===o.minimap.maxColumn&&e.minimap.scale===o.minimap.scale&&e.verticalScrollbarWidth===o.verticalScrollbarWidth&&e.isViewportWrapping===o.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,u=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let d=r>=2?Math.round(2*e.minimap.scale):e.minimap.scale;const f=e.minimap.maxColumn,p=e.minimap.size,g=e.minimap.side,m=e.verticalScrollbarWidth,v=e.viewLineCount,b=e.remainingWidth,y=e.isViewportWrapping,_=h?2:3;let w=Math.floor(r*i);const C=w/r;let S=!1,x=!1,O=_*d,k=d/r,L=1;if("fill"===p||"fit"===p){const{typicalViewportLineCount:n,extraLinesBeyondLastLine:o,desiredRatio:s,minimapLineCount:c}=j.computeContainedMinimapLineCount({viewLineCount:v,scrollBeyondLastLine:u,height:i,lineHeight:l,pixelRatio:r}),h=v/c;if(h>1)S=!0,x=!0,d=1,O=1,k=d/r;else{let i=!1,c=d+1;if("fit"===p){const e=Math.ceil((v+o)*O);y&&a&&b<=t.stableFitRemainingWidth?(i=!0,c=t.stableFitMaxMinimapScale):i=e>w}if("fill"===p||i){S=!0;const i=d;O=Math.min(l*r,Math.max(1,Math.floor(1/s))),y&&a&&b<=t.stableFitRemainingWidth&&(c=t.stableFitMaxMinimapScale),d=Math.min(c,Math.max(1,Math.floor(O/_))),d>i&&(L=Math.min(2,d/i)),k=d/r/L,w=Math.ceil(Math.max(n,v+o)*O),y?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=b,t.stableFitMaxMinimapScale=d):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const E=Math.floor(f*k),D=Math.min(E,Math.max(0,Math.floor((b-m-2)*k/(c+k)))+s);let I=Math.floor(r*D);const M=I/r;I=Math.floor(I*L);const T=h?1:2,A="left"===g?0:n-D-m;return{renderMinimap:T,minimapLeft:A,minimapWidth:D,minimapHeightIsEditorHeight:S,minimapIsSampling:x,minimapScale:d,minimapLineHeight:O,minimapCanvasInnerWidth:I,minimapCanvasInnerHeight:w,minimapCanvasOuterWidth:M,minimapCanvasOuterHeight:C}}static computeLayout(e,t){const n=0|t.outerWidth,i=0|t.outerHeight,r=0|t.lineHeight,o=0|t.lineNumbersDigitCount,s=t.typicalHalfwidthCharacterWidth,a=t.maxDigitWidth,l=t.pixelRatio,u=t.viewLineCount,h=e.get(121),d="inherit"===h?e.get(120):h,f="inherit"===d?e.get(116):d,p=e.get(119),m=e.get(2),v=t.isDominatedByLongLines,b=e.get(47),y=0!==e.get(58).renderType,_=e.get(59),w=e.get(93),C=e.get(63),S=e.get(91),x=S.verticalScrollbarSize,O=S.verticalHasArrows,k=S.arrowSize,L=S.horizontalScrollbarSize,E=e.get(56),D=e.get(35);let I;if("string"===typeof E&&/^\d+(\.\d+)?ch$/.test(E)){const e=parseFloat(E.substr(0,E.length-2));I=g.clampedInt(e*s,0,0,1e3)}else I=g.clampedInt(E,0,0,1e3);D&&(I+=16);let M=0;if(y){const e=Math.max(o,_);M=Math.round(e*a)}let T=0;b&&(T=r);let A=0,N=A+T,P=N+M,R=P+I;const F=n-T-M-I;let B=!1,W=!1,V=-1;2!==m&&("inherit"===d&&v?(B=!0,W=!0):"on"===f||"bounded"===f?W=!0:"wordWrapColumn"===f&&(V=p));const z=j._computeMinimapLayout({outerWidth:n,outerHeight:i,lineHeight:r,typicalHalfwidthCharacterWidth:s,pixelRatio:l,scrollBeyondLastLine:w,minimap:C,verticalScrollbarWidth:x,viewLineCount:u,remainingWidth:F,isViewportWrapping:W},t.memory||new c);0!==z.renderMinimap&&0===z.minimapLeft&&(A+=z.minimapWidth,N+=z.minimapWidth,P+=z.minimapWidth,R+=z.minimapWidth);const H=F-z.minimapWidth,U=Math.max(1,Math.floor((H-x-2)/s)),q=O?k:0;return W&&(V=Math.max(1,U),"bounded"===f&&(V=Math.min(V,p))),{width:n,height:i,glyphMarginLeft:A,glyphMarginWidth:T,lineNumbersLeft:N,lineNumbersWidth:M,decorationsLeft:P,decorationsWidth:I,contentLeft:R,contentWidth:H,minimap:z,viewportColumn:U,isWordWrapMinified:B,isViewportWrapping:W,wrappingColumn:V,verticalScrollbarWidth:x,horizontalScrollbarHeight:L,overviewRuler:{top:q,width:x,height:i-2*q,right:0}}}}class R extends u{constructor(){const e={enabled:!0};super(55,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:i["a"]("codeActions","Enables the code action lightbulb in the editor.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:f(t.enabled,this.defaultValue.enabled)}}}class F extends u{constructor(){const e={enabled:!0,fontSize:0,fontFamily:""};super(125,"inlayHints",e,{"editor.inlayHints.enabled":{type:"boolean",default:e.enabled,description:i["a"]("inlayHints.enable","Enables the inlay hints in the editor.")},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:i["a"]("inlayHints.fontSize","Controls font size of inlay hints in the editor. When set to `0`, the 90% of `#editor.fontSize#` is used.")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,description:i["a"]("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the `#editor.fontFamily#` is used.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:f(t.enabled,this.defaultValue.enabled),fontSize:g.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:v.string(t.fontFamily,this.defaultValue.fontFamily)}}}class B extends m{constructor(){super(57,"lineHeight",se.lineHeight,e=>m.clamp(e,0,150),{markdownDescription:i["a"]("lineHeight","Controls the line height. \n - Use 0 to automatically compute the line height from the font size.\n - Values between 0 and 8 will be used as a multiplier with the font size.\n - Values greater than or equal to 8 will be used as effective values.")})}compute(e,t,n){return e.fontInfo.lineHeight}}class W extends u{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};super(63,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:i["a"]("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[i["a"]("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),i["a"]("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),i["a"]("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:i["a"]("minimap.size","Controls the size of the minimap.")},"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,enum:[1,2,3],description:i["a"]("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"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.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:f(t.enabled,this.defaultValue.enabled),size:b(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:b(t.side,this.defaultValue.side,["right","left"]),showSlider:b(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:f(t.renderCharacters,this.defaultValue.renderCharacters),scale:g.clampedInt(t.scale,1,1,3),maxColumn:g.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function V(e){return"ctrlCmd"===e?r["f"]?"metaKey":"ctrlKey":"altKey"}class z extends u{constructor(){super(73,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:i["a"]("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:i["a"]("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{top:g.clampedInt(t.top,0,0,1e3),bottom:g.clampedInt(t.bottom,0,0,1e3)}}}class H extends u{constructor(){const e={enabled:!0,cycle:!1};super(74,"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.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:f(t.enabled,this.defaultValue.enabled),cycle:f(t.cycle,this.defaultValue.cycle)}}}class U extends h{constructor(){super(127)}compute(e,t,n){return e.pixelRatio}}class q extends u{constructor(){const e={other:!0,comments:!1,strings:!1};super(77,"quickSuggestions",e,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:e.strings,description:i["a"]("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:e.comments,description:i["a"]("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:e.other,description:i["a"]("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:e,description:i["a"]("quickSuggestions","Controls whether suggestions should automatically show up while typing.")}),this.defaultValue=e}validate(e){if("boolean"===typeof e)return e;if(e&&"object"===typeof e){const t=e,n={other:f(t.other,this.defaultValue.other),comments:f(t.comments,this.defaultValue.comments),strings:f(t.strings,this.defaultValue.strings)};return!!(n.other&&n.comments&&n.strings)||!!(n.other||n.comments||n.strings)&&n}return this.defaultValue}}class $ extends u{constructor(){super(58,"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.")})}validate(e){let t=this.defaultValue.renderType,n=this.defaultValue.renderFn;return"undefined"!==typeof e&&("function"===typeof e?(t=4,n=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:n}}}function K(e){const t=e.get(86);return"editable"===t?e.get(79):"on"!==t}class G extends u{constructor(){const e=[],t={type:"number",description:i["a"]("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(90,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:i["a"]("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},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.")})}validate(e){if(Array.isArray(e)){let t=[];for(let n of e)if("number"===typeof n)t.push({column:g.clampedInt(n,0,0,1e4),color:null});else if(n&&"object"===typeof n){const e=n;t.push({column:g.clampedInt(e.column,0,0,1e4),color:e.color})}return t.sort((e,t)=>e.column-t.column),t}return this.defaultValue}}function Y(e,t){if("string"!==typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}class Z extends u{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(91,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[i["a"]("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),i["a"]("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),i["a"]("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:i["a"]("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[i["a"]("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),i["a"]("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),i["a"]("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:i["a"]("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:i["a"]("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:i["a"]("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:i["a"]("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e,n=g.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),i=g.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:g.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:Y(t.vertical,this.defaultValue.vertical),horizontal:Y(t.horizontal,this.defaultValue.horizontal),useShadows:f(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:f(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:f(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:f(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:f(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:n,horizontalSliderSize:g.clampedInt(t.horizontalSliderSize,n,0,1e3),verticalScrollbarSize:i,verticalSliderSize:g.clampedInt(t.verticalSliderSize,i,0,1e3),scrollByPage:f(t.scrollByPage,this.defaultValue.scrollByPage)}}}class X extends u{constructor(){const e={enabled:!1,mode:"subwordSmart"};super(53,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:i["a"]("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.mode":{type:"string",enum:["prefix","subword","subwordSmart"],enumDescriptions:[i["a"]("inlineSuggest.mode.prefix","Only render an inline suggestion if the replace text is a prefix of the insert text."),i["a"]("inlineSuggest.mode.subword","Only render an inline suggestion if the replace text is a subword of the insert text."),i["a"]("inlineSuggest.mode.subwordSmart","Only render an inline suggestion if the replace text is a subword of the insert text, but the subword must start after the cursor.")],default:e.mode,description:i["a"]("inlineSuggest.mode","Controls which mode to use for rendering inline suggestions.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{enabled:f(t.enabled,this.defaultValue.enabled),mode:b(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}}}class Q extends u{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!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,showUsers:!0,showIssues:!0};super(105,"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.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 favors 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.showStatusBar":{type:"boolean",default:e.showStatusBar,description:i["a"]("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:i["a"]("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.previewMode":{type:"string",enum:["prefix","subword","subwordSmart"],enumDescriptions:[i["a"]("suggest.previewMode.prefix","Only render a preview if the replace text is a prefix of the insert text."),i["a"]("suggest.previewMode.subword","Only render a preview if the replace text is a subword of the insert text."),i["a"]("suggest.previewMode.subwordSmart","Render a preview if the replace text is a subword of the insert text, or if it is a prefix of the insert text.")],default:e.previewMode,description:i["a"]("suggest.previewMode","Controls which mode to use for rendering the suggest preview.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:i["a"]("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:i["a"]("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"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.showDeprecated":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-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.showUsers":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:i["a"]("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||"object"!==typeof e)return this.defaultValue;const t=e;return{insertMode:b(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:f(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:f(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:f(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:f(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:f(t.showIcons,this.defaultValue.showIcons),showStatusBar:f(t.showStatusBar,this.defaultValue.showStatusBar),preview:f(t.preview,this.defaultValue.preview),previewMode:b(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:f(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:f(t.showMethods,this.defaultValue.showMethods),showFunctions:f(t.showFunctions,this.defaultValue.showFunctions),showConstructors:f(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:f(t.showDeprecated,this.defaultValue.showDeprecated),showFields:f(t.showFields,this.defaultValue.showFields),showVariables:f(t.showVariables,this.defaultValue.showVariables),showClasses:f(t.showClasses,this.defaultValue.showClasses),showStructs:f(t.showStructs,this.defaultValue.showStructs),showInterfaces:f(t.showInterfaces,this.defaultValue.showInterfaces),showModules:f(t.showModules,this.defaultValue.showModules),showProperties:f(t.showProperties,this.defaultValue.showProperties),showEvents:f(t.showEvents,this.defaultValue.showEvents),showOperators:f(t.showOperators,this.defaultValue.showOperators),showUnits:f(t.showUnits,this.defaultValue.showUnits),showValues:f(t.showValues,this.defaultValue.showValues),showConstants:f(t.showConstants,this.defaultValue.showConstants),showEnums:f(t.showEnums,this.defaultValue.showEnums),showEnumMembers:f(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:f(t.showKeywords,this.defaultValue.showKeywords),showWords:f(t.showWords,this.defaultValue.showWords),showColors:f(t.showColors,this.defaultValue.showColors),showFiles:f(t.showFiles,this.defaultValue.showFiles),showReferences:f(t.showReferences,this.defaultValue.showReferences),showFolders:f(t.showFolders,this.defaultValue.showFolders),showTypeParameters:f(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:f(t.showSnippets,this.defaultValue.showSnippets),showUsers:f(t.showUsers,this.defaultValue.showUsers),showIssues:f(t.showIssues,this.defaultValue.showIssues)}}}class J extends u{constructor(){super(101,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:i["a"]("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return e&&"object"===typeof e?{selectLeadingAndTrailingWhitespace:f(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}:this.defaultValue}}class ee extends h{constructor(){super(128,[79])}compute(e,t,n){const i=t.get(79);return!!i||e.tabFocusMode}}function te(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}class ne extends h{constructor(){super(130,[129])}compute(e,t,n){const i=t.get(129);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:i.isWordWrapMinified,isViewportWrapping:i.isViewportWrapping,wrappingColumn:i.wrappingColumn}}}const ie="Consolas, 'Courier New', monospace",re="Menlo, Monaco, 'Courier New', monospace",oe="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",se={fontFamily:r["f"]?re:r["d"]?oe:ie,fontWeight:"normal",fontSize:r["f"]?12:14,lineHeight:0,letterSpacing:0},ae={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},le=[];function ce(e){return le[e.id]=e,e}const ue={acceptSuggestionOnCommitCharacter:ce(new p(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:ce(new y(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:ce(new C),accessibilityPageSize:ce(new g(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 at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default.")})),ariaLabel:ce(new v(4,"ariaLabel",i["a"]("editorViewAccessibleLabel","Editor content"))),autoClosingBrackets:ce(new y(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.")})),autoClosingDelete:ce(new y(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",i["a"]("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:i["a"]("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:ce(new y(7,"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:ce(new y(8,"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:ce(new _(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],w,{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:ce(new p(10,"automaticLayout",!1)),autoSurround:ce(new y(11,"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 when typing quotes or brackets.")})),stickyTabStops:ce(new p(103,"stickyTabStops",!1,{description:i["a"]("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:ce(new p(12,"codeLens",!0,{description:i["a"]("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:ce(new v(13,"codeLensFontFamily","",{description:i["a"]("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:ce(new g(14,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:i["a"]("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to `0`, the 90% of `#editor.fontSize#` is used.")})),colorDecorators:ce(new p(15,"colorDecorators",!0,{description:i["a"]("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),columnSelection:ce(new p(16,"columnSelection",!1,{description:i["a"]("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ce(new S),contextmenu:ce(new p(18,"contextmenu",!0)),copyWithSyntaxHighlighting:ce(new p(19,"copyWithSyntaxHighlighting",!0,{description:i["a"]("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ce(new _(20,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],x,{description:i["a"]("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ce(new p(21,"cursorSmoothCaretAnimation",!1,{description:i["a"]("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ce(new _(22,"cursorStyle",O.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],k,{description:i["a"]("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ce(new g(23,"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:ce(new y(24,"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:ce(new g(25,"cursorWidth",0,0,1073741824,{markdownDescription:i["a"]("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ce(new p(26,"disableLayerHinting",!1)),disableMonospaceOptimizations:ce(new p(27,"disableMonospaceOptimizations",!1)),domReadOnly:ce(new p(28,"domReadOnly",!1)),dragAndDrop:ce(new p(29,"dragAndDrop",!0,{description:i["a"]("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ce(new E),extraEditorClassName:ce(new v(31,"extraEditorClassName","")),fastScrollSensitivity:ce(new m(32,"fastScrollSensitivity",5,e=>e<=0?5:e,{markdownDescription:i["a"]("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ce(new D),fixedOverflowWidgets:ce(new p(34,"fixedOverflowWidgets",!1)),folding:ce(new p(35,"folding",!0,{description:i["a"]("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ce(new y(36,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[i["a"]("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),i["a"]("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:i["a"]("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ce(new p(37,"foldingHighlight",!0,{description:i["a"]("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:ce(new p(38,"foldingImportsByDefault",!1,{description:i["a"]("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),unfoldOnClickAfterEndOfLine:ce(new p(39,"unfoldOnClickAfterEndOfLine",!1,{description:i["a"]("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ce(new v(40,"fontFamily",se.fontFamily,{description:i["a"]("fontFamily","Controls the font family.")})),fontInfo:ce(new M),fontLigatures2:ce(new I),fontSize:ce(new T),fontWeight:ce(new A),formatOnPaste:ce(new p(45,"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:ce(new p(46,"formatOnType",!1,{description:i["a"]("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ce(new p(47,"glyphMargin",!0,{description:i["a"]("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ce(new N),hideCursorInOverviewRuler:ce(new p(49,"hideCursorInOverviewRuler",!1,{description:i["a"]("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),highlightActiveIndentGuide:ce(new p(50,"highlightActiveIndentGuide",!0,{description:i["a"]("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")})),hover:ce(new P),inDiffEditor:ce(new p(52,"inDiffEditor",!1)),letterSpacing:ce(new m(54,"letterSpacing",se.letterSpacing,e=>m.clamp(e,-5,20),{description:i["a"]("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ce(new R),lineDecorationsWidth:ce(new d(56,"lineDecorationsWidth",10)),lineHeight:ce(new B),lineNumbers:ce(new $),lineNumbersMinChars:ce(new g(59,"lineNumbersMinChars",5,1,300)),linkedEditing:ce(new p(60,"linkedEditing",!1,{description:i["a"]("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols, e.g. HTML tags, are updated while editing.")})),links:ce(new p(61,"links",!0,{description:i["a"]("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ce(new y(62,"matchBrackets","always",["always","near","never"],{description:i["a"]("matchBrackets","Highlight matching brackets.")})),minimap:ce(new W),mouseStyle:ce(new y(64,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ce(new m(65,"mouseWheelScrollSensitivity",1,e=>0===e?1:e,{markdownDescription:i["a"]("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ce(new p(66,"mouseWheelZoom",!1,{markdownDescription:i["a"]("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ce(new p(67,"multiCursorMergeOverlapping",!0,{description:i["a"]("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ce(new _(68,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],V,{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:ce(new y(69,"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:ce(new p(70,"occurrencesHighlight",!0,{description:i["a"]("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:ce(new p(71,"overviewRulerBorder",!0,{description:i["a"]("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ce(new g(72,"overviewRulerLanes",3,0,3)),padding:ce(new z),parameterHints:ce(new H),peekWidgetDefaultFocus:ce(new y(75,"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.")})),definitionLinkOpensInPeek:ce(new p(76,"definitionLinkOpensInPeek",!1,{description:i["a"]("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ce(new q),quickSuggestionsDelay:ce(new g(78,"quickSuggestionsDelay",10,0,1073741824,{description:i["a"]("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ce(new p(79,"readOnly",!1)),renameOnType:ce(new p(80,"renameOnType",!1,{description:i["a"]("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:i["a"]("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:ce(new p(81,"renderControlCharacters",!1,{description:i["a"]("renderControlCharacters","Controls whether the editor should render control characters.")})),renderIndentGuides:ce(new p(82,"renderIndentGuides",!0,{description:i["a"]("renderIndentGuides","Controls whether the editor should render indent guides.")})),renderFinalNewline:ce(new p(83,"renderFinalNewline",!0,{description:i["a"]("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ce(new y(84,"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.")})),renderLineHighlightOnlyWhenFocus:ce(new p(85,"renderLineHighlightOnlyWhenFocus",!1,{description:i["a"]("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:ce(new y(86,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ce(new y(87,"renderWhitespace","selection",["none","boundary","selection","trailing","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."),i["a"]("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:i["a"]("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ce(new g(88,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:ce(new p(89,"roundedSelection",!0,{description:i["a"]("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ce(new G),scrollbar:ce(new Z),scrollBeyondLastColumn:ce(new g(92,"scrollBeyondLastColumn",5,0,1073741824,{description:i["a"]("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ce(new p(93,"scrollBeyondLastLine",!0,{description:i["a"]("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ce(new p(94,"scrollPredominantAxis",!0,{description:i["a"]("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:ce(new p(95,"selectionClipboard",!0,{description:i["a"]("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:r["d"]})),selectionHighlight:ce(new p(96,"selectionHighlight",!0,{description:i["a"]("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ce(new p(97,"selectOnLineNumbers",!0)),showFoldingControls:ce(new y(98,"showFoldingControls","mouseover",["always","mouseover"],{enumDescriptions:[i["a"]("showFoldingControls.always","Always show the folding controls."),i["a"]("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:i["a"]("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ce(new p(99,"showUnused",!0,{description:i["a"]("showUnused","Controls fading out of unused code.")})),showDeprecated:ce(new p(124,"showDeprecated",!0,{description:i["a"]("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:ce(new F),snippetSuggestions:ce(new y(100,"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.")})),smartSelect:ce(new J),smoothScrolling:ce(new p(102,"smoothScrolling",!1,{description:i["a"]("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ce(new g(104,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ce(new Q),inlineSuggest:ce(new X),suggestFontSize:ce(new g(106,"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:ce(new g(107,"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. The minimum value is 8.")})),suggestOnTriggerCharacters:ce(new p(108,"suggestOnTriggerCharacters",!0,{description:i["a"]("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ce(new y(109,"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:ce(new y(110,"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.")})),tabIndex:ce(new g(111,"tabIndex",0,-1,1073741824)),unusualLineTerminators:ce(new y(112,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[i["a"]("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),i["a"]("unusualLineTerminators.off","Unusual line terminators are ignored."),i["a"]("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:i["a"]("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:ce(new p(113,"useShadowDOM",!0)),useTabStops:ce(new p(114,"useTabStops",!0,{description:i["a"]("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordSeparators:ce(new v(115,"wordSeparators",o["b"],{description:i["a"]("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ce(new y(116,"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:ce(new v(117,"wordWrapBreakAfterCharacters"," \t})]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:ce(new v(118,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:ce(new g(119,"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`.")})),wordWrapOverride1:ce(new y(120,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:ce(new y(121,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:ce(new _(122,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],te,{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:ce(new y(123,"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:ce(new L),pixelRatio:ce(new U),tabFocusMode:ce(new ee),layoutInfo:ce(new j),wrappingInfo:ce(new ne)}},fda2:function(e,t,n){},fdb6:function(e,t,n){"use strict";n("39f9")},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var i=n("04f8");e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fdc0:function(e,t,n){"use strict";n.r(t);var i=n("fa12");Object(i["a"])({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return n.e("chunk-2d22c171").then(n.bind(null,"f26e"))}})},fdcc:function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return d}));class i{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const r=new i;function o(e){c(e)||r.onUnexpectedError(e)}function s(e){c(e)||r.onUnexpectedExternalError(e)}function a(e){if(e instanceof Error){let{name:t,message:n}=e;const i=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:i}}return e}const l="Canceled";function c(e){return e instanceof Error&&e.name===l&&e.message===l}function u(){const e=new Error(l);return e.name=e.message,e}function h(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")}function d(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")}},fe34:function(e,t,n){"use strict";e.exports=u;var i=n("9bfc").codes,r=i.ERR_METHOD_NOT_IMPLEMENTED,o=i.ERR_MULTIPLE_CALLBACK,s=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=i.ERR_TRANSFORM_WITH_LENGTH_0,l=n("a493");function c(e,t){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(null===i)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),i(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"===typeof e.transform&&(this._transform=e.transform),"function"===typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",h)}function h(){var e=this;"function"!==typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,n){d(e,t,n)}))}function d(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}n("3fb5")(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new r("_transform()"))},u.prototype._write=function(e,t,n){var i=this._transformState;if(i.writecb=n,i.writechunk=e,i.writeencoding=t,!i.transforming){var r=this._readableState;(i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,(function(e){t(e)}))}},fe3c:function(e,t,n){"use strict";const i=n(7),r=n(0),o=n("34eb")("mqttjs:tls");function s(e,t){t.port=t.port||8883,t.host=t.hostname||t.host||"localhost",0===r.isIP(t.host)&&(t.servername=t.host),t.rejectUnauthorized=!1!==t.rejectUnauthorized,delete t.path,o("port %d host %s rejectUnauthorized %b",t.port,t.host,t.rejectUnauthorized);const n=i.connect(t);function s(i){t.rejectUnauthorized&&e.emit("error",i),n.end()}return n.on("secureConnect",(function(){t.rejectUnauthorized&&!n.authorized?n.emit("error",new Error("TLS not authorized")):n.removeListener("error",s)})),n.on("error",s),n}e.exports=s},fe45:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return g}));var i=n("fdcc");class r{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const o=new r,s=new r,a=new r;var l;function c(e,t){const n=(65535&t)<<16>>>0;return(e|n)>>>0}function u(e,t){if(0===e)return null;const n=(65535&e)>>>0,i=(4294901760&e)>>>16;return new f(0!==i?[h(n,t),h(i,t)]:[h(n,t)])}function h(e,t){const n=!!(2048&e),i=!!(256&e),r=2===t?i:n,o=!!(1024&e),s=!!(512&e),a=2===t?n:i,l=255&e;return new d(r,o,s,a,l)}(function(){function e(e,t,n=t,i=n){o.define(e,t),s.define(e,n),a.define(e,i)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")})(),function(e){function t(e){return o.keyCodeToStr(e)}function n(e){return o.strToKeyCode(e)}function i(e){return s.keyCodeToStr(e)}function r(e){return a.keyCodeToStr(e)}function l(e){return s.strToKeyCode(e)||a.strToKeyCode(e)}e.toString=t,e.fromString=n,e.toUserSettingsUS=i,e.toUserSettingsGeneral=r,e.fromUserSettings=l}(l||(l={}));class d{constructor(e,t,n,i,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyCode=r}equals(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}toChord(){return new f([this])}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}class f{constructor(e){if(0===e.length)throw Object(i["b"])("parts");this.parts=e}}class p{constructor(e,t,n,i,r,o){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyLabel=r,this.keyAriaLabel=o}}class g{}},fe7b:function(e,t,n){},fe86:function(e,t,n){},fed5:function(e,t){t.f=Object.getOwnPropertySymbols},ffac:function(e,t,n){}}]); |