ntChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}},Gn=(r,t)=>xt` t.end?"end":void 0} > ${t.end||""} `,Yn=(r,t)=>xt` ${t.start||""} `,ol=xt` `,il=xt` `;function y(r,t,e,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,t,e,n);else for(var l=r.length-1;l>=0;l--)(a=r[l])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i}var Sr=new Map;"metadata"in Reflect||(Reflect.metadata=function(r,t){return function(e){Reflect.defineMetadata(r,t,e)}},Reflect.defineMetadata=function(r,t,e){let n=Sr.get(e);n===void 0&&Sr.set(e,n=new Map),n.set(r,t)},Reflect.getOwnMetadata=function(r,t){let e=Sr.get(t);if(e!==void 0)return e.get(r)});var _r=class{constructor(t,e){this.container=t,this.key=e}instance(t){return this.registerResolver(0,t)}singleton(t){return this.registerResolver(1,t)}transient(t){return this.registerResolver(2,t)}callback(t){return this.registerResolver(3,t)}cachedCallback(t){return this.registerResolver(3,io(t))}aliasTo(t){return this.registerResolver(5,t)}registerResolver(t,e){let{container:n,key:o}=this;return this.container=this.key=void 0,n.registerResolver(o,new $(o,t,e))}};function Yt(r){let t=r.slice(),e=Object.keys(r),n=e.length,o;for(let i=0;inull,responsibleForOwnerRequests:!1,defaultResolver:Fi.singleton})}),Xn=new Map;function Qn(r){return t=>Reflect.getOwnMetadata(r,t)}var Zn=null,w=Object.freeze({createContainer(r){return new Xt(null,Object.assign({},Tr.default,r))},findResponsibleContainer(r){let t=r.$$container$$;return t&&t.responsibleForOwnerRequests?t:w.findParentContainer(r)},findParentContainer(r){let t=new CustomEvent(oo,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return r.dispatchEvent(t),t.detail.container||w.getOrCreateDOMContainer()},getOrCreateDOMContainer(r,t){return r?r.$$container$$||new Xt(r,Object.assign({},Tr.default,t,{parentLocator:w.findParentContainer})):Zn||(Zn=new Xt(null,Object.assign({},Tr.default,t,{parentLocator:()=>null})))},getDesignParamtypes:Qn("design:paramtypes"),getAnnotationParamtypes:Qn("di:paramtypes"),getOrCreateAnnotationParamTypes(r){let t=this.getAnnotationParamtypes(r);return t===void 0&&Reflect.defineMetadata("di:paramtypes",t=[],r),t},getDependencies(r){let t=Xn.get(r);if(t===void 0){let e=r.inject;if(e===void 0){let n=w.getDesignParamtypes(r),o=w.getAnnotationParamtypes(r);if(n===void 0)if(o===void 0){let i=Object.getPrototypeOf(r);typeof i=="function"&&i!==Function.prototype?t=Yt(w.getDependencies(i)):t=[]}else t=Yt(o);else if(o===void 0)t=Yt(n);else{t=Yt(n);let i=o.length,a;for(let u=0;u{let d=w.findResponsibleContainer(this).get(e),x=this[o];d!==x&&(this[o]=i,l.notify(t))};l.subscribe({handleChange:f},"isConnected")}return i}})},createInterface(r,t){let e=typeof r=="function"?r:t,n=typeof r=="string"?r:r&&"friendlyName"in r&&r.friendlyName||eo,o=typeof r=="string"?!1:r&&"respectConnection"in r&&r.respectConnection||!1,i=function(a,l,f){if(a==null||new.target!==void 0)throw new Error(`No registration for interface: '${i.friendlyName}'`);if(l)w.defineProperty(a,l,i,o);else{let u=w.getOrCreateAnnotationParamTypes(a);u[f]=i}};return i.$isInterface=!0,i.friendlyName=n??"(anonymous)",e!=null&&(i.register=function(a,l){return e(new _r(a,l??i))}),i.toString=function(){return`InterfaceSymbol<${i.friendlyName}>`},i},inject(...r){return function(t,e,n){if(typeof n=="number"){let o=w.getOrCreateAnnotationParamTypes(t),i=r[0];i!==void 0&&(o[n]=i)}else if(e)w.defineProperty(t,e,r[0]);else{let o=n?w.getOrCreateAnnotationParamTypes(n.value):w.getOrCreateAnnotationParamTypes(t),i;for(let a=0;ae.getAll(r,n)),fl=Fe((r,t,e)=>()=>e.get(r)),dl=Fe((r,t,e)=>{if(e.has(r,!0))return e.get(r)});function kr(r,t,e){w.inject(kr)(r,t,e)}kr.$isResolver=!0;kr.resolve=()=>{};var hl=Fe((r,t,e)=>{let n=no(r,t),o=new $(r,0,n);return e.registerResolver(r,o),n}),pl=Fe((r,t,e)=>no(r,t));function no(r,t){return t.getFactory(r).construct(t)}var $=class{constructor(t,e,n){this.key=t,this.strategy=e,this.state=n,this.resolving=!1}get $isResolver(){return!0}register(t){return t.registerResolver(this.key,this)}resolve(t,e){switch(this.strategy){case 0:return this.state;case 1:{if(this.resolving)throw new Error(`Cyclic dependency found: ${this.state.name}`);return this.resolving=!0,this.state=t.getFactory(this.state).construct(e),this.strategy=0,this.resolving=!1,this.state}case 2:{let n=t.getFactory(this.state);if(n===null)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return n.construct(e)}case 3:return this.state(t,e,this);case 4:return this.state[0].resolve(t,e);case 5:return e.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(t){var e,n,o;switch(this.strategy){case 1:case 2:return t.getFactory(this.state);case 5:return(o=(n=(e=t.getResolver(this.state))===null||e===void 0?void 0:e.getFactory)===null||n===void 0?void 0:n.call(e,t))!==null&&o!==void 0?o:null;default:return null}}};function Jn(r){return this.get(r)}function Hi(r,t){return t(r)}var Ar=class{constructor(t,e){this.Type=t,this.dependencies=e,this.transformers=null}construct(t,e){let n;return e===void 0?n=new this.Type(...this.dependencies.map(Jn,t)):n=new this.Type(...this.dependencies.map(Jn,t),...e),this.transformers==null?n:this.transformers.reduce(Hi,n)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}},Ui={$isResolver:!0,resolve(r,t){return t}};function Ne(r){return typeof r.register=="function"}function zi(r){return Ne(r)&&typeof r.registerInRequestor=="boolean"}function Kn(r){return zi(r)&&r.registerInRequestor}function Vi(r){return r.prototype!==void 0}var Wi=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),oo="__DI_LOCATE_PARENT__",Cr=new Map,Xt=class r{constructor(t,e){this.owner=t,this.config=e,this._parent=void 0,this.registerDepth=0,this.context=null,t!==null&&(t.$$container$$=this),this.resolvers=new Map,this.resolvers.set($i,Ui),t instanceof Node&&t.addEventListener(oo,n=>{n.composedPath()[0]!==this.owner&&(n.detail.container=this,n.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(t,...e){return this.context=t,this.register(...e),this.context=null,this}register(...t){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let e,n,o,i,a,l=this.context;for(let f=0,u=t.length;fthis}))}jitRegister(t,e){if(typeof t!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${t}'. Did you forget to register this dependency?`);if(Wi.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(Ne(t)){let n=t.register(e);if(!(n instanceof Object)||n.resolve==null){let o=e.resolvers.get(t);if(o!=null)return o;throw new Error("A valid resolver was not returned from the static register method")}return n}else{if(t.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${t.friendlyName}`);{let n=this.config.defaultResolver(t,e);return e.resolvers.set(t,n),n}}}},Er=new WeakMap;function io(r){return function(t,e,n){if(Er.has(n))return Er.get(n);let o=r(t,e,n);return Er.set(n,o),o}}var Tt=Object.freeze({instance(r,t){return new $(r,0,t)},singleton(r,t){return new $(r,1,t)},transient(r,t){return new $(r,2,t)},callback(r,t){return new $(r,3,t)},cachedCallback(r,t){return new $(r,3,io(t))},aliasTo(r,t){return new $(t,5,r)}});function Le(r){if(r==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function to(r,t,e){if(r instanceof $&&r.strategy===4){let n=r.state,o=n.length,i=new Array(o);for(;o--;)i[o]=n[o].resolve(t,e);return i}return[r.resolve(t,e)]}var eo="(anonymous)";function ro(r){return typeof r=="object"&&r!==null||typeof r=="function"}var qi=(function(){let r=new WeakMap,t=!1,e="",n=0;return function(o){return t=r.get(o),t===void 0&&(e=o.toString(),n=e.length,t=n>=29&&n<=100&&e.charCodeAt(n-1)===125&&e.charCodeAt(n-2)<=32&&e.charCodeAt(n-3)===93&&e.charCodeAt(n-4)===101&&e.charCodeAt(n-5)===100&&e.charCodeAt(n-6)===111&&e.charCodeAt(n-7)===99&&e.charCodeAt(n-8)===32&&e.charCodeAt(n-9)===101&&e.charCodeAt(n-10)===118&&e.charCodeAt(n-11)===105&&e.charCodeAt(n-12)===116&&e.charCodeAt(n-13)===97&&e.charCodeAt(n-14)===110&&e.charCodeAt(n-15)===88,r.set(o,t)),t}})(),Me={};function so(r){switch(typeof r){case"number":return r>=0&&(r|0)===r;case"string":{let t=Me[r];if(t!==void 0)return t;let e=r.length;if(e===0)return Me[r]=!1;let n=0;for(let o=0;o1||n<48||n>57)return Me[r]=!1;return Me[r]=!0}default:return!1}}function ao(r){return`${r.toLowerCase()}:presentation`}var $e=new Map,je=Object.freeze({define(r,t,e){let n=ao(r);$e.get(n)===void 0?$e.set(n,t):$e.set(n,!1),e.register(Tt.instance(n,t))},forTag(r,t){let e=ao(r),n=$e.get(e);return n===!1?w.findResponsibleContainer(t).get(e):n||null}}),Be=class{constructor(t,e){this.template=t||null,this.styles=e===void 0?null:Array.isArray(e)?A.create(e):e instanceof A?e:A.create([e])}applyTo(t){let e=t.$fastController;e.template===null&&(e.template=this.template),e.styles===null&&(e.styles=this.styles)}};var ht=class r extends dt{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=je.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(t){return(e={})=>new Or(this===r?class extends r{}:this,t,e)}};y([X],ht.prototype,"template",void 0);y([X],ht.prototype,"styles",void 0);function Qt(r,t,e){return typeof r=="function"?r(t,e):r}var Or=class{constructor(t,e,n){this.type=t,this.elementDefinition=e,this.overrideDefinition=n,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(t,e){let n=this.definition,o=this.overrideDefinition,a=`${n.prefix||e.elementPrefix}-${n.baseName}`;e.tryDefineElement({name:a,type:this.type,baseClass:this.elementDefinition.baseClass,callback:l=>{let f=new Be(Qt(n.template,l,n),Qt(n.styles,l,n));l.definePresentation(f);let u=Qt(n.shadowOptions,l,n);l.shadowRootMode&&(u?o.shadowOptions||(u.mode=l.shadowRootMode):u!==null&&(u={mode:l.shadowRootMode})),l.defineElement({elementOptions:Qt(n.elementOptions,l,n),shadowOptions:u,attributes:Qt(n.attributes,l,n)})}})}};function Rr(r,...t){let e=Gt.locate(r);t.forEach(n=>{Object.getOwnPropertyNames(n.prototype).forEach(i=>{i!=="constructor"&&Object.defineProperty(r.prototype,i,Object.getOwnPropertyDescriptor(n.prototype,i))}),Gt.locate(n).forEach(i=>e.push(i))})}function lo(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Gi(){let r=document.querySelector('meta[property="csp-nonce"]');return r?r.getAttribute("content"):null}var Ct;function co(){if(typeof Ct=="boolean")return Ct;if(!lo())return Ct=!1,Ct;let r=document.createElement("style"),t=Gi();t!==null&&r.setAttribute("nonce",t),document.head.appendChild(r);try{r.sheet.insertRule("foo:focus-visible {color:inherit}",0),Ct=!0}catch{Ct=!1}finally{document.head.removeChild(r)}return Ct}var uo;(function(r){r[r.alt=18]="alt",r[r.arrowDown=40]="arrowDown",r[r.arrowLeft=37]="arrowLeft",r[r.arrowRight=39]="arrowRight",r[r.arrowUp=38]="arrowUp",r[r.back=8]="back",r[r.backSlash=220]="backSlash",r[r.break=19]="break",r[r.capsLock=20]="capsLock",r[r.closeBracket=221]="closeBracket",r[r.colon=186]="colon",r[r.colon2=59]="colon2",r[r.comma=188]="comma",r[r.ctrl=17]="ctrl",r[r.delete=46]="delete",r[r.end=35]="end",r[r.enter=13]="enter",r[r.equals=187]="equals",r[r.equals2=61]="equals2",r[r.equals3=107]="equals3",r[r.escape=27]="escape",r[r.forwardSlash=191]="forwardSlash",r[r.function1=112]="function1",r[r.function10=121]="function10",r[r.function11=122]="function11",r[r.function12=123]="function12",r[r.function2=113]="function2",r[r.function3=114]="function3",r[r.function4=115]="function4",r[r.function5=116]="function5",r[r.function6=117]="function6",r[r.function7=118]="function7",r[r.function8=119]="function8",r[r.function9=120]="function9",r[r.home=36]="home",r[r.insert=45]="insert",r[r.menu=93]="menu",r[r.minus=189]="minus",r[r.minus2=109]="minus2",r[r.numLock=144]="numLock",r[r.numPad0=96]="numPad0",r[r.numPad1=97]="numPad1",r[r.numPad2=98]="numPad2",r[r.numPad3=99]="numPad3",r[r.numPad4=100]="numPad4",r[r.numPad5=101]="numPad5",r[r.numPad6=102]="numPad6",r[r.numPad7=103]="numPad7",r[r.numPad8=104]="numPad8",r[r.numPad9=105]="numPad9",r[r.numPadDivide=111]="numPadDivide",r[r.numPadDot=110]="numPadDot",r[r.numPadMinus=109]="numPadMinus",r[r.numPadMultiply=106]="numPadMultiply",r[r.numPadPlus=107]="numPadPlus",r[r.openBracket=219]="openBracket",r[r.pageDown=34]="pageDown",r[r.pageUp=33]="pageUp",r[r.period=190]="period",r[r.print=44]="print",r[r.quote=222]="quote",r[r.scrollLock=145]="scrollLock",r[r.shift=16]="shift",r[r.space=32]="space",r[r.tab=9]="tab",r[r.tilde=192]="tilde",r[r.windowsLeft=91]="windowsLeft",r[r.windowsOpera=219]="windowsOpera",r[r.windowsRight=92]="windowsRight"})(uo||(uo={}));var fo="Enter";var E=class{};y([b({attribute:"aria-atomic"})],E.prototype,"ariaAtomic",void 0);y([b({attribute:"aria-busy"})],E.prototype,"ariaBusy",void 0);y([b({attribute:"aria-controls"})],E.prototype,"ariaControls",void 0);y([b({attribute:"aria-current"})],E.prototype,"ariaCurrent",void 0);y([b({attribute:"aria-describedby"})],E.prototype,"ariaDescribedby",void 0);y([b({attribute:"aria-details"})],E.prototype,"ariaDetails",void 0);y([b({attribute:"aria-disabled"})],E.prototype,"ariaDisabled",void 0);y([b({attribute:"aria-errormessage"})],E.prototype,"ariaErrormessage",void 0);y([b({attribute:"aria-flowto"})],E.prototype,"ariaFlowto",void 0);y([b({attribute:"aria-haspopup"})],E.prototype,"ariaHaspopup",void 0);y([b({attribute:"aria-hidden"})],E.prototype,"ariaHidden",void 0);y([b({attribute:"aria-invalid"})],E.prototype,"ariaInvalid",void 0);y([b({attribute:"aria-keyshortcuts"})],E.prototype,"ariaKeyshortcuts",void 0);y([b({attribute:"aria-label"})],E.prototype,"ariaLabel",void 0);y([b({attribute:"aria-labelledby"})],E.prototype,"ariaLabelledby",void 0);y([b({attribute:"aria-live"})],E.prototype,"ariaLive",void 0);y([b({attribute:"aria-owns"})],E.prototype,"ariaOwns",void 0);y([b({attribute:"aria-relevant"})],E.prototype,"ariaRelevant",void 0);y([b({attribute:"aria-roledescription"})],E.prototype,"ariaRoledescription",void 0);var ho=(r,t)=>xt` `;var po="form-associated-proxy",mo="ElementInternals",go=mo in window&&"setFormValue"in window[mo].prototype,bo=new WeakMap;function yo(r){let t=class extends r{constructor(...e){super(...e),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return go}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){let e=this.proxy.labels,n=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),o=e?n.concat(Array.from(e)):n;return Object.freeze(o)}else return ct}valueChanged(e,n){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(e,n){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(e,n){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),g.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(e,n){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(e,n){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),g.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!go)return null;let e=bo.get(this);return e||(e=this.attachInternals(),bo.set(this,e)),e}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(e=>this.proxy.removeEventListener(e,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,n,o){this.elementInternals?this.elementInternals.setValidity(e,n,o):typeof n=="string"&&this.proxy.setCustomValidity(n)}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var e;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(n=>this.proxy.addEventListener(n,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",po),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",po)),(e=this.shadowRoot)===null||e===void 0||e.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var e;this.removeChild(this.proxy),(e=this.shadowRoot)===null||e===void 0||e.removeChild(this.proxySlot)}validate(e){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}setFormValue(e,n){this.elementInternals&&this.elementInternals.setFormValue(e,n||e)}_keypressHandler(e){switch(e.key){case fo:if(this.form instanceof HTMLFormElement){let n=this.form.querySelector("[type=submit]");n?.click()}break}}stopPropagation(e){e.stopPropagation()}};return b({mode:"boolean"})(t.prototype,"disabled"),b({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),b({attribute:"current-value"})(t.prototype,"currentValue"),b(t.prototype,"name"),b({mode:"boolean"})(t.prototype,"required"),X(t.prototype,"value"),t}var Dr=class extends ht{},He=class extends yo(Dr){constructor(){super(...arguments),this.proxy=document.createElement("input")}};var V=class extends He{constructor(){super(...arguments),this.handleClick=t=>{var e;this.disabled&&((e=this.defaultSlottedContent)===null||e===void 0?void 0:e.length)<=1&&t.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;let t=this.proxy.isConnected;t||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),t||this.detachProxy()},this.handleFormReset=()=>{var t;(t=this.form)===null||t===void 0||t.reset()},this.handleUnsupportedDelegatesFocus=()=>{var t;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((t=this.$fastController.definition.shadowOptions)===null||t===void 0)&&t.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(t,e){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.type),e==="submit"&&this.addEventListener("click",this.handleSubmission),t==="submit"&&this.removeEventListener("click",this.handleSubmission),e==="reset"&&this.addEventListener("click",this.handleFormReset),t==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var t;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();let e=Array.from((t=this.control)===null||t===void 0?void 0:t.children);e&&e.forEach(n=>{n.addEventListener("click",this.handleClick)})}disconnectedCallback(){var t;super.disconnectedCallback();let e=Array.from((t=this.control)===null||t===void 0?void 0:t.children);e&&e.forEach(n=>{n.removeEventListener("click",this.handleClick)})}};y([b({mode:"boolean"})],V.prototype,"autofocus",void 0);y([b({attribute:"form"})],V.prototype,"formId",void 0);y([b],V.prototype,"formaction",void 0);y([b],V.prototype,"formenctype",void 0);y([b],V.prototype,"formmethod",void 0);y([b({mode:"boolean"})],V.prototype,"formnovalidate",void 0);y([b],V.prototype,"formtarget",void 0);y([b],V.prototype,"type",void 0);y([X],V.prototype,"defaultSlottedContent",void 0);var Ft=class{};y([b({attribute:"aria-expanded"})],Ft.prototype,"ariaExpanded",void 0);y([b({attribute:"aria-pressed"})],Ft.prototype,"ariaPressed",void 0);Rr(Ft,E);Rr(V,Ie,Ft);function Zt(r){let t=r.parentElement;if(t)return t;{let e=r.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}function vo(r,t){let e=t;for(;e!==null;){if(e===r)return!0;e=Zt(e)}return!1}var rt=document.createElement("div");function Yi(r){return r instanceof dt}var Jt=class{setProperty(t,e){g.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){g.queueUpdate(()=>this.target.removeProperty(t))}},Ir=class extends Jt{constructor(t){super();let e=new CSSStyleSheet;e[Oe]=!0,this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(A.create([e]))}},Lr=class extends Jt{constructor(){super();let t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}},Mr=class extends Jt{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);let{sheet:t}=this.style;if(t){let e=t.insertRule(":root{}",t.cssRules.length);this.target=t.cssRules[e].style}}},Ue=class{constructor(t){this.store=new Map,this.target=null;let e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),S.getNotifier(e).subscribe(this,"isConnected"),this.handleChange(e,"isConnected")}targetChanged(){if(this.target!==null)for(let[t,e]of this.store.entries())this.target.setProperty(t,e)}setProperty(t,e){this.store.set(t,e),g.queueUpdate(()=>{this.target!==null&&this.target.setProperty(t,e)})}removeProperty(t){this.store.delete(t),g.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(t)})}handleChange(t,e){let{sheet:n}=this.style;if(n){let o=n.insertRule(":host{}",n.cssRules.length);this.target=n.cssRules[o].style}else this.target=null}};y([X],Ue.prototype,"target",void 0);var Nr=class{constructor(t){this.target=t.style}setProperty(t,e){g.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){g.queueUpdate(()=>this.target.removeProperty(t))}},pt=class r{setProperty(t,e){r.properties[t]=e;for(let n of r.roots.values())Et.getOrCreate(r.normalizeRoot(n)).setProperty(t,e)}removeProperty(t){delete r.properties[t];for(let e of r.roots.values())Et.getOrCreate(r.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){let{roots:e}=r;if(!e.has(t)){e.add(t);let n=Et.getOrCreate(this.normalizeRoot(t));for(let o in r.properties)n.setProperty(o,r.properties[o])}}static unregisterRoot(t){let{roots:e}=r;if(e.has(t)){e.delete(t);let n=Et.getOrCreate(r.normalizeRoot(t));for(let o in r.properties)n.removeProperty(o)}}static normalizeRoot(t){return t===rt?document:t}};pt.roots=new Set;pt.properties={};var Pr=new WeakMap,Xi=g.supportsAdoptedStyleSheets?Ir:Ue,Et=Object.freeze({getOrCreate(r){if(Pr.has(r))return Pr.get(r);let t;return r===rt?t=new pt:r instanceof Document?t=g.supportsAdoptedStyleSheets?new Lr:new Mr:Yi(r)?t=new Xi(r):t=new Nr(r),Pr.set(r,t),t}});var Z=class r extends wt{constructor(t){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=t.name,t.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${t.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=r.uniqueId(),r.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(t){return new r({name:typeof t=="string"?t:t.name,cssCustomPropertyName:typeof t=="string"?t:t.cssCustomPropertyName===void 0?t.name:t.cssCustomPropertyName})}static isCSSDesignToken(t){return typeof t.cssCustomProperty=="string"}static isDerivedDesignTokenValue(t){return typeof t=="function"}static getTokenById(t){return r.tokensById.get(t)}getOrCreateSubscriberSet(t=this){return this.subscribers.get(t)||this.subscribers.set(t,new Set)&&this.subscribers.get(t)}createCSS(){return this.cssVar||""}getValueFor(t){let e=B.getOrCreate(t).get(this);if(e!==void 0)return e;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${t} or an ancestor of ${t}.`)}setValueFor(t,e){return this._appliedTo.add(t),e instanceof r&&(e=this.alias(e)),B.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),B.existsFor(t)&&B.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(rt,t),this}subscribe(t,e){let n=this.getOrCreateSubscriberSet(e);e&&!B.existsFor(e)&&B.getOrCreate(e),n.has(t)||n.add(t)}unsubscribe(t,e){let n=this.subscribers.get(e||this);n&&n.has(t)&&n.delete(t)}notify(t){let e=Object.freeze({token:this,target:t});this.subscribers.has(this)&&this.subscribers.get(this).forEach(n=>n.handleChange(e)),this.subscribers.has(t)&&this.subscribers.get(t).forEach(n=>n.handleChange(e))}alias(t){return(e=>t.getValueFor(e))}};Z.uniqueId=(()=>{let r=0;return()=>(r++,r.toString(16))})();Z.tokensById=new Map;var Fr=class{startReflection(t,e){t.subscribe(this,e),this.handleChange({token:t,target:e})}stopReflection(t,e){t.unsubscribe(this,e),this.remove(t,e)}handleChange(t){let{token:e,target:n}=t;this.add(e,n)}add(t,e){Et.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue(B.getOrCreate(e).get(t)))}remove(t,e){Et.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&typeof t.createCSS=="function"?t.createCSS():t}},$r=class{constructor(t,e,n){this.source=t,this.token=e,this.node=n,this.dependencies=new Set,this.observer=S.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){try{this.node.store.set(this.token,this.observer.observe(this.node.target,ft))}catch(t){console.error(t)}}},Br=class{constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),S.getNotifier(this).notify(t.id))}get(t){return S.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t),S.getNotifier(this).notify(t.id)}all(){return this.values.entries()}},Kt=new WeakMap,te=new WeakMap,B=class r{constructor(t){this.target=t,this.store=new Br,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(e,n)=>{let o=Z.getTokenById(n);o&&(o.notify(this.target),this.updateCSSTokenReflection(e,o))}},Kt.set(t,this),S.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof dt?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return Kt.get(t)||new r(t)}static existsFor(t){return Kt.has(t)}static findParent(t){if(rt!==t.target){let e=Zt(t.target);for(;e!==null;){if(Kt.has(e))return Kt.get(e);e=Zt(e)}return r.getOrCreate(rt)}return null}static findClosestAssignedNode(t,e){let n=e;do{if(n.has(t))return n;n=n.parent?n.parent:n.target!==rt?r.getOrCreate(rt):null}while(n!==null);return null}get parent(){return te.get(this)||null}updateCSSTokenReflection(t,e){if(Z.isCSSDesignToken(e)){let n=this.parent,o=this.isReflecting(e);if(n){let i=n.get(e),a=t.get(e);i!==a&&!o?this.reflectToCSS(e):i===a&&o&&this.stopReflectToCSS(e)}else o||this.reflectToCSS(e)}}has(t){return this.assignedValues.has(t)}get(t){let e=this.store.get(t);if(e!==void 0)return e;let n=this.getRaw(t);if(n!==void 0)return this.hydrate(t,n),this.get(t)}getRaw(t){var e;return this.assignedValues.has(t)?this.assignedValues.get(t):(e=r.findClosestAssignedNode(t,this))===null||e===void 0?void 0:e.getRaw(t)}set(t,e){Z.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),Z.isDerivedDesignTokenValue(e)?this.setupBindingObserver(t,e):this.store.set(t,e)}delete(t){this.assignedValues.delete(t),this.tearDownBindingObserver(t);let e=this.getRaw(t);e?this.hydrate(t,e):this.store.delete(t)}bind(){let t=r.findParent(this);t&&t.appendChild(this);for(let e of this.assignedValues.keys())e.notify(this.target)}unbind(){this.parent&&te.get(this).removeChild(this);for(let t of this.bindingObservers.keys())this.tearDownBindingObserver(t)}appendChild(t){t.parent&&te.get(t).removeChild(t);let e=this.children.filter(n=>t.contains(n));te.set(t,this),this.children.push(t),e.forEach(n=>t.appendChild(n)),S.getNotifier(this.store).subscribe(t);for(let[n,o]of this.store.all())t.hydrate(n,this.bindingObservers.has(n)?this.getRaw(n):o),t.updateCSSTokenReflection(t.store,n)}removeChild(t){let e=this.children.indexOf(t);if(e!==-1&&this.children.splice(e,1),S.getNotifier(this.store).unsubscribe(t),t.parent!==this)return!1;let n=te.delete(t);for(let[o]of this.store.all())t.hydrate(o,t.getRaw(o)),t.updateCSSTokenReflection(t.store,o);return n}contains(t){return vo(this.target,t.target)}reflectToCSS(t){this.isReflecting(t)||(this.reflecting.add(t),r.cssCustomPropertyReflector.startReflection(t,this.target))}stopReflectToCSS(t){this.isReflecting(t)&&(this.reflecting.delete(t),r.cssCustomPropertyReflector.stopReflection(t,this.target))}isReflecting(t){return this.reflecting.has(t)}handleChange(t,e){let n=Z.getTokenById(e);n&&(this.hydrate(n,this.getRaw(n)),this.updateCSSTokenReflection(this.store,n))}hydrate(t,e){if(!this.has(t)){let n=this.bindingObservers.get(t);Z.isDerivedDesignTokenValue(e)?n?n.source!==e&&(this.tearDownBindingObserver(t),this.setupBindingObserver(t,e)):this.setupBindingObserver(t,e):(n&&this.tearDownBindingObserver(t),this.store.set(t,e))}}setupBindingObserver(t,e){let n=new $r(e,t,this);return this.bindingObservers.set(t,n),n}tearDownBindingObserver(t){return this.bindingObservers.has(t)?(this.bindingObservers.get(t).disconnect(),this.bindingObservers.delete(t),!0):!1}};B.cssCustomPropertyReflector=new Fr;y([X],B.prototype,"children",void 0);function Qi(r){return Z.from(r)}var ee=Object.freeze({create:Qi,notifyConnection(r){return!r.isConnected||!B.existsFor(r)?!1:(B.getOrCreate(r).bind(),!0)},notifyDisconnection(r){return r.isConnected||!B.existsFor(r)?!1:(B.getOrCreate(r).unbind(),!0)},registerRoot(r=rt){pt.registerRoot(r)},unregisterRoot(r=rt){pt.unregisterRoot(r)}});var jr=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),Hr=new Map,ze=new Map,$t=null,re=w.createInterface(r=>r.cachedCallback(t=>($t===null&&($t=new Ve(null,t)),$t))),zr=Object.freeze({tagFor(r){return ze.get(r)},responsibleFor(r){let t=r.$$designSystem$$;return t||w.findResponsibleContainer(r).get(re)},getOrCreate(r){if(!r)return $t===null&&($t=w.getOrCreateDOMContainer().get(re)),$t;let t=r.$$designSystem$$;if(t)return t;let e=w.getOrCreateDOMContainer(r);if(e.has(re,!1))return e.get(re);{let n=new Ve(r,e);return e.register(Tt.instance(re,n)),n}}});function Zi(r,t,e){return typeof r=="string"?{name:r,type:t,callback:e}:r}var Ve=class{constructor(t,e){this.owner=t,this.container=e,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>jr.definitionCallbackOnly,t!==null&&(t.$$designSystem$$=this)}withPrefix(t){return this.prefix=t,this}withShadowRootMode(t){return this.shadowRootMode=t,this}withElementDisambiguation(t){return this.disambiguate=t,this}withDesignTokenRoot(t){return this.designTokenRoot=t,this}register(...t){let e=this.container,n=[],o=this.disambiguate,i=this.shadowRootMode,a={elementPrefix:this.prefix,tryDefineElement(l,f,u){let d=Zi(l,f,u),{name:x,callback:k,baseClass:M}=d,{type:C}=d,W=x,At=Hr.get(W),jt=!0;for(;At;){let he=o(W,C,At);switch(he){case jr.ignoreDuplicate:return;case jr.definitionCallbackOnly:jt=!1,At=void 0;break;default:W=he,At=Hr.get(W);break}}jt&&((ze.has(C)||C===ht)&&(C=class extends C{}),Hr.set(W,C),ze.set(C,W),M&&ze.set(M,W)),n.push(new Ur(e,W,C,i,k,jt))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&ee.registerRoot(this.designTokenRoot)),e.registerWithContext(a,...t);for(let l of n)l.callback(l),l.willDefine&&l.definition!==null&&l.definition.define();return this}},Ur=class{constructor(t,e,n,o,i,a){this.container=t,this.name=e,this.type=n,this.shadowRootMode=o,this.callback=i,this.willDefine=a,this.definition=null}definePresentation(t){je.define(this.name,t,this.container)}defineElement(t){this.definition=new et(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return zr.tagFor(t)}};var xo="not-allowed";var Ji=":host([hidden]){display:none}";function wo(r){return`${Ji}:host{display:${r}}`}var ne=co()?"focus-visible":"focus";function So(r){return zr.getOrCreate(r).withPrefix("vscode")}function Co(r){window.addEventListener("load",()=>{new MutationObserver(()=>{To(r)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),To(r)})}function To(r){let t=getComputedStyle(document.body),e=document.querySelector("body");if(e){let n=e.getAttribute("data-vscode-theme-kind");for(let[o,i]of r){let a=t.getPropertyValue(o).toString();if(n==="vscode-high-contrast")a.length===0&&i.name.includes("background")&&(a="transparent"),i.name==="button-icon-hover-background"&&(a="transparent");else if(n==="vscode-high-contrast-light"){if(a.length===0&&i.name.includes("background"))switch(i.name){case"button-primary-hover-background":a="#0F4A85";break;case"button-secondary-hover-background":a="transparent";break;case"button-icon-hover-background":a="transparent";break}}else i.name==="contrast-active-border"&&(a="transparent");i.setValueFor(e,a)}}}var Eo=new Map,_o=!1;function h(r,t){let e=ee.create(r);if(t){if(t.includes("--fake-vscode-token")){let n="id"+Math.random().toString(16).slice(2);t=`${t}-${n}`}Eo.set(t,e)}return _o||(Co(Eo),_o=!0),e}var Cu=h("background","--vscode-editor-background").withDefault("#1e1e1e"),st=h("border-width").withDefault(1),Ao=h("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518"),Eu=h("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df"),_u=h("corner-radius").withDefault(0),ko=h("corner-radius-round").withDefault(2),Vr=h("design-unit").withDefault(4),Oo=h("disabled-opacity").withDefault(.4),oe=h("focus-border","--vscode-focusBorder").withDefault("#007fd4"),Ro=h("font-family","--vscode-font-family").withDefault("-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol"),Au=h("font-weight","--vscode-font-weight").withDefault("400"),Do=h("foreground","--vscode-foreground").withDefault("#cccccc"),ku=h("input-height").withDefault("26"),Ou=h("input-min-width").withDefault("100px"),Po=h("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),Io=h("type-ramp-base-line-height").withDefault("normal"),Ru=h("type-ramp-minus1-font-size").withDefault("11px"),Du=h("type-ramp-minus1-line-height").withDefault("16px"),Pu=h("type-ramp-minus2-font-size").withDefault("9px"),Iu=h("type-ramp-minus2-line-height").withDefault("16px"),Lu=h("type-ramp-plus1-font-size").withDefault("16px"),Mu=h("type-ramp-plus1-line-height").withDefault("24px"),Nu=h("scrollbarWidth").withDefault("10px"),Fu=h("scrollbarHeight").withDefault("10px"),$u=h("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),Bu=h("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),ju=h("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),Hu=h("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),Uu=h("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),Lo=h("button-border","--vscode-button-border").withDefault("transparent"),Wr=h("button-icon-background").withDefault("transparent"),Mo=h("button-icon-corner-radius").withDefault("5px"),No=h("button-icon-outline-offset").withDefault(0),qr=h("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),Fo=h("button-icon-padding").withDefault("3px"),_t=h("button-primary-background","--vscode-button-background").withDefault("#0e639c"),Gr=h("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),Yr=h("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),We=h("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),$o=h("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),Bo=h("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),jo=h("button-padding-horizontal").withDefault("11px"),Ho=h("button-padding-vertical").withDefault("4px"),zu=h("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),Vu=h("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),Wu=h("checkbox-corner-radius").withDefault(3),qu=h("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0"),Gu=h("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771"),Yu=h("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),Xu=h("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),Qu=h("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),Zu=h("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),Ju=h("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c"),Ku=h("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0"),tf=h("dropdown-list-max-height").withDefault("200px"),ef=h("input-background","--vscode-input-background").withDefault("#3c3c3c"),rf=h("input-foreground","--vscode-input-foreground").withDefault("#cccccc"),nf=h("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc"),of=h("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff"),sf=h("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),af=h("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),lf=h("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),cf=h("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),uf=h("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799"),ff=h("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e"),df=h("panel-view-border","--vscode-panel-border").withDefault("#80808059"),hf=h("tag-corner-radius").withDefault("2px");function Uo(r,t,e,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,t,e,n);else for(var l=r.length-1;l>=0;l--)(a=r[l])&&(i=(o<3?a(i):o>3?a(t,e,i):a(t,e))||i);return o>3&&i&&Object.defineProperty(t,e,i),i}var Ki=St` ${wo("inline-flex")} :host { outline: none; font-family: ${Ro}; font-size: ${Po}; line-height: ${Io}; color: ${Gr}; background: ${_t}; border-radius: calc(${ko} * 1px); fill: currentColor; cursor: pointer; } .control { background: transparent; height: inherit; flex-grow: 1; box-sizing: border-box; display: inline-flex; justify-content: center; align-items: center; padding: ${Ho} ${jo}; white-space: wrap; outline: none; text-decoration: none; border: calc(${st} * 1px) solid ${Lo}; color: inherit; border-radius: inherit; fill: inherit; cursor: inherit; font-family: inherit; } :host(:hover) { background: ${Yr}; } :host(:active) { background: ${_t}; } .control:${ne} { outline: calc(${st} * 1px) solid ${oe}; outline-offset: calc(${st} * 2px); } .control::-moz-focus-inner { border: 0; } :host([disabled]) { opacity: ${Oo}; background: ${_t}; cursor: ${xo}; } .content { display: flex; } .start { display: flex; } ::slotted(svg), ::slotted(span) { width: calc(${Vr} * 4px); height: calc(${Vr} * 4px); } .start { margin-inline-end: 8px; } `,ts=St` :host([appearance='primary']) { background: ${_t}; color: ${Gr}; } :host([appearance='primary']:hover) { background: ${Yr}; } :host([appearance='primary']:active) .control:active { background: ${_t}; } :host([appearance='primary']) .control:${ne} { outline: calc(${st} * 1px) solid ${oe}; outline-offset: calc(${st} * 2px); } :host([appearance='primary'][disabled]) { background: ${_t}; } `,es=St` :host([appearance='secondary']) { background: ${We}; color: ${$o}; } :host([appearance='secondary']:hover) { background: ${Bo}; } :host([appearance='secondary']:active) .control:active { background: ${We}; } :host([appearance='secondary']) .control:${ne} { outline: calc(${st} * 1px) solid ${oe}; outline-offset: calc(${st} * 2px); } :host([appearance='secondary'][disabled]) { background: ${We}; } `,rs=St` :host([appearance='icon']) { background: ${Wr}; border-radius: ${Mo}; color: ${Do}; } :host([appearance='icon']:hover) { background: ${qr}; outline: 1px dotted ${Ao}; outline-offset: -1px; } :host([appearance='icon']) .control { padding: ${Fo}; border: none; } :host([appearance='icon']:active) .control:active { background: ${qr}; } :host([appearance='icon']) .control:${ne} { outline: calc(${st} * 1px) solid ${oe}; outline-offset: ${No}; } :host([appearance='icon'][disabled]) { background: ${Wr}; } `,zo=(r,t)=>St` ${Ki} ${ts} ${es} ${rs} `;var qe=class extends V{connectedCallback(){if(super.connectedCallback(),!this.appearance){let t=this.getAttribute("appearance");this.appearance=t}}attributeChangedCallback(t,e,n){t==="appearance"&&n==="icon"&&(this.getAttribute("aria-label")||(this.ariaLabel="Icon Button")),t==="aria-label"&&(this.ariaLabel=n),t==="disabled"&&(this.disabled=n!==null)}};Uo([b],qe.prototype,"appearance",void 0);var Xr=qe.compose({baseName:"button",template:ho,styles:zo,shadowOptions:{delegatesFocus:!0}});var{entries:Jo,setPrototypeOf:Vo,isFrozen:ns,getPrototypeOf:os,getOwnPropertyDescriptor:is}=Object,{freeze:H,seal:G,create:ue}=Object,{apply:rn,construct:nn}=typeof Reflect<"u"&&Reflect;H||(H=function(t){return t});G||(G=function(t){return t});rn||(rn=function(t,e){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i1?e-1:0),o=1;o1?e-1:0),o=1;o2&&arguments[2]!==void 0?arguments[2]:Ye;Vo&&Vo(r,null);let n=t.length;for(;n--;){let o=t[n];if(typeof o=="string"){let i=e(o);i!==o&&(ns(t)||(t[n]=i),o=i)}r[o]=!0}return r}function fs(r){for(let t=0;t/gm),gs=G(/\$\{[\w\W]*/gm),bs=G(/^data-[\-\w.\u00B7-\uFFFF]+$/),ys=G(/^aria-[\-\w]+$/),Ko=G(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vs=G(/^(?:\w+script|data):/i),xs=G(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ti=G(/^html$/i),ws=G(/^[a-z][.\w]*(-[.\w]+)+$/i),Qo=Object.freeze({__proto__:null,ARIA_ATTR:ys,ATTR_WHITESPACE:xs,CUSTOM_ELEMENT:ws,DATA_ATTR:bs,DOCTYPE_NAME:ti,ERB_EXPR:ms,IS_ALLOWED_URI:Ko,IS_SCRIPT_OR_DATA:vs,MUSTACHE_EXPR:ps,TMPLIT_EXPR:gs}),ce={element:1,text:3,progressingInstruction:7,comment:8,document:9},Ss=function(){return typeof window>"u"?null:window},Ts=function(t,e){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null,o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));let i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Zo=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ei(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ss(),t=m=>ei(m);if(t.version="3.4.0",t.removed=[],!r||!r.document||r.document.nodeType!==ce.document||!r.Element)return t.isSupported=!1,t;let{document:e}=r,n=e,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:l,Element:f,NodeFilter:u,NamedNodeMap:d=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:x,DOMParser:k,trustedTypes:M}=r,C=f.prototype,W=le(C,"cloneNode"),At=le(C,"remove"),jt=le(C,"nextSibling"),he=le(C,"childNodes"),pe=le(C,"parentNode");if(typeof a=="function"){let m=e.createElement("template");m.content&&m.content.ownerDocument&&(e=m.content.ownerDocument)}let N,Ht="",{implementation:Xe,createNodeIterator:oi,createDocumentFragment:ii,getElementsByTagName:si}=e,{importNode:ai}=n,F=Zo();t.isSupported=typeof Jo=="function"&&typeof pe=="function"&&Xe&&Xe.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:me,ERB_EXPR:ge,TMPLIT_EXPR:be,DATA_ATTR:li,ARIA_ATTR:ci,IS_SCRIPT_OR_DATA:ui,ATTR_WHITESPACE:an,CUSTOM_ELEMENT:fi}=Qo,{IS_ALLOWED_URI:ln}=Qo,D=null,cn=v({},[...qo,...Jr,...Kr,...tn,...Go]),P=null,un=v({},[...Yo,...en,...Xo,...Ge]),_=Object.seal(ue(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ut=null,ye=null,at=Object.seal(ue(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),fn=!0,Qe=!0,dn=!1,hn=!0,mt=!1,zt=!0,gt=!1,Ze=!1,Je=!1,kt=!1,ve=!1,xe=!1,pn=!0,mn=!1,di="user-content-",Ke=!0,Vt=!1,Ot={},K=null,tr=v({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),gn=null,bn=v({},["audio","video","img","source","image","track"]),er=null,yn=v({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),we="http://www.w3.org/1998/Math/MathML",Se="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml",Rt=tt,rr=!1,nr=null,hi=v({},[we,Se,tt],Qr),Te=v({},["mi","mo","mn","ms","mtext"]),Ce=v({},["annotation-xml"]),pi=v({},["title","style","font","a","script"]),Wt=null,mi=["application/xhtml+xml","text/html"],gi="text/html",R=null,Dt=null,bi=e.createElement("form"),vn=function(s){return s instanceof RegExp||s instanceof Function},or=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Dt&&Dt===s)){if((!s||typeof s!="object")&&(s={}),s=nt(s),Wt=mi.indexOf(s.PARSER_MEDIA_TYPE)===-1?gi:s.PARSER_MEDIA_TYPE,R=Wt==="application/xhtml+xml"?Qr:Ye,D=J(s,"ALLOWED_TAGS")?v({},s.ALLOWED_TAGS,R):cn,P=J(s,"ALLOWED_ATTR")?v({},s.ALLOWED_ATTR,R):un,nr=J(s,"ALLOWED_NAMESPACES")?v({},s.ALLOWED_NAMESPACES,Qr):hi,er=J(s,"ADD_URI_SAFE_ATTR")?v(nt(yn),s.ADD_URI_SAFE_ATTR,R):yn,gn=J(s,"ADD_DATA_URI_TAGS")?v(nt(bn),s.ADD_DATA_URI_TAGS,R):bn,K=J(s,"FORBID_CONTENTS")?v({},s.FORBID_CONTENTS,R):tr,Ut=J(s,"FORBID_TAGS")?v({},s.FORBID_TAGS,R):nt({}),ye=J(s,"FORBID_ATTR")?v({},s.FORBID_ATTR,R):nt({}),Ot=J(s,"USE_PROFILES")?s.USE_PROFILES:!1,fn=s.ALLOW_ARIA_ATTR!==!1,Qe=s.ALLOW_DATA_ATTR!==!1,dn=s.ALLOW_UNKNOWN_PROTOCOLS||!1,hn=s.ALLOW_SELF_CLOSE_IN_ATTR!==!1,mt=s.SAFE_FOR_TEMPLATES||!1,zt=s.SAFE_FOR_XML!==!1,gt=s.WHOLE_DOCUMENT||!1,kt=s.RETURN_DOM||!1,ve=s.RETURN_DOM_FRAGMENT||!1,xe=s.RETURN_TRUSTED_TYPE||!1,Je=s.FORCE_BODY||!1,pn=s.SANITIZE_DOM!==!1,mn=s.SANITIZE_NAMED_PROPS||!1,Ke=s.KEEP_CONTENT!==!1,Vt=s.IN_PLACE||!1,ln=s.ALLOWED_URI_REGEXP||Ko,Rt=s.NAMESPACE||tt,Te=s.MATHML_TEXT_INTEGRATION_POINTS||Te,Ce=s.HTML_INTEGRATION_POINTS||Ce,_=s.CUSTOM_ELEMENT_HANDLING||ue(null),s.CUSTOM_ELEMENT_HANDLING&&vn(s.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_.tagNameCheck=s.CUSTOM_ELEMENT_HANDLING.tagNameCheck),s.CUSTOM_ELEMENT_HANDLING&&vn(s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_.attributeNameCheck=s.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),s.CUSTOM_ELEMENT_HANDLING&&typeof s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=s.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),mt&&(Qe=!1),ve&&(kt=!0),Ot&&(D=v({},Go),P=ue(null),Ot.html===!0&&(v(D,qo),v(P,Yo)),Ot.svg===!0&&(v(D,Jr),v(P,en),v(P,Ge)),Ot.svgFilters===!0&&(v(D,Kr),v(P,en),v(P,Ge)),Ot.mathMl===!0&&(v(D,tn),v(P,Xo),v(P,Ge))),at.tagCheck=null,at.attributeCheck=null,s.ADD_TAGS&&(typeof s.ADD_TAGS=="function"?at.tagCheck=s.ADD_TAGS:(D===cn&&(D=nt(D)),v(D,s.ADD_TAGS,R))),s.ADD_ATTR&&(typeof s.ADD_ATTR=="function"?at.attributeCheck=s.ADD_ATTR:(P===un&&(P=nt(P)),v(P,s.ADD_ATTR,R))),s.ADD_URI_SAFE_ATTR&&v(er,s.ADD_URI_SAFE_ATTR,R),s.FORBID_CONTENTS&&(K===tr&&(K=nt(K)),v(K,s.FORBID_CONTENTS,R)),s.ADD_FORBID_CONTENTS&&(K===tr&&(K=nt(K)),v(K,s.ADD_FORBID_CONTENTS,R)),Ke&&(D["#text"]=!0),gt&&v(D,["html","head","body"]),D.table&&(v(D,["tbody"]),delete Ut.tbody),s.TRUSTED_TYPES_POLICY){if(typeof s.TRUSTED_TYPES_POLICY.createHTML!="function")throw ae('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof s.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ae('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');N=s.TRUSTED_TYPES_POLICY,Ht=N.createHTML("")}else N===void 0&&(N=Ts(M,o)),N!==null&&typeof Ht=="string"&&(Ht=N.createHTML(""));H&&H(s),Dt=s}},xn=v({},[...Jr,...Kr,...ds]),wn=v({},[...tn,...hs]),yi=function(s){let c=pe(s);(!c||!c.tagName)&&(c={namespaceURI:Rt,tagName:"template"});let p=Ye(s.tagName),T=Ye(c.tagName);return nr[s.namespaceURI]?s.namespaceURI===Se?c.namespaceURI===tt?p==="svg":c.namespaceURI===we?p==="svg"&&(T==="annotation-xml"||Te[T]):!!xn[p]:s.namespaceURI===we?c.namespaceURI===tt?p==="math":c.namespaceURI===Se?p==="math"&&Ce[T]:!!wn[p]:s.namespaceURI===tt?c.namespaceURI===Se&&!Ce[T]||c.namespaceURI===we&&!Te[T]?!1:!wn[p]&&(pi[p]||!xn[p]):!!(Wt==="application/xhtml+xml"&&nr[s.namespaceURI]):!1},Y=function(s){se(t.removed,{element:s});try{pe(s).removeChild(s)}catch{At(s)}},bt=function(s,c){try{se(t.removed,{attribute:c.getAttributeNode(s),from:c})}catch{se(t.removed,{attribute:null,from:c})}if(c.removeAttribute(s),s==="is")if(kt||ve)try{Y(c)}catch{}else try{c.setAttribute(s,"")}catch{}},Sn=function(s){let c=null,p=null;if(Je)s=""+s;else{let O=Zr(s,/^[\r\n\t ]+/);p=O&&O[0]}Wt==="application/xhtml+xml"&&Rt===tt&&(s=''+s+"");let T=N?N.createHTML(s):s;if(Rt===tt)try{c=new k().parseFromString(T,Wt)}catch{}if(!c||!c.documentElement){c=Xe.createDocument(Rt,"template",null);try{c.documentElement.innerHTML=rr?Ht:T}catch{}}let L=c.body||c.documentElement;return s&&p&&L.insertBefore(e.createTextNode(p),L.childNodes[0]||null),Rt===tt?si.call(c,gt?"html":"body")[0]:gt?c.documentElement:L},Tn=function(s){return oi.call(s.ownerDocument||s,s,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},ir=function(s){return s instanceof x&&(typeof s.nodeName!="string"||typeof s.textContent!="string"||typeof s.removeChild!="function"||!(s.attributes instanceof d)||typeof s.removeAttribute!="function"||typeof s.setAttribute!="function"||typeof s.namespaceURI!="string"||typeof s.insertBefore!="function"||typeof s.hasChildNodes!="function")},sr=function(s){return typeof l=="function"&&s instanceof l};function ot(m,s,c){ie(m,p=>{p.call(t,s,c,Dt)})}let Cn=function(s){let c=null;if(ot(F.beforeSanitizeElements,s,null),ir(s))return Y(s),!0;let p=R(s.nodeName);if(ot(F.uponSanitizeElement,s,{tagName:p,allowedTags:D}),zt&&s.hasChildNodes()&&!sr(s.firstElementChild)&&j(/<[/\w!]/g,s.innerHTML)&&j(/<[/\w!]/g,s.textContent)||zt&&s.namespaceURI===tt&&p==="style"&&sr(s.firstElementChild)||s.nodeType===ce.progressingInstruction||zt&&s.nodeType===ce.comment&&j(/<[/\w]/g,s.data))return Y(s),!0;if(Ut[p]||!(at.tagCheck instanceof Function&&at.tagCheck(p))&&!D[p]){if(!Ut[p]&&_n(p)&&(_.tagNameCheck instanceof RegExp&&j(_.tagNameCheck,p)||_.tagNameCheck instanceof Function&&_.tagNameCheck(p)))return!1;if(Ke&&!K[p]){let T=pe(s)||s.parentNode,L=he(s)||s.childNodes;if(L&&T){let O=L.length;for(let z=O-1;z>=0;--z){let q=W(L[z],!0);q.__removalCount=(s.__removalCount||0)+1,T.insertBefore(q,jt(s))}}}return Y(s),!0}return s instanceof f&&!yi(s)||(p==="noscript"||p==="noembed"||p==="noframes")&&j(/<\/no(script|embed|frames)/i,s.innerHTML)?(Y(s),!0):(mt&&s.nodeType===ce.text&&(c=s.textContent,ie([me,ge,be],T=>{c=Bt(c,T," ")}),s.textContent!==c&&(se(t.removed,{element:s.cloneNode()}),s.textContent=c)),ot(F.afterSanitizeElements,s,null),!1)},En=function(s,c,p){if(ye[c]||pn&&(c==="id"||c==="name")&&(p in e||p in bi))return!1;if(!(Qe&&!ye[c]&&j(li,c))){if(!(fn&&j(ci,c))){if(!(at.attributeCheck instanceof Function&&at.attributeCheck(c,s))){if(!P[c]||ye[c]){if(!(_n(s)&&(_.tagNameCheck instanceof RegExp&&j(_.tagNameCheck,s)||_.tagNameCheck instanceof Function&&_.tagNameCheck(s))&&(_.attributeNameCheck instanceof RegExp&&j(_.attributeNameCheck,c)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(c,s))||c==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&j(_.tagNameCheck,p)||_.tagNameCheck instanceof Function&&_.tagNameCheck(p))))return!1}else if(!er[c]){if(!j(ln,Bt(p,an,""))){if(!((c==="src"||c==="xlink:href"||c==="href")&&s!=="script"&&ls(p,"data:")===0&&gn[s])){if(!(dn&&!j(ui,Bt(p,an,"")))){if(p)return!1}}}}}}}return!0},_n=function(s){return s!=="annotation-xml"&&Zr(s,fi)},An=function(s){ot(F.beforeSanitizeAttributes,s,null);let{attributes:c}=s;if(!c||ir(s))return;let p={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:P,forceKeepAttr:void 0},T=c.length;for(;T--;){let L=c[T],{name:O,namespaceURI:z,value:q}=L,lt=R(O),ar=q,I=O==="value"?ar:cs(ar);if(p.attrName=lt,p.attrValue=I,p.keepAttr=!0,p.forceKeepAttr=void 0,ot(F.uponSanitizeAttribute,s,p),I=p.attrValue,mn&&(lt==="id"||lt==="name")&&(bt(O,s),I=di+I),zt&&j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,I)){bt(O,s);continue}if(lt==="attributename"&&Zr(I,"href")){bt(O,s);continue}if(p.forceKeepAttr)continue;if(!p.keepAttr){bt(O,s);continue}if(!hn&&j(/\/>/i,I)){bt(O,s);continue}mt&&ie([me,ge,be],Rn=>{I=Bt(I,Rn," ")});let On=R(s.nodeName);if(!En(On,lt,I)){bt(O,s);continue}if(N&&typeof M=="object"&&typeof M.getAttributeType=="function"&&!z)switch(M.getAttributeType(On,lt)){case"TrustedHTML":{I=N.createHTML(I);break}case"TrustedScriptURL":{I=N.createScriptURL(I);break}}if(I!==ar)try{z?s.setAttributeNS(z,O,I):s.setAttribute(O,I),ir(s)?Y(s):Wo(t.removed)}catch{bt(O,s)}}ot(F.afterSanitizeAttributes,s,null)},kn=function(s){let c=null,p=Tn(s);for(ot(F.beforeSanitizeShadowDOM,s,null);c=p.nextNode();)ot(F.uponSanitizeShadowNode,c,null),Cn(c),An(c),c.content instanceof i&&kn(c.content);ot(F.afterSanitizeShadowDOM,s,null)};return t.sanitize=function(m){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=null,p=null,T=null,L=null;if(rr=!m,rr&&(m=""),typeof m!="string"&&!sr(m))if(typeof m.toString=="function"){if(m=m.toString(),typeof m!="string")throw ae("dirty is not a string, aborting")}else throw ae("toString is not a function");if(!t.isSupported)return m;if(Ze||or(s),t.removed=[],typeof m=="string"&&(Vt=!1),Vt){if(m.nodeName){let q=R(m.nodeName);if(!D[q]||Ut[q])throw ae("root node is forbidden and cannot be sanitized in-place")}}else if(m instanceof l)c=Sn(""),p=c.ownerDocument.importNode(m,!0),p.nodeType===ce.element&&p.nodeName==="BODY"||p.nodeName==="HTML"?c=p:c.appendChild(p);else{if(!kt&&!mt&&!gt&&m.indexOf("<")===-1)return N&&xe?N.createHTML(m):m;if(c=Sn(m),!c)return kt?null:xe?Ht:""}c&&Je&&Y(c.firstChild);let O=Tn(Vt?m:c);for(;T=O.nextNode();)Cn(T),An(T),T.content instanceof i&&kn(T.content);if(Vt)return m;if(kt){if(mt){c.normalize();let q=c.innerHTML;ie([me,ge,be],lt=>{q=Bt(q,lt," ")}),c.innerHTML=q}if(ve)for(L=ii.call(c.ownerDocument);c.firstChild;)L.appendChild(c.firstChild);else L=c;return(P.shadowroot||P.shadowrootmode)&&(L=ai.call(n,L,!0)),L}let z=gt?c.outerHTML:c.innerHTML;return gt&&D["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&j(ti,c.ownerDocument.doctype.name)&&(z=" `+z),mt&&ie([me,ge,be],q=>{z=Bt(z,q," ")}),N&&xe?N.createHTML(z):z},t.setConfig=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};or(m),Ze=!0},t.clearConfig=function(){Dt=null,Ze=!1},t.isValidAttribute=function(m,s,c){Dt||or({});let p=R(m),T=R(s);return En(p,T,c)},t.addHook=function(m,s){typeof s=="function"&&se(F[m],s)},t.removeHook=function(m,s){if(s!==void 0){let c=ss(F[m],s);return c===-1?void 0:as(F[m],c,1)[0]}return Wo(F[m])},t.removeHooks=function(m){F[m]=[]},t.removeAllHooks=function(){F=Zo()},t}var fe=ei();var de=document.getElementById("solutionsContainer"),on=acquireVsCodeApi(),sn=0,ri=!1;So().register(Xr());window.addEventListener("DOMContentLoaded",()=>{on.postMessage({command:"webviewReady"}),ks()});window.addEventListener("message",r=>{let t=r.data;switch(t.command){case"solutionsUpdated":Cs(t);break;case"navigatePreviousSolution":Es();break;case"navigateNextSolution":_s();break}});function Cs(r){As(r),de&&(de.innerHTML=r.solutions.map((t,e)=>{let n=t.citation?`

${fe.sanitize(t.citation.message)} Inspect source code

`:"",o=fe.sanitize(t.htmlSnippet);return`

Suggestion ${e+1}

${o}
${fe.sanitize(n)} Accept suggestion ${e+1}`}).join(""))}function Es(){let r=document.querySelectorAll(".snippetContainer pre"),t=sn-1;r[t]?.focus()}function _s(){let r=document.querySelectorAll(".snippetContainer pre"),t=(sn??-1)+1;r[t]?r[t].focus():r[0]&&r[0].focus()}function As(r){let t=document.getElementById("progress-bar"),e=document.getElementById("loadingContainer");if(!(!t||!e))if(r.percentage>=100)e.innerHTML=`${r.solutions.length} Suggestions`;else{let n=e.querySelector("label");n.textContent!=="Loading suggestions:\xA0"&&(n.textContent="Loading suggestions:\xA0"),t.value=r.percentage}}function ks(){ri||de===null||(de.addEventListener("focusin",r=>{let t=r.target,e=ni(t);e!==void 0&&Os(e)}),de.addEventListener("click",r=>{let e=r.target?.closest("vscode-button[data-solution-index]");if(!(e instanceof HTMLElement))return;let n=ni(e);n!==void 0&&Rs(n)}),ri=!0)}function ni(r){let t=r?.closest("[data-solution-index]");if(!(t instanceof HTMLElement))return;let e=t.getAttribute("data-solution-index");if(e===null)return;let n=Number.parseInt(e,10);return Number.isNaN(n)?void 0:n}function Os(r){sn=r,on.postMessage({command:"focusSolution",solutionIndex:r})}function Rs(r){on.postMessage({command:"acceptSolution",solutionIndex:r})}})(); /*! Bundled license information: tslib/tslib.es6.js: (*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** *) dompurify/dist/purify.es.mjs: (*! @license DOMPurify 3.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.0/LICENSE *) */