Edit File by line
/home/zeestwma/.vscode-.../extensio.../github.c.../dist
File: comparisonPanelWebview.js
"use strict";(()=>{var Wr=Object.defineProperty;var i=(r,t)=>Wr(r,"name",{value:t,configurable:!0});var _=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();_.trustedTypes===void 0&&(_.trustedTypes={createPolicy:i((r,t)=>t,"createPolicy")});var De={configurable:!1,enumerable:!1,writable:!1};_.FAST===void 0&&Reflect.defineProperty(_,"FAST",Object.assign({value:Object.create(null)},De));var V=_.FAST;if(V.getById===void 0){let r=Object.create(null);Reflect.defineProperty(V,"getById",Object.assign({value(t,e){let n=r[t];return n===void 0&&(n=e?r[t]=e():null),n}},De))}var F=Object.freeze([]);function yt(){let r=new WeakMap;return function(t){let e=r.get(t);if(e===void 0){let n=Reflect.getPrototypeOf(t);for(;e===void 0&&n!==null;)e=r.get(n),n=Reflect.getPrototypeOf(n);e=e===void 0?[]:e.slice(0),r.set(t,e)}return e}}i(yt,"createMetadataLocator");var Vt=_.FAST.getById(1,()=>{let r=[],t=[];function e(){if(t.length)throw t.shift()}i(e,"throwFirstError");function n(c){try{c.call()}catch(a){t.push(a),setTimeout(e,0)}}i(n,"tryRunTask");function o(){let a=0;for(;a<r.length;)if(n(r[a]),a++,a>1024){for(let u=0,l=r.length-a;u<l;u++)r[u]=r[u+a];r.length-=a,a=0}r.length=0}i(o,"process");function s(c){r.length<1&&_.requestAnimationFrame(o),r.push(c)}return i(s,"enqueue"),Object.freeze({enqueue:s,process:o})}),Ae=_.trustedTypes.createPolicy("fast-html",{createHTML:i(r=>r,"createHTML")}),Ht=Ae,nt=`fast-${Math.random().toString(36).substring(2,8)}`,qt=`${nt}{`,vt=`}${nt}`,f=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(r){if(Ht!==Ae)throw new Error("The HTML policy can only be set once.");Ht=r},createHTML(r){return Ht.createHTML(r)},isMarker(r){return r&&r.nodeType===8&&r.data.startsWith(nt)},extractDirectiveIndexFromMarker(r){return parseInt(r.data.replace(`${nt}:`,""))},createInterpolationPlaceholder(r){return`${qt}${r}${vt}`},createCustomAttributePlaceholder(r,t){return`${r}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(r){return`<!--${nt}:${r}-->`},queueUpdate:Vt.enqueue,processUpdates:Vt.process,nextUpdate(){return new Promise(Vt.enqueue)},setAttribute(r,t,e){e==null?r.removeAttribute(t):r.setAttribute(t,e)},setBooleanAttribute(r,t,e){e?r.setAttribute(t,""):r.removeAttribute(t)},removeChildNodes(r){for(let t=r.firstChild;t!==null;t=r.firstChild)r.removeChild(t)},createTemplateWalker(r){return document.createTreeWalker(r,133,null,!1)}});var X=class{static{i(this,"SubscriberSet")}constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=e}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){let e=this.spillover;if(e===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else e.indexOf(t)===-1&&e.push(t)}unsubscribe(t){let e=this.spillover;if(e===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{let n=e.indexOf(t);n!==-1&&e.splice(n,1)}}notify(t){let e=this.spillover,n=this.source;if(e===void 0){let o=this.sub1,s=this.sub2;o!==void 0&&o.handleChange(n,t),s!==void 0&&s.handleChange(n,t)}else for(let o=0,s=e.length;o<s;++o)e[o].handleChange(n,t)}},Y=class{static{i(this,"PropertyChangeNotifier")}constructor(t){this.subscribers={},this.sourceSubscribers=null,this.source=t}notify(t){var e;let n=this.subscribers[t];n!==void 0&&n.notify(t),(e=this.sourceSubscribers)===null||e===void 0||e.notify(t)}subscribe(t,e){var n;if(e){let o=this.subscribers[e];o===void 0&&(this.subscribers[e]=o=new X(this.source)),o.subscribe(t)}else this.sourceSubscribers=(n=this.sourceSubscribers)!==null&&n!==void 0?n:new X(this.source),this.sourceSubscribers.subscribe(t)}unsubscribe(t,e){var n;if(e){let o=this.subscribers[e];o!==void 0&&o.unsubscribe(t)}else(n=this.sourceSubscribers)===null||n===void 0||n.unsubscribe(t)}};var y=V.getById(2,()=>{let r=/(:|&&|\|\||if)/,t=new WeakMap,e=f.queueUpdate,n,o=i(l=>{throw new Error("Must call enableArrayObservation before observing arrays.")},"createArrayObserver");function s(l){let d=l.$fastController||t.get(l);return d===void 0&&(Array.isArray(l)?d=o(l):t.set(l,d=new Y(l))),d}i(s,"getNotifier");let c=yt();class a{static{i(this,"DefaultObservableAccessor")}constructor(d){this.name=d,this.field=`_${d}`,this.callback=`${d}Changed`}getValue(d){return n!==void 0&&n.watch(d,this.name),d[this.field]}setValue(d,g){let w=this.field,E=d[w];if(E!==g){d[w]=g;let S=d[this.callback];typeof S=="function"&&S.call(d,E,g),s(d).notify(this.name)}}}class u extends X{static{i(this,"BindingObserverImplementation")}constructor(d,g,w=!1){super(d,g),this.binding=d,this.isVolatileBinding=w,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(d,g){this.needsRefresh&&this.last!==null&&this.disconnect();let w=n;n=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let E=this.binding(d,g);return n=w,E}disconnect(){if(this.last!==null){let d=this.first;for(;d!==void 0;)d.notifier.unsubscribe(this,d.propertyName),d=d.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(d,g){let w=this.last,E=s(d),S=w===null?this.first:{};if(S.propertySource=d,S.propertyName=g,S.notifier=E,E.subscribe(this,g),w!==null){if(!this.needsRefresh){let T;n=void 0,T=w.propertySource[w.propertyName],n=this,d===T&&(this.needsRefresh=!0)}w.next=S}this.last=S}handleChange(){this.needsQueue&&(this.needsQueue=!1,e(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let d=this.first;return{next:i(()=>{let g=d;return g===void 0?{value:void 0,done:!0}:(d=d.next,{value:g,done:!1})},"next"),[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(l){o=l},getNotifier:s,track(l,d){n!==void 0&&n.watch(l,d)},trackVolatile(){n!==void 0&&(n.needsRefresh=!0)},notify(l,d){s(l).notify(d)},defineProperty(l,d){typeof d=="string"&&(d=new a(d)),c(l).push(d),Reflect.defineProperty(l,d.name,{enumerable:!0,get:i(function(){return d.getValue(this)},"get"),set:i(function(g){d.setValue(this,g)},"set")})},getAccessors:c,binding(l,d,g=this.isVolatileBinding(l)){return new u(l,d,g)},isVolatileBinding(l){return r.test(l.toString())}})});function $(r,t){y.defineProperty(r,t)}i($,"observable");var _e=V.getById(3,()=>{let r=null;return{get(){return r},set(t){r=t}}}),M=class{static{i(this,"ExecutionContext")}constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return _e.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){_e.set(t)}};y.defineProperty(M.prototype,"index");y.defineProperty(M.prototype,"length");var I=Object.seal(new M);var Z=class{static{i(this,"HTMLDirective")}constructor(){this.targetIndex=0}},K=class extends Z{static{i(this,"TargetedHTMLDirective")}constructor(){super(...arguments),this.createPlaceholder=f.createInterpolationPlaceholder}},tt=class extends Z{static{i(this,"AttachedBehaviorHTMLDirective")}constructor(t,e,n){super(),this.name=t,this.behavior=e,this.options=n}createPlaceholder(t){return f.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}};function Gr(r,t){this.source=r,this.context=t,this.bindingObserver===null&&(this.bindingObserver=y.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(r,t))}i(Gr,"normalBind");function Qr(r,t){this.source=r,this.context=t,this.target.addEventListener(this.targetName,this)}i(Qr,"triggerBind");function Jr(){this.bindingObserver.disconnect(),this.source=null,this.context=null}i(Jr,"normalUnbind");function Xr(){this.bindingObserver.disconnect(),this.source=null,this.context=null;let r=this.target.$fastView;r!==void 0&&r.isComposed&&(r.unbind(),r.needsBindOnly=!0)}i(Xr,"contentUnbind");function Yr(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}i(Yr,"triggerUnbind");function Zr(r){f.setAttribute(this.target,this.targetName,r)}i(Zr,"updateAttributeTarget");function Kr(r){f.setBooleanAttribute(this.target,this.targetName,r)}i(Kr,"updateBooleanAttributeTarget");function tn(r){if(r==null&&(r=""),r.create){this.target.textContent="";let t=this.target.$fastView;t===void 0?t=r.create():this.target.$fastTemplate!==r&&(t.isComposed&&(t.remove(),t.unbind()),t=r.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=r)}else{let t=this.target.$fastView;t!==void 0&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=r}}i(tn,"updateContentTarget");function en(r){this.target[this.targetName]=r}i(en,"updatePropertyTarget");function rn(r){let t=this.classVersions||Object.create(null),e=this.target,n=this.version||0;if(r!=null&&r.length){let o=r.split(/\s+/);for(let s=0,c=o.length;s<c;++s){let a=o[s];a!==""&&(t[a]=n,e.classList.add(a))}}if(this.classVersions=t,this.version=n+1,n!==0){n-=1;for(let o in t)t[o]===n&&e.classList.remove(o)}}i(rn,"updateClassTarget");var H=class extends K{static{i(this,"HTMLBindingDirective")}constructor(t){super(),this.binding=t,this.bind=Gr,this.unbind=Jr,this.updateTarget=Zr,this.isBindingVolatile=y.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(t){if(this.originalTargetName=t,t!==void 0)switch(t[0]){case":":if(this.cleanedTargetName=t.substr(1),this.updateTarget=en,this.cleanedTargetName==="innerHTML"){let e=this.binding;this.binding=(n,o)=>f.createHTML(e(n,o))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=Kr;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=Qr,this.unbind=Yr;break;default:this.cleanedTargetName=t,t==="class"&&(this.updateTarget=rn);break}}targetAtContent(){this.updateTarget=tn,this.unbind=Xr}createBehavior(t){return new zt(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}},zt=class{static{i(this,"BindingBehavior")}constructor(t,e,n,o,s,c,a){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=e,this.isBindingVolatile=n,this.bind=o,this.unbind=s,this.updateTarget=c,this.targetName=a}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){M.setEvent(t);let e=this.binding(this.source,this.context);M.setEvent(null),e!==!0&&t.preventDefault()}};var Ut=null,Wt=class r{static{i(this,"CompilationContext")}addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){Ut=this}static borrow(t){let e=Ut||new r;return e.directives=t,e.reset(),Ut=null,e}};function nn(r){if(r.length===1)return r[0];let t,e=r.length,n=r.map(c=>typeof c=="string"?()=>c:(t=c.targetName||t,c.binding)),o=i((c,a)=>{let u="";for(let l=0;l<e;++l)u+=n[l](c,a);return u},"binding"),s=new H(o);return s.targetName=t,s}i(nn,"createAggregateBinding");var on=vt.length;function Fe(r,t){let e=t.split(qt);if(e.length===1)return null;let n=[];for(let o=0,s=e.length;o<s;++o){let c=e[o],a=c.indexOf(vt),u;if(a===-1)u=c;else{let l=parseInt(c.substring(0,a));n.push(r.directives[l]),u=c.substring(a+on)}u!==""&&n.push(u)}return n}i(Fe,"parseContent");function Be(r,t,e=!1){let n=t.attributes;for(let o=0,s=n.length;o<s;++o){let c=n[o],a=c.value,u=Fe(r,a),l=null;u===null?e&&(l=new H(()=>a),l.targetName=c.name):l=nn(u),l!==null&&(t.removeAttributeNode(c),o--,s--,r.addFactory(l))}}i(Be,"compileAttributes");function sn(r,t,e){let n=Fe(r,t.textContent);if(n!==null){let o=t;for(let s=0,c=n.length;s<c;++s){let a=n[s],u=s===0?t:o.parentNode.insertBefore(document.createTextNode(""),o.nextSibling);typeof a=="string"?u.textContent=a:(u.textContent=" ",r.captureContentBinding(a)),o=u,r.targetIndex++,u!==t&&e.nextNode()}r.targetIndex--}}i(sn,"compileContent");function Me(r,t){let e=r.content;document.adoptNode(e);let n=Wt.borrow(t);Be(n,r,!0);let o=n.behaviorFactories;n.reset();let s=f.createTemplateWalker(e),c;for(;c=s.nextNode();)switch(n.targetIndex++,c.nodeType){case 1:Be(n,c);break;case 3:sn(n,c,s);break;case 8:f.isMarker(c)&&n.addFactory(t[f.extractDirectiveIndexFromMarker(c)])}let a=0;(f.isMarker(e.firstChild)||e.childNodes.length===1&&t.length)&&(e.insertBefore(document.createComment(""),e.firstChild),a=-1);let u=n.behaviorFactories;return n.release(),{fragment:e,viewBehaviorFactories:u,hostBehaviorFactories:o,targetOffset:a}}i(Me,"compileTemplate");var Gt=document.createRange(),xt=class{static{i(this,"HTMLView")}constructor(t,e){this.fragment=t,this.behaviors=e,this.source=null,this.context=null,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{let e=this.lastChild;if(t.previousSibling===e)return;let n=t.parentNode,o=this.firstChild,s;for(;o!==e;)s=o.nextSibling,n.insertBefore(o,t),o=s;n.insertBefore(e,t)}}remove(){let t=this.fragment,e=this.lastChild,n=this.firstChild,o;for(;n!==e;)o=n.nextSibling,t.appendChild(n),n=o;t.appendChild(e)}dispose(){let t=this.firstChild.parentNode,e=this.lastChild,n=this.firstChild,o;for(;n!==e;)o=n.nextSibling,t.removeChild(n),n=o;t.removeChild(e);let s=this.behaviors,c=this.source;for(let a=0,u=s.length;a<u;++a)s[a].unbind(c)}bind(t,e){let n=this.behaviors;if(this.source!==t)if(this.source!==null){let o=this.source;this.source=t,this.context=e;for(let s=0,c=n.length;s<c;++s){let a=n[s];a.unbind(o),a.bind(t,e)}}else{this.source=t,this.context=e;for(let o=0,s=n.length;o<s;++o)n[o].bind(t,e)}}unbind(){if(this.source===null)return;let t=this.behaviors,e=this.source;for(let n=0,o=t.length;n<o;++n)t[n].unbind(e);this.source=null}static disposeContiguousBatch(t){if(t.length!==0){Gt.setStartBefore(t[0].firstChild),Gt.setEndAfter(t[t.length-1].lastChild),Gt.deleteContents();for(let e=0,n=t.length;e<n;++e){let o=t[e],s=o.behaviors,c=o.source;for(let a=0,u=s.length;a<u;++a)s[a].unbind(c)}}}};var wt=class{static{i(this,"ViewTemplate")}constructor(t,e){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=t,this.directives=e}create(t){if(this.fragment===null){let l,d=this.html;if(typeof d=="string"){l=document.createElement("template"),l.innerHTML=f.createHTML(d);let w=l.content.firstElementChild;w!==null&&w.tagName==="TEMPLATE"&&(l=w)}else l=d;let g=Me(l,this.directives);this.fragment=g.fragment,this.viewBehaviorFactories=g.viewBehaviorFactories,this.hostBehaviorFactories=g.hostBehaviorFactories,this.targetOffset=g.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}let e=this.fragment.cloneNode(!0),n=this.viewBehaviorFactories,o=new Array(this.behaviorCount),s=f.createTemplateWalker(e),c=0,a=this.targetOffset,u=s.nextNode();for(let l=n.length;c<l;++c){let d=n[c],g=d.targetIndex;for(;u!==null;)if(a===g){o[c]=d.createBehavior(u);break}else u=s.nextNode(),a++}if(this.hasHostBehaviors){let l=this.hostBehaviorFactories;for(let d=0,g=l.length;d<g;++d,++c)o[c]=l[d].createBehavior(t)}return new xt(e,o)}render(t,e,n){typeof e=="string"&&(e=document.getElementById(e)),n===void 0&&(n=e);let o=this.create(n);return o.bind(t,I),o.appendTo(e),o}},an=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function q(r,...t){let e=[],n="";for(let o=0,s=r.length-1;o<s;++o){let c=r[o],a=t[o];if(n+=c,a instanceof wt){let u=a;a=i(()=>u,"value")}if(typeof a=="function"&&(a=new H(a)),a instanceof K){let u=an.exec(c);u!==null&&(a.targetName=u[2])}a instanceof Z?(n+=a.createPlaceholder(e.length),e.push(a)):n+=a}return n+=r[r.length-1],new wt(n,e)}i(q,"html");var x=class{static{i(this,"ElementStyles")}constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}};x.create=(()=>{if(f.supportsAdoptedStyleSheets){let r=new Map;return t=>new Qt(t,r)}return r=>new Jt(r)})();function Xt(r){return r.map(t=>t instanceof x?Xt(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}i(Xt,"reduceStyles");function Ie(r){return r.map(t=>t instanceof x?t.behaviors:null).reduce((t,e)=>e===null?t:(t===null&&(t=[]),t.concat(e)),null)}i(Ie,"reduceBehaviors");var St=Symbol("prependToAdoptedStyleSheets");function Le(r){let t=[],e=[];return r.forEach(n=>(n[St]?t:e).push(n)),{prepend:t,append:e}}i(Le,"separateSheetsToPrepend");var je=i((r,t)=>{let{prepend:e,append:n}=Le(t);r.adoptedStyleSheets=[...e,...r.adoptedStyleSheets,...n]},"addAdoptedStyleSheets"),Ne=i((r,t)=>{r.adoptedStyleSheets=r.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)},"removeAdoptedStyleSheets");if(f.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),je=i((r,t)=>{let{prepend:e,append:n}=Le(t);r.adoptedStyleSheets.splice(0,0,...e),r.adoptedStyleSheets.push(...n)},"addAdoptedStyleSheets"),Ne=i((r,t)=>{for(let e of t){let n=r.adoptedStyleSheets.indexOf(e);n!==-1&&r.adoptedStyleSheets.splice(n,1)}},"removeAdoptedStyleSheets")}catch{}var Qt=class extends x{static{i(this,"AdoptedStyleSheetsStyles")}constructor(t,e){super(),this.styles=t,this.styleSheetCache=e,this._styleSheets=void 0,this.behaviors=Ie(t)}get styleSheets(){if(this._styleSheets===void 0){let t=this.styles,e=this.styleSheetCache;this._styleSheets=Xt(t).map(n=>{if(n instanceof CSSStyleSheet)return n;let o=e.get(n);return o===void 0&&(o=new CSSStyleSheet,o.replaceSync(n),e.set(n,o)),o})}return this._styleSheets}addStylesTo(t){je(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){Ne(t,this.styleSheets),super.removeStylesFrom(t)}},cn=0;function ln(){return`fast-style-class-${++cn}`}i(ln,"getNextStyleClass");var Jt=class extends x{static{i(this,"StyleElementStyles")}constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=Ie(t),this.styleSheets=Xt(t),this.styleClass=ln()}addStylesTo(t){let e=this.styleSheets,n=this.styleClass;t=this.normalizeTarget(t);for(let o=0;o<e.length;o++){let s=document.createElement("style");s.innerHTML=e[o],s.className=n,t.append(s)}super.addStylesTo(t)}removeStylesFrom(t){t=this.normalizeTarget(t);let e=t.querySelectorAll(`.${this.styleClass}`);for(let n=0,o=e.length;n<o;++n)t.removeChild(e[n]);super.removeStylesFrom(t)}isAttachedTo(t){return super.isAttachedTo(this.normalizeTarget(t))}normalizeTarget(t){return t===document?document.body:t}};var ot=Object.freeze({locate:yt()}),Ve={toView(r){return r?"true":"false"},fromView(r){return!(r==null||r==="false"||r===!1||r===0)}};var kt=class r{static{i(this,"AttributeDefinition")}constructor(t,e,n=e.toLowerCase(),o="reflect",s){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=n,this.mode=o,this.converter=s,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,o==="boolean"&&s===void 0&&(this.converter=Ve)}setValue(t,e){let n=t[this.fieldName],o=this.converter;o!==void 0&&(e=o.fromView(e)),n!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](n,e),t.$fastController.notify(this.name))}getValue(t){return y.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){let e=this.mode,n=this.guards;n.has(t)||e==="fromView"||f.queueUpdate(()=>{n.add(t);let o=t[this.fieldName];switch(e){case"reflect":let s=this.converter;f.setAttribute(t,this.attribute,s!==void 0?s.toView(o):o);break;case"boolean":f.setBooleanAttribute(t,this.attribute,o);break}n.delete(t)})}static collect(t,...e){let n=[];e.push(ot.locate(t));for(let o=0,s=e.length;o<s;++o){let c=e[o];if(c!==void 0)for(let a=0,u=c.length;a<u;++a){let l=c[a];typeof l=="string"?n.push(new r(t,l)):n.push(new r(t,l.property,l.attribute,l.mode,l.converter))}}return n}};function p(r,t){let e;function n(o,s){arguments.length>1&&(e.property=s),ot.locate(o.constructor).push(e)}if(i(n,"decorator"),arguments.length>1){e={},n(r,t);return}return e=r===void 0?{}:r,n}i(p,"attr");var He={mode:"open"},qe={},Yt=V.getById(4,()=>{let r=new Map;return Object.freeze({register(t){return r.has(t.type)?!1:(r.set(t.type,t),!0)},getByType(t){return r.get(t)}})}),D=class{static{i(this,"FASTElementDefinition")}constructor(t,e=t.definition){typeof e=="string"&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template;let n=kt.collect(t,e.attributes),o=new Array(n.length),s={},c={};for(let a=0,u=n.length;a<u;++a){let l=n[a];o[a]=l.attribute,s[l.name]=l,c[l.attribute]=l}this.attributes=n,this.observedAttributes=o,this.propertyLookup=s,this.attributeLookup=c,this.shadowOptions=e.shadowOptions===void 0?He:e.shadowOptions===null?void 0:Object.assign(Object.assign({},He),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?qe:Object.assign(Object.assign({},qe),e.elementOptions),this.styles=e.styles===void 0?void 0:Array.isArray(e.styles)?x.create(e.styles):e.styles instanceof x?e.styles:x.create([e.styles])}get isDefined(){return!!Yt.getByType(this.type)}define(t=customElements){let e=this.type;if(Yt.register(this)){let n=this.attributes,o=e.prototype;for(let s=0,c=n.length;s<c;++s)y.defineProperty(o,n[s]);Reflect.defineProperty(e,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return t.get(this.name)||t.define(this.name,e,this.elementOptions),this}};D.forType=Yt.getByType;var ze=new WeakMap,un={bubbles:!0,composed:!0,cancelable:!0};function Zt(r){return r.shadowRoot||ze.get(r)||null}i(Zt,"getShadowRoot");var Ct=class r extends Y{static{i(this,"Controller")}constructor(t,e){super(t),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=t,this.definition=e;let n=e.shadowOptions;if(n!==void 0){let s=t.attachShadow(n);n.mode==="closed"&&ze.set(t,s)}let o=y.getAccessors(t);if(o.length>0){let s=this.boundObservables=Object.create(null);for(let c=0,a=o.length;c<a;++c){let u=o[c].name,l=t[u];l!==void 0&&(delete t[u],s[u]=l)}}}get isConnected(){return y.track(this,"isConnected"),this._isConnected}setIsConnected(t){this._isConnected=t,y.notify(this,"isConnected")}get template(){return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get styles(){return this._styles}set styles(t){this._styles!==t&&(this._styles!==null&&this.removeStyles(this._styles),this._styles=t,!this.needsInitialization&&t!==null&&this.addStyles(t))}addStyles(t){let e=Zt(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.append(t);else if(!t.isAttachedTo(e)){let n=t.behaviors;t.addStylesTo(e),n!==null&&this.addBehaviors(n)}}removeStyles(t){let e=Zt(this.element)||this.element.getRootNode();if(t instanceof HTMLStyleElement)e.removeChild(t);else if(t.isAttachedTo(e)){let n=t.behaviors;t.removeStylesFrom(e),n!==null&&this.removeBehaviors(n)}}addBehaviors(t){let e=this.behaviors||(this.behaviors=new Map),n=t.length,o=[];for(let s=0;s<n;++s){let c=t[s];e.has(c)?e.set(c,e.get(c)+1):(e.set(c,1),o.push(c))}if(this._isConnected){let s=this.element;for(let c=0;c<o.length;++c)o[c].bind(s,I)}}removeBehaviors(t,e=!1){let n=this.behaviors;if(n===null)return;let o=t.length,s=[];for(let c=0;c<o;++c){let a=t[c];if(n.has(a)){let u=n.get(a)-1;u===0||e?n.delete(a)&&s.push(a):n.set(a,u)}}if(this._isConnected){let c=this.element;for(let a=0;a<s.length;++a)s[a].unbind(c)}}onConnectedCallback(){if(this._isConnected)return;let t=this.element;this.needsInitialization?this.finishInitialization():this.view!==null&&this.view.bind(t,I);let e=this.behaviors;if(e!==null)for(let[n]of e)n.bind(t,I);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);let t=this.view;t!==null&&t.unbind();let e=this.behaviors;if(e!==null){let n=this.element;for(let[o]of e)o.unbind(n)}}onAttributeChangedCallback(t,e,n){let o=this.definition.attributeLookup[t];o!==void 0&&o.onAttributeChangedCallback(this.element,n)}emit(t,e,n){return this._isConnected?this.element.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},un),n))):!1}finishInitialization(){let t=this.element,e=this.boundObservables;if(e!==null){let o=Object.keys(e);for(let s=0,c=o.length;s<c;++s){let a=o[s];t[a]=e[a]}this.boundObservables=null}let n=this.definition;this._template===null&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():n.template&&(this._template=n.template||null)),this._template!==null&&this.renderTemplate(this._template),this._styles===null&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():n.styles&&(this._styles=n.styles||null)),this._styles!==null&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(t){let e=this.element,n=Zt(e)||e;this.view!==null?(this.view.dispose(),this.view=null):this.needsInitialization||f.removeChildNodes(n),t&&(this.view=t.render(e,n,e))}static forCustomElement(t){let e=t.$fastController;if(e!==void 0)return e;let n=D.forType(t.constructor);if(n===void 0)throw new Error("Missing FASTElement definition.");return t.$fastController=new r(t,n)}};function Ue(r){return class extends r{constructor(){super(),Ct.forCustomElement(this)}$emit(t,e,n){return this.$fastController.emit(t,e,n)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(t,e,n){this.$fastController.onAttributeChangedCallback(t,e,n)}}}i(Ue,"createFASTElement");var L=Object.assign(Ue(HTMLElement),{from(r){return Ue(r)},define(r,t){return new D(r,t).define().type}});var z=class{static{i(this,"CSSDirective")}createCSS(){return""}createBehavior(){}};function dn(r,t){let e=[],n="",o=[];for(let s=0,c=r.length-1;s<c;++s){n+=r[s];let a=t[s];if(a instanceof z){let u=a.createBehavior();a=a.createCSS(),u&&o.push(u)}a instanceof x||a instanceof CSSStyleSheet?(n.trim()!==""&&(e.push(n),n=""),e.push(a)):n+=a}return n+=r[r.length-1],n.trim()!==""&&e.push(n),{styles:e,behaviors:o}}i(dn,"collectStyles");function U(r,...t){let{styles:e,behaviors:n}=dn(r,t),o=x.create(e);return n.length&&o.withBehaviors(...n),o}i(U,"css");var Kt=class{static{i(this,"RefBehavior")}constructor(t,e){this.target=t,this.propertyName=e}bind(t){t[this.propertyName]=this.target}unbind(){}};function O(r){return new tt("fast-ref",Kt,r)}i(O,"ref");var Pt=class{static{i(this,"NodeObservationBehavior")}constructor(t,e){this.target=t,this.options=e,this.source=null}bind(t){let e=this.options.property;this.shouldUpdate=y.getAccessors(t).some(n=>n.name===e),this.source=t,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(F),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let t=this.getNodes();return this.options.filter!==void 0&&(t=t.filter(this.options.filter)),t}updateTarget(t){this.source[this.options.property]=t}};var te=class extends Pt{static{i(this,"SlottedBehavior")}constructor(t,e){super(t,e)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}};function We(r){return typeof r=="string"&&(r={property:r}),new tt("fast-slotted",te,r)}i(We,"slotted");var Tt=class{static{i(this,"StartEnd")}handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}},Ge=i((r,t)=>q`
[0] Fix | Delete
<span
[1] Fix | Delete
part="end"
[2] Fix | Delete
${O("endContainer")}
[3] Fix | Delete
class=${e=>t.end?"end":void 0}
[4] Fix | Delete
>
[5] Fix | Delete
<slot name="end" ${O("end")} @slotchange="${e=>e.handleEndContentChange()}">
[6] Fix | Delete
${t.end||""}
[7] Fix | Delete
</slot>
[8] Fix | Delete
</span>
[9] Fix | Delete
`,"endSlotTemplate"),Qe=i((r,t)=>q`
[10] Fix | Delete
<span
[11] Fix | Delete
part="start"
[12] Fix | Delete
${O("startContainer")}
[13] Fix | Delete
class="${e=>t.start?"start":void 0}"
[14] Fix | Delete
>
[15] Fix | Delete
<slot
[16] Fix | Delete
name="start"
[17] Fix | Delete
${O("start")}
[18] Fix | Delete
@slotchange="${e=>e.handleStartContentChange()}"
[19] Fix | Delete
>
[20] Fix | Delete
${t.start||""}
[21] Fix | Delete
</slot>
[22] Fix | Delete
</span>
[23] Fix | Delete
`,"startSlotTemplate"),_i=q`
[24] Fix | Delete
<span part="end" ${O("endContainer")}>
[25] Fix | Delete
<slot
[26] Fix | Delete
name="end"
[27] Fix | Delete
${O("end")}
[28] Fix | Delete
@slotchange="${r=>r.handleEndContentChange()}"
[29] Fix | Delete
></slot>
[30] Fix | Delete
</span>
[31] Fix | Delete
`,Bi=q`
[32] Fix | Delete
<span part="start" ${O("startContainer")}>
[33] Fix | Delete
<slot
[34] Fix | Delete
name="start"
[35] Fix | Delete
${O("start")}
[36] Fix | Delete
@slotchange="${r=>r.handleStartContentChange()}"
[37] Fix | Delete
></slot>
[38] Fix | Delete
</span>
[39] Fix | Delete
`;function m(r,t,e,n){var o=arguments.length,s=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,e,n);else for(var a=r.length-1;a>=0;a--)(c=r[a])&&(s=(o<3?c(s):o>3?c(t,e,s):c(t,e))||s);return o>3&&s&&Object.defineProperty(t,e,s),s}i(m,"__decorate");var ee=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=ee.get(e);n===void 0&&ee.set(e,n=new Map),n.set(r,t)},Reflect.getOwnMetadata=function(r,t){let e=ee.get(t);if(e!==void 0)return e.get(r)});var ie=class{static{i(this,"ResolverBuilder")}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,ir(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 k(o,t,e))}};function it(r){let t=r.slice(),e=Object.keys(r),n=e.length,o;for(let s=0;s<n;++s)o=e[s],sr(o)||(t[o]=r[o]);return t}i(it,"cloneArrayWithPossibleProps");var hn=Object.freeze({none(r){throw Error(`${r.toString()} not registered, did you forget to add @singleton()?`)},singleton(r){return new k(r,1,r)},transient(r){return new k(r,2,r)}}),re=Object.freeze({default:Object.freeze({parentLocator:i(()=>null,"parentLocator"),responsibleForOwnerRequests:!1,defaultResolver:hn.singleton})}),Je=new Map;function Xe(r){return t=>Reflect.getOwnMetadata(r,t)}i(Xe,"getParamTypes");var Ye=null,b=Object.freeze({createContainer(r){return new st(null,Object.assign({},re.default,r))},findResponsibleContainer(r){let t=r.$$container$$;return t&&t.responsibleForOwnerRequests?t:b.findParentContainer(r)},findParentContainer(r){let t=new CustomEvent(or,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return r.dispatchEvent(t),t.detail.container||b.getOrCreateDOMContainer()},getOrCreateDOMContainer(r,t){return r?r.$$container$$||new st(r,Object.assign({},re.default,t,{parentLocator:b.findParentContainer})):Ye||(Ye=new st(null,Object.assign({},re.default,t,{parentLocator:i(()=>null,"parentLocator")})))},getDesignParamtypes:Xe("design:paramtypes"),getAnnotationParamtypes:Xe("di:paramtypes"),getOrCreateAnnotationParamTypes(r){let t=this.getAnnotationParamtypes(r);return t===void 0&&Reflect.defineMetadata("di:paramtypes",t=[],r),t},getDependencies(r){let t=Je.get(r);if(t===void 0){let e=r.inject;if(e===void 0){let n=b.getDesignParamtypes(r),o=b.getAnnotationParamtypes(r);if(n===void 0)if(o===void 0){let s=Object.getPrototypeOf(r);typeof s=="function"&&s!==Function.prototype?t=it(b.getDependencies(s)):t=[]}else t=it(o);else if(o===void 0)t=it(n);else{t=it(n);let s=o.length,c;for(let l=0;l<s;++l)c=o[l],c!==void 0&&(t[l]=c);let a=Object.keys(o);s=a.length;let u;for(let l=0;l<s;++l)u=a[l],sr(u)||(t[u]=o[u])}}else t=it(e);Je.set(r,t)}return t},defineProperty(r,t,e,n=!1){let o=`$di_${t}`;Reflect.defineProperty(r,t,{get:i(function(){let s=this[o];if(s===void 0&&(s=(this instanceof HTMLElement?b.findResponsibleContainer(this):b.getOrCreateDOMContainer()).get(e),this[o]=s,n&&this instanceof L)){let a=this.$fastController,u=i(()=>{let d=b.findResponsibleContainer(this).get(e),g=this[o];d!==g&&(this[o]=s,a.notify(t))},"handleChange");a.subscribe({handleChange:u},"isConnected")}return s},"get")})},createInterface(r,t){let e=typeof r=="function"?r:t,n=typeof r=="string"?r:r&&"friendlyName"in r&&r.friendlyName||er,o=typeof r=="string"?!1:r&&"respectConnection"in r&&r.respectConnection||!1,s=i(function(c,a,u){if(c==null||new.target!==void 0)throw new Error(`No registration for interface: '${s.friendlyName}'`);if(a)b.defineProperty(c,a,s,o);else{let l=b.getOrCreateAnnotationParamTypes(c);l[u]=s}},"Interface");return s.$isInterface=!0,s.friendlyName=n??"(anonymous)",e!=null&&(s.register=function(c,a){return e(new ie(c,a??s))}),s.toString=i(function(){return`InterfaceSymbol<${s.friendlyName}>`},"toString"),s},inject(...r){return function(t,e,n){if(typeof n=="number"){let o=b.getOrCreateAnnotationParamTypes(t),s=r[0];s!==void 0&&(o[n]=s)}else if(e)b.defineProperty(t,e,r[0]);else{let o=n?b.getOrCreateAnnotationParamTypes(n.value):b.getOrCreateAnnotationParamTypes(t),s;for(let c=0;c<r.length;++c)s=r[c],s!==void 0&&(o[c]=s)}}},transient(r){return r.register=i(function(e){return W.transient(r,r).register(e)},"register"),r.registerInRequestor=!1,r},singleton(r,t=pn){return r.register=i(function(n){return W.singleton(r,r).register(n)},"register"),r.registerInRequestor=t.scoped,r}}),fn=b.createInterface("Container");function Et(r){return function(t){let e=i(function(n,o,s){b.inject(e)(n,o,s)},"resolver");return e.$isResolver=!0,e.resolve=function(n,o){return r(t,n,o)},e}}i(Et,"createResolver");var Ni=b.inject;var pn={scoped:!1};function mn(r){return function(t,e){e=!!e;let n=i(function(o,s,c){b.inject(n)(o,s,c)},"resolver");return n.$isResolver=!0,n.resolve=function(o,s){return r(t,o,s,e)},n}}i(mn,"createAllResolver");var Vi=mn((r,t,e,n)=>e.getAll(r,n)),Hi=Et((r,t,e)=>()=>e.get(r)),qi=Et((r,t,e)=>{if(e.has(r,!0))return e.get(r)});function ae(r,t,e){b.inject(ae)(r,t,e)}i(ae,"ignore");ae.$isResolver=!0;ae.resolve=()=>{};var zi=Et((r,t,e)=>{let n=nr(r,t),o=new k(r,0,n);return e.registerResolver(r,o),n}),Ui=Et((r,t,e)=>nr(r,t));function nr(r,t){return t.getFactory(r).construct(t)}i(nr,"createNewInstance");var k=class{static{i(this,"ResolverImpl")}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 Ze(r){return this.get(r)}i(Ze,"containerGetKey");function gn(r,t){return t(r)}i(gn,"transformInstance");var se=class{static{i(this,"FactoryImpl")}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(Ze,t)):n=new this.Type(...this.dependencies.map(Ze,t),...e),this.transformers==null?n:this.transformers.reduce(gn,n)}registerTransformer(t){(this.transformers||(this.transformers=[])).push(t)}},bn={$isResolver:!0,resolve(r,t){return t}};function Rt(r){return typeof r.register=="function"}i(Rt,"isRegistry");function yn(r){return Rt(r)&&typeof r.registerInRequestor=="boolean"}i(yn,"isSelfRegistry");function Ke(r){return yn(r)&&r.registerInRequestor}i(Ke,"isRegisterInRequester");function vn(r){return r.prototype!==void 0}i(vn,"isClass");var xn=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"]),or="__DI_LOCATE_PARENT__",ne=new Map,st=class r{static{i(this,"ContainerImpl")}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(fn,bn),t instanceof Node&&t.addEventListener(or,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,s,c,a=this.context;for(let u=0,l=t.length;u<l;++u)if(e=t[u],!!rr(e))if(Rt(e))e.register(this,a);else if(vn(e))W.singleton(e,e).register(this);else for(n=Object.keys(e),s=0,c=n.length;s<c;++s)o=e[n[s]],rr(o)&&(Rt(o)?o.register(this,a):this.register(o));return--this.registerDepth,this}registerResolver(t,e){$t(t);let n=this.resolvers,o=n.get(t);return o==null?n.set(t,e):o instanceof k&&o.strategy===4?o.state.push(e):n.set(t,new k(t,4,[o,e])),e}registerTransformer(t,e){let n=this.getResolver(t);if(n==null)return!1;if(n.getFactory){let o=n.getFactory(this);return o==null?!1:(o.registerTransformer(e),!0)}return!1}getResolver(t,e=!0){if($t(t),t.resolve!==void 0)return t;let n=this,o;for(;n!=null;)if(o=n.resolvers.get(t),o==null){if(n.parent==null){let s=Ke(t)?this:n;return e?this.jitRegister(t,s):null}n=n.parent}else return o;return null}has(t,e=!1){return this.resolvers.has(t)?!0:e&&this.parent!=null?this.parent.has(t,!0):!1}get(t){if($t(t),t.$isResolver)return t.resolve(this,this);let e=this,n;for(;e!=null;)if(n=e.resolvers.get(t),n==null){if(e.parent==null){let o=Ke(t)?this:e;return n=this.jitRegister(t,o),n.resolve(e,this)}e=e.parent}else return n.resolve(e,this);throw new Error(`Unable to resolve key: ${String(t)}`)}getAll(t,e=!1){$t(t);let n=this,o=n,s;if(e){let c=F;for(;o!=null;)s=o.resolvers.get(t),s!=null&&(c=c.concat(tr(s,o,n))),o=o.parent;return c}else for(;o!=null;)if(s=o.resolvers.get(t),s==null){if(o=o.parent,o==null)return F}else return tr(s,o,n);return F}getFactory(t){let e=ne.get(t);if(e===void 0){if(wn(t))throw new Error(`${t.name} is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.`);ne.set(t,e=new se(t,b.getDependencies(t)))}return e}registerFactory(t,e){ne.set(t,e)}createChild(t){return new r(null,Object.assign({},this.config,t,{parentLocator:i(()=>this,"parentLocator")}))}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(xn.has(t.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${t.name}. Did you forget to add @inject(Key)`);if(Rt(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}}}},oe=new WeakMap;function ir(r){return function(t,e,n){if(oe.has(n))return oe.get(n);let o=r(t,e,n);return oe.set(n,o),o}}i(ir,"cacheCallbackResult");var W=Object.freeze({instance(r,t){return new k(r,0,t)},singleton(r,t){return new k(r,1,t)},transient(r,t){return new k(r,2,t)},callback(r,t){return new k(r,3,t)},cachedCallback(r,t){return new k(r,3,ir(t))},aliasTo(r,t){return new k(t,5,r)}});function $t(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?")}i($t,"validateKey");function tr(r,t,e){if(r instanceof k&&r.strategy===4){let n=r.state,o=n.length,s=new Array(o);for(;o--;)s[o]=n[o].resolve(t,e);return s}return[r.resolve(t,e)]}i(tr,"buildAllResponse");var er="(anonymous)";function rr(r){return typeof r=="object"&&r!==null||typeof r=="function"}i(rr,"isObject");var wn=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}}(),Ot={};function sr(r){switch(typeof r){case"number":return r>=0&&(r|0)===r;case"string":{let t=Ot[r];if(t!==void 0)return t;let e=r.length;if(e===0)return Ot[r]=!1;let n=0;for(let o=0;o<e;++o)if(n=r.charCodeAt(o),o===0&&n===48&&e>1||n<48||n>57)return Ot[r]=!1;return Ot[r]=!0}default:return!1}}i(sr,"isArrayIndex");function ar(r){return`${r.toLowerCase()}:presentation`}i(ar,"presentationKeyFromTag");var Dt=new Map,_t=Object.freeze({define(r,t,e){let n=ar(r);Dt.get(n)===void 0?Dt.set(n,t):Dt.set(n,!1),e.register(W.instance(n,t))},forTag(r,t){let e=ar(r),n=Dt.get(e);return n===!1?b.findResponsibleContainer(t).get(e):n||null}}),At=class{static{i(this,"DefaultComponentPresentation")}constructor(t,e){this.template=t||null,this.styles=e===void 0?null:Array.isArray(e)?x.create(e):e instanceof x?e:x.create([e])}applyTo(t){let e=t.$fastController;e.template===null&&(e.template=this.template),e.styles===null&&(e.styles=this.styles)}};var j=class r extends L{static{i(this,"FoundationElement")}constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=_t.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 ce(this===r?class extends r{}:this,t,e)}};m([$],j.prototype,"template",void 0);m([$],j.prototype,"styles",void 0);function at(r,t,e){return typeof r=="function"?r(t,e):r}i(at,"resolveOption");var ce=class{static{i(this,"FoundationElementRegistry")}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,c=`${n.prefix||e.elementPrefix}-${n.baseName}`;e.tryDefineElement({name:c,type:this.type,baseClass:this.elementDefinition.baseClass,callback:i(a=>{let u=new At(at(n.template,a,n),at(n.styles,a,n));a.definePresentation(u);let l=at(n.shadowOptions,a,n);a.shadowRootMode&&(l?o.shadowOptions||(l.mode=a.shadowRootMode):l!==null&&(l={mode:a.shadowRootMode})),a.defineElement({elementOptions:at(n.elementOptions,a,n),shadowOptions:l,attributes:at(n.attributes,a,n)})},"callback")})}};function le(r,...t){let e=ot.locate(r);t.forEach(n=>{Object.getOwnPropertyNames(n.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(r.prototype,s,Object.getOwnPropertyDescriptor(n.prototype,s))}),ot.locate(n).forEach(s=>e.push(s))})}i(le,"applyMixins");function cr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}i(cr,"canUseDOM");function Sn(){let r=document.querySelector('meta[property="csp-nonce"]');return r?r.getAttribute("content"):null}i(Sn,"getNonce");var G;function lr(){if(typeof G=="boolean")return G;if(!cr())return G=!1,G;let r=document.createElement("style"),t=Sn();t!==null&&r.setAttribute("nonce",t),document.head.appendChild(r);try{r.sheet.insertRule("foo:focus-visible {color:inherit}",0),G=!0}catch{G=!1}finally{document.head.removeChild(r)}return G}i(lr,"canUseFocusVisible");var ur;(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"})(ur||(ur={}));var dr="Enter";var v=class{static{i(this,"ARIAGlobalStatesAndProperties")}};m([p({attribute:"aria-atomic"})],v.prototype,"ariaAtomic",void 0);m([p({attribute:"aria-busy"})],v.prototype,"ariaBusy",void 0);m([p({attribute:"aria-controls"})],v.prototype,"ariaControls",void 0);m([p({attribute:"aria-current"})],v.prototype,"ariaCurrent",void 0);m([p({attribute:"aria-describedby"})],v.prototype,"ariaDescribedby",void 0);m([p({attribute:"aria-details"})],v.prototype,"ariaDetails",void 0);m([p({attribute:"aria-disabled"})],v.prototype,"ariaDisabled",void 0);m([p({attribute:"aria-errormessage"})],v.prototype,"ariaErrormessage",void 0);m([p({attribute:"aria-flowto"})],v.prototype,"ariaFlowto",void 0);m([p({attribute:"aria-haspopup"})],v.prototype,"ariaHaspopup",void 0);m([p({attribute:"aria-hidden"})],v.prototype,"ariaHidden",void 0);m([p({attribute:"aria-invalid"})],v.prototype,"ariaInvalid",void 0);m([p({attribute:"aria-keyshortcuts"})],v.prototype,"ariaKeyshortcuts",void 0);m([p({attribute:"aria-label"})],v.prototype,"ariaLabel",void 0);m([p({attribute:"aria-labelledby"})],v.prototype,"ariaLabelledby",void 0);m([p({attribute:"aria-live"})],v.prototype,"ariaLive",void 0);m([p({attribute:"aria-owns"})],v.prototype,"ariaOwns",void 0);m([p({attribute:"aria-relevant"})],v.prototype,"ariaRelevant",void 0);m([p({attribute:"aria-roledescription"})],v.prototype,"ariaRoledescription",void 0);var hr=i((r,t)=>q`
[40] Fix | Delete
<button
[41] Fix | Delete
class="control"
[42] Fix | Delete
part="control"
[43] Fix | Delete
?autofocus="${e=>e.autofocus}"
[44] Fix | Delete
?disabled="${e=>e.disabled}"
[45] Fix | Delete
form="${e=>e.formId}"
[46] Fix | Delete
formaction="${e=>e.formaction}"
[47] Fix | Delete
formenctype="${e=>e.formenctype}"
[48] Fix | Delete
formmethod="${e=>e.formmethod}"
[49] Fix | Delete
formnovalidate="${e=>e.formnovalidate}"
[50] Fix | Delete
formtarget="${e=>e.formtarget}"
[51] Fix | Delete
name="${e=>e.name}"
[52] Fix | Delete
type="${e=>e.type}"
[53] Fix | Delete
value="${e=>e.value}"
[54] Fix | Delete
aria-atomic="${e=>e.ariaAtomic}"
[55] Fix | Delete
aria-busy="${e=>e.ariaBusy}"
[56] Fix | Delete
aria-controls="${e=>e.ariaControls}"
[57] Fix | Delete
aria-current="${e=>e.ariaCurrent}"
[58] Fix | Delete
aria-describedby="${e=>e.ariaDescribedby}"
[59] Fix | Delete
aria-details="${e=>e.ariaDetails}"
[60] Fix | Delete
aria-disabled="${e=>e.ariaDisabled}"
[61] Fix | Delete
aria-errormessage="${e=>e.ariaErrormessage}"
[62] Fix | Delete
aria-expanded="${e=>e.ariaExpanded}"
[63] Fix | Delete
aria-flowto="${e=>e.ariaFlowto}"
[64] Fix | Delete
aria-haspopup="${e=>e.ariaHaspopup}"
[65] Fix | Delete
aria-hidden="${e=>e.ariaHidden}"
[66] Fix | Delete
aria-invalid="${e=>e.ariaInvalid}"
[67] Fix | Delete
aria-keyshortcuts="${e=>e.ariaKeyshortcuts}"
[68] Fix | Delete
aria-label="${e=>e.ariaLabel}"
[69] Fix | Delete
aria-labelledby="${e=>e.ariaLabelledby}"
[70] Fix | Delete
aria-live="${e=>e.ariaLive}"
[71] Fix | Delete
aria-owns="${e=>e.ariaOwns}"
[72] Fix | Delete
aria-pressed="${e=>e.ariaPressed}"
[73] Fix | Delete
aria-relevant="${e=>e.ariaRelevant}"
[74] Fix | Delete
aria-roledescription="${e=>e.ariaRoledescription}"
[75] Fix | Delete
${O("control")}
[76] Fix | Delete
>
[77] Fix | Delete
${Qe(r,t)}
[78] Fix | Delete
<span class="content" part="content">
[79] Fix | Delete
<slot ${We("defaultSlottedContent")}></slot>
[80] Fix | Delete
</span>
[81] Fix | Delete
${Ge(r,t)}
[82] Fix | Delete
</button>
[83] Fix | Delete
`,"buttonTemplate");var fr="form-associated-proxy",pr="ElementInternals",mr=pr in window&&"setFormValue"in window[pr].prototype,gr=new WeakMap;function br(r){let t=class extends r{static{i(this,"C")}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 mr}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 F}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),f.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),f.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!mr)return null;let e=gr.get(this);return e||(e=this.attachInternals(),gr.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",fr),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",fr)),(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 dr:if(this.form instanceof HTMLFormElement){let n=this.form.querySelector("[type=submit]");n?.click()}break}}stopPropagation(e){e.stopPropagation()}};return p({mode:"boolean"})(t.prototype,"disabled"),p({mode:"fromView",attribute:"value"})(t.prototype,"initialValue"),p({attribute:"current-value"})(t.prototype,"currentValue"),p(t.prototype,"name"),p({mode:"boolean"})(t.prototype,"required"),$(t.prototype,"value"),t}i(br,"FormAssociated");var ue=class extends j{static{i(this,"_Button")}},Bt=class extends br(ue){static{i(this,"FormAssociatedButton")}constructor(){super(...arguments),this.proxy=document.createElement("input")}};var P=class extends Bt{static{i(this,"Button")}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)})}};m([p({mode:"boolean"})],P.prototype,"autofocus",void 0);m([p({attribute:"form"})],P.prototype,"formId",void 0);m([p],P.prototype,"formaction",void 0);m([p],P.prototype,"formenctype",void 0);m([p],P.prototype,"formmethod",void 0);m([p({mode:"boolean"})],P.prototype,"formnovalidate",void 0);m([p],P.prototype,"formtarget",void 0);m([p],P.prototype,"type",void 0);m([$],P.prototype,"defaultSlottedContent",void 0);var et=class{static{i(this,"DelegatesARIAButton")}};m([p({attribute:"aria-expanded"})],et.prototype,"ariaExpanded",void 0);m([p({attribute:"aria-pressed"})],et.prototype,"ariaPressed",void 0);le(et,v);le(P,Tt,et);function ct(r){let t=r.parentElement;if(t)return t;{let e=r.getRootNode();if(e.host instanceof HTMLElement)return e.host}return null}i(ct,"composedParent");function yr(r,t){let e=t;for(;e!==null;){if(e===r)return!0;e=ct(e)}return!1}i(yr,"composedContains");var A=document.createElement("div");function kn(r){return r instanceof L}i(kn,"isFastElement");var lt=class{static{i(this,"QueuedStyleSheetTarget")}setProperty(t,e){f.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){f.queueUpdate(()=>this.target.removeProperty(t))}},he=class extends lt{static{i(this,"ConstructableStyleSheetTarget")}constructor(t){super();let e=new CSSStyleSheet;e[St]=!0,this.target=e.cssRules[e.insertRule(":host{}")].style,t.$fastController.addStyles(x.create([e]))}},fe=class extends lt{static{i(this,"DocumentStyleSheetTarget")}constructor(){super();let t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,t]}},pe=class extends lt{static{i(this,"HeadStyleElementStyleSheetTarget")}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}}},Ft=class{static{i(this,"StyleElementStyleSheetTarget")}constructor(t){this.store=new Map,this.target=null;let e=t.$fastController;this.style=document.createElement("style"),e.addStyles(this.style),y.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),f.queueUpdate(()=>{this.target!==null&&this.target.setProperty(t,e)})}removeProperty(t){this.store.delete(t),f.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}};m([$],Ft.prototype,"target",void 0);var me=class{static{i(this,"ElementStyleSheetTarget")}constructor(t){this.target=t.style}setProperty(t,e){f.queueUpdate(()=>this.target.setProperty(t,e))}removeProperty(t){f.queueUpdate(()=>this.target.removeProperty(t))}},N=class r{static{i(this,"RootStyleSheetTarget")}setProperty(t,e){r.properties[t]=e;for(let n of r.roots.values())Q.getOrCreate(r.normalizeRoot(n)).setProperty(t,e)}removeProperty(t){delete r.properties[t];for(let e of r.roots.values())Q.getOrCreate(r.normalizeRoot(e)).removeProperty(t)}static registerRoot(t){let{roots:e}=r;if(!e.has(t)){e.add(t);let n=Q.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=Q.getOrCreate(r.normalizeRoot(t));for(let o in r.properties)n.removeProperty(o)}}static normalizeRoot(t){return t===A?document:t}};N.roots=new Set;N.properties={};var de=new WeakMap,Cn=f.supportsAdoptedStyleSheets?he:Ft,Q=Object.freeze({getOrCreate(r){if(de.has(r))return de.get(r);let t;return r===A?t=new N:r instanceof Document?t=f.supportsAdoptedStyleSheets?new fe:new pe:kn(r)?t=new Cn(r):t=new me(r),de.set(r,t),t}});var R=class r extends z{static{i(this,"DesignTokenImpl")}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=C.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)),C.getOrCreate(t).set(this,e),this}deleteValueFor(t){return this._appliedTo.delete(t),C.existsFor(t)&&C.getOrCreate(t).delete(this),this}withDefault(t){return this.setValueFor(A,t),this}subscribe(t,e){let n=this.getOrCreateSubscriberSet(e);e&&!C.existsFor(e)&&C.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)}};R.uniqueId=(()=>{let r=0;return()=>(r++,r.toString(16))})();R.tokensById=new Map;var ge=class{static{i(this,"CustomPropertyReflector")}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){Q.getOrCreate(e).setProperty(t.cssCustomProperty,this.resolveCSSValue(C.getOrCreate(e).get(t)))}remove(t,e){Q.getOrCreate(e).removeProperty(t.cssCustomProperty)}resolveCSSValue(t){return t&&typeof t.createCSS=="function"?t.createCSS():t}},be=class{static{i(this,"DesignTokenBindingObserver")}constructor(t,e,n){this.source=t,this.token=e,this.node=n,this.dependencies=new Set,this.observer=y.binding(t,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,I))}},ye=class{static{i(this,"Store")}constructor(){this.values=new Map}set(t,e){this.values.get(t)!==e&&(this.values.set(t,e),y.getNotifier(this).notify(t.id))}get(t){return y.track(this,t.id),this.values.get(t)}delete(t){this.values.delete(t)}all(){return this.values.entries()}},ut=new WeakMap,dt=new WeakMap,C=class r{static{i(this,"DesignTokenNode")}constructor(t){this.target=t,this.store=new ye,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:i((e,n)=>{let o=R.getTokenById(n);o&&(o.notify(this.target),this.updateCSSTokenReflection(e,o))},"handleChange")},ut.set(t,this),y.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),t instanceof L?t.$fastController.addBehaviors([this]):t.isConnected&&this.bind()}static getOrCreate(t){return ut.get(t)||new r(t)}static existsFor(t){return ut.has(t)}static findParent(t){if(A!==t.target){let e=ct(t.target);for(;e!==null;){if(ut.has(e))return ut.get(e);e=ct(e)}return r.getOrCreate(A)}return null}static findClosestAssignedNode(t,e){let n=e;do{if(n.has(t))return n;n=n.parent?n.parent:n.target!==A?r.getOrCreate(A):null}while(n!==null);return null}get parent(){return dt.get(this)||null}updateCSSTokenReflection(t,e){if(R.isCSSDesignToken(e)){let n=this.parent,o=this.isReflecting(e);if(n){let s=n.get(e),c=t.get(e);s!==c&&!o?this.reflectToCSS(e):s===c&&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){R.isDerivedDesignTokenValue(this.assignedValues.get(t))&&this.tearDownBindingObserver(t),this.assignedValues.set(t,e),R.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&&dt.get(this).removeChild(this)}appendChild(t){t.parent&&dt.get(t).removeChild(t);let e=this.children.filter(n=>t.contains(n));dt.set(t,this),this.children.push(t),e.forEach(n=>t.appendChild(n)),y.getNotifier(this.store).subscribe(t);for(let[n,o]of this.store.all())t.hydrate(n,this.bindingObservers.has(n)?this.getRaw(n):o)}removeChild(t){let e=this.children.indexOf(t);return e!==-1&&this.children.splice(e,1),y.getNotifier(this.store).unsubscribe(t),t.parent===this?dt.delete(t):!1}contains(t){return yr(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=R.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);R.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 be(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}};C.cssCustomPropertyReflector=new ge;m([$],C.prototype,"children",void 0);function Pn(r){return R.from(r)}i(Pn,"create");var ht=Object.freeze({create:Pn,notifyConnection(r){return!r.isConnected||!C.existsFor(r)?!1:(C.getOrCreate(r).bind(),!0)},notifyDisconnection(r){return r.isConnected||!C.existsFor(r)?!1:(C.getOrCreate(r).unbind(),!0)},registerRoot(r=A){N.registerRoot(r)},unregisterRoot(r=A){N.unregisterRoot(r)}});var ve=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),xe=new Map,Mt=new Map,rt=null,ft=b.createInterface(r=>r.cachedCallback(t=>(rt===null&&(rt=new It(null,t)),rt))),Se=Object.freeze({tagFor(r){return Mt.get(r)},responsibleFor(r){let t=r.$$designSystem$$;return t||b.findResponsibleContainer(r).get(ft)},getOrCreate(r){if(!r)return rt===null&&(rt=b.getOrCreateDOMContainer().get(ft)),rt;let t=r.$$designSystem$$;if(t)return t;let e=b.getOrCreateDOMContainer(r);if(e.has(ft,!1))return e.get(ft);{let n=new It(r,e);return e.register(W.instance(ft,n)),n}}});function Tn(r,t,e){return typeof r=="string"?{name:r,type:t,callback:e}:r}i(Tn,"extractTryDefineElementParams");var It=class{static{i(this,"DefaultDesignSystem")}constructor(t,e){this.owner=t,this.container=e,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>ve.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,s=this.shadowRootMode,c={elementPrefix:this.prefix,tryDefineElement(a,u,l){let d=Tn(a,u,l),{name:g,callback:w,baseClass:E}=d,{type:S}=d,T=g,bt=xe.get(T),Nt=!0;for(;bt;){let Ee=o(T,S,bt);switch(Ee){case ve.ignoreDuplicate:return;case ve.definitionCallbackOnly:Nt=!1,bt=void 0;break;default:T=Ee,bt=xe.get(T);break}}Nt&&((Mt.has(S)||S===j)&&(S=class extends S{static{i(this,"type")}}),xe.set(T,S),Mt.set(S,T),E&&Mt.set(E,T)),n.push(new we(e,T,S,s,w,Nt))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&ht.registerRoot(this.designTokenRoot)),e.registerWithContext(c,...t);for(let a of n)a.callback(a),a.willDefine&&a.definition!==null&&a.definition.define();return this}},we=class{static{i(this,"ElementDefinitionEntry")}constructor(t,e,n,o,s,c){this.container=t,this.name=e,this.type=n,this.shadowRootMode=o,this.callback=s,this.willDefine=c,this.definition=null}definePresentation(t){_t.define(this.name,t,this.container)}defineElement(t){this.definition=new D(this.type,Object.assign(Object.assign({},t),{name:this.name}))}tagFor(t){return Se.tagFor(t)}};var vr="not-allowed";var $n=":host([hidden]){display:none}";function xr(r){return`${$n}:host{display:${r}}`}i(xr,"display");var pt=lr()?"focus-visible":"focus";function wr(r){return Se.getOrCreate(r).withPrefix("vscode")}i(wr,"provideVSCodeDesignSystem");function kr(r){window.addEventListener("load",()=>{new MutationObserver(()=>{Sr(r)}).observe(document.body,{attributes:!0,attributeFilter:["class"]}),Sr(r)})}i(kr,"initThemeChangeListener");function Sr(r){let t=getComputedStyle(document.body),e=document.querySelector("body");if(e){let n=e.getAttribute("data-vscode-theme-kind");for(let[o,s]of r){let c=t.getPropertyValue(o).toString();if(n==="vscode-high-contrast")c.length===0&&s.name.includes("background")&&(c="transparent"),s.name==="button-icon-hover-background"&&(c="transparent");else if(n==="vscode-high-contrast-light"){if(c.length===0&&s.name.includes("background"))switch(s.name){case"button-primary-hover-background":c="#0F4A85";break;case"button-secondary-hover-background":c="transparent";break;case"button-icon-hover-background":c="transparent";break}}else s.name==="contrast-active-border"&&(c="transparent");s.setValueFor(e,c)}}}i(Sr,"applyCurrentTheme");var Cr=new Map,Pr=!1;function h(r,t){let e=ht.create(r);if(t){if(t.includes("--fake-vscode-token")){let n="id"+Math.random().toString(16).slice(2);t=`${t}-${n}`}Cr.set(t,e)}return Pr||(kr(Cr),Pr=!0),e}i(h,"create");var wc=h("background","--vscode-editor-background").withDefault("#1e1e1e"),B=h("border-width").withDefault(1),Tr=h("contrast-active-border","--vscode-contrastActiveBorder").withDefault("#f38518"),Sc=h("contrast-border","--vscode-contrastBorder").withDefault("#6fc3df"),kc=h("corner-radius").withDefault(0),$r=h("corner-radius-round").withDefault(2),ke=h("design-unit").withDefault(4),Or=h("disabled-opacity").withDefault(.4),mt=h("focus-border","--vscode-focusBorder").withDefault("#007fd4"),Rr=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"),Cc=h("font-weight","--vscode-font-weight").withDefault("400"),Er=h("foreground","--vscode-foreground").withDefault("#cccccc"),Pc=h("input-height").withDefault("26"),Tc=h("input-min-width").withDefault("100px"),Dr=h("type-ramp-base-font-size","--vscode-font-size").withDefault("13px"),Ar=h("type-ramp-base-line-height").withDefault("normal"),$c=h("type-ramp-minus1-font-size").withDefault("11px"),Oc=h("type-ramp-minus1-line-height").withDefault("16px"),Rc=h("type-ramp-minus2-font-size").withDefault("9px"),Ec=h("type-ramp-minus2-line-height").withDefault("16px"),Dc=h("type-ramp-plus1-font-size").withDefault("16px"),Ac=h("type-ramp-plus1-line-height").withDefault("24px"),_c=h("scrollbarWidth").withDefault("10px"),Bc=h("scrollbarHeight").withDefault("10px"),Fc=h("scrollbar-slider-background","--vscode-scrollbarSlider-background").withDefault("#79797966"),Mc=h("scrollbar-slider-hover-background","--vscode-scrollbarSlider-hoverBackground").withDefault("#646464b3"),Ic=h("scrollbar-slider-active-background","--vscode-scrollbarSlider-activeBackground").withDefault("#bfbfbf66"),Lc=h("badge-background","--vscode-badge-background").withDefault("#4d4d4d"),jc=h("badge-foreground","--vscode-badge-foreground").withDefault("#ffffff"),_r=h("button-border","--vscode-button-border").withDefault("transparent"),Ce=h("button-icon-background").withDefault("transparent"),Br=h("button-icon-corner-radius").withDefault("5px"),Fr=h("button-icon-outline-offset").withDefault(0),Pe=h("button-icon-hover-background","--fake-vscode-token").withDefault("rgba(90, 93, 94, 0.31)"),Mr=h("button-icon-padding").withDefault("3px"),J=h("button-primary-background","--vscode-button-background").withDefault("#0e639c"),Te=h("button-primary-foreground","--vscode-button-foreground").withDefault("#ffffff"),$e=h("button-primary-hover-background","--vscode-button-hoverBackground").withDefault("#1177bb"),Lt=h("button-secondary-background","--vscode-button-secondaryBackground").withDefault("#3a3d41"),Ir=h("button-secondary-foreground","--vscode-button-secondaryForeground").withDefault("#ffffff"),Lr=h("button-secondary-hover-background","--vscode-button-secondaryHoverBackground").withDefault("#45494e"),jr=h("button-padding-horizontal").withDefault("11px"),Nr=h("button-padding-vertical").withDefault("4px"),Nc=h("checkbox-background","--vscode-checkbox-background").withDefault("#3c3c3c"),Vc=h("checkbox-border","--vscode-checkbox-border").withDefault("#3c3c3c"),Hc=h("checkbox-corner-radius").withDefault(3),qc=h("checkbox-foreground","--vscode-checkbox-foreground").withDefault("#f0f0f0"),zc=h("list-active-selection-background","--vscode-list-activeSelectionBackground").withDefault("#094771"),Uc=h("list-active-selection-foreground","--vscode-list-activeSelectionForeground").withDefault("#ffffff"),Wc=h("list-hover-background","--vscode-list-hoverBackground").withDefault("#2a2d2e"),Gc=h("divider-background","--vscode-settings-dropdownListBorder").withDefault("#454545"),Qc=h("dropdown-background","--vscode-dropdown-background").withDefault("#3c3c3c"),Jc=h("dropdown-border","--vscode-dropdown-border").withDefault("#3c3c3c"),Xc=h("dropdown-foreground","--vscode-dropdown-foreground").withDefault("#f0f0f0"),Yc=h("dropdown-list-max-height").withDefault("200px"),Zc=h("input-background","--vscode-input-background").withDefault("#3c3c3c"),Kc=h("input-foreground","--vscode-input-foreground").withDefault("#cccccc"),tl=h("input-placeholder-foreground","--vscode-input-placeholderForeground").withDefault("#cccccc"),el=h("link-active-foreground","--vscode-textLink-activeForeground").withDefault("#3794ff"),rl=h("link-foreground","--vscode-textLink-foreground").withDefault("#3794ff"),nl=h("progress-background","--vscode-progressBar-background").withDefault("#0e70c0"),ol=h("panel-tab-active-border","--vscode-panelTitle-activeBorder").withDefault("#e7e7e7"),il=h("panel-tab-active-foreground","--vscode-panelTitle-activeForeground").withDefault("#e7e7e7"),sl=h("panel-tab-foreground","--vscode-panelTitle-inactiveForeground").withDefault("#e7e7e799"),al=h("panel-view-background","--vscode-panel-background").withDefault("#1e1e1e"),cl=h("panel-view-border","--vscode-panel-border").withDefault("#80808059"),ll=h("tag-corner-radius").withDefault("2px");function Vr(r,t,e,n){var o=arguments.length,s=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,t,e,n);else for(var a=r.length-1;a>=0;a--)(c=r[a])&&(s=(o<3?c(s):o>3?c(t,e,s):c(t,e))||s);return o>3&&s&&Object.defineProperty(t,e,s),s}i(Vr,"__decorate");var On=U`
[84] Fix | Delete
${xr("inline-flex")} :host {
[85] Fix | Delete
outline: none;
[86] Fix | Delete
font-family: ${Rr};
[87] Fix | Delete
font-size: ${Dr};
[88] Fix | Delete
line-height: ${Ar};
[89] Fix | Delete
color: ${Te};
[90] Fix | Delete
background: ${J};
[91] Fix | Delete
border-radius: calc(${$r} * 1px);
[92] Fix | Delete
fill: currentColor;
[93] Fix | Delete
cursor: pointer;
[94] Fix | Delete
}
[95] Fix | Delete
.control {
[96] Fix | Delete
background: transparent;
[97] Fix | Delete
height: inherit;
[98] Fix | Delete
flex-grow: 1;
[99] Fix | Delete
box-sizing: border-box;
[100] Fix | Delete
display: inline-flex;
[101] Fix | Delete
justify-content: center;
[102] Fix | Delete
align-items: center;
[103] Fix | Delete
padding: ${Nr} ${jr};
[104] Fix | Delete
white-space: wrap;
[105] Fix | Delete
outline: none;
[106] Fix | Delete
text-decoration: none;
[107] Fix | Delete
border: calc(${B} * 1px) solid ${_r};
[108] Fix | Delete
color: inherit;
[109] Fix | Delete
border-radius: inherit;
[110] Fix | Delete
fill: inherit;
[111] Fix | Delete
cursor: inherit;
[112] Fix | Delete
font-family: inherit;
[113] Fix | Delete
}
[114] Fix | Delete
:host(:hover) {
[115] Fix | Delete
background: ${$e};
[116] Fix | Delete
}
[117] Fix | Delete
:host(:active) {
[118] Fix | Delete
background: ${J};
[119] Fix | Delete
}
[120] Fix | Delete
.control:${pt} {
[121] Fix | Delete
outline: calc(${B} * 1px) solid ${mt};
[122] Fix | Delete
outline-offset: calc(${B} * 2px);
[123] Fix | Delete
}
[124] Fix | Delete
.control::-moz-focus-inner {
[125] Fix | Delete
border: 0;
[126] Fix | Delete
}
[127] Fix | Delete
:host([disabled]) {
[128] Fix | Delete
opacity: ${Or};
[129] Fix | Delete
background: ${J};
[130] Fix | Delete
cursor: ${vr};
[131] Fix | Delete
}
[132] Fix | Delete
.content {
[133] Fix | Delete
display: flex;
[134] Fix | Delete
}
[135] Fix | Delete
.start {
[136] Fix | Delete
display: flex;
[137] Fix | Delete
}
[138] Fix | Delete
::slotted(svg),
[139] Fix | Delete
::slotted(span) {
[140] Fix | Delete
width: calc(${ke} * 4px);
[141] Fix | Delete
height: calc(${ke} * 4px);
[142] Fix | Delete
}
[143] Fix | Delete
.start {
[144] Fix | Delete
margin-inline-end: 8px;
[145] Fix | Delete
}
[146] Fix | Delete
`,Rn=U`
[147] Fix | Delete
:host([appearance='primary']) {
[148] Fix | Delete
background: ${J};
[149] Fix | Delete
color: ${Te};
[150] Fix | Delete
}
[151] Fix | Delete
:host([appearance='primary']:hover) {
[152] Fix | Delete
background: ${$e};
[153] Fix | Delete
}
[154] Fix | Delete
:host([appearance='primary']:active) .control:active {
[155] Fix | Delete
background: ${J};
[156] Fix | Delete
}
[157] Fix | Delete
:host([appearance='primary']) .control:${pt} {
[158] Fix | Delete
outline: calc(${B} * 1px) solid ${mt};
[159] Fix | Delete
outline-offset: calc(${B} * 2px);
[160] Fix | Delete
}
[161] Fix | Delete
:host([appearance='primary'][disabled]) {
[162] Fix | Delete
background: ${J};
[163] Fix | Delete
}
[164] Fix | Delete
`,En=U`
[165] Fix | Delete
:host([appearance='secondary']) {
[166] Fix | Delete
background: ${Lt};
[167] Fix | Delete
color: ${Ir};
[168] Fix | Delete
}
[169] Fix | Delete
:host([appearance='secondary']:hover) {
[170] Fix | Delete
background: ${Lr};
[171] Fix | Delete
}
[172] Fix | Delete
:host([appearance='secondary']:active) .control:active {
[173] Fix | Delete
background: ${Lt};
[174] Fix | Delete
}
[175] Fix | Delete
:host([appearance='secondary']) .control:${pt} {
[176] Fix | Delete
outline: calc(${B} * 1px) solid ${mt};
[177] Fix | Delete
outline-offset: calc(${B} * 2px);
[178] Fix | Delete
}
[179] Fix | Delete
:host([appearance='secondary'][disabled]) {
[180] Fix | Delete
background: ${Lt};
[181] Fix | Delete
}
[182] Fix | Delete
`,Dn=U`
[183] Fix | Delete
:host([appearance='icon']) {
[184] Fix | Delete
background: ${Ce};
[185] Fix | Delete
border-radius: ${Br};
[186] Fix | Delete
color: ${Er};
[187] Fix | Delete
}
[188] Fix | Delete
:host([appearance='icon']:hover) {
[189] Fix | Delete
background: ${Pe};
[190] Fix | Delete
outline: 1px dotted ${Tr};
[191] Fix | Delete
outline-offset: -1px;
[192] Fix | Delete
}
[193] Fix | Delete
:host([appearance='icon']) .control {
[194] Fix | Delete
padding: ${Mr};
[195] Fix | Delete
border: none;
[196] Fix | Delete
}
[197] Fix | Delete
:host([appearance='icon']:active) .control:active {
[198] Fix | Delete
background: ${Pe};
[199] Fix | Delete
}
[200] Fix | Delete
:host([appearance='icon']) .control:${pt} {
[201] Fix | Delete
outline: calc(${B} * 1px) solid ${mt};
[202] Fix | Delete
outline-offset: ${Fr};
[203] Fix | Delete
}
[204] Fix | Delete
:host([appearance='icon'][disabled]) {
[205] Fix | Delete
background: ${Ce};
[206] Fix | Delete
}
[207] Fix | Delete
`,Hr=i((r,t)=>U`
[208] Fix | Delete
${On}
[209] Fix | Delete
${Rn}
[210] Fix | Delete
${En}
[211] Fix | Delete
${Dn}
[212] Fix | Delete
`,"buttonStyles");var jt=class extends P{static{i(this,"Button")}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)}};Vr([p],jt.prototype,"appearance",void 0);var Oe=jt.compose({baseName:"button",template:hr,styles:Hr,shadowOptions:{delegatesFocus:!0}});var qr=document.getElementById("solutionsContainer"),gt=acquireVsCodeApi(),Re;wr().register(Oe());var Ur={renderingMode:"batch",shuffleSolutions:!1};window.addEventListener("DOMContentLoaded",()=>{gt.postMessage({command:"webviewReady"})});window.addEventListener("message",function(r){let t=r.data;switch(t.command){case"solutionsUpdated":An(t);break;case"navigatePreviousSolution":_n();break;case"navigateNextSolution":Bn();break;case"updateConfig":Ur=t.config;break}});function An(r){if(Fn(r),qr){let t=r.solutions,e=t.some(a=>a.state==="accepted"),n="";t.length>0&&(n=`<a href="#" class="feedbackLink" id="feedbackLink">${e?"Tell us why you preferred the accepted solution":"If no suggestion works well, tell us why"}</a>`);let o=`
[213] Fix | Delete
<div class="feedback-section" style="margin-bottom: 20px;">
[214] Fix | Delete
${n}
[215] Fix | Delete
</div>
[216] Fix | Delete
`,s=t.map((a,u)=>{let l=a.citation?`<p>
[217] Fix | Delete
<span class="codicon codicon-warning" style="vertical-align: text-bottom" aria-hidden="true"></span>
[218] Fix | Delete
${a.citation.message}
[219] Fix | Delete
<a href="${a.citation.url}" target="_blank">Inspect source code</a>
[220] Fix | Delete
</p>`:"",d=Ur.shuffleSolutions?"":` <span style="font-size: 0.8em; color: var(--vscode-descriptionForeground);">(${a.modelIds.join(", ")})</span>`,g=a.state==="pending"?`<vscode-button role="button" class="acceptButton" id="acceptButton${u}" appearance="secondary">Accept suggestion ${u+1}</vscode-button>`:`<vscode-button disabled appearance="secondary">${a.state==="accepted"?"Accepted":"Rejected"}</vscode-button>`;return`<h3 class='solutionHeading' id="solution-${u+1}-heading">Suggestion ${u+1}${d}</h3>
[221] Fix | Delete
<div class='snippetContainer' aria-labelledby="solution-${u+1}-heading" role="group">${a.htmlSnippet}</div>
[222] Fix | Delete
${l}
[223] Fix | Delete
${g}`}).join(""),c=`
[224] Fix | Delete
<div style="margin-bottom: 20px;">
[225] Fix | Delete
<vscode-button id="refreshButton" appearance="secondary" aria-label="Refresh suggestions">
[226] Fix | Delete
<span class="codicon codicon-refresh" style="margin-right: 4px;"></span>
[227] Fix | Delete
Refresh Panel
[228] Fix | Delete
</vscode-button>
[229] Fix | Delete
</div>
[230] Fix | Delete
`;qr.innerHTML=o+c+s}Mn(),Ln()}i(An,"handleSolutionUpdate");function _n(){let r=document.querySelectorAll(".snippetContainer pre"),t=Re-1;r[t]?.focus()}i(_n,"navigatePreviousSolution");function Bn(){let r=document.querySelectorAll(".snippetContainer pre"),t=(Re??-1)+1;r[t]?r[t].focus():r[0]&&r[0].focus()}i(Bn,"navigateNextSolution");function Fn(r){let t=document.getElementById("loadingContainer");if(t)if(r.percentage>=100)t.innerHTML=`${r.solutions.length} Suggestions`;else{t.querySelector("progress")||(t.innerHTML=`
[231] Fix | Delete
<label for="progress-bar">Loading suggestions:</label>
[232] Fix | Delete
<progress id="progress-bar" max="100" value="0"></progress>
[233] Fix | Delete
`);let e=t.querySelector("label"),n=document.getElementById("progress-bar");e&&e.textContent!=="Loading suggestions:\xA0"&&(e.textContent="Loading suggestions:\xA0"),n&&(n.value=r.percentage)}}i(Fn,"updateLoadingContainer");function zr(r){Re=r,gt.postMessage({command:"focusSolution",solutionIndex:r})}i(zr,"handleFocus");function Mn(){document.querySelectorAll(".snippetContainer pre").forEach((t,e)=>{t.addEventListener("focus",()=>zr(e));let n=document.getElementById(`acceptButton${e}`);n&&n.addEventListener("focus",()=>zr(e))})}i(Mn,"addFocusHandlers");function In(r){gt.postMessage({command:"acceptSolution",solutionIndex:r})}i(In,"handleClick");function Ln(){document.querySelectorAll(".acceptButton").forEach((n,o)=>{n.addEventListener("click",()=>In(o))});let t=document.getElementById("feedbackLink");t&&t.addEventListener("click",n=>{n.preventDefault(),gt.postMessage({command:"submitFeedback"})});let e=document.getElementById("refreshButton");e&&e.addEventListener("click",n=>{n.preventDefault(),gt.postMessage({command:"refresh"})})}i(Ln,"addClickHandlers");})();
[234] Fix | Delete
/*! Bundled license information:
[235] Fix | Delete
[236] Fix | Delete
tslib/tslib.es6.js:
[237] Fix | Delete
(*! *****************************************************************************
[238] Fix | Delete
Copyright (c) Microsoft Corporation.
[239] Fix | Delete
[240] Fix | Delete
Permission to use, copy, modify, and/or distribute this software for any
[241] Fix | Delete
purpose with or without fee is hereby granted.
[242] Fix | Delete
[243] Fix | Delete
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
[244] Fix | Delete
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
[245] Fix | Delete
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
[246] Fix | Delete
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
[247] Fix | Delete
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
[248] Fix | Delete
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
[249] Fix | Delete
PERFORMANCE OF THIS SOFTWARE.
[250] Fix | Delete
***************************************************************************** *)
[251] Fix | Delete
*/
[252] Fix | Delete
//# sourceMappingURL=comparisonPanelWebview.js.map
[253] Fix | Delete
[254] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function