@vscode-elements/elements 1.17.0 → 2.0.0-pre.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/custom-elements.json +2547 -2262
  2. package/dist/bundled.js +275 -359
  3. package/dist/includes/VscElement.js +1 -1
  4. package/dist/includes/VscElement.js.map +1 -1
  5. package/dist/main.d.ts +1 -0
  6. package/dist/main.d.ts.map +1 -1
  7. package/dist/main.js +1 -0
  8. package/dist/main.js.map +1 -1
  9. package/dist/vscode-tree/helpers.d.ts +11 -0
  10. package/dist/vscode-tree/helpers.d.ts.map +1 -0
  11. package/dist/vscode-tree/helpers.js +139 -0
  12. package/dist/vscode-tree/helpers.js.map +1 -0
  13. package/dist/vscode-tree/tree-context.d.ts +33 -0
  14. package/dist/vscode-tree/tree-context.d.ts.map +1 -0
  15. package/dist/vscode-tree/tree-context.js +4 -0
  16. package/dist/vscode-tree/tree-context.js.map +1 -0
  17. package/dist/vscode-tree/vscode-tree.d.ts +35 -150
  18. package/dist/vscode-tree/vscode-tree.d.ts.map +1 -1
  19. package/dist/vscode-tree/vscode-tree.js +263 -627
  20. package/dist/vscode-tree/vscode-tree.js.map +1 -1
  21. package/dist/vscode-tree/vscode-tree.styles.d.ts.map +1 -1
  22. package/dist/vscode-tree/vscode-tree.styles.js +4 -240
  23. package/dist/vscode-tree/vscode-tree.styles.js.map +1 -1
  24. package/dist/vscode-tree-item/index.d.ts +2 -0
  25. package/dist/vscode-tree-item/index.d.ts.map +1 -0
  26. package/dist/vscode-tree-item/index.js +2 -0
  27. package/dist/vscode-tree-item/index.js.map +1 -0
  28. package/dist/vscode-tree-item/vscode-tree-item.d.ts +45 -0
  29. package/dist/vscode-tree-item/vscode-tree-item.d.ts.map +1 -0
  30. package/dist/vscode-tree-item/vscode-tree-item.js +377 -0
  31. package/dist/vscode-tree-item/vscode-tree-item.js.map +1 -0
  32. package/dist/vscode-tree-item/vscode-tree-item.styles.d.ts +4 -0
  33. package/dist/vscode-tree-item/vscode-tree-item.styles.d.ts.map +1 -0
  34. package/dist/vscode-tree-item/vscode-tree-item.styles.js +165 -0
  35. package/dist/vscode-tree-item/vscode-tree-item.styles.js.map +1 -0
  36. package/package.json +2 -1
  37. package/vscode.css-custom-data.json +32 -54
  38. package/vscode.html-custom-data.json +83 -70
package/dist/bundled.js CHANGED
@@ -1,4 +1,4 @@
1
- const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),i=new WeakMap;let o=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=i.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&i.set(s,t))}return t}toString(){return this.cssText}};const r=t=>new o("string"==typeof t?t:t+"",void 0,s),n=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1]),t[0]);return new o(i,t,s)},l=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t,{is:a,defineProperty:c,getOwnPropertyDescriptor:h,getOwnPropertyNames:d,getOwnPropertySymbols:u,getPrototypeOf:p}=Object,v=globalThis,b=v.trustedTypes,f=b?b.emptyScript:"",g=v.reactiveElementPolyfillSupport,m=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?f:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},y=(t,e)=>!a(t,e),w={attribute:!0,type:String,converter:x,reflect:!1,useDefault:!1,hasChanged:y};Symbol.metadata??=Symbol("metadata"),v.litPropertyMetadata??=new WeakMap;let k=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&c(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=h(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const r=i?.call(this);o?.call(this,e),this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(m("elementProperties")))return;const t=p(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(m("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m("properties"))){const t=this.properties,e=[...d(t),...u(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const s=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((s,i)=>{if(e)s.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of i){const i=document.createElement("style"),o=t.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,s.appendChild(i)}})(s,this.constructor.elementStyles),s}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const o=(void 0!==s.converter?.toAttribute?s.converter:x).toAttribute(e,s.type);this._$Em=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:x;this._$Em=i,this[i]=o.fromAttribute(e,t.type)??this._$Ej?.get(i)??null,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const i=this.constructor,o=this[t];if(s??=i.getPropertyOptions(t),!((s.hasChanged??y)(o,e)||s.useDefault&&s.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:o},r){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),!0!==o||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}};k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[m("elementProperties")]=new Map,k[m("finalized")]=new Map,g?.({ReactiveElement:k}),(v.reactiveElementVersions??=[]).push("2.1.0");const $=globalThis,_=$.trustedTypes,C=_?_.createPolicy("lit-html",{createHTML:t=>t}):void 0,S="$lit$",B=`lit$${Math.random().toFixed(9).slice(2)}$`,z="?"+B,O=`<${z}>`,A=document,E=()=>A.createComment(""),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,I=Array.isArray,M="[ \t\n\f\r]",P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,N=/>/g,D=RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,T=/"/g,R=/^(?:script|style|textarea|title)$/i,L=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),U=L(1),q=L(2),H=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),K=new WeakMap,G=A.createTreeWalker(A,129);function J(t,e){if(!I(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(e):e}const Y=(t,e)=>{const s=t.length-1,i=[];let o,r=2===e?"<svg>":3===e?"<math>":"",n=P;for(let e=0;e<s;e++){const s=t[e];let l,a,c=-1,h=0;for(;h<s.length&&(n.lastIndex=h,a=n.exec(s),null!==a);)h=n.lastIndex,n===P?"!--"===a[1]?n=F:void 0!==a[1]?n=N:void 0!==a[2]?(R.test(a[2])&&(o=RegExp("</"+a[2],"g")),n=D):void 0!==a[3]&&(n=D):n===D?">"===a[0]?(n=o??P,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?D:'"'===a[3]?T:V):n===T||n===V?n=D:n===F||n===N?n=P:(n=D,o=void 0);const d=n===D&&t[e+1].startsWith("/>")?" ":"";r+=n===P?s+O:c>=0?(i.push(l),s.slice(0,c)+S+s.slice(c)+B+d):s+B+(-2===c?e:d)}return[J(t,r+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class X{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const n=t.length-1,l=this.parts,[a,c]=Y(t,e);if(this.el=X.createElement(a,s),G.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=G.nextNode())&&l.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(S)){const e=c[r++],s=i.getAttribute(t).split(B),n=/([.?@])?(.*)/.exec(e);l.push({type:1,index:o,name:n[2],strings:s,ctor:"."===n[1]?et:"?"===n[1]?st:"@"===n[1]?it:tt}),i.removeAttribute(t)}else t.startsWith(B)&&(l.push({type:6,index:o}),i.removeAttribute(t));if(R.test(i.tagName)){const t=i.textContent.split(B),e=t.length-1;if(e>0){i.textContent=_?_.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],E()),G.nextNode(),l.push({type:2,index:++o});i.append(t[e],E())}}}else if(8===i.nodeType)if(i.data===z)l.push({type:2,index:o});else{let t=-1;for(;-1!==(t=i.data.indexOf(B,t+1));)l.push({type:7,index:o}),t+=B.length-1}o++}}static createElement(t,e){const s=A.createElement("template");return s.innerHTML=t,s}}function Z(t,e,s=t,i){if(e===H)return e;let o=void 0!==i?s._$Co?.[i]:s._$Cl;const r=j(e)?void 0:e._$litDirective$;return o?.constructor!==r&&(o?._$AO?.(!1),void 0===r?o=void 0:(o=new r(t),o._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=o:s._$Cl=o),void 0!==o&&(e=Z(t,o._$AS(t,e.values),o,i)),e}class Q{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Z(this,t,e),j(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==H&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>I(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==W&&j(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=X.createElement(J(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??A).importNode(e,!0);G.currentNode=i;let o=G.nextNode(),r=0,n=0,l=s[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new Q(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new ot(o,this,t)),this._$AV.push(e),l=s[++n]}r!==l?.index&&(o=G.nextNode(),r++)}return G.currentNode=A,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new X(t)),e}k(t){I(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new Q(this.O(E()),this.O(E()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class tt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=W}_$AI(t,e=this,s,i){const o=this.strings;let r=!1;if(void 0===o)t=Z(this,t,e,0),r=!j(t)||t!==this._$AH&&t!==H,r&&(this._$AH=t);else{const i=t;let n,l;for(t=o[0],n=0;n<o.length-1;n++)l=Z(this,i[s+n],e,n),l===H&&(l=this._$AH[n]),r||=!j(l)||l!==this._$AH[n],l===W?t=W:t!==W&&(t+=(l??"")+o[n+1]),this._$AH[n]=l}r&&!i&&this.j(t)}j(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class et extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===W?void 0:t}}class st extends tt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==W)}}class it extends tt{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=Z(this,t,e,0)??W)===H)return;const s=this._$AH,i=t===W&&s!==W||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==W&&(s===W||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class ot{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){Z(this,t)}}const rt={I:Q},nt=$.litHtmlPolyfillSupport;nt?.(X,Q),($.litHtmlVersions??=[]).push("3.3.0");const lt=(t,e,s)=>{const i=s?.renderBefore??e;let o=i._$litPart$;if(void 0===o){const t=s?.renderBefore??null;i._$litPart$=o=new Q(e.insertBefore(E(),t),t,void 0,s??{})}return o._$AI(t),o},at=globalThis;let ct=class extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=lt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return H}};ct._$litElement$=!0,ct.finalized=!0,at.litElementHydrateSupport?.({LitElement:ct});const ht=at.litElementPolyfillSupport;ht?.({LitElement:ct}),(at.litElementVersions??=[]).push("4.2.0");const dt={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:y},ut=(t=dt,e,s)=>{const{kind:i,metadata:o}=s;let r=globalThis.litPropertyMetadata.get(o);if(void 0===r&&globalThis.litPropertyMetadata.set(o,r=new Map),"setter"===i&&((t=Object.create(t)).wrapped=!0),r.set(s.name,t),"accessor"===i){const{name:i}=s;return{set(s){const o=e.get.call(this);e.set.call(this,s),this.requestUpdate(i,o,t)},init(e){return void 0!==e&&this.C(i,void 0,t,e),e}}}if("setter"===i){const{name:i}=s;return function(s){const o=this[i];e.call(this,s),this.requestUpdate(i,o,t)}}throw Error("Unsupported decorator location: "+i)};function pt(t){return(e,s)=>"object"==typeof s?ut(t,e,s):((t,e,s)=>{const i=e.hasOwnProperty(s);return e.constructor.createProperty(s,t),i?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}function vt(t){return pt({...t,state:!0,attribute:!1})}const bt=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,s);function ft(t,e){return(s,i,o)=>{const r=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof i?s:o??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return bt(0,0,{get(){let s=t.call(this);return void 0===s&&(s=r(this),(null!==s||this.hasUpdated)&&e.call(this,s)),s}})}return bt(0,0,{get(){return r(this)}})}}let gt;function mt(t){return(e,s)=>{const{slot:i,selector:o}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return bt(0,0,{get(){const e=this.renderRoot?.querySelector(r),s=e?.assignedElements(t)??[];return void 0===o?s:s.filter((t=>t.matches(o)))}})}}const xt="1.17.0",yt="__vscodeElements_disableRegistryWarning__";class wt extends ct{get version(){return xt}}const kt=t=>e=>{if(!customElements.get(t))return void customElements.define(t,e);if(yt in window)return;const s=document.createElement(t),i=s?.version;let o="";i?i!==xt?(o+="is already registered by a different version of VSCode Elements. ",o+=`This version is "${xt}", while the other one is "${i}".`):o+="is already registered by the same version of VSCode Elements. ":(console.warn(t,"is already registered by an unknown custom element handler class."),o+="is already registered by an unknown custom element handler class."),console.warn(`[VSCode Elements] ${t} ${o}\nTo suppress this warning, set window.${yt} to true`)};var $t=n`
1
+ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),i=new WeakMap;let o=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=i.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&i.set(s,t))}return t}toString(){return this.cssText}};const r=t=>new o("string"==typeof t?t:t+"",void 0,s),n=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1]),t[0]);return new o(i,t,s)},l=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t,{is:a,defineProperty:h,getOwnPropertyDescriptor:c,getOwnPropertyNames:d,getOwnPropertySymbols:u,getPrototypeOf:p}=Object,v=globalThis,b=v.trustedTypes,f=b?b.emptyScript:"",g=v.reactiveElementPolyfillSupport,m=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?f:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},y=(t,e)=>!a(t,e),w={attribute:!0,type:String,converter:x,reflect:!1,useDefault:!1,hasChanged:y};Symbol.metadata??=Symbol("metadata"),v.litPropertyMetadata??=new WeakMap;let k=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&h(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=c(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const r=i?.call(this);o?.call(this,e),this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(m("elementProperties")))return;const t=p(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(m("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m("properties"))){const t=this.properties,e=[...d(t),...u(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const s=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((s,i)=>{if(e)s.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of i){const i=document.createElement("style"),o=t.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,s.appendChild(i)}})(s,this.constructor.elementStyles),s}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const o=(void 0!==s.converter?.toAttribute?s.converter:x).toAttribute(e,s.type);this._$Em=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:x;this._$Em=i,this[i]=o.fromAttribute(e,t.type)??this._$Ej?.get(i)??null,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const i=this.constructor,o=this[t];if(s??=i.getPropertyOptions(t),!((s.hasChanged??y)(o,e)||s.useDefault&&s.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:o},r){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),!0!==o||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}};k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[m("elementProperties")]=new Map,k[m("finalized")]=new Map,g?.({ReactiveElement:k}),(v.reactiveElementVersions??=[]).push("2.1.0");const $=globalThis,_=$.trustedTypes,S=_?_.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",B=`lit$${Math.random().toFixed(9).slice(2)}$`,O="?"+B,z=`<${O}>`,A=document,E=()=>A.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,M="[ \t\n\f\r]",P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,D=/>/g,V=RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),N=/'/g,R=/"/g,T=/^(?:script|style|textarea|title)$/i,L=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),U=L(1),q=L(2),H=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),G=new WeakMap,K=A.createTreeWalker(A,129);function J(t,e){if(!j(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==S?S.createHTML(e):e}const Y=(t,e)=>{const s=t.length-1,i=[];let o,r=2===e?"<svg>":3===e?"<math>":"",n=P;for(let e=0;e<s;e++){const s=t[e];let l,a,h=-1,c=0;for(;c<s.length&&(n.lastIndex=c,a=n.exec(s),null!==a);)c=n.lastIndex,n===P?"!--"===a[1]?n=F:void 0!==a[1]?n=D:void 0!==a[2]?(T.test(a[2])&&(o=RegExp("</"+a[2],"g")),n=V):void 0!==a[3]&&(n=V):n===V?">"===a[0]?(n=o??P,h=-1):void 0===a[1]?h=-2:(h=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?V:'"'===a[3]?R:N):n===R||n===N?n=V:n===F||n===D?n=P:(n=V,o=void 0);const d=n===V&&t[e+1].startsWith("/>")?" ":"";r+=n===P?s+z:h>=0?(i.push(l),s.slice(0,h)+C+s.slice(h)+B+d):s+B+(-2===h?e:d)}return[J(t,r+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class X{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const n=t.length-1,l=this.parts,[a,h]=Y(t,e);if(this.el=X.createElement(a,s),K.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=K.nextNode())&&l.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(C)){const e=h[r++],s=i.getAttribute(t).split(B),n=/([.?@])?(.*)/.exec(e);l.push({type:1,index:o,name:n[2],strings:s,ctor:"."===n[1]?et:"?"===n[1]?st:"@"===n[1]?it:tt}),i.removeAttribute(t)}else t.startsWith(B)&&(l.push({type:6,index:o}),i.removeAttribute(t));if(T.test(i.tagName)){const t=i.textContent.split(B),e=t.length-1;if(e>0){i.textContent=_?_.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],E()),K.nextNode(),l.push({type:2,index:++o});i.append(t[e],E())}}}else if(8===i.nodeType)if(i.data===O)l.push({type:2,index:o});else{let t=-1;for(;-1!==(t=i.data.indexOf(B,t+1));)l.push({type:7,index:o}),t+=B.length-1}o++}}static createElement(t,e){const s=A.createElement("template");return s.innerHTML=t,s}}function Z(t,e,s=t,i){if(e===H)return e;let o=void 0!==i?s._$Co?.[i]:s._$Cl;const r=I(e)?void 0:e._$litDirective$;return o?.constructor!==r&&(o?._$AO?.(!1),void 0===r?o=void 0:(o=new r(t),o._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=o:s._$Cl=o),void 0!==o&&(e=Z(t,o._$AS(t,e.values),o,i)),e}class Q{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Z(this,t,e),I(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==H&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>j(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==W&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=X.createElement(J(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??A).importNode(e,!0);K.currentNode=i;let o=K.nextNode(),r=0,n=0,l=s[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new Q(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new ot(o,this,t)),this._$AV.push(e),l=s[++n]}r!==l?.index&&(o=K.nextNode(),r++)}return K.currentNode=A,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=G.get(t.strings);return void 0===e&&G.set(t.strings,e=new X(t)),e}k(t){j(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new Q(this.O(E()),this.O(E()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class tt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=W,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=W}_$AI(t,e=this,s,i){const o=this.strings;let r=!1;if(void 0===o)t=Z(this,t,e,0),r=!I(t)||t!==this._$AH&&t!==H,r&&(this._$AH=t);else{const i=t;let n,l;for(t=o[0],n=0;n<o.length-1;n++)l=Z(this,i[s+n],e,n),l===H&&(l=this._$AH[n]),r||=!I(l)||l!==this._$AH[n],l===W?t=W:t!==W&&(t+=(l??"")+o[n+1]),this._$AH[n]=l}r&&!i&&this.j(t)}j(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class et extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===W?void 0:t}}class st extends tt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==W)}}class it extends tt{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=Z(this,t,e,0)??W)===H)return;const s=this._$AH,i=t===W&&s!==W||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==W&&(s===W||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class ot{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){Z(this,t)}}const rt={I:Q},nt=$.litHtmlPolyfillSupport;nt?.(X,Q),($.litHtmlVersions??=[]).push("3.3.0");const lt=(t,e,s)=>{const i=s?.renderBefore??e;let o=i._$litPart$;if(void 0===o){const t=s?.renderBefore??null;i._$litPart$=o=new Q(e.insertBefore(E(),t),t,void 0,s??{})}return o._$AI(t),o},at=globalThis;let ht=class extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=lt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return H}};ht._$litElement$=!0,ht.finalized=!0,at.litElementHydrateSupport?.({LitElement:ht});const ct=at.litElementPolyfillSupport;ct?.({LitElement:ht}),(at.litElementVersions??=[]).push("4.2.0");const dt=t=>(e,s)=>{void 0!==s?s.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},ut={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:y},pt=(t=ut,e,s)=>{const{kind:i,metadata:o}=s;let r=globalThis.litPropertyMetadata.get(o);if(void 0===r&&globalThis.litPropertyMetadata.set(o,r=new Map),"setter"===i&&((t=Object.create(t)).wrapped=!0),r.set(s.name,t),"accessor"===i){const{name:i}=s;return{set(s){const o=e.get.call(this);e.set.call(this,s),this.requestUpdate(i,o,t)},init(e){return void 0!==e&&this.C(i,void 0,t,e),e}}}if("setter"===i){const{name:i}=s;return function(s){const o=this[i];e.call(this,s),this.requestUpdate(i,o,t)}}throw Error("Unsupported decorator location: "+i)};function vt(t){return(e,s)=>"object"==typeof s?pt(t,e,s):((t,e,s)=>{const i=e.hasOwnProperty(s);return e.constructor.createProperty(s,t),i?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}function bt(t){return vt({...t,state:!0,attribute:!1})}const ft=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,s);function gt(t,e){return(s,i,o)=>{const r=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof i?s:o??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return ft(0,0,{get(){let s=t.call(this);return void 0===s&&(s=r(this),(null!==s||this.hasUpdated)&&e.call(this,s)),s}})}return ft(0,0,{get(){return r(this)}})}}let mt;function xt(t){return(e,s)=>{const{slot:i,selector:o}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return ft(0,0,{get(){const e=this.renderRoot?.querySelector(r),s=e?.assignedElements(t)??[];return void 0===o?s:s.filter((t=>t.matches(o)))}})}}const yt="2.0.0-pre.2",wt="__vscodeElements_disableRegistryWarning__";class kt extends ht{get version(){return yt}}const $t=t=>e=>{if(!customElements.get(t))return void customElements.define(t,e);if(wt in window)return;const s=document.createElement(t),i=s?.version;let o="";i?i!==yt?(o+="is already registered by a different version of VSCode Elements. ",o+=`This version is "${yt}", while the other one is "${i}".`):o+="is already registered by the same version of VSCode Elements. ":(console.warn(t,"is already registered by an unknown custom element handler class."),o+="is already registered by an unknown custom element handler class."),console.warn(`[VSCode Elements] ${t} ${o}\nTo suppress this warning, set window.${wt} to true`)};var _t=n`
2
2
  :host([hidden]) {
3
3
  display: none;
4
4
  }
@@ -9,7 +9,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
9
9
  opacity: 0.4;
10
10
  pointer-events: none;
11
11
  }
