~ K    A     L    I ~
UNAME : Linux web64.extendcp.co.uk 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
SERVER IP : 10.0.187.64 -________- CLIENT IP : 216.73.216.230
PATH :/usr/share/maxscale/gui/js/
UP FILE :
MINI SHELL D ZAB '
Current File : //usr/share/maxscale/gui/js/npm.monaco-editor~f6e880b5.9ad422f5.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["npm.monaco-editor~f6e880b5"],{"0836":function(t,e,i){},"099d":function(t,e,i){"use strict";function s(t){return t<0?0:t>255?255:0|t}function n(t){return t<0?0:t>4294967295?4294967295:0|t}i.d(e,"b",(function(){return s})),i.d(e,"a",(function(){return n}))},"1b1f":function(t,e,i){"use strict";i.d(e,"b",(function(){return u})),i.d(e,"a",(function(){return y}));var s=i("fdcc"),n=i("308f"),o=i("a666"),r=i("30db"),h=i("ef8e"),a=i("3742");const c="$initialize";let l=!1;function u(t){r["l"]&&(l||(l=!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(t.message))}class d{constructor(t,e,i,s){this.vsWorker=t,this.req=e,this.method=i,this.args=s,this.type=0}}class p{constructor(t,e,i,s){this.vsWorker=t,this.seq=e,this.res=i,this.err=s,this.type=1}}class g{constructor(t,e,i,s){this.vsWorker=t,this.req=e,this.eventName=i,this.arg=s,this.type=2}}class m{constructor(t,e,i){this.vsWorker=t,this.req=e,this.event=i,this.type=3}}class b{constructor(t,e){this.vsWorker=t,this.req=e,this.type=4}}class f{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,e){const i=String(++this._lastSentReq);return new Promise((s,n)=>{this._pendingReplies[i]={resolve:s,reject:n},this._send(new d(this._workerId,i,t,e))})}listen(t,e){let i=null;const s=new n["b"]({onFirstListenerAdd:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new g(this._workerId,i,t,e))},onLastListenerRemove:()=>{this._pendingEmitters.delete(i),this._send(new b(this._workerId,i)),i=null}});return s.event}handleMessage(t){t&&t.vsWorker&&(-1!==this._workerId&&t.vsWorker!==this._workerId||this._handleMessage(t))}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq])return void console.warn("Got reply to unknown seq");let e=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let i=t.err;return t.err.$isError&&(i=new Error,i.name=t.err.name,i.message=t.err.message,i.stack=t.err.stack),void e.reject(i)}e.resolve(t.res)}_handleRequestMessage(t){let e=t.req,i=this._handler.handleMessage(t.method,t.args);i.then(t=>{this._send(new p(this._workerId,e,t,void 0))},t=>{t.detail instanceof Error&&(t.detail=Object(s["i"])(t.detail)),this._send(new p(this._workerId,e,void 0,Object(s["i"])(t)))})}_handleSubscribeEventMessage(t){const e=t.req,i=this._handler.handleEvent(t.eventName,t.arg)(t=>{this._send(new m(this._workerId,e,t))});this._pendingEvents.set(e,i)}_handleEventMessage(t){this._pendingEmitters.has(t.req)?this._pendingEmitters.get(t.req).fire(t.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(t){this._pendingEvents.has(t.req)?(this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)):console.warn("Got unsubscribe for unknown req")}_send(t){let e=[];if(0===t.type)for(let i=0;i<t.args.length;i++)t.args[i]instanceof ArrayBuffer&&e.push(t.args[i]);else 1===t.type&&t.res instanceof ArrayBuffer&&e.push(t.res);this._handler.sendMessage(t,e)}}class y extends o["a"]{constructor(t,e,i){super();let s=null;this._worker=this._register(t.create("vs/base/common/worker/simpleWorker",t=>{this._protocol.handleMessage(t)},t=>{s&&s(t)})),this._protocol=new f({sendMessage:(t,e)=>{this._worker.postMessage(t,e)},handleMessage:(t,e)=>{if("function"!==typeof i[t])return Promise.reject(new Error("Missing method "+t+" on main thread host."));try{return Promise.resolve(i[t].apply(i,e))}catch(s){return Promise.reject(s)}},handleEvent:(t,e)=>{if(k(t)){const s=i[t].call(i,e);if("function"!==typeof s)throw new Error(`Missing dynamic event ${t} on main thread host.`);return s}if(v(t)){const e=i[t];if("function"!==typeof e)throw new Error(`Missing event ${t} on main thread host.`);return e}throw new Error("Malformed event name "+t)}}),this._protocol.setWorkerId(this._worker.getId());let n=null;"undefined"!==typeof r["b"].require&&"function"===typeof r["b"].require.getConfig?n=r["b"].require.getConfig():"undefined"!==typeof r["b"].requirejs&&(n=r["b"].requirejs.s.contexts._.config);const o=h["e"](i);this._onModuleLoaded=this._protocol.sendMessage(c,[this._worker.getId(),JSON.parse(JSON.stringify(n)),e,o]);const a=(t,e)=>this._request(t,e),l=(t,e)=>this._protocol.listen(t,e);this._lazyProxy=new Promise((t,i)=>{s=i,this._onModuleLoaded.then(e=>{t(_(e,a,l))},t=>{i(t),this._onError("Worker failed to load "+e,t)})})}getProxyObject(){return this._lazyProxy}_request(t,e){return new Promise((i,s)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(t,e).then(i,s)},s)})}_onError(t,e){console.error(t),console.info(e)}}function v(t){return"o"===t[0]&&"n"===t[1]&&a["H"](t.charCodeAt(2))}function k(t){return/^onDynamic/.test(t)&&a["H"](t.charCodeAt(9))}function _(t,e,i){const s=t=>function(){const i=Array.prototype.slice.call(arguments,0);return e(t,i)},n=t=>function(e){return i(t,e)};let o={};for(const r of t)k(r)?o[r]=n(r):v(r)?o[r]=i(r,void 0):o[r]=s(r);return o}},"6d8e":function(t,e,i){"use strict";i.d(e,"a",(function(){return g})),i.d(e,"b",(function(){return k}));var s=i("32b8"),n=i("30db");const o=/^\w[\w\d+.-]*$/,r=/^\//,h=/^\/\//;function a(t,e){if(!t.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${t.authority}", path: "${t.path}", query: "${t.query}", fragment: "${t.fragment}"}`);if(t.scheme&&!o.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path)if(t.authority){if(!r.test(t.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(h.test(t.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(t,e){return t||e?t:"file"}function l(t,e){switch(t){case"https":case"http":case"file":e?e[0]!==d&&(e=d+e):e=d;break}return e}const u="",d="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class g{constructor(t,e,i,s,n,o=!1){"object"===typeof t?(this.scheme=t.scheme||u,this.authority=t.authority||u,this.path=t.path||u,this.query=t.query||u,this.fragment=t.fragment||u):(this.scheme=c(t,o),this.authority=e||u,this.path=l(this.scheme,i||u),this.query=s||u,this.fragment=n||u,a(this,o))}static isUri(t){return t instanceof g||!!t&&("string"===typeof t.authority&&"string"===typeof t.fragment&&"string"===typeof t.path&&"string"===typeof t.query&&"string"===typeof t.scheme&&"string"===typeof t.fsPath&&"function"===typeof t.with&&"function"===typeof t.toString)}get fsPath(){return k(this,!1)}with(t){if(!t)return this;let{scheme:e,authority:i,path:s,query:n,fragment:o}=t;return void 0===e?e=this.scheme:null===e&&(e=u),void 0===i?i=this.authority:null===i&&(i=u),void 0===s?s=this.path:null===s&&(s=u),void 0===n?n=this.query:null===n&&(n=u),void 0===o?o=this.fragment:null===o&&(o=u),e===this.scheme&&i===this.authority&&s===this.path&&n===this.query&&o===this.fragment?this:new b(e,i,s,n,o)}static parse(t,e=!1){const i=p.exec(t);return i?new b(i[2]||u,D(i[4]||u),D(i[5]||u),D(i[7]||u),D(i[9]||u),e):new b(u,u,u,u,u)}static file(t){let e=u;if(n["n"]&&(t=t.replace(/\\/g,d)),t[0]===d&&t[1]===d){const i=t.indexOf(d,2);-1===i?(e=t.substring(2),t=d):(e=t.substring(2,i),t=t.substring(i)||d)}return new b("file",e,t,u,u)}static from(t){const e=new b(t.scheme,t.authority,t.path,t.query,t.fragment);return a(e,!0),e}static joinPath(t,...e){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return i=n["n"]&&"file"===t.scheme?g.file(s["i"].join(k(t,!0),...e)).path:s["e"].join(t.path,...e),t.with({path:i})}toString(t=!1){return _(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof g)return t;{const e=new b(t);return e._formatted=t.external,e._fsPath=t._sep===m?t.fsPath:null,e}}return t}}const m=n["n"]?1:void 0;class b extends g{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=k(this,!1)),this._fsPath}toString(t=!1){return t?_(this,!0):(this._formatted||(this._formatted=_(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=m),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const f={[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 y(t,e){let i=void 0,s=-1;for(let n=0;n<t.length;n++){const o=t.charCodeAt(n);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||e&&47===o)-1!==s&&(i+=encodeURIComponent(t.substring(s,n)),s=-1),void 0!==i&&(i+=t.charAt(n));else{void 0===i&&(i=t.substr(0,n));const e=f[o];void 0!==e?(-1!==s&&(i+=encodeURIComponent(t.substring(s,n)),s=-1),i+=e):-1===s&&(s=n)}}return-1!==s&&(i+=encodeURIComponent(t.substring(s))),void 0!==i?i:t}function v(t){let e=void 0;for(let i=0;i<t.length;i++){const s=t.charCodeAt(i);35===s||63===s?(void 0===e&&(e=t.substr(0,i)),e+=f[s]):void 0!==e&&(e+=t[i])}return void 0!==e?e:t}function k(t,e){let i;return i=t.authority&&t.path.length>1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?e?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,n["n"]&&(i=i.replace(/\//g,"\\")),i}function _(t,e){const i=e?v:y;let s="",{scheme:n,authority:o,path:r,query:h,fragment:a}=t;if(n&&(s+=n,s+=":"),(o||"file"===n)&&(s+=d,s+=d),o){let t=o.indexOf("@");if(-1!==t){const e=o.substr(0,t);o=o.substr(t+1),t=e.indexOf(":"),-1===t?s+=i(e,!1):(s+=i(e.substr(0,t),!1),s+=":",s+=i(e.substr(t+1),!1)),s+="@"}o=o.toLowerCase(),t=o.indexOf(":"),-1===t?s+=i(o,!1):(s+=i(o.substr(0,t),!1),s+=o.substr(t))}if(r){if(r.length>=3&&47===r.charCodeAt(0)&&58===r.charCodeAt(2)){const t=r.charCodeAt(1);t>=65&&t<=90&&(r=`/${String.fromCharCode(t+32)}:${r.substr(3)}`)}else if(r.length>=2&&58===r.charCodeAt(1)){const t=r.charCodeAt(0);t>=65&&t<=90&&(r=`${String.fromCharCode(t+32)}:${r.substr(2)}`)}s+=i(r,!0)}return h&&(s+="?",s+=i(h,!1)),a&&(s+="#",s+=e?a:y(a,!1)),s}function C(t){try{return decodeURIComponent(t)}catch(e){return t.length>3?t.substr(0,3)+C(t.substr(3)):t}}const w=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function D(t){return t.match(w)?t.replace(w,t=>C(t)):t}},9122:function(t,e,i){"use strict";i.d(e,"b",(function(){return c})),i.d(e,"a",(function(){return l}));var s,n=i("5fe7"),o=i("308f"),r=i("a666"),h=i("ef8e"),a=function(t,e,i,s){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function r(t){try{a(s.next(t))}catch(e){o(e)}}function h(t){try{a(s["throw"](t))}catch(e){o(e)}}function a(t){t.done?i(t.value):n(t.value).then(r,h)}a((s=s.apply(t,e||[])).next())}))};(function(t){t[t["None"]=0]="None",t[t["Initialized"]=1]="Initialized",t[t["Closed"]=2]="Closed"})(s||(s={}));class c extends r["a"]{constructor(t,e=Object.create(null)){super(),this.database=t,this.options=e,this._onDidChangeStorage=this._register(new o["b"]),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=s.None,this.cache=new Map,this.flushDelayer=new n["i"](c.DEFAULT_FLUSH_DELAY),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal(t=>this.onDidChangeItemsExternal(t)))}onDidChangeItemsExternal(t){var e,i;null===(e=t.changed)||void 0===e||e.forEach((t,e)=>this.accept(e,t)),null===(i=t.deleted)||void 0===i||i.forEach(t=>this.accept(t,void 0))}accept(t,e){if(this.state===s.Closed)return;let i=!1;if(Object(h["o"])(e))i=this.cache.delete(t);else{const s=this.cache.get(t);s!==e&&(this.cache.set(t,e),i=!0)}i&&this._onDidChangeStorage.fire(t)}get(t,e){const i=this.cache.get(t);return Object(h["o"])(i)?e:i}getBoolean(t,e){const i=this.get(t);return Object(h["o"])(i)?e:"true"===i}getNumber(t,e){const i=this.get(t);return Object(h["o"])(i)?e:parseInt(i,10)}set(t,e){return a(this,void 0,void 0,(function*(){if(this.state===s.Closed)return;if(Object(h["o"])(e))return this.delete(t);const i=String(e),n=this.cache.get(t);return n!==i?(this.cache.set(t,i),this.pendingInserts.set(t,i),this.pendingDeletes.delete(t),this._onDidChangeStorage.fire(t),this.doFlush()):void 0}))}delete(t){return a(this,void 0,void 0,(function*(){if(this.state===s.Closed)return;const e=this.cache.delete(t);return e?(this.pendingDeletes.has(t)||this.pendingDeletes.add(t),this.pendingInserts.delete(t),this._onDidChangeStorage.fire(t),this.doFlush()):void 0}))}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}flushPending(){return a(this,void 0,void 0,(function*(){if(!this.hasPending)return;const t={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(t).finally(()=>{var t;if(!this.hasPending)while(this.whenFlushedCallbacks.length)null===(t=this.whenFlushedCallbacks.pop())||void 0===t||t()})}))}doFlush(t){return a(this,void 0,void 0,(function*(){return this.flushDelayer.trigger(()=>this.flushPending(),t)}))}dispose(){this.flushDelayer.dispose(),super.dispose()}}c.DEFAULT_FLUSH_DELAY=100;class l{constructor(){this.onDidChangeItemsExternal=o["c"].None,this.items=new Map}updateItems(t){return a(this,void 0,void 0,(function*(){t.insert&&t.insert.forEach((t,e)=>this.items.set(e,t)),t.delete&&t.delete.forEach(t=>this.items.delete(t))}))}}},c3f2:function(t,e,i){"use strict";i.d(e,"a",(function(){return J}));var s=i("11f7"),n=i("b835"),o=i("5aa5"),r=i("faf1"),h=i("3bfb"),a=i("7ddc"),c=i("3be3"),l=i("f070"),u=i("e8e3"),d=i("5fe7"),p=i("2504"),g=i("561a"),m=i("308f"),b=i("a666"),f=i("30db"),y=i("4b76"),v=i("ef8e"),k=i("9c3e");i("0836");const _={},C=new k["a"]("quick-input-button-icon-");function w(t){if(!t)return;let e;const i=t.dark.toString();return _[i]?e=_[i]:(e=C.nextId(),s["v"]("."+e,"background-image: "+s["s"](t.light||t.dark)),s["v"](`.vs-dark .${e}, .hc-black .${e}`,"background-image: "+s["s"](t.dark)),_[i]=e),e}var D=i("cdd6"),E=i("dff7"),x=i("5d28"),I=i("d3ef");const B=s["a"];class S extends b["a"]{constructor(t){super(),this.parent=t,this.onKeyDown=t=>s["i"](this.inputBox.inputElement,s["d"].KEY_DOWN,e=>{t(new n["a"](e))}),this.onMouseDown=t=>s["i"](this.inputBox.inputElement,s["d"].MOUSE_DOWN,e=>{t(new x["a"](e))}),this.onDidChange=t=>this.inputBox.onDidChange(t),this.container=s["q"](this.parent,B(".quick-input-box")),this.inputBox=this._register(new I["b"](this.container,void 0))}get value(){return this.inputBox.value}set value(t){this.inputBox.value=t}select(t=null){this.inputBox.select(t)}isSelectionAtEnd(){return this.inputBox.isSelectionAtEnd()}get placeholder(){return this.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(t){this.inputBox.setPlaceHolder(t)}get ariaLabel(){return this.inputBox.getAriaLabel()}set ariaLabel(t){this.inputBox.setAriaLabel(t)}get password(){return"password"===this.inputBox.inputElement.type}set password(t){this.inputBox.inputElement.type=t?"password":"text"}setAttribute(t,e){this.inputBox.inputElement.setAttribute(t,e)}removeAttribute(t){this.inputBox.inputElement.removeAttribute(t)}showDecoration(t){t===y["a"].Ignore?this.inputBox.hideMessage():this.inputBox.showMessage({type:t===y["a"].Info?1:t===y["a"].Warning?2:3,content:""})}stylesForType(t){return this.inputBox.stylesForType(t===y["a"].Info?1:t===y["a"].Warning?2:3)}setFocus(){this.inputBox.focus()}layout(){this.inputBox.layout()}style(t){this.inputBox.style(t)}}var L=i("c4e3"),A=i("8daa"),O=i("6dcb"),q=i("6424"),M=i("1097"),F=function(t,e,i,s){var n,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var h=t.length-1;h>=0;h--)(n=t[h])&&(r=(o<3?n(r):o>3?n(e,i,r):n(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r},T=function(t,e,i,s){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function r(t){try{a(s.next(t))}catch(e){o(e)}}function h(t){try{a(s["throw"](t))}catch(e){o(e)}}function a(t){t.done?i(t.value):n(t.value).then(r,h)}a((s=s.apply(t,e||[])).next())}))};const P=s["a"];class j{constructor(t){this.hidden=!1,this._onChecked=new m["b"],this.onChecked=this._onChecked.event,Object.assign(this,t)}get checked(){return!!this._checked}set checked(t){t!==this._checked&&(this._checked=t,this._onChecked.fire(t))}dispose(){this._onChecked.dispose()}}class U{get templateId(){return U.ID}renderTemplate(t){const e=Object.create(null);e.toDisposeElement=[],e.toDisposeTemplate=[],e.entry=s["q"](t,P(".quick-input-list-entry"));const i=s["q"](e.entry,P("label.quick-input-list-label"));e.toDisposeTemplate.push(s["o"](i,s["d"].CLICK,t=>{e.checkbox.offsetParent||t.preventDefault()})),e.checkbox=s["q"](i,P("input.quick-input-list-checkbox")),e.checkbox.type="checkbox",e.toDisposeTemplate.push(s["o"](e.checkbox,s["d"].CHANGE,t=>{e.element.checked=e.checkbox.checked}));const n=s["q"](i,P(".quick-input-list-rows")),r=s["q"](n,P(".quick-input-list-row")),h=s["q"](n,P(".quick-input-list-row"));e.label=new L["a"](r,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0});const a=s["q"](r,P(".quick-input-list-entry-keybinding"));e.keybinding=new A["a"](a,f["a"]);const c=s["q"](h,P(".quick-input-list-label-meta"));return e.detail=new L["a"](c,{supportHighlights:!0,supportIcons:!0}),e.separator=s["q"](e.entry,P(".quick-input-list-separator")),e.actionBar=new o["a"](e.entry),e.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),e.toDisposeTemplate.push(e.actionBar),e}renderElement(t,e,i){i.toDisposeElement=Object(b["g"])(i.toDisposeElement),i.element=t,i.checkbox.checked=t.checked,i.toDisposeElement.push(t.onChecked(t=>i.checkbox.checked=t));const{labelHighlights:s,descriptionHighlights:n,detailHighlights:o}=t,r=Object.create(null);r.matches=s||[],r.descriptionTitle=t.saneDescription,r.descriptionMatches=n||[],r.extraClasses=t.item.iconClasses,r.italic=t.item.italic,r.strikethrough=t.item.strikethrough,i.label.setLabel(t.saneLabel,t.saneDescription,r),i.keybinding.set(t.item.keybinding),t.saneDetail&&i.detail.setLabel(t.saneDetail,void 0,{matches:o,title:t.saneDetail}),t.separator&&t.separator.label?(i.separator.textContent=t.separator.label,i.separator.style.display=""):i.separator.style.display="none",i.entry.classList.toggle("quick-input-list-separator-border",!!t.separator),i.actionBar.clear();const h=t.item.buttons;h&&h.length?(i.actionBar.push(h.map((e,i)=>{let s=e.iconClass||(e.iconPath?w(e.iconPath):void 0);e.alwaysVisible&&(s=s?s+" always-visible":"always-visible");const n=new l["a"]("id-"+i,"",s,!0,()=>T(this,void 0,void 0,(function*(){t.fireButtonTriggered({button:e,item:t.item})})));return n.tooltip=e.tooltip||"",n}),{icon:!0,label:!1}),i.entry.classList.add("has-actions")):i.entry.classList.remove("has-actions")}disposeElement(t,e,i){i.toDisposeElement=Object(b["g"])(i.toDisposeElement)}disposeTemplate(t){t.toDisposeElement=Object(b["g"])(t.toDisposeElement),t.toDisposeTemplate=Object(b["g"])(t.toDisposeTemplate)}}U.ID="listelement";class N{getHeight(t){return t.saneDetail?44:22}getTemplateId(t){return U.ID}}var K;(function(t){t[t["First"]=1]="First",t[t["Second"]=2]="Second",t[t["Last"]=3]="Last",t[t["Next"]=4]="Next",t[t["Previous"]=5]="Previous",t[t["NextPage"]=6]="NextPage",t[t["PreviousPage"]=7]="PreviousPage"})(K||(K={}));class H{constructor(t,e,i){this.parent=t,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 m["b"],this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new m["b"],this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new m["b"],this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new m["b"],this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new m["b"],this.onButtonTriggered=this._onButtonTriggered.event,this._onKeyDown=new m["b"],this.onKeyDown=this._onKeyDown.event,this._onLeave=new m["b"],this.onLeave=this._onLeave.event,this._fireCheckedEvents=!0,this.elementDisposables=[],this.disposables=[],this.id=e,this.container=s["q"](this.parent,P(".quick-input-list"));const o=new N,r=new R;this.list=i.createList("QuickInput",this.container,o,[new U],{identityProvider:{getId:t=>t.saneLabel},setRowLineHeight:!1,multipleSelectionSupport:!1,horizontalScrolling:!1,accessibilityProvider:r}),this.list.getHTMLElement().id=e,this.disposables.push(this.list),this.disposables.push(this.list.onKeyDown(t=>{const e=new n["a"](t);switch(e.keyCode){case 10:this.toggleCheckbox();break;case 31:(f["i"]?t.metaKey:t.ctrlKey)&&this.list.setFocus(Object(u["w"])(this.list.length));break;case 16:{const t=this.list.getFocus();1===t.length&&0===t[0]&&this._onLeave.fire();break}case 18:{const t=this.list.getFocus();1===t.length&&t[0]===this.list.length-1&&this._onLeave.fire();break}}this._onKeyDown.fire(e)})),this.disposables.push(this.list.onMouseDown(t=>{2!==t.browserEvent.button&&t.browserEvent.preventDefault()})),this.disposables.push(s["i"](this.container,s["d"].CLICK,t=>{(t.x||t.y)&&this._onLeave.fire()})),this.disposables.push(this.list.onMouseMiddleClick(t=>{this._onLeave.fire()})),this.disposables.push(this.list.onContextMenu(t=>{"number"===typeof t.index&&(t.browserEvent.preventDefault(),this.list.setSelection([t.index]))})),this.disposables.push(this._onChangedAllVisibleChecked,this._onChangedCheckedCount,this._onChangedVisibleCount,this._onChangedCheckedElements,this._onButtonTriggered,this._onLeave,this._onKeyDown)}get onDidChangeFocus(){return m["c"].map(this.list.onDidChangeFocus,t=>t.elements.map(t=>t.item))}get onDidChangeSelection(){return m["c"].map(this.list.onDidChangeSelection,t=>({items:t.elements.map(t=>t.item),event:t.browserEvent}))}get scrollTop(){return this.list.scrollTop}set scrollTop(t){this.list.scrollTop=t}getAllVisibleChecked(){return this.allVisibleChecked(this.elements,!1)}allVisibleChecked(t,e=!0){for(let i=0,s=t.length;i<s;i++){const s=t[i];if(!s.hidden){if(!s.checked)return!1;e=!0}}return e}getCheckedCount(){let t=0;const e=this.elements;for(let i=0,s=e.length;i<s;i++)e[i].checked&&t++;return t}getVisibleCount(){let t=0;const e=this.elements;for(let i=0,s=e.length;i<s;i++)e[i].hidden||t++;return t}setAllVisibleChecked(t){try{this._fireCheckedEvents=!1,this.elements.forEach(e=>{e.hidden||(e.checked=t)})}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}setElements(t){this.elementDisposables=Object(b["g"])(this.elementDisposables);const e=t=>this.fireButtonTriggered(t);this.inputElements=t,this.elements=t.reduce((i,s,n)=>{var o,r,h;if("separator"!==s.type){const a=n&&t[n-1],c=s.label&&s.label.replace(/\r?\n/g," "),l=s.meta&&s.meta.replace(/\r?\n/g," "),u=s.description&&s.description.replace(/\r?\n/g," "),d=s.detail&&s.detail.replace(/\r?\n/g," "),p=s.ariaLabel||[c,u,d].map(t=>Object(g["c"])(t)).filter(t=>!!t).join(", "),m=this.parent.classList.contains("show-checkboxes");i.push(new j({hasCheckbox:m,index:n,item:s,saneLabel:c,saneMeta:l,saneAriaLabel:p,saneDescription:u,saneDetail:d,labelHighlights:null===(o=s.highlights)||void 0===o?void 0:o.label,descriptionHighlights:null===(r=s.highlights)||void 0===r?void 0:r.description,detailHighlights:null===(h=s.highlights)||void 0===h?void 0:h.detail,checked:!1,separator:a&&"separator"===a.type?a:void 0,fireButtonTriggered:e}))}return i},[]),this.elementDisposables.push(...this.elements),this.elementDisposables.push(...this.elements.map(t=>t.onChecked(()=>this.fireCheckedEvents()))),this.elementsToIndexes=this.elements.reduce((t,e,i)=>(t.set(e.item,i),t),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(t=>t.item)}setFocusedElements(t){if(this.list.setFocus(t.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t))),t.length>0){const t=this.list.getFocus()[0];"number"===typeof t&&this.list.reveal(t)}}getActiveDescendant(){return this.list.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(t){this.list.setSelection(t.filter(t=>this.elementsToIndexes.has(t)).map(t=>this.elementsToIndexes.get(t)))}getCheckedElements(){return this.elements.filter(t=>t.checked).map(t=>t.item)}setCheckedElements(t){try{this._fireCheckedEvents=!1;const e=new Set;for(const i of t)e.add(i);for(const t of this.elements)t.checked=e.has(t.item)}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}set enabled(t){this.list.getHTMLElement().style.pointerEvents=t?"":"none"}focus(t){if(!this.list.length)return;switch(t===K.Next&&this.list.getFocus()[0]===this.list.length-1&&(t=K.First),t===K.Previous&&0===this.list.getFocus()[0]&&(t=K.Last),t===K.Second&&this.list.length<2&&(t=K.First),t){case K.First:this.list.focusFirst();break;case K.Second:this.list.focusNth(1);break;case K.Last:this.list.focusLast();break;case K.Next:this.list.focusNext();break;case K.Previous:this.list.focusPrevious();break;case K.NextPage:this.list.focusNextPage();break;case K.PreviousPage:this.list.focusPreviousPage();break}const e=this.list.getFocus()[0];"number"===typeof e&&this.list.reveal(e)}clearFocus(){this.list.setFocus([])}domFocus(){this.list.domFocus()}layout(t){this.list.getHTMLElement().style.maxHeight=t?`calc(${44*Math.floor(t/44)}px)`:"",this.list.layout()}filter(t){if(!(this.sortByLabel||this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))return this.list.layout(),!1;if(t=t.trim(),t&&(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail)){let e;this.elements.forEach(i=>{const s=this.matchOnLabel?Object(v["q"])(Object(M["c"])(t,Object(M["d"])(i.saneLabel))):void 0,n=this.matchOnDescription?Object(v["q"])(Object(M["c"])(t,Object(M["d"])(i.saneDescription||""))):void 0,o=this.matchOnDetail?Object(v["q"])(Object(M["c"])(t,Object(M["d"])(i.saneDetail||""))):void 0,r=this.matchOnMeta?Object(v["q"])(Object(M["c"])(t,Object(M["d"])(i.saneMeta||""))):void 0;if(s||n||o||r?(i.labelHighlights=s,i.descriptionHighlights=n,i.detailHighlights=o,i.hidden=!1):(i.labelHighlights=void 0,i.descriptionHighlights=void 0,i.detailHighlights=void 0,i.hidden=!i.item.alwaysShow),i.separator=void 0,!this.sortByLabel){const t=i.index&&this.inputElements[i.index-1];e=t&&"separator"===t.type?t:e,e&&!i.hidden&&(i.separator=e,e=void 0)}})}else this.elements.forEach(t=>{t.labelHighlights=void 0,t.descriptionHighlights=void 0,t.detailHighlights=void 0,t.hidden=!1;const e=t.index&&this.inputElements[t.index-1];t.separator=e&&"separator"===e.type?e:void 0});const e=this.elements.filter(t=>!t.hidden);if(this.sortByLabel&&t){const i=t.toLowerCase();e.sort((t,e)=>V(t,e,i))}return this.elementsToIndexes=e.reduce((t,e,i)=>(t.set(e.item,i),t),new Map),this.list.splice(0,this.list.length,e),this.list.setFocus([]),this.list.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(e.length),!0}toggleCheckbox(){try{this._fireCheckedEvents=!1;const t=this.list.getFocusedElements(),e=this.allVisibleChecked(t);for(const i of t)i.checked=!e}finally{this._fireCheckedEvents=!0,this.fireCheckedEvents()}}display(t){this.container.style.display=t?"":"none"}isDisplayed(){return"none"!==this.container.style.display}dispose(){this.elementDisposables=Object(b["g"])(this.elementDisposables),this.disposables=Object(b["g"])(this.disposables)}fireCheckedEvents(){this._fireCheckedEvents&&(this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedCheckedCount.fire(this.getCheckedCount()),this._onChangedCheckedElements.fire(this.getCheckedElements()))}fireButtonTriggered(t){this._onButtonTriggered.fire(t)}style(t){this.list.style(t)}}function V(t,e,i){const s=t.labelHighlights||[],n=e.labelHighlights||[];return s.length&&!n.length?-1:!s.length&&n.length?1:0===s.length&&0===n.length?0:Object(O["a"])(t.saneLabel,e.saneLabel,i)}F([q["a"]],H.prototype,"onDidChangeFocus",null),F([q["a"]],H.prototype,"onDidChangeSelection",null);class R{getWidgetAriaLabel(){return Object(E["a"])("quickInput","Quick Input")}getAriaLabel(t){return t.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(t){return t.hasCheckbox?"checkbox":"option"}isChecked(t){if(t.hasCheckbox)return{value:t.checked,onDidChange:t.onChecked}}}var $=function(t,e,i,s){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function r(t){try{a(s.next(t))}catch(e){o(e)}}function h(t){try{a(s["throw"](t))}catch(e){o(e)}}function a(t){t.done?i(t.value):n(t.value).then(r,h)}a((s=s.apply(t,e||[])).next())}))};const W=s["a"],z={iconClass:g["b"].quickInputBack.classNames,tooltip:Object(E["a"])("quickInput.back","Back"),handle:-1};class G extends b["a"]{constructor(t){super(),this.ui=t,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.noValidationMessage=G.noPromptMessage,this._severity=y["a"].Ignore,this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new m["b"]),this.onDidHideEmitter=this._register(new m["b"]),this.onDisposeEmitter=this._register(new m["b"]),this.visibleDisposables=this._register(new b["b"]),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(t){this._title=t,this.update()}get description(){return this._description}set description(t){this._description=t,this.update()}get step(){return this._steps}set step(t){this._steps=t,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(t){this._totalSteps=t,this.update()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this.update()}get contextKey(){return this._contextKey}set contextKey(t){this._contextKey=t,this.update()}get busy(){return this._busy}set busy(t){this._busy=t,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(t){const e=this._ignoreFocusOut!==t&&!f["f"];this._ignoreFocusOut=t&&!f["f"],e&&this.update()}get buttons(){return this._buttons}set buttons(t){this._buttons=t,this.buttonsUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(t){this._validationMessage=t,this.update()}get severity(){return this._severity}set severity(t){this._severity=t,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(t=>{-1!==this.buttons.indexOf(t)&&this.onDidTriggerButtonEmitter.fire(t)})),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(t=D["c"].Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:t})}update(){if(!this.visible)return;const t=this.getTitle();t&&this.ui.title.textContent!==t?this.ui.title.textContent=t:t||"&nbsp;"===this.ui.title.innerHTML||(this.ui.title.innerText=" ");const e=this.getDescription();if(this.ui.description1.textContent!==e&&(this.ui.description1.textContent=e),this.ui.description2.textContent!==e&&(this.ui.description2.textContent=e),this.busy&&!this.busyDelay&&(this.busyDelay=new d["j"],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 t=this.buttons.filter(t=>t===z);this.ui.leftActionBar.push(t.map((t,e)=>{const i=new l["a"]("id-"+e,"",t.iconClass||w(t.iconPath),!0,()=>$(this,void 0,void 0,(function*(){this.onDidTriggerButtonEmitter.fire(t)})));return i.tooltip=t.tooltip||"",i}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();const e=this.buttons.filter(t=>t!==z);this.ui.rightActionBar.push(e.map((t,e)=>{const i=new l["a"]("id-"+e,"",t.iconClass||w(t.iconPath),!0,()=>$(this,void 0,void 0,(function*(){this.onDidTriggerButtonEmitter.fire(t)})));return i.tooltip=t.tooltip||"",i}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,s["S"](this.ui.message,...Object(a["a"])(i))),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(E["a"])("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(t){if(this.ui.inputBox.showDecoration(t),t!==y["a"].Ignore){const e=this.ui.inputBox.stylesForType(t);this.ui.message.style.color=e.foreground?""+e.foreground:"",this.ui.message.style.backgroundColor=e.background?""+e.background:"",this.ui.message.style.border=e.border?"1px solid "+e.border:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}G.noPromptMessage=Object(E["a"])("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class Y extends G{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new m["b"]),this.onWillAcceptEmitter=this._register(new m["b"]),this.onDidAcceptEmitter=this._register(new m["b"]),this.onDidCustomEmitter=this._register(new m["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._keepScrollPosition=!1,this._itemActivation=this.ui.isScreenReaderOptimized()?D["a"].NONE:D["a"].FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new m["b"]),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new m["b"]),this.onDidTriggerItemButtonEmitter=this._register(new m["b"]),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=t=>t,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(t){this._quickNavigate=t,this.update()}get value(){return this._value}set value(t){this.doSetValue(t)}doSetValue(t,e){if(this._value!==t){if(this._value=t,e||this.update(),this.visible){const t=this.ui.list.filter(this.filterValue(this._value));t&&this.trySelectFirst()}this.onDidChangeValueEmitter.fire(this._value)}}set ariaLabel(t){this._ariaLabel=t,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(t){this.ui.list.scrollTop=t}set items(t){this._items=t,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(t){this._canSelectMany=t,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(t){this._canAcceptInBackground=t}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(t){this._matchOnDescription=t,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(t){this._matchOnDetail=t,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(t){this._matchOnLabel=t,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(t){this._sortByLabel=t,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(t){this._autoFocusOnList=t,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(t){this._keepScrollPosition=t}get itemActivation(){return this._itemActivation}set itemActivation(t){this._itemActivation=t}get activeItems(){return this._activeItems}set activeItems(t){this._activeItems=t,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(t){this._selectedItems=t,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?D["b"]:this.ui.keyMods}set valueSelection(t){this._valueSelection=t,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(t){this._customButton=t,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(t){this._customButtonLabel=t,this.update()}get customHover(){return this._customButtonHover}set customHover(t){this._customButtonHover=t,this.update()}get ok(){return this._ok}set ok(t){this._ok=t,this.update()}get hideInput(){return!!this._hideInput}set hideInput(t){this._hideInput=t,this.update()}trySelectFirst(){this.autoFocusOnList&&(this.canSelectMany||this.ui.list.focus(K.First))}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(t=>{this.doSetValue(t,!0)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(t=>{this.autoFocusOnList||this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(t=>{switch(t.keyCode){case 18:this.ui.list.focus(K.Next),this.canSelectMany&&this.ui.list.domFocus(),s["c"].stop(t,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(K.Previous):this.ui.list.focus(K.Last),this.canSelectMany&&this.ui.list.domFocus(),s["c"].stop(t,!0);break;case 12:this.ui.list.focus(K.NextPage),this.canSelectMany&&this.ui.list.domFocus(),s["c"].stop(t,!0);break;case 11:this.ui.list.focus(K.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),s["c"].stop(t,!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:!t.ctrlKey&&!t.metaKey||t.shiftKey||t.altKey||(this.ui.list.focus(K.First),s["c"].stop(t,!0));break;case 13:!t.ctrlKey&&!t.metaKey||t.shiftKey||t.altKey||(this.ui.list.focus(K.Last),s["c"].stop(t,!0));break}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):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(t=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&Object(u["h"])(t,this._activeItems,(t,e)=>t===e)||(this._activeItems=t,this.onDidChangeActiveEmitter.fire(t))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:t,event:e})=>{this.canSelectMany?t.length&&this.ui.list.setSelectedElements([]):this.selectedItemsToConfirm!==this._selectedItems&&Object(u["h"])(t,this._selectedItems,(t,e)=>t===e)||(this._selectedItems=t,this.onDidChangeSelectionEmitter.fire(t),t.length&&this.handleAccept(e instanceof MouseEvent&&1===e.button))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(t=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&Object(u["h"])(t,this._selectedItems,(t,e)=>t===e)||(this._selectedItems=t,this.onDidChangeSelectionEmitter.fire(t)))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(t=>this.onDidTriggerItemButtonEmitter.fire(t))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(t){let e=!1;this.onWillAcceptEmitter.fire({veto:()=>e=!0}),e||this.onDidAcceptEmitter.fire({inBackground:t})}registerQuickNavigation(){return s["i"](this.ui.container,s["d"].KEY_UP,t=>{if(this.canSelectMany||!this._quickNavigate)return;const e=new n["a"](t),i=e.keyCode,s=this._quickNavigate.keybindings,o=s.some(t=>{const[s,n]=t.getParts();return!n&&(s.shiftKey&&4===i?!(e.ctrlKey||e.altKey||e.metaKey):!(!s.altKey||6!==i)||(!(!s.ctrlKey||5!==i)||!(!s.metaKey||57!==i)))});o&&(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 t=this.keepScrollPosition?this.scrollTop:0,e=!!this._hideInput&&this._items.length>0;this.ui.container.classList.toggle("hidden-input",e&&!this.description);const i={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(i),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 s=this.ariaLabel||this.placeholder||Y.DEFAULT_ARIA_LABEL;if(this.ui.inputBox.ariaLabel!==s&&(this.ui.inputBox.ariaLabel=s),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 D["a"].NONE:this._itemActivation=D["a"].FIRST;break;case D["a"].SECOND:this.ui.list.focus(K.Second),this._itemActivation=D["a"].FIRST;break;case D["a"].LAST:this.ui.list.focus(K.Last),this._itemActivation=D["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),i.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(K.First)),this.keepScrollPosition&&(this.scrollTop=t)}}Y.DEFAULT_ARIA_LABEL=Object(E["a"])("quickInputBox.ariaLabel","Type to narrow down results.");class J extends b["a"]{constructor(t){super(),this.options=t,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new m["b"]),this.onDidCustomEmitter=this._register(new m["b"]),this.onDidTriggerButtonEmitter=this._register(new m["b"]),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new m["b"]),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new m["b"]),this.onHide=this.onHideEmitter.event,this.idPrefix=t.idPrefix,this.parentElement=t.container,this.styles=t.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){const t=t=>{this.keyMods.ctrlCmd=t.ctrlKey||t.metaKey,this.keyMods.alt=t.altKey};this._register(s["i"](window,s["d"].KEY_DOWN,t,!0)),this._register(s["i"](window,s["d"].KEY_UP,t,!0)),this._register(s["i"](window,s["d"].MOUSE_DOWN,t,!0))}getUI(){if(this.ui)return this.ui;const t=s["q"](this.parentElement,W(".quick-input-widget.show-file-icons"));t.tabIndex=-1,t.style.display="none";const e=s["x"](t),i=s["q"](t,W(".quick-input-titlebar")),a=this._register(new o["a"](i));a.domNode.classList.add("quick-input-left-action-bar");const l=s["q"](i,W(".quick-input-title")),u=this._register(new o["a"](i));u.domNode.classList.add("quick-input-right-action-bar");const d=s["q"](t,W(".quick-input-description")),p=s["q"](t,W(".quick-input-header")),g=s["q"](p,W("input.quick-input-check-all"));g.type="checkbox",this._register(s["o"](g,s["d"].CHANGE,t=>{const e=g.checked;A.setAllVisibleChecked(e)})),this._register(s["i"](g,s["d"].CLICK,t=>{(t.x||t.y)&&y.setFocus()}));const m=s["q"](p,W(".quick-input-description")),b=s["q"](p,W(".quick-input-and-message")),f=s["q"](b,W(".quick-input-filter")),y=this._register(new S(f));y.setAttribute("aria-describedby",this.idPrefix+"message");const v=s["q"](f,W(".quick-input-visible-count"));v.setAttribute("aria-live","polite"),v.setAttribute("aria-atomic","true");const k=new h["a"](v,{countFormat:Object(E["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")}),_=s["q"](f,W(".quick-input-count"));_.setAttribute("aria-live","polite");const C=new h["a"](_,{countFormat:Object(E["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")}),w=s["q"](p,W(".quick-input-action")),x=new r["a"](w);x.label=Object(E["a"])("ok","OK"),this._register(x.onDidClick(t=>{this.onDidAcceptEmitter.fire()}));const I=s["q"](p,W(".quick-input-action")),B=new r["a"](I);B.label=Object(E["a"])("custom","Custom"),this._register(B.onDidClick(t=>{this.onDidCustomEmitter.fire()}));const L=s["q"](b,W(`#${this.idPrefix}message.quick-input-message`)),A=this._register(new H(t,this.idPrefix+"list",this.options));this._register(A.onChangedAllVisibleChecked(t=>{g.checked=t})),this._register(A.onChangedVisibleCount(t=>{k.setCount(t)})),this._register(A.onChangedCheckedCount(t=>{C.setCount(t)})),this._register(A.onLeave(()=>{setTimeout(()=>{y.setFocus(),this.controller instanceof Y&&this.controller.canSelectMany&&A.clearFocus()},0)})),this._register(A.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));const O=new c["a"](t);O.getContainer().classList.add("quick-input-progress");const q=s["Z"](t);return this._register(q),this._register(s["i"](t,s["d"].FOCUS,t=>{this.previousFocusElement=t.relatedTarget instanceof HTMLElement?t.relatedTarget:void 0},!0)),this._register(q.onDidBlur(()=>{this.getUI().ignoreFocusOut||this.options.ignoreFocusOut()||this.hide(D["c"].Blur),this.previousFocusElement=void 0})),this._register(s["i"](t,s["d"].FOCUS,t=>{y.setFocus()})),this._register(s["i"](t,s["d"].KEY_DOWN,e=>{const i=new n["a"](e);switch(i.keyCode){case 3:s["c"].stop(e,!0),this.onDidAcceptEmitter.fire();break;case 9:s["c"].stop(e,!0),this.hide(D["c"].Gesture);break;case 2:if(!i.altKey&&!i.ctrlKey&&!i.metaKey){const n=[".action-label.codicon"];t.classList.contains("show-checkboxes")?n.push("input"):n.push("input[type=text]"),this.getUI().list.isDisplayed()&&n.push(".monaco-list");const o=t.querySelectorAll(n.join(", "));i.shiftKey&&i.target===o[0]?(s["c"].stop(e,!0),o[o.length-1].focus()):i.shiftKey||i.target!==o[o.length-1]||(s["c"].stop(e,!0),o[0].focus())}break}})),this.ui={container:t,styleSheet:e,leftActionBar:a,titleBar:i,title:l,description1:d,description2:m,rightActionBar:u,checkAll:g,filterContainer:f,inputBox:y,visibleCountContainer:v,visibleCount:k,countContainer:_,count:C,okContainer:w,ok:x,message:L,customButtonContainer:I,customButton:B,list:A,progressBar:O,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:t=>this.show(t),hide:()=>this.hide(),setVisibilities:t=>this.setVisibilities(t),setComboboxAccessibility:t=>this.setComboboxAccessibility(t),setEnabled:t=>this.setEnabled(t),setContextKey:t=>this.options.setContextKey(t)},this.updateStyles(),this.ui}pick(t,e={},i=p["a"].None){return new Promise((s,n)=>{let o=t=>{o=s,e.onKeyMods&&e.onKeyMods(r.keyMods),s(t)};if(i.isCancellationRequested)return void o(void 0);const r=this.createQuickPick();let h;const a=[r,r.onDidAccept(()=>{if(r.canSelectMany)o(r.selectedItems.slice()),r.hide();else{const t=r.activeItems[0];t&&(o(t),r.hide())}}),r.onDidChangeActive(t=>{const i=t[0];i&&e.onDidFocus&&e.onDidFocus(i)}),r.onDidChangeSelection(t=>{if(!r.canSelectMany){const e=t[0];e&&(o(e),r.hide())}}),r.onDidTriggerItemButton(t=>e.onDidTriggerItemButton&&e.onDidTriggerItemButton(Object.assign(Object.assign({},t),{removeItem:()=>{const e=r.items.indexOf(t.item);if(-1!==e){const t=r.items.slice(),i=t.splice(e,1),s=r.activeItems.filter(t=>t!==i[0]),n=r.keepScrollPosition;r.keepScrollPosition=!0,r.items=t,s&&(r.activeItems=s),r.keepScrollPosition=n}}}))),r.onDidChangeValue(t=>{!h||t||1===r.activeItems.length&&r.activeItems[0]===h||(r.activeItems=[h])}),i.onCancellationRequested(()=>{r.hide()}),r.onDidHide(()=>{Object(b["g"])(a),o(void 0)})];r.title=e.title,r.canSelectMany=!!e.canPickMany,r.placeholder=e.placeHolder,r.ignoreFocusOut=!!e.ignoreFocusLost,r.matchOnDescription=!!e.matchOnDescription,r.matchOnDetail=!!e.matchOnDetail,r.matchOnLabel=void 0===e.matchOnLabel||e.matchOnLabel,r.autoFocusOnList=void 0===e.autoFocusOnList||e.autoFocusOnList,r.quickNavigate=e.quickNavigate,r.contextKey=e.contextKey,r.busy=!0,Promise.all([t,e.activeItem]).then(([t,e])=>{h=e,r.busy=!1,r.items=t,r.canSelectMany&&(r.selectedItems=t.filter(t=>"separator"!==t.type&&t.picked)),h&&(r.activeItems=[h])}),r.show(),Promise.resolve(t).then(void 0,t=>{n(t),r.hide()})})}createQuickPick(){const t=this.getUI();return new Y(t)}show(t){const e=this.getUI();this.onShowEmitter.fire();const i=this.controller;this.controller=t,i&&i.didHide(),this.setEnabled(!0),e.leftActionBar.clear(),e.title.textContent="",e.description1.textContent="",e.description2.textContent="",e.rightActionBar.clear(),e.checkAll.checked=!1,e.inputBox.placeholder="",e.inputBox.password=!1,e.inputBox.showDecoration(y["a"].Ignore),e.visibleCount.setCount(0),e.count.setCount(0),s["S"](e.message),e.progressBar.stop(),e.list.setElements([]),e.list.matchOnDescription=!1,e.list.matchOnDetail=!1,e.list.matchOnLabel=!0,e.list.sortByLabel=!0,e.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),e.inputBox.ariaLabel="";const n=this.options.backKeybindingLabel();z.tooltip=n?Object(E["a"])("quickInput.backWithKeybinding","Back ({0})",n):Object(E["a"])("quickInput.back","Back"),e.container.style.display="",this.updateLayout(),e.inputBox.setFocus()}setVisibilities(t){const e=this.getUI();e.title.style.display=t.title?"":"none",e.description1.style.display=t.description&&(t.inputBox||t.checkAll)?"":"none",e.description2.style.display=!t.description||t.inputBox||t.checkAll?"none":"",e.checkAll.style.display=t.checkAll?"":"none",e.filterContainer.style.display=t.inputBox?"":"none",e.visibleCountContainer.style.display=t.visibleCount?"":"none",e.countContainer.style.display=t.count?"":"none",e.okContainer.style.display=t.ok?"":"none",e.customButtonContainer.style.display=t.customButton?"":"none",e.message.style.display=t.message?"":"none",e.progressBar.getContainer().style.display=t.progressBar?"":"none",e.list.display(!!t.list),e.container.classList[t.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(t){if(t!==this.comboboxAccessibility){const e=this.getUI();this.comboboxAccessibility=t,this.comboboxAccessibility?(e.inputBox.setAttribute("role","combobox"),e.inputBox.setAttribute("aria-haspopup","true"),e.inputBox.setAttribute("aria-autocomplete","list"),e.inputBox.setAttribute("aria-activedescendant",e.list.getActiveDescendant()||"")):(e.inputBox.removeAttribute("role"),e.inputBox.removeAttribute("aria-haspopup"),e.inputBox.removeAttribute("aria-autocomplete"),e.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(t){if(t!==this.enabled){this.enabled=t;for(const e of this.getUI().leftActionBar.viewItems)e.getAction().enabled=t;for(const e of this.getUI().rightActionBar.viewItems)e.getAction().enabled=t;this.getUI().checkAll.disabled=!t,this.getUI().ok.enabled=t,this.getUI().list.enabled=t}}hide(t){var e;const i=this.controller;if(i){const s=!(null===(e=this.ui)||void 0===e?void 0:e.container.contains(document.activeElement));if(this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",!s){let t=this.previousFocusElement;while(t&&!t.offsetParent)t=Object(v["q"])(t.parentElement);(null===t||void 0===t?void 0:t.offsetParent)?(t.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}i.didHide(t)}}layout(t,e){this.dimension=t,this.titleBarOffset=e,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=this.titleBarOffset+"px";const t=this.ui.container.style,e=Math.min(.62*this.dimension.width,J.MAX_WIDTH);t.width=e+"px",t.marginLeft="-"+e/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(t){this.styles=t,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:t,quickInputBackground:e,quickInputForeground:i,contrastBorder:s,widgetShadow:n}=this.styles.widget;this.ui.titleBar.style.backgroundColor=t?t.toString():"",this.ui.container.style.backgroundColor=e?e.toString():"",this.ui.container.style.color=i?i.toString():"",this.ui.container.style.border=s?"1px solid "+s:"",this.ui.container.style.boxShadow=n?"0 0 8px 2px "+n:"",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 r=o.join("\n");r!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=r)}}}J.MAX_WIDTH=600},cdd6:function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return o}));const s={ctrlCmd:!1,alt:!1};var n,o;(function(t){t[t["Blur"]=1]="Blur",t[t["Gesture"]=2]="Gesture",t[t["Other"]=3]="Other"})(n||(n={})),function(t){t[t["NONE"]=0]="NONE",t[t["FIRST"]=1]="FIRST",t[t["SECOND"]=2]="SECOND",t[t["LAST"]=3]="LAST"}(o||(o={}));class r{constructor(t){this.options=t}}new r},e919:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));const s=new Uint8Array(16),n=[];for(let h=0;h<256;h++)n.push(h.toString(16).padStart(2,"0"));let o;function r(){o(s),s[6]=15&s[6]|64,s[8]=63&s[8]|128;let t=0,e="";return e+=n[s[t++]],e+=n[s[t++]],e+=n[s[t++]],e+=n[s[t++]],e+="-",e+=n[s[t++]],e+=n[s[t++]],e+="-",e+=n[s[t++]],e+=n[s[t++]],e+="-",e+=n[s[t++]],e+=n[s[t++]],e+="-",e+=n[s[t++]],e+=n[s[t++]],e+=n[s[t++]],e+=n[s[t++]],e+=n[s[t++]],e+=n[s[t++]],e}o="object"===typeof crypto&&"function"===typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(t){for(let e=0;e<t.length;e++)t[e]=Math.floor(256*Math.random());return t}}}]);
Coded by KALI :v Greetz to DR HARD ../ kali.zbi@hotmail.com