12
- `;function _t(){return navigator.userAgent.indexOf("Linux")>-1?'system-ui, "Ubuntu", "Droid Sans", sans-serif':navigator.userAgent.indexOf("Mac")>-1?"-apple-system, BlinkMacSystemFont, sans-serif":navigator.userAgent.indexOf("Windows")>-1?'"Segoe WPC", "Segoe UI", sans-serif':"sans-serif"}const Ct=[$t,n`
12
+ `;function St(){return navigator.userAgent.indexOf("Linux")>-1?'system-ui, "Ubuntu", "Droid Sans", sans-serif':navigator.userAgent.indexOf("Mac")>-1?"-apple-system, BlinkMacSystemFont, sans-serif":navigator.userAgent.indexOf("Windows")>-1?'"Segoe WPC", "Segoe UI", sans-serif':"sans-serif"}const Ct=[_t,n`
13
13
  :host {
14
14
  background-color: var(--vscode-badge-background, #616161);
15
15
  border: 1px solid var(--vscode-contrastBorder, transparent);
@@ -17,7 +17,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
17
17
  box-sizing: border-box;
18
18
  color: var(--vscode-badge-foreground, #f8f8f8);
19
19
  display: inline-block;
20
- font-family: var(--vscode-font-family, ${r(_t())});
20
+ font-family: var(--vscode-font-family, ${r(St())});
21
21
  font-size: 11px;
22
22
  font-weight: 400;
23
23
  line-height: 14px;
@@ -54,7 +54,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
54
54
  min-width: 16px;
55
55
  padding: 3px 5px;
56
56
  }
57
- `];var St=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Bt=class extends wt{constructor(){super(...arguments),this.variant="default"}render(){return U` <slot></slot> `}};Bt.styles=Ct,St([pt({reflect:!0})],Bt.prototype,"variant",void 0),Bt=St([kt("vscode-badge")],Bt);const zt=1,Ot=2,At=3,Et=t=>(...e)=>({_$litDirective$:t,values:e});class jt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const It=Et(class extends jt{constructor(t){if(super(t),t.type!==zt||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const t of this.st)t in e||(s.remove(t),this.st.delete(t));for(const t in e){const i=!!e[t];i===this.st.has(t)||this.nt?.has(t)||(i?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return H}}),Mt=t=>t??W;const Pt=Et(class extends jt{constructor(t){if(super(t),this._prevProperties={},t.type!==At||"style"!==t.name)throw new Error("The `stylePropertyMap` directive must be used in the `style` property")}update(t,[e]){return Object.entries(e).forEach((([e,s])=>{this._prevProperties[e]!==s&&(e.startsWith("--")?t.element.style.setProperty(e,s):t.element.style[e]=s,this._prevProperties[e]=s)})),H}render(t){return H}}),Ft=[$t,n`
57
+ `];var Bt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Ot=class extends kt{constructor(){super(...arguments),this.variant="default"}render(){return U` <slot></slot> `}};Ot.styles=Ct,Bt([vt({reflect:!0})],Ot.prototype,"variant",void 0),Ot=Bt([$t("vscode-badge")],Ot);const zt=1,At=2,Et=3,It=t=>(...e)=>({_$litDirective$:t,values:e});let jt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};const Mt=It(class extends jt{constructor(t){if(super(t),t.type!==zt||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const s=t.element.classList;for(const t of this.st)t in e||(s.remove(t),this.st.delete(t));for(const t in e){const i=!!e[t];i===this.st.has(t)||this.nt?.has(t)||(i?(s.add(t),this.st.add(t)):(s.remove(t),this.st.delete(t)))}return H}}),Pt=t=>t??W;const Ft=It(class extends jt{constructor(t){if(super(t),this._prevProperties={},t.type!==Et||"style"!==t.name)throw new Error("The `stylePropertyMap` directive must be used in the `style` property")}update(t,[e]){return Object.entries(e).forEach((([e,s])=>{this._prevProperties[e]!==s&&(e.startsWith("--")?t.element.style.setProperty(e,s):t.element.style[e]=s,this._prevProperties[e]=s)})),H}render(t){return H}}),Dt=[_t,n`
58
58
  :host {
59
59
  color: var(--vscode-icon-foreground, #cccccc);
60
60
  display: inline-block;
@@ -114,9 +114,9 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
114
114
  animation-timing-function: linear;
115
115
  animation-iteration-count: infinite;
116
116
  }
117
- `];var Nt,Dt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Vt=Nt=class extends wt{constructor(){super(...arguments),this.label="",this.name="",this.size=16,this.spin=!1,this.spinDuration=1.5,this.actionIcon=!1,this._onButtonClick=t=>{this.dispatchEvent(new CustomEvent("vsc-click",{detail:{originalEvent:t}}))}}connectedCallback(){super.connectedCallback();const{href:t,nonce:e}=this._getStylesheetConfig();Nt.stylesheetHref=t,Nt.nonce=e}_getStylesheetConfig(){const t=document.getElementById("vscode-codicon-stylesheet"),e=t?.getAttribute("href")||void 0,s=t?.nonce||void 0;if(!t){let t="[VSCode Elements] To use the Icon component, the codicons.css file must be included in the page with the id `vscode-codicon-stylesheet`! ";t+="See https://vscode-elements.github.io/components/icon/ for more details.",console.warn(t)}return{nonce:s,href:e}}render(){const{stylesheetHref:t,nonce:e}=Nt,s=U`<span
118
- class=${It({codicon:!0,["codicon-"+this.name]:!0,spin:this.spin})}
119
- .style=${Pt({animationDuration:String(this.spinDuration)+"s",fontSize:this.size+"px",height:this.size+"px",width:this.size+"px"})}
117
+ `];var Vt,Nt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Rt=Vt=class extends kt{constructor(){super(...arguments),this.label="",this.name="",this.size=16,this.spin=!1,this.spinDuration=1.5,this.actionIcon=!1,this._onButtonClick=t=>{this.dispatchEvent(new CustomEvent("vsc-click",{detail:{originalEvent:t}}))}}connectedCallback(){super.connectedCallback();const{href:t,nonce:e}=this._getStylesheetConfig();Vt.stylesheetHref=t,Vt.nonce=e}_getStylesheetConfig(){const t=document.getElementById("vscode-codicon-stylesheet"),e=t?.getAttribute("href")||void 0,s=t?.nonce||void 0;if(!t){let t="[VSCode Elements] To use the Icon component, the codicons.css file must be included in the page with the id `vscode-codicon-stylesheet`! ";t+="See https://vscode-elements.github.io/components/icon/ for more details.",console.warn(t)}return{nonce:s,href:e}}render(){const{stylesheetHref:t,nonce:e}=Vt,s=U`<span
118
+ class=${Mt({codicon:!0,["codicon-"+this.name]:!0,spin:this.spin})}
119
+ .style=${Ft({animationDuration:String(this.spinDuration)+"s",fontSize:this.size+"px",height:this.size+"px",width:this.size+"px"})}
120
120
  ></span>`,i=this.actionIcon?U` <button
121
121
  class="button"
122
122
  @click=${this._onButtonClick}
@@ -128,11 +128,11 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
128
128
  >`;return U`
129
129
  <link
130
130
  rel="stylesheet"
131
- href=${Mt(t)}
132
- nonce=${Mt(e)}
131
+ href=${Pt(t)}
132
+ nonce=${Pt(e)}
133
133
  >
134
134
  ${i}
135
- `}};Vt.styles=Ft,Vt.stylesheetHref="",Vt.nonce="",Dt([pt()],Vt.prototype,"label",void 0),Dt([pt({type:String})],Vt.prototype,"name",void 0),Dt([pt({type:Number})],Vt.prototype,"size",void 0),Dt([pt({type:Boolean,reflect:!0})],Vt.prototype,"spin",void 0),Dt([pt({type:Number,attribute:"spin-duration"})],Vt.prototype,"spinDuration",void 0),Dt([pt({type:Boolean,reflect:!0,attribute:"action-icon"})],Vt.prototype,"actionIcon",void 0),Vt=Nt=Dt([kt("vscode-icon")],Vt);const Tt=[$t,n`
135
+ `}};Rt.styles=Dt,Rt.stylesheetHref="",Rt.nonce="",Nt([vt()],Rt.prototype,"label",void 0),Nt([vt({type:String})],Rt.prototype,"name",void 0),Nt([vt({type:Number})],Rt.prototype,"size",void 0),Nt([vt({type:Boolean,reflect:!0})],Rt.prototype,"spin",void 0),Nt([vt({type:Number,attribute:"spin-duration"})],Rt.prototype,"spinDuration",void 0),Nt([vt({type:Boolean,reflect:!0,attribute:"action-icon"})],Rt.prototype,"actionIcon",void 0),Rt=Vt=Nt([$t("vscode-icon")],Rt);const Tt=[_t,n`
136
136
  :host {
137
137
  background-color: var(--vscode-button-background, #0078d4);
138
138
  border-color: var(--vscode-button-border, transparent);
@@ -142,7 +142,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
142
142
  color: var(--vscode-button-foreground, #ffffff);
143
143
  cursor: pointer;
144
144
  display: inline-flex;
145
- font-family: var(--vscode-font-family, ${r(_t())});
145
+ font-family: var(--vscode-font-family, ${r(St())});
146
146
  font-size: var(--vscode-font-size, 13px);
147
147
  font-weight: var(--vscode-font-weight, normal);
148
148
  line-height: 22px;
@@ -299,24 +299,24 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
299
299
  background-color: var(--vscode-button-secondaryForeground, #cccccc);
300
300
  opacity: 0.4;
301
301
  }
302
- `];var Rt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Lt=class extends wt{get form(){return this._internals.form}constructor(){super(),this.autofocus=!1,this.tabIndex=0,this.secondary=!1,this.role="button",this.disabled=!1,this.icon="",this.iconSpin=!1,this.iconAfter="",this.iconAfterSpin=!1,this.focused=!1,this.name=void 0,this.iconOnly=!1,this.type="button",this.value="",this._prevTabindex=0,this._handleFocus=()=>{this.focused=!0},this._handleBlur=()=>{this.focused=!1},this.addEventListener("keydown",this._handleKeyDown.bind(this)),this.addEventListener("click",this._handleClick.bind(this)),this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.autofocus&&(this.tabIndex<0&&(this.tabIndex=0),this.updateComplete.then((()=>{this.focus(),this.requestUpdate()}))),this.addEventListener("focus",this._handleFocus),this.addEventListener("blur",this._handleBlur)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this._handleFocus),this.removeEventListener("blur",this._handleBlur)}update(t){super.update(t),t.has("value")&&this._internals.setFormValue(this.value),t.has("disabled")&&(this.disabled?(this._prevTabindex=this.tabIndex,this.tabIndex=-1):this.tabIndex=this._prevTabindex)}_executeAction(){"submit"===this.type&&this._internals.form&&this._internals.form.requestSubmit(),"reset"===this.type&&this._internals.form&&this._internals.form.reset()}_handleKeyDown(t){if(("Enter"===t.key||" "===t.key)&&!this.hasAttribute("disabled")){this.dispatchEvent(new CustomEvent("vsc-click",{detail:{originalEvent:new MouseEvent("click")}}));const t=new MouseEvent("click",{bubbles:!0,cancelable:!0});t.synthetic=!0,this.dispatchEvent(t),this._executeAction()}}_handleClick(t){t.synthetic||this.hasAttribute("disabled")||(this.dispatchEvent(new CustomEvent("vsc-click",{detail:{originalEvent:t}})),this._executeAction())}render(){const t=""!==this.icon,e=""!==this.iconAfter,s={wrapper:!0,"has-icon-before":t,"has-icon-after":e,"icon-only":this.iconOnly},i=t?U`<vscode-icon
302
+ `];var Lt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Ut=class extends kt{get form(){return this._internals.form}constructor(){super(),this.autofocus=!1,this.tabIndex=0,this.secondary=!1,this.role="button",this.disabled=!1,this.icon="",this.iconSpin=!1,this.iconAfter="",this.iconAfterSpin=!1,this.focused=!1,this.name=void 0,this.iconOnly=!1,this.type="button",this.value="",this._prevTabindex=0,this._handleFocus=()=>{this.focused=!0},this._handleBlur=()=>{this.focused=!1},this.addEventListener("keydown",this._handleKeyDown.bind(this)),this.addEventListener("click",this._handleClick.bind(this)),this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.autofocus&&(this.tabIndex<0&&(this.tabIndex=0),this.updateComplete.then((()=>{this.focus(),this.requestUpdate()}))),this.addEventListener("focus",this._handleFocus),this.addEventListener("blur",this._handleBlur)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this._handleFocus),this.removeEventListener("blur",this._handleBlur)}update(t){super.update(t),t.has("value")&&this._internals.setFormValue(this.value),t.has("disabled")&&(this.disabled?(this._prevTabindex=this.tabIndex,this.tabIndex=-1):this.tabIndex=this._prevTabindex)}_executeAction(){"submit"===this.type&&this._internals.form&&this._internals.form.requestSubmit(),"reset"===this.type&&this._internals.form&&this._internals.form.reset()}_handleKeyDown(t){if(("Enter"===t.key||" "===t.key)&&!this.hasAttribute("disabled")){this.dispatchEvent(new CustomEvent("vsc-click",{detail:{originalEvent:new MouseEvent("click")}}));const t=new MouseEvent("click",{bubbles:!0,cancelable:!0});t.synthetic=!0,this.dispatchEvent(t),this._executeAction()}}_handleClick(t){t.synthetic||this.hasAttribute("disabled")||(this.dispatchEvent(new CustomEvent("vsc-click",{detail:{originalEvent:t}})),this._executeAction())}render(){const t=""!==this.icon,e=""!==this.iconAfter,s={wrapper:!0,"has-icon-before":t,"has-icon-after":e,"icon-only":this.iconOnly},i=t?U`<vscode-icon
303
303
  name=${this.icon}
304
304
  ?spin=${this.iconSpin}
305
- spin-duration=${Mt(this.iconSpinDuration)}
305
+ spin-duration=${Pt(this.iconSpinDuration)}
306
306
  class="icon"
307
307
  ></vscode-icon>`:W,o=e?U`<vscode-icon
308
308
  name=${this.iconAfter}
309
309
  ?spin=${this.iconAfterSpin}
310
- spin-duration=${Mt(this.iconAfterSpinDuration)}
310
+ spin-duration=${Pt(this.iconAfterSpinDuration)}
311
311
  class="icon-after"
312
312
  ></vscode-icon>`:W;return U`
313
- <span class=${It(s)}>
313
+ <span class=${Mt(s)}>
314
314
  ${i}
315
315
  <slot></slot>
316
316
  ${o}
317
317
  </span>
318
318
  <div class="divider"><div></div></div>
319
- `}};Lt.styles=Tt,Lt.formAssociated=!0,Rt([pt({type:Boolean,reflect:!0})],Lt.prototype,"autofocus",void 0),Rt([pt({type:Number,reflect:!0})],Lt.prototype,"tabIndex",void 0),Rt([pt({type:Boolean,reflect:!0})],Lt.prototype,"secondary",void 0),Rt([pt({reflect:!0})],Lt.prototype,"role",void 0),Rt([pt({type:Boolean,reflect:!0})],Lt.prototype,"disabled",void 0),Rt([pt()],Lt.prototype,"icon",void 0),Rt([pt({type:Boolean,reflect:!0,attribute:"icon-spin"})],Lt.prototype,"iconSpin",void 0),Rt([pt({type:Number,reflect:!0,attribute:"icon-spin-duration"})],Lt.prototype,"iconSpinDuration",void 0),Rt([pt({attribute:"icon-after"})],Lt.prototype,"iconAfter",void 0),Rt([pt({type:Boolean,reflect:!0,attribute:"icon-after-spin"})],Lt.prototype,"iconAfterSpin",void 0),Rt([pt({type:Number,reflect:!0,attribute:"icon-after-spin-duration"})],Lt.prototype,"iconAfterSpinDuration",void 0),Rt([pt({type:Boolean,reflect:!0})],Lt.prototype,"focused",void 0),Rt([pt({type:String,reflect:!0})],Lt.prototype,"name",void 0),Rt([pt({type:Boolean,reflect:!0,attribute:"icon-only"})],Lt.prototype,"iconOnly",void 0),Rt([pt({reflect:!0})],Lt.prototype,"type",void 0),Rt([pt()],Lt.prototype,"value",void 0),Lt=Rt([kt("vscode-button")],Lt);const Ut=[$t,n`
319
+ `}};Ut.styles=Tt,Ut.formAssociated=!0,Lt([vt({type:Boolean,reflect:!0})],Ut.prototype,"autofocus",void 0),Lt([vt({type:Number,reflect:!0})],Ut.prototype,"tabIndex",void 0),Lt([vt({type:Boolean,reflect:!0})],Ut.prototype,"secondary",void 0),Lt([vt({reflect:!0})],Ut.prototype,"role",void 0),Lt([vt({type:Boolean,reflect:!0})],Ut.prototype,"disabled",void 0),Lt([vt()],Ut.prototype,"icon",void 0),Lt([vt({type:Boolean,reflect:!0,attribute:"icon-spin"})],Ut.prototype,"iconSpin",void 0),Lt([vt({type:Number,reflect:!0,attribute:"icon-spin-duration"})],Ut.prototype,"iconSpinDuration",void 0),Lt([vt({attribute:"icon-after"})],Ut.prototype,"iconAfter",void 0),Lt([vt({type:Boolean,reflect:!0,attribute:"icon-after-spin"})],Ut.prototype,"iconAfterSpin",void 0),Lt([vt({type:Number,reflect:!0,attribute:"icon-after-spin-duration"})],Ut.prototype,"iconAfterSpinDuration",void 0),Lt([vt({type:Boolean,reflect:!0})],Ut.prototype,"focused",void 0),Lt([vt({type:String,reflect:!0})],Ut.prototype,"name",void 0),Lt([vt({type:Boolean,reflect:!0,attribute:"icon-only"})],Ut.prototype,"iconOnly",void 0),Lt([vt({reflect:!0})],Ut.prototype,"type",void 0),Lt([vt()],Ut.prototype,"value",void 0),Ut=Lt([$t("vscode-button")],Ut);const qt=[_t,n`
320
320
  :host {
321
321
  display: inline-flex;
322
322
  align-items: stretch;
@@ -343,7 +343,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
343
343
  ::slotted(vscode-button:focus) {
344
344
  z-index: 1;
345
345
  }
346
- `];var qt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Ht=class extends wt{render(){return U` <slot></slot> `}};Ht.styles=Ut,Ht=qt([(t=>(e,s)=>{void 0!==s?s.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)})("vscode-button-group")],Ht);var Wt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};class Kt extends wt{constructor(){super(),this.focused=!1,this._prevTabindex=0,this._handleFocus=()=>{this.focused=!0},this._handleBlur=()=>{this.focused=!1}}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this._handleFocus),this.addEventListener("blur",this._handleBlur)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this._handleFocus),this.removeEventListener("blur",this._handleBlur)}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s),"disabled"===t&&this.hasAttribute("disabled")?(this._prevTabindex=this.tabIndex,this.tabIndex=-1):"disabled"!==t||this.hasAttribute("disabled")||(this.tabIndex=this._prevTabindex)}}Wt([pt({type:Boolean,reflect:!0})],Kt.prototype,"focused",void 0);var Gt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const Jt=t=>{class e extends t{constructor(){super(...arguments),this._label="",this._slottedText=""}set label(t){this._label=t,""===this._slottedText&&this.setAttribute("aria-label",t)}get label(){return this._label}_handleSlotChange(){this._slottedText=this.textContent?this.textContent.trim():"",""!==this._slottedText&&this.setAttribute("aria-label",this._slottedText)}_renderLabelAttribute(){return""===this._slottedText?U`<span class="label-attr">${this._label}</span>`:U`${W}`}}return Gt([pt()],e.prototype,"label",null),e};var Yt=[n`
346
+ `];var Ht=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Wt=class extends kt{render(){return U` <slot></slot> `}};Wt.styles=qt,Wt=Ht([dt("vscode-button-group")],Wt);var Gt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};class Kt extends kt{constructor(){super(),this.focused=!1,this._prevTabindex=0,this._handleFocus=()=>{this.focused=!0},this._handleBlur=()=>{this.focused=!1}}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this._handleFocus),this.addEventListener("blur",this._handleBlur)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this._handleFocus),this.removeEventListener("blur",this._handleBlur)}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s),"disabled"===t&&this.hasAttribute("disabled")?(this._prevTabindex=this.tabIndex,this.tabIndex=-1):"disabled"!==t||this.hasAttribute("disabled")||(this.tabIndex=this._prevTabindex)}}Gt([vt({type:Boolean,reflect:!0})],Kt.prototype,"focused",void 0);var Jt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const Yt=t=>{class e extends t{constructor(){super(...arguments),this._label="",this._slottedText=""}set label(t){this._label=t,""===this._slottedText&&this.setAttribute("aria-label",t)}get label(){return this._label}_handleSlotChange(){this._slottedText=this.textContent?this.textContent.trim():"",""!==this._slottedText&&this.setAttribute("aria-label",this._slottedText)}_renderLabelAttribute(){return""===this._slottedText?U`<span class="label-attr">${this._label}</span>`:U`${W}`}}return Jt([vt()],e.prototype,"label",null),e};var Xt=[n`
347
347
  :host {
348
348
  color: var(--vscode-foreground, #cccccc);
349
349
  display: inline-block;
@@ -432,7 +432,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
432
432
  :host([disabled]) .label {
433
433
  cursor: default;
434
434
  }
435
- `];const Xt=[$t,Yt,n`
435
+ `];const Zt=[_t,Xt,n`
436
436
  :host(:invalid) .icon,
437
437
  :host([invalid]) .icon {
438
438
  background-color: var(--vscode-inputValidation-errorBackground, #5a1d1d);
@@ -454,7 +454,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
454
454
  outline: 1px solid var(--vscode-focusBorder, #0078d4);
455
455
  outline-offset: -1px;
456
456
  }
457
- `];var Zt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Qt=class extends(Jt(Kt)){set checked(t){this._checked=t,this._manageRequired(),this.requestUpdate()}get checked(){return this._checked}set required(t){this._required=t,this._manageRequired(),this.requestUpdate()}get required(){return this._required}get form(){return this._internals.form}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}constructor(){super(),this.autofocus=!1,this._checked=!1,this.defaultChecked=!1,this.invalid=!1,this.name=void 0,this.value="",this.disabled=!1,this.indeterminate=!1,this._required=!1,this.type="checkbox",this._handleClick=t=>{t.preventDefault(),this.disabled||this._toggleState()},this._handleKeyDown=t=>{this.disabled||"Enter"!==t.key&&" "!==t.key||(t.preventDefault()," "===t.key&&this._toggleState(),"Enter"===t.key&&this._internals.form?.requestSubmit())},this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._handleKeyDown),this.updateComplete.then((()=>{this._manageRequired(),this._setActualFormValue()}))}disconnectedCallback(){this.removeEventListener("keydown",this._handleKeyDown)}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}formResetCallback(){this.checked=this.defaultChecked}formStateRestoreCallback(t,e){t&&(this.checked=!0)}_setActualFormValue(){let t="";t=this.checked?this.value?this.value:"on":null,this._internals.setFormValue(t)}_toggleState(){this.checked=!this.checked,this.indeterminate=!1,this._setActualFormValue(),this._manageRequired(),this.dispatchEvent(new Event("change",{bubbles:!0})),this.dispatchEvent(new CustomEvent("vsc-change",{detail:{checked:this.checked,label:this.label,value:this.value},bubbles:!0,composed:!0}))}_manageRequired(){!this.checked&&this.required?this._internals.setValidity({valueMissing:!0},"Please check this box if you want to proceed.",this._inputEl??void 0):this._internals.setValidity({})}render(){const t=It({icon:!0,checked:this.checked,indeterminate:this.indeterminate}),e=It({"label-inner":!0}),s=U`<svg
457
+ `];var Qt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let te=class extends(Yt(Kt)){set checked(t){this._checked=t,this._manageRequired(),this.requestUpdate()}get checked(){return this._checked}set required(t){this._required=t,this._manageRequired(),this.requestUpdate()}get required(){return this._required}get form(){return this._internals.form}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}constructor(){super(),this.autofocus=!1,this._checked=!1,this.defaultChecked=!1,this.invalid=!1,this.name=void 0,this.value="",this.disabled=!1,this.indeterminate=!1,this._required=!1,this.type="checkbox",this._handleClick=t=>{t.preventDefault(),this.disabled||this._toggleState()},this._handleKeyDown=t=>{this.disabled||"Enter"!==t.key&&" "!==t.key||(t.preventDefault()," "===t.key&&this._toggleState(),"Enter"===t.key&&this._internals.form?.requestSubmit())},this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._handleKeyDown),this.updateComplete.then((()=>{this._manageRequired(),this._setActualFormValue()}))}disconnectedCallback(){this.removeEventListener("keydown",this._handleKeyDown)}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}formResetCallback(){this.checked=this.defaultChecked}formStateRestoreCallback(t,e){t&&(this.checked=!0)}_setActualFormValue(){let t="";t=this.checked?this.value?this.value:"on":null,this._internals.setFormValue(t)}_toggleState(){this.checked=!this.checked,this.indeterminate=!1,this._setActualFormValue(),this._manageRequired(),this.dispatchEvent(new Event("change",{bubbles:!0})),this.dispatchEvent(new CustomEvent("vsc-change",{detail:{checked:this.checked,label:this.label,value:this.value},bubbles:!0,composed:!0}))}_manageRequired(){!this.checked&&this.required?this._internals.setValidity({valueMissing:!0},"Please check this box if you want to proceed.",this._inputEl??void 0):this._internals.setValidity({})}render(){const t=Mt({icon:!0,checked:this.checked,indeterminate:this.indeterminate}),e=Mt({"label-inner":!0}),s=U`<svg
458
458
  width="16"
459
459
  height="16"
460
460
  viewBox="0 0 16 16"
@@ -485,7 +485,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
485
485
  </span>
486
486
  </label>
487
487
  </div>
488
- `}};Qt.styles=Xt,Qt.formAssociated=!0,Qt.shadowRootOptions={...ct.shadowRootOptions,delegatesFocus:!0},Zt([pt({type:Boolean,reflect:!0})],Qt.prototype,"autofocus",void 0),Zt([pt({type:Boolean,reflect:!0})],Qt.prototype,"checked",null),Zt([pt({type:Boolean,reflect:!0,attribute:"default-checked"})],Qt.prototype,"defaultChecked",void 0),Zt([pt({type:Boolean,reflect:!0})],Qt.prototype,"invalid",void 0),Zt([pt({reflect:!0})],Qt.prototype,"name",void 0),Zt([pt()],Qt.prototype,"value",void 0),Zt([pt({type:Boolean,reflect:!0})],Qt.prototype,"disabled",void 0),Zt([pt({type:Boolean,reflect:!0})],Qt.prototype,"indeterminate",void 0),Zt([pt({type:Boolean,reflect:!0})],Qt.prototype,"required",null),Zt([pt()],Qt.prototype,"type",void 0),Zt([ft("#input")],Qt.prototype,"_inputEl",void 0),Qt=Zt([kt("vscode-checkbox")],Qt);const te=[$t,n`
488
+ `}};te.styles=Zt,te.formAssociated=!0,te.shadowRootOptions={...ht.shadowRootOptions,delegatesFocus:!0},Qt([vt({type:Boolean,reflect:!0})],te.prototype,"autofocus",void 0),Qt([vt({type:Boolean,reflect:!0})],te.prototype,"checked",null),Qt([vt({type:Boolean,reflect:!0,attribute:"default-checked"})],te.prototype,"defaultChecked",void 0),Qt([vt({type:Boolean,reflect:!0})],te.prototype,"invalid",void 0),Qt([vt({reflect:!0})],te.prototype,"name",void 0),Qt([vt()],te.prototype,"value",void 0),Qt([vt({type:Boolean,reflect:!0})],te.prototype,"disabled",void 0),Qt([vt({type:Boolean,reflect:!0})],te.prototype,"indeterminate",void 0),Qt([vt({type:Boolean,reflect:!0})],te.prototype,"required",null),Qt([vt()],te.prototype,"type",void 0),Qt([gt("#input")],te.prototype,"_inputEl",void 0),te=Qt([$t("vscode-checkbox")],te);const ee=[_t,n`
489
489
  :host {
490
490
  display: block;
491
491
  }
@@ -515,11 +515,11 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
515
515
  :host([variant='vertical']) ::slotted(vscode-checkbox:last-child) {
516
516
  margin-bottom: 0;
517
517
  }
518
- `];var ee=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let se=class extends wt{constructor(){super(...arguments),this.role="group",this.variant="horizontal"}render(){return U`
518
+ `];var se=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let ie=class extends kt{constructor(){super(...arguments),this.role="group",this.variant="horizontal"}render(){return U`
519
519
  <div class="wrapper">
520
520
  <slot></slot>
521
521
  </div>
522
- `}};se.styles=te,ee([pt({reflect:!0})],se.prototype,"role",void 0),ee([pt({reflect:!0})],se.prototype,"variant",void 0),se=ee([kt("vscode-checkbox-group")],se);const ie=[$t,n`
522
+ `}};ie.styles=ee,se([vt({reflect:!0})],ie.prototype,"role",void 0),se([vt({reflect:!0})],ie.prototype,"variant",void 0),ie=se([$t("vscode-checkbox-group")],ie);const oe=[_t,n`
523
523
  .collapsible {
524
524
  background-color: var(--vscode-sideBar-background, #181818);
525
525
  }
@@ -608,7 +608,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
608
608
  .collapsible.open .collapsible-body {
609
609
  display: block;
610
610
  }
611
- `];var oe=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let re=class extends wt{constructor(){super(...arguments),this.title="",this.description="",this.open=!1}_emitToggleEvent(){this.dispatchEvent(new CustomEvent("vsc-collapsible-toggle",{detail:{open:this.open}}))}_onHeaderClick(){this.open=!this.open,this._emitToggleEvent()}_onHeaderKeyDown(t){"Enter"===t.key&&(this.open=!this.open,this._emitToggleEvent())}render(){const t=It({collapsible:!0,open:this.open}),e=U`<svg
611
+ `];var re=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let ne=class extends kt{constructor(){super(...arguments),this.title="",this.description="",this.open=!1}_emitToggleEvent(){this.dispatchEvent(new CustomEvent("vsc-collapsible-toggle",{detail:{open:this.open}}))}_onHeaderClick(){this.open=!this.open,this._emitToggleEvent()}_onHeaderKeyDown(t){"Enter"===t.key&&(this.open=!this.open,this._emitToggleEvent())}render(){const t=Mt({collapsible:!0,open:this.open}),e=U`<svg
612
612
  width="16"
613
613
  height="16"
614
614
  viewBox="0 0 16 16"
@@ -641,7 +641,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
641
641
  <slot></slot>
642
642
  </div>
643
643
  </div>
644
- `}};re.styles=ie,oe([pt({type:String})],re.prototype,"title",void 0),oe([pt()],re.prototype,"description",void 0),oe([pt({type:Boolean,reflect:!0})],re.prototype,"open",void 0),re=oe([kt("vscode-collapsible")],re);const ne=[$t,n`
644
+ `}};ne.styles=oe,re([vt({type:String})],ne.prototype,"title",void 0),re([vt()],ne.prototype,"description",void 0),re([vt({type:Boolean,reflect:!0})],ne.prototype,"open",void 0),ne=re([$t("vscode-collapsible")],ne);const le=[_t,n`
645
645
  :host {
646
646
  display: block;
647
647
  font-family: var(--vscode-font-family, sans-serif);
@@ -710,7 +710,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
710
710
  padding: 0 22px;
711
711
  text-align: right;
712
712
  }
713
- `];var le=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let ae=class extends wt{constructor(){super(...arguments),this.label="",this.keybinding="",this.value="",this.separator=!1,this.tabindex=0}onItemClick(){this.dispatchEvent(new CustomEvent("vsc-click",{detail:{label:this.label,keybinding:this.keybinding,value:this.value||this.label,separator:this.separator,tabindex:this.tabindex},bubbles:!0,composed:!0}))}render(){return U`
713
+ `];var ae=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let he=class extends kt{constructor(){super(...arguments),this.label="",this.keybinding="",this.value="",this.separator=!1,this.tabindex=0}onItemClick(){this.dispatchEvent(new CustomEvent("vsc-click",{detail:{label:this.label,keybinding:this.keybinding,value:this.value||this.label,separator:this.separator,tabindex:this.tabindex},bubbles:!0,composed:!0}))}render(){return U`
714
714
  ${this.separator?U`
715
715
  <div class="context-menu-item separator">
716
716
  <span class="ruler"></span>
@@ -723,7 +723,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
723
723
  </a>
724
724
  </div>
725
725
  `}
726
- `}};ae.styles=ne,le([pt({type:String})],ae.prototype,"label",void 0),le([pt({type:String})],ae.prototype,"keybinding",void 0),le([pt({type:String})],ae.prototype,"value",void 0),le([pt({type:Boolean,reflect:!0})],ae.prototype,"separator",void 0),le([pt({type:Number})],ae.prototype,"tabindex",void 0),ae=le([kt("vscode-context-menu-item")],ae);const ce=[$t,n`
726
+ `}};he.styles=le,ae([vt({type:String})],he.prototype,"label",void 0),ae([vt({type:String})],he.prototype,"keybinding",void 0),ae([vt({type:String})],he.prototype,"value",void 0),ae([vt({type:Boolean,reflect:!0})],he.prototype,"separator",void 0),ae([vt({type:Number})],he.prototype,"tabindex",void 0),he=ae([$t("vscode-context-menu-item")],he);const ce=[_t,n`
727
727
  :host {
728
728
  display: block;
729
729
  font-family: var(--vscode-font-family, sans-serif);
@@ -748,7 +748,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
748
748
  .context-menu:focus {
749
749
  outline: 0;
750
750
  }
751
- `];var he=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let de=class extends wt{set data(t){this._data=t;const e=[];t.forEach(((t,s)=>{t.separator||e.push(s)})),this._clickableItemIndexes=e}get data(){return this._data}set show(t){this._show=t,this._selectedClickableItemIndex=-1,t&&this.updateComplete.then((()=>{this._wrapperEl&&this._wrapperEl.focus(),requestAnimationFrame((()=>{document.addEventListener("click",this._onClickOutsideBound,{once:!0})}))}))}get show(){return this._show}constructor(){super(),this.preventClose=!1,this.tabIndex=0,this._selectedClickableItemIndex=-1,this._show=!1,this._data=[],this._clickableItemIndexes=[],this._onClickOutsideBound=this._onClickOutside.bind(this),this.addEventListener("keydown",this._onKeyDown)}_onClickOutside(t){t.composedPath().includes(this)||(this.show=!1)}_onKeyDown(t){const{key:e}=t;switch("ArrowUp"!==e&&"ArrowDown"!==e&&"Escape"!==e&&"Enter"!==e||t.preventDefault(),e){case"ArrowUp":this._handleArrowUp();break;case"ArrowDown":this._handleArrowDown();break;case"Escape":this._handleEscape();break;case"Enter":this._handleEnter()}}_handleArrowUp(){0===this._selectedClickableItemIndex?this._selectedClickableItemIndex=this._clickableItemIndexes.length-1:this._selectedClickableItemIndex-=1}_handleArrowDown(){this._selectedClickableItemIndex+1<this._clickableItemIndexes.length?this._selectedClickableItemIndex+=1:this._selectedClickableItemIndex=0}_handleEscape(){this.show=!1,document.removeEventListener("click",this._onClickOutsideBound)}_dispatchSelectEvent(t){const{keybinding:e,label:s,value:i,separator:o,tabindex:r}=t;this.dispatchEvent(new CustomEvent("vsc-context-menu-select",{detail:{keybinding:e,label:s,separator:o,tabindex:r,value:i}}))}_dispatchLegacySelectEvent(t){const{keybinding:e,label:s,value:i,separator:o,tabindex:r}=t,n={keybinding:e,label:s,value:i,separator:o,tabindex:r};this.dispatchEvent(new CustomEvent("vsc-select",{detail:n,bubbles:!0,composed:!0}))}_handleEnter(){if(-1===this._selectedClickableItemIndex)return;const t=this._clickableItemIndexes[this._selectedClickableItemIndex],e=this._wrapperEl.querySelectorAll("vscode-context-menu-item")[t];this._dispatchLegacySelectEvent(e),this._dispatchSelectEvent(e),this.preventClose||(this.show=!1,document.removeEventListener("click",this._onClickOutsideBound))}_onItemClick(t){const e=t.currentTarget;this._dispatchLegacySelectEvent(e),this._dispatchSelectEvent(e),this.preventClose||(this.show=!1)}_onItemMouseOver(t){const e=t.target,s=e.dataset.index?+e.dataset.index:-1,i=this._clickableItemIndexes.findIndex((t=>t===s));-1!==i&&(this._selectedClickableItemIndex=i)}_onItemMouseOut(){this._selectedClickableItemIndex=-1}render(){if(!this._show)return U`${W}`;const t=this._clickableItemIndexes[this._selectedClickableItemIndex];return U`
751
+ `];var de=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let ue=class extends kt{set data(t){this._data=t;const e=[];t.forEach(((t,s)=>{t.separator||e.push(s)})),this._clickableItemIndexes=e}get data(){return this._data}set show(t){this._show=t,this._selectedClickableItemIndex=-1,t&&this.updateComplete.then((()=>{this._wrapperEl&&this._wrapperEl.focus(),requestAnimationFrame((()=>{document.addEventListener("click",this._onClickOutsideBound,{once:!0})}))}))}get show(){return this._show}constructor(){super(),this.preventClose=!1,this.tabIndex=0,this._selectedClickableItemIndex=-1,this._show=!1,this._data=[],this._clickableItemIndexes=[],this._onClickOutsideBound=this._onClickOutside.bind(this),this.addEventListener("keydown",this._onKeyDown)}_onClickOutside(t){t.composedPath().includes(this)||(this.show=!1)}_onKeyDown(t){const{key:e}=t;switch("ArrowUp"!==e&&"ArrowDown"!==e&&"Escape"!==e&&"Enter"!==e||t.preventDefault(),e){case"ArrowUp":this._handleArrowUp();break;case"ArrowDown":this._handleArrowDown();break;case"Escape":this._handleEscape();break;case"Enter":this._handleEnter()}}_handleArrowUp(){0===this._selectedClickableItemIndex?this._selectedClickableItemIndex=this._clickableItemIndexes.length-1:this._selectedClickableItemIndex-=1}_handleArrowDown(){this._selectedClickableItemIndex+1<this._clickableItemIndexes.length?this._selectedClickableItemIndex+=1:this._selectedClickableItemIndex=0}_handleEscape(){this.show=!1,document.removeEventListener("click",this._onClickOutsideBound)}_dispatchSelectEvent(t){const{keybinding:e,label:s,value:i,separator:o,tabindex:r}=t;this.dispatchEvent(new CustomEvent("vsc-context-menu-select",{detail:{keybinding:e,label:s,separator:o,tabindex:r,value:i}}))}_dispatchLegacySelectEvent(t){const{keybinding:e,label:s,value:i,separator:o,tabindex:r}=t,n={keybinding:e,label:s,value:i,separator:o,tabindex:r};this.dispatchEvent(new CustomEvent("vsc-select",{detail:n,bubbles:!0,composed:!0}))}_handleEnter(){if(-1===this._selectedClickableItemIndex)return;const t=this._clickableItemIndexes[this._selectedClickableItemIndex],e=this._wrapperEl.querySelectorAll("vscode-context-menu-item")[t];this._dispatchLegacySelectEvent(e),this._dispatchSelectEvent(e),this.preventClose||(this.show=!1,document.removeEventListener("click",this._onClickOutsideBound))}_onItemClick(t){const e=t.currentTarget;this._dispatchLegacySelectEvent(e),this._dispatchSelectEvent(e),this.preventClose||(this.show=!1)}_onItemMouseOver(t){const e=t.target,s=e.dataset.index?+e.dataset.index:-1,i=this._clickableItemIndexes.findIndex((t=>t===s));-1!==i&&(this._selectedClickableItemIndex=i)}_onItemMouseOut(){this._selectedClickableItemIndex=-1}render(){if(!this._show)return U`${W}`;const t=this._clickableItemIndexes[this._selectedClickableItemIndex];return U`
752
752
  <div class="context-menu" tabindex="0">
753
753
  ${this.data?this.data.map((({label:e="",keybinding:s="",value:i="",separator:o=!1,tabindex:r=0},n)=>U`
754
754
  <vscode-context-menu-item
@@ -765,7 +765,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
765
765
  ></vscode-context-menu-item>
766
766
  `)):U`<slot></slot>`}
767
767
  </div>
768
- `}};de.styles=ce,he([pt({type:Array,attribute:!1})],de.prototype,"data",null),he([pt({type:Boolean,reflect:!0,attribute:"prevent-close"})],de.prototype,"preventClose",void 0),he([pt({type:Boolean,reflect:!0})],de.prototype,"show",null),he([pt({type:Number,reflect:!0})],de.prototype,"tabIndex",void 0),he([vt()],de.prototype,"_selectedClickableItemIndex",void 0),he([vt()],de.prototype,"_show",void 0),he([ft(".context-menu")],de.prototype,"_wrapperEl",void 0),de=he([kt("vscode-context-menu")],de);const ue=[$t,n`
768
+ `}};ue.styles=ce,de([vt({type:Array,attribute:!1})],ue.prototype,"data",null),de([vt({type:Boolean,reflect:!0,attribute:"prevent-close"})],ue.prototype,"preventClose",void 0),de([vt({type:Boolean,reflect:!0})],ue.prototype,"show",null),de([vt({type:Number,reflect:!0})],ue.prototype,"tabIndex",void 0),de([bt()],ue.prototype,"_selectedClickableItemIndex",void 0),de([bt()],ue.prototype,"_show",void 0),de([gt(".context-menu")],ue.prototype,"_wrapperEl",void 0),ue=de([$t("vscode-context-menu")],ue);const pe=[_t,n`
769
769
  :host {
770
770
  background-color: var(--vscode-foreground, #cccccc);
771
771
  display: block;
@@ -774,16 +774,16 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
774
774
  margin-top: 10px;
775
775
  opacity: 0.4;
776
776
  }
777
- `];var pe=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let ve=class extends wt{constructor(){super(...arguments),this.role="separator"}render(){return U``}};ve.styles=ue,pe([pt({reflect:!0})],ve.prototype,"role",void 0),ve=pe([kt("vscode-divider")],ve);const be=[$t,n`
777
+ `];var ve=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let be=class extends kt{constructor(){super(...arguments),this.role="separator"}render(){return U``}};be.styles=pe,ve([vt({reflect:!0})],be.prototype,"role",void 0),be=ve([$t("vscode-divider")],be);const fe=[_t,n`
778
778
  :host {
779
779
  display: block;
780
780
  max-width: 727px;
781
781
  }
782
- `];var fe,ge=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};!function(t){t.HORIZONTAL="horizontal",t.VERTICAL="vertical"}(fe||(fe={}));const me=t=>"vscode-checkbox"===t.tagName.toLocaleLowerCase(),xe=t=>"vscode-radio"===t.tagName.toLocaleLowerCase();let ye=class extends wt{constructor(){super(...arguments),this.breakpoint=490,this._responsive=!1,this._firstUpdateComplete=!1,this._resizeObserverCallbackBound=this._resizeObserverCallback.bind(this)}set responsive(t){this._responsive=t,this._firstUpdateComplete&&(t?this._activateResponsiveLayout():this._deactivateResizeObserver())}get responsive(){return this._responsive}get data(){return this._collectFormData()}_collectFormData(){const t=["vscode-textfield","vscode-textarea","vscode-single-select","vscode-multi-select","vscode-checkbox","vscode-radio"].join(","),e=this.querySelectorAll(t),s={};return e.forEach((t=>{if(!t.hasAttribute("name"))return;const e=t.getAttribute("name");e&&(me(t)&&t.checked?s[e]=Array.isArray(s[e])?[...s[e],t.value]:[t.value]:"vscode-multi-select"===t.tagName.toLocaleLowerCase()?s[e]=t.value:me(t)&&!t.checked?s[e]=Array.isArray(s[e])?s[e]:[]:xe(t)&&t.checked||(t=>["vscode-textfield","vscode-textarea"].includes(t.tagName.toLocaleLowerCase()))(t)||(t=>"vscode-single-select"===t.tagName.toLocaleLowerCase())(t)?s[e]=t.value:xe(t)&&!t.checked&&(s[e]=s[e]?s[e]:""))})),s}_toggleCompactLayout(t){this._assignedFormGroups.forEach((e=>{e.dataset.originalVariant||(e.dataset.originalVariant=e.variant);const s=e.dataset.originalVariant;t===fe.VERTICAL&&"horizontal"===s?e.variant="vertical":e.variant=s;e.querySelectorAll("vscode-checkbox-group, vscode-radio-group").forEach((e=>{e.dataset.originalVariant||(e.dataset.originalVariant=e.variant);const s=e.dataset.originalVariant;t===fe.HORIZONTAL&&s===fe.HORIZONTAL?e.variant="horizontal":e.variant="vertical"}))}))}_resizeObserverCallback(t){let e=0;for(const s of t)e=s.contentRect.width;const s=e<this.breakpoint?fe.VERTICAL:fe.HORIZONTAL;s!==this._currentFormGroupLayout&&(this._toggleCompactLayout(s),this._currentFormGroupLayout=s)}_activateResponsiveLayout(){this._resizeObserver=new ResizeObserver(this._resizeObserverCallbackBound),this._resizeObserver.observe(this._wrapperElement)}_deactivateResizeObserver(){this._resizeObserver?.disconnect(),this._resizeObserver=null}firstUpdated(){this._firstUpdateComplete=!0,this._responsive&&this._activateResponsiveLayout()}render(){return U`
782
+ `];var ge,me=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};!function(t){t.HORIZONTAL="horizontal",t.VERTICAL="vertical"}(ge||(ge={}));const xe=t=>"vscode-checkbox"===t.tagName.toLocaleLowerCase(),ye=t=>"vscode-radio"===t.tagName.toLocaleLowerCase();let we=class extends kt{constructor(){super(...arguments),this.breakpoint=490,this._responsive=!1,this._firstUpdateComplete=!1,this._resizeObserverCallbackBound=this._resizeObserverCallback.bind(this)}set responsive(t){this._responsive=t,this._firstUpdateComplete&&(t?this._activateResponsiveLayout():this._deactivateResizeObserver())}get responsive(){return this._responsive}get data(){return this._collectFormData()}_collectFormData(){const t=["vscode-textfield","vscode-textarea","vscode-single-select","vscode-multi-select","vscode-checkbox","vscode-radio"].join(","),e=this.querySelectorAll(t),s={};return e.forEach((t=>{if(!t.hasAttribute("name"))return;const e=t.getAttribute("name");e&&(xe(t)&&t.checked?s[e]=Array.isArray(s[e])?[...s[e],t.value]:[t.value]:"vscode-multi-select"===t.tagName.toLocaleLowerCase()?s[e]=t.value:xe(t)&&!t.checked?s[e]=Array.isArray(s[e])?s[e]:[]:ye(t)&&t.checked||(t=>["vscode-textfield","vscode-textarea"].includes(t.tagName.toLocaleLowerCase()))(t)||(t=>"vscode-single-select"===t.tagName.toLocaleLowerCase())(t)?s[e]=t.value:ye(t)&&!t.checked&&(s[e]=s[e]?s[e]:""))})),s}_toggleCompactLayout(t){this._assignedFormGroups.forEach((e=>{e.dataset.originalVariant||(e.dataset.originalVariant=e.variant);const s=e.dataset.originalVariant;t===ge.VERTICAL&&"horizontal"===s?e.variant="vertical":e.variant=s;e.querySelectorAll("vscode-checkbox-group, vscode-radio-group").forEach((e=>{e.dataset.originalVariant||(e.dataset.originalVariant=e.variant);const s=e.dataset.originalVariant;t===ge.HORIZONTAL&&s===ge.HORIZONTAL?e.variant="horizontal":e.variant="vertical"}))}))}_resizeObserverCallback(t){let e=0;for(const s of t)e=s.contentRect.width;const s=e<this.breakpoint?ge.VERTICAL:ge.HORIZONTAL;s!==this._currentFormGroupLayout&&(this._toggleCompactLayout(s),this._currentFormGroupLayout=s)}_activateResponsiveLayout(){this._resizeObserver=new ResizeObserver(this._resizeObserverCallbackBound),this._resizeObserver.observe(this._wrapperElement)}_deactivateResizeObserver(){this._resizeObserver?.disconnect(),this._resizeObserver=null}firstUpdated(){this._firstUpdateComplete=!0,this._responsive&&this._activateResponsiveLayout()}render(){return U`
783
783
  <div class="wrapper">
784
784
  <slot></slot>
785
785
  </div>
786
- `}};ye.styles=be,ge([pt({type:Boolean,reflect:!0})],ye.prototype,"responsive",null),ge([pt({type:Number})],ye.prototype,"breakpoint",void 0),ge([pt({type:Object})],ye.prototype,"data",null),ge([ft(".wrapper")],ye.prototype,"_wrapperElement",void 0),ge([mt({selector:"vscode-form-group"})],ye.prototype,"_assignedFormGroups",void 0),ye=ge([kt("vscode-form-container")],ye);const we=[$t,n`
786
+ `}};we.styles=fe,me([vt({type:Boolean,reflect:!0})],we.prototype,"responsive",null),me([vt({type:Number})],we.prototype,"breakpoint",void 0),me([vt({type:Object})],we.prototype,"data",null),me([gt(".wrapper")],we.prototype,"_wrapperElement",void 0),me([xt({selector:"vscode-form-group"})],we.prototype,"_assignedFormGroups",void 0),we=me([$t("vscode-form-container")],we);const ke=[_t,n`
787
787
  :host {
788
788
  --label-right-margin: 14px;
789
789
  --label-width: 150px;
@@ -868,11 +868,11 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
868
868
  ::slotted(vscode-button) {
869
869
  margin-right: 4px;
870
870
  }
871
- `];var ke=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let $e=class extends wt{constructor(){super(...arguments),this.variant="horizontal"}render(){return U`
871
+ `];var $e=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let _e=class extends kt{constructor(){super(...arguments),this.variant="horizontal"}render(){return U`
872
872
  <div class="wrapper">
873
873
  <slot></slot>
874
874
  </div>
875
- `}};$e.styles=we,ke([pt({reflect:!0})],$e.prototype,"variant",void 0),$e=ke([kt("vscode-form-group")],$e);const _e=[$t,n`
875
+ `}};_e.styles=ke,$e([vt({reflect:!0})],_e.prototype,"variant",void 0),_e=$e([$t("vscode-form-group")],_e);const Se=[_t,n`
876
876
  :host {
877
877
  display: block;
878
878
  line-height: 1.4em;
@@ -885,7 +885,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
885
885
  :host([vertical]) {
886
886
  margin-left: 0;
887
887
  }
888
- `];var Ce=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const Se=new CSSStyleSheet;Se.replaceSync("\n vscode-form-helper * {\n margin: 0;\n }\n\n vscode-form-helper *:not(:last-child) {\n margin-bottom: 8px;\n }\n");let Be=class extends wt{constructor(){super(),this._injectLightDOMStyles()}_injectLightDOMStyles(){const t=document.adoptedStyleSheets.find((t=>t===Se));t||document.adoptedStyleSheets.push(Se)}render(){return U`<slot></slot>`}};Be.styles=_e,Be=Ce([kt("vscode-form-helper")],Be);let ze=0;const Oe=(t="")=>(ze++,`${t}${ze}`),Ae=[$t,n`
888
+ `];var Ce=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const Be=new CSSStyleSheet;Be.replaceSync("\n vscode-form-helper * {\n margin: 0;\n }\n\n vscode-form-helper *:not(:last-child) {\n margin-bottom: 8px;\n }\n");let Oe=class extends kt{constructor(){super(),this._injectLightDOMStyles()}_injectLightDOMStyles(){const t=document.adoptedStyleSheets.find((t=>t===Be));t||document.adoptedStyleSheets.push(Be)}render(){return U`<slot></slot>`}};Oe.styles=Se,Oe=Ce([$t("vscode-form-helper")],Oe);let ze=0;const Ae=(t="")=>(ze++,`${t}${ze}`),Ee=[_t,n`
889
889
  :host {
890
890
  color: var(--vscode-foreground, #cccccc);
891
891
  font-family: var(--vscode-font-family, sans-serif);
@@ -913,13 +913,13 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
913
913
  color: var(--vscode-foreground, #cccccc);
914
914
  opacity: 0.9;
915
915
  }
916
- `];var Ee=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let je=class extends wt{constructor(){super(...arguments),this.required=!1,this._id="",this._htmlFor="",this._connected=!1}set htmlFor(t){this._htmlFor=t,this.setAttribute("for",t),this._connected&&this._connectWithTarget()}get htmlFor(){return this._htmlFor}set id(t){this._id=t}get id(){return this._id}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s)}connectedCallback(){super.connectedCallback(),this._connected=!0,""===this._id&&(this._id=Oe("vscode-label-"),this.setAttribute("id",this._id)),this._connectWithTarget()}_getTarget(){let t=null;if(this._htmlFor){const e=this.getRootNode({composed:!1});e&&(t=e.querySelector(`#${this._htmlFor}`))}return t}async _connectWithTarget(){await this.updateComplete;const t=this._getTarget();["vscode-radio-group","vscode-checkbox-group"].includes(t?.tagName.toLowerCase()??"")&&t.setAttribute("aria-labelledby",this._id);let e="";this.textContent&&(e=this.textContent.trim()),t&&"label"in t&&["vscode-textfield","vscode-textarea","vscode-single-select","vscode-multi-select"].includes(t?.tagName.toLowerCase()??"")&&(t.label=e)}_handleClick(){const t=this._getTarget();t&&"focus"in t&&t.focus()}render(){return U`
916
+ `];var Ie=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let je=class extends kt{constructor(){super(...arguments),this.required=!1,this._id="",this._htmlFor="",this._connected=!1}set htmlFor(t){this._htmlFor=t,this.setAttribute("for",t),this._connected&&this._connectWithTarget()}get htmlFor(){return this._htmlFor}set id(t){this._id=t}get id(){return this._id}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s)}connectedCallback(){super.connectedCallback(),this._connected=!0,""===this._id&&(this._id=Ae("vscode-label-"),this.setAttribute("id",this._id)),this._connectWithTarget()}_getTarget(){let t=null;if(this._htmlFor){const e=this.getRootNode({composed:!1});e&&(t=e.querySelector(`#${this._htmlFor}`))}return t}async _connectWithTarget(){await this.updateComplete;const t=this._getTarget();["vscode-radio-group","vscode-checkbox-group"].includes(t?.tagName.toLowerCase()??"")&&t.setAttribute("aria-labelledby",this._id);let e="";this.textContent&&(e=this.textContent.trim()),t&&"label"in t&&["vscode-textfield","vscode-textarea","vscode-single-select","vscode-multi-select"].includes(t?.tagName.toLowerCase()??"")&&(t.label=e)}_handleClick(){const t=this._getTarget();t&&"focus"in t&&t.focus()}render(){return U`
917
917
  <label
918
- class=${It({wrapper:!0,required:this.required})}
918
+ class=${Mt({wrapper:!0,required:this.required})}
919
919
  @click=${this._handleClick}
920
920
  ><slot></slot
921
921
  ></label>
922
- `}};je.styles=Ae,Ee([pt({reflect:!0,attribute:"for"})],je.prototype,"htmlFor",null),Ee([pt()],je.prototype,"id",null),Ee([pt({type:Boolean,reflect:!0})],je.prototype,"required",void 0),je=Ee([kt("vscode-label")],je);const Ie=U`
922
+ `}};je.styles=Ee,Ie([vt({reflect:!0,attribute:"for"})],je.prototype,"htmlFor",null),Ie([vt()],je.prototype,"id",null),Ie([vt({type:Boolean,reflect:!0})],je.prototype,"required",void 0),je=Ie([$t("vscode-label")],je);const Me=U`
923
923
  <span class="icon">
924
924
  <svg
925
925
  width="16"
@@ -935,7 +935,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
935
935
  />
936
936
  </svg>
937
937
  </span>
938
- `,Me=q`<svg
938
+ `,Pe=q`<svg
939
939
  width="16"
940
940
  height="16"
941
941
  viewBox="0 0 16 16"
@@ -947,7 +947,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
947
947
  clip-rule="evenodd"
948
948
  d="M14.431 3.323l-8.47 10-.79-.036-3.35-4.77.818-.574 2.978 4.24 8.051-9.506.764.646z"
949
949
  />
950
- </svg>`,{I:Pe}=rt,Fe=()=>document.createComment(""),Ne=(t,e,s)=>{const i=t._$AA.parentNode,o=void 0===e?t._$AB:e._$AA;if(void 0===s){const e=i.insertBefore(Fe(),o),r=i.insertBefore(Fe(),o);s=new Pe(e,r,t,t.options)}else{const e=s._$AB.nextSibling,r=s._$AM,n=r!==t;if(n){let e;s._$AQ?.(t),s._$AM=t,void 0!==s._$AP&&(e=t._$AU)!==r._$AU&&s._$AP(e)}if(e!==o||n){let t=s._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,o),t=e}}}return s},De=(t,e,s=t)=>(t._$AI(e,s),t),Ve={},Te=t=>{t._$AP?.(!1,!0);let e=t._$AA;const s=t._$AB.nextSibling;for(;e!==s;){const t=e.nextSibling;e.remove(),e=t}},Re=(t,e,s)=>{const i=new Map;for(let o=e;o<=s;o++)i.set(t[o],o);return i},Le=Et(class extends jt{constructor(t){if(super(t),t.type!==Ot)throw Error("repeat() can only be used in text expressions")}dt(t,e,s){let i;void 0===s?s=e:void 0!==e&&(i=e);const o=[],r=[];let n=0;for(const e of t)o[n]=i?i(e,n):n,r[n]=s(e,n),n++;return{values:r,keys:o}}render(t,e,s){return this.dt(t,e,s).values}update(t,[e,s,i]){const o=(t=>t._$AH)(t),{values:r,keys:n}=this.dt(e,s,i);if(!Array.isArray(o))return this.ut=n,r;const l=this.ut??=[],a=[];let c,h,d=0,u=o.length-1,p=0,v=r.length-1;for(;d<=u&&p<=v;)if(null===o[d])d++;else if(null===o[u])u--;else if(l[d]===n[p])a[p]=De(o[d],r[p]),d++,p++;else if(l[u]===n[v])a[v]=De(o[u],r[v]),u--,v--;else if(l[d]===n[v])a[v]=De(o[d],r[v]),Ne(t,a[v+1],o[d]),d++,v--;else if(l[u]===n[p])a[p]=De(o[u],r[p]),Ne(t,o[d],o[u]),u--,p++;else if(void 0===c&&(c=Re(n,p,v),h=Re(l,d,u)),c.has(l[d]))if(c.has(l[u])){const e=h.get(n[p]),s=void 0!==e?o[e]:null;if(null===s){const e=Ne(t,o[d]);De(e,r[p]),a[p]=e}else a[p]=De(s,r[p]),Ne(t,o[d],s),o[e]=null;p++}else Te(o[u]),u--;else Te(o[d]),d++;for(;p<=v;){const e=Ne(t,a[v+1]);De(e,r[p]),a[p++]=e}for(;d<=u;){const t=o[d++];null!==t&&Te(t)}return this.ut=n,((t,e=Ve)=>{t._$AH=e})(t,a),H}});var Ue=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let qe=class extends wt{constructor(){super(...arguments),this.description="",this.selected=!1,this.disabled=!1,this._initialized=!1,this._handleSlotChange=()=>{this._initialized&&this.dispatchEvent(new Event("vsc-option-state-change",{bubbles:!0}))}}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._initialized=!0}))}willUpdate(t){this._initialized&&(t.has("description")||t.has("value")||t.has("selected")||t.has("disabled"))&&this.dispatchEvent(new Event("vsc-option-state-change",{bubbles:!0}))}render(){return U`<slot @slotchange=${this._handleSlotChange}></slot>`}};qe.styles=$t,Ue([pt({type:String})],qe.prototype,"value",void 0),Ue([pt({type:String})],qe.prototype,"description",void 0),Ue([pt({type:Boolean,reflect:!0})],qe.prototype,"selected",void 0),Ue([pt({type:Boolean,reflect:!0})],qe.prototype,"disabled",void 0),qe=Ue([kt("vscode-option")],qe);const He=(t,e)=>{const s={match:!1,ranges:[]},i=t.toLowerCase(),o=e.toLowerCase(),r=i.split(" ");let n=0;return r.forEach(((e,i)=>{if(i>0&&(n+=r[i-1].length+1),s.match)return;const l=e.indexOf(o),a=o.length;0===l&&(s.match=!0,s.ranges.push([n+l,Math.min(n+l+a,t.length)]))})),s},We=(t,e)=>{const s={match:!1,ranges:[]};return 0===t.toLowerCase().indexOf(e.toLowerCase())&&(s.match=!0,s.ranges=[[0,e.length]]),s},Ke=(t,e)=>{const s={match:!1,ranges:[]},i=t.toLowerCase().indexOf(e.toLowerCase());return i>-1&&(s.match=!0,s.ranges=[[i,i+e.length]]),s},Ge=(t,e)=>{const s={match:!1,ranges:[]};let i=0,o=0;const r=e.length-1,n=t.toLowerCase(),l=e.toLowerCase();for(let t=0;t<=r;t++){if(o=n.indexOf(l[t],i),-1===o)return{match:!1,ranges:[]};s.match=!0,s.ranges.push([o,o+1]),i=o+1}return s},Je=t=>{const e=[];return" "===t?(e.push(U`&nbsp;`),e):(0===t.indexOf(" ")&&e.push(U`&nbsp;`),e.push(U`${t.trimStart().trimEnd()}`),t.lastIndexOf(" ")===t.length-1&&e.push(U`&nbsp;`),e)};class Ye{constructor(t){this._activeIndex=-1,this._options=[],this._filterPattern="",this._filterMethod="fuzzy",this._combobox=!1,this._indexByValue=new Map,this._indexByLabel=new Map,this._selectedIndex=-1,this._selectedIndexes=new Set,this._multiSelect=!1,this._numOfVisibleOptions=0,(this._host=t).addController(this)}hostConnected(){}get activeIndex(){return this._activeIndex}set activeIndex(t){this._activeIndex=t,this._host.requestUpdate()}get relativeActiveIndex(){return this._options[this._activeIndex]?.filteredIndex??-1}set comboboxMode(t){this._combobox=t,this._host.requestUpdate()}get comboboxMode(){return this._combobox}get multiSelect(){return this._multiSelect}set multiSelect(t){this._selectedIndex=-1,this._selectedIndexes.clear(),this._multiSelect=t,this._host.requestUpdate()}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){-1!==this._selectedIndex&&(this._options[this._selectedIndex].selected??=!1);const e=this.getOptionByIndex(t);this._selectedIndex=e?t:-1,this._host.requestUpdate()}get selectedIndexes(){return Array.from(this._selectedIndexes)}set selectedIndexes(t){this._selectedIndexes.forEach((t=>{this._options[t].selected=!1})),this._selectedIndexes=new Set(t),t.forEach((t=>{void 0!==this._options[t]&&(this._options[t].selected=!0)})),this._host.requestUpdate()}set value(t){if(this._multiSelect){const e=t.map((t=>this._indexByValue.get(t))).filter((t=>void 0!==t));this._selectedIndexes=new Set(e)}else this._selectedIndex=this._indexByValue.get(t)??-1;this._host.requestUpdate()}get value(){return this._multiSelect?this._selectedIndexes.size>0?Array.from(this._selectedIndexes).map((t=>this._options[t].value)):[]:this._selectedIndex>-1?this._options[this._selectedIndex].value:""}set multiSelectValue(t){const e=t.map((t=>this._indexByValue.get(t))).filter((t=>void 0!==t));this._selectedIndexes=new Set(e)}get multiSelectValue(){return this._selectedIndexes.size>0?Array.from(this._selectedIndexes).map((t=>this._options[t].value)):[]}get filterPattern(){return this._filterPattern}set filterPattern(t){t!==this._filterPattern&&(this._filterPattern=t,this._updateState())}get filterMethod(){return this._filterMethod}set filterMethod(t){t!==this._filterMethod&&(this._filterMethod=t,this._updateState())}get options(){return this._options}get numOfVisibleOptions(){return this._numOfVisibleOptions}get numOptions(){return this._options.length}populate(t){this._indexByValue.clear(),this._indexByLabel.clear(),this._options=t.map(((t,e)=>(this._indexByValue.set(t.value??"",e),this._indexByLabel.set(t.label??"",e),{description:t.description??"",disabled:t.disabled??!1,label:t.label??"",selected:t.selected??!1,value:t.value??"",index:e,filteredIndex:e,ranges:[],visible:!0}))),this._numOfVisibleOptions=this._options.length}add(t){const e=this._options.length,{description:s,disabled:i,label:o,selected:r,value:n}=t;let l=!0,a=[];if(this._combobox&&""!==this._filterPattern){const t=this._searchByPattern(o??"");l=t.match,a=t.ranges}this._indexByValue.set(n??"",e),this._indexByLabel.set(o??"",e),r&&(this._selectedIndex=e,this._selectedIndexes.add(e),this._activeIndex=e),this._options.push({index:e,filteredIndex:e,description:s??"",disabled:i??!1,label:o??"",selected:r??!1,value:n??"",visible:l,ranges:a}),l&&(this._numOfVisibleOptions+=1)}clear(){this._options=[],this._indexByValue.clear(),this._indexByLabel.clear(),this._numOfVisibleOptions=0}getIsIndexSelected(t){return this._multiSelect?this._selectedIndexes.has(t):this._selectedIndex===t}expandMultiSelection(t){t.forEach((t=>{const e=this._indexByValue.get(t)??-1;-1!==e&&this._selectedIndexes.add(e)})),this._host.requestUpdate()}toggleActiveMultiselectOption(){const t=this._options[this._activeIndex]??null;if(!t)return;this._selectedIndexes.has(t.index)?this._selectedIndexes.delete(t.index):this._selectedIndexes.add(t.index),this._host.requestUpdate()}toggleOptionSelected(t){const e=this._selectedIndexes.has(t);this._options[t].selected=!this._options[t].selected,e?this._selectedIndexes.delete(t):this._selectedIndexes.add(t),this._host.requestUpdate()}getActiveOption(){return this._options[this._activeIndex]??null}getSelectedOption(){return this._options[this._selectedIndex]??null}getOptionByIndex(t){return this._options[t]??null}findOptionIndex(t){return this._indexByValue.get(t)??-1}getOptionByValue(t,e=!1){const s=this._indexByValue.get(t)??-1;return-1===s?null:e||this._options[s].visible?this._options[s]:null}getOptionByLabel(t){const e=this._indexByLabel.get(t)??-1;return-1===e?null:this._options[e]}next(t){let e=-1;for(let s=(t??this._activeIndex)+1;s<this._options.length;s++)if(this._options[s]&&!this._options[s].disabled&&this._options[s].visible){e=s;break}return e>-1?this._options[e]:null}prev(t){let e=-1;for(let s=(t??this._activeIndex)-1;s>=0;s--)if(this._options[s]&&!this._options[s].disabled&&this._options[s].visible){e=s;break}return e>-1?this._options[e]:null}activateDefault(){if(this._multiSelect){if(this._selectedIndexes.size>0){const t=this._selectedIndexes.values().next();this._activeIndex=t.value?t.value:0}}else this._selectedIndex>-1?this._activeIndex=this._selectedIndex:this._activeIndex=0;this._host.requestUpdate()}selectAll(){this._multiSelect&&(this._options.forEach(((t,e)=>{this._options[e].selected=!0,this._selectedIndexes.add(e)})),this._host.requestUpdate())}selectNone(){this._multiSelect&&(this._options.forEach(((t,e)=>{this._options[e].selected=!1})),this._selectedIndexes.clear(),this._host.requestUpdate())}_searchByPattern(t){let e;switch(this._filterMethod){case"startsWithPerTerm":e=He(t,this._filterPattern);break;case"startsWith":e=We(t,this._filterPattern);break;case"contains":e=Ke(t,this._filterPattern);break;default:e=Ge(t,this._filterPattern)}return e}_updateState(){if(this._combobox&&""!==this._filterPattern){let t=-1;this._numOfVisibleOptions=0,this._options.forEach((({label:e},s)=>{const i=this._searchByPattern(e);this._options[s].visible=i.match,this._options[s].ranges=i.ranges,this._options[s].filteredIndex=i.match?++t:-1,i.match&&(this._numOfVisibleOptions+=1)}))}else this._options.forEach(((t,e)=>{this._options[e].visible=!0,this._options[e].ranges=[]})),this._numOfVisibleOptions=this._options.length;this._host.requestUpdate()}}const Xe=[$t,n`
950
+ </svg>`,{I:Fe}=rt,De=()=>document.createComment(""),Ve=(t,e,s)=>{const i=t._$AA.parentNode,o=void 0===e?t._$AB:e._$AA;if(void 0===s){const e=i.insertBefore(De(),o),r=i.insertBefore(De(),o);s=new Fe(e,r,t,t.options)}else{const e=s._$AB.nextSibling,r=s._$AM,n=r!==t;if(n){let e;s._$AQ?.(t),s._$AM=t,void 0!==s._$AP&&(e=t._$AU)!==r._$AU&&s._$AP(e)}if(e!==o||n){let t=s._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,o),t=e}}}return s},Ne=(t,e,s=t)=>(t._$AI(e,s),t),Re={},Te=t=>{t._$AP?.(!1,!0);let e=t._$AA;const s=t._$AB.nextSibling;for(;e!==s;){const t=e.nextSibling;e.remove(),e=t}},Le=(t,e,s)=>{const i=new Map;for(let o=e;o<=s;o++)i.set(t[o],o);return i},Ue=It(class extends jt{constructor(t){if(super(t),t.type!==At)throw Error("repeat() can only be used in text expressions")}dt(t,e,s){let i;void 0===s?s=e:void 0!==e&&(i=e);const o=[],r=[];let n=0;for(const e of t)o[n]=i?i(e,n):n,r[n]=s(e,n),n++;return{values:r,keys:o}}render(t,e,s){return this.dt(t,e,s).values}update(t,[e,s,i]){const o=(t=>t._$AH)(t),{values:r,keys:n}=this.dt(e,s,i);if(!Array.isArray(o))return this.ut=n,r;const l=this.ut??=[],a=[];let h,c,d=0,u=o.length-1,p=0,v=r.length-1;for(;d<=u&&p<=v;)if(null===o[d])d++;else if(null===o[u])u--;else if(l[d]===n[p])a[p]=Ne(o[d],r[p]),d++,p++;else if(l[u]===n[v])a[v]=Ne(o[u],r[v]),u--,v--;else if(l[d]===n[v])a[v]=Ne(o[d],r[v]),Ve(t,a[v+1],o[d]),d++,v--;else if(l[u]===n[p])a[p]=Ne(o[u],r[p]),Ve(t,o[d],o[u]),u--,p++;else if(void 0===h&&(h=Le(n,p,v),c=Le(l,d,u)),h.has(l[d]))if(h.has(l[u])){const e=c.get(n[p]),s=void 0!==e?o[e]:null;if(null===s){const e=Ve(t,o[d]);Ne(e,r[p]),a[p]=e}else a[p]=Ne(s,r[p]),Ve(t,o[d],s),o[e]=null;p++}else Te(o[u]),u--;else Te(o[d]),d++;for(;p<=v;){const e=Ve(t,a[v+1]);Ne(e,r[p]),a[p++]=e}for(;d<=u;){const t=o[d++];null!==t&&Te(t)}return this.ut=n,((t,e=Re)=>{t._$AH=e})(t,a),H}});var qe=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let He=class extends kt{constructor(){super(...arguments),this.description="",this.selected=!1,this.disabled=!1,this._initialized=!1,this._handleSlotChange=()=>{this._initialized&&this.dispatchEvent(new Event("vsc-option-state-change",{bubbles:!0}))}}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._initialized=!0}))}willUpdate(t){this._initialized&&(t.has("description")||t.has("value")||t.has("selected")||t.has("disabled"))&&this.dispatchEvent(new Event("vsc-option-state-change",{bubbles:!0}))}render(){return U`<slot @slotchange=${this._handleSlotChange}></slot>`}};He.styles=_t,qe([vt({type:String})],He.prototype,"value",void 0),qe([vt({type:String})],He.prototype,"description",void 0),qe([vt({type:Boolean,reflect:!0})],He.prototype,"selected",void 0),qe([vt({type:Boolean,reflect:!0})],He.prototype,"disabled",void 0),He=qe([$t("vscode-option")],He);const We=(t,e)=>{const s={match:!1,ranges:[]},i=t.toLowerCase(),o=e.toLowerCase(),r=i.split(" ");let n=0;return r.forEach(((e,i)=>{if(i>0&&(n+=r[i-1].length+1),s.match)return;const l=e.indexOf(o),a=o.length;0===l&&(s.match=!0,s.ranges.push([n+l,Math.min(n+l+a,t.length)]))})),s},Ge=(t,e)=>{const s={match:!1,ranges:[]};return 0===t.toLowerCase().indexOf(e.toLowerCase())&&(s.match=!0,s.ranges=[[0,e.length]]),s},Ke=(t,e)=>{const s={match:!1,ranges:[]},i=t.toLowerCase().indexOf(e.toLowerCase());return i>-1&&(s.match=!0,s.ranges=[[i,i+e.length]]),s},Je=(t,e)=>{const s={match:!1,ranges:[]};let i=0,o=0;const r=e.length-1,n=t.toLowerCase(),l=e.toLowerCase();for(let t=0;t<=r;t++){if(o=n.indexOf(l[t],i),-1===o)return{match:!1,ranges:[]};s.match=!0,s.ranges.push([o,o+1]),i=o+1}return s},Ye=t=>{const e=[];return" "===t?(e.push(U`&nbsp;`),e):(0===t.indexOf(" ")&&e.push(U`&nbsp;`),e.push(U`${t.trimStart().trimEnd()}`),t.lastIndexOf(" ")===t.length-1&&e.push(U`&nbsp;`),e)};class Xe{constructor(t){this._activeIndex=-1,this._options=[],this._filterPattern="",this._filterMethod="fuzzy",this._combobox=!1,this._indexByValue=new Map,this._indexByLabel=new Map,this._selectedIndex=-1,this._selectedIndexes=new Set,this._multiSelect=!1,this._numOfVisibleOptions=0,(this._host=t).addController(this)}hostConnected(){}get activeIndex(){return this._activeIndex}set activeIndex(t){this._activeIndex=t,this._host.requestUpdate()}get relativeActiveIndex(){return this._options[this._activeIndex]?.filteredIndex??-1}set comboboxMode(t){this._combobox=t,this._host.requestUpdate()}get comboboxMode(){return this._combobox}get multiSelect(){return this._multiSelect}set multiSelect(t){this._selectedIndex=-1,this._selectedIndexes.clear(),this._multiSelect=t,this._host.requestUpdate()}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){-1!==this._selectedIndex&&(this._options[this._selectedIndex].selected??=!1);const e=this.getOptionByIndex(t);this._selectedIndex=e?t:-1,this._host.requestUpdate()}get selectedIndexes(){return Array.from(this._selectedIndexes)}set selectedIndexes(t){this._selectedIndexes.forEach((t=>{this._options[t].selected=!1})),this._selectedIndexes=new Set(t),t.forEach((t=>{void 0!==this._options[t]&&(this._options[t].selected=!0)})),this._host.requestUpdate()}set value(t){if(this._multiSelect){const e=t.map((t=>this._indexByValue.get(t))).filter((t=>void 0!==t));this._selectedIndexes=new Set(e)}else this._selectedIndex=this._indexByValue.get(t)??-1;this._host.requestUpdate()}get value(){return this._multiSelect?this._selectedIndexes.size>0?Array.from(this._selectedIndexes).map((t=>this._options[t].value)):[]:this._selectedIndex>-1?this._options[this._selectedIndex].value:""}set multiSelectValue(t){const e=t.map((t=>this._indexByValue.get(t))).filter((t=>void 0!==t));this._selectedIndexes=new Set(e)}get multiSelectValue(){return this._selectedIndexes.size>0?Array.from(this._selectedIndexes).map((t=>this._options[t].value)):[]}get filterPattern(){return this._filterPattern}set filterPattern(t){t!==this._filterPattern&&(this._filterPattern=t,this._updateState())}get filterMethod(){return this._filterMethod}set filterMethod(t){t!==this._filterMethod&&(this._filterMethod=t,this._updateState())}get options(){return this._options}get numOfVisibleOptions(){return this._numOfVisibleOptions}get numOptions(){return this._options.length}populate(t){this._indexByValue.clear(),this._indexByLabel.clear(),this._options=t.map(((t,e)=>(this._indexByValue.set(t.value??"",e),this._indexByLabel.set(t.label??"",e),{description:t.description??"",disabled:t.disabled??!1,label:t.label??"",selected:t.selected??!1,value:t.value??"",index:e,filteredIndex:e,ranges:[],visible:!0}))),this._numOfVisibleOptions=this._options.length}add(t){const e=this._options.length,{description:s,disabled:i,label:o,selected:r,value:n}=t;let l=!0,a=[];if(this._combobox&&""!==this._filterPattern){const t=this._searchByPattern(o??"");l=t.match,a=t.ranges}this._indexByValue.set(n??"",e),this._indexByLabel.set(o??"",e),r&&(this._selectedIndex=e,this._selectedIndexes.add(e),this._activeIndex=e),this._options.push({index:e,filteredIndex:e,description:s??"",disabled:i??!1,label:o??"",selected:r??!1,value:n??"",visible:l,ranges:a}),l&&(this._numOfVisibleOptions+=1)}clear(){this._options=[],this._indexByValue.clear(),this._indexByLabel.clear(),this._numOfVisibleOptions=0}getIsIndexSelected(t){return this._multiSelect?this._selectedIndexes.has(t):this._selectedIndex===t}expandMultiSelection(t){t.forEach((t=>{const e=this._indexByValue.get(t)??-1;-1!==e&&this._selectedIndexes.add(e)})),this._host.requestUpdate()}toggleActiveMultiselectOption(){const t=this._options[this._activeIndex]??null;if(!t)return;this._selectedIndexes.has(t.index)?this._selectedIndexes.delete(t.index):this._selectedIndexes.add(t.index),this._host.requestUpdate()}toggleOptionSelected(t){const e=this._selectedIndexes.has(t);this._options[t].selected=!this._options[t].selected,e?this._selectedIndexes.delete(t):this._selectedIndexes.add(t),this._host.requestUpdate()}getActiveOption(){return this._options[this._activeIndex]??null}getSelectedOption(){return this._options[this._selectedIndex]??null}getOptionByIndex(t){return this._options[t]??null}findOptionIndex(t){return this._indexByValue.get(t)??-1}getOptionByValue(t,e=!1){const s=this._indexByValue.get(t)??-1;return-1===s?null:e||this._options[s].visible?this._options[s]:null}getOptionByLabel(t){const e=this._indexByLabel.get(t)??-1;return-1===e?null:this._options[e]}next(t){let e=-1;for(let s=(t??this._activeIndex)+1;s<this._options.length;s++)if(this._options[s]&&!this._options[s].disabled&&this._options[s].visible){e=s;break}return e>-1?this._options[e]:null}prev(t){let e=-1;for(let s=(t??this._activeIndex)-1;s>=0;s--)if(this._options[s]&&!this._options[s].disabled&&this._options[s].visible){e=s;break}return e>-1?this._options[e]:null}activateDefault(){if(this._multiSelect){if(this._selectedIndexes.size>0){const t=this._selectedIndexes.values().next();this._activeIndex=t.value?t.value:0}}else this._selectedIndex>-1?this._activeIndex=this._selectedIndex:this._activeIndex=0;this._host.requestUpdate()}selectAll(){this._multiSelect&&(this._options.forEach(((t,e)=>{this._options[e].selected=!0,this._selectedIndexes.add(e)})),this._host.requestUpdate())}selectNone(){this._multiSelect&&(this._options.forEach(((t,e)=>{this._options[e].selected=!1})),this._selectedIndexes.clear(),this._host.requestUpdate())}_searchByPattern(t){let e;switch(this._filterMethod){case"startsWithPerTerm":e=We(t,this._filterPattern);break;case"startsWith":e=Ge(t,this._filterPattern);break;case"contains":e=Ke(t,this._filterPattern);break;default:e=Je(t,this._filterPattern)}return e}_updateState(){if(this._combobox&&""!==this._filterPattern){let t=-1;this._numOfVisibleOptions=0,this._options.forEach((({label:e},s)=>{const i=this._searchByPattern(e);this._options[s].visible=i.match,this._options[s].ranges=i.ranges,this._options[s].filteredIndex=i.match?++t:-1,i.match&&(this._numOfVisibleOptions+=1)}))}else this._options.forEach(((t,e)=>{this._options[e].visible=!0,this._options[e].ranges=[]})),this._numOfVisibleOptions=this._options.length;this._host.requestUpdate()}}const Ze=[_t,n`
951
951
  :host {
952
952
  display: block;
953
953
  position: relative;
@@ -1050,25 +1050,25 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1050
1050
  .content {
1051
1051
  overflow: hidden;
1052
1052
  }
1053
- `];var Ze=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Qe=class extends wt{set scrollPos(t){this._scrollPos=t,this._updateScrollbar(),this._updateThumbPosition(),this.requestUpdate()}get scrollPos(){return this._scrollPos}get scrollMax(){return this._scrollableContainer?this._scrollableContainer.scrollHeight:0}constructor(){super(),this.alwaysVisible=!1,this.fastScrollSensitivity=5,this.minThumbSize=20,this.mouseWheelScrollSensitivity=1,this.shadow=!0,this.scrolled=!1,this._scrollPos=0,this._isDragging=!1,this._thumbHeight=0,this._thumbY=0,this._thumbVisible=!1,this._thumbFade=!1,this._thumbActive=!1,this._scrollThumbStartY=0,this._mouseStartY=0,this._scrollbarVisible=!0,this._scrollbarTrackZ=0,this._resizeObserverCallback=()=>{this._updateScrollbar(),this._updateThumbPosition()},this._handleSlotChange=()=>{this._updateScrollbar(),this._updateThumbPosition(),this._zIndexFix()},this._handleScrollThumbMouseMove=t=>{const e=this._scrollThumbStartY+(t.screenY-this._mouseStartY);this._thumbY=this._limitThumbPos(e),this.scrollPos=this._calculateScrollPosFromThumbPos(this._thumbY),this.dispatchEvent(new CustomEvent("vsc-scrollable-scroll",{detail:this.scrollPos}))},this._handleScrollThumbMouseUp=t=>{this._isDragging=!1,this._thumbActive=!1;const e=this.getBoundingClientRect(),{x:s,y:i,width:o,height:r}=e,{pageX:n,pageY:l}=t;(n>s+o||n<s||l>i+r||l<i)&&(this._thumbFade=!0,this._thumbVisible=!1),document.removeEventListener("mousemove",this._handleScrollThumbMouseMove),document.removeEventListener("mouseup",this._handleScrollThumbMouseUp)},this._handleComponentMouseOver=()=>{this._thumbVisible=!0,this._thumbFade=!1},this._handleComponentMouseOut=()=>{this._thumbActive||(this._thumbVisible=!1,this._thumbFade=!0)},this._handleComponentWheel=t=>{t.preventDefault();const e=t.altKey?this.mouseWheelScrollSensitivity*this.fastScrollSensitivity:this.mouseWheelScrollSensitivity;this.scrollPos=this._limitScrollPos(this.scrollPos+t.deltaY*e),this.dispatchEvent(new CustomEvent("vsc-scrollable-scroll",{detail:this.scrollPos}))},this._handleScrollableContainerScroll=t=>{t.currentTarget&&(this.scrollPos=t.currentTarget.scrollTop)},this.addEventListener("mouseover",this._handleComponentMouseOver),this.addEventListener("mouseout",this._handleComponentMouseOut),this.addEventListener("wheel",this._handleComponentWheel)}connectedCallback(){super.connectedCallback(),this._hostResizeObserver=new ResizeObserver(this._resizeObserverCallback),this._contentResizeObserver=new ResizeObserver(this._resizeObserverCallback),this.requestUpdate(),this.updateComplete.then((()=>{this._hostResizeObserver.observe(this),this._contentResizeObserver.observe(this._contentElement),this._updateThumbPosition()}))}disconnectedCallback(){super.disconnectedCallback(),this._hostResizeObserver.unobserve(this),this._hostResizeObserver.disconnect(),this._contentResizeObserver.unobserve(this._contentElement),this._contentResizeObserver.disconnect()}firstUpdated(t){this._updateThumbPosition()}_calcThumbHeight(){const t=this.offsetHeight,e=t*(t/(this._contentElement?.offsetHeight??0));return Math.max(this.minThumbSize,e)}_updateScrollbar(){const t=this._contentElement?.offsetHeight??0;this.offsetHeight>=t?this._scrollbarVisible=!1:(this._scrollbarVisible=!0,this._thumbHeight=this._calcThumbHeight()),this.requestUpdate()}_zIndexFix(){let t=0;this._assignedElements.forEach((e=>{if("style"in e){const s=window.getComputedStyle(e).zIndex;/([0-9-])+/g.test(s)&&(t=Number(s)>t?Number(s):t)}})),this._scrollbarTrackZ=t+1,this.requestUpdate()}_updateThumbPosition(){if(!this._scrollableContainer)return;const t=this._scrollPos;this.scrolled=t>0;const e=this.offsetHeight,s=this._thumbHeight,i=t/(this._contentElement.offsetHeight-e),o=e-s;this._thumbY=Math.min(i*(e-s),o)}_calculateScrollPosFromThumbPos(t){const e=this.getBoundingClientRect().height,s=t/(e-this._scrollThumbElement.getBoundingClientRect().height)*(this._contentElement.getBoundingClientRect().height-e);return this._limitScrollPos(s)}_limitScrollPos(t){return t<0?0:t>this.scrollMax?this.scrollMax:t}_limitThumbPos(t){const e=this.getBoundingClientRect().height,s=this._scrollThumbElement.getBoundingClientRect().height;return t<0?0:t>e-s?e-s:t}_handleScrollThumbMouseDown(t){const e=this.getBoundingClientRect(),s=this._scrollThumbElement.getBoundingClientRect();this._mouseStartY=t.screenY,this._scrollThumbStartY=s.top-e.top,this._isDragging=!0,this._thumbActive=!0,document.addEventListener("mousemove",this._handleScrollThumbMouseMove),document.addEventListener("mouseup",this._handleScrollThumbMouseUp)}_handleScrollbarTrackPress(t){t.target===t.currentTarget&&(this._thumbY=t.offsetY-this._thumbHeight/2,this.scrollPos=this._calculateScrollPosFromThumbPos(this._thumbY))}render(){return U`
1053
+ `];var Qe=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let ts=class extends kt{set scrollPos(t){this._scrollPos=t,this._updateScrollbar(),this._updateThumbPosition(),this.requestUpdate()}get scrollPos(){return this._scrollPos}get scrollMax(){return this._scrollableContainer?this._scrollableContainer.scrollHeight:0}constructor(){super(),this.alwaysVisible=!1,this.fastScrollSensitivity=5,this.minThumbSize=20,this.mouseWheelScrollSensitivity=1,this.shadow=!0,this.scrolled=!1,this._scrollPos=0,this._isDragging=!1,this._thumbHeight=0,this._thumbY=0,this._thumbVisible=!1,this._thumbFade=!1,this._thumbActive=!1,this._scrollThumbStartY=0,this._mouseStartY=0,this._scrollbarVisible=!0,this._scrollbarTrackZ=0,this._resizeObserverCallback=()=>{this._updateScrollbar(),this._updateThumbPosition()},this._handleSlotChange=()=>{this._updateScrollbar(),this._updateThumbPosition(),this._zIndexFix()},this._handleScrollThumbMouseMove=t=>{const e=this._scrollThumbStartY+(t.screenY-this._mouseStartY);this._thumbY=this._limitThumbPos(e),this.scrollPos=this._calculateScrollPosFromThumbPos(this._thumbY),this.dispatchEvent(new CustomEvent("vsc-scrollable-scroll",{detail:this.scrollPos}))},this._handleScrollThumbMouseUp=t=>{this._isDragging=!1,this._thumbActive=!1;const e=this.getBoundingClientRect(),{x:s,y:i,width:o,height:r}=e,{pageX:n,pageY:l}=t;(n>s+o||n<s||l>i+r||l<i)&&(this._thumbFade=!0,this._thumbVisible=!1),document.removeEventListener("mousemove",this._handleScrollThumbMouseMove),document.removeEventListener("mouseup",this._handleScrollThumbMouseUp)},this._handleComponentMouseOver=()=>{this._thumbVisible=!0,this._thumbFade=!1},this._handleComponentMouseOut=()=>{this._thumbActive||(this._thumbVisible=!1,this._thumbFade=!0)},this._handleComponentWheel=t=>{t.preventDefault();const e=t.altKey?this.mouseWheelScrollSensitivity*this.fastScrollSensitivity:this.mouseWheelScrollSensitivity;this.scrollPos=this._limitScrollPos(this.scrollPos+t.deltaY*e),this.dispatchEvent(new CustomEvent("vsc-scrollable-scroll",{detail:this.scrollPos}))},this._handleScrollableContainerScroll=t=>{t.currentTarget&&(this.scrollPos=t.currentTarget.scrollTop)},this.addEventListener("mouseover",this._handleComponentMouseOver),this.addEventListener("mouseout",this._handleComponentMouseOut),this.addEventListener("wheel",this._handleComponentWheel)}connectedCallback(){super.connectedCallback(),this._hostResizeObserver=new ResizeObserver(this._resizeObserverCallback),this._contentResizeObserver=new ResizeObserver(this._resizeObserverCallback),this.requestUpdate(),this.updateComplete.then((()=>{this._hostResizeObserver.observe(this),this._contentResizeObserver.observe(this._contentElement),this._updateThumbPosition()}))}disconnectedCallback(){super.disconnectedCallback(),this._hostResizeObserver.unobserve(this),this._hostResizeObserver.disconnect(),this._contentResizeObserver.unobserve(this._contentElement),this._contentResizeObserver.disconnect()}firstUpdated(t){this._updateThumbPosition()}_calcThumbHeight(){const t=this.offsetHeight,e=t*(t/(this._contentElement?.offsetHeight??0));return Math.max(this.minThumbSize,e)}_updateScrollbar(){const t=this._contentElement?.offsetHeight??0;this.offsetHeight>=t?this._scrollbarVisible=!1:(this._scrollbarVisible=!0,this._thumbHeight=this._calcThumbHeight()),this.requestUpdate()}_zIndexFix(){let t=0;this._assignedElements.forEach((e=>{if("style"in e){const s=window.getComputedStyle(e).zIndex;/([0-9-])+/g.test(s)&&(t=Number(s)>t?Number(s):t)}})),this._scrollbarTrackZ=t+1,this.requestUpdate()}_updateThumbPosition(){if(!this._scrollableContainer)return;const t=this._scrollPos;this.scrolled=t>0;const e=this.offsetHeight,s=this._thumbHeight,i=t/(this._contentElement.offsetHeight-e),o=e-s;this._thumbY=Math.min(i*(e-s),o)}_calculateScrollPosFromThumbPos(t){const e=this.getBoundingClientRect().height,s=t/(e-this._scrollThumbElement.getBoundingClientRect().height)*(this._contentElement.getBoundingClientRect().height-e);return this._limitScrollPos(s)}_limitScrollPos(t){return t<0?0:t>this.scrollMax?this.scrollMax:t}_limitThumbPos(t){const e=this.getBoundingClientRect().height,s=this._scrollThumbElement.getBoundingClientRect().height;return t<0?0:t>e-s?e-s:t}_handleScrollThumbMouseDown(t){const e=this.getBoundingClientRect(),s=this._scrollThumbElement.getBoundingClientRect();this._mouseStartY=t.screenY,this._scrollThumbStartY=s.top-e.top,this._isDragging=!0,this._thumbActive=!0,document.addEventListener("mousemove",this._handleScrollThumbMouseMove),document.addEventListener("mouseup",this._handleScrollThumbMouseUp)}_handleScrollbarTrackPress(t){t.target===t.currentTarget&&(this._thumbY=t.offsetY-this._thumbHeight/2,this.scrollPos=this._calculateScrollPosFromThumbPos(this._thumbY))}render(){return U`
1054
1054
  <div
1055
1055
  class="scrollable-container"
1056
- .style=${Pt({userSelect:this._isDragging?"none":"auto"})}
1056
+ .style=${Ft({userSelect:this._isDragging?"none":"auto"})}
1057
1057
  .scrollTop=${this._scrollPos}
1058
1058
  @scroll=${this._handleScrollableContainerScroll}
1059
1059
  >
1060
1060
  <div
1061
- class=${It({shadow:!0,visible:this.scrolled})}
1062
- .style=${Pt({zIndex:String(this._scrollbarTrackZ)})}
1061
+ class=${Mt({shadow:!0,visible:this.scrolled})}
1062
+ .style=${Ft({zIndex:String(this._scrollbarTrackZ)})}
1063
1063
  ></div>
1064
1064
  ${this._isDragging?U`<div class="prevent-interaction"></div>`:W}
1065
1065
  <div
1066
- class=${It({"scrollbar-track":!0,hidden:!this._scrollbarVisible})}
1066
+ class=${Mt({"scrollbar-track":!0,hidden:!this._scrollbarVisible})}
1067
1067
  @mousedown=${this._handleScrollbarTrackPress}
1068
1068
  >
1069
1069
  <div
1070
- class=${It({"scrollbar-thumb":!0,visible:!!this.alwaysVisible||this._thumbVisible,fade:!this.alwaysVisible&&this._thumbFade,active:this._thumbActive})}
1071
- .style=${Pt({height:`${this._thumbHeight}px`,top:`${this._thumbY}px`})}
1070
+ class=${Mt({"scrollbar-thumb":!0,visible:!!this.alwaysVisible||this._thumbVisible,fade:!this.alwaysVisible&&this._thumbFade,active:this._thumbActive})}
1071
+ .style=${Ft({height:`${this._thumbHeight}px`,top:`${this._thumbY}px`})}
1072
1072
  @mousedown=${this._handleScrollThumbMouseDown}
1073
1073
  ></div>
1074
1074
  </div>
@@ -1076,11 +1076,11 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1076
1076
  <slot @slotchange=${this._handleSlotChange}></slot>
1077
1077
  </div>
1078
1078
  </div>
1079
- `}};Qe.styles=Xe,Ze([pt({type:Boolean,reflect:!0,attribute:"always-visible"})],Qe.prototype,"alwaysVisible",void 0),Ze([pt({type:Number,attribute:"fast-scroll-sensitivity"})],Qe.prototype,"fastScrollSensitivity",void 0),Ze([pt({type:Number,attribute:"min-thumb-size"})],Qe.prototype,"minThumbSize",void 0),Ze([pt({type:Number,attribute:"mouse-wheel-scroll-sensitivity"})],Qe.prototype,"mouseWheelScrollSensitivity",void 0),Ze([pt({type:Boolean,reflect:!0})],Qe.prototype,"shadow",void 0),Ze([pt({type:Boolean,reflect:!0})],Qe.prototype,"scrolled",void 0),Ze([pt({type:Number,attribute:"scroll-pos"})],Qe.prototype,"scrollPos",null),Ze([pt({type:Number,attribute:"scroll-max"})],Qe.prototype,"scrollMax",null),Ze([vt()],Qe.prototype,"_isDragging",void 0),Ze([vt()],Qe.prototype,"_thumbHeight",void 0),Ze([vt()],Qe.prototype,"_thumbY",void 0),Ze([vt()],Qe.prototype,"_thumbVisible",void 0),Ze([vt()],Qe.prototype,"_thumbFade",void 0),Ze([vt()],Qe.prototype,"_thumbActive",void 0),Ze([ft(".content")],Qe.prototype,"_contentElement",void 0),Ze([ft(".scrollbar-thumb",!0)],Qe.prototype,"_scrollThumbElement",void 0),Ze([ft(".scrollable-container")],Qe.prototype,"_scrollableContainer",void 0),Ze([mt()],Qe.prototype,"_assignedElements",void 0),Qe=Ze([kt("vscode-scrollable")],Qe);var ts=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const es=22;class ss extends wt{set combobox(t){this._opts.comboboxMode=t}get combobox(){return this._opts.comboboxMode}set disabled(t){this._disabled=t,this.ariaDisabled=t?"true":"false",!0===t?(this._originalTabIndex=this.tabIndex,this.tabIndex=-1):(this.tabIndex=this._originalTabIndex??0,this._originalTabIndex=void 0),this.requestUpdate()}get disabled(){return this._disabled}set filter(t){let e;["contains","fuzzy","startsWith","startsWithPerTerm"].includes(t)?e=t:(console.warn(`[VSCode Webview Elements] Invalid filter: "${t}", fallback to default. Valid values are: "contains", "fuzzy", "startsWith", "startsWithPerm".`,this),e="fuzzy"),this._opts.filterMethod=e}get filter(){return this._opts.filterMethod}set options(t){this._opts.populate(t)}get options(){return this._opts.options.map((({label:t,value:e,description:s,selected:i,disabled:o})=>({label:t,value:e,description:s,selected:i,disabled:o})))}constructor(){super(),this.creatable=!1,this.label="",this.invalid=!1,this.focused=!1,this.open=!1,this.position="below",this._opts=new Ye(this),this._firstUpdateCompleted=!1,this._currentDescription="",this._filter="fuzzy",this._selectedIndexes=[],this._options=[],this._value="",this._values=[],this._isPlaceholderOptionActive=!1,this._isBeingFiltered=!1,this._optionListScrollPos=0,this._isHoverForbidden=!1,this._disabled=!1,this._originalTabIndex=void 0,this._onClickOutside=t=>{-1===t.composedPath().findIndex((t=>t===this))&&(this.open=!1)},this._onMouseMove=()=>{this._isHoverForbidden=!1,window.removeEventListener("mousemove",this._onMouseMove)},this._onOptionListScroll=t=>{this._optionListScrollPos=t.detail},this._onComponentKeyDown=t=>{[" ","ArrowUp","ArrowDown","Escape"].includes(t.key)&&(t.stopPropagation(),t.preventDefault()),"Enter"===t.key&&this._onEnterKeyDown(t)," "===t.key&&this._onSpaceKeyDown(),"Escape"===t.key&&this._onEscapeKeyDown(),"ArrowUp"===t.key&&this._onArrowUpKeyDown(),"ArrowDown"===t.key&&this._onArrowDownKeyDown()},this._onComponentFocus=()=>{this.focused=!0},this._onComponentBlur=()=>{this.focused=!1},this.addEventListener("vsc-option-state-change",(t=>{t.stopPropagation(),this._setStateFromSlottedElements(),this.requestUpdate()}))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._onComponentKeyDown),this.addEventListener("focus",this._onComponentFocus),this.addEventListener("blur",this._onComponentBlur),this._setAutoFocus()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._onComponentKeyDown),this.removeEventListener("focus",this._onComponentFocus),this.removeEventListener("blur",this._onComponentBlur)}firstUpdated(t){this._firstUpdateCompleted=!0}willUpdate(t){t.has("required")&&this._firstUpdateCompleted&&this._manageRequired()}update(t){super.update(t),t.has("open")&&(this.open?(this._opts.activateDefault(),this._scrollActiveElementToTop(),window.addEventListener("click",this._onClickOutside)):window.removeEventListener("click",this._onClickOutside))}get _filteredOptions(){return this.combobox&&""!==this._opts.filterPattern?((t,e,s)=>{const i=[];return t.forEach((t=>{let o;switch(s){case"startsWithPerTerm":o=He(t.label,e);break;case"startsWith":o=We(t.label,e);break;case"contains":o=Ke(t.label,e);break;default:o=Ge(t.label,e)}o.match&&i.push({...t,ranges:o.ranges})})),i})(this._options,this._opts.filterPattern,this._filter):this._options}_setAutoFocus(){this.hasAttribute("autofocus")&&(this.tabIndex<0&&(this.tabIndex=0),this.combobox?this.updateComplete.then((()=>{this.shadowRoot?.querySelector(".combobox-input").focus()})):this.updateComplete.then((()=>{this.shadowRoot?.querySelector(".select-face").focus()})))}get _isSuggestedOptionVisible(){if(!this.combobox||!this.creatable)return!1;const t=null!==this._opts.getOptionByValue(this._opts.filterPattern),e=this._opts.filterPattern.length>0;return!t&&e}_manageRequired(){}_setStateFromSlottedElements(){const t=this._assignedOptions??[];this._opts.clear(),t.forEach((t=>{const{innerText:e,description:s,disabled:i}=t,o="string"==typeof t.value?t.value:e.trim(),r=t.selected??!1,n={label:e.trim(),value:o,description:s,selected:r,disabled:i};this._opts.add(n)}))}_createSuggestedOption(){const t=this._opts.numOptions,e=document.createElement("vscode-option");return e.value=this._opts.filterPattern,lt(this._opts.filterPattern,e),this.appendChild(e),t}_dispatchChangeEvent(){this.dispatchEvent(new Event("change")),this.dispatchEvent(new Event("input"))}async _createAndSelectSuggestedOption(){}_toggleComboboxDropdown(){this._opts.filterPattern="",this.open=!this.open}_scrollActiveElementToTop(){this._optionListScrollPos=Math.floor(this._opts.relativeActiveIndex*es)}async _adjustOptionListScrollPos(t,e){let s=this._opts.numOfVisibleOptions;if(this._isSuggestedOptionVisible&&(s+=1),s<=10)return;this._isHoverForbidden=!0,window.addEventListener("mousemove",this._onMouseMove);const i=this._optionListScrollPos,o=e*es,r=o>=i&&o<=i+220-es;"down"===t&&(r||(this._optionListScrollPos=e*es-198)),"up"===t&&(r||(this._optionListScrollPos=Math.floor(this._opts.relativeActiveIndex*es)))}_onFaceClick(){this.open=!this.open}_onComboboxButtonClick(){this._toggleComboboxDropdown()}_onComboboxButtonKeyDown(t){"Enter"===t.key&&this._toggleComboboxDropdown()}_onOptionMouseOver(t){if(this._isHoverForbidden)return;const e=t.target;e.matches(".option")&&(e.matches(".placeholder")?(this._isPlaceholderOptionActive=!0,this._opts.activeIndex=-1):(this._isPlaceholderOptionActive=!1,this._opts.activeIndex=+e.dataset.index))}_onPlaceholderOptionMouseOut(){this._isPlaceholderOptionActive=!1}_onNoOptionsClick(t){t.stopPropagation()}_onEnterKeyDown(t){this._isBeingFiltered=!1;!!t?.composedPath&&t.composedPath().find((t=>!!t.matches&&t.matches("vscode-button.button-accept")))}_onSpaceKeyDown(){this.open||(this.open=!0)}_onArrowUpKeyDown(){if(this.open){if(this._opts.activeIndex<=0&&(!this.combobox||!this.creatable))return;if(this._isPlaceholderOptionActive){const t=this._opts.numOfVisibleOptions-1;this._opts.activeIndex=t,this._isPlaceholderOptionActive=!1}else{const t=this._opts.prev();if(null!==t){this._opts.activeIndex=t?.index??-1;const e=t?.filteredIndex??-1;e>-1&&this._adjustOptionListScrollPos("up",e)}}}else this.open=!0,this._opts.activateDefault()}_onArrowDownKeyDown(){let t=this._opts.numOfVisibleOptions;const e=this._isSuggestedOptionVisible;if(e&&(t+=1),this.open){if(this._isPlaceholderOptionActive&&-1===this._opts.activeIndex)return;const s=this._opts.next();if(e&&null===s)this._isPlaceholderOptionActive=!0,this._adjustOptionListScrollPos("down",t-1),this._opts.activeIndex=-1;else if(null!==s){const t=s?.filteredIndex??-1;this._opts.activeIndex=s?.index??-1,t>-1&&this._adjustOptionListScrollPos("down",t)}}else this.open=!0,this._opts.activateDefault()}_onEscapeKeyDown(){this.open=!1}_onSlotChange(){this._setStateFromSlottedElements(),this.requestUpdate()}_onComboboxInputFocus(t){t.target.select(),this._isBeingFiltered=!1,this._opts.filterPattern=""}_onComboboxInputBlur(){this._isBeingFiltered=!1}_onComboboxInputInput(t){this._isBeingFiltered=!0,this._opts.filterPattern=t.target.value,this._opts.activeIndex=-1,this.open=!0}_onComboboxInputClick(){this._isBeingFiltered=""!==this._opts.filterPattern,this.open=!0}_onComboboxInputSpaceKeyDown(t){" "===t.key&&t.stopPropagation()}_onOptionClick(t){this._isBeingFiltered=!1}_renderCheckbox(t,e){return U`<span class=${It({"checkbox-icon":!0,checked:t})}>${Me}</span
1079
+ `}};ts.styles=Ze,Qe([vt({type:Boolean,reflect:!0,attribute:"always-visible"})],ts.prototype,"alwaysVisible",void 0),Qe([vt({type:Number,attribute:"fast-scroll-sensitivity"})],ts.prototype,"fastScrollSensitivity",void 0),Qe([vt({type:Number,attribute:"min-thumb-size"})],ts.prototype,"minThumbSize",void 0),Qe([vt({type:Number,attribute:"mouse-wheel-scroll-sensitivity"})],ts.prototype,"mouseWheelScrollSensitivity",void 0),Qe([vt({type:Boolean,reflect:!0})],ts.prototype,"shadow",void 0),Qe([vt({type:Boolean,reflect:!0})],ts.prototype,"scrolled",void 0),Qe([vt({type:Number,attribute:"scroll-pos"})],ts.prototype,"scrollPos",null),Qe([vt({type:Number,attribute:"scroll-max"})],ts.prototype,"scrollMax",null),Qe([bt()],ts.prototype,"_isDragging",void 0),Qe([bt()],ts.prototype,"_thumbHeight",void 0),Qe([bt()],ts.prototype,"_thumbY",void 0),Qe([bt()],ts.prototype,"_thumbVisible",void 0),Qe([bt()],ts.prototype,"_thumbFade",void 0),Qe([bt()],ts.prototype,"_thumbActive",void 0),Qe([gt(".content")],ts.prototype,"_contentElement",void 0),Qe([gt(".scrollbar-thumb",!0)],ts.prototype,"_scrollThumbElement",void 0),Qe([gt(".scrollable-container")],ts.prototype,"_scrollableContainer",void 0),Qe([xt()],ts.prototype,"_assignedElements",void 0),ts=Qe([$t("vscode-scrollable")],ts);var es=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const ss=22;class is extends kt{set combobox(t){this._opts.comboboxMode=t}get combobox(){return this._opts.comboboxMode}set disabled(t){this._disabled=t,this.ariaDisabled=t?"true":"false",!0===t?(this._originalTabIndex=this.tabIndex,this.tabIndex=-1):(this.tabIndex=this._originalTabIndex??0,this._originalTabIndex=void 0),this.requestUpdate()}get disabled(){return this._disabled}set filter(t){let e;["contains","fuzzy","startsWith","startsWithPerTerm"].includes(t)?e=t:(console.warn(`[VSCode Webview Elements] Invalid filter: "${t}", fallback to default. Valid values are: "contains", "fuzzy", "startsWith", "startsWithPerm".`,this),e="fuzzy"),this._opts.filterMethod=e}get filter(){return this._opts.filterMethod}set options(t){this._opts.populate(t)}get options(){return this._opts.options.map((({label:t,value:e,description:s,selected:i,disabled:o})=>({label:t,value:e,description:s,selected:i,disabled:o})))}constructor(){super(),this.creatable=!1,this.label="",this.invalid=!1,this.focused=!1,this.open=!1,this.position="below",this._opts=new Xe(this),this._firstUpdateCompleted=!1,this._currentDescription="",this._filter="fuzzy",this._selectedIndexes=[],this._options=[],this._value="",this._values=[],this._isPlaceholderOptionActive=!1,this._isBeingFiltered=!1,this._optionListScrollPos=0,this._isHoverForbidden=!1,this._disabled=!1,this._originalTabIndex=void 0,this._onClickOutside=t=>{-1===t.composedPath().findIndex((t=>t===this))&&(this.open=!1)},this._onMouseMove=()=>{this._isHoverForbidden=!1,window.removeEventListener("mousemove",this._onMouseMove)},this._onOptionListScroll=t=>{this._optionListScrollPos=t.detail},this._onComponentKeyDown=t=>{[" ","ArrowUp","ArrowDown","Escape"].includes(t.key)&&(t.stopPropagation(),t.preventDefault()),"Enter"===t.key&&this._onEnterKeyDown(t)," "===t.key&&this._onSpaceKeyDown(),"Escape"===t.key&&this._onEscapeKeyDown(),"ArrowUp"===t.key&&this._onArrowUpKeyDown(),"ArrowDown"===t.key&&this._onArrowDownKeyDown()},this._onComponentFocus=()=>{this.focused=!0},this._onComponentBlur=()=>{this.focused=!1},this.addEventListener("vsc-option-state-change",(t=>{t.stopPropagation(),this._setStateFromSlottedElements(),this.requestUpdate()}))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._onComponentKeyDown),this.addEventListener("focus",this._onComponentFocus),this.addEventListener("blur",this._onComponentBlur),this._setAutoFocus()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._onComponentKeyDown),this.removeEventListener("focus",this._onComponentFocus),this.removeEventListener("blur",this._onComponentBlur)}firstUpdated(t){this._firstUpdateCompleted=!0}willUpdate(t){t.has("required")&&this._firstUpdateCompleted&&this._manageRequired()}update(t){super.update(t),t.has("open")&&(this.open?(this._opts.activateDefault(),this._scrollActiveElementToTop(),window.addEventListener("click",this._onClickOutside)):window.removeEventListener("click",this._onClickOutside))}get _filteredOptions(){return this.combobox&&""!==this._opts.filterPattern?((t,e,s)=>{const i=[];return t.forEach((t=>{let o;switch(s){case"startsWithPerTerm":o=We(t.label,e);break;case"startsWith":o=Ge(t.label,e);break;case"contains":o=Ke(t.label,e);break;default:o=Je(t.label,e)}o.match&&i.push({...t,ranges:o.ranges})})),i})(this._options,this._opts.filterPattern,this._filter):this._options}_setAutoFocus(){this.hasAttribute("autofocus")&&(this.tabIndex<0&&(this.tabIndex=0),this.combobox?this.updateComplete.then((()=>{this.shadowRoot?.querySelector(".combobox-input").focus()})):this.updateComplete.then((()=>{this.shadowRoot?.querySelector(".select-face").focus()})))}get _isSuggestedOptionVisible(){if(!this.combobox||!this.creatable)return!1;const t=null!==this._opts.getOptionByValue(this._opts.filterPattern),e=this._opts.filterPattern.length>0;return!t&&e}_manageRequired(){}_setStateFromSlottedElements(){const t=this._assignedOptions??[];this._opts.clear(),t.forEach((t=>{const{innerText:e,description:s,disabled:i}=t,o="string"==typeof t.value?t.value:e.trim(),r=t.selected??!1,n={label:e.trim(),value:o,description:s,selected:r,disabled:i};this._opts.add(n)}))}_createSuggestedOption(){const t=this._opts.numOptions,e=document.createElement("vscode-option");return e.value=this._opts.filterPattern,lt(this._opts.filterPattern,e),this.appendChild(e),t}_dispatchChangeEvent(){this.dispatchEvent(new Event("change")),this.dispatchEvent(new Event("input"))}async _createAndSelectSuggestedOption(){}_toggleComboboxDropdown(){this._opts.filterPattern="",this.open=!this.open}_scrollActiveElementToTop(){this._optionListScrollPos=Math.floor(this._opts.relativeActiveIndex*ss)}async _adjustOptionListScrollPos(t,e){let s=this._opts.numOfVisibleOptions;if(this._isSuggestedOptionVisible&&(s+=1),s<=10)return;this._isHoverForbidden=!0,window.addEventListener("mousemove",this._onMouseMove);const i=this._optionListScrollPos,o=e*ss,r=o>=i&&o<=i+220-ss;"down"===t&&(r||(this._optionListScrollPos=e*ss-198)),"up"===t&&(r||(this._optionListScrollPos=Math.floor(this._opts.relativeActiveIndex*ss)))}_onFaceClick(){this.open=!this.open}_onComboboxButtonClick(){this._toggleComboboxDropdown()}_onComboboxButtonKeyDown(t){"Enter"===t.key&&this._toggleComboboxDropdown()}_onOptionMouseOver(t){if(this._isHoverForbidden)return;const e=t.target;e.matches(".option")&&(e.matches(".placeholder")?(this._isPlaceholderOptionActive=!0,this._opts.activeIndex=-1):(this._isPlaceholderOptionActive=!1,this._opts.activeIndex=+e.dataset.index))}_onPlaceholderOptionMouseOut(){this._isPlaceholderOptionActive=!1}_onNoOptionsClick(t){t.stopPropagation()}_onEnterKeyDown(t){this._isBeingFiltered=!1;!!t?.composedPath&&t.composedPath().find((t=>!!t.matches&&t.matches("vscode-button.button-accept")))}_onSpaceKeyDown(){this.open||(this.open=!0)}_onArrowUpKeyDown(){if(this.open){if(this._opts.activeIndex<=0&&(!this.combobox||!this.creatable))return;if(this._isPlaceholderOptionActive){const t=this._opts.numOfVisibleOptions-1;this._opts.activeIndex=t,this._isPlaceholderOptionActive=!1}else{const t=this._opts.prev();if(null!==t){this._opts.activeIndex=t?.index??-1;const e=t?.filteredIndex??-1;e>-1&&this._adjustOptionListScrollPos("up",e)}}}else this.open=!0,this._opts.activateDefault()}_onArrowDownKeyDown(){let t=this._opts.numOfVisibleOptions;const e=this._isSuggestedOptionVisible;if(e&&(t+=1),this.open){if(this._isPlaceholderOptionActive&&-1===this._opts.activeIndex)return;const s=this._opts.next();if(e&&null===s)this._isPlaceholderOptionActive=!0,this._adjustOptionListScrollPos("down",t-1),this._opts.activeIndex=-1;else if(null!==s){const t=s?.filteredIndex??-1;this._opts.activeIndex=s?.index??-1,t>-1&&this._adjustOptionListScrollPos("down",t)}}else this.open=!0,this._opts.activateDefault()}_onEscapeKeyDown(){this.open=!1}_onSlotChange(){this._setStateFromSlottedElements(),this.requestUpdate()}_onComboboxInputFocus(t){t.target.select(),this._isBeingFiltered=!1,this._opts.filterPattern=""}_onComboboxInputBlur(){this._isBeingFiltered=!1}_onComboboxInputInput(t){this._isBeingFiltered=!0,this._opts.filterPattern=t.target.value,this._opts.activeIndex=-1,this.open=!0}_onComboboxInputClick(){this._isBeingFiltered=""!==this._opts.filterPattern,this.open=!0}_onComboboxInputSpaceKeyDown(t){" "===t.key&&t.stopPropagation()}_onOptionClick(t){this._isBeingFiltered=!1}_renderCheckbox(t,e){return U`<span class=${Mt({"checkbox-icon":!0,checked:t})}>${Pe}</span
1080
1080
  ><span class="option-label">${e}</span>`}_renderOptions(){const t=this._opts.options;return U`
1081
1081
  <ul
1082
- aria-label=${Mt(this.label??void 0)}
1083
- aria-multiselectable=${Mt(this._opts.multiSelect?"true":void 0)}
1082
+ aria-label=${Pt(this.label??void 0)}
1083
+ aria-multiselectable=${Pt(this._opts.multiSelect?"true":void 0)}
1084
1084
  class="options"
1085
1085
  id="select-listbox"
1086
1086
  role="listbox"
@@ -1088,10 +1088,10 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1088
1088
  @click=${this._onOptionClick}
1089
1089
  @mouseover=${this._onOptionMouseOver}
1090
1090
  >
1091
- ${Le(t,(t=>t.index),((t,e)=>{if(!t.visible)return W;const s=t.index===this._opts.activeIndex&&!t.disabled,i=this._opts.getIsIndexSelected(t.index),o={active:s,disabled:t.disabled,option:!0,selected:i},r=t.ranges?.length?((t,e)=>{const s=[],i=e.length;return i<1?U`${t}`:(e.forEach(((o,r)=>{const n=t.substring(o[0],o[1]);0===r&&0!==o[0]&&s.push(...Je(t.substring(0,e[0][0]))),r>0&&r<i&&o[0]-e[r-1][1]!=0&&s.push(...Je(t.substring(e[r-1][1],o[0]))),s.push(U`<b>${Je(n)}</b>`),r===i-1&&o[1]<t.length&&s.push(...Je(t.substring(o[1],t.length)))})),s)})(t.label,t.ranges??[]):t.label;return U`
1091
+ ${Ue(t,(t=>t.index),((t,e)=>{if(!t.visible)return W;const s=t.index===this._opts.activeIndex&&!t.disabled,i=this._opts.getIsIndexSelected(t.index),o={active:s,disabled:t.disabled,option:!0,selected:i},r=t.ranges?.length?((t,e)=>{const s=[],i=e.length;return i<1?U`${t}`:(e.forEach(((o,r)=>{const n=t.substring(o[0],o[1]);0===r&&0!==o[0]&&s.push(...Ye(t.substring(0,e[0][0]))),r>0&&r<i&&o[0]-e[r-1][1]!=0&&s.push(...Ye(t.substring(e[r-1][1],o[0]))),s.push(U`<b>${Ye(n)}</b>`),r===i-1&&o[1]<t.length&&s.push(...Ye(t.substring(o[1],t.length)))})),s)})(t.label,t.ranges??[]):t.label;return U`
1092
1092
  <li
1093
1093
  aria-selected=${i?"true":"false"}
1094
- class=${It(o)}
1094
+ class=${Mt(o)}
1095
1095
  data-index=${t.index}
1096
1096
  data-filtered-index=${e}
1097
1097
  id=${`op-${t.index}`}
@@ -1104,14 +1104,14 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1104
1104
  ${this._renderPlaceholderOption(this._opts.numOfVisibleOptions<1)}
1105
1105
  </ul>
1106
1106
  `}_renderPlaceholderOption(t){if(!this.combobox)return W;return this._opts.getOptionByLabel(this._opts.filterPattern)?W:this.creatable&&this._opts.filterPattern.length>0?U`<li
1107
- class=${It({option:!0,placeholder:!0,active:this._isPlaceholderOptionActive})}
1107
+ class=${Mt({option:!0,placeholder:!0,active:this._isPlaceholderOptionActive})}
1108
1108
  @mouseout=${this._onPlaceholderOptionMouseOut}
1109
1109
  >
1110
1110
  Add "${this._opts.filterPattern}"
1111
1111
  </li>`:t?U`<li class="no-options" @click=${this._onNoOptionsClick}>
1112
1112
  No options
1113
- </li>`:W}_renderDescription(){const t=this._opts.getActiveOption();if(!t)return W;const{description:e}=t;return e?U`<div class="description">${e}</div>`:W}_renderSelectFace(){return U`${W}`}_renderComboboxFace(){return U`${W}`}_renderDropdownControls(){return U`${W}`}_renderDropdown(){const t={dropdown:!0,multiple:this._opts.multiSelect,open:this.open},e=this._isSuggestedOptionVisible||0===this._opts.numOfVisibleOptions?this._opts.numOfVisibleOptions+1:this._opts.numOfVisibleOptions,s=Math.min(e*es,220);return U`
1114
- <div class=${It(t)}>
1113
+ </li>`:W}_renderDescription(){const t=this._opts.getActiveOption();if(!t)return W;const{description:e}=t;return e?U`<div class="description">${e}</div>`:W}_renderSelectFace(){return U`${W}`}_renderComboboxFace(){return U`${W}`}_renderDropdownControls(){return U`${W}`}_renderDropdown(){const t={dropdown:!0,multiple:this._opts.multiSelect,open:this.open},e=this._isSuggestedOptionVisible||0===this._opts.numOfVisibleOptions?this._opts.numOfVisibleOptions+1:this._opts.numOfVisibleOptions,s=Math.min(e*ss,220);return U`
1114
+ <div class=${Mt(t)}>
1115
1115
  ${"above"===this.position?this._renderDescription():W}
1116
1116
  <vscode-scrollable
1117
1117
  always-visible
@@ -1120,13 +1120,13 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1120
1120
  tabindex="-1"
1121
1121
  @vsc-scrollable-scroll=${this._onOptionListScroll}
1122
1122
  .scrollPos=${this._optionListScrollPos}
1123
- .style=${Pt({height:`${s}px`})}
1123
+ .style=${Ft({height:`${s}px`})}
1124
1124
  >
1125
1125
  ${this._renderOptions()} ${this._renderDropdownControls()}
1126
1126
  </vscode-scrollable>
1127
1127
  ${"below"===this.position?this._renderDescription():W}
1128
1128
  </div>
1129
- `}}ts([pt({type:Boolean,reflect:!0})],ss.prototype,"creatable",void 0),ts([pt({type:Boolean,reflect:!0})],ss.prototype,"combobox",null),ts([pt({reflect:!0})],ss.prototype,"label",void 0),ts([pt({type:Boolean,reflect:!0})],ss.prototype,"disabled",null),ts([pt({type:Boolean,reflect:!0})],ss.prototype,"invalid",void 0),ts([pt()],ss.prototype,"filter",null),ts([pt({type:Boolean,reflect:!0})],ss.prototype,"focused",void 0),ts([pt({type:Boolean,reflect:!0})],ss.prototype,"open",void 0),ts([pt({type:Array})],ss.prototype,"options",null),ts([pt({reflect:!0})],ss.prototype,"position",void 0),ts([mt({flatten:!0,selector:"vscode-option"})],ss.prototype,"_assignedOptions",void 0),ts([vt()],ss.prototype,"_currentDescription",void 0),ts([vt()],ss.prototype,"_filter",void 0),ts([vt()],ss.prototype,"_filteredOptions",null),ts([vt()],ss.prototype,"_selectedIndexes",void 0),ts([vt()],ss.prototype,"_options",void 0),ts([vt()],ss.prototype,"_value",void 0),ts([vt()],ss.prototype,"_values",void 0),ts([vt()],ss.prototype,"_isPlaceholderOptionActive",void 0),ts([vt()],ss.prototype,"_isBeingFiltered",void 0),ts([vt()],ss.prototype,"_optionListScrollPos",void 0);var is=[$t,n`
1129
+ `}}es([vt({type:Boolean,reflect:!0})],is.prototype,"creatable",void 0),es([vt({type:Boolean,reflect:!0})],is.prototype,"combobox",null),es([vt({reflect:!0})],is.prototype,"label",void 0),es([vt({type:Boolean,reflect:!0})],is.prototype,"disabled",null),es([vt({type:Boolean,reflect:!0})],is.prototype,"invalid",void 0),es([vt()],is.prototype,"filter",null),es([vt({type:Boolean,reflect:!0})],is.prototype,"focused",void 0),es([vt({type:Boolean,reflect:!0})],is.prototype,"open",void 0),es([vt({type:Array})],is.prototype,"options",null),es([vt({reflect:!0})],is.prototype,"position",void 0),es([xt({flatten:!0,selector:"vscode-option"})],is.prototype,"_assignedOptions",void 0),es([bt()],is.prototype,"_currentDescription",void 0),es([bt()],is.prototype,"_filter",void 0),es([bt()],is.prototype,"_filteredOptions",null),es([bt()],is.prototype,"_selectedIndexes",void 0),es([bt()],is.prototype,"_options",void 0),es([bt()],is.prototype,"_value",void 0),es([bt()],is.prototype,"_values",void 0),es([bt()],is.prototype,"_isPlaceholderOptionActive",void 0),es([bt()],is.prototype,"_isBeingFiltered",void 0),es([bt()],is.prototype,"_optionListScrollPos",void 0);var os=[_t,n`
1130
1130
  :host {
1131
1131
  display: inline-block;
1132
1132
  max-width: 100%;
@@ -1515,7 +1515,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1515
1515
  :host([position='above']) .description {
1516
1516
  border-width: 0 0 1px;
1517
1517
  }
1518
- `],os=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let rs=class extends ss{set selectedIndexes(t){this._opts.selectedIndexes=t}get selectedIndexes(){return this._opts.selectedIndexes}set value(t){this._opts.multiSelectValue=t,this._opts.selectedIndexes.length>0?this._requestedValueToSetLater=[]:this._requestedValueToSetLater=Array.isArray(t)?t:[t],this._setFormValue(),this._manageRequired()}get value(){return this._opts.multiSelectValue}get form(){return this._internals.form}get type(){return"select-multiple"}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}selectAll(){this._opts.selectAll()}selectNone(){this._opts.selectNone()}constructor(){super(),this.defaultValue=[],this.required=!1,this.name=void 0,this._requestedValueToSetLater=[],this._onOptionClick=t=>{const e=t.composedPath().find((t=>"matches"in t&&t.matches("li.option")));if(!e)return;if(e.classList.contains("placeholder"))return void this._createAndSelectSuggestedOption();const s=Number(e.dataset.index);this._opts.toggleOptionSelected(s),this._setFormValue(),this._manageRequired(),this._dispatchChangeEvent()},this._opts.multiSelect=!0,this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._setDefaultValue(),this._manageRequired()}))}formResetCallback(){this.updateComplete.then((()=>{this.value=this.defaultValue}))}formStateRestoreCallback(t,e){const s=Array.from(t.entries()).map((t=>String(t[1])));this.updateComplete.then((()=>{this.value=s}))}_setDefaultValue(){if(Array.isArray(this.defaultValue)&&this.defaultValue.length>0){const t=this.defaultValue.map((t=>String(t)));this.value=t}}_dispatchChangeEvent(){this.dispatchEvent(new CustomEvent("vsc-change",{detail:{selectedIndexes:this._opts.selectedIndexes,value:this._opts.multiSelectValue}})),super._dispatchChangeEvent()}_onFaceClick(){super._onFaceClick(),this._opts.activeIndex=0}_toggleComboboxDropdown(){super._toggleComboboxDropdown(),this._opts.activeIndex=-1}_manageRequired(){const{value:t}=this;0===t.length&&this.required?this._internals.setValidity({valueMissing:!0},"Please select an item in the list.",this._faceElement):this._internals.setValidity({})}_setFormValue(){const t=new FormData;this._values.forEach((e=>{t.append(this.name??"",e)})),this._internals.setFormValue(t)}async _createAndSelectSuggestedOption(){super._createAndSelectSuggestedOption();const t=this._createSuggestedOption();await this.updateComplete,this.selectedIndexes=[...this.selectedIndexes,t],this._dispatchChangeEvent();const e=new CustomEvent("vsc-multi-select-create-option",{detail:{value:this._opts.getOptionByIndex(t)?.value??""}});this.dispatchEvent(e),this.open=!1,this._isPlaceholderOptionActive=!1}_onSlotChange(){super._onSlotChange(),this._requestedValueToSetLater.length>0&&(this._opts.expandMultiSelection(this._requestedValueToSetLater),this._requestedValueToSetLater=this._requestedValueToSetLater.filter((t=>-1===this._opts.findOptionIndex(t))))}_onEnterKeyDown(t){super._onEnterKeyDown(t),this.open?this._isPlaceholderOptionActive?this._createAndSelectSuggestedOption():(this._opts.toggleActiveMultiselectOption(),this._setFormValue(),this._manageRequired(),this._dispatchChangeEvent()):(this._opts.filterPattern="",this.open=!0)}_onMultiAcceptClick(){this.open=!1}_onMultiDeselectAllClick(){this._opts.selectedIndexes=[],this._values=[],this._options=this._options.map((t=>({...t,selected:!1}))),this._manageRequired(),this._dispatchChangeEvent()}_onMultiSelectAllClick(){this._opts.selectedIndexes=[],this._values=[],this._options=this._options.map((t=>({...t,selected:!0}))),this._options.forEach(((t,e)=>{this._selectedIndexes.push(e),this._values.push(t.value),this._dispatchChangeEvent()})),this._setFormValue(),this._manageRequired()}_renderLabel(){return 0===this._opts.selectedIndexes.length?U`<span class="select-face-badge no-item">0 Selected</span>`:U`<span class="select-face-badge"
1518
+ `],rs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let ns=class extends is{set selectedIndexes(t){this._opts.selectedIndexes=t}get selectedIndexes(){return this._opts.selectedIndexes}set value(t){this._opts.multiSelectValue=t,this._opts.selectedIndexes.length>0?this._requestedValueToSetLater=[]:this._requestedValueToSetLater=Array.isArray(t)?t:[t],this._setFormValue(),this._manageRequired()}get value(){return this._opts.multiSelectValue}get form(){return this._internals.form}get type(){return"select-multiple"}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}selectAll(){this._opts.selectAll()}selectNone(){this._opts.selectNone()}constructor(){super(),this.defaultValue=[],this.required=!1,this.name=void 0,this._requestedValueToSetLater=[],this._onOptionClick=t=>{const e=t.composedPath().find((t=>"matches"in t&&t.matches("li.option")));if(!e)return;if(e.classList.contains("placeholder"))return void this._createAndSelectSuggestedOption();const s=Number(e.dataset.index);this._opts.toggleOptionSelected(s),this._setFormValue(),this._manageRequired(),this._dispatchChangeEvent()},this._opts.multiSelect=!0,this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._setDefaultValue(),this._manageRequired()}))}formResetCallback(){this.updateComplete.then((()=>{this.value=this.defaultValue}))}formStateRestoreCallback(t,e){const s=Array.from(t.entries()).map((t=>String(t[1])));this.updateComplete.then((()=>{this.value=s}))}_setDefaultValue(){if(Array.isArray(this.defaultValue)&&this.defaultValue.length>0){const t=this.defaultValue.map((t=>String(t)));this.value=t}}_dispatchChangeEvent(){this.dispatchEvent(new CustomEvent("vsc-change",{detail:{selectedIndexes:this._opts.selectedIndexes,value:this._opts.multiSelectValue}})),super._dispatchChangeEvent()}_onFaceClick(){super._onFaceClick(),this._opts.activeIndex=0}_toggleComboboxDropdown(){super._toggleComboboxDropdown(),this._opts.activeIndex=-1}_manageRequired(){const{value:t}=this;0===t.length&&this.required?this._internals.setValidity({valueMissing:!0},"Please select an item in the list.",this._faceElement):this._internals.setValidity({})}_setFormValue(){const t=new FormData;this._values.forEach((e=>{t.append(this.name??"",e)})),this._internals.setFormValue(t)}async _createAndSelectSuggestedOption(){super._createAndSelectSuggestedOption();const t=this._createSuggestedOption();await this.updateComplete,this.selectedIndexes=[...this.selectedIndexes,t],this._dispatchChangeEvent();const e=new CustomEvent("vsc-multi-select-create-option",{detail:{value:this._opts.getOptionByIndex(t)?.value??""}});this.dispatchEvent(e),this.open=!1,this._isPlaceholderOptionActive=!1}_onSlotChange(){super._onSlotChange(),this._requestedValueToSetLater.length>0&&(this._opts.expandMultiSelection(this._requestedValueToSetLater),this._requestedValueToSetLater=this._requestedValueToSetLater.filter((t=>-1===this._opts.findOptionIndex(t))))}_onEnterKeyDown(t){super._onEnterKeyDown(t),this.open?this._isPlaceholderOptionActive?this._createAndSelectSuggestedOption():(this._opts.toggleActiveMultiselectOption(),this._setFormValue(),this._manageRequired(),this._dispatchChangeEvent()):(this._opts.filterPattern="",this.open=!0)}_onMultiAcceptClick(){this.open=!1}_onMultiDeselectAllClick(){this._opts.selectedIndexes=[],this._values=[],this._options=this._options.map((t=>({...t,selected:!1}))),this._manageRequired(),this._dispatchChangeEvent()}_onMultiSelectAllClick(){this._opts.selectedIndexes=[],this._values=[],this._options=this._options.map((t=>({...t,selected:!0}))),this._options.forEach(((t,e)=>{this._selectedIndexes.push(e),this._values.push(t.value),this._dispatchChangeEvent()})),this._setFormValue(),this._manageRequired()}_renderLabel(){return 0===this._opts.selectedIndexes.length?U`<span class="select-face-badge no-item">0 Selected</span>`:U`<span class="select-face-badge"
1519
1519
  >${this._opts.selectedIndexes.length} Selected</span
1520
1520
  >`}_renderComboboxFace(){let t="";if(this._isBeingFiltered)t=this._opts.filterPattern;else{const e=this._opts.getSelectedOption();t=e?.label??""}const e=this._opts.activeIndex>-1?`op-${this._opts.activeIndex}`:"",s=this.open?"true":"false";return U`
1521
1521
  <div class="combobox-face face">
@@ -1526,7 +1526,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1526
1526
  aria-controls="select-listbox"
1527
1527
  aria-expanded=${s}
1528
1528
  aria-haspopup="listbox"
1529
- aria-label=${Mt(this.label)}
1529
+ aria-label=${Pt(this.label)}
1530
1530
  class="combobox-input"
1531
1531
  role="combobox"
1532
1532
  spellcheck="false"
@@ -1547,21 +1547,21 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1547
1547
  @keydown=${this._onComboboxButtonKeyDown}
1548
1548
  tabindex="-1"
1549
1549
  >
1550
- ${Ie}
1550
+ ${Me}
1551
1551
  </button>
1552
1552
  </div>
1553
1553
  `}_renderSelectFace(){const t=this._opts.activeIndex>-1?`op-${this._opts.activeIndex}`:"",e=this.open?"true":"false";return U`
1554
1554
  <div
1555
- aria-activedescendant=${Mt(this._opts.multiSelect?void 0:t)}
1555
+ aria-activedescendant=${Pt(this._opts.multiSelect?void 0:t)}
1556
1556
  aria-controls="select-listbox"
1557
- aria-expanded=${Mt(this._opts.multiSelect?void 0:e)}
1557
+ aria-expanded=${Pt(this._opts.multiSelect?void 0:e)}
1558
1558
  aria-haspopup="listbox"
1559
- aria-label=${Mt(this.label??void 0)}
1559
+ aria-label=${Pt(this.label??void 0)}
1560
1560
  class="select-face face multiselect"
1561
1561
  @click=${this._onFaceClick}
1562
1562
  .tabIndex=${this.disabled?-1:0}
1563
1563
  >
1564
- ${this._renderLabel()} ${Ie}
1564
+ ${this._renderLabel()} ${Me}
1565
1565
  </div>
1566
1566
  `}_renderDropdownControls(){return this._filteredOptions.length>0?U`
1567
1567
  <div class="dropdown-controls">
@@ -1595,7 +1595,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1595
1595
  ${this.combobox?this._renderComboboxFace():this._renderSelectFace()}
1596
1596
  ${this._renderDropdown()}
1597
1597
  </div>
1598
- `}};rs.styles=is,rs.shadowRootOptions={...ct.shadowRootOptions,delegatesFocus:!0},rs.formAssociated=!0,os([pt({type:Array,attribute:"default-value"})],rs.prototype,"defaultValue",void 0),os([pt({type:Boolean,reflect:!0})],rs.prototype,"required",void 0),os([pt({reflect:!0})],rs.prototype,"name",void 0),os([pt({type:Array,attribute:!1})],rs.prototype,"selectedIndexes",null),os([pt({type:Array})],rs.prototype,"value",null),os([ft(".face")],rs.prototype,"_faceElement",void 0),rs=os([kt("vscode-multi-select")],rs);const ns=[$t,n`
1598
+ `}};ns.styles=os,ns.shadowRootOptions={...ht.shadowRootOptions,delegatesFocus:!0},ns.formAssociated=!0,rs([vt({type:Array,attribute:"default-value"})],ns.prototype,"defaultValue",void 0),rs([vt({type:Boolean,reflect:!0})],ns.prototype,"required",void 0),rs([vt({reflect:!0})],ns.prototype,"name",void 0),rs([vt({type:Array,attribute:!1})],ns.prototype,"selectedIndexes",null),rs([vt({type:Array})],ns.prototype,"value",null),rs([gt(".face")],ns.prototype,"_faceElement",void 0),ns=rs([$t("vscode-multi-select")],ns);const ls=[_t,n`
1599
1599
  :host {
1600
1600
  align-items: center;
1601
1601
  display: block;
@@ -1641,7 +1641,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1641
1641
  transform: rotate(1080deg);
1642
1642
  }
1643
1643
  }
1644
- `];var ls=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let as=class extends wt{constructor(){super(...arguments),this.ariaLabel="Loading",this.ariaLive="assertive",this.role="alert"}render(){return U`<svg class="progress" part="progress" viewBox="0 0 16 16">
1644
+ `];var as=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let hs=class extends kt{constructor(){super(...arguments),this.ariaLabel="Loading",this.ariaLive="assertive",this.role="alert"}render(){return U`<svg class="progress" part="progress" viewBox="0 0 16 16">
1645
1645
  <circle
1646
1646
  class="background"
1647
1647
  part="background"
@@ -1656,7 +1656,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1656
1656
  cy="8px"
1657
1657
  r="7px"
1658
1658
  ></circle>
1659
- </svg>`}};as.styles=ns,ls([pt({reflect:!0,attribute:"aria-label"})],as.prototype,"ariaLabel",void 0),ls([pt({reflect:!0,attribute:"aria-live"})],as.prototype,"ariaLive",void 0),ls([pt({reflect:!0})],as.prototype,"role",void 0),as=ls([kt("vscode-progress-ring")],as);const cs=[$t,Yt,n`
1659
+ </svg>`}};hs.styles=ls,as([vt({reflect:!0,attribute:"aria-label"})],hs.prototype,"ariaLabel",void 0),as([vt({reflect:!0,attribute:"aria-live"})],hs.prototype,"ariaLive",void 0),as([vt({reflect:!0})],hs.prototype,"role",void 0),hs=as([$t("vscode-progress-ring")],hs);const cs=[_t,Xt,n`
1660
1660
  :host(:invalid) .icon,
1661
1661
  :host([invalid]) .icon {
1662
1662
  background-color: var(--vscode-inputValidation-errorBackground, #5a1d1d);
@@ -1683,7 +1683,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1683
1683
  outline: 1px solid var(--vscode-focusBorder, #0078d4);
1684
1684
  outline-offset: -1px;
1685
1685
  }
1686
- `];var hs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let ds=class extends(Jt(Kt)){constructor(){super(),this.autofocus=!1,this.checked=!1,this.defaultChecked=!1,this.invalid=!1,this.name="",this.value="",this.disabled=!1,this.required=!1,this.role="radio",this.tabIndex=0,this._slottedText="",this.type="radio",this._handleClick=()=>{this.disabled||this.checked||(this._checkButton(),this._handleValueChange(),this._dispatchCustomEvent(),this.dispatchEvent(new Event("change",{bubbles:!0})))},this._handleKeyDown=t=>{this.disabled||"Enter"!==t.key&&" "!==t.key||(t.preventDefault()," "!==t.key||this.checked||(this.checked=!0,this._handleValueChange(),this._dispatchCustomEvent(),this.dispatchEvent(new Event("change",{bubbles:!0}))),"Enter"===t.key&&this._internals.form?.requestSubmit())},this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._handleKeyDown),this.addEventListener("click",this._handleClick),this._handleValueChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._handleKeyDown),this.removeEventListener("click",this._handleClick)}update(t){super.update(t),t.has("checked")&&this._handleValueChange(),t.has("required")&&this._handleValueChange()}get form(){return this._internals.form}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}formResetCallback(){this._getRadios().forEach((t=>{t.checked=t.defaultChecked})),this.updateComplete.then((()=>{this._handleValueChange()}))}formStateRestoreCallback(t,e){this.value===t&&""!==t&&(this.checked=!0)}_dispatchCustomEvent(){this.dispatchEvent(new CustomEvent("vsc-change",{detail:{checked:this.checked,label:this.label,value:this.value},bubbles:!0,composed:!0}))}_getRadios(){const t=this.getRootNode({composed:!0});if(!t)return[];const e=t.querySelectorAll(`vscode-radio[name="${this.name}"]`);return Array.from(e)}_uncheckOthers(t){t.forEach((t=>{t!==this&&(t.checked=!1)}))}_checkButton(){const t=this._getRadios();this.checked=!0,t.forEach((t=>{t!==this&&(t.checked=!1)}))}setComponentValidity(t){t?this._internals.setValidity({}):this._internals.setValidity({valueMissing:!0},"Please select one of these options.",this._inputEl)}_setGroupValidity(t,e){this.updateComplete.then((()=>{t.forEach((t=>{t.setComponentValidity(e)}))}))}_setActualFormValue(){let t="";t=this.checked?this.value?this.value:"on":null,this._internals.setFormValue(t)}_handleValueChange(){const t=this._getRadios(),e=t.some((t=>t.required));if(this._setActualFormValue(),this.checked)this._uncheckOthers(t),this._setGroupValidity(t,!0);else{const s=!!t.find((t=>t.checked)),i=e&&!s;this._setGroupValidity(t,!i)}}render(){const t=It({icon:!0,checked:this.checked}),e=It({"label-inner":!0,"is-slot-empty":""===this._slottedText});return U`
1686
+ `];var ds=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let us=class extends(Yt(Kt)){constructor(){super(),this.autofocus=!1,this.checked=!1,this.defaultChecked=!1,this.invalid=!1,this.name="",this.value="",this.disabled=!1,this.required=!1,this.role="radio",this.tabIndex=0,this._slottedText="",this.type="radio",this._handleClick=()=>{this.disabled||this.checked||(this._checkButton(),this._handleValueChange(),this._dispatchCustomEvent(),this.dispatchEvent(new Event("change",{bubbles:!0})))},this._handleKeyDown=t=>{this.disabled||"Enter"!==t.key&&" "!==t.key||(t.preventDefault()," "!==t.key||this.checked||(this.checked=!0,this._handleValueChange(),this._dispatchCustomEvent(),this.dispatchEvent(new Event("change",{bubbles:!0}))),"Enter"===t.key&&this._internals.form?.requestSubmit())},this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._handleKeyDown),this.addEventListener("click",this._handleClick),this._handleValueChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._handleKeyDown),this.removeEventListener("click",this._handleClick)}update(t){super.update(t),t.has("checked")&&this._handleValueChange(),t.has("required")&&this._handleValueChange()}get form(){return this._internals.form}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}formResetCallback(){this._getRadios().forEach((t=>{t.checked=t.defaultChecked})),this.updateComplete.then((()=>{this._handleValueChange()}))}formStateRestoreCallback(t,e){this.value===t&&""!==t&&(this.checked=!0)}_dispatchCustomEvent(){this.dispatchEvent(new CustomEvent("vsc-change",{detail:{checked:this.checked,label:this.label,value:this.value},bubbles:!0,composed:!0}))}_getRadios(){const t=this.getRootNode({composed:!0});if(!t)return[];const e=t.querySelectorAll(`vscode-radio[name="${this.name}"]`);return Array.from(e)}_uncheckOthers(t){t.forEach((t=>{t!==this&&(t.checked=!1)}))}_checkButton(){const t=this._getRadios();this.checked=!0,t.forEach((t=>{t!==this&&(t.checked=!1)}))}setComponentValidity(t){t?this._internals.setValidity({}):this._internals.setValidity({valueMissing:!0},"Please select one of these options.",this._inputEl)}_setGroupValidity(t,e){this.updateComplete.then((()=>{t.forEach((t=>{t.setComponentValidity(e)}))}))}_setActualFormValue(){let t="";t=this.checked?this.value?this.value:"on":null,this._internals.setFormValue(t)}_handleValueChange(){const t=this._getRadios(),e=t.some((t=>t.required));if(this._setActualFormValue(),this.checked)this._uncheckOthers(t),this._setGroupValidity(t,!0);else{const s=!!t.find((t=>t.checked)),i=e&&!s;this._setGroupValidity(t,!i)}}render(){const t=Mt({icon:!0,checked:this.checked}),e=Mt({"label-inner":!0,"is-slot-empty":""===this._slottedText});return U`
1687
1687
  <div class="wrapper">
1688
1688
  <input
1689
1689
  ?autofocus=${this.autofocus}
@@ -1702,7 +1702,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1702
1702
  </span>
1703
1703
  </label>
1704
1704
  </div>
1705
- `}};ds.styles=cs,ds.formAssociated=!0,ds.shadowRootOptions={...ct.shadowRootOptions,delegatesFocus:!0},hs([pt({type:Boolean,reflect:!0})],ds.prototype,"autofocus",void 0),hs([pt({type:Boolean,reflect:!0})],ds.prototype,"checked",void 0),hs([pt({type:Boolean,reflect:!0,attribute:"default-checked"})],ds.prototype,"defaultChecked",void 0),hs([pt({type:Boolean,reflect:!0})],ds.prototype,"invalid",void 0),hs([pt({reflect:!0})],ds.prototype,"name",void 0),hs([pt()],ds.prototype,"value",void 0),hs([pt({type:Boolean,reflect:!0})],ds.prototype,"disabled",void 0),hs([pt({type:Boolean,reflect:!0})],ds.prototype,"required",void 0),hs([pt({reflect:!0})],ds.prototype,"role",void 0),hs([pt({type:Number,reflect:!0})],ds.prototype,"tabIndex",void 0),hs([vt()],ds.prototype,"_slottedText",void 0),hs([ft("#input")],ds.prototype,"_inputEl",void 0),hs([pt()],ds.prototype,"type",void 0),ds=hs([kt("vscode-radio")],ds);const us=[$t,n`
1705
+ `}};us.styles=cs,us.formAssociated=!0,us.shadowRootOptions={...ht.shadowRootOptions,delegatesFocus:!0},ds([vt({type:Boolean,reflect:!0})],us.prototype,"autofocus",void 0),ds([vt({type:Boolean,reflect:!0})],us.prototype,"checked",void 0),ds([vt({type:Boolean,reflect:!0,attribute:"default-checked"})],us.prototype,"defaultChecked",void 0),ds([vt({type:Boolean,reflect:!0})],us.prototype,"invalid",void 0),ds([vt({reflect:!0})],us.prototype,"name",void 0),ds([vt()],us.prototype,"value",void 0),ds([vt({type:Boolean,reflect:!0})],us.prototype,"disabled",void 0),ds([vt({type:Boolean,reflect:!0})],us.prototype,"required",void 0),ds([vt({reflect:!0})],us.prototype,"role",void 0),ds([vt({type:Number,reflect:!0})],us.prototype,"tabIndex",void 0),ds([bt()],us.prototype,"_slottedText",void 0),ds([gt("#input")],us.prototype,"_inputEl",void 0),ds([vt()],us.prototype,"type",void 0),us=ds([$t("vscode-radio")],us);const ps=[_t,n`
1706
1706
  :host {
1707
1707
  display: block;
1708
1708
  }
@@ -1732,26 +1732,26 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1732
1732
  :host([variant='vertical']) ::slotted(vscode-radio:last-child) {
1733
1733
  margin-bottom: 0;
1734
1734
  }
1735
- `];var ps=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let vs=class extends wt{constructor(){super(...arguments),this.variant="horizontal",this.role="radiogroup",this._focusedRadio=-1,this._checkedRadio=-1,this._firstContentLoaded=!1,this._onKeyDownBound=this._onKeyDown.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._onKeyDownBound)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._onKeyDownBound)}_uncheckPreviousChecked(t,e){-1!==t&&(this._radios[t].checked=!1),-1!==e&&(this._radios[e].tabIndex=-1)}_afterCheck(){this._focusedRadio=this._checkedRadio,this._radios[this._checkedRadio].checked=!0,this._radios[this._checkedRadio].tabIndex=0,this._radios[this._checkedRadio].focus()}_checkPrev(){const t=this._radios.findIndex((t=>t.checked)),e=this._radios.findIndex((t=>t.focused)),s=-1!==e?e:t;this._uncheckPreviousChecked(t,e),this._checkedRadio=-1===s?this._radios.length-1:s-1>=0?s-1:this._radios.length-1,this._afterCheck()}_checkNext(){const t=this._radios.findIndex((t=>t.checked)),e=this._radios.findIndex((t=>t.focused)),s=-1!==e?e:t;this._uncheckPreviousChecked(t,e),-1===s?this._checkedRadio=0:s+1<this._radios.length?this._checkedRadio=s+1:this._checkedRadio=0,this._afterCheck()}_onKeyDown(t){const{key:e}=t;["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"].includes(e)&&t.preventDefault(),"ArrowRight"!==e&&"ArrowDown"!==e||this._checkNext(),"ArrowLeft"!==e&&"ArrowUp"!==e||this._checkPrev()}_onChange(t){const e=this._radios.findIndex((e=>e===t.target));-1!==e&&(-1!==this._focusedRadio&&(this._radios[this._focusedRadio].tabIndex=-1),-1!==this._checkedRadio&&this._checkedRadio!==e&&(this._radios[this._checkedRadio].checked=!1),this._focusedRadio=e,this._checkedRadio=e,this._radios[e].tabIndex=0)}_onSlotChange(){if(!this._firstContentLoaded){const t=this._radios.findIndex((t=>t.autofocus));t>-1&&(this._focusedRadio=t),this._firstContentLoaded=!0}this._radios.forEach(((t,e)=>{this._focusedRadio>-1?t.tabIndex=e===this._focusedRadio?0:-1:t.tabIndex=0===e?0:-1}))}render(){return U`
1735
+ `];var vs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let bs=class extends kt{constructor(){super(...arguments),this.variant="horizontal",this.role="radiogroup",this._focusedRadio=-1,this._checkedRadio=-1,this._firstContentLoaded=!1,this._onKeyDownBound=this._onKeyDown.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._onKeyDownBound)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._onKeyDownBound)}_uncheckPreviousChecked(t,e){-1!==t&&(this._radios[t].checked=!1),-1!==e&&(this._radios[e].tabIndex=-1)}_afterCheck(){this._focusedRadio=this._checkedRadio,this._radios[this._checkedRadio].checked=!0,this._radios[this._checkedRadio].tabIndex=0,this._radios[this._checkedRadio].focus()}_checkPrev(){const t=this._radios.findIndex((t=>t.checked)),e=this._radios.findIndex((t=>t.focused)),s=-1!==e?e:t;this._uncheckPreviousChecked(t,e),this._checkedRadio=-1===s?this._radios.length-1:s-1>=0?s-1:this._radios.length-1,this._afterCheck()}_checkNext(){const t=this._radios.findIndex((t=>t.checked)),e=this._radios.findIndex((t=>t.focused)),s=-1!==e?e:t;this._uncheckPreviousChecked(t,e),-1===s?this._checkedRadio=0:s+1<this._radios.length?this._checkedRadio=s+1:this._checkedRadio=0,this._afterCheck()}_onKeyDown(t){const{key:e}=t;["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"].includes(e)&&t.preventDefault(),"ArrowRight"!==e&&"ArrowDown"!==e||this._checkNext(),"ArrowLeft"!==e&&"ArrowUp"!==e||this._checkPrev()}_onChange(t){const e=this._radios.findIndex((e=>e===t.target));-1!==e&&(-1!==this._focusedRadio&&(this._radios[this._focusedRadio].tabIndex=-1),-1!==this._checkedRadio&&this._checkedRadio!==e&&(this._radios[this._checkedRadio].checked=!1),this._focusedRadio=e,this._checkedRadio=e,this._radios[e].tabIndex=0)}_onSlotChange(){if(!this._firstContentLoaded){const t=this._radios.findIndex((t=>t.autofocus));t>-1&&(this._focusedRadio=t),this._firstContentLoaded=!0}this._radios.forEach(((t,e)=>{this._focusedRadio>-1?t.tabIndex=e===this._focusedRadio?0:-1:t.tabIndex=0===e?0:-1}))}render(){return U`
1736
1736
  <div class="wrapper">
1737
1737
  <slot
1738
1738
  @slotchange=${this._onSlotChange}
1739
1739
  @vsc-change=${this._onChange}
1740
1740
  ></slot>
1741
1741
  </div>
1742
- `}};vs.styles=us,ps([pt({reflect:!0})],vs.prototype,"variant",void 0),ps([pt({reflect:!0})],vs.prototype,"role",void 0),ps([mt({selector:"vscode-radio"})],vs.prototype,"_radios",void 0),ps([vt()],vs.prototype,"_focusedRadio",void 0),ps([vt()],vs.prototype,"_checkedRadio",void 0),vs=ps([kt("vscode-radio-group")],vs);var bs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let fs=class extends ss{set selectedIndex(t){this._opts.selectedIndex=t;const e=this._opts.getOptionByIndex(t);e?(this._opts.activeIndex=t,this._value=e.value,this._internals.setFormValue(this._value),this._manageRequired()):(this._value="",this._internals.setFormValue(""),this._manageRequired())}get selectedIndex(){return this._opts.selectedIndex}set value(t){this._opts.value=t,this._opts.selectedIndex>-1?this._requestedValueToSetLater="":this._requestedValueToSetLater=t,this._internals.setFormValue(this._value),this._manageRequired()}get value(){return this._opts.value}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}updateInputValue(){if(!this.combobox)return;const t=this.renderRoot.querySelector(".combobox-input");if(t){const e=this._opts.getSelectedOption();t.value=e?.label??""}}constructor(){super(),this.defaultValue="",this.name=void 0,this.required=!1,this._requestedValueToSetLater="",this._opts.multiSelect=!1,this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._manageRequired()}))}formResetCallback(){this.value=this.defaultValue}formStateRestoreCallback(t,e){this.updateComplete.then((()=>{this.value=t}))}get type(){return"select-one"}get form(){return this._internals.form}async _createAndSelectSuggestedOption(){const t=this._createSuggestedOption();await this.updateComplete,this._opts.selectedIndex=t,this._dispatchChangeEvent();const e=new CustomEvent("vsc-single-select-create-option",{detail:{value:this._opts.getOptionByIndex(t)?.value??""}});this.dispatchEvent(e),this.open=!1,this._isPlaceholderOptionActive=!1}_dispatchChangeEvent(){this.dispatchEvent(new CustomEvent("vsc-change",{detail:{selectedIndex:this._opts.selectedIndex,value:this._value}})),super._dispatchChangeEvent()}_setStateFromSlottedElements(){super._setStateFromSlottedElements(),this.combobox||0!==this._opts.selectedIndexes.length||(this._opts.selectedIndex=this._opts.options.length>0?0:-1)}_onSlotChange(){if(super._onSlotChange(),this._requestedValueToSetLater){const t=this._opts.getOptionByValue(this._requestedValueToSetLater);t&&(this._opts.selectedIndex=t.index,this._requestedValueToSetLater="")}this._opts.selectedIndex>-1&&this._opts.numOptions>0?(this._internals.setFormValue(this._opts.value),this._manageRequired()):(this._internals.setFormValue(null),this._manageRequired())}_onEnterKeyDown(t){super._onEnterKeyDown(t);let e=!1;this.combobox?this.open?this._isPlaceholderOptionActive?this._createAndSelectSuggestedOption():(e=this._opts.activeIndex!==this._opts.selectedIndex,this._opts.selectedIndex=this._opts.activeIndex,this.open=!1):(this.open=!0,this._scrollActiveElementToTop()):this.open?(e=this._opts.activeIndex!==this._opts.selectedIndex,this._opts.selectedIndex=this._opts.activeIndex,this.open=!1):(this.open=!0,this._scrollActiveElementToTop()),e&&(this._dispatchChangeEvent(),this.updateInputValue(),this._internals.setFormValue(this._opts.value),this._manageRequired())}_onOptionClick(t){super._onOptionClick(t);const e=t.composedPath().find((t=>{if("matches"in t)return t.matches("li.option")}));if(!e||e.matches(".disabled"))return;e.classList.contains("placeholder")?this.creatable&&this._createAndSelectSuggestedOption():(this._opts.selectedIndex=Number(e.dataset.index),this.open=!1,this._internals.setFormValue(this._value),this._manageRequired(),this._dispatchChangeEvent())}_manageRequired(){const{value:t}=this;""===t&&this.required?this._internals.setValidity({valueMissing:!0},"Please select an item in the list.",this._face):this._internals.setValidity({})}_renderSelectFace(){const t=this._opts.getSelectedOption(),e=t?.label??"",s=this._opts.activeIndex>-1?`op-${this._opts.activeIndex}`:"";return U`
1742
+ `}};bs.styles=ps,vs([vt({reflect:!0})],bs.prototype,"variant",void 0),vs([vt({reflect:!0})],bs.prototype,"role",void 0),vs([xt({selector:"vscode-radio"})],bs.prototype,"_radios",void 0),vs([bt()],bs.prototype,"_focusedRadio",void 0),vs([bt()],bs.prototype,"_checkedRadio",void 0),bs=vs([$t("vscode-radio-group")],bs);var fs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let gs=class extends is{set selectedIndex(t){this._opts.selectedIndex=t;const e=this._opts.getOptionByIndex(t);e?(this._opts.activeIndex=t,this._value=e.value,this._internals.setFormValue(this._value),this._manageRequired()):(this._value="",this._internals.setFormValue(""),this._manageRequired())}get selectedIndex(){return this._opts.selectedIndex}set value(t){this._opts.value=t,this._opts.selectedIndex>-1?this._requestedValueToSetLater="":this._requestedValueToSetLater=t,this._internals.setFormValue(this._value),this._manageRequired()}get value(){return this._opts.value}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}updateInputValue(){if(!this.combobox)return;const t=this.renderRoot.querySelector(".combobox-input");if(t){const e=this._opts.getSelectedOption();t.value=e?.label??""}}constructor(){super(),this.defaultValue="",this.name=void 0,this.required=!1,this._requestedValueToSetLater="",this._opts.multiSelect=!1,this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._manageRequired()}))}formResetCallback(){this.value=this.defaultValue}formStateRestoreCallback(t,e){this.updateComplete.then((()=>{this.value=t}))}get type(){return"select-one"}get form(){return this._internals.form}async _createAndSelectSuggestedOption(){const t=this._createSuggestedOption();await this.updateComplete,this._opts.selectedIndex=t,this._dispatchChangeEvent();const e=new CustomEvent("vsc-single-select-create-option",{detail:{value:this._opts.getOptionByIndex(t)?.value??""}});this.dispatchEvent(e),this.open=!1,this._isPlaceholderOptionActive=!1}_dispatchChangeEvent(){this.dispatchEvent(new CustomEvent("vsc-change",{detail:{selectedIndex:this._opts.selectedIndex,value:this._value}})),super._dispatchChangeEvent()}_setStateFromSlottedElements(){super._setStateFromSlottedElements(),this.combobox||0!==this._opts.selectedIndexes.length||(this._opts.selectedIndex=this._opts.options.length>0?0:-1)}_onSlotChange(){if(super._onSlotChange(),this._requestedValueToSetLater){const t=this._opts.getOptionByValue(this._requestedValueToSetLater);t&&(this._opts.selectedIndex=t.index,this._requestedValueToSetLater="")}this._opts.selectedIndex>-1&&this._opts.numOptions>0?(this._internals.setFormValue(this._opts.value),this._manageRequired()):(this._internals.setFormValue(null),this._manageRequired())}_onEnterKeyDown(t){super._onEnterKeyDown(t);let e=!1;this.combobox?this.open?this._isPlaceholderOptionActive?this._createAndSelectSuggestedOption():(e=this._opts.activeIndex!==this._opts.selectedIndex,this._opts.selectedIndex=this._opts.activeIndex,this.open=!1):(this.open=!0,this._scrollActiveElementToTop()):this.open?(e=this._opts.activeIndex!==this._opts.selectedIndex,this._opts.selectedIndex=this._opts.activeIndex,this.open=!1):(this.open=!0,this._scrollActiveElementToTop()),e&&(this._dispatchChangeEvent(),this.updateInputValue(),this._internals.setFormValue(this._opts.value),this._manageRequired())}_onOptionClick(t){super._onOptionClick(t);const e=t.composedPath().find((t=>{if("matches"in t)return t.matches("li.option")}));if(!e||e.matches(".disabled"))return;e.classList.contains("placeholder")?this.creatable&&this._createAndSelectSuggestedOption():(this._opts.selectedIndex=Number(e.dataset.index),this.open=!1,this._internals.setFormValue(this._value),this._manageRequired(),this._dispatchChangeEvent())}_manageRequired(){const{value:t}=this;""===t&&this.required?this._internals.setValidity({valueMissing:!0},"Please select an item in the list.",this._face):this._internals.setValidity({})}_renderSelectFace(){const t=this._opts.getSelectedOption(),e=t?.label??"",s=this._opts.activeIndex>-1?`op-${this._opts.activeIndex}`:"";return U`
1743
1743
  <div
1744
1744
  aria-activedescendant=${s}
1745
1745
  aria-controls="select-listbox"
1746
1746
  aria-expanded=${this.open?"true":"false"}
1747
1747
  aria-haspopup="listbox"
1748
- aria-label=${Mt(this.label)}
1748
+ aria-label=${Pt(this.label)}
1749
1749
  class="select-face face"
1750
1750
  @click=${this._onFaceClick}
1751
1751
  role="combobox"
1752
1752
  tabindex="0"
1753
1753
  >
1754
- <span class="text">${e}</span> ${Ie}
1754
+ <span class="text">${e}</span> ${Me}
1755
1755
  </div>
1756
1756
  `}_renderComboboxFace(){let t="";if(this._isBeingFiltered)t=this._opts.filterPattern;else{const e=this._opts.getSelectedOption();t=e?.label??""}const e=this._opts.activeIndex>-1?`op-${this._opts.activeIndex}`:"",s=this.open?"true":"false";return U`
1757
1757
  <div class="combobox-face face">
@@ -1761,7 +1761,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1761
1761
  aria-controls="select-listbox"
1762
1762
  aria-expanded=${s}
1763
1763
  aria-haspopup="listbox"
1764
- aria-label=${Mt(this.label)}
1764
+ aria-label=${Pt(this.label)}
1765
1765
  class="combobox-input"
1766
1766
  role="combobox"
1767
1767
  spellcheck="false"
@@ -1782,7 +1782,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1782
1782
  @keydown=${this._onComboboxButtonKeyDown}
1783
1783
  tabindex="-1"
1784
1784
  >
1785
- ${Ie}
1785
+ ${Me}
1786
1786
  </button>
1787
1787
  </div>
1788
1788
  `}render(){return U`
@@ -1791,7 +1791,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1791
1791
  ${this.combobox?this._renderComboboxFace():this._renderSelectFace()}
1792
1792
  ${this._renderDropdown()}
1793
1793
  </div>
1794
- `}};fs.styles=is,fs.shadowRootOptions={...ct.shadowRootOptions,delegatesFocus:!0},fs.formAssociated=!0,bs([pt({attribute:"default-value"})],fs.prototype,"defaultValue",void 0),bs([pt({reflect:!0})],fs.prototype,"name",void 0),bs([pt({type:Number,attribute:"selected-index"})],fs.prototype,"selectedIndex",null),bs([pt({type:String})],fs.prototype,"value",null),bs([pt({type:Boolean,reflect:!0})],fs.prototype,"required",void 0),bs([ft(".face")],fs.prototype,"_face",void 0),fs=bs([kt("vscode-single-select")],fs);const gs=[$t,n`
1794
+ `}};gs.styles=os,gs.shadowRootOptions={...ht.shadowRootOptions,delegatesFocus:!0},gs.formAssociated=!0,fs([vt({attribute:"default-value"})],gs.prototype,"defaultValue",void 0),fs([vt({reflect:!0})],gs.prototype,"name",void 0),fs([vt({type:Number,attribute:"selected-index"})],gs.prototype,"selectedIndex",null),fs([vt({type:String})],gs.prototype,"value",null),fs([vt({type:Boolean,reflect:!0})],gs.prototype,"required",void 0),fs([gt(".face")],gs.prototype,"_face",void 0),gs=fs([$t("vscode-single-select")],gs);const ms=[_t,n`
1795
1795
  :host {
1796
1796
  --separator-border: var(--vscode-editorWidget-border, #454545);
1797
1797
 
@@ -1898,25 +1898,25 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1898
1898
  cursor: ns-resize;
1899
1899
  width: 100%;
1900
1900
  }
1901
- `];var ms,xs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const ys=t=>{if(!t)return{value:0,unit:"pixel"};let e,s;t.endsWith("%")?(e="percent",s=+t.substring(0,t.length-1)):t.endsWith("px")?(e="pixel",s=+t.substring(0,t.length-2)):(e="pixel",s=+t);return{unit:e,value:isNaN(s)?0:s}},ws=(t,e)=>0===e?0:Math.min(100,t/e*100),ks=(t,e)=>e*(t/100);let $s=ms=class extends wt{set split(t){this._split!==t&&(this._split=t,this.resetHandlePosition())}get split(){return this._split}set handlePosition(t){this._rawHandlePosition=t,this._handlePositionPropChanged()}get handlePosition(){return this._rawHandlePosition}set fixedPane(t){this._fixedPane=t,this._fixedPanePropChanged()}get fixedPane(){return this._fixedPane}constructor(){super(),this._split="vertical",this.resetOnDblClick=!1,this.handleSize=4,this.initialHandlePosition="50%",this._fixedPane="none",this._handlePosition=0,this._isDragActive=!1,this._hover=!1,this._hide=!1,this._boundRect=new DOMRect,this._handleOffset=0,this._wrapperObserved=!1,this._fixedPaneSize=0,this._handleResize=t=>{const e=t[0].contentRect,{width:s,height:i}=e;this._boundRect=e;const o="vertical"===this.split?s:i;"start"===this.fixedPane&&(this._handlePosition=this._fixedPaneSize),"end"===this.fixedPane&&(this._handlePosition=o-this._fixedPaneSize)},this._handleMouseUp=t=>{this._isDragActive=!1,t.target!==this&&(this._hover=!1,this._hide=!0),window.removeEventListener("mouseup",this._handleMouseUp),window.removeEventListener("mousemove",this._handleMouseMove);const{width:e,height:s}=this._boundRect,i="vertical"===this.split?e:s,o=ws(this._handlePosition,i);this.dispatchEvent(new CustomEvent("vsc-split-layout-change",{detail:{position:this._handlePosition,positionInPercentage:o},composed:!0}))},this._handleMouseMove=t=>{const{clientX:e,clientY:s}=t,{left:i,top:o,height:r,width:n}=this._boundRect,l="vertical"===this.split,a=l?n:r,c=l?e-i:s-o;this._handlePosition=Math.max(0,Math.min(c-this._handleOffset+this.handleSize/2,a)),"start"===this.fixedPane&&(this._fixedPaneSize=this._handlePosition),"end"===this.fixedPane&&(this._fixedPaneSize=a-this._handlePosition)},this._resizeObserver=new ResizeObserver(this._handleResize)}resetHandlePosition(){if(!this._wrapperEl)return void(this._handlePosition=0);const{width:t,height:e}=this._wrapperEl.getBoundingClientRect(),s="vertical"===this.split?t:e,{value:i,unit:o}=ys(this.initialHandlePosition??"50%");this._handlePosition="percent"===o?ks(i,s):i}connectedCallback(){super.connectedCallback()}firstUpdated(t){"none"!==this.fixedPane&&(this._resizeObserver.observe(this._wrapperEl),this._wrapperObserved=!0),this._boundRect=this._wrapperEl.getBoundingClientRect();const{value:e,unit:s}=this.handlePosition?ys(this.handlePosition):ys(this.initialHandlePosition);this._setPosition(e,s),this._initFixedPane()}_handlePositionPropChanged(){if(this.handlePosition&&this._wrapperEl){this._boundRect=this._wrapperEl.getBoundingClientRect();const{value:t,unit:e}=ys(this.handlePosition);this._setPosition(t,e)}}_fixedPanePropChanged(){this._wrapperEl&&this._initFixedPane()}_initFixedPane(){if("none"===this.fixedPane)this._wrapperObserved&&(this._resizeObserver.unobserve(this._wrapperEl),this._wrapperObserved=!1);else{const{width:t,height:e}=this._boundRect,s="vertical"===this.split?t:e;this._fixedPaneSize="start"===this.fixedPane?this._handlePosition:s-this._handlePosition,this._wrapperObserved||(this._resizeObserver.observe(this._wrapperEl),this._wrapperObserved=!0)}}_setPosition(t,e){const{width:s,height:i}=this._boundRect,o="vertical"===this.split?s:i;this._handlePosition="percent"===e?ks(t,o):t}_handleMouseOver(){this._hover=!0,this._hide=!1}_handleMouseOut(t){1!==t.buttons&&(this._hover=!1,this._hide=!0)}_handleMouseDown(t){t.stopPropagation(),t.preventDefault(),this._boundRect=this._wrapperEl.getBoundingClientRect();const{left:e,top:s}=this._boundRect,{left:i,top:o}=this._handleEl.getBoundingClientRect(),r=t.clientX-e,n=t.clientY-s;"vertical"===this.split&&(this._handleOffset=r-(i-e)),"horizontal"===this.split&&(this._handleOffset=n-(o-s)),this._isDragActive=!0,window.addEventListener("mouseup",this._handleMouseUp),window.addEventListener("mousemove",this._handleMouseMove)}_handleDblClick(){this.resetOnDblClick&&this.resetHandlePosition()}_handleSlotChange(){[...this._nestedLayoutsAtStart,...this._nestedLayoutsAtEnd].forEach((t=>{t instanceof ms&&t.resetHandlePosition()}))}render(){const{width:t,height:e}=this._boundRect,s="vertical"===this.split?t:e,i="none"!==this.fixedPane?`${this._handlePosition}px`:`${ws(this._handlePosition,s)}%`;let o="";o="start"===this.fixedPane?`0 0 ${this._fixedPaneSize}px`:`1 1 ${ws(this._handlePosition,s)}%`;let r="";r="end"===this.fixedPane?`0 0 ${this._fixedPaneSize}px`:`1 1 ${ws(s-this._handlePosition,s)}%`;const n={left:"vertical"===this.split?i:"0",top:"vertical"===this.split?"0":i},l=this.handleSize??4;"vertical"===this.split&&(n.marginLeft=0-l/2+"px",n.width=`${l}px`),"horizontal"===this.split&&(n.height=`${l}px`,n.marginTop=0-l/2+"px");const a=It({"handle-overlay":!0,active:this._isDragActive,"split-vertical":"vertical"===this.split,"split-horizontal":"horizontal"===this.split}),c=It({handle:!0,hover:this._hover,hide:this._hide,"split-vertical":"vertical"===this.split,"split-horizontal":"horizontal"===this.split}),h={wrapper:!0,horizontal:"horizontal"===this.split};return U`
1902
- <div class=${It(h)}>
1903
- <div class="start" .style=${Pt({flex:o})}>
1901
+ `];var xs,ys=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const ws=t=>{if(!t)return{value:0,unit:"pixel"};let e,s;t.endsWith("%")?(e="percent",s=+t.substring(0,t.length-1)):t.endsWith("px")?(e="pixel",s=+t.substring(0,t.length-2)):(e="pixel",s=+t);return{unit:e,value:isNaN(s)?0:s}},ks=(t,e)=>0===e?0:Math.min(100,t/e*100),$s=(t,e)=>e*(t/100);let _s=xs=class extends kt{set split(t){this._split!==t&&(this._split=t,this.resetHandlePosition())}get split(){return this._split}set handlePosition(t){this._rawHandlePosition=t,this._handlePositionPropChanged()}get handlePosition(){return this._rawHandlePosition}set fixedPane(t){this._fixedPane=t,this._fixedPanePropChanged()}get fixedPane(){return this._fixedPane}constructor(){super(),this._split="vertical",this.resetOnDblClick=!1,this.handleSize=4,this.initialHandlePosition="50%",this._fixedPane="none",this._handlePosition=0,this._isDragActive=!1,this._hover=!1,this._hide=!1,this._boundRect=new DOMRect,this._handleOffset=0,this._wrapperObserved=!1,this._fixedPaneSize=0,this._handleResize=t=>{const e=t[0].contentRect,{width:s,height:i}=e;this._boundRect=e;const o="vertical"===this.split?s:i;"start"===this.fixedPane&&(this._handlePosition=this._fixedPaneSize),"end"===this.fixedPane&&(this._handlePosition=o-this._fixedPaneSize)},this._handleMouseUp=t=>{this._isDragActive=!1,t.target!==this&&(this._hover=!1,this._hide=!0),window.removeEventListener("mouseup",this._handleMouseUp),window.removeEventListener("mousemove",this._handleMouseMove);const{width:e,height:s}=this._boundRect,i="vertical"===this.split?e:s,o=ks(this._handlePosition,i);this.dispatchEvent(new CustomEvent("vsc-split-layout-change",{detail:{position:this._handlePosition,positionInPercentage:o},composed:!0}))},this._handleMouseMove=t=>{const{clientX:e,clientY:s}=t,{left:i,top:o,height:r,width:n}=this._boundRect,l="vertical"===this.split,a=l?n:r,h=l?e-i:s-o;this._handlePosition=Math.max(0,Math.min(h-this._handleOffset+this.handleSize/2,a)),"start"===this.fixedPane&&(this._fixedPaneSize=this._handlePosition),"end"===this.fixedPane&&(this._fixedPaneSize=a-this._handlePosition)},this._resizeObserver=new ResizeObserver(this._handleResize)}resetHandlePosition(){if(!this._wrapperEl)return void(this._handlePosition=0);const{width:t,height:e}=this._wrapperEl.getBoundingClientRect(),s="vertical"===this.split?t:e,{value:i,unit:o}=ws(this.initialHandlePosition??"50%");this._handlePosition="percent"===o?$s(i,s):i}connectedCallback(){super.connectedCallback()}firstUpdated(t){"none"!==this.fixedPane&&(this._resizeObserver.observe(this._wrapperEl),this._wrapperObserved=!0),this._boundRect=this._wrapperEl.getBoundingClientRect();const{value:e,unit:s}=this.handlePosition?ws(this.handlePosition):ws(this.initialHandlePosition);this._setPosition(e,s),this._initFixedPane()}_handlePositionPropChanged(){if(this.handlePosition&&this._wrapperEl){this._boundRect=this._wrapperEl.getBoundingClientRect();const{value:t,unit:e}=ws(this.handlePosition);this._setPosition(t,e)}}_fixedPanePropChanged(){this._wrapperEl&&this._initFixedPane()}_initFixedPane(){if("none"===this.fixedPane)this._wrapperObserved&&(this._resizeObserver.unobserve(this._wrapperEl),this._wrapperObserved=!1);else{const{width:t,height:e}=this._boundRect,s="vertical"===this.split?t:e;this._fixedPaneSize="start"===this.fixedPane?this._handlePosition:s-this._handlePosition,this._wrapperObserved||(this._resizeObserver.observe(this._wrapperEl),this._wrapperObserved=!0)}}_setPosition(t,e){const{width:s,height:i}=this._boundRect,o="vertical"===this.split?s:i;this._handlePosition="percent"===e?$s(t,o):t}_handleMouseOver(){this._hover=!0,this._hide=!1}_handleMouseOut(t){1!==t.buttons&&(this._hover=!1,this._hide=!0)}_handleMouseDown(t){t.stopPropagation(),t.preventDefault(),this._boundRect=this._wrapperEl.getBoundingClientRect();const{left:e,top:s}=this._boundRect,{left:i,top:o}=this._handleEl.getBoundingClientRect(),r=t.clientX-e,n=t.clientY-s;"vertical"===this.split&&(this._handleOffset=r-(i-e)),"horizontal"===this.split&&(this._handleOffset=n-(o-s)),this._isDragActive=!0,window.addEventListener("mouseup",this._handleMouseUp),window.addEventListener("mousemove",this._handleMouseMove)}_handleDblClick(){this.resetOnDblClick&&this.resetHandlePosition()}_handleSlotChange(){[...this._nestedLayoutsAtStart,...this._nestedLayoutsAtEnd].forEach((t=>{t instanceof xs&&t.resetHandlePosition()}))}render(){const{width:t,height:e}=this._boundRect,s="vertical"===this.split?t:e,i="none"!==this.fixedPane?`${this._handlePosition}px`:`${ks(this._handlePosition,s)}%`;let o="";o="start"===this.fixedPane?`0 0 ${this._fixedPaneSize}px`:`1 1 ${ks(this._handlePosition,s)}%`;let r="";r="end"===this.fixedPane?`0 0 ${this._fixedPaneSize}px`:`1 1 ${ks(s-this._handlePosition,s)}%`;const n={left:"vertical"===this.split?i:"0",top:"vertical"===this.split?"0":i},l=this.handleSize??4;"vertical"===this.split&&(n.marginLeft=0-l/2+"px",n.width=`${l}px`),"horizontal"===this.split&&(n.height=`${l}px`,n.marginTop=0-l/2+"px");const a=Mt({"handle-overlay":!0,active:this._isDragActive,"split-vertical":"vertical"===this.split,"split-horizontal":"horizontal"===this.split}),h=Mt({handle:!0,hover:this._hover,hide:this._hide,"split-vertical":"vertical"===this.split,"split-horizontal":"horizontal"===this.split}),c={wrapper:!0,horizontal:"horizontal"===this.split};return U`
1902
+ <div class=${Mt(c)}>
1903
+ <div class="start" .style=${Ft({flex:o})}>
1904
1904
  <slot name="start" @slotchange=${this._handleSlotChange}></slot>
1905
1905
  </div>
1906
- <div class="end" .style=${Pt({flex:r})}>
1906
+ <div class="end" .style=${Ft({flex:r})}>
1907
1907
  <slot name="end" @slotchange=${this._handleSlotChange}></slot>
1908
1908
  </div>
1909
1909
  <div class=${a}></div>
1910
1910
  <div
1911
- class=${c}
1912
- .style=${Pt(n)}
1911
+ class=${h}
1912
+ .style=${Ft(n)}
1913
1913
  @mouseover=${this._handleMouseOver}
1914
1914
  @mouseout=${this._handleMouseOut}
1915
1915
  @mousedown=${this._handleMouseDown}
1916
1916
  @dblclick=${this._handleDblClick}
1917
1917
  ></div>
1918
1918
  </div>
1919
- `}};$s.styles=gs,xs([pt({reflect:!0})],$s.prototype,"split",null),xs([pt({type:Boolean,reflect:!0,attribute:"reset-on-dbl-click"})],$s.prototype,"resetOnDblClick",void 0),xs([pt({type:Number,reflect:!0,attribute:"handle-size"})],$s.prototype,"handleSize",void 0),xs([pt({reflect:!0,attribute:"initial-handle-position"})],$s.prototype,"initialHandlePosition",void 0),xs([pt({attribute:"handle-position"})],$s.prototype,"handlePosition",null),xs([pt({attribute:"fixed-pane"})],$s.prototype,"fixedPane",null),xs([vt()],$s.prototype,"_handlePosition",void 0),xs([vt()],$s.prototype,"_isDragActive",void 0),xs([vt()],$s.prototype,"_hover",void 0),xs([vt()],$s.prototype,"_hide",void 0),xs([ft(".wrapper")],$s.prototype,"_wrapperEl",void 0),xs([ft(".handle")],$s.prototype,"_handleEl",void 0),xs([mt({slot:"start",selector:"vscode-split-layout"})],$s.prototype,"_nestedLayoutsAtStart",void 0),xs([mt({slot:"end",selector:"vscode-split-layout"})],$s.prototype,"_nestedLayoutsAtEnd",void 0),$s=ms=xs([kt("vscode-split-layout")],$s);const _s=[$t,n`
1919
+ `}};_s.styles=ms,ys([vt({reflect:!0})],_s.prototype,"split",null),ys([vt({type:Boolean,reflect:!0,attribute:"reset-on-dbl-click"})],_s.prototype,"resetOnDblClick",void 0),ys([vt({type:Number,reflect:!0,attribute:"handle-size"})],_s.prototype,"handleSize",void 0),ys([vt({reflect:!0,attribute:"initial-handle-position"})],_s.prototype,"initialHandlePosition",void 0),ys([vt({attribute:"handle-position"})],_s.prototype,"handlePosition",null),ys([vt({attribute:"fixed-pane"})],_s.prototype,"fixedPane",null),ys([bt()],_s.prototype,"_handlePosition",void 0),ys([bt()],_s.prototype,"_isDragActive",void 0),ys([bt()],_s.prototype,"_hover",void 0),ys([bt()],_s.prototype,"_hide",void 0),ys([gt(".wrapper")],_s.prototype,"_wrapperEl",void 0),ys([gt(".handle")],_s.prototype,"_handleEl",void 0),ys([xt({slot:"start",selector:"vscode-split-layout"})],_s.prototype,"_nestedLayoutsAtStart",void 0),ys([xt({slot:"end",selector:"vscode-split-layout"})],_s.prototype,"_nestedLayoutsAtEnd",void 0),_s=xs=ys([$t("vscode-split-layout")],_s);const Ss=[_t,n`
1920
1920
  :host {
1921
1921
  border-bottom: 1px solid transparent;
1922
1922
  cursor: pointer;
@@ -2008,18 +2008,18 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2008
2008
  slot[name='content-after']::slotted(vscode-badge) {
2009
2009
  margin-left: 8px;
2010
2010
  }
2011
- `];var Cs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Ss=class extends wt{constructor(){super(...arguments),this.active=!1,this.ariaControls="",this.panel=!1,this.role="tab",this.tabId=-1}attributeChangedCallback(t,e,s){if(super.attributeChangedCallback(t,e,s),"active"===t){const t=null!==s;this.ariaSelected=t?"true":"false",this.tabIndex=t?0:-1}}render(){return U`
2011
+ `];var Cs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Bs=class extends kt{constructor(){super(...arguments),this.active=!1,this.ariaControls="",this.panel=!1,this.role="tab",this.tabId=-1}attributeChangedCallback(t,e,s){if(super.attributeChangedCallback(t,e,s),"active"===t){const t=null!==s;this.ariaSelected=t?"true":"false",this.tabIndex=t?0:-1}}render(){return U`
2012
2012
  <div
2013
- class=${It({wrapper:!0,active:this.active,panel:this.panel})}
2013
+ class=${Mt({wrapper:!0,active:this.active,panel:this.panel})}
2014
2014
  >
2015
2015
  <div class="before"><slot name="content-before"></slot></div>
2016
2016
  <div class="main"><slot></slot></div>
2017
2017
  <div class="after"><slot name="content-after"></slot></div>
2018
2018
  <span
2019
- class=${It({"active-indicator":!0,active:this.active,panel:this.panel})}
2019
+ class=${Mt({"active-indicator":!0,active:this.active,panel:this.panel})}
2020
2020
  ></span>
2021
2021
  </div>
2022
- `}};Ss.styles=_s,Cs([pt({type:Boolean,reflect:!0})],Ss.prototype,"active",void 0),Cs([pt({reflect:!0,attribute:"aria-controls"})],Ss.prototype,"ariaControls",void 0),Cs([pt({type:Boolean,reflect:!0})],Ss.prototype,"panel",void 0),Cs([pt({reflect:!0})],Ss.prototype,"role",void 0),Cs([pt({type:Number,reflect:!0,attribute:"tab-id"})],Ss.prototype,"tabId",void 0),Ss=Cs([kt("vscode-tab-header")],Ss);const Bs=[$t,n`
2022
+ `}};Bs.styles=Ss,Cs([vt({type:Boolean,reflect:!0})],Bs.prototype,"active",void 0),Cs([vt({reflect:!0,attribute:"aria-controls"})],Bs.prototype,"ariaControls",void 0),Cs([vt({type:Boolean,reflect:!0})],Bs.prototype,"panel",void 0),Cs([vt({reflect:!0})],Bs.prototype,"role",void 0),Cs([vt({type:Number,reflect:!0,attribute:"tab-id"})],Bs.prototype,"tabId",void 0),Bs=Cs([$t("vscode-tab-header")],Bs);const Os=[_t,n`
2023
2023
  :host {
2024
2024
  display: block;
2025
2025
  overflow: hidden;
@@ -2035,7 +2035,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2035
2035
  :host([panel]) {
2036
2036
  background-color: var(--vscode-panel-background);
2037
2037
  }
2038
- `];var zs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Os=class extends wt{constructor(){super(...arguments),this.hidden=!1,this.ariaLabelledby="",this.panel=!1,this.role="tabpanel",this.tabIndex=0}render(){return U` <slot></slot> `}};Os.styles=Bs,zs([pt({type:Boolean,reflect:!0})],Os.prototype,"hidden",void 0),zs([pt({reflect:!0,attribute:"aria-labelledby"})],Os.prototype,"ariaLabelledby",void 0),zs([pt({type:Boolean,reflect:!0})],Os.prototype,"panel",void 0),zs([pt({reflect:!0})],Os.prototype,"role",void 0),zs([pt({type:Number,reflect:!0})],Os.prototype,"tabIndex",void 0),Os=zs([kt("vscode-tab-panel")],Os);const As=[$t,n`
2038
+ `];var zs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let As=class extends kt{constructor(){super(...arguments),this.hidden=!1,this.ariaLabelledby="",this.panel=!1,this.role="tabpanel",this.tabIndex=0}render(){return U` <slot></slot> `}};As.styles=Os,zs([vt({type:Boolean,reflect:!0})],As.prototype,"hidden",void 0),zs([vt({reflect:!0,attribute:"aria-labelledby"})],As.prototype,"ariaLabelledby",void 0),zs([vt({type:Boolean,reflect:!0})],As.prototype,"panel",void 0),zs([vt({reflect:!0})],As.prototype,"role",void 0),zs([vt({type:Number,reflect:!0})],As.prototype,"tabIndex",void 0),As=zs([$t("vscode-tab-panel")],As);const Es=[_t,n`
2039
2039
  :host {
2040
2040
  display: table;
2041
2041
  table-layout: fixed;
@@ -2049,7 +2049,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2049
2049
  ::slotted(vscode-table-row:nth-child(odd)) {
2050
2050
  background-color: var(--vsc-row-odd-background);
2051
2051
  }
2052
- `];var Es=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let js=class extends wt{constructor(){super(...arguments),this.role="rowgroup"}render(){return U` <slot></slot> `}};js.styles=As,Es([pt({reflect:!0})],js.prototype,"role",void 0),js=Es([kt("vscode-table-body")],js);const Is=[$t,n`
2052
+ `];var Is=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let js=class extends kt{constructor(){super(...arguments),this.role="rowgroup"}render(){return U` <slot></slot> `}};js.styles=Es,Is([vt({reflect:!0})],js.prototype,"role",void 0),js=Is([$t("vscode-table-body")],js);const Ms=[_t,n`
2053
2053
  :host {
2054
2054
  border-bottom-color: var(--vscode-editorGroup-border);
2055
2055
  border-bottom-style: solid;
@@ -2092,21 +2092,21 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2092
2092
  .column-label {
2093
2093
  font-weight: bold;
2094
2094
  }
2095
- `];var Ms=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Ps=class extends wt{constructor(){super(...arguments),this.role="cell",this.columnLabel="",this.compact=!1}render(){const t=this.columnLabel?U`<div class="column-label" role="presentation">
2095
+ `];var Ps=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Fs=class extends kt{constructor(){super(...arguments),this.role="cell",this.columnLabel="",this.compact=!1}render(){const t=this.columnLabel?U`<div class="column-label" role="presentation">
2096
2096
  ${this.columnLabel}
2097
2097
  </div>`:W;return U`
2098
2098
  <div class="wrapper">
2099
2099
  ${t}
2100
2100
  <slot></slot>
2101
2101
  </div>
2102
- `}};Ps.styles=Is,Ms([pt({reflect:!0})],Ps.prototype,"role",void 0),Ms([pt({attribute:"column-label"})],Ps.prototype,"columnLabel",void 0),Ms([pt({type:Boolean,reflect:!0})],Ps.prototype,"compact",void 0),Ps=Ms([kt("vscode-table-cell")],Ps);const Fs=[$t,n`
2102
+ `}};Fs.styles=Ms,Ps([vt({reflect:!0})],Fs.prototype,"role",void 0),Ps([vt({attribute:"column-label"})],Fs.prototype,"columnLabel",void 0),Ps([vt({type:Boolean,reflect:!0})],Fs.prototype,"compact",void 0),Fs=Ps([$t("vscode-table-cell")],Fs);const Ds=[_t,n`
2103
2103
  :host {
2104
2104
  background-color: var(--vscode-keybindingTable-headerBackground);
2105
2105
  display: table;
2106
2106
  table-layout: fixed;
2107
2107
  width: 100%;
2108
2108
  }
2109
- `];var Ns=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Ds=class extends wt{constructor(){super(...arguments),this.role="rowgroup"}render(){return U` <slot></slot> `}};Ds.styles=Fs,Ns([pt({reflect:!0})],Ds.prototype,"role",void 0),Ds=Ns([kt("vscode-table-header")],Ds);const Vs=[$t,n`
2109
+ `];var Vs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Ns=class extends kt{constructor(){super(...arguments),this.role="rowgroup"}render(){return U` <slot></slot> `}};Ns.styles=Ds,Vs([vt({reflect:!0})],Ns.prototype,"role",void 0),Ns=Vs([$t("vscode-table-header")],Ns);const Rs=[_t,n`
2110
2110
  :host {
2111
2111
  box-sizing: border-box;
2112
2112
  color: var(--vscode-foreground);
@@ -2131,11 +2131,11 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2131
2131
  white-space: inherit;
2132
2132
  width: 100%;
2133
2133
  }
2134
- `];var Ts=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Rs=class extends wt{constructor(){super(...arguments),this.role="columnheader"}render(){return U`
2134
+ `];var Ts=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Ls=class extends kt{constructor(){super(...arguments),this.role="columnheader"}render(){return U`
2135
2135
  <div class="wrapper">
2136
2136
  <slot></slot>
2137
2137
  </div>
2138
- `}};Rs.styles=Vs,Ts([pt({reflect:!0})],Rs.prototype,"role",void 0),Rs=Ts([kt("vscode-table-header-cell")],Rs);const Ls=[$t,n`
2138
+ `}};Ls.styles=Rs,Ts([vt({reflect:!0})],Ls.prototype,"role",void 0),Ls=Ts([$t("vscode-table-header-cell")],Ls);const Us=[_t,n`
2139
2139
  :host {
2140
2140
  border-top-color: var(--vscode-editorGroup-border);
2141
2141
  border-top-style: solid;
@@ -2143,7 +2143,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2143
2143
  display: var(--vsc-row-display);
2144
2144
  width: 100%;
2145
2145
  }
2146
- `];var Us=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let qs=class extends wt{constructor(){super(...arguments),this.role="row"}render(){return U` <slot></slot> `}};qs.styles=Ls,Us([pt({reflect:!0})],qs.prototype,"role",void 0),qs=Us([kt("vscode-table-row")],qs);const Hs=(t,e)=>{if("number"!=typeof t||Number.isNaN(t)){if("string"==typeof t&&/^[0-9.]+$/.test(t)){return Number(t)/e*100}if("string"==typeof t&&/^[0-9.]+%$/.test(t))return Number(t.substring(0,t.length-1));if("string"==typeof t&&/^[0-9.]+px$/.test(t)){return Number(t.substring(0,t.length-2))/e*100}return null}return t/e*100},Ws=[$t,n`
2146
+ `];var qs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Hs=class extends kt{constructor(){super(...arguments),this.role="row"}render(){return U` <slot></slot> `}};Hs.styles=Us,qs([vt({reflect:!0})],Hs.prototype,"role",void 0),Hs=qs([$t("vscode-table-row")],Hs);const Ws=(t,e)=>{if("number"!=typeof t||Number.isNaN(t)){if("string"==typeof t&&/^[0-9.]+$/.test(t)){return Number(t)/e*100}if("string"==typeof t&&/^[0-9.]+%$/.test(t))return Number(t.substring(0,t.length-1));if("string"==typeof t&&/^[0-9.]+px$/.test(t)){return Number(t.substring(0,t.length-2))/e*100}return null}return t/e*100},Gs=[_t,n`
2147
2147
  :host {
2148
2148
  display: block;
2149
2149
  --vsc-row-even-background: transparent;
@@ -2266,11 +2266,11 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2266
2266
  position: absolute;
2267
2267
  width: 5px;
2268
2268
  }
2269
- `];var Ks=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Gs=class extends wt{constructor(){super(...arguments),this.role="table",this.resizable=!1,this.responsive=!1,this.bordered=!1,this.borderedColumns=!1,this.borderedRows=!1,this.breakpoint=300,this.minColumnWidth="50px",this.delayedResizing=!1,this.compact=!1,this.zebra=!1,this.zebraOdd=!1,this._sashPositions=[],this._isDragging=!1,this._sashHovers=[],this._columns=[],this._activeSashElementIndex=-1,this._activeSashCursorOffset=0,this._componentX=0,this._componentH=0,this._componentW=0,this._headerCells=[],this._cellsOfFirstRow=[],this._prevHeaderHeight=0,this._prevComponentHeight=0,this._componentResizeObserverCallback=()=>{this._memoizeComponentDimensions(),this._updateResizeHandlersSize(),this.responsive&&this._toggleCompactView(),this._resizeTableBody()},this._headerResizeObserverCallback=()=>{this._updateResizeHandlersSize()},this._bodyResizeObserverCallback=()=>{this._resizeTableBody()},this._onResizingMouseMove=t=>{t.stopPropagation(),this._updateActiveSashPosition(t.pageX),this.delayedResizing?this._resizeColumns(!1):this._resizeColumns(!0)},this._onResizingMouseUp=t=>{this._resizeColumns(!0),this._updateActiveSashPosition(t.pageX),this._sashHovers[this._activeSashElementIndex]=!1,this._isDragging=!1,this._activeSashElementIndex=-1,document.removeEventListener("mousemove",this._onResizingMouseMove),document.removeEventListener("mouseup",this._onResizingMouseUp)}}set columns(t){this._columns=t,this.isConnected&&this._initDefaultColumnSizes()}get columns(){return this._columns}connectedCallback(){super.connectedCallback(),this._memoizeComponentDimensions(),this._initDefaultColumnSizes()}disconnectedCallback(){super.disconnectedCallback(),this._componentResizeObserver?.unobserve(this),this._componentResizeObserver?.disconnect(),this._bodyResizeObserver?.disconnect()}_px2Percent(t){return t/this._componentW*100}_percent2Px(t){return this._componentW*t/100}_memoizeComponentDimensions(){const t=this.getBoundingClientRect();this._componentH=t.height,this._componentW=t.width,this._componentX=t.x}_queryHeaderCells(){const t=this._assignedHeaderElements;return t&&t[0]?Array.from(t[0].querySelectorAll("vscode-table-header-cell")):[]}_getHeaderCells(){return this._headerCells.length||(this._headerCells=this._queryHeaderCells()),this._headerCells}_queryCellsOfFirstRow(){const t=this._assignedBodyElements;return t&&t[0]?Array.from(t[0].querySelectorAll("vscode-table-row:first-child vscode-table-cell")):[]}_getCellsOfFirstRow(){return this._cellsOfFirstRow.length||(this._cellsOfFirstRow=this._queryCellsOfFirstRow()),this._cellsOfFirstRow}_resizeTableBody(){let t=0,e=0;const s=this.getBoundingClientRect().height;this._assignedHeaderElements&&this._assignedHeaderElements.length&&(t=this._assignedHeaderElements[0].getBoundingClientRect().height),this._assignedBodyElements&&this._assignedBodyElements.length&&(e=this._assignedBodyElements[0].getBoundingClientRect().height);const i=e-t-s;this._scrollableElement.style.height=i>0?s-t+"px":"auto"}_initResizeObserver(){this._componentResizeObserver=new ResizeObserver(this._componentResizeObserverCallback),this._componentResizeObserver.observe(this),this._headerResizeObserver=new ResizeObserver(this._headerResizeObserverCallback),this._headerResizeObserver.observe(this._headerElement)}_calcColWidthPercentages(){const t=this._getHeaderCells().length;let e=this.columns.slice(0,t);const s=e.filter((t=>"auto"===t)).length+t-e.length;let i=100;if(e=e.map((t=>{const e=Hs(t,this._componentW);return null===e?"auto":(i-=e,e)})),e.length<t)for(let s=e.length;s<t;s++)e.push("auto");return e=e.map((t=>"auto"===t?i/s:t)),e}_initHeaderCellSizes(t){this._getHeaderCells().forEach(((e,s)=>{e.style.width=`${t[s]}%`}))}_initBodyColumnSizes(t){this._getCellsOfFirstRow().forEach(((e,s)=>{e.style.width=`${t[s]}%`}))}_initSashes(t){const e=t.length;let s=0;this._sashPositions=[],t.forEach(((t,i)=>{if(i<e-1){const e=s+t;this._sashPositions.push(e),s=e}}))}_initDefaultColumnSizes(){const t=this._calcColWidthPercentages();this._initHeaderCellSizes(t),this._initBodyColumnSizes(t),this._initSashes(t)}_updateResizeHandlersSize(){const t=this._headerElement.getBoundingClientRect();if(t.height===this._prevHeaderHeight&&this._componentH===this._prevComponentHeight)return;this._prevHeaderHeight=t.height,this._prevComponentHeight=this._componentH;const e=this._componentH-t.height;this._sashVisibleElements.forEach((s=>{s.style.height=`${e}px`,s.style.top=`${t.height}px`}))}_applyCompactViewColumnLabels(){const t=this._getHeaderCells().map((t=>t.innerText));this.querySelectorAll("vscode-table-row").forEach((e=>{e.querySelectorAll("vscode-table-cell").forEach(((e,s)=>{e.columnLabel=t[s],e.compact=!0}))}))}_clearCompactViewColumnLabels(){this.querySelectorAll("vscode-table-cell").forEach((t=>{t.columnLabel="",t.compact=!1}))}_toggleCompactView(){const t=this.getBoundingClientRect().width<this.breakpoint;this.compact!==t&&(this.compact=t,t?this._applyCompactViewColumnLabels():this._clearCompactViewColumnLabels())}_onDefaultSlotChange(){this._assignedElements.forEach((t=>{"vscode-table-header"!==t.tagName.toLowerCase()?"vscode-table-body"!==t.tagName.toLowerCase()||(t.slot="body"):t.slot="header"}))}_onHeaderSlotChange(){this._headerCells=this._queryHeaderCells()}_onBodySlotChange(){if(this._initDefaultColumnSizes(),this._initResizeObserver(),this._updateResizeHandlersSize(),!this._bodyResizeObserver){const t=this._assignedBodyElements[0]??null;t&&(this._bodyResizeObserver=new ResizeObserver(this._bodyResizeObserverCallback),this._bodyResizeObserver.observe(t))}}_onSashMouseOver(t){if(this._isDragging)return;const e=t.currentTarget,s=Number(e.dataset.index);this._sashHovers[s]=!0,this.requestUpdate()}_onSashMouseOut(t){if(t.stopPropagation(),this._isDragging)return;const e=t.currentTarget,s=Number(e.dataset.index);this._sashHovers[s]=!1,this.requestUpdate()}_onSashMouseDown(t){t.stopPropagation();const{pageX:e,currentTarget:s}=t,i=s,o=Number(i.dataset.index),r=i.getBoundingClientRect().x;this._isDragging=!0,this._activeSashElementIndex=o,this._sashHovers[this._activeSashElementIndex]=!0,this._activeSashCursorOffset=this._px2Percent(e-r);const n=this._getHeaderCells();this._headerCellsToResize=[],this._headerCellsToResize.push(n[o]),n[o+1]&&(this._headerCellsToResize[1]=n[o+1]);const l=this._bodySlot.assignedElements()[0].querySelectorAll("vscode-table-row:first-child > vscode-table-cell");this._cellsToResize=[],this._cellsToResize.push(l[o]),l[o+1]&&this._cellsToResize.push(l[o+1]),document.addEventListener("mousemove",this._onResizingMouseMove),document.addEventListener("mouseup",this._onResizingMouseUp)}_updateActiveSashPosition(t){const{prevSashPos:e,nextSashPos:s}=this._getSashPositions();let i=Hs(this.minColumnWidth,this._componentW);null===i&&(i=0);const o=e?e+i:i,r=s?s-i:100-i;let n=this._px2Percent(t-this._componentX-this._percent2Px(this._activeSashCursorOffset));n=Math.max(n,o),n=Math.min(n,r),this._sashPositions[this._activeSashElementIndex]=n,this.requestUpdate()}_getSashPositions(){return{sashPos:this._sashPositions[this._activeSashElementIndex],prevSashPos:this._sashPositions[this._activeSashElementIndex-1]||0,nextSashPos:this._sashPositions[this._activeSashElementIndex+1]||100}}_resizeColumns(t=!0){const{sashPos:e,prevSashPos:s,nextSashPos:i}=this._getSashPositions(),o=`${e-s}%`,r=`${i-e}%`;this._headerCellsToResize[0].style.width=o,this._headerCellsToResize[1]&&(this._headerCellsToResize[1].style.width=r),t&&(this._cellsToResize[0].style.width=o,this._cellsToResize[1]&&(this._cellsToResize[1].style.width=r))}render(){const t=this._sashPositions.map(((t,e)=>{const s=It({sash:!0,hover:this._sashHovers[e],resizable:this.resizable}),i=`${t}%`;return this.resizable?U`
2269
+ `];var Ks=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Js=class extends kt{constructor(){super(...arguments),this.role="table",this.resizable=!1,this.responsive=!1,this.bordered=!1,this.borderedColumns=!1,this.borderedRows=!1,this.breakpoint=300,this.minColumnWidth="50px",this.delayedResizing=!1,this.compact=!1,this.zebra=!1,this.zebraOdd=!1,this._sashPositions=[],this._isDragging=!1,this._sashHovers=[],this._columns=[],this._activeSashElementIndex=-1,this._activeSashCursorOffset=0,this._componentX=0,this._componentH=0,this._componentW=0,this._headerCells=[],this._cellsOfFirstRow=[],this._prevHeaderHeight=0,this._prevComponentHeight=0,this._componentResizeObserverCallback=()=>{this._memoizeComponentDimensions(),this._updateResizeHandlersSize(),this.responsive&&this._toggleCompactView(),this._resizeTableBody()},this._headerResizeObserverCallback=()=>{this._updateResizeHandlersSize()},this._bodyResizeObserverCallback=()=>{this._resizeTableBody()},this._onResizingMouseMove=t=>{t.stopPropagation(),this._updateActiveSashPosition(t.pageX),this.delayedResizing?this._resizeColumns(!1):this._resizeColumns(!0)},this._onResizingMouseUp=t=>{this._resizeColumns(!0),this._updateActiveSashPosition(t.pageX),this._sashHovers[this._activeSashElementIndex]=!1,this._isDragging=!1,this._activeSashElementIndex=-1,document.removeEventListener("mousemove",this._onResizingMouseMove),document.removeEventListener("mouseup",this._onResizingMouseUp)}}set columns(t){this._columns=t,this.isConnected&&this._initDefaultColumnSizes()}get columns(){return this._columns}connectedCallback(){super.connectedCallback(),this._memoizeComponentDimensions(),this._initDefaultColumnSizes()}disconnectedCallback(){super.disconnectedCallback(),this._componentResizeObserver?.unobserve(this),this._componentResizeObserver?.disconnect(),this._bodyResizeObserver?.disconnect()}_px2Percent(t){return t/this._componentW*100}_percent2Px(t){return this._componentW*t/100}_memoizeComponentDimensions(){const t=this.getBoundingClientRect();this._componentH=t.height,this._componentW=t.width,this._componentX=t.x}_queryHeaderCells(){const t=this._assignedHeaderElements;return t&&t[0]?Array.from(t[0].querySelectorAll("vscode-table-header-cell")):[]}_getHeaderCells(){return this._headerCells.length||(this._headerCells=this._queryHeaderCells()),this._headerCells}_queryCellsOfFirstRow(){const t=this._assignedBodyElements;return t&&t[0]?Array.from(t[0].querySelectorAll("vscode-table-row:first-child vscode-table-cell")):[]}_getCellsOfFirstRow(){return this._cellsOfFirstRow.length||(this._cellsOfFirstRow=this._queryCellsOfFirstRow()),this._cellsOfFirstRow}_resizeTableBody(){let t=0,e=0;const s=this.getBoundingClientRect().height;this._assignedHeaderElements&&this._assignedHeaderElements.length&&(t=this._assignedHeaderElements[0].getBoundingClientRect().height),this._assignedBodyElements&&this._assignedBodyElements.length&&(e=this._assignedBodyElements[0].getBoundingClientRect().height);const i=e-t-s;this._scrollableElement.style.height=i>0?s-t+"px":"auto"}_initResizeObserver(){this._componentResizeObserver=new ResizeObserver(this._componentResizeObserverCallback),this._componentResizeObserver.observe(this),this._headerResizeObserver=new ResizeObserver(this._headerResizeObserverCallback),this._headerResizeObserver.observe(this._headerElement)}_calcColWidthPercentages(){const t=this._getHeaderCells().length;let e=this.columns.slice(0,t);const s=e.filter((t=>"auto"===t)).length+t-e.length;let i=100;if(e=e.map((t=>{const e=Ws(t,this._componentW);return null===e?"auto":(i-=e,e)})),e.length<t)for(let s=e.length;s<t;s++)e.push("auto");return e=e.map((t=>"auto"===t?i/s:t)),e}_initHeaderCellSizes(t){this._getHeaderCells().forEach(((e,s)=>{e.style.width=`${t[s]}%`}))}_initBodyColumnSizes(t){this._getCellsOfFirstRow().forEach(((e,s)=>{e.style.width=`${t[s]}%`}))}_initSashes(t){const e=t.length;let s=0;this._sashPositions=[],t.forEach(((t,i)=>{if(i<e-1){const e=s+t;this._sashPositions.push(e),s=e}}))}_initDefaultColumnSizes(){const t=this._calcColWidthPercentages();this._initHeaderCellSizes(t),this._initBodyColumnSizes(t),this._initSashes(t)}_updateResizeHandlersSize(){const t=this._headerElement.getBoundingClientRect();if(t.height===this._prevHeaderHeight&&this._componentH===this._prevComponentHeight)return;this._prevHeaderHeight=t.height,this._prevComponentHeight=this._componentH;const e=this._componentH-t.height;this._sashVisibleElements.forEach((s=>{s.style.height=`${e}px`,s.style.top=`${t.height}px`}))}_applyCompactViewColumnLabels(){const t=this._getHeaderCells().map((t=>t.innerText));this.querySelectorAll("vscode-table-row").forEach((e=>{e.querySelectorAll("vscode-table-cell").forEach(((e,s)=>{e.columnLabel=t[s],e.compact=!0}))}))}_clearCompactViewColumnLabels(){this.querySelectorAll("vscode-table-cell").forEach((t=>{t.columnLabel="",t.compact=!1}))}_toggleCompactView(){const t=this.getBoundingClientRect().width<this.breakpoint;this.compact!==t&&(this.compact=t,t?this._applyCompactViewColumnLabels():this._clearCompactViewColumnLabels())}_onDefaultSlotChange(){this._assignedElements.forEach((t=>{"vscode-table-header"!==t.tagName.toLowerCase()?"vscode-table-body"!==t.tagName.toLowerCase()||(t.slot="body"):t.slot="header"}))}_onHeaderSlotChange(){this._headerCells=this._queryHeaderCells()}_onBodySlotChange(){if(this._initDefaultColumnSizes(),this._initResizeObserver(),this._updateResizeHandlersSize(),!this._bodyResizeObserver){const t=this._assignedBodyElements[0]??null;t&&(this._bodyResizeObserver=new ResizeObserver(this._bodyResizeObserverCallback),this._bodyResizeObserver.observe(t))}}_onSashMouseOver(t){if(this._isDragging)return;const e=t.currentTarget,s=Number(e.dataset.index);this._sashHovers[s]=!0,this.requestUpdate()}_onSashMouseOut(t){if(t.stopPropagation(),this._isDragging)return;const e=t.currentTarget,s=Number(e.dataset.index);this._sashHovers[s]=!1,this.requestUpdate()}_onSashMouseDown(t){t.stopPropagation();const{pageX:e,currentTarget:s}=t,i=s,o=Number(i.dataset.index),r=i.getBoundingClientRect().x;this._isDragging=!0,this._activeSashElementIndex=o,this._sashHovers[this._activeSashElementIndex]=!0,this._activeSashCursorOffset=this._px2Percent(e-r);const n=this._getHeaderCells();this._headerCellsToResize=[],this._headerCellsToResize.push(n[o]),n[o+1]&&(this._headerCellsToResize[1]=n[o+1]);const l=this._bodySlot.assignedElements()[0].querySelectorAll("vscode-table-row:first-child > vscode-table-cell");this._cellsToResize=[],this._cellsToResize.push(l[o]),l[o+1]&&this._cellsToResize.push(l[o+1]),document.addEventListener("mousemove",this._onResizingMouseMove),document.addEventListener("mouseup",this._onResizingMouseUp)}_updateActiveSashPosition(t){const{prevSashPos:e,nextSashPos:s}=this._getSashPositions();let i=Ws(this.minColumnWidth,this._componentW);null===i&&(i=0);const o=e?e+i:i,r=s?s-i:100-i;let n=this._px2Percent(t-this._componentX-this._percent2Px(this._activeSashCursorOffset));n=Math.max(n,o),n=Math.min(n,r),this._sashPositions[this._activeSashElementIndex]=n,this.requestUpdate()}_getSashPositions(){return{sashPos:this._sashPositions[this._activeSashElementIndex],prevSashPos:this._sashPositions[this._activeSashElementIndex-1]||0,nextSashPos:this._sashPositions[this._activeSashElementIndex+1]||100}}_resizeColumns(t=!0){const{sashPos:e,prevSashPos:s,nextSashPos:i}=this._getSashPositions(),o=`${e-s}%`,r=`${i-e}%`;this._headerCellsToResize[0].style.width=o,this._headerCellsToResize[1]&&(this._headerCellsToResize[1].style.width=r),t&&(this._cellsToResize[0].style.width=o,this._cellsToResize[1]&&(this._cellsToResize[1].style.width=r))}render(){const t=this._sashPositions.map(((t,e)=>{const s=Mt({sash:!0,hover:this._sashHovers[e],resizable:this.resizable}),i=`${t}%`;return this.resizable?U`
2270
2270
  <div
2271
2271
  class=${s}
2272
2272
  data-index=${e}
2273
- .style=${Pt({left:i})}
2273
+ .style=${Ft({left:i})}
2274
2274
  @mousedown=${this._onSashMouseDown}
2275
2275
  @mouseover=${this._onSashMouseOver}
2276
2276
  @mouseout=${this._onSashMouseOut}
@@ -2281,10 +2281,10 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2281
2281
  `:U`<div
2282
2282
  class=${s}
2283
2283
  data-index=${e}
2284
- .style=${Pt({left:i})}
2284
+ .style=${Ft({left:i})}
2285
2285
  >
2286
2286
  <div class="sash-visible"></div>
2287
- </div>`})),e=It({wrapper:!0,"select-disabled":this._isDragging,"resize-cursor":this._isDragging,"compact-view":this.compact});return U`
2287
+ </div>`})),e=Mt({wrapper:!0,"select-disabled":this._isDragging,"resize-cursor":this._isDragging,"compact-view":this.compact});return U`
2288
2288
  <div class=${e}>
2289
2289
  <div class="header">
2290
2290
  <slot name="caption"></slot>
@@ -2300,7 +2300,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2300
2300
  ${t}
2301
2301
  <slot @slotchange=${this._onDefaultSlotChange}></slot>
2302
2302
  </div>
2303
- `}};Gs.styles=Ws,Ks([pt({reflect:!0})],Gs.prototype,"role",void 0),Ks([pt({type:Boolean,reflect:!0})],Gs.prototype,"resizable",void 0),Ks([pt({type:Boolean,reflect:!0})],Gs.prototype,"responsive",void 0),Ks([pt({type:Boolean,reflect:!0})],Gs.prototype,"bordered",void 0),Ks([pt({type:Boolean,reflect:!0,attribute:"bordered-columns"})],Gs.prototype,"borderedColumns",void 0),Ks([pt({type:Boolean,reflect:!0,attribute:"bordered-rows"})],Gs.prototype,"borderedRows",void 0),Ks([pt({type:Number})],Gs.prototype,"breakpoint",void 0),Ks([pt({type:Array})],Gs.prototype,"columns",null),Ks([pt({attribute:"min-column-width"})],Gs.prototype,"minColumnWidth",void 0),Ks([pt({type:Boolean,reflect:!0,attribute:"delayed-resizing"})],Gs.prototype,"delayedResizing",void 0),Ks([pt({type:Boolean,reflect:!0})],Gs.prototype,"compact",void 0),Ks([pt({type:Boolean,reflect:!0})],Gs.prototype,"zebra",void 0),Ks([pt({type:Boolean,reflect:!0,attribute:"zebra-odd"})],Gs.prototype,"zebraOdd",void 0),Ks([ft('slot[name="body"]')],Gs.prototype,"_bodySlot",void 0),Ks([ft(".header")],Gs.prototype,"_headerElement",void 0),Ks([ft(".scrollable")],Gs.prototype,"_scrollableElement",void 0),Ks([function(t){return(e,s)=>bt(0,0,{get(){return(this.renderRoot??(gt??=document.createDocumentFragment())).querySelectorAll(t)}})}(".sash-visible")],Gs.prototype,"_sashVisibleElements",void 0),Ks([mt({flatten:!0,selector:"vscode-table-header, vscode-table-body"})],Gs.prototype,"_assignedElements",void 0),Ks([mt({slot:"header",flatten:!0,selector:"vscode-table-header"})],Gs.prototype,"_assignedHeaderElements",void 0),Ks([mt({slot:"body",flatten:!0,selector:"vscode-table-body"})],Gs.prototype,"_assignedBodyElements",void 0),Ks([vt()],Gs.prototype,"_sashPositions",void 0),Ks([vt()],Gs.prototype,"_isDragging",void 0),Gs=Ks([kt("vscode-table")],Gs);const Js=[$t,n`
2303
+ `}};Js.styles=Gs,Ks([vt({reflect:!0})],Js.prototype,"role",void 0),Ks([vt({type:Boolean,reflect:!0})],Js.prototype,"resizable",void 0),Ks([vt({type:Boolean,reflect:!0})],Js.prototype,"responsive",void 0),Ks([vt({type:Boolean,reflect:!0})],Js.prototype,"bordered",void 0),Ks([vt({type:Boolean,reflect:!0,attribute:"bordered-columns"})],Js.prototype,"borderedColumns",void 0),Ks([vt({type:Boolean,reflect:!0,attribute:"bordered-rows"})],Js.prototype,"borderedRows",void 0),Ks([vt({type:Number})],Js.prototype,"breakpoint",void 0),Ks([vt({type:Array})],Js.prototype,"columns",null),Ks([vt({attribute:"min-column-width"})],Js.prototype,"minColumnWidth",void 0),Ks([vt({type:Boolean,reflect:!0,attribute:"delayed-resizing"})],Js.prototype,"delayedResizing",void 0),Ks([vt({type:Boolean,reflect:!0})],Js.prototype,"compact",void 0),Ks([vt({type:Boolean,reflect:!0})],Js.prototype,"zebra",void 0),Ks([vt({type:Boolean,reflect:!0,attribute:"zebra-odd"})],Js.prototype,"zebraOdd",void 0),Ks([gt('slot[name="body"]')],Js.prototype,"_bodySlot",void 0),Ks([gt(".header")],Js.prototype,"_headerElement",void 0),Ks([gt(".scrollable")],Js.prototype,"_scrollableElement",void 0),Ks([function(t){return(e,s)=>ft(0,0,{get(){return(this.renderRoot??(mt??=document.createDocumentFragment())).querySelectorAll(t)}})}(".sash-visible")],Js.prototype,"_sashVisibleElements",void 0),Ks([xt({flatten:!0,selector:"vscode-table-header, vscode-table-body"})],Js.prototype,"_assignedElements",void 0),Ks([xt({slot:"header",flatten:!0,selector:"vscode-table-header"})],Js.prototype,"_assignedHeaderElements",void 0),Ks([xt({slot:"body",flatten:!0,selector:"vscode-table-body"})],Js.prototype,"_assignedBodyElements",void 0),Ks([bt()],Js.prototype,"_sashPositions",void 0),Ks([bt()],Js.prototype,"_isDragging",void 0),Js=Ks([$t("vscode-table")],Js);const Ys=[_t,n`
2304
2304
  :host {
2305
2305
  display: block;
2306
2306
  }
@@ -2332,9 +2332,9 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2332
2332
  display: block;
2333
2333
  margin-left: auto;
2334
2334
  }
2335
- `];var Ys=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Xs=class extends wt{constructor(){super(),this.panel=!1,this.role="tablist",this.selectedIndex=0,this._tabHeaders=[],this._tabPanels=[],this._componentId="",this._tabFocus=0,this._componentId=Oe()}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s),"selected-index"===t&&this._setActiveTab(),"panel"===t&&(this._tabHeaders.forEach((t=>t.panel=null!==s)),this._tabPanels.forEach((t=>t.panel=null!==s)))}_dispatchSelectEvent(){this.dispatchEvent(new CustomEvent("vsc-select",{detail:{selectedIndex:this.selectedIndex},composed:!0})),this.dispatchEvent(new CustomEvent("vsc-tabs-select",{detail:{selectedIndex:this.selectedIndex},composed:!0}))}_setActiveTab(){this._tabFocus=this.selectedIndex,this._tabPanels.forEach(((t,e)=>{t.hidden=e!==this.selectedIndex})),this._tabHeaders.forEach(((t,e)=>{t.active=e===this.selectedIndex}))}_focusPrevTab(){0===this._tabFocus?this._tabFocus=this._tabHeaders.length-1:this._tabFocus-=1}_focusNextTab(){this._tabFocus===this._tabHeaders.length-1?this._tabFocus=0:this._tabFocus+=1}_onHeaderKeyDown(t){"ArrowLeft"!==t.key&&"ArrowRight"!==t.key||(t.preventDefault(),this._tabHeaders[this._tabFocus].setAttribute("tabindex","-1"),"ArrowLeft"===t.key?this._focusPrevTab():"ArrowRight"===t.key&&this._focusNextTab(),this._tabHeaders[this._tabFocus].setAttribute("tabindex","0"),this._tabHeaders[this._tabFocus].focus()),"Enter"===t.key&&(t.preventDefault(),this.selectedIndex=this._tabFocus,this._dispatchSelectEvent())}_moveHeadersToHeaderSlot(){const t=this._mainSlotElements.filter((t=>t instanceof Ss));t.length>0&&t.forEach((t=>t.setAttribute("slot","header")))}_onMainSlotChange(){this._moveHeadersToHeaderSlot(),this._tabPanels=this._mainSlotElements.filter((t=>t instanceof Os)),this._tabPanels.forEach(((t,e)=>{t.ariaLabelledby=`t${this._componentId}-h${e}`,t.id=`t${this._componentId}-p${e}`,t.panel=this.panel})),this._setActiveTab()}_onHeaderSlotChange(){this._tabHeaders=this._headerSlotElements.filter((t=>t instanceof Ss)),this._tabHeaders.forEach(((t,e)=>{t.tabId=e,t.id=`t${this._componentId}-h${e}`,t.ariaControls=`t${this._componentId}-p${e}`,t.panel=this.panel,t.active=e===this.selectedIndex}))}_onHeaderClick(t){const e=t.composedPath().find((t=>t instanceof Ss));e&&(this.selectedIndex=e.tabId,this._setActiveTab(),this._dispatchSelectEvent())}render(){return U`
2335
+ `];var Xs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Zs=class extends kt{constructor(){super(),this.panel=!1,this.role="tablist",this.selectedIndex=0,this._tabHeaders=[],this._tabPanels=[],this._componentId="",this._tabFocus=0,this._componentId=Ae()}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s),"selected-index"===t&&this._setActiveTab(),"panel"===t&&(this._tabHeaders.forEach((t=>t.panel=null!==s)),this._tabPanels.forEach((t=>t.panel=null!==s)))}_dispatchSelectEvent(){this.dispatchEvent(new CustomEvent("vsc-select",{detail:{selectedIndex:this.selectedIndex},composed:!0})),this.dispatchEvent(new CustomEvent("vsc-tabs-select",{detail:{selectedIndex:this.selectedIndex},composed:!0}))}_setActiveTab(){this._tabFocus=this.selectedIndex,this._tabPanels.forEach(((t,e)=>{t.hidden=e!==this.selectedIndex})),this._tabHeaders.forEach(((t,e)=>{t.active=e===this.selectedIndex}))}_focusPrevTab(){0===this._tabFocus?this._tabFocus=this._tabHeaders.length-1:this._tabFocus-=1}_focusNextTab(){this._tabFocus===this._tabHeaders.length-1?this._tabFocus=0:this._tabFocus+=1}_onHeaderKeyDown(t){"ArrowLeft"!==t.key&&"ArrowRight"!==t.key||(t.preventDefault(),this._tabHeaders[this._tabFocus].setAttribute("tabindex","-1"),"ArrowLeft"===t.key?this._focusPrevTab():"ArrowRight"===t.key&&this._focusNextTab(),this._tabHeaders[this._tabFocus].setAttribute("tabindex","0"),this._tabHeaders[this._tabFocus].focus()),"Enter"===t.key&&(t.preventDefault(),this.selectedIndex=this._tabFocus,this._dispatchSelectEvent())}_moveHeadersToHeaderSlot(){const t=this._mainSlotElements.filter((t=>t instanceof Bs));t.length>0&&t.forEach((t=>t.setAttribute("slot","header")))}_onMainSlotChange(){this._moveHeadersToHeaderSlot(),this._tabPanels=this._mainSlotElements.filter((t=>t instanceof As)),this._tabPanels.forEach(((t,e)=>{t.ariaLabelledby=`t${this._componentId}-h${e}`,t.id=`t${this._componentId}-p${e}`,t.panel=this.panel})),this._setActiveTab()}_onHeaderSlotChange(){this._tabHeaders=this._headerSlotElements.filter((t=>t instanceof Bs)),this._tabHeaders.forEach(((t,e)=>{t.tabId=e,t.id=`t${this._componentId}-h${e}`,t.ariaControls=`t${this._componentId}-p${e}`,t.panel=this.panel,t.active=e===this.selectedIndex}))}_onHeaderClick(t){const e=t.composedPath().find((t=>t instanceof Bs));e&&(this.selectedIndex=e.tabId,this._setActiveTab(),this._dispatchSelectEvent())}render(){return U`
2336
2336
  <div
2337
- class=${It({header:!0,panel:this.panel})}
2337
+ class=${Mt({header:!0,panel:this.panel})}
2338
2338
  @click=${this._onHeaderClick}
2339
2339
  @keydown=${this._onHeaderKeyDown}
2340
2340
  >
@@ -2342,7 +2342,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2342
2342
  <slot name="addons"></slot>
2343
2343
  </div>
2344
2344
  <slot @slotchange=${this._onMainSlotChange}></slot>
2345
- `}};Xs.styles=Js,Ys([pt({type:Boolean,reflect:!0})],Xs.prototype,"panel",void 0),Ys([pt({reflect:!0})],Xs.prototype,"role",void 0),Ys([pt({type:Number,reflect:!0,attribute:"selected-index"})],Xs.prototype,"selectedIndex",void 0),Ys([mt({slot:"header"})],Xs.prototype,"_headerSlotElements",void 0),Ys([mt()],Xs.prototype,"_mainSlotElements",void 0),Xs=Ys([kt("vscode-tabs")],Xs);const Zs=[$t,n`
2345
+ `}};Zs.styles=Ys,Xs([vt({type:Boolean,reflect:!0})],Zs.prototype,"panel",void 0),Xs([vt({reflect:!0})],Zs.prototype,"role",void 0),Xs([vt({type:Number,reflect:!0,attribute:"selected-index"})],Zs.prototype,"selectedIndex",void 0),Xs([xt({slot:"header"})],Zs.prototype,"_headerSlotElements",void 0),Xs([xt()],Zs.prototype,"_mainSlotElements",void 0),Zs=Xs([$t("vscode-tabs")],Zs);const Qs=[_t,n`
2346
2346
  :host {
2347
2347
  display: inline-block;
2348
2348
  height: 40px;
@@ -2473,25 +2473,25 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2473
2473
  background-repeat: no-repeat;
2474
2474
  background-position: right bottom;
2475
2475
  }
2476
- `];var Qs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let ti=class extends wt{set value(t){this._value=t,this._internals.setFormValue(t)}get value(){return this._value}get wrappedElement(){return this._textareaEl}get form(){return this._internals.form}get type(){return"textarea"}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}set minlength(t){this.minLength=t}get minlength(){return this.minLength}set maxlength(t){this.maxLength=t}get maxlength(){return this.maxLength}constructor(){super(),this.autocomplete=void 0,this.autofocus=!1,this.defaultValue="",this.disabled=!1,this.invalid=!1,this.label="",this.maxLength=void 0,this.minLength=void 0,this.rows=void 0,this.cols=void 0,this.name=void 0,this.placeholder=void 0,this.readonly=!1,this.resize="none",this.required=!1,this.spellcheck=!1,this.monospace=!1,this._value="",this._textareaPointerCursor=!1,this._shadow=!1,this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._textareaEl.checkValidity(),this._setValidityFromInput(),this._internals.setFormValue(this._textareaEl.value)}))}updated(t){const e=["maxLength","minLength","required"];for(const s of t.keys())if(e.includes(String(s))){this.updateComplete.then((()=>{this._setValidityFromInput()}));break}}formResetCallback(){this.value=this.defaultValue}formStateRestoreCallback(t,e){this.updateComplete.then((()=>{this._value=t}))}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}_setValidityFromInput(){this._internals.setValidity(this._textareaEl.validity,this._textareaEl.validationMessage,this._textareaEl)}_dataChanged(){this._value=this._textareaEl.value,this._internals.setFormValue(this._textareaEl.value)}_handleChange(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("vsc-change",{detail:{data:this.value,originalEvent:t}}))}_handleInput(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new CustomEvent("vsc-input",{detail:{data:t.data,originalEvent:t}}))}_handleMouseMove(t){if(this._textareaEl.clientHeight>=this._textareaEl.scrollHeight)return void(this._textareaPointerCursor=!1);const e=this._textareaEl.getBoundingClientRect(),s=t.clientX;this._textareaPointerCursor=s>=e.left+e.width-14-2}_handleScroll(){this._shadow=this._textareaEl.scrollTop>0}render(){return U`
2476
+ `];var ti=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let ei=class extends kt{set value(t){this._value=t,this._internals.setFormValue(t)}get value(){return this._value}get wrappedElement(){return this._textareaEl}get form(){return this._internals.form}get type(){return"textarea"}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}set minlength(t){this.minLength=t}get minlength(){return this.minLength}set maxlength(t){this.maxLength=t}get maxlength(){return this.maxLength}constructor(){super(),this.autocomplete=void 0,this.autofocus=!1,this.defaultValue="",this.disabled=!1,this.invalid=!1,this.label="",this.maxLength=void 0,this.minLength=void 0,this.rows=void 0,this.cols=void 0,this.name=void 0,this.placeholder=void 0,this.readonly=!1,this.resize="none",this.required=!1,this.spellcheck=!1,this.monospace=!1,this._value="",this._textareaPointerCursor=!1,this._shadow=!1,this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._textareaEl.checkValidity(),this._setValidityFromInput(),this._internals.setFormValue(this._textareaEl.value)}))}updated(t){const e=["maxLength","minLength","required"];for(const s of t.keys())if(e.includes(String(s))){this.updateComplete.then((()=>{this._setValidityFromInput()}));break}}formResetCallback(){this.value=this.defaultValue}formStateRestoreCallback(t,e){this.updateComplete.then((()=>{this._value=t}))}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}_setValidityFromInput(){this._internals.setValidity(this._textareaEl.validity,this._textareaEl.validationMessage,this._textareaEl)}_dataChanged(){this._value=this._textareaEl.value,this._internals.setFormValue(this._textareaEl.value)}_handleChange(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("vsc-change",{detail:{data:this.value,originalEvent:t}}))}_handleInput(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new CustomEvent("vsc-input",{detail:{data:t.data,originalEvent:t}}))}_handleMouseMove(t){if(this._textareaEl.clientHeight>=this._textareaEl.scrollHeight)return void(this._textareaPointerCursor=!1);const e=this._textareaEl.getBoundingClientRect(),s=t.clientX;this._textareaPointerCursor=s>=e.left+e.width-14-2}_handleScroll(){this._shadow=this._textareaEl.scrollTop>0}render(){return U`
2477
2477
  <div
2478
- class=${It({shadow:!0,visible:this._shadow})}
2478
+ class=${Mt({shadow:!0,visible:this._shadow})}
2479
2479
  ></div>
2480
2480
  <textarea
2481
- autocomplete=${Mt(this.autocomplete)}
2481
+ autocomplete=${Pt(this.autocomplete)}
2482
2482
  ?autofocus=${this.autofocus}
2483
2483
  ?disabled=${this.disabled}
2484
2484
  aria-label=${this.label}
2485
2485
  id="textarea"
2486
- class=${It({monospace:this.monospace,"cursor-pointer":this._textareaPointerCursor})}
2487
- maxlength=${Mt(this.maxLength)}
2488
- minlength=${Mt(this.minLength)}
2489
- rows=${Mt(this.rows)}
2490
- cols=${Mt(this.cols)}
2491
- name=${Mt(this.name)}
2492
- placeholder=${Mt(this.placeholder)}
2486
+ class=${Mt({monospace:this.monospace,"cursor-pointer":this._textareaPointerCursor})}
2487
+ maxlength=${Pt(this.maxLength)}
2488
+ minlength=${Pt(this.minLength)}
2489
+ rows=${Pt(this.rows)}
2490
+ cols=${Pt(this.cols)}
2491
+ name=${Pt(this.name)}
2492
+ placeholder=${Pt(this.placeholder)}
2493
2493
  ?readonly=${this.readonly}
2494
- .style=${Pt({resize:this.resize})}
2494
+ .style=${Ft({resize:this.resize})}
2495
2495
  ?required=${this.required}
2496
2496
  spellcheck=${this.spellcheck}
2497
2497
  @change=${this._handleChange}
@@ -2500,7 +2500,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2500
2500
  @scroll=${this._handleScroll}
2501
2501
  .value=${this._value}
2502
2502
  ></textarea>
2503
- `}};ti.styles=Zs,ti.formAssociated=!0,ti.shadowRootOptions={...ct.shadowRootOptions,delegatesFocus:!0},Qs([pt()],ti.prototype,"autocomplete",void 0),Qs([pt({type:Boolean,reflect:!0})],ti.prototype,"autofocus",void 0),Qs([pt({attribute:"default-value"})],ti.prototype,"defaultValue",void 0),Qs([pt({type:Boolean,reflect:!0})],ti.prototype,"disabled",void 0),Qs([pt({type:Boolean,reflect:!0})],ti.prototype,"invalid",void 0),Qs([pt({attribute:!1})],ti.prototype,"label",void 0),Qs([pt({type:Number})],ti.prototype,"maxLength",void 0),Qs([pt({type:Number})],ti.prototype,"minLength",void 0),Qs([pt({type:Number})],ti.prototype,"rows",void 0),Qs([pt({type:Number})],ti.prototype,"cols",void 0),Qs([pt()],ti.prototype,"name",void 0),Qs([pt()],ti.prototype,"placeholder",void 0),Qs([pt({type:Boolean,reflect:!0})],ti.prototype,"readonly",void 0),Qs([pt()],ti.prototype,"resize",void 0),Qs([pt({type:Boolean,reflect:!0})],ti.prototype,"required",void 0),Qs([pt({type:Boolean})],ti.prototype,"spellcheck",void 0),Qs([pt({type:Boolean,reflect:!0})],ti.prototype,"monospace",void 0),Qs([pt()],ti.prototype,"value",null),Qs([ft("#textarea")],ti.prototype,"_textareaEl",void 0),Qs([vt()],ti.prototype,"_value",void 0),Qs([vt()],ti.prototype,"_textareaPointerCursor",void 0),Qs([vt()],ti.prototype,"_shadow",void 0),ti=Qs([kt("vscode-textarea")],ti);const ei=r(_t()),si=[$t,n`
2503
+ `}};ei.styles=Qs,ei.formAssociated=!0,ei.shadowRootOptions={...ht.shadowRootOptions,delegatesFocus:!0},ti([vt()],ei.prototype,"autocomplete",void 0),ti([vt({type:Boolean,reflect:!0})],ei.prototype,"autofocus",void 0),ti([vt({attribute:"default-value"})],ei.prototype,"defaultValue",void 0),ti([vt({type:Boolean,reflect:!0})],ei.prototype,"disabled",void 0),ti([vt({type:Boolean,reflect:!0})],ei.prototype,"invalid",void 0),ti([vt({attribute:!1})],ei.prototype,"label",void 0),ti([vt({type:Number})],ei.prototype,"maxLength",void 0),ti([vt({type:Number})],ei.prototype,"minLength",void 0),ti([vt({type:Number})],ei.prototype,"rows",void 0),ti([vt({type:Number})],ei.prototype,"cols",void 0),ti([vt()],ei.prototype,"name",void 0),ti([vt()],ei.prototype,"placeholder",void 0),ti([vt({type:Boolean,reflect:!0})],ei.prototype,"readonly",void 0),ti([vt()],ei.prototype,"resize",void 0),ti([vt({type:Boolean,reflect:!0})],ei.prototype,"required",void 0),ti([vt({type:Boolean})],ei.prototype,"spellcheck",void 0),ti([vt({type:Boolean,reflect:!0})],ei.prototype,"monospace",void 0),ti([vt()],ei.prototype,"value",null),ti([gt("#textarea")],ei.prototype,"_textareaEl",void 0),ti([bt()],ei.prototype,"_value",void 0),ti([bt()],ei.prototype,"_textareaPointerCursor",void 0),ti([bt()],ei.prototype,"_shadow",void 0),ei=ti([$t("vscode-textarea")],ei);const si=r(St()),ii=[_t,n`
2504
2504
  :host {
2505
2505
  align-items: center;
2506
2506
  background-color: var(--vscode-settings-textInputBackground, #313131);
@@ -2555,7 +2555,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2555
2555
  box-sizing: border-box;
2556
2556
  color: var(--vscode-settings-textInputForeground, #cccccc);
2557
2557
  display: block;
2558
- font-family: var(--vscode-font-family, ${ei});
2558
+ font-family: var(--vscode-font-family, ${si});
2559
2559
  font-size: var(--vscode-font-size, 13px);
2560
2560
  font-weight: var(--vscode-font-weight, 'normal');
2561
2561
  line-height: 18px;
@@ -2589,7 +2589,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2589
2589
  border-radius: 2px;
2590
2590
  color: var(--vscode-button-foreground, #ffffff);
2591
2591
  cursor: pointer;
2592
- font-family: var(--vscode-font-family, ${ei});
2592
+ font-family: var(--vscode-font-family, ${si});
2593
2593
  font-size: var(--vscode-font-size, 13px);
2594
2594
  font-weight: var(--vscode-font-weight, 'normal');
2595
2595
  line-height: 20px;
@@ -2599,26 +2599,26 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2599
2599
  input[type='file']::file-selector-button:hover {
2600
2600
  background-color: var(--vscode-button-hoverBackground, #026ec1);
2601
2601
  }
2602
- `];var ii=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let oi=class extends wt{set type(t){this._type=["color","date","datetime-local","email","file","month","number","password","search","tel","text","time","url","week"].includes(t)?t:"text"}get type(){return this._type}set value(t){"file"!==this.type&&(this._value=t,this._internals.setFormValue(t)),this.updateComplete.then((()=>{this._setValidityFromInput()}))}get value(){return this._value}set minlength(t){this.minLength=t}get minlength(){return this.minLength}set maxlength(t){this.maxLength=t}get maxlength(){return this.maxLength}get form(){return this._internals.form}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._setValidityFromInput(),this._internals.checkValidity()}reportValidity(){return this._setValidityFromInput(),this._internals.reportValidity()}get wrappedElement(){return this._inputEl}constructor(){super(),this.autocomplete=void 0,this.autofocus=!1,this.defaultValue="",this.disabled=!1,this.focused=!1,this.invalid=!1,this.label="",this.max=void 0,this.maxLength=void 0,this.min=void 0,this.minLength=void 0,this.multiple=!1,this.name=void 0,this.pattern=void 0,this.placeholder=void 0,this.readonly=!1,this.required=!1,this.step=void 0,this._value="",this._type="text",this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._inputEl.checkValidity(),this._setValidityFromInput(),this._internals.setFormValue(this._inputEl.value)}))}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s);["max","maxlength","min","minlength","pattern","required","step"].includes(t)&&this.updateComplete.then((()=>{this._setValidityFromInput()}))}formResetCallback(){this.value=this.defaultValue,this.requestUpdate()}formStateRestoreCallback(t,e){this.value=t}_dataChanged(){if(this._value=this._inputEl.value,"file"===this.type&&this._inputEl.files)for(const t of this._inputEl.files)this._internals.setFormValue(t);else this._internals.setFormValue(this._inputEl.value)}_setValidityFromInput(){this._inputEl&&this._internals.setValidity(this._inputEl.validity,this._inputEl.validationMessage,this._inputEl)}_onInput(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new CustomEvent("vsc-input",{detail:{data:t.data,originalEvent:t}}))}_onChange(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("vsc-change",{detail:{data:this.value,originalEvent:t}}))}_onFocus(){this.focused=!0}_onBlur(){this.focused=!1}_onKeyDown(t){"Enter"===t.key&&this._internals.form&&this._internals.form?.requestSubmit()}render(){return U`
2602
+ `];var oi=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let ri=class extends kt{set type(t){this._type=["color","date","datetime-local","email","file","month","number","password","search","tel","text","time","url","week"].includes(t)?t:"text"}get type(){return this._type}set value(t){"file"!==this.type&&(this._value=t,this._internals.setFormValue(t)),this.updateComplete.then((()=>{this._setValidityFromInput()}))}get value(){return this._value}set minlength(t){this.minLength=t}get minlength(){return this.minLength}set maxlength(t){this.maxLength=t}get maxlength(){return this.maxLength}get form(){return this._internals.form}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._setValidityFromInput(),this._internals.checkValidity()}reportValidity(){return this._setValidityFromInput(),this._internals.reportValidity()}get wrappedElement(){return this._inputEl}constructor(){super(),this.autocomplete=void 0,this.autofocus=!1,this.defaultValue="",this.disabled=!1,this.focused=!1,this.invalid=!1,this.label="",this.max=void 0,this.maxLength=void 0,this.min=void 0,this.minLength=void 0,this.multiple=!1,this.name=void 0,this.pattern=void 0,this.placeholder=void 0,this.readonly=!1,this.required=!1,this.step=void 0,this._value="",this._type="text",this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._inputEl.checkValidity(),this._setValidityFromInput(),this._internals.setFormValue(this._inputEl.value)}))}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s);["max","maxlength","min","minlength","pattern","required","step"].includes(t)&&this.updateComplete.then((()=>{this._setValidityFromInput()}))}formResetCallback(){this.value=this.defaultValue,this.requestUpdate()}formStateRestoreCallback(t,e){this.value=t}_dataChanged(){if(this._value=this._inputEl.value,"file"===this.type&&this._inputEl.files)for(const t of this._inputEl.files)this._internals.setFormValue(t);else this._internals.setFormValue(this._inputEl.value)}_setValidityFromInput(){this._inputEl&&this._internals.setValidity(this._inputEl.validity,this._inputEl.validationMessage,this._inputEl)}_onInput(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new CustomEvent("vsc-input",{detail:{data:t.data,originalEvent:t}}))}_onChange(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("vsc-change",{detail:{data:this.value,originalEvent:t}}))}_onFocus(){this.focused=!0}_onBlur(){this.focused=!1}_onKeyDown(t){"Enter"===t.key&&this._internals.form&&this._internals.form?.requestSubmit()}render(){return U`
2603
2603
  <slot name="content-before"></slot>
2604
2604
  <input
2605
2605
  id="input"
2606
2606
  type=${this.type}
2607
2607
  ?autofocus=${this.autofocus}
2608
- autocomplete=${Mt(this.autocomplete)}
2608
+ autocomplete=${Pt(this.autocomplete)}
2609
2609
  aria-label=${this.label}
2610
2610
  ?disabled=${this.disabled}
2611
- max=${Mt(this.max)}
2612
- maxlength=${Mt(this.maxLength)}
2613
- min=${Mt(this.min)}
2614
- minlength=${Mt(this.minLength)}
2611
+ max=${Pt(this.max)}
2612
+ maxlength=${Pt(this.maxLength)}
2613
+ min=${Pt(this.min)}
2614
+ minlength=${Pt(this.minLength)}
2615
2615
  ?multiple=${this.multiple}
2616
- name=${Mt(this.name)}
2617
- pattern=${Mt(this.pattern)}
2618
- placeholder=${Mt(this.placeholder)}
2616
+ name=${Pt(this.name)}
2617
+ pattern=${Pt(this.pattern)}
2618
+ placeholder=${Pt(this.placeholder)}
2619
2619
  ?readonly=${this.readonly}
2620
2620
  ?required=${this.required}
2621
- step=${Mt(this.step)}
2621
+ step=${Pt(this.step)}
2622
2622
  .value=${this._value}
2623
2623
  @blur=${this._onBlur}
2624
2624
  @change=${this._onChange}
@@ -2627,7 +2627,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2627
2627
  @keydown=${this._onKeyDown}
2628
2628
  >
2629
2629
  <slot name="content-after"></slot>
2630
- `}};oi.styles=si,oi.formAssociated=!0,oi.shadowRootOptions={...ct.shadowRootOptions,delegatesFocus:!0},ii([pt()],oi.prototype,"autocomplete",void 0),ii([pt({type:Boolean,reflect:!0})],oi.prototype,"autofocus",void 0),ii([pt({attribute:"default-value"})],oi.prototype,"defaultValue",void 0),ii([pt({type:Boolean,reflect:!0})],oi.prototype,"disabled",void 0),ii([pt({type:Boolean,reflect:!0})],oi.prototype,"focused",void 0),ii([pt({type:Boolean,reflect:!0})],oi.prototype,"invalid",void 0),ii([pt({attribute:!1})],oi.prototype,"label",void 0),ii([pt({type:Number})],oi.prototype,"max",void 0),ii([pt({type:Number})],oi.prototype,"maxLength",void 0),ii([pt({type:Number})],oi.prototype,"min",void 0),ii([pt({type:Number})],oi.prototype,"minLength",void 0),ii([pt({type:Boolean,reflect:!0})],oi.prototype,"multiple",void 0),ii([pt({reflect:!0})],oi.prototype,"name",void 0),ii([pt()],oi.prototype,"pattern",void 0),ii([pt()],oi.prototype,"placeholder",void 0),ii([pt({type:Boolean,reflect:!0})],oi.prototype,"readonly",void 0),ii([pt({type:Boolean,reflect:!0})],oi.prototype,"required",void 0),ii([pt({type:Number})],oi.prototype,"step",void 0),ii([pt({reflect:!0})],oi.prototype,"type",null),ii([pt()],oi.prototype,"value",null),ii([ft("#input")],oi.prototype,"_inputEl",void 0),ii([vt()],oi.prototype,"_value",void 0),ii([vt()],oi.prototype,"_type",void 0),oi=ii([kt("vscode-textfield")],oi);const ri=[$t,n`
2630
+ `}};ri.styles=ii,ri.formAssociated=!0,ri.shadowRootOptions={...ht.shadowRootOptions,delegatesFocus:!0},oi([vt()],ri.prototype,"autocomplete",void 0),oi([vt({type:Boolean,reflect:!0})],ri.prototype,"autofocus",void 0),oi([vt({attribute:"default-value"})],ri.prototype,"defaultValue",void 0),oi([vt({type:Boolean,reflect:!0})],ri.prototype,"disabled",void 0),oi([vt({type:Boolean,reflect:!0})],ri.prototype,"focused",void 0),oi([vt({type:Boolean,reflect:!0})],ri.prototype,"invalid",void 0),oi([vt({attribute:!1})],ri.prototype,"label",void 0),oi([vt({type:Number})],ri.prototype,"max",void 0),oi([vt({type:Number})],ri.prototype,"maxLength",void 0),oi([vt({type:Number})],ri.prototype,"min",void 0),oi([vt({type:Number})],ri.prototype,"minLength",void 0),oi([vt({type:Boolean,reflect:!0})],ri.prototype,"multiple",void 0),oi([vt({reflect:!0})],ri.prototype,"name",void 0),oi([vt()],ri.prototype,"pattern",void 0),oi([vt()],ri.prototype,"placeholder",void 0),oi([vt({type:Boolean,reflect:!0})],ri.prototype,"readonly",void 0),oi([vt({type:Boolean,reflect:!0})],ri.prototype,"required",void 0),oi([vt({type:Number})],ri.prototype,"step",void 0),oi([vt({reflect:!0})],ri.prototype,"type",null),oi([vt()],ri.prototype,"value",null),oi([gt("#input")],ri.prototype,"_inputEl",void 0),oi([bt()],ri.prototype,"_value",void 0),oi([bt()],ri.prototype,"_type",void 0),ri=oi([$t("vscode-textfield")],ri);const ni=[_t,n`
2631
2631
  :host {
2632
2632
  display: inline-flex;
2633
2633
  }
@@ -2696,74 +2696,60 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2696
2696
  slot.textOnly:not(.empty) {
2697
2697
  padding: 0 5px;
2698
2698
  }
2699
- `];var ni=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let li=class extends wt{constructor(){super(...arguments),this.icon="",this.label=void 0,this.toggleable=!1,this.checked=!1,this._isSlotEmpty=!0}_handleSlotChange(){this._isSlotEmpty=!((this._assignedNodes?.length??0)>0)}_handleButtonClick(){this.toggleable&&(this.checked=!this.checked,this.dispatchEvent(new Event("change")))}render(){const t=this.checked?"true":"false";return U`
2699
+ `];var li=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let ai=class extends kt{constructor(){super(...arguments),this.icon="",this.label=void 0,this.toggleable=!1,this.checked=!1,this._isSlotEmpty=!0}_handleSlotChange(){this._isSlotEmpty=!((this._assignedNodes?.length??0)>0)}_handleButtonClick(){this.toggleable&&(this.checked=!this.checked,this.dispatchEvent(new Event("change")))}render(){const t=this.checked?"true":"false";return U`
2700
2700
  <button
2701
2701
  type="button"
2702
- aria-label=${Mt(this.label)}
2703
- role=${Mt(this.toggleable?"switch":void 0)}
2704
- aria-checked=${Mt(this.toggleable?t:void 0)}
2705
- class=${It({checked:this.toggleable&&this.checked})}
2702
+ aria-label=${Pt(this.label)}
2703
+ role=${Pt(this.toggleable?"switch":void 0)}
2704
+ aria-checked=${Pt(this.toggleable?t:void 0)}
2705
+ class=${Mt({checked:this.toggleable&&this.checked})}
2706
2706
  @click=${this._handleButtonClick}
2707
2707
  >
2708
2708
  ${this.icon?U`<vscode-icon name=${this.icon}></vscode-icon>`:W}
2709
2709
  <slot
2710
2710
  @slotchange=${this._handleSlotChange}
2711
- class=${It({empty:this._isSlotEmpty,textOnly:!this.icon})}
2711
+ class=${Mt({empty:this._isSlotEmpty,textOnly:!this.icon})}
2712
2712
  ></slot>
2713
2713
  </button>
2714
- `}};li.styles=ri,ni([pt({reflect:!0})],li.prototype,"icon",void 0),ni([pt()],li.prototype,"label",void 0),ni([pt({type:Boolean,reflect:!0})],li.prototype,"toggleable",void 0),ni([pt({type:Boolean,reflect:!0})],li.prototype,"checked",void 0),ni([vt()],li.prototype,"_isSlotEmpty",void 0),ni([function(t){return(e,s)=>{const{slot:i}={},o="slot"+(i?`[name=${i}]`:":not([name])");return bt(0,0,{get(){const e=this.renderRoot?.querySelector(o);return e?.assignedNodes(t)??[]}})}}()],li.prototype,"_assignedNodes",void 0),li=ni([kt("vscode-toolbar-button")],li);const ai=[$t,n`
2714
+ `}};ai.styles=ni,li([vt({reflect:!0})],ai.prototype,"icon",void 0),li([vt()],ai.prototype,"label",void 0),li([vt({type:Boolean,reflect:!0})],ai.prototype,"toggleable",void 0),li([vt({type:Boolean,reflect:!0})],ai.prototype,"checked",void 0),li([bt()],ai.prototype,"_isSlotEmpty",void 0),li([function(t){return(e,s)=>{const{slot:i}={},o="slot"+(i?`[name=${i}]`:":not([name])");return ft(0,0,{get(){const e=this.renderRoot?.querySelector(o);return e?.assignedNodes(t)??[]}})}}()],ai.prototype,"_assignedNodes",void 0),ai=li([$t("vscode-toolbar-button")],ai);const hi=[_t,n`
2715
2715
  :host {
2716
2716
  gap: 4px;
2717
2717
  display: flex;
2718
2718
  align-items: center;
2719
2719
  }
2720
- `];var ci=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let hi=class extends wt{render(){return U` <slot></slot> `}};hi.styles=ai,hi=ci([kt("vscode-toolbar-container")],hi);const di=[$t,n`
2720
+ `];var ci=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let di=class extends kt{render(){return U` <slot></slot> `}};di.styles=hi,di=ci([$t("vscode-toolbar-container")],di);let ui=class extends Event{constructor(t,e,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=s??!1}};let pi=class{constructor(t,e,s,i){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(t,e)=>{this.unsubscribe&&(this.unsubscribe!==e&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=t,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(t,e)),this.unsubscribe=e},this.host=t,void 0!==e.context){const t=e;this.context=t.context,this.callback=t.callback,this.subscribe=t.subscribe??!1}else this.context=e,this.callback=s,this.subscribe=i??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new ui(this.context,this.t,this.subscribe))}};class vi{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const s=e||!Object.is(t,this.o);this.o=t,s&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[t,{disposer:e}]of this.subscriptions)t(this.o,e)},void 0!==t&&(this.value=t)}addCallback(t,e,s){if(!s)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});const{disposer:i}=this.subscriptions.get(t);t(this.value,i)}clearCallbacks(){this.subscriptions.clear()}}let bi=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}};class fi extends vi{constructor(t,e,s){super(void 0!==e.context?e.initialValue:s),this.onContextRequest=t=>{const e=t.composedPath()[0];t.context===this.context&&e!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,e,t.subscribe))},this.onProviderRequest=t=>{const e=t.composedPath()[0];if(t.context!==this.context||e===this.host)return;const s=new Set;for(const[t,{consumerHost:e}]of this.subscriptions)s.has(t)||(s.add(t),e.dispatchEvent(new ui(this.context,t,!0)));t.stopPropagation()},this.host=t,void 0!==e.context?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new bi(this.context))}}function gi({context:t}){return(e,s)=>{const i=new WeakMap;if("object"==typeof s)return s.addInitializer((function(){i.set(this,new fi(this,{context:t}))})),{get(){return e.get.call(this)},set(t){return i.get(this)?.setValue(t),e.set.call(this,t)},init(t){return i.get(this)?.setValue(t),t}};{e.constructor.addInitializer((e=>{i.set(e,new fi(e,{context:t}))}));const o=Object.getOwnPropertyDescriptor(e,s);let r;if(void 0===o){const t=new WeakMap;r={get(){return t.get(this)},set(e){i.get(this).setValue(e),t.set(this,e)},configurable:!0,enumerable:!0}}else{const t=o.set;r={...o,set(e){i.get(this).setValue(e),t?.call(this,e)}}}return void Object.defineProperty(e,s,r)}}}function mi({context:t,subscribe:e}){return(s,i)=>{"object"==typeof i?i.addInitializer((function(){new pi(this,{context:t,callback:t=>{s.set.call(this,t)},subscribe:e})})):s.constructor.addInitializer((s=>{new pi(s,{context:t,callback:t=>{s[i]=t},subscribe:e})}))}}const xi=[_t,n`
2721
+ :host {
2722
+ --vsc-tree-item-arrow-display: none;
2723
+
2724
+ display: block;
2725
+ }
2726
+
2727
+ :host([arrows]) {
2728
+ --vsc-tree-item-arrow-display: flex;
2729
+ }
2730
+ `],yi="vscode-list",wi=Symbol("configContext"),ki=t=>"vscode-tree-item"===t.tagName.toLowerCase(),$i=(t,e)=>{const s=e.length,i="vscode-tree"===t.tagName.toLowerCase()?-1:t.level;"branch"in t&&(t.branch=s>0),t.dataset.numChildren=s.toString(),e.forEach(((e,o)=>{const r=i+1,n=o.toString();e.path="path"in t?[...t.path,o]:[o],e.level=i+1,e.dataset.level=(i+1).toString(),e.dataset.index=o.toString(),e.dataset.last=o===s-1?"true":"false",e.dataset.id=`${r}_${n}`,e.dataset.path=e.path.join(".")}))},_i=t=>{const e=t.querySelectorAll(":scope > vscode-tree-item");if(e.length<1)return t;const s=e[e.length-1];return s.branch&&s.open?_i(s):s},Si=t=>{if(!t.parentElement)return null;if(!ki(t.parentElement))return null;return"true"===t.parentElement.dataset.last?Si(t.parentElement):t.parentElement};function Ci(t){return t.parentElement&&ki(t.parentElement)?t.parentElement:null}var Bi=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const Oi="singleClick",zi="doubleClick",Ai=[" ","ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter","Escape","Shift"],Ei=Oi;let Ii=class extends kt{constructor(){super(),this.arrows=false,this.expandMode=Ei,this.indent=8,this.indentGuides=false,this.multiSelect=false,this._treeContextState={isShiftPressed:!1,activeItem:null,selectedItems:new Set,allItems:null,itemListUpToDate:!1,focusedItem:null,prevFocusedItem:null,hasBranchItem:!1,rootElement:this,highlightedItems:[],highlightGuides:()=>{this._highlightGuides()},emitSelectEvent:()=>{this._emitSelectEvent()}},this._configContext={arrows:false,expandMode:Ei,indent:8,indentGuides:false,multiSelect:false},this._handleComponentKeyDown=t=>{const e=t.key;switch(Ai.includes(e)&&(t.stopPropagation(),t.preventDefault()),e){case" ":case"Enter":this._handleEnterPress();break;case"ArrowDown":this._handleArrowDownPress();break;case"ArrowLeft":this._handleArrowLeftPress(t);break;case"ArrowRight":this._handleArrowRightPress();break;case"ArrowUp":this._handleArrowUpPress();break;case"Shift":this._handleShiftPress()}},this._handleComponentKeyUp=t=>{"Shift"===t.key&&(this._treeContextState.isShiftPressed=!1)},this._handleSlotChange=()=>{this._treeContextState.itemListUpToDate=!1,$i(this,this._assignedTreeItems),this.updateComplete.then((()=>{if(null===this._treeContextState.activeItem){const t=this.querySelector(":scope > vscode-tree-item");t&&(t.active=!0)}this._highlightGuides()}))},this.addEventListener("keyup",this._handleComponentKeyUp),this.addEventListener("keydown",this._handleComponentKeyDown)}connectedCallback(){super.connectedCallback(),this.role="tree"}willUpdate(t){this._updateConfigContext(t),t.has("multiSelect")&&(this.ariaMultiSelectable=this.multiSelect?"true":"false")}expandAll(){this.querySelectorAll("vscode-tree-item").forEach((t=>{t.branch&&(t.open=!0)}))}collapseAll(){this.querySelectorAll("vscode-tree-item").forEach((t=>{t.branch&&(t.open=!1)}))}updateHasBranchItemFlag(){const t=this._assignedTreeItems.some((t=>t.branch));this._treeContextState={...this._treeContextState,hasBranchItem:t}}_emitSelectEvent(){const t=new CustomEvent("vsc-tree-select",{detail:Array.from(this._treeContextState.selectedItems)});this.dispatchEvent(t)}_highlightGuides(){const{activeItem:t,highlightedItems:e,selectedItems:s}=this._treeContextState;if(e.forEach((t=>t.highlightedGuides=!1)),t)if(this._treeContextState.highlightedItems=[],t.branch&&t.open)t.highlightedGuides=!0,this._treeContextState.highlightedItems.push(t);else{const e=Ci(t);e&&e.branch&&(e.highlightedGuides=!0,this._treeContextState.highlightedItems.push(e))}s&&s.forEach((t=>{if(t.branch&&t.open)t.highlightedGuides=!0,this._treeContextState.highlightedItems.push(t);else{const e=Ci(t);e&&e.branch&&(e.highlightedGuides=!0,this._treeContextState.highlightedItems.push(t))}}))}_updateConfigContext(t){const{arrows:e,expandMode:s,indent:i,indentGuides:o,multiSelect:r}=this;t.has("arrows")&&(this._configContext={...this._configContext,arrows:e}),t.has("expandMode")&&(this._configContext={...this._configContext,expandMode:s}),t.has("indent")&&(this._configContext={...this._configContext,indent:i}),t.has("indentGuides")&&(this._configContext={...this._configContext,indentGuides:o}),t.has("multiSelect")&&(this._configContext={...this._configContext,multiSelect:r})}_focusItem(t){t.active=!0,t.updateComplete.then((()=>{t.focus()}))}_focusPrevItem(){if(this._treeContextState.focusedItem){const t=(t=>{const{parentElement:e}=t,s=parseInt(t.dataset.index??"-1",10);if(!e)return null;const i=e.querySelector(`:scope vscode-tree-item[data-index="${s-1}"]`);if(!i&&"vscode-tree-item"===e.tagName.toLowerCase())return e;if(i&&i.branch&&i.open)return _i(i);return i})(this._treeContextState.focusedItem);t&&(this._focusItem(t),this._treeContextState.isShiftPressed&&this.multiSelect&&(t.selected=!t.selected,this._emitSelectEvent()))}}_focusNextItem(){if(this._treeContextState.focusedItem){const t=(t=>{if(t.branch&&t.open)return t.querySelector("vscode-tree-item");const{parentElement:e}=t;if(!e)return null;const s=parseInt(e.dataset.numChildren??"0",10),i=parseInt(t.dataset.index??"-1",10);let o=0;if("level"in t&&(o=t.level),i===s-1){const e=Si(t);if(e){const t=parseInt(e.dataset.index??"",10)+1,s=e.level;return e.parentElement?.querySelector(`vscode-tree-item[level="${s}"][data-index="${t}"]`)??null}return null}const r=Math.min(s-1,i+1);return e.querySelector(`vscode-tree-item[level="${o}"][data-index="${r}"]`)})(this._treeContextState.focusedItem);t&&(this._focusItem(t),this._treeContextState.isShiftPressed&&this.multiSelect&&(t.selected=!t.selected,this._emitSelectEvent()))}}_handleArrowRightPress(){if(!this._treeContextState.focusedItem)return;const{focusedItem:t}=this._treeContextState;t.branch&&(t.open?this._focusNextItem():t.open=!0)}_handleArrowLeftPress(t){if(t.ctrlKey)return void this.collapseAll();if(!this._treeContextState.focusedItem)return;const{focusedItem:e}=this._treeContextState,s=Ci(e);e.branch&&e.open?e.open=!1:s&&s.branch&&this._focusItem(s)}_handleArrowDownPress(){this._treeContextState.focusedItem?this._focusNextItem():this._focusItem(this._assignedTreeItems[0])}_handleArrowUpPress(){this._treeContextState.focusedItem?this._focusPrevItem():this._focusItem(this._assignedTreeItems[0])}_handleEnterPress(){const{focusedItem:t}=this._treeContextState;t&&(this._treeContextState.selectedItems.forEach((t=>t.selected=!1)),t.selected=!0,this._emitSelectEvent(),t.branch&&(t.open=!t.open))}_handleShiftPress(){this._treeContextState.isShiftPressed=!0}render(){return U`<div>
2731
+ <slot @slotchange=${this._handleSlotChange}></slot>
2732
+ </div>`}};Ii.styles=xi,Bi([vt({type:Boolean,reflect:!0})],Ii.prototype,"arrows",void 0),Bi([vt({type:String,attribute:"expand-mode"})],Ii.prototype,"expandMode",void 0),Bi([vt({type:Number,reflect:!0})],Ii.prototype,"indent",void 0),Bi([vt({type:Boolean,attribute:"indent-guides",reflect:!0})],Ii.prototype,"indentGuides",void 0),Bi([vt({type:Boolean,reflect:!0,attribute:"multi-select"})],Ii.prototype,"multiSelect",void 0),Bi([gi({context:yi})],Ii.prototype,"_treeContextState",void 0),Bi([gi({context:wi})],Ii.prototype,"_configContext",void 0),Bi([xt({selector:"vscode-tree-item"})],Ii.prototype,"_assignedTreeItems",void 0),Ii=Bi([dt("vscode-tree")],Ii);const ji=[_t,n`
2721
2733
  :host {
2722
2734
  --hover-outline-color: transparent;
2723
2735
  --hover-outline-style: solid;
2724
2736
  --hover-outline-width: 0;
2737
+
2725
2738
  --selected-outline-color: transparent;
2726
2739
  --selected-outline-style: solid;
2727
2740
  --selected-outline-width: 0;
2728
2741
 
2742
+ cursor: pointer;
2729
2743
  display: block;
2730
- outline: none;
2731
2744
  user-select: none;
2732
2745
  }
2733
2746
 
2734
2747
  .wrapper {
2735
- height: 100%;
2736
- }
2737
-
2738
- li {
2739
- list-style: none;
2740
- }
2741
-
2742
- ul,
2743
- li {
2744
- margin: 0;
2745
- padding: 0;
2746
- }
2747
-
2748
- ul {
2749
- position: relative;
2750
- }
2751
-
2752
- :host([indent-guides]) ul ul:before {
2753
- content: '';
2754
2748
  display: block;
2755
- height: 100%;
2756
- position: absolute;
2757
- bottom: 0;
2758
- left: var(--indent-guide-pos);
2759
- top: 0;
2760
- pointer-events: none;
2761
- width: 1px;
2762
- z-index: 1;
2763
2749
  }
2764
2750
 
2765
- .contents {
2766
- align-items: center;
2751
+ .content {
2752
+ align-items: flex-start;
2767
2753
  display: flex;
2768
2754
  font-family: var(--vscode-font-family);
2769
2755
  font-size: var(--vscode-font-size);
@@ -2772,17 +2758,36 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2772
2758
  padding-right: 12px;
2773
2759
  }
2774
2760
 
2775
- .multi .contents {
2776
- align-items: flex-start;
2761
+ .content:hover {
2762
+ background-color: var(--vscode-list-hoverBackground);
2763
+ color: var(--vscode-list-hoverForeground);
2777
2764
  }
2778
2765
 
2779
- .contents:hover {
2780
- cursor: pointer;
2766
+ :host([selected]) .content {
2767
+ color: var(--vscode-list-activeSelectionForeground);
2768
+ background-color: var(--vscode-list-activeSelectionBackground);
2769
+ }
2770
+
2771
+ :host([selected]) ::slotted(vscode-icon) {
2772
+ color: var(--vscode-list-activeSelectionForeground);
2773
+ }
2774
+
2775
+ :host(:focus) {
2776
+ outline: none;
2777
+ }
2778
+
2779
+ :host(:focus) .content.active {
2780
+ outline-color: var(
2781
+ --vscode-list-focusAndSelectionOutline,
2782
+ var(--vscode-list-focusOutline)
2783
+ );
2784
+ outline-style: solid;
2785
+ outline-width: 1px;
2781
2786
  }
2782
2787
 
2783
2788
  .arrow-container {
2784
2789
  align-items: center;
2785
- display: flex;
2790
+ display: var(--vsc-tree-item-arrow-display);
2786
2791
  height: 22px;
2787
2792
  justify-content: center;
2788
2793
  padding-left: 8px;
@@ -2790,238 +2795,149 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2790
2795
  width: 16px;
2791
2796
  }
2792
2797
 
2793
- .icon-arrow {
2794
- color: currentColor;
2798
+ .arrow-container svg {
2795
2799
  display: block;
2800
+ fill: var(--vscode-icon-foreground);
2796
2801
  }
2797
2802
 
2798
- .theme-icon {
2799
- display: block;
2800
- flex-shrink: 0;
2803
+ .arrow-container.icon-rotated svg {
2804
+ transform: rotate(90deg);
2805
+ }
2806
+
2807
+ :host([selected]) .arrow-container svg {
2808
+ fill: var(--vscode-list-activeSelectionForeground);
2809
+ }
2810
+
2811
+ .icon-container {
2812
+ align-items: center;
2813
+ display: flex;
2814
+ height: 22px;
2801
2815
  margin-right: 6px;
2802
2816
  }
2803
2817
 
2804
- .image-icon {
2805
- background-repeat: no-repeat;
2806
- background-position: 0 center;
2807
- background-size: 16px;
2818
+ .children {
2819
+ position: relative;
2820
+ }
2821
+
2822
+ .children.guides:before {
2823
+ background-color: var(--vscode-tree-inactiveIndentGuidesStroke);
2824
+ content: '';
2808
2825
  display: block;
2809
- flex-shrink: 0;
2810
- margin-right: 6px;
2811
- height: 22px;
2812
- width: 16px;
2826
+ height: 100%;
2827
+ left: var(--indentation-guide-left);
2828
+ pointer-events: none;
2829
+ position: absolute;
2830
+ width: 1px;
2831
+ z-index: 1;
2813
2832
  }
2814
2833
 
2815
- .multi .contents .theme-icon {
2816
- margin-top: 3px;
2834
+ .children.guides.highlighted-guides:before {
2835
+ background-color: var(--vscode-tree-indentGuidesStroke);
2817
2836
  }
2818
2837
 
2819
2838
  .text-content {
2820
- display: flex;
2821
2839
  line-height: 22px;
2822
- }
2823
-
2824
- .single .text-content {
2825
- display: block;
2826
2840
  overflow: hidden;
2827
2841
  text-overflow: ellipsis;
2828
2842
  white-space: nowrap;
2829
- width: 100%;
2830
2843
  }
2831
2844
 
2832
2845
  .description {
2833
2846
  font-size: 0.9em;
2834
- line-height: 22px;
2835
2847
  margin-left: 0.5em;
2836
2848
  opacity: 0.95;
2837
- white-space: pre;
2838
2849
  }
2839
2850
 
2840
- .actions {
2841
- display: none;
2842
- }
2843
-
2844
- .contents.selected > .actions,
2845
- .contents.focused > .actions,
2846
- .contents:hover > .actions {
2851
+ .additional-content {
2847
2852
  display: flex;
2853
+ margin-left: auto;
2848
2854
  }
2849
2855
 
2850
2856
  .decorations {
2851
2857
  align-items: center;
2852
2858
  display: flex;
2853
2859
  height: 22px;
2854
- margin-left: 5px;
2855
- }
2856
-
2857
- .filled-circle {
2858
- margin-right: 3px;
2859
- opacity: 0.4;
2860
- }
2861
-
2862
- .decoration-text {
2863
- font-size: 90%;
2864
- font-weight: 600;
2865
- margin-right: 3px;
2866
- opacity: 0.75;
2867
- }
2868
-
2869
- .filled-circle,
2870
- .decoration-text {
2871
- color: var(--color, currentColor);
2872
- }
2873
-
2874
- .contents:hover .filled-circle,
2875
- .contents:hover .decoration-text {
2876
- color: var(--hover-color, var(--color));
2877
- }
2878
-
2879
- .contents.focused .filled-circle,
2880
- .contents.focused .decoration-text {
2881
- color: var(--focused-color, var(--color));
2882
2860
  }
2883
2861
 
2884
- .contents.selected .filled-circle,
2885
- .contents.selected .decoration-text {
2886
- color: var(--selected-color, var(--color));
2887
- }
2888
-
2889
- /* Theme colors */
2890
- :host(:focus) .wrapper.has-not-focused-item {
2891
- outline: 1px solid var(--vscode-focusBorder);
2892
- }
2893
-
2894
- :host(:focus) .contents.selected,
2895
- :host(:focus) .contents.focused.selected {
2896
- color: var(--vscode-list-activeSelectionForeground);
2897
- background-color: var(--vscode-list-activeSelectionBackground);
2898
- }
2899
-
2900
- :host(:focus) .contents.selected .icon-arrow,
2901
- :host(:focus) .contents.selected.focused .icon-arrow,
2902
- :host(:focus) .contents.selected .theme-icon,
2903
- :host(:focus) .contents.selected.focused .theme-icon,
2904
- :host(:focus) .contents.selected .action-icon,
2905
- :host(:focus) .contents.selected.focused .action-icon {
2906
- color: var(--vscode-list-activeSelectionIconForeground);
2907
- }
2908
-
2909
- :host(:focus) .contents.focused {
2910
- color: var(--vscode-list-focusForeground);
2911
- background-color: var(--vscode-list-focusBackground);
2912
- }
2913
-
2914
- :host(:focus) .contents.selected.focused {
2915
- outline-color: var(
2916
- --vscode-list-focusAndSelectionOutline,
2917
- var(--vscode-list-focusOutline)
2918
- );
2919
- }
2920
-
2921
- .contents:hover {
2922
- background-color: var(--vscode-list-hoverBackground);
2923
- color: var(--vscode-list-hoverForeground);
2924
- }
2925
-
2926
- .contents:hover,
2927
- .contents.selected:hover {
2928
- outline-color: var(--hover-outline-color);
2929
- outline-style: var(--hover-outline-style);
2930
- outline-width: var(--hover-outline-width);
2931
- }
2932
-
2933
- .contents.selected,
2934
- .contents.selected.focused {
2935
- background-color: var(--vscode-list-inactiveSelectionBackground);
2936
- color: var(--vscode-list-inactiveSelectionForeground);
2937
- }
2938
-
2939
- .contents.selected,
2940
- .contents.selected.focused {
2941
- outline-color: var(--selected-outline-color);
2942
- outline-style: var(--selected-outline-style);
2943
- outline-width: var(--selected-outline-width);
2862
+ .actions {
2863
+ align-items: center;
2864
+ display: none;
2865
+ height: 22px;
2944
2866
  }
2945
2867
 
2946
- .contents.selected .theme-icon {
2947
- color: var(--vscode-list-inactiveSelectionIconForeground);
2868
+ .content:hover .actions {
2869
+ display: flex;
2948
2870
  }
2949
2871
 
2950
- .contents.focused {
2951
- background-color: var(--vscode-list-inactiveFocusBackground);
2952
- outline: 1px dotted var(--vscode-list-inactiveFocusOutline);
2872
+ .actions ::slotted(vscode-icon),
2873
+ .actions ::slotted(vscode-badge) {
2874
+ margin-left: 4px;
2953
2875
  }
2954
2876
 
2955
- :host(:focus) .contents.focused {
2956
- outline: 1px solid var(--vscode-list-focusOutline);
2877
+ .decorations ::slotted(vscode-icon),
2878
+ .decorations ::slotted(vscode-badge) {
2879
+ margin-left: 4px;
2957
2880
  }
2958
2881
 
2959
- :host([indent-guides]) ul ul:before {
2960
- background-color: var(--vscode-tree-inactiveIndentGuidesStroke);
2882
+ :host([branch]) ::slotted(vscode-tree-item) {
2883
+ display: none;
2961
2884
  }
2962
2885
 
2963
- :host([indent-guides]) ul ul.has-active-item:before {
2964
- background-color: var(--vscode-tree-indentGuidesStroke);
2886
+ :host([branch][open]) ::slotted(vscode-tree-item) {
2887
+ display: block;
2965
2888
  }
2966
- `];var ui=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const pi=(t,e=[])=>{const s=[];return t.forEach(((t,i)=>{const o=[...e,i],r={...t,path:o};t.subItems&&(r.subItems=pi(t.subItems,o)),s.push(r)})),s},vi=t=>!!(t.subItems&&Array.isArray(t.subItems)&&t?.subItems?.length>0);let bi=class extends wt{constructor(){super(...arguments),this.indent=8,this.arrows=!1,this.multiline=!1,this.tabindex=0,this.indentGuides=!1,this._data=[],this._selectedItem=null,this._focusedItem=null,this._selectedBranch=null,this._focusedBranch=null,this._handleComponentKeyDownBound=this._handleComponentKeyDown.bind(this)}set data(t){const e=this._data;this._data=pi(t),this.requestUpdate("data",e)}get data(){return this._data}closeAll(){this._closeSubTreeRecursively(this.data),this.requestUpdate()}deselectAll(){this._deselectItemsRecursively(this.data),this.requestUpdate()}getItemByPath(t){return this._getItemByPath(t)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._handleComponentKeyDownBound)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._handleComponentKeyDownBound)}_getItemByPath(t){let e=this._data,s=null;return t.forEach(((i,o)=>{o===t.length-1?s=e[i]:e=e[i].subItems})),s}_handleActionClick(t){t.stopPropagation();const e=t.target,s=e.dataset.itemPath,i=e.dataset.index;let o=null,r="",n="";if(s){const t=s.split("/").map((t=>Number(t)));if(o=this._getItemByPath(t),o?.actions){const t=Number(i);o.actions[t]&&(r=o.actions[t].actionId)}o?.value&&(n=o.value)}this.dispatchEvent(new CustomEvent("vsc-run-action",{detail:{actionId:r,item:o,value:n}})),this.dispatchEvent(new CustomEvent("vsc-tree-action",{detail:{actionId:r,item:o,value:n}}))}_renderIconVariant(t){const{type:e,value:s}=t;return"themeicon"===e?U`<vscode-icon name=${s} class="theme-icon"></vscode-icon>`:U`<span
2967
- class="image-icon"
2968
- .style=${Pt({backgroundImage:`url(${s})`})}
2969
- ></span>`}_renderIcon(t){const e={branch:{value:"folder",type:"themeicon"},open:{value:"folder-opened",type:"themeicon"},leaf:{value:"file",type:"themeicon"}};if(t.iconUrls)t.iconUrls.branch&&(e.branch={value:t.iconUrls.branch,type:"image"}),t.iconUrls.leaf&&(e.leaf={value:t.iconUrls.leaf,type:"image"}),t.iconUrls.open&&(e.open={value:t.iconUrls.open,type:"image"});else if("object"==typeof t.icons)t.icons.branch&&(e.branch={value:t.icons.branch,type:"themeicon"}),t.icons.leaf&&(e.leaf={value:t.icons.leaf,type:"themeicon"}),t.icons.open&&(e.open={value:t.icons.open,type:"themeicon"});else if(!t.icons)return U`${W}`;return vi(t)?t.open?this._renderIconVariant(e.open):this._renderIconVariant(e.branch):this._renderIconVariant(e.leaf)}_renderArrow(t){if(!this.arrows||!vi(t))return U`${W}`;const{open:e=!1}=t;return U`
2970
- <div class="arrow-container">
2971
- <vscode-icon name=${e?"chevron-down":"chevron-right"} class="icon-arrow"></vscode-icon>
2972
- </div>
2973
- `}_renderActions(t){const e=[];return t.actions&&Array.isArray(t.actions)&&t.actions.forEach(((s,i)=>{if(s.icon){const o=U`<vscode-icon
2974
- name=${s.icon}
2975
- action-icon
2976
- title=${Mt(s.tooltip)}
2977
- data-item-path=${Mt(t.path?.join("/"))}
2978
- data-index=${i}
2979
- class="action-icon"
2980
- @click=${this._handleActionClick}
2981
- ></vscode-icon>`;e.push(o)}})),e.length>0?U`<div class="actions">${e}</div>`:U`${W}`}_renderDecorations(t){const e=[];return t.decorations&&Array.isArray(t.decorations)&&t.decorations.forEach((t=>{const{appearance:s="text",visibleWhen:i="always",content:o="",color:r="",focusedColor:n="",hoverColor:l="",selectedColor:a=""}=t,c=`visible-when-${i}`,h={};switch(r&&(h["--color"]=r),n&&(h["--focused-color"]=n),l&&(h["--hover-color"]=l),a&&(h["--selected-color"]=a),s){case"counter-badge":e.push(U`<vscode-badge
2982
- variant="counter"
2983
- class=${["counter-badge",c].join(" ")}
2984
- part="counter-badge-decoration"
2985
- >${o}</vscode-badge
2986
- >`);break;case"filled-circle":e.push(U`<vscode-icon
2987
- name="circle-filled"
2988
- size="14"
2989
- class=${["filled-circle",c].join(" ")}
2990
- part="filled-circle-decoration"
2991
- .style=${Pt(h)}
2992
- ></vscode-icon>`);break;case"text":e.push(U`<div
2993
- class=${["decoration-text",c].join(" ")}
2994
- part="caption-decoration"
2995
- .style=${Pt(h)}
2996
- >
2997
- ${o}
2998
- </div>`)}})),e.length>0?U`<div class="decorations" part="decorations">
2999
- ${e}
3000
- </div>`:U`${W}`}_renderTreeItem(t,e){const{open:s=!1,label:i,description:o="",tooltip:r,selected:n=!1,focused:l=!1,subItems:a=[]}=t,{path:c,itemType:h,hasFocusedItem:d=!1,hasSelectedItem:u=!1}=e,p=["contents"],v=s?["open"]:[],b=(c.length-1)*this.indent,f=this.arrows&&"leaf"===h?30+b:b,g=this._renderArrow(t),m=this._renderIcon(t),x=this.arrows?b+16:b+3,y=s&&"branch"===h?U`<ul
3001
- .style=${Pt({"--indent-guide-pos":`${x}px`})}
3002
- class=${It({"has-active-item":d||u})}
3003
- >
3004
- ${this._renderTree(a,c)}
3005
- </ul>`:W,w=o?U`<span class="description" part="description">${o}</span>`:W,k=this._renderActions(t),$=this._renderDecorations(t);return v.push(h),n&&p.push("selected"),l&&p.push("focused"),U`
3006
- <li data-path=${c.join("/")} class=${v.join(" ")}>
3007
- <div
3008
- class=${p.join(" ")}
3009
- .style=${Pt({paddingLeft:`${f+3}px`})}
3010
- >
3011
- ${g}${m}<span
3012
- class="text-content"
3013
- part="text-content"
3014
- title=${Mt(r)}
3015
- >${i}${w}</span
3016
- >
3017
- ${k} ${$}
2889
+ `];var Mi=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const Pi=U`<svg
2890
+ width="16"
2891
+ height="16"
2892
+ viewBox="0 0 16 16"
2893
+ xmlns="http://www.w3.org/2000/svg"
2894
+ >
2895
+ <path
2896
+ fill-rule="evenodd"
2897
+ clip-rule="evenodd"
2898
+ d="M10.072 8.024L5.715 3.667l.618-.62L11 7.716v.618L6.333 13l-.618-.619 4.357-4.357z"
2899
+ />
2900
+ </svg>`;function Fi(t){return t.parentElement&&t.parentElement instanceof Di?t.parentElement:null}let Di=class extends kt{set selected(t){this._selected=t,this._treeContextState.selectedItems.add(this),this.ariaSelected=t?"true":"false"}get selected(){return this._selected}set path(t){this._path=t}get path(){return this._path}constructor(){super(),this.active=!1,this.branch=!1,this.hasActiveItem=!1,this.hasSelectedItem=!1,this.highlightedGuides=!1,this.open=!1,this.level=0,this._selected=!1,this._path=[],this._treeContextState={isShiftPressed:!1,selectedItems:new Set,allItems:null,itemListUpToDate:!1,focusedItem:null,prevFocusedItem:null,hasBranchItem:!1,rootElement:null,activeItem:null,highlightedItems:[]},this._handleMainSlotChange=()=>{this._mainSlotChange(),this._treeContextState.itemListUpToDate=!1},this._handleComponentFocus=()=>{this._treeContextState.focusedItem&&this._treeContextState.focusedItem!==this&&(this._treeContextState.isShiftPressed||(this._treeContextState.prevFocusedItem=this._treeContextState.focusedItem),this._treeContextState.focusedItem=null),this._treeContextState.focusedItem=this},this.addEventListener("focus",this._handleComponentFocus)}connectedCallback(){super.connectedCallback(),this._mainSlotChange(),this.role="treeitem",this.ariaDisabled="false"}willUpdate(t){t.has("active")&&this._toggleActiveState(),(t.has("open")||t.has("branch"))&&this._setAriaExpanded()}_setAriaExpanded(){this.branch?this.ariaExpanded=this.open?"true":"false":this.ariaExpanded=null}_setHasActiveItemFlagOnParent(t,e){const s=Fi(t);s&&(s.hasActiveItem=e)}_toggleActiveState(){this.active?(this._treeContextState.activeItem&&(this._treeContextState.activeItem.active=!1,this._setHasActiveItemFlagOnParent(this._treeContextState.activeItem,!1)),this._treeContextState.activeItem=this,this._setHasActiveItemFlagOnParent(this,!0),this.tabIndex=0):(this._treeContextState.activeItem===this&&(this._treeContextState.activeItem=null,this._setHasActiveItemFlagOnParent(this,!1)),this.tabIndex=-1)}_selectItem(t){const{selectedItems:e}=this._treeContextState,{multiSelect:s}=this._configContext;s&&t?this.selected?(this.selected=!1,e.delete(this)):(this.selected=!0,e.add(this)):(e.forEach((t=>t.selected=!1)),e.clear(),this.selected=!0,e.add(this))}_selectRange(){const t=this._treeContextState.prevFocusedItem;if(!t||t===this)return;this._treeContextState.itemListUpToDate||(this._treeContextState.allItems=this._treeContextState.rootElement.querySelectorAll("vscode-tree-item"),this._treeContextState.allItems&&this._treeContextState.allItems.forEach(((t,e)=>{t.dataset.score=e.toString()})),this._treeContextState.itemListUpToDate=!0);let e=+(t.dataset.score??-1),s=+(this.dataset.score??-1);e>s&&([e,s]=[s,e]),this._treeContextState.selectedItems.forEach((t=>t.selected=!1)),this._treeContextState.selectedItems.clear(),this._selectItemsAndAllVisibleDescendants(e,s)}_selectItemsAndAllVisibleDescendants(t,e){let s=t;for(;s<=e;)if(this._treeContextState.allItems){const t=this._treeContextState.allItems[s];if(t.branch&&!t.open){t.selected=!0;s+=t.querySelectorAll("vscode-tree-item").length}else t.branch&&t.open?(t.selected=!0,s+=this._selectItemsAndAllVisibleDescendants(s+1,e)):(t.selected=!0,s+=1)}return s}_mainSlotChange(){this._initiallyAssignedTreeItems.forEach((t=>{t.setAttribute("slot","children")}))}_handleChildrenSlotChange(){$i(this,this._childrenTreeItems),this._treeContextState.rootElement&&this._treeContextState.rootElement.updateHasBranchItemFlag()}_handleContentClick(t){t.stopPropagation();const e=t.ctrlKey,s=t.shiftKey;s&&this._configContext.multiSelect?(this._selectRange(),this._treeContextState.emitSelectEvent?.()):(this._selectItem(e),this._treeContextState.emitSelectEvent?.(),this._configContext.expandMode===Oi&&(!this.branch||this._configContext.multiSelect&&e||(this.open=!this.open))),this.active=!0,s||(this._treeContextState.prevFocusedItem=this),this.updateComplete.then((()=>{this._treeContextState.highlightGuides?.()}))}_handleDoubleClick(t){this._configContext.expandMode===zi&&(!this.branch||this._configContext.multiSelect&&t.ctrlKey||(this.open=!this.open))}render(){const{arrows:t,indent:e,indentGuides:s}=this._configContext,{hasBranchItem:i}=this._treeContextState;let o=3+this.level*e;const r=t?13:3,n=3+this.level*e+r;!this.branch&&t&&i&&(o+=30);const l={content:!0,active:this.active},a={children:!0,guides:this.branch&&s,"highlighted-guides":this.highlightedGuides};return U` <div class="wrapper">
2901
+ <div
2902
+ class=${Mt(l)}
2903
+ @click=${this._handleContentClick}
2904
+ @dblclick=${this._handleDoubleClick}
2905
+ .style=${Ft({paddingLeft:`${o}px`})}
2906
+ >
2907
+ ${this.branch&&t?U`<div
2908
+ class=${Mt({"arrow-container":!0,"icon-rotated":this.open})}
2909
+ >
2910
+ ${Pi}
2911
+ </div>`:W}
2912
+ <div class="icon-container">
2913
+ <slot name="icon"></slot>
2914
+ ${this.branch&&!this.open?U`<slot name="icon-branch"></slot>`:W}
2915
+ ${this.branch&&this.open?U`<slot name="icon-branch-opened"></slot>`:W}
2916
+ ${this.branch?W:U`<slot name="icon-leaf"></slot>`}
2917
+ </div>
2918
+ <div class="text-content" part="text-content">
2919
+ <span class="label" part="label"
2920
+ ><slot @slotchange=${this._handleMainSlotChange}></slot
2921
+ ></span>
2922
+ <span class="description" part="description"
2923
+ ><slot name="description"></slot
2924
+ ></span>
2925
+ </div>
2926
+ <div class="additional-content" part="additional-content">
2927
+ <div class="decorations" part="decorations">
2928
+ <slot name="decorations"></slot>
2929
+ </div>
2930
+ <div class="actions" part="actions"><slot name="actions"></slot></div>
3018
2931
  </div>
3019
- ${y}
3020
- </li>
3021
- `}_renderTree(t,e=[]){const s=[];return t?(t.forEach(((t,i)=>{const o=[...e,i],r=vi(t)?"branch":"leaf",{selected:n=!1,focused:l=!1,hasFocusedItem:a=!1,hasSelectedItem:c=!1}=t;n&&(this._selectedItem=t),l&&(this._focusedItem=t),s.push(this._renderTreeItem(t,{path:o,itemType:r,hasFocusedItem:a,hasSelectedItem:c}))})),s):W}_selectItem(t){this._selectedItem&&(this._selectedItem.selected=!1),this._focusedItem&&(this._focusedItem.focused=!1),this._selectedItem=t,t.selected=!0,this._focusedItem=t,t.focused=!0,this._selectedBranch&&(this._selectedBranch.hasSelectedItem=!1);let e=null;if(t.path?.length&&t.path.length>1&&(e=this._getItemByPath(t.path.slice(0,-1))),vi(t))this._selectedBranch=t,t.hasSelectedItem=!0,t.open=!t.open,t.open?(this._selectedBranch=t,t.hasSelectedItem=!0):e&&(this._selectedBranch=e,e.hasSelectedItem=!0);else if(t.path?.length&&t.path.length>1){const e=this._getItemByPath(t.path.slice(0,-1));e&&(this._selectedBranch=e,e.hasSelectedItem=!0)}else this._selectedBranch=t,t.hasSelectedItem=!0;this._emitSelectEvent(this._selectedItem,this._selectedItem.path.join("/")),this.requestUpdate()}_focusItem(t){this._focusedItem&&(this._focusedItem.focused=!1),this._focusedItem=t,t.focused=!0;const e=!!t?.subItems?.length;this._focusedBranch&&(this._focusedBranch.hasFocusedItem=!1);let s=null;t.path?.length&&t.path.length>1&&(s=this._getItemByPath(t.path.slice(0,-1))),e?t.open?(this._focusedBranch=t,t.hasFocusedItem=!0):!t.open&&s&&(this._focusedBranch=s,s.hasFocusedItem=!0):s&&(this._focusedBranch=s,s.hasFocusedItem=!0)}_closeSubTreeRecursively(t){t.forEach((t=>{t.open=!1,t.subItems&&t.subItems.length>0&&this._closeSubTreeRecursively(t.subItems)}))}_deselectItemsRecursively(t){t.forEach((t=>{t.selected&&(t.selected=!1),t.subItems&&t.subItems.length>0&&this._deselectItemsRecursively(t.subItems)}))}_emitSelectEvent(t,e){const{icons:s,label:i,open:o,value:r}=t,n={icons:s,itemType:vi(t)?"branch":"leaf",label:i,open:o||!1,value:r||i,path:e};this.dispatchEvent(new CustomEvent("vsc-select",{bubbles:!0,composed:!0,detail:n})),this.dispatchEvent(new CustomEvent("vsc-tree-select",{detail:n}))}_focusPrevItem(){if(!this._focusedItem)return void this._focusItem(this._data[0]);const{path:t}=this._focusedItem;if(t&&t?.length>0){const e=t[t.length-1],s=t.length>1;if(e>0){const s=[...t];s[s.length-1]=e-1;const i=this._getItemByPath(s);let o=i;if(i?.open&&i.subItems?.length){const{subItems:t}=i;o=t[t.length-1]}this._focusItem(o)}else if(s){const e=[...t];e.pop(),this._focusItem(this._getItemByPath(e))}}else this._focusItem(this._data[0])}_focusNextItem(){if(!this._focusedItem)return void this._focusItem(this._data[0]);const{path:t,open:e}=this._focusedItem;if(e&&Array.isArray(this._focusedItem.subItems)&&this._focusedItem.subItems.length>0)return void this._focusItem(this._focusedItem.subItems[0]);const s=[...t];s[s.length-1]+=1;let i=this._getItemByPath(s);i?this._focusItem(i):(s.pop(),s.length>0&&(s[s.length-1]+=1,i=this._getItemByPath(s),i&&this._focusItem(i)))}_handleClick(t){const e=t.composedPath().find((t=>t.tagName&&"LI"===t.tagName.toUpperCase()));if(e){const t=(e.dataset.path||"").split("/").map((t=>Number(t))),s=this._getItemByPath(t);this._selectItem(s)}else this._focusedItem&&(this._focusedItem.focused=!1),this._focusedItem=null}_handleComponentKeyDown(t){const e=t.key;[" ","ArrowDown","ArrowUp","Enter","Escape"].includes(t.key)&&(t.stopPropagation(),t.preventDefault()),"Escape"===e&&(this._focusedItem=null),"ArrowUp"===e&&this._focusPrevItem(),"ArrowDown"===e&&this._focusNextItem(),"Enter"!==e&&" "!==e||this._focusedItem&&this._selectItem(this._focusedItem)}render(){const t=It({multi:this.multiline,single:!this.multiline,wrapper:!0,"has-not-focused-item":!this._focusedItem,"selection-none":!this._selectedItem,"selection-single":null!==this._selectedItem});return U`
3022
- <div @click=${this._handleClick} class=${t}>
3023
- <ul>
3024
- ${this._renderTree(this._data)}
3025
- </ul>
3026
2932
  </div>
3027
- `}};bi.styles=di,ui([pt({type:Array,reflect:!1})],bi.prototype,"data",null),ui([pt({type:Number})],bi.prototype,"indent",void 0),ui([pt({type:Boolean,reflect:!0})],bi.prototype,"arrows",void 0),ui([pt({type:Boolean,reflect:!0})],bi.prototype,"multiline",void 0),ui([pt({type:Number,reflect:!0})],bi.prototype,"tabindex",void 0),ui([pt({type:Boolean,reflect:!0,attribute:"indent-guides"})],bi.prototype,"indentGuides",void 0),ui([vt()],bi.prototype,"_selectedItem",void 0),ui([vt()],bi.prototype,"_focusedItem",void 0),ui([vt()],bi.prototype,"_selectedBranch",void 0),ui([vt()],bi.prototype,"_focusedBranch",void 0),bi=ui([kt("vscode-tree")],bi);export{Bt as VscodeBadge,Lt as VscodeButton,Ht as VscodeButtonGroup,Qt as VscodeCheckbox,se as VscodeCheckboxGroup,re as VscodeCollapsible,de as VscodeContextMenu,ae as VscodeContextMenuItem,ve as VscodeDivider,ye as VscodeFormContainer,$e as VscodeFormGroup,Be as VscodeFormHelper,Vt as VscodeIcon,je as VscodeLabel,rs as VscodeMultiSelect,qe as VscodeOption,as as VscodeProgressRing,ds as VscodeRadio,vs as VscodeRadioGroup,Qe as VscodeScrollable,fs as VscodeSingleSelect,$s as VscodeSplitLayout,Ss as VscodeTabHeader,Os as VscodeTabPanel,Gs as VscodeTable,js as VscodeTableBody,Ps as VscodeTableCell,Ds as VscodeTableHeader,Rs as VscodeTableHeaderCell,qs as VscodeTableRow,Xs as VscodeTabs,ti as VscodeTextarea,oi as VscodeTextfield,li as VscodeToolbarButton,hi as VscodeToolbarContainer,bi as VscodeTree};
2933
+ <div
2934
+ class=${Mt(a)}
2935
+ .style=${Ft({"--indentation-guide-left":`${n}px`})}
2936
+ role="group"
2937
+ >
2938
+ <slot
2939
+ name="children"
2940
+ @slotchange=${this._handleChildrenSlotChange}
2941
+ ></slot>
2942
+ </div>
2943
+ </div>`}};Di.styles=ji,Mi([vt({type:Boolean})],Di.prototype,"active",void 0),Mi([vt({type:Boolean,reflect:!0})],Di.prototype,"branch",void 0),Mi([vt({type:Boolean})],Di.prototype,"hasActiveItem",void 0),Mi([vt({type:Boolean})],Di.prototype,"hasSelectedItem",void 0),Mi([vt({type:Boolean})],Di.prototype,"highlightedGuides",void 0),Mi([vt({type:Boolean,reflect:!0})],Di.prototype,"open",void 0),Mi([vt({type:Number,reflect:!0})],Di.prototype,"level",void 0),Mi([vt({type:Boolean,reflect:!0})],Di.prototype,"selected",null),Mi([mi({context:yi,subscribe:!0})],Di.prototype,"_treeContextState",void 0),Mi([mi({context:wi,subscribe:!0})],Di.prototype,"_configContext",void 0),Mi([xt({selector:"vscode-tree-item"})],Di.prototype,"_initiallyAssignedTreeItems",void 0),Mi([xt({selector:"vscode-tree-item",slot:"children"})],Di.prototype,"_childrenTreeItems",void 0),Di=Mi([dt("vscode-tree-item")],Di);export{Ot as VscodeBadge,Ut as VscodeButton,Wt as VscodeButtonGroup,te as VscodeCheckbox,ie as VscodeCheckboxGroup,ne as VscodeCollapsible,ue as VscodeContextMenu,he as VscodeContextMenuItem,be as VscodeDivider,we as VscodeFormContainer,_e as VscodeFormGroup,Oe as VscodeFormHelper,Rt as VscodeIcon,je as VscodeLabel,ns as VscodeMultiSelect,He as VscodeOption,hs as VscodeProgressRing,us as VscodeRadio,bs as VscodeRadioGroup,ts as VscodeScrollable,gs as VscodeSingleSelect,_s as VscodeSplitLayout,Bs as VscodeTabHeader,As as VscodeTabPanel,Js as VscodeTable,js as VscodeTableBody,Fs as VscodeTableCell,Ns as VscodeTableHeader,Ls as VscodeTableHeaderCell,Hs as VscodeTableRow,Zs as VscodeTabs,ei as VscodeTextarea,ri as VscodeTextfield,ai as VscodeToolbarButton,di as VscodeToolbarContainer,Ii as VscodeTree,Di as VscodeTreeItem